diff --git a/Core/Src/main.c b/Core/Src/main.c index 5057779..acb80d5 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -1622,11 +1622,11 @@ void f_Joueur_1(void const * argument) BSP_LCD_SetTextColor(LCD_COLOR_BACKGROUND); BSP_LCD_FillRect(joueur.x, joueur.y, Width, Height); - //BSP_LCD_DrawBitmap(uint32_t Xpos, uint32_t Ypos, uint8_t *pbmp) -// while (HAL_ADC_PollForConversion(&hadc3, 100) != HAL_OK); -// joystick_v = HAL_ADC_GetValue(&hadc3); -// while (HAL_ADC_PollForConversion(&hadc1, 100) != HAL_OK); -// joystick_h = HAL_ADC_GetValue(&hadc1); + BSP_LCD_DrawBitmap(uint32_t Xpos, uint32_t Ypos, uint8_t *pbmp) + while (HAL_ADC_PollForConversion(&hadc3, 100) != HAL_OK); + joystick_v = HAL_ADC_GetValue(&hadc3); + while (HAL_ADC_PollForConversion(&hadc1, 100) != HAL_OK); + joystick_h = HAL_ADC_GetValue(&hadc1); if ((joueur.y < LCD_HEIGHT- Width - joueur.dy)&&(joystick_h < 1900)) joueur.y += joueur.dy; if ((joueur.y > Width + joueur.dy)&&(joystick_h > 2100)) joueur.y -= joueur.dy; @@ -1685,14 +1685,14 @@ void f_projectile(void const * argument) const TickType_t xPeriodeTache = 5000; /* Infinite loop */ struct Missile liste_missile[20]; - struct Missile missile = {70, 70, 0, 1, 0, LCD_COLOR_WHITE, 1,1}; + struct Missile missile = {70, 70, 1, 0, 0, LCD_COLOR_WHITE, 1,1}; uint8_t indice = 1; liste_missile[0] = missile; // Paramètre de l'écran pour la reprouductibilité - uint32_t LCD_HEIGHT = 200; //BSP_LCD_GetXSize(); - uint32_t LCD_WIDTH = 200; //BSP_LCD_GetYSize(); + uint32_t LCD_HEIGHT = BSP_LCD_GetXSize(); + uint32_t LCD_WIDTH = BSP_LCD_GetYSize(); for (;;) { @@ -1712,8 +1712,8 @@ void f_projectile(void const * argument) if ((liste_missile[i].x > 1)&&(liste_missile[i].x < LCD_HEIGHT-1)&&(liste_missile[i].y < LCD_WIDTH-1)&&(liste_missile[i].y > 1)) { BSP_LCD_DrawPixel(liste_missile[i].x, liste_missile[i].y, LCD_COLOR_BACKGROUND); - liste_missile[i].x = liste_missile[i].x - liste_missile[i].dx ; - liste_missile[i].y = liste_missile[i].y - liste_missile[i].dy; + liste_missile[i].x = liste_missile[i].x + liste_missile[i].dx ; + liste_missile[i].y = liste_missile[i].y + liste_missile[i].dy; BSP_LCD_DrawPixel(liste_missile[i].x, liste_missile[i].y, liste_missile[i].color); } //TODO test sur tous les ennemis diff --git a/Core/Startup/startup_stm32f746nghx.s b/Core/Startup/startup_stm32f746nghx.s index 0a42af5..6e9f7d8 100644 --- a/Core/Startup/startup_stm32f746nghx.s +++ b/Core/Startup/startup_stm32f746nghx.s @@ -58,8 +58,7 @@ defined in linker script */ .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function -Reset_Handler: - ldr sp, =_estack /* set stack pointer */ +Reset_Handler: ldr sp, =_estack /* set stack pointer */ /* Copy the data segment initializers from flash to SRAM */ movs r1, #0 diff --git a/Debug/Core/Src/main.o b/Debug/Core/Src/main.o index 9b4a4e1..f739489 100644 Binary files a/Debug/Core/Src/main.o and b/Debug/Core/Src/main.o differ diff --git a/Debug/Core/Startup/startup_stm32f746nghx.o b/Debug/Core/Startup/startup_stm32f746nghx.o index c8fdcce..8d690f9 100644 Binary files a/Debug/Core/Startup/startup_stm32f746nghx.o and b/Debug/Core/Startup/startup_stm32f746nghx.o differ diff --git a/Debug/Space_Invaders.bin b/Debug/Space_Invaders.bin index 0d6e08e..1238071 100644 Binary files a/Debug/Space_Invaders.bin and b/Debug/Space_Invaders.bin differ diff --git a/Debug/Space_Invaders.elf b/Debug/Space_Invaders.elf index 1cc2b4b..b0a0ee4 100644 Binary files a/Debug/Space_Invaders.elf and b/Debug/Space_Invaders.elf differ diff --git a/Debug/Space_Invaders.list b/Debug/Space_Invaders.list index 9631d13..d112b02 100644 --- a/Debug/Space_Invaders.list +++ b/Debug/Space_Invaders.list @@ -5,25 +5,25 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001c8 08000000 08000000 00010000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 0001d610 080001d0 080001d0 000101d0 2**4 + 1 .text 0001d620 080001d0 080001d0 000101d0 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 000050d0 0801d7e0 0801d7e0 0002d7e0 2**2 + 2 .rodata 000050d0 0801d7f0 0801d7f0 0002d7f0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 080228b0 080228b0 000400dc 2**0 + 3 .ARM.extab 00000000 080228c0 080228c0 000400dc 2**0 CONTENTS - 4 .ARM 00000008 080228b0 080228b0 000328b0 2**2 + 4 .ARM 00000008 080228c0 080228c0 000328c0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 5 .preinit_array 00000000 080228b8 080228b8 000400dc 2**0 + 5 .preinit_array 00000000 080228c8 080228c8 000400dc 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 080228b8 080228b8 000328b8 2**2 + 6 .init_array 00000004 080228c8 080228c8 000328c8 2**2 CONTENTS, ALLOC, LOAD, DATA - 7 .fini_array 00000004 080228bc 080228bc 000328bc 2**2 + 7 .fini_array 00000004 080228cc 080228cc 000328cc 2**2 CONTENTS, ALLOC, LOAD, DATA - 8 .data 000000dc 20000000 080228c0 00040000 2**2 + 8 .data 000000dc 20000000 080228d0 00040000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 0000f760 200000dc 0802299c 000400dc 2**2 + 9 .bss 0000f760 200000dc 080229ac 000400dc 2**2 ALLOC - 10 ._user_heap_stack 00000604 2000f83c 0802299c 0004f83c 2**0 + 10 ._user_heap_stack 00000604 2000f83c 080229ac 0004f83c 2**0 ALLOC 11 .ARM.attributes 00000030 00000000 00000000 000400dc 2**0 CONTENTS, READONLY @@ -62,7 +62,7 @@ Disassembly of section .text: 80001e6: bd10 pop {r4, pc} 80001e8: 200000dc .word 0x200000dc 80001ec: 00000000 .word 0x00000000 - 80001f0: 0801d7c8 .word 0x0801d7c8 + 80001f0: 0801d7d8 .word 0x0801d7d8 080001f4 : 80001f4: b508 push {r3, lr} @@ -74,7 +74,7 @@ Disassembly of section .text: 8000202: bd08 pop {r3, pc} 8000204: 00000000 .word 0x00000000 8000208: 200000e0 .word 0x200000e0 - 800020c: 0801d7c8 .word 0x0801d7c8 + 800020c: 0801d7d8 .word 0x0801d7d8 08000210 : 8000210: f001 01ff and.w r1, r1, #255 ; 0xff @@ -526,7 +526,7 @@ void ft5336_Init(uint16_t DeviceAddr) * Trsi timing (Time of starting to report point after resetting) from FT5336GQQ datasheet */ TS_IO_Delay(200); 8000622: 20c8 movs r0, #200 ; 0xc8 - 8000624: f002 f9a8 bl 8002978 + 8000624: f002 f9aa bl 800297c /* Initialize I2C link if needed */ ft5336_I2C_InitializeIfRequired(); @@ -596,7 +596,7 @@ uint16_t ft5336_ReadID(uint16_t DeviceAddr) 800066c: b2db uxtb r3, r3 800066e: 21a8 movs r1, #168 ; 0xa8 8000670: 4618 mov r0, r3 - 8000672: f002 f963 bl 800293c + 8000672: f002 f965 bl 8002940 8000676: 4603 mov r3, r0 8000678: 737b strb r3, [r7, #13] @@ -687,7 +687,7 @@ uint8_t ft5336_TS_DetectTouch(uint16_t DeviceAddr) 80006d8: b2db uxtb r3, r3 80006da: 2102 movs r1, #2 80006dc: 4618 mov r0, r3 - 80006de: f002 f92d bl 800293c + 80006de: f002 f92f bl 8002940 80006e2: 4603 mov r3, r0 80006e4: 73fb strb r3, [r7, #15] nbTouch &= FT5336_TD_STAT_MASK; @@ -963,7 +963,7 @@ void ft5336_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y) 800083e: 7dfa ldrb r2, [r7, #23] 8000840: 4611 mov r1, r2 8000842: 4618 mov r0, r3 - 8000844: f002 f87a bl 800293c + 8000844: f002 f87c bl 8002940 8000848: 4603 mov r3, r0 800084a: 74fb strb r3, [r7, #19] coord = (ucReadData & FT5336_TOUCH_POS_LSB_MASK) >> FT5336_TOUCH_POS_LSB_SHIFT; @@ -980,7 +980,7 @@ void ft5336_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y) 800085a: 7dba ldrb r2, [r7, #22] 800085c: 4611 mov r1, r2 800085e: 4618 mov r0, r3 - 8000860: f002 f86c bl 800293c + 8000860: f002 f86e bl 8002940 8000864: 4603 mov r3, r0 8000866: 74fb strb r3, [r7, #19] coord |= ((ucReadData & FT5336_TOUCH_POS_MSB_MASK) >> FT5336_TOUCH_POS_MSB_SHIFT) << 8; @@ -1012,7 +1012,7 @@ void ft5336_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y) 8000890: 7d7a ldrb r2, [r7, #21] 8000892: 4611 mov r1, r2 8000894: 4618 mov r0, r3 - 8000896: f002 f851 bl 800293c + 8000896: f002 f853 bl 8002940 800089a: 4603 mov r3, r0 800089c: 74fb strb r3, [r7, #19] coord = (ucReadData & FT5336_TOUCH_POS_LSB_MASK) >> FT5336_TOUCH_POS_LSB_SHIFT; @@ -1029,7 +1029,7 @@ void ft5336_TS_GetXY(uint16_t DeviceAddr, uint16_t *X, uint16_t *Y) 80008ac: 7d3a ldrb r2, [r7, #20] 80008ae: 4611 mov r1, r2 80008b0: 4618 mov r0, r3 - 80008b2: f002 f843 bl 800293c + 80008b2: f002 f845 bl 8002940 80008b6: 4603 mov r3, r0 80008b8: 74fb strb r3, [r7, #19] coord |= ((ucReadData & FT5336_TOUCH_POS_MSB_MASK) >> FT5336_TOUCH_POS_MSB_SHIFT) << 8; @@ -1098,7 +1098,7 @@ void ft5336_TS_EnableIT(uint16_t DeviceAddr) 8000912: 7bfa ldrb r2, [r7, #15] 8000914: 21a4 movs r1, #164 ; 0xa4 8000916: 4618 mov r0, r3 - 8000918: f001 fff6 bl 8002908 + 8000918: f001 fff8 bl 800290c } 800091c: bf00 nop 800091e: 3710 adds r7, #16 @@ -1131,7 +1131,7 @@ void ft5336_TS_DisableIT(uint16_t DeviceAddr) 800093a: 7bfa ldrb r2, [r7, #15] 800093c: 21a4 movs r1, #164 ; 0xa4 800093e: 4618 mov r0, r3 - 8000940: f001 ffe2 bl 8002908 + 8000940: f001 ffe4 bl 800290c } 8000944: bf00 nop 8000946: 3710 adds r7, #16 @@ -1202,7 +1202,7 @@ void ft5336_TS_GetGestureID(uint16_t DeviceAddr, uint32_t * pGestureId) 800098c: b2db uxtb r3, r3 800098e: 2101 movs r1, #1 8000990: 4618 mov r0, r3 - 8000992: f001 ffd3 bl 800293c + 8000992: f001 ffd5 bl 8002940 8000996: 4603 mov r3, r0 8000998: 73fb strb r3, [r7, #15] @@ -1415,7 +1415,7 @@ void ft5336_TS_GetTouchInfo(uint16_t DeviceAddr, 8000aa2: 7dfa ldrb r2, [r7, #23] 8000aa4: 4611 mov r1, r2 8000aa6: 4618 mov r0, r3 - 8000aa8: f001 ff48 bl 800293c + 8000aa8: f001 ff4a bl 8002940 8000aac: 4603 mov r3, r0 8000aae: 753b strb r3, [r7, #20] * pEvent = (ucReadData & FT5336_TOUCH_EVT_FLAG_MASK) >> FT5336_TOUCH_EVT_FLAG_SHIFT; @@ -1433,7 +1433,7 @@ void ft5336_TS_GetTouchInfo(uint16_t DeviceAddr, 8000ac2: 7dba ldrb r2, [r7, #22] 8000ac4: 4611 mov r1, r2 8000ac6: 4618 mov r0, r3 - 8000ac8: f001 ff38 bl 800293c + 8000ac8: f001 ff3a bl 8002940 8000acc: 4603 mov r3, r0 8000ace: 753b strb r3, [r7, #20] * pWeight = (ucReadData & FT5336_TOUCH_WEIGHT_MASK) >> FT5336_TOUCH_WEIGHT_SHIFT; @@ -1450,7 +1450,7 @@ void ft5336_TS_GetTouchInfo(uint16_t DeviceAddr, 8000ade: 7d7a ldrb r2, [r7, #21] 8000ae0: 4611 mov r1, r2 8000ae2: 4618 mov r0, r3 - 8000ae4: f001 ff2a bl 800293c + 8000ae4: f001 ff2c bl 8002940 8000ae8: 4603 mov r3, r0 8000aea: 753b strb r3, [r7, #20] * pArea = (ucReadData & FT5336_TOUCH_AREA_MASK) >> FT5336_TOUCH_AREA_SHIFT; @@ -1507,7 +1507,7 @@ static void ft5336_I2C_InitializeIfRequired(void) { /* Initialize TS IO BUS layer (I2C) */ TS_IO_Init(); - 8000b2e: f001 fee1 bl 80028f4 + 8000b2e: f001 fee3 bl 80028f8 /* Set state to initialized */ ft5336_handle.i2cInitialized = FT5336_I2C_INITIALIZED; @@ -1563,7 +1563,7 @@ int main(void) 8000b66: 2232 movs r2, #50 ; 0x32 8000b68: 2100 movs r1, #0 8000b6a: 4618 mov r0, r3 - 8000b6c: f01b fd63 bl 801c636 + 8000b6c: f01b fd6b bl 801c646 static TS_StateTypeDef TS_State; ADC_ChannelConfTypeDef sConfig = {0}; 8000b70: f107 03c4 add.w r3, r7, #196 ; 0xc4 @@ -1584,7 +1584,7 @@ int main(void) /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 8000b8a: f004 f978 bl 8004e7e + 8000b8a: f004 f97a bl 8004e82 /* USER CODE BEGIN Init */ /* USER CODE END Init */ @@ -1641,16 +1641,16 @@ int main(void) 8000be2: f000 fc37 bl 8001454 /* USER CODE BEGIN 2 */ BSP_LCD_Init(); - 8000be6: f001 fed3 bl 8002990 + 8000be6: f001 fed5 bl 8002994 BSP_LCD_LayerDefaultInit(0, LCD_FB_START_ADDRESS); 8000bea: f04f 4140 mov.w r1, #3221225472 ; 0xc0000000 8000bee: 2000 movs r0, #0 - 8000bf0: f001 ff66 bl 8002ac0 + 8000bf0: f001 ff68 bl 8002ac4 BSP_LCD_LayerDefaultInit(1, LCD_FB_START_ADDRESS + BSP_LCD_GetXSize() * BSP_LCD_GetYSize() * 4); - 8000bf4: f001 ff3c bl 8002a70 + 8000bf4: f001 ff3e bl 8002a74 8000bf8: 4604 mov r4, r0 - 8000bfa: f001 ff4d bl 8002a98 + 8000bfa: f001 ff4f bl 8002a9c 8000bfe: 4603 mov r3, r0 8000c00: fb03 f304 mul.w r3, r3, r4 BSP_LCD_LayerDefaultInit(1, @@ -1658,35 +1658,35 @@ int main(void) 8000c08: 009b lsls r3, r3, #2 8000c0a: 4619 mov r1, r3 8000c0c: 2001 movs r0, #1 - 8000c0e: f001 ff57 bl 8002ac0 + 8000c0e: f001 ff59 bl 8002ac4 BSP_LCD_DisplayOn(); - 8000c12: f002 fc1f bl 8003454 + 8000c12: f002 fc21 bl 8003458 BSP_LCD_SelectLayer(1); 8000c16: 2001 movs r0, #1 - 8000c18: f001 ffb2 bl 8002b80 + 8000c18: f001 ffb4 bl 8002b84 BSP_LCD_Clear(LCD_COLOR_BLACK); 8000c1c: f04f 407f mov.w r0, #4278190080 ; 0xff000000 - 8000c20: f002 f820 bl 8002c64 + 8000c20: f002 f822 bl 8002c68 BSP_LCD_SetFont(&Font12); 8000c24: 4887 ldr r0, [pc, #540] ; (8000e44 ) - 8000c26: f001 ffed bl 8002c04 + 8000c26: f001 ffef bl 8002c08 BSP_LCD_SetTextColor(LCD_COLOR_BLUE); 8000c2a: 4887 ldr r0, [pc, #540] ; (8000e48 ) - 8000c2c: f001 ffb8 bl 8002ba0 + 8000c2c: f001 ffba bl 8002ba4 BSP_LCD_SetBackColor(LCD_COLOR_BLACK); 8000c30: f04f 407f mov.w r0, #4278190080 ; 0xff000000 - 8000c34: f001 ffcc bl 8002bd0 + 8000c34: f001 ffce bl 8002bd4 BSP_TS_Init(BSP_LCD_GetXSize(), BSP_LCD_GetYSize()); - 8000c38: f001 ff1a bl 8002a70 + 8000c38: f001 ff1c bl 8002a74 8000c3c: 4603 mov r3, r0 8000c3e: b29c uxth r4, r3 - 8000c40: f001 ff2a bl 8002a98 + 8000c40: f001 ff2c bl 8002a9c 8000c44: 4603 mov r3, r0 8000c46: b29b uxth r3, r3 8000c48: 4619 mov r1, r3 8000c4a: 4620 mov r0, r4 - 8000c4c: f002 ffd0 bl 8003bf0 + 8000c4c: f002 ffd2 bl 8003bf4 /* start timers, add new ones, ... */ /* USER CODE END RTOS_TIMERS */ @@ -1701,7 +1701,7 @@ int main(void) 8000c5c: f107 03b4 add.w r3, r7, #180 ; 0xb4 8000c60: 2100 movs r1, #0 8000c62: 4618 mov r0, r3 - 8000c64: f00c fc1a bl 800d49c + 8000c64: f00c fc1c bl 800d4a0 8000c68: 4602 mov r2, r0 8000c6a: 4b79 ldr r3, [pc, #484] ; (8000e50 ) 8000c6c: 601a str r2, [r3, #0] @@ -1716,7 +1716,7 @@ int main(void) 8000c7a: f107 03a4 add.w r3, r7, #164 ; 0xa4 8000c7e: 2100 movs r1, #0 8000c80: 4618 mov r0, r3 - 8000c82: f00c fc0b bl 800d49c + 8000c82: f00c fc0d bl 800d4a0 8000c86: 4602 mov r2, r0 8000c88: 4b73 ldr r3, [pc, #460] ; (8000e58 ) 8000c8a: 601a str r2, [r3, #0] @@ -1731,7 +1731,7 @@ int main(void) 8000c98: f107 0394 add.w r3, r7, #148 ; 0x94 8000c9c: 2100 movs r1, #0 8000c9e: 4618 mov r0, r3 - 8000ca0: f00c fbfc bl 800d49c + 8000ca0: f00c fbfe bl 800d4a0 8000ca4: 4602 mov r2, r0 8000ca6: 4b6d ldr r3, [pc, #436] ; (8000e5c ) 8000ca8: 601a str r2, [r3, #0] @@ -1746,7 +1746,7 @@ int main(void) 8000cb6: f107 0384 add.w r3, r7, #132 ; 0x84 8000cba: 2100 movs r1, #0 8000cbc: 4618 mov r0, r3 - 8000cbe: f00c fbed bl 800d49c + 8000cbe: f00c fbef bl 800d4a0 8000cc2: 4602 mov r2, r0 8000cc4: 4b66 ldr r3, [pc, #408] ; (8000e60 ) 8000cc6: 601a str r2, [r3, #0] @@ -1761,7 +1761,7 @@ int main(void) 8000cd4: f107 0374 add.w r3, r7, #116 ; 0x74 8000cd8: 2100 movs r1, #0 8000cda: 4618 mov r0, r3 - 8000cdc: f00c fbde bl 800d49c + 8000cdc: f00c fbe0 bl 800d4a0 8000ce0: 4602 mov r2, r0 8000ce2: 4b60 ldr r3, [pc, #384] ; (8000e64 ) 8000ce4: 601a str r2, [r3, #0] @@ -1782,7 +1782,7 @@ int main(void) 8000cfa: f107 0358 add.w r3, r7, #88 ; 0x58 8000cfe: 2100 movs r1, #0 8000d00: 4618 mov r0, r3 - 8000d02: f00c fa0a bl 800d11a + 8000d02: f00c fa0c bl 800d11e 8000d06: 4602 mov r2, r0 8000d08: 4b58 ldr r3, [pc, #352] ; (8000e6c ) 8000d0a: 601a str r2, [r3, #0] @@ -1800,7 +1800,7 @@ int main(void) 8000d20: f107 033c add.w r3, r7, #60 ; 0x3c 8000d24: 2100 movs r1, #0 8000d26: 4618 mov r0, r3 - 8000d28: f00c f9f7 bl 800d11a + 8000d28: f00c f9f9 bl 800d11e 8000d2c: 4602 mov r2, r0 8000d2e: 4b51 ldr r3, [pc, #324] ; (8000e74 ) 8000d30: 601a str r2, [r3, #0] @@ -1818,7 +1818,7 @@ int main(void) 8000d46: f107 0320 add.w r3, r7, #32 8000d4a: 2100 movs r1, #0 8000d4c: 4618 mov r0, r3 - 8000d4e: f00c f9e4 bl 800d11a + 8000d4e: f00c f9e6 bl 800d11e 8000d52: 4602 mov r2, r0 8000d54: 4b49 ldr r3, [pc, #292] ; (8000e7c ) 8000d56: 601a str r2, [r3, #0] @@ -1837,7 +1837,7 @@ int main(void) 8000d6c: 1d3b adds r3, r7, #4 8000d6e: 2100 movs r1, #0 8000d70: 4618 mov r0, r3 - 8000d72: f00c f9d2 bl 800d11a + 8000d72: f00c f9d4 bl 800d11e 8000d76: 4602 mov r2, r0 8000d78: 4b42 ldr r3, [pc, #264] ; (8000e84 ) 8000d7a: 601a str r2, [r3, #0] @@ -1847,7 +1847,7 @@ int main(void) /* Start scheduler */ osKernelStart(); - 8000d7c: f00c f9b6 bl 800d0ec + 8000d7c: f00c f9b8 bl 800d0f0 /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) @@ -1856,38 +1856,38 @@ int main(void) HAL_GPIO_WritePin(LED13_GPIO_Port, LED13_Pin, 8000d80: f44f 7180 mov.w r1, #256 ; 0x100 8000d84: 4840 ldr r0, [pc, #256] ; (8000e88 ) - 8000d86: f006 ff2d bl 8007be4 + 8000d86: f006 ff2f bl 8007be8 8000d8a: 4603 mov r3, r0 8000d8c: 461a mov r2, r3 8000d8e: f44f 4180 mov.w r1, #16384 ; 0x4000 8000d92: 483e ldr r0, [pc, #248] ; (8000e8c ) - 8000d94: f006 ff3e bl 8007c14 + 8000d94: f006 ff40 bl 8007c18 HAL_GPIO_ReadPin(BP1_GPIO_Port, BP1_Pin)); HAL_GPIO_WritePin(LED14_GPIO_Port, LED14_Pin, 8000d98: f44f 4100 mov.w r1, #32768 ; 0x8000 8000d9c: 483a ldr r0, [pc, #232] ; (8000e88 ) - 8000d9e: f006 ff21 bl 8007be4 + 8000d9e: f006 ff23 bl 8007be8 8000da2: 4603 mov r3, r0 8000da4: 461a mov r2, r3 8000da6: 2120 movs r1, #32 8000da8: 4839 ldr r0, [pc, #228] ; (8000e90 ) - 8000daa: f006 ff33 bl 8007c14 + 8000daa: f006 ff35 bl 8007c18 HAL_GPIO_ReadPin(BP2_GPIO_Port, BP2_Pin)); sprintf(text, "BP1 : %d", HAL_GPIO_ReadPin(BP1_GPIO_Port, BP1_Pin)); 8000dae: f44f 7180 mov.w r1, #256 ; 0x100 8000db2: 4835 ldr r0, [pc, #212] ; (8000e88 ) - 8000db4: f006 ff16 bl 8007be4 + 8000db4: f006 ff18 bl 8007be8 8000db8: 4603 mov r3, r0 8000dba: 461a mov r2, r3 8000dbc: f107 03d4 add.w r3, r7, #212 ; 0xd4 8000dc0: 4934 ldr r1, [pc, #208] ; (8000e94 ) 8000dc2: 4618 mov r0, r3 - 8000dc4: f01b fc8c bl 801c6e0 + 8000dc4: f01b fc94 bl 801c6f0 BSP_LCD_DisplayStringAtLine(5, (uint8_t *)text); 8000dc8: f107 03d4 add.w r3, r7, #212 ; 0xd4 8000dcc: 4619 mov r1, r3 8000dce: 2005 movs r0, #5 - 8000dd0: f002 f878 bl 8002ec4 + 8000dd0: f002 f87a bl 8002ec8 ; @@ -1899,10 +1899,10 @@ int main(void) 8000dda: f107 03c4 add.w r3, r7, #196 ; 0xc4 8000dde: 4619 mov r1, r3 8000de0: 482d ldr r0, [pc, #180] ; (8000e98 ) - 8000de2: f004 f99f bl 8005124 + 8000de2: f004 f9a1 bl 8005128 HAL_ADC_Start(&hadc3); 8000de6: 482c ldr r0, [pc, #176] ; (8000e98 ) - 8000de8: f004 f8dc bl 8004fa4 + 8000de8: f004 f8de bl 8004fa8 sConfig.Channel = ADC_CHANNEL_6; 8000dec: 2306 movs r3, #6 @@ -1911,10 +1911,10 @@ int main(void) 8000df2: f107 03c4 add.w r3, r7, #196 ; 0xc4 8000df6: 4619 mov r1, r3 8000df8: 4827 ldr r0, [pc, #156] ; (8000e98 ) - 8000dfa: f004 f993 bl 8005124 + 8000dfa: f004 f995 bl 8005128 HAL_ADC_Start(&hadc3); 8000dfe: 4826 ldr r0, [pc, #152] ; (8000e98 ) - 8000e00: f004 f8d0 bl 8004fa4 + 8000e00: f004 f8d2 bl 8004fa8 sConfig.Channel = ADC_CHANNEL_8; 8000e04: 2308 movs r3, #8 8000e06: f8c7 30c4 str.w r3, [r7, #196] ; 0xc4 @@ -1922,20 +1922,20 @@ int main(void) 8000e0a: f107 03c4 add.w r3, r7, #196 ; 0xc4 8000e0e: 4619 mov r1, r3 8000e10: 4821 ldr r0, [pc, #132] ; (8000e98 ) - 8000e12: f004 f987 bl 8005124 + 8000e12: f004 f989 bl 8005128 HAL_ADC_Start(&hadc3); 8000e16: 4820 ldr r0, [pc, #128] ; (8000e98 ) - 8000e18: f004 f8c4 bl 8004fa4 + 8000e18: f004 f8c6 bl 8004fa8 HAL_ADC_Start(&hadc1); 8000e1c: 481f ldr r0, [pc, #124] ; (8000e9c ) - 8000e1e: f004 f8c1 bl 8004fa4 + 8000e1e: f004 f8c3 bl 8004fa8 BSP_TS_GetState(&TS_State); 8000e22: 481f ldr r0, [pc, #124] ; (8000ea0 ) - 8000e24: f002 ff24 bl 8003c70 + 8000e24: f002 ff26 bl 8003c74 if (TS_State.touchDetected) 8000e28: 4b1d ldr r3, [pc, #116] ; (8000ea0 ) 8000e2a: 781b ldrb r3, [r3, #0] @@ -1949,31 +1949,31 @@ int main(void) 8000e36: 899b ldrh r3, [r3, #12] 8000e38: 2204 movs r2, #4 8000e3a: 4619 mov r1, r3 - 8000e3c: f002 fa6a bl 8003314 + 8000e3c: f002 fa6c bl 8003318 HAL_GPIO_WritePin(LED13_GPIO_Port, LED13_Pin, 8000e40: e79e b.n 8000d80 8000e42: bf00 nop 8000e44: 2000004c .word 0x2000004c 8000e48: ff0000ff .word 0xff0000ff - 8000e4c: 0801d7ec .word 0x0801d7ec + 8000e4c: 0801d7fc .word 0x0801d7fc 8000e50: 20008e28 .word 0x20008e28 - 8000e54: 0801d7fc .word 0x0801d7fc + 8000e54: 0801d80c .word 0x0801d80c 8000e58: 20008c94 .word 0x20008c94 8000e5c: 200089e0 .word 0x200089e0 8000e60: 20008c98 .word 0x20008c98 8000e64: 20008c10 .word 0x20008c10 - 8000e68: 0801d818 .word 0x0801d818 + 8000e68: 0801d828 .word 0x0801d828 8000e6c: 20008da4 .word 0x20008da4 - 8000e70: 0801d840 .word 0x0801d840 + 8000e70: 0801d850 .word 0x0801d850 8000e74: 20008a54 .word 0x20008a54 - 8000e78: 0801d86c .word 0x0801d86c + 8000e78: 0801d87c .word 0x0801d87c 8000e7c: 20008e60 .word 0x20008e60 - 8000e80: 0801d894 .word 0x0801d894 + 8000e80: 0801d8a4 .word 0x0801d8a4 8000e84: 20008cb0 .word 0x20008cb0 8000e88: 40020000 .word 0x40020000 8000e8c: 40021c00 .word 0x40021c00 8000e90: 40021000 .word 0x40021000 - 8000e94: 0801d7e0 .word 0x0801d7e0 + 8000e94: 0801d7f0 .word 0x0801d7f0 8000e98: 20008bc8 .word 0x20008bc8 8000e9c: 20008b80 .word 0x20008b80 8000ea0: 20000358 .word 0x20000358 @@ -1993,7 +1993,7 @@ void SystemClock_Config(void) 8000eae: 2230 movs r2, #48 ; 0x30 8000eb0: 2100 movs r1, #0 8000eb2: 4618 mov r0, r3 - 8000eb4: f01b fbbf bl 801c636 + 8000eb4: f01b fbc7 bl 801c646 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 8000eb8: f107 038c add.w r3, r7, #140 ; 0x8c 8000ebc: 2200 movs r2, #0 @@ -2007,12 +2007,12 @@ void SystemClock_Config(void) 8000ecc: 2284 movs r2, #132 ; 0x84 8000ece: 2100 movs r1, #0 8000ed0: 4618 mov r0, r3 - 8000ed2: f01b fbb0 bl 801c636 + 8000ed2: f01b fbb8 bl 801c646 /** Configure LSE Drive Capability */ HAL_PWR_EnableBkUpAccess(); - 8000ed6: f007 ffdf bl 8008e98 + 8000ed6: f007 ffe1 bl 8008e9c /** Configure the main internal regulator output voltage */ __HAL_RCC_PWR_CLK_ENABLE(); @@ -2070,24 +2070,24 @@ void SystemClock_Config(void) if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 8000f46: f107 03a0 add.w r3, r7, #160 ; 0xa0 8000f4a: 4618 mov r0, r3 - 8000f4c: f008 f804 bl 8008f58 + 8000f4c: f008 f806 bl 8008f5c 8000f50: 4603 mov r3, r0 8000f52: 2b00 cmp r3, #0 8000f54: d001 beq.n 8000f5a { Error_Handler(); - 8000f56: f001 fb73 bl 8002640 + 8000f56: f001 fb75 bl 8002644 } /** Activate the Over-Drive mode */ if (HAL_PWREx_EnableOverDrive() != HAL_OK) - 8000f5a: f007 ffad bl 8008eb8 + 8000f5a: f007 ffaf bl 8008ebc 8000f5e: 4603 mov r3, r0 8000f60: 2b00 cmp r3, #0 8000f62: d001 beq.n 8000f68 { Error_Handler(); - 8000f64: f001 fb6c bl 8002640 + 8000f64: f001 fb6e bl 8002644 } /** Initializes the CPU, AHB and APB buses clocks */ @@ -2112,13 +2112,13 @@ void SystemClock_Config(void) 8000f8a: f107 038c add.w r3, r7, #140 ; 0x8c 8000f8e: 2106 movs r1, #6 8000f90: 4618 mov r0, r3 - 8000f92: f008 fa85 bl 80094a0 + 8000f92: f008 fa87 bl 80094a4 8000f96: 4603 mov r3, r0 8000f98: 2b00 cmp r3, #0 8000f9a: d001 beq.n 8000fa0 { Error_Handler(); - 8000f9c: f001 fb50 bl 8002640 + 8000f9c: f001 fb52 bl 8002644 } PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_LTDC|RCC_PERIPHCLK_RTC 8000fa0: 4b19 ldr r3, [pc, #100] ; (8001008 ) @@ -2168,13 +2168,13 @@ void SystemClock_Config(void) if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) 8000fe2: f107 0308 add.w r3, r7, #8 8000fe6: 4618 mov r0, r3 - 8000fe8: f008 fc5e bl 80098a8 + 8000fe8: f008 fc60 bl 80098ac 8000fec: 4603 mov r3, r0 8000fee: 2b00 cmp r3, #0 8000ff0: d001 beq.n 8000ff6 { Error_Handler(); - 8000ff2: f001 fb25 bl 8002640 + 8000ff2: f001 fb27 bl 8002644 } } 8000ff6: bf00 nop @@ -2263,13 +2263,13 @@ static void MX_ADC1_Init(void) 800106a: 615a str r2, [r3, #20] if (HAL_ADC_Init(&hadc1) != HAL_OK) 800106c: 480d ldr r0, [pc, #52] ; (80010a4 ) - 800106e: f003 ff55 bl 8004f1c + 800106e: f003 ff57 bl 8004f20 8001072: 4603 mov r3, r0 8001074: 2b00 cmp r3, #0 8001076: d001 beq.n 800107c { Error_Handler(); - 8001078: f001 fae2 bl 8002640 + 8001078: f001 fae4 bl 8002644 } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. */ @@ -2286,13 +2286,13 @@ static void MX_ADC1_Init(void) 8001088: 463b mov r3, r7 800108a: 4619 mov r1, r3 800108c: 4805 ldr r0, [pc, #20] ; (80010a4 ) - 800108e: f004 f849 bl 8005124 + 800108e: f004 f84b bl 8005128 8001092: 4603 mov r3, r0 8001094: 2b00 cmp r3, #0 8001096: d001 beq.n 800109c { Error_Handler(); - 8001098: f001 fad2 bl 8002640 + 8001098: f001 fad4 bl 8002644 } /* USER CODE BEGIN ADC1_Init 2 */ @@ -2384,13 +2384,13 @@ static void MX_ADC3_Init(void) 800110e: 615a str r2, [r3, #20] if (HAL_ADC_Init(&hadc3) != HAL_OK) 8001110: 480d ldr r0, [pc, #52] ; (8001148 ) - 8001112: f003 ff03 bl 8004f1c + 8001112: f003 ff05 bl 8004f20 8001116: 4603 mov r3, r0 8001118: 2b00 cmp r3, #0 800111a: d001 beq.n 8001120 { Error_Handler(); - 800111c: f001 fa90 bl 8002640 + 800111c: f001 fa92 bl 8002644 } /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time. */ @@ -2407,13 +2407,13 @@ static void MX_ADC3_Init(void) 800112c: 463b mov r3, r7 800112e: 4619 mov r1, r3 8001130: 4805 ldr r0, [pc, #20] ; (8001148 ) - 8001132: f003 fff7 bl 8005124 + 8001132: f003 fff9 bl 8005128 8001136: 4603 mov r3, r0 8001138: 2b00 cmp r3, #0 800113a: d001 beq.n 8001140 { Error_Handler(); - 800113c: f001 fa80 bl 8002640 + 800113c: f001 fa82 bl 8002644 } /* USER CODE BEGIN ADC3_Init 2 */ @@ -2468,13 +2468,13 @@ static void MX_CRC_Init(void) 800117a: 621a str r2, [r3, #32] if (HAL_CRC_Init(&hcrc) != HAL_OK) 800117c: 4804 ldr r0, [pc, #16] ; (8001190 ) - 800117e: f004 faf7 bl 8005770 + 800117e: f004 faf9 bl 8005774 8001182: 4603 mov r3, r0 8001184: 2b00 cmp r3, #0 8001186: d001 beq.n 800118c { Error_Handler(); - 8001188: f001 fa5a bl 8002640 + 8001188: f001 fa5c bl 8002644 } /* USER CODE BEGIN CRC_Init 2 */ @@ -2517,13 +2517,13 @@ static void MX_DAC_Init(void) 80011aa: 601a str r2, [r3, #0] if (HAL_DAC_Init(&hdac) != HAL_OK) 80011ac: 480d ldr r0, [pc, #52] ; (80011e4 ) - 80011ae: f004 fbc9 bl 8005944 + 80011ae: f004 fbcb bl 8005948 80011b2: 4603 mov r3, r0 80011b4: 2b00 cmp r3, #0 80011b6: d001 beq.n 80011bc { Error_Handler(); - 80011b8: f001 fa42 bl 8002640 + 80011b8: f001 fa44 bl 8002644 } /** DAC channel OUT1 config */ @@ -2538,13 +2538,13 @@ static void MX_DAC_Init(void) 80011c6: 2200 movs r2, #0 80011c8: 4619 mov r1, r3 80011ca: 4806 ldr r0, [pc, #24] ; (80011e4 ) - 80011cc: f004 fc30 bl 8005a30 + 80011cc: f004 fc32 bl 8005a34 80011d0: 4603 mov r3, r0 80011d2: 2b00 cmp r3, #0 80011d4: d001 beq.n 80011da { Error_Handler(); - 80011d6: f001 fa33 bl 8002640 + 80011d6: f001 fa35 bl 8002644 } /* USER CODE BEGIN DAC_Init 2 */ @@ -2607,24 +2607,24 @@ static void MX_DMA2D_Init(void) 800121e: 635a str r2, [r3, #52] ; 0x34 if (HAL_DMA2D_Init(&hdma2d) != HAL_OK) 8001220: 4809 ldr r0, [pc, #36] ; (8001248 ) - 8001222: f004 fe19 bl 8005e58 + 8001222: f004 fe1b bl 8005e5c 8001226: 4603 mov r3, r0 8001228: 2b00 cmp r3, #0 800122a: d001 beq.n 8001230 { Error_Handler(); - 800122c: f001 fa08 bl 8002640 + 800122c: f001 fa0a bl 8002644 } if (HAL_DMA2D_ConfigLayer(&hdma2d, 1) != HAL_OK) 8001230: 2101 movs r1, #1 8001232: 4805 ldr r0, [pc, #20] ; (8001248 ) - 8001234: f004 ff6e bl 8006114 + 8001234: f004 ff70 bl 8006118 8001238: 4603 mov r3, r0 800123a: 2b00 cmp r3, #0 800123c: d001 beq.n 8001242 { Error_Handler(); - 800123e: f001 f9ff bl 8002640 + 800123e: f001 fa01 bl 8002644 } /* USER CODE BEGIN DMA2D_Init 2 */ @@ -2689,39 +2689,39 @@ static void MX_I2C1_Init(void) 8001288: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c1) != HAL_OK) 800128a: 480e ldr r0, [pc, #56] ; (80012c4 ) - 800128c: f006 fcdc bl 8007c48 + 800128c: f006 fcde bl 8007c4c 8001290: 4603 mov r3, r0 8001292: 2b00 cmp r3, #0 8001294: d001 beq.n 800129a { Error_Handler(); - 8001296: f001 f9d3 bl 8002640 + 8001296: f001 f9d5 bl 8002644 } /** Configure Analogue filter */ if (HAL_I2CEx_ConfigAnalogFilter(&hi2c1, I2C_ANALOGFILTER_ENABLE) != HAL_OK) 800129a: 2100 movs r1, #0 800129c: 4809 ldr r0, [pc, #36] ; (80012c4 ) - 800129e: f007 f9eb bl 8008678 + 800129e: f007 f9ed bl 800867c 80012a2: 4603 mov r3, r0 80012a4: 2b00 cmp r3, #0 80012a6: d001 beq.n 80012ac { Error_Handler(); - 80012a8: f001 f9ca bl 8002640 + 80012a8: f001 f9cc bl 8002644 } /** Configure Digital filter */ if (HAL_I2CEx_ConfigDigitalFilter(&hi2c1, 0) != HAL_OK) 80012ac: 2100 movs r1, #0 80012ae: 4805 ldr r0, [pc, #20] ; (80012c4 ) - 80012b0: f007 fa2d bl 800870e + 80012b0: f007 fa2f bl 8008712 80012b4: 4603 mov r3, r0 80012b6: 2b00 cmp r3, #0 80012b8: d001 beq.n 80012be { Error_Handler(); - 80012ba: f001 f9c1 bl 8002640 + 80012ba: f001 f9c3 bl 8002644 } /* USER CODE BEGIN I2C1_Init 2 */ @@ -2787,39 +2787,39 @@ static void MX_I2C3_Init(void) 8001308: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c3) != HAL_OK) 800130a: 480e ldr r0, [pc, #56] ; (8001344 ) - 800130c: f006 fc9c bl 8007c48 + 800130c: f006 fc9e bl 8007c4c 8001310: 4603 mov r3, r0 8001312: 2b00 cmp r3, #0 8001314: d001 beq.n 800131a { Error_Handler(); - 8001316: f001 f993 bl 8002640 + 8001316: f001 f995 bl 8002644 } /** Configure Analogue filter */ if (HAL_I2CEx_ConfigAnalogFilter(&hi2c3, I2C_ANALOGFILTER_ENABLE) != HAL_OK) 800131a: 2100 movs r1, #0 800131c: 4809 ldr r0, [pc, #36] ; (8001344 ) - 800131e: f007 f9ab bl 8008678 + 800131e: f007 f9ad bl 800867c 8001322: 4603 mov r3, r0 8001324: 2b00 cmp r3, #0 8001326: d001 beq.n 800132c { Error_Handler(); - 8001328: f001 f98a bl 8002640 + 8001328: f001 f98c bl 8002644 } /** Configure Digital filter */ if (HAL_I2CEx_ConfigDigitalFilter(&hi2c3, 0) != HAL_OK) 800132c: 2100 movs r1, #0 800132e: 4805 ldr r0, [pc, #20] ; (8001344 ) - 8001330: f007 f9ed bl 800870e + 8001330: f007 f9ef bl 8008712 8001334: 4603 mov r3, r0 8001336: 2b00 cmp r3, #0 8001338: d001 beq.n 800133e { Error_Handler(); - 800133a: f001 f981 bl 8002640 + 800133a: f001 f983 bl 8002644 } /* USER CODE BEGIN I2C3_Init 2 */ @@ -2853,7 +2853,7 @@ static void MX_LTDC_Init(void) 8001358: 2234 movs r2, #52 ; 0x34 800135a: 2100 movs r1, #0 800135c: 4618 mov r0, r3 - 800135e: f01b f96a bl 801c636 + 800135e: f01b f972 bl 801c646 /* USER CODE BEGIN LTDC_Init 1 */ @@ -2924,13 +2924,13 @@ static void MX_LTDC_Init(void) 80013cc: f883 2036 strb.w r2, [r3, #54] ; 0x36 if (HAL_LTDC_Init(&hltdc) != HAL_OK) 80013d0: 481e ldr r0, [pc, #120] ; (800144c ) - 80013d2: f007 f9e9 bl 80087a8 + 80013d2: f007 f9eb bl 80087ac 80013d6: 4603 mov r3, r0 80013d8: 2b00 cmp r3, #0 80013da: d001 beq.n 80013e0 { Error_Handler(); - 80013dc: f001 f930 bl 8002640 + 80013dc: f001 f932 bl 8002644 } pLayerCfg.WindowX0 = 0; 80013e0: 2300 movs r3, #0 @@ -2982,13 +2982,13 @@ static void MX_LTDC_Init(void) 8001430: 2200 movs r2, #0 8001432: 4619 mov r1, r3 8001434: 4805 ldr r0, [pc, #20] ; (800144c ) - 8001436: f007 fb49 bl 8008acc + 8001436: f007 fb4b bl 8008ad0 800143a: 4603 mov r3, r0 800143c: 2b00 cmp r3, #0 800143e: d001 beq.n 8001444 { Error_Handler(); - 8001440: f001 f8fe bl 8002640 + 8001440: f001 f900 bl 8002644 } /* USER CODE BEGIN LTDC_Init 2 */ @@ -3022,13 +3022,13 @@ static void MX_RNG_Init(void) 800145c: 601a str r2, [r3, #0] if (HAL_RNG_Init(&hrng) != HAL_OK) 800145e: 4805 ldr r0, [pc, #20] ; (8001474 ) - 8001460: f008 fe10 bl 800a084 + 8001460: f008 fe12 bl 800a088 8001464: 4603 mov r3, r0 8001466: 2b00 cmp r3, #0 8001468: d001 beq.n 800146e { Error_Handler(); - 800146a: f001 f8e9 bl 8002640 + 800146a: f001 f8eb bl 8002644 } /* USER CODE BEGIN RNG_Init 2 */ @@ -3073,7 +3073,7 @@ static void MX_RTC_Init(void) 800149a: 222c movs r2, #44 ; 0x2c 800149c: 2100 movs r1, #0 800149e: 4618 mov r0, r3 - 80014a0: f01b f8c9 bl 801c636 + 80014a0: f01b f8d1 bl 801c646 /* USER CODE BEGIN RTC_Init 1 */ /* USER CODE END RTC_Init 1 */ @@ -3109,13 +3109,13 @@ static void MX_RTC_Init(void) 80014cc: 619a str r2, [r3, #24] if (HAL_RTC_Init(&hrtc) != HAL_OK) 80014ce: 483c ldr r0, [pc, #240] ; (80015c0 ) - 80014d0: f008 fe02 bl 800a0d8 + 80014d0: f008 fe04 bl 800a0dc 80014d4: 4603 mov r3, r0 80014d6: 2b00 cmp r3, #0 80014d8: d001 beq.n 80014de { Error_Handler(); - 80014da: f001 f8b1 bl 8002640 + 80014da: f001 f8b3 bl 8002644 /* USER CODE END Check_RTC_BKUP */ @@ -3141,13 +3141,13 @@ static void MX_RTC_Init(void) 80014fc: 2201 movs r2, #1 80014fe: 4619 mov r1, r3 8001500: 482f ldr r0, [pc, #188] ; (80015c0 ) - 8001502: f008 fe65 bl 800a1d0 + 8001502: f008 fe67 bl 800a1d4 8001506: 4603 mov r3, r0 8001508: 2b00 cmp r3, #0 800150a: d001 beq.n 8001510 { Error_Handler(); - 800150c: f001 f898 bl 8002640 + 800150c: f001 f89a bl 8002644 } sDate.WeekDay = RTC_WEEKDAY_MONDAY; 8001510: 2301 movs r3, #1 @@ -3166,13 +3166,13 @@ static void MX_RTC_Init(void) 800152c: 2201 movs r2, #1 800152e: 4619 mov r1, r3 8001530: 4823 ldr r0, [pc, #140] ; (80015c0 ) - 8001532: f008 ff0b bl 800a34c + 8001532: f008 ff0d bl 800a350 8001536: 4603 mov r3, r0 8001538: 2b00 cmp r3, #0 800153a: d001 beq.n 8001540 { Error_Handler(); - 800153c: f001 f880 bl 8002640 + 800153c: f001 f882 bl 8002644 } /** Enable the Alarm A */ @@ -3214,13 +3214,13 @@ static void MX_RTC_Init(void) 8001572: 2201 movs r2, #1 8001574: 4619 mov r1, r3 8001576: 4812 ldr r0, [pc, #72] ; (80015c0 ) - 8001578: f008 ff90 bl 800a49c + 8001578: f008 ff92 bl 800a4a0 800157c: 4603 mov r3, r0 800157e: 2b00 cmp r3, #0 8001580: d001 beq.n 8001586 { Error_Handler(); - 8001582: f001 f85d bl 8002640 + 8001582: f001 f85f bl 8002644 } /** Enable the Alarm B */ @@ -3232,13 +3232,13 @@ static void MX_RTC_Init(void) 800158e: 2201 movs r2, #1 8001590: 4619 mov r1, r3 8001592: 480b ldr r0, [pc, #44] ; (80015c0 ) - 8001594: f008 ff82 bl 800a49c + 8001594: f008 ff84 bl 800a4a0 8001598: 4603 mov r3, r0 800159a: 2b00 cmp r3, #0 800159c: d001 beq.n 80015a2 { Error_Handler(); - 800159e: f001 f84f bl 8002640 + 800159e: f001 f851 bl 8002644 } /** Enable the TimeStamp */ @@ -3246,13 +3246,13 @@ static void MX_RTC_Init(void) 80015a2: 2202 movs r2, #2 80015a4: 2100 movs r1, #0 80015a6: 4806 ldr r0, [pc, #24] ; (80015c0 ) - 80015a8: f009 f902 bl 800a7b0 + 80015a8: f009 f904 bl 800a7b4 80015ac: 4603 mov r3, r0 80015ae: 2b00 cmp r3, #0 80015b0: d001 beq.n 80015b6 { Error_Handler(); - 80015b2: f001 f845 bl 8002640 + 80015b2: f001 f847 bl 8002644 } /* USER CODE BEGIN RTC_Init 2 */ @@ -3339,13 +3339,13 @@ static void MX_SPI2_Init(void) 8001624: 635a str r2, [r3, #52] ; 0x34 if (HAL_SPI_Init(&hspi2) != HAL_OK) 8001626: 4805 ldr r0, [pc, #20] ; (800163c ) - 8001628: f009 f997 bl 800a95a + 8001628: f009 f999 bl 800a95e 800162c: 4603 mov r3, r0 800162e: 2b00 cmp r3, #0 8001630: d001 beq.n 8001636 { Error_Handler(); - 8001632: f001 f805 bl 8002640 + 8001632: f001 f807 bl 8002644 } /* USER CODE BEGIN SPI2_Init 2 */ @@ -3420,13 +3420,13 @@ static void MX_TIM1_Init(void) 800168c: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim1) != HAL_OK) 800168e: 4815 ldr r0, [pc, #84] ; (80016e4 ) - 8001690: f009 f9f5 bl 800aa7e + 8001690: f009 f9f7 bl 800aa82 8001694: 4603 mov r3, r0 8001696: 2b00 cmp r3, #0 8001698: d001 beq.n 800169e { Error_Handler(); - 800169a: f000 ffd1 bl 8002640 + 800169a: f000 ffd3 bl 8002644 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 800169e: f44f 5380 mov.w r3, #4096 ; 0x1000 @@ -3435,13 +3435,13 @@ static void MX_TIM1_Init(void) 80016a4: f107 0310 add.w r3, r7, #16 80016a8: 4619 mov r1, r3 80016aa: 480e ldr r0, [pc, #56] ; (80016e4 ) - 80016ac: f009 fca8 bl 800b000 + 80016ac: f009 fcaa bl 800b004 80016b0: 4603 mov r3, r0 80016b2: 2b00 cmp r3, #0 80016b4: d001 beq.n 80016ba { Error_Handler(); - 80016b6: f000 ffc3 bl 8002640 + 80016b6: f000 ffc5 bl 8002644 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 80016ba: 2300 movs r3, #0 @@ -3456,13 +3456,13 @@ static void MX_TIM1_Init(void) 80016c6: 1d3b adds r3, r7, #4 80016c8: 4619 mov r1, r3 80016ca: 4806 ldr r0, [pc, #24] ; (80016e4 ) - 80016cc: f00a f9dc bl 800ba88 + 80016cc: f00a f9de bl 800ba8c 80016d0: 4603 mov r3, r0 80016d2: 2b00 cmp r3, #0 80016d4: d001 beq.n 80016da { Error_Handler(); - 80016d6: f000 ffb3 bl 8002640 + 80016d6: f000 ffb5 bl 8002644 } /* USER CODE BEGIN TIM1_Init 2 */ @@ -3535,13 +3535,13 @@ static void MX_TIM2_Init(void) 8001730: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim2) != HAL_OK) 8001732: 4814 ldr r0, [pc, #80] ; (8001784 ) - 8001734: f009 f9a3 bl 800aa7e + 8001734: f009 f9a5 bl 800aa82 8001738: 4603 mov r3, r0 800173a: 2b00 cmp r3, #0 800173c: d001 beq.n 8001742 { Error_Handler(); - 800173e: f000 ff7f bl 8002640 + 800173e: f000 ff81 bl 8002644 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 8001742: f44f 5380 mov.w r3, #4096 ; 0x1000 @@ -3550,13 +3550,13 @@ static void MX_TIM2_Init(void) 8001748: f107 0310 add.w r3, r7, #16 800174c: 4619 mov r1, r3 800174e: 480d ldr r0, [pc, #52] ; (8001784 ) - 8001750: f009 fc56 bl 800b000 + 8001750: f009 fc58 bl 800b004 8001754: 4603 mov r3, r0 8001756: 2b00 cmp r3, #0 8001758: d001 beq.n 800175e { Error_Handler(); - 800175a: f000 ff71 bl 8002640 + 800175a: f000 ff73 bl 8002644 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 800175e: 2300 movs r3, #0 @@ -3568,13 +3568,13 @@ static void MX_TIM2_Init(void) 8001766: 1d3b adds r3, r7, #4 8001768: 4619 mov r1, r3 800176a: 4806 ldr r0, [pc, #24] ; (8001784 ) - 800176c: f00a f98c bl 800ba88 + 800176c: f00a f98e bl 800ba8c 8001770: 4603 mov r3, r0 8001772: 2b00 cmp r3, #0 8001774: d001 beq.n 800177a { Error_Handler(); - 8001776: f000 ff63 bl 8002640 + 8001776: f000 ff65 bl 8002644 } /* USER CODE BEGIN TIM2_Init 2 */ @@ -3664,13 +3664,13 @@ static void MX_TIM3_Init(void) 80017ee: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim3) != HAL_OK) 80017f0: 482a ldr r0, [pc, #168] ; (800189c ) - 80017f2: f009 f944 bl 800aa7e + 80017f2: f009 f946 bl 800aa82 80017f6: 4603 mov r3, r0 80017f8: 2b00 cmp r3, #0 80017fa: d001 beq.n 8001800 { Error_Handler(); - 80017fc: f000 ff20 bl 8002640 + 80017fc: f000 ff22 bl 8002644 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 8001800: f44f 5380 mov.w r3, #4096 ; 0x1000 @@ -3679,23 +3679,23 @@ static void MX_TIM3_Init(void) 8001806: f107 0340 add.w r3, r7, #64 ; 0x40 800180a: 4619 mov r1, r3 800180c: 4823 ldr r0, [pc, #140] ; (800189c ) - 800180e: f009 fbf7 bl 800b000 + 800180e: f009 fbf9 bl 800b004 8001812: 4603 mov r3, r0 8001814: 2b00 cmp r3, #0 8001816: d001 beq.n 800181c { Error_Handler(); - 8001818: f000 ff12 bl 8002640 + 8001818: f000 ff14 bl 8002644 } if (HAL_TIM_PWM_Init(&htim3) != HAL_OK) 800181c: 481f ldr r0, [pc, #124] ; (800189c ) - 800181e: f009 f983 bl 800ab28 + 800181e: f009 f985 bl 800ab2c 8001822: 4603 mov r3, r0 8001824: 2b00 cmp r3, #0 8001826: d001 beq.n 800182c { Error_Handler(); - 8001828: f000 ff0a bl 8002640 + 8001828: f000 ff0c bl 8002644 } sSlaveConfig.SlaveMode = TIM_SLAVEMODE_DISABLE; 800182c: 2300 movs r3, #0 @@ -3707,13 +3707,13 @@ static void MX_TIM3_Init(void) 8001834: f107 032c add.w r3, r7, #44 ; 0x2c 8001838: 4619 mov r1, r3 800183a: 4818 ldr r0, [pc, #96] ; (800189c ) - 800183c: f009 fc9a bl 800b174 + 800183c: f009 fc9c bl 800b178 8001840: 4603 mov r3, r0 8001842: 2b00 cmp r3, #0 8001844: d001 beq.n 800184a { Error_Handler(); - 8001846: f000 fefb bl 8002640 + 8001846: f000 fefd bl 8002644 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 800184a: 2300 movs r3, #0 @@ -3725,13 +3725,13 @@ static void MX_TIM3_Init(void) 8001852: f107 0320 add.w r3, r7, #32 8001856: 4619 mov r1, r3 8001858: 4810 ldr r0, [pc, #64] ; (800189c ) - 800185a: f00a f915 bl 800ba88 + 800185a: f00a f917 bl 800ba8c 800185e: 4603 mov r3, r0 8001860: 2b00 cmp r3, #0 8001862: d001 beq.n 8001868 { Error_Handler(); - 8001864: f000 feec bl 8002640 + 8001864: f000 feee bl 8002644 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 8001868: 2360 movs r3, #96 ; 0x60 @@ -3750,20 +3750,20 @@ static void MX_TIM3_Init(void) 800187a: 2200 movs r2, #0 800187c: 4619 mov r1, r3 800187e: 4807 ldr r0, [pc, #28] ; (800189c ) - 8001880: f009 faa6 bl 800add0 + 8001880: f009 faa8 bl 800add4 8001884: 4603 mov r3, r0 8001886: 2b00 cmp r3, #0 8001888: d001 beq.n 800188e { Error_Handler(); - 800188a: f000 fed9 bl 8002640 + 800188a: f000 fedb bl 8002644 } /* USER CODE BEGIN TIM3_Init 2 */ /* USER CODE END TIM3_Init 2 */ HAL_TIM_MspPostInit(&htim3); 800188e: 4803 ldr r0, [pc, #12] ; (800189c ) - 8001890: f002 ffc2 bl 8004818 + 8001890: f002 ffc4 bl 800481c } 8001894: bf00 nop @@ -3831,13 +3831,13 @@ static void MX_TIM5_Init(void) 80018e6: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim5) != HAL_OK) 80018e8: 4813 ldr r0, [pc, #76] ; (8001938 ) - 80018ea: f009 f8c8 bl 800aa7e + 80018ea: f009 f8ca bl 800aa82 80018ee: 4603 mov r3, r0 80018f0: 2b00 cmp r3, #0 80018f2: d001 beq.n 80018f8 { Error_Handler(); - 80018f4: f000 fea4 bl 8002640 + 80018f4: f000 fea6 bl 8002644 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 80018f8: f44f 5380 mov.w r3, #4096 ; 0x1000 @@ -3846,13 +3846,13 @@ static void MX_TIM5_Init(void) 80018fe: f107 0310 add.w r3, r7, #16 8001902: 4619 mov r1, r3 8001904: 480c ldr r0, [pc, #48] ; (8001938 ) - 8001906: f009 fb7b bl 800b000 + 8001906: f009 fb7d bl 800b004 800190a: 4603 mov r3, r0 800190c: 2b00 cmp r3, #0 800190e: d001 beq.n 8001914 { Error_Handler(); - 8001910: f000 fe96 bl 8002640 + 8001910: f000 fe98 bl 8002644 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 8001914: 2300 movs r3, #0 @@ -3864,13 +3864,13 @@ static void MX_TIM5_Init(void) 800191c: 1d3b adds r3, r7, #4 800191e: 4619 mov r1, r3 8001920: 4805 ldr r0, [pc, #20] ; (8001938 ) - 8001922: f00a f8b1 bl 800ba88 + 8001922: f00a f8b3 bl 800ba8c 8001926: 4603 mov r3, r0 8001928: 2b00 cmp r3, #0 800192a: d001 beq.n 8001930 { Error_Handler(); - 800192c: f000 fe88 bl 8002640 + 800192c: f000 fe8a bl 8002644 } /* USER CODE BEGIN TIM5_Init 2 */ @@ -3927,7 +3927,7 @@ static void MX_TIM8_Init(void) 8001976: 222c movs r2, #44 ; 0x2c 8001978: 2100 movs r1, #0 800197a: 4618 mov r0, r3 - 800197c: f01a fe5b bl 801c636 + 800197c: f01a fe63 bl 801c646 /* USER CODE BEGIN TIM8_Init 1 */ @@ -3962,13 +3962,13 @@ static void MX_TIM8_Init(void) 80019aa: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim8) != HAL_OK) 80019ac: 4837 ldr r0, [pc, #220] ; (8001a8c ) - 80019ae: f009 f866 bl 800aa7e + 80019ae: f009 f868 bl 800aa82 80019b2: 4603 mov r3, r0 80019b4: 2b00 cmp r3, #0 80019b6: d001 beq.n 80019bc { Error_Handler(); - 80019b8: f000 fe42 bl 8002640 + 80019b8: f000 fe44 bl 8002644 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 80019bc: f44f 5380 mov.w r3, #4096 ; 0x1000 @@ -3977,23 +3977,23 @@ static void MX_TIM8_Init(void) 80019c2: f107 0358 add.w r3, r7, #88 ; 0x58 80019c6: 4619 mov r1, r3 80019c8: 4830 ldr r0, [pc, #192] ; (8001a8c ) - 80019ca: f009 fb19 bl 800b000 + 80019ca: f009 fb1b bl 800b004 80019ce: 4603 mov r3, r0 80019d0: 2b00 cmp r3, #0 80019d2: d001 beq.n 80019d8 { Error_Handler(); - 80019d4: f000 fe34 bl 8002640 + 80019d4: f000 fe36 bl 8002644 } if (HAL_TIM_PWM_Init(&htim8) != HAL_OK) 80019d8: 482c ldr r0, [pc, #176] ; (8001a8c ) - 80019da: f009 f8a5 bl 800ab28 + 80019da: f009 f8a7 bl 800ab2c 80019de: 4603 mov r3, r0 80019e0: 2b00 cmp r3, #0 80019e2: d001 beq.n 80019e8 { Error_Handler(); - 80019e4: f000 fe2c bl 8002640 + 80019e4: f000 fe2e bl 8002644 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 80019e8: 2300 movs r3, #0 @@ -4008,13 +4008,13 @@ static void MX_TIM8_Init(void) 80019f4: f107 034c add.w r3, r7, #76 ; 0x4c 80019f8: 4619 mov r1, r3 80019fa: 4824 ldr r0, [pc, #144] ; (8001a8c ) - 80019fc: f00a f844 bl 800ba88 + 80019fc: f00a f846 bl 800ba8c 8001a00: 4603 mov r3, r0 8001a02: 2b00 cmp r3, #0 8001a04: d001 beq.n 8001a0a { Error_Handler(); - 8001a06: f000 fe1b bl 8002640 + 8001a06: f000 fe1d bl 8002644 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 8001a0a: 2360 movs r3, #96 ; 0x60 @@ -4039,13 +4039,13 @@ static void MX_TIM8_Init(void) 8001a26: 220c movs r2, #12 8001a28: 4619 mov r1, r3 8001a2a: 4818 ldr r0, [pc, #96] ; (8001a8c ) - 8001a2c: f009 f9d0 bl 800add0 + 8001a2c: f009 f9d2 bl 800add4 8001a30: 4603 mov r3, r0 8001a32: 2b00 cmp r3, #0 8001a34: d001 beq.n 8001a3a { Error_Handler(); - 8001a36: f000 fe03 bl 8002640 + 8001a36: f000 fe05 bl 8002644 } sBreakDeadTimeConfig.OffStateRunMode = TIM_OSSR_DISABLE; 8001a3a: 2300 movs r3, #0 @@ -4084,20 +4084,20 @@ static void MX_TIM8_Init(void) 8001a6a: 1d3b adds r3, r7, #4 8001a6c: 4619 mov r1, r3 8001a6e: 4807 ldr r0, [pc, #28] ; (8001a8c ) - 8001a70: f00a f898 bl 800bba4 + 8001a70: f00a f89a bl 800bba8 8001a74: 4603 mov r3, r0 8001a76: 2b00 cmp r3, #0 8001a78: d001 beq.n 8001a7e { Error_Handler(); - 8001a7a: f000 fde1 bl 8002640 + 8001a7a: f000 fde3 bl 8002644 } /* USER CODE BEGIN TIM8_Init 2 */ /* USER CODE END TIM8_Init 2 */ HAL_TIM_MspPostInit(&htim8); 8001a7e: 4803 ldr r0, [pc, #12] ; (8001a8c ) - 8001a80: f002 feca bl 8004818 + 8001a80: f002 fecc bl 800481c } 8001a84: bf00 nop @@ -4163,13 +4163,13 @@ static void MX_UART7_Init(void) 8001ad4: 625a str r2, [r3, #36] ; 0x24 if (HAL_UART_Init(&huart7) != HAL_OK) 8001ad6: 4805 ldr r0, [pc, #20] ; (8001aec ) - 8001ad8: f00a f900 bl 800bcdc + 8001ad8: f00a f902 bl 800bce0 8001adc: 4603 mov r3, r0 8001ade: 2b00 cmp r3, #0 8001ae0: d001 beq.n 8001ae6 { Error_Handler(); - 8001ae2: f000 fdad bl 8002640 + 8001ae2: f000 fdaf bl 8002644 } /* USER CODE BEGIN UART7_Init 2 */ @@ -4238,13 +4238,13 @@ static void MX_USART1_UART_Init(void) 8001b34: 625a str r2, [r3, #36] ; 0x24 if (HAL_UART_Init(&huart1) != HAL_OK) 8001b36: 4805 ldr r0, [pc, #20] ; (8001b4c ) - 8001b38: f00a f8d0 bl 800bcdc + 8001b38: f00a f8d2 bl 800bce0 8001b3c: 4603 mov r3, r0 8001b3e: 2b00 cmp r3, #0 8001b40: d001 beq.n 8001b46 { Error_Handler(); - 8001b42: f000 fd7d bl 8002640 + 8001b42: f000 fd7f bl 8002644 } /* USER CODE BEGIN USART1_Init 2 */ @@ -4313,13 +4313,13 @@ static void MX_USART6_UART_Init(void) 8001b94: 625a str r2, [r3, #36] ; 0x24 if (HAL_UART_Init(&huart6) != HAL_OK) 8001b96: 4805 ldr r0, [pc, #20] ; (8001bac ) - 8001b98: f00a f8a0 bl 800bcdc + 8001b98: f00a f8a2 bl 800bce0 8001b9c: 4603 mov r3, r0 8001b9e: 2b00 cmp r3, #0 8001ba0: d001 beq.n 8001ba6 { Error_Handler(); - 8001ba2: f000 fd4d bl 8002640 + 8001ba2: f000 fd4f bl 8002644 } /* USER CODE BEGIN USART6_Init 2 */ @@ -4432,13 +4432,13 @@ static void MX_FMC_Init(void) 8001c2a: 1d3b adds r3, r7, #4 8001c2c: 4619 mov r1, r3 8001c2e: 4806 ldr r0, [pc, #24] ; (8001c48 ) - 8001c30: f008 fe14 bl 800a85c + 8001c30: f008 fe16 bl 800a860 8001c34: 4603 mov r3, r0 8001c36: 2b00 cmp r3, #0 8001c38: d001 beq.n 8001c3e { Error_Handler( ); - 8001c3a: f000 fd01 bl 8002640 + 8001c3a: f000 fd03 bl 8002644 } /* USER CODE BEGIN FMC_Init 2 */ @@ -4600,49 +4600,49 @@ static void MX_GPIO_Init(void) 8001d6e: 2200 movs r2, #0 8001d70: 2160 movs r1, #96 ; 0x60 8001d72: 486e ldr r0, [pc, #440] ; (8001f2c ) - 8001d74: f005 ff4e bl 8007c14 + 8001d74: f005 ff50 bl 8007c18 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(OTG_FS_PowerSwitchOn_GPIO_Port, OTG_FS_PowerSwitchOn_Pin, GPIO_PIN_SET); 8001d78: 2201 movs r2, #1 8001d7a: 2120 movs r1, #32 8001d7c: 486c ldr r0, [pc, #432] ; (8001f30 ) - 8001d7e: f005 ff49 bl 8007c14 + 8001d7e: f005 ff4b bl 8007c18 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LED16_GPIO_Port, LED16_Pin, GPIO_PIN_RESET); 8001d82: 2200 movs r2, #0 8001d84: 2108 movs r1, #8 8001d86: 486a ldr r0, [pc, #424] ; (8001f30 ) - 8001d88: f005 ff44 bl 8007c14 + 8001d88: f005 ff46 bl 8007c18 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LED3_GPIO_Port, LED3_Pin, GPIO_PIN_RESET); 8001d8c: 2200 movs r2, #0 8001d8e: 2108 movs r1, #8 8001d90: 4868 ldr r0, [pc, #416] ; (8001f34 ) - 8001d92: f005 ff3f bl 8007c14 + 8001d92: f005 ff41 bl 8007c18 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LCD_BL_CTRL_GPIO_Port, LCD_BL_CTRL_Pin, GPIO_PIN_SET); 8001d96: 2201 movs r2, #1 8001d98: 2108 movs r1, #8 8001d9a: 4867 ldr r0, [pc, #412] ; (8001f38 ) - 8001d9c: f005 ff3a bl 8007c14 + 8001d9c: f005 ff3c bl 8007c18 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LCD_DISP_GPIO_Port, LCD_DISP_Pin, GPIO_PIN_SET); 8001da0: 2201 movs r2, #1 8001da2: f44f 5180 mov.w r1, #4096 ; 0x1000 8001da6: 4863 ldr r0, [pc, #396] ; (8001f34 ) - 8001da8: f005 ff34 bl 8007c14 + 8001da8: f005 ff36 bl 8007c18 /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOH, LED13_Pin|LED17_Pin|LED11_Pin|LED12_Pin 8001dac: 2200 movs r2, #0 8001dae: f645 6140 movw r1, #24128 ; 0x5e40 8001db2: 4862 ldr r0, [pc, #392] ; (8001f3c ) - 8001db4: f005 ff2e bl 8007c14 + 8001db4: f005 ff30 bl 8007c18 |LED2_Pin|LED18_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ @@ -4650,7 +4650,7 @@ static void MX_GPIO_Init(void) 8001db8: 2200 movs r2, #0 8001dba: 2108 movs r1, #8 8001dbc: 4860 ldr r0, [pc, #384] ; (8001f40 ) - 8001dbe: f005 ff29 bl 8007c14 + 8001dbe: f005 ff2b bl 8007c18 /*Configure GPIO pin : PE3 */ GPIO_InitStruct.Pin = GPIO_PIN_3; @@ -4666,7 +4666,7 @@ static void MX_GPIO_Init(void) 8001dce: f107 032c add.w r3, r7, #44 ; 0x2c 8001dd2: 4619 mov r1, r3 8001dd4: 4855 ldr r0, [pc, #340] ; (8001f2c ) - 8001dd6: f005 fc51 bl 800767c + 8001dd6: f005 fc53 bl 8007680 /*Configure GPIO pins : ULPI_D7_Pin ULPI_D6_Pin ULPI_D5_Pin ULPI_D2_Pin ULPI_D1_Pin ULPI_D4_Pin */ @@ -4690,7 +4690,7 @@ static void MX_GPIO_Init(void) 8001df0: f107 032c add.w r3, r7, #44 ; 0x2c 8001df4: 4619 mov r1, r3 8001df6: 4853 ldr r0, [pc, #332] ; (8001f44 ) - 8001df8: f005 fc40 bl 800767c + 8001df8: f005 fc42 bl 8007680 /*Configure GPIO pins : BP2_Pin BP1_Pin */ GPIO_InitStruct.Pin = BP2_Pin|BP1_Pin; @@ -4706,7 +4706,7 @@ static void MX_GPIO_Init(void) 8001e0a: f107 032c add.w r3, r7, #44 ; 0x2c 8001e0e: 4619 mov r1, r3 8001e10: 484d ldr r0, [pc, #308] ; (8001f48 ) - 8001e12: f005 fc33 bl 800767c + 8001e12: f005 fc35 bl 8007680 /*Configure GPIO pins : LED14_Pin LED15_Pin */ GPIO_InitStruct.Pin = LED14_Pin|LED15_Pin; @@ -4725,7 +4725,7 @@ static void MX_GPIO_Init(void) 8001e26: f107 032c add.w r3, r7, #44 ; 0x2c 8001e2a: 4619 mov r1, r3 8001e2c: 483f ldr r0, [pc, #252] ; (8001f2c ) - 8001e2e: f005 fc25 bl 800767c + 8001e2e: f005 fc27 bl 8007680 /*Configure GPIO pin : OTG_FS_VBUS_Pin */ GPIO_InitStruct.Pin = OTG_FS_VBUS_Pin; @@ -4741,7 +4741,7 @@ static void MX_GPIO_Init(void) 8001e40: f107 032c add.w r3, r7, #44 ; 0x2c 8001e44: 4619 mov r1, r3 8001e46: 4841 ldr r0, [pc, #260] ; (8001f4c ) - 8001e48: f005 fc18 bl 800767c + 8001e48: f005 fc1a bl 8007680 /*Configure GPIO pin : Audio_INT_Pin */ GPIO_InitStruct.Pin = Audio_INT_Pin; @@ -4757,7 +4757,7 @@ static void MX_GPIO_Init(void) 8001e58: f107 032c add.w r3, r7, #44 ; 0x2c 8001e5c: 4619 mov r1, r3 8001e5e: 4834 ldr r0, [pc, #208] ; (8001f30 ) - 8001e60: f005 fc0c bl 800767c + 8001e60: f005 fc0e bl 8007680 /*Configure GPIO pins : OTG_FS_PowerSwitchOn_Pin LED16_Pin */ GPIO_InitStruct.Pin = OTG_FS_PowerSwitchOn_Pin|LED16_Pin; @@ -4776,7 +4776,7 @@ static void MX_GPIO_Init(void) 8001e74: f107 032c add.w r3, r7, #44 ; 0x2c 8001e78: 4619 mov r1, r3 8001e7a: 482d ldr r0, [pc, #180] ; (8001f30 ) - 8001e7c: f005 fbfe bl 800767c + 8001e7c: f005 fc00 bl 8007680 /*Configure GPIO pins : LED3_Pin LCD_DISP_Pin */ GPIO_InitStruct.Pin = LED3_Pin|LCD_DISP_Pin; @@ -4795,7 +4795,7 @@ static void MX_GPIO_Init(void) 8001e92: f107 032c add.w r3, r7, #44 ; 0x2c 8001e96: 4619 mov r1, r3 8001e98: 4826 ldr r0, [pc, #152] ; (8001f34 ) - 8001e9a: f005 fbef bl 800767c + 8001e9a: f005 fbf1 bl 8007680 /*Configure GPIO pin : uSD_Detect_Pin */ GPIO_InitStruct.Pin = uSD_Detect_Pin; @@ -4811,7 +4811,7 @@ static void MX_GPIO_Init(void) 8001eac: f107 032c add.w r3, r7, #44 ; 0x2c 8001eb0: 4619 mov r1, r3 8001eb2: 4828 ldr r0, [pc, #160] ; (8001f54 ) - 8001eb4: f005 fbe2 bl 800767c + 8001eb4: f005 fbe4 bl 8007680 /*Configure GPIO pin : LCD_BL_CTRL_Pin */ GPIO_InitStruct.Pin = LCD_BL_CTRL_Pin; @@ -4830,7 +4830,7 @@ static void MX_GPIO_Init(void) 8001ec8: f107 032c add.w r3, r7, #44 ; 0x2c 8001ecc: 4619 mov r1, r3 8001ece: 481a ldr r0, [pc, #104] ; (8001f38 ) - 8001ed0: f005 fbd4 bl 800767c + 8001ed0: f005 fbd6 bl 8007680 /*Configure GPIO pin : OTG_FS_OverCurrent_Pin */ GPIO_InitStruct.Pin = OTG_FS_OverCurrent_Pin; @@ -4846,7 +4846,7 @@ static void MX_GPIO_Init(void) 8001ee0: f107 032c add.w r3, r7, #44 ; 0x2c 8001ee4: 4619 mov r1, r3 8001ee6: 4812 ldr r0, [pc, #72] ; (8001f30 ) - 8001ee8: f005 fbc8 bl 800767c + 8001ee8: f005 fbca bl 8007680 /*Configure GPIO pins : TP3_Pin NC2_Pin */ GPIO_InitStruct.Pin = TP3_Pin|NC2_Pin; @@ -4862,7 +4862,7 @@ static void MX_GPIO_Init(void) 8001efa: f107 032c add.w r3, r7, #44 ; 0x2c 8001efe: 4619 mov r1, r3 8001f00: 480e ldr r0, [pc, #56] ; (8001f3c ) - 8001f02: f005 fbbb bl 800767c + 8001f02: f005 fbbd bl 8007680 /*Configure GPIO pins : LED13_Pin LED17_Pin LED11_Pin LED12_Pin LED2_Pin LED18_Pin */ @@ -4883,7 +4883,7 @@ static void MX_GPIO_Init(void) 8001f18: f107 032c add.w r3, r7, #44 ; 0x2c 8001f1c: 4619 mov r1, r3 8001f1e: 4807 ldr r0, [pc, #28] ; (8001f3c ) - 8001f20: f005 fbac bl 800767c + 8001f20: f005 fbae bl 8007680 8001f24: e018 b.n 8001f58 8001f26: bf00 nop 8001f28: 40023800 .word 0x40023800 @@ -4913,7 +4913,7 @@ static void MX_GPIO_Init(void) 8001f66: f107 032c add.w r3, r7, #44 ; 0x2c 8001f6a: 4619 mov r1, r3 8001f6c: 4829 ldr r0, [pc, #164] ; (8002014 ) - 8001f6e: f005 fb85 bl 800767c + 8001f6e: f005 fb87 bl 8007680 /*Configure GPIO pin : ULPI_NXT_Pin */ GPIO_InitStruct.Pin = ULPI_NXT_Pin; @@ -4935,7 +4935,7 @@ static void MX_GPIO_Init(void) 8001f86: f107 032c add.w r3, r7, #44 ; 0x2c 8001f8a: 4619 mov r1, r3 8001f8c: 4822 ldr r0, [pc, #136] ; (8002018 ) - 8001f8e: f005 fb75 bl 800767c + 8001f8e: f005 fb77 bl 8007680 /*Configure GPIO pins : BP_JOYSTICK_Pin RMII_RXER_Pin */ GPIO_InitStruct.Pin = BP_JOYSTICK_Pin|RMII_RXER_Pin; @@ -4951,7 +4951,7 @@ static void MX_GPIO_Init(void) 8001f9e: f107 032c add.w r3, r7, #44 ; 0x2c 8001fa2: 4619 mov r1, r3 8001fa4: 481d ldr r0, [pc, #116] ; (800201c ) - 8001fa6: f005 fb69 bl 800767c + 8001fa6: f005 fb6b bl 8007680 /*Configure GPIO pins : ULPI_STP_Pin ULPI_DIR_Pin */ GPIO_InitStruct.Pin = ULPI_STP_Pin|ULPI_DIR_Pin; @@ -4973,7 +4973,7 @@ static void MX_GPIO_Init(void) 8001fbe: f107 032c add.w r3, r7, #44 ; 0x2c 8001fc2: 4619 mov r1, r3 8001fc4: 4816 ldr r0, [pc, #88] ; (8002020 ) - 8001fc6: f005 fb59 bl 800767c + 8001fc6: f005 fb5b bl 8007680 /*Configure GPIO pin : EXT_RST_Pin */ GPIO_InitStruct.Pin = EXT_RST_Pin; @@ -4992,7 +4992,7 @@ static void MX_GPIO_Init(void) 8001fda: f107 032c add.w r3, r7, #44 ; 0x2c 8001fde: 4619 mov r1, r3 8001fe0: 480e ldr r0, [pc, #56] ; (800201c ) - 8001fe2: f005 fb4b bl 800767c + 8001fe2: f005 fb4d bl 8007680 /*Configure GPIO pins : ULPI_CLK_Pin ULPI_D0_Pin */ GPIO_InitStruct.Pin = ULPI_CLK_Pin|ULPI_D0_Pin; @@ -5014,7 +5014,7 @@ static void MX_GPIO_Init(void) 8001ffa: f107 032c add.w r3, r7, #44 ; 0x2c 8001ffe: 4619 mov r1, r3 8002000: 4808 ldr r0, [pc, #32] ; (8002024 ) - 8002002: f005 fb3b bl 800767c + 8002002: f005 fb3d bl 8007680 } 8002006: bf00 nop @@ -5042,7 +5042,7 @@ void f_GameMaster(void const * argument) 800202e: 6078 str r0, [r7, #4] /* init code for LWIP */ MX_LWIP_Init(); - 8002030: f00a fbbe bl 800c7b0 + 8002030: f00a fbc0 bl 800c7b4 /* USER CODE BEGIN 5 */ TickType_t xLastWakeTime; const TickType_t xPeriodeTache = 10; @@ -5057,7 +5057,7 @@ void f_GameMaster(void const * argument) 8002038: f107 0308 add.w r3, r7, #8 800203c: 68f9 ldr r1, [r7, #12] 800203e: 4618 mov r0, r3 - 8002040: f00c fd30 bl 800eaa4 + 8002040: f00c fd32 bl 800eaa8 8002044: e7f8 b.n 8002038 ... @@ -5111,22 +5111,22 @@ void f_Joueur_1(void const * argument) 8002080: f107 0308 add.w r3, r7, #8 8002084: 4619 mov r1, r3 8002086: 485a ldr r0, [pc, #360] ; (80021f0 ) - 8002088: f003 f84c bl 8005124 + 8002088: f003 f84e bl 8005128 HAL_ADC_Start(&hadc3); 800208c: 4858 ldr r0, [pc, #352] ; (80021f0 ) - 800208e: f002 ff89 bl 8004fa4 + 800208e: f002 ff8b bl 8004fa8 HAL_ADC_Start(&hadc1); 8002092: 4858 ldr r0, [pc, #352] ; (80021f4 ) - 8002094: f002 ff86 bl 8004fa4 + 8002094: f002 ff88 bl 8004fa8 // Paramètre de l'écran pour la reprouductibilité uint32_t LCD_HEIGHT = BSP_LCD_GetXSize(); - 8002098: f000 fcea bl 8002a70 + 8002098: f000 fcec bl 8002a74 800209c: 63f8 str r0, [r7, #60] ; 0x3c uint32_t LCD_WIDTH = BSP_LCD_GetYSize(); - 800209e: f000 fcfb bl 8002a98 + 800209e: f000 fcfd bl 8002a9c 80020a2: 63b8 str r0, [r7, #56] ; 0x38 /* Infinite loop */ for (;;) @@ -5137,7 +5137,7 @@ void f_Joueur_1(void const * argument) 80020a4: 4b54 ldr r3, [pc, #336] ; (80021f8 ) 80020a6: 681b ldr r3, [r3, #0] 80020a8: 4618 mov r0, r3 - 80020aa: f000 fd79 bl 8002ba0 + 80020aa: f000 fd7b bl 8002ba4 BSP_LCD_FillRect(joueur.x, joueur.y, Width, Height); 80020ae: 4b53 ldr r3, [pc, #332] ; (80021fc ) 80020b0: 8818 ldrh r0, [r3, #0] @@ -5145,7 +5145,7 @@ void f_Joueur_1(void const * argument) 80020b4: 8859 ldrh r1, [r3, #2] 80020b6: f8b7 3040 ldrh.w r3, [r7, #64] ; 0x40 80020ba: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 80020be: f001 f8af bl 8003220 + 80020be: f001 f8b1 bl 8003224 // while (HAL_ADC_PollForConversion(&hadc3, 100) != HAL_OK); // joystick_v = HAL_ADC_GetValue(&hadc3); // while (HAL_ADC_PollForConversion(&hadc1, 100) != HAL_OK); @@ -5252,7 +5252,7 @@ void f_Joueur_1(void const * argument) BSP_LCD_SetTextColor(LCD_COLOR_BLUE); 800218a: 481d ldr r0, [pc, #116] ; (8002200 ) - 800218c: f000 fd08 bl 8002ba0 + 800218c: f000 fd0a bl 8002ba4 BSP_LCD_FillRect(joueur.x, joueur.y, Width, Height); 8002190: 4b1a ldr r3, [pc, #104] ; (80021fc ) 8002192: 8818 ldrh r0, [r3, #0] @@ -5260,7 +5260,7 @@ void f_Joueur_1(void const * argument) 8002196: 8859 ldrh r1, [r3, #2] 8002198: f8b7 3040 ldrh.w r3, [r7, #64] ; 0x40 800219c: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 80021a0: f001 f83e bl 8003220 + 80021a0: f001 f840 bl 8003224 if (xQueueReceive(Queue_JHandle, &missile, 0) == pdPASS) 80021a4: 4b17 ldr r3, [pc, #92] ; (8002204 ) @@ -5268,7 +5268,7 @@ void f_Joueur_1(void const * argument) 80021a8: f107 0118 add.w r1, r7, #24 80021ac: 2200 movs r2, #0 80021ae: 4618 mov r0, r3 - 80021b0: f00b ff38 bl 800e024 + 80021b0: f00b ff3a bl 800e028 80021b4: 4603 mov r3, r0 80021b6: 2b01 cmp r3, #1 80021b8: d107 bne.n 80021ca @@ -5291,7 +5291,7 @@ void f_Joueur_1(void const * argument) 80021d6: f107 012b add.w r1, r7, #43 ; 0x2b 80021da: 2300 movs r3, #0 80021dc: 2200 movs r2, #0 - 80021de: f00b fcf1 bl 800dbc4 + 80021de: f00b fcf3 bl 800dbc8 // TODO La condition sur une entrée analogique pour envoyer un missile // struct Missile missile = {joueur.x, joueur.y,joueur.missile.dx, joueur.missile.dy, 1, joueur.missile.color, joueur.missile.damage}; @@ -5300,7 +5300,7 @@ void f_Joueur_1(void const * argument) 80021e2: f107 032c add.w r3, r7, #44 ; 0x2c 80021e6: 6c79 ldr r1, [r7, #68] ; 0x44 80021e8: 4618 mov r0, r3 - 80021ea: f00c fc5b bl 800eaa4 + 80021ea: f00c fc5d bl 800eaa8 BSP_LCD_SetTextColor(LCD_COLOR_BACKGROUND); 80021ee: e759 b.n 80020a4 80021f0: 20008bc8 .word 0x20008bc8 @@ -5334,7 +5334,7 @@ void f_block_enemie(void const * argument) 8002218: f107 0308 add.w r3, r7, #8 800221c: 68f9 ldr r1, [r7, #12] 800221e: 4618 mov r0, r3 - 8002220: f00c fc40 bl 800eaa4 + 8002220: f00c fc42 bl 800eaa8 8002224: e7f8 b.n 8002218 ... @@ -5357,9 +5357,9 @@ void f_projectile(void const * argument) 8002236: f8c7 3168 str.w r3, [r7, #360] ; 0x168 /* Infinite loop */ struct Missile liste_missile[20]; - struct Missile missile = {70, 70, 0, 1, 0, LCD_COLOR_WHITE, 1,1}; + struct Missile missile = {70, 70, 1, 0, 0, LCD_COLOR_WHITE, 1,1}; 800223a: f107 0308 add.w r3, r7, #8 - 800223e: 4ad9 ldr r2, [pc, #868] ; (80025a4 ) + 800223e: 4ada ldr r2, [pc, #872] ; (80025a8 ) 8002240: 461c mov r4, r3 8002242: 4613 mov r3, r2 8002244: cb0f ldmia r3, {r0, r1, r2, r3} @@ -5376,73985 +5376,73986 @@ void f_projectile(void const * argument) // Paramètre de l'écran pour la reprouductibilité - uint32_t LCD_HEIGHT = 200; //BSP_LCD_GetXSize(); - 8002260: 23c8 movs r3, #200 ; 0xc8 - 8002262: f8c7 3160 str.w r3, [r7, #352] ; 0x160 - uint32_t LCD_WIDTH = 200; //BSP_LCD_GetYSize(); - 8002266: 23c8 movs r3, #200 ; 0xc8 - 8002268: f8c7 315c str.w r3, [r7, #348] ; 0x15c + uint32_t LCD_HEIGHT = BSP_LCD_GetXSize(); + 8002260: f000 fc08 bl 8002a74 + 8002264: f8c7 0160 str.w r0, [r7, #352] ; 0x160 + uint32_t LCD_WIDTH = BSP_LCD_GetYSize(); + 8002268: f000 fc18 bl 8002a9c + 800226c: f8c7 015c str.w r0, [r7, #348] ; 0x15c for (;;) { //xQueueReceive(Queue_NHandle, &missile, 0); //liste_missile[indice++] = missile; for (int i=0;i< indice;i++) - 800226c: 2300 movs r3, #0 - 800226e: f8c7 316c str.w r3, [r7, #364] ; 0x16c - 8002272: e1c1 b.n 80025f8 + 8002270: 2300 movs r3, #0 + 8002272: f8c7 316c str.w r3, [r7, #364] ; 0x16c + 8002276: e1c1 b.n 80025fc { // Si le missile n'est pas sur un bord if (liste_missile[i].valide == 1) - 8002274: f107 0218 add.w r2, r7, #24 - 8002278: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800227c: 011b lsls r3, r3, #4 - 800227e: 4413 add r3, r2 - 8002280: 330d adds r3, #13 - 8002282: 781b ldrb r3, [r3, #0] - 8002284: 2b01 cmp r3, #1 - 8002286: f040 81b2 bne.w 80025ee + 8002278: f107 0218 add.w r2, r7, #24 + 800227c: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002280: 011b lsls r3, r3, #4 + 8002282: 4413 add r3, r2 + 8002284: 330d adds r3, #13 + 8002286: 781b ldrb r3, [r3, #0] + 8002288: 2b01 cmp r3, #1 + 800228a: f040 81b2 bne.w 80025f2 { // Si le missile appartient au joueur : if (liste_missile[i].equipe == 0) - 800228a: f107 0218 add.w r2, r7, #24 - 800228e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002292: 011b lsls r3, r3, #4 - 8002294: 4413 add r3, r2 - 8002296: 3306 adds r3, #6 - 8002298: 781b ldrb r3, [r3, #0] - 800229a: 2b00 cmp r3, #0 - 800229c: f040 80b2 bne.w 8002404 + 800228e: f107 0218 add.w r2, r7, #24 + 8002292: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002296: 011b lsls r3, r3, #4 + 8002298: 4413 add r3, r2 + 800229a: 3306 adds r3, #6 + 800229c: 781b ldrb r3, [r3, #0] + 800229e: 2b00 cmp r3, #0 + 80022a0: f040 80b2 bne.w 8002408 { if ((liste_missile[i].x > 1)&&(liste_missile[i].x < LCD_HEIGHT-1)&&(liste_missile[i].y < LCD_WIDTH-1)&&(liste_missile[i].y > 1)) - 80022a0: f107 0218 add.w r2, r7, #24 - 80022a4: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80022a8: 011b lsls r3, r3, #4 - 80022aa: 4413 add r3, r2 - 80022ac: 881b ldrh r3, [r3, #0] - 80022ae: 2b01 cmp r3, #1 - 80022b0: f240 808a bls.w 80023c8 - 80022b4: f107 0218 add.w r2, r7, #24 - 80022b8: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80022bc: 011b lsls r3, r3, #4 - 80022be: 4413 add r3, r2 - 80022c0: 881b ldrh r3, [r3, #0] - 80022c2: 461a mov r2, r3 - 80022c4: f8d7 3160 ldr.w r3, [r7, #352] ; 0x160 - 80022c8: 3b01 subs r3, #1 - 80022ca: 429a cmp r2, r3 - 80022cc: d27c bcs.n 80023c8 - 80022ce: f107 0218 add.w r2, r7, #24 - 80022d2: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80022d6: 011b lsls r3, r3, #4 - 80022d8: 4413 add r3, r2 - 80022da: 3302 adds r3, #2 - 80022dc: 881b ldrh r3, [r3, #0] - 80022de: 461a mov r2, r3 - 80022e0: f8d7 315c ldr.w r3, [r7, #348] ; 0x15c - 80022e4: 3b01 subs r3, #1 - 80022e6: 429a cmp r2, r3 - 80022e8: d26e bcs.n 80023c8 - 80022ea: f107 0218 add.w r2, r7, #24 - 80022ee: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80022f2: 011b lsls r3, r3, #4 - 80022f4: 4413 add r3, r2 - 80022f6: 3302 adds r3, #2 - 80022f8: 881b ldrh r3, [r3, #0] - 80022fa: 2b01 cmp r3, #1 - 80022fc: d964 bls.n 80023c8 + 80022a4: f107 0218 add.w r2, r7, #24 + 80022a8: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80022ac: 011b lsls r3, r3, #4 + 80022ae: 4413 add r3, r2 + 80022b0: 881b ldrh r3, [r3, #0] + 80022b2: 2b01 cmp r3, #1 + 80022b4: f240 808a bls.w 80023cc + 80022b8: f107 0218 add.w r2, r7, #24 + 80022bc: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80022c0: 011b lsls r3, r3, #4 + 80022c2: 4413 add r3, r2 + 80022c4: 881b ldrh r3, [r3, #0] + 80022c6: 461a mov r2, r3 + 80022c8: f8d7 3160 ldr.w r3, [r7, #352] ; 0x160 + 80022cc: 3b01 subs r3, #1 + 80022ce: 429a cmp r2, r3 + 80022d0: d27c bcs.n 80023cc + 80022d2: f107 0218 add.w r2, r7, #24 + 80022d6: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80022da: 011b lsls r3, r3, #4 + 80022dc: 4413 add r3, r2 + 80022de: 3302 adds r3, #2 + 80022e0: 881b ldrh r3, [r3, #0] + 80022e2: 461a mov r2, r3 + 80022e4: f8d7 315c ldr.w r3, [r7, #348] ; 0x15c + 80022e8: 3b01 subs r3, #1 + 80022ea: 429a cmp r2, r3 + 80022ec: d26e bcs.n 80023cc + 80022ee: f107 0218 add.w r2, r7, #24 + 80022f2: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80022f6: 011b lsls r3, r3, #4 + 80022f8: 4413 add r3, r2 + 80022fa: 3302 adds r3, #2 + 80022fc: 881b ldrh r3, [r3, #0] + 80022fe: 2b01 cmp r3, #1 + 8002300: d964 bls.n 80023cc { BSP_LCD_DrawPixel(liste_missile[i].x, liste_missile[i].y, LCD_COLOR_BACKGROUND); - 80022fe: f107 0218 add.w r2, r7, #24 - 8002302: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002306: 011b lsls r3, r3, #4 - 8002308: 4413 add r3, r2 - 800230a: 8818 ldrh r0, [r3, #0] - 800230c: f107 0218 add.w r2, r7, #24 - 8002310: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002314: 011b lsls r3, r3, #4 - 8002316: 4413 add r3, r2 - 8002318: 3302 adds r3, #2 - 800231a: 8819 ldrh r1, [r3, #0] - 800231c: 4ba2 ldr r3, [pc, #648] ; (80025a8 ) - 800231e: 681b ldr r3, [r3, #0] - 8002320: 461a mov r2, r3 - 8002322: f000 ff35 bl 8003190 - liste_missile[i].x = liste_missile[i].x - liste_missile[i].dx ; - 8002326: f107 0218 add.w r2, r7, #24 - 800232a: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800232e: 011b lsls r3, r3, #4 - 8002330: 4413 add r3, r2 - 8002332: 881a ldrh r2, [r3, #0] - 8002334: f107 0118 add.w r1, r7, #24 - 8002338: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800233c: 011b lsls r3, r3, #4 - 800233e: 440b add r3, r1 - 8002340: 3304 adds r3, #4 - 8002342: 781b ldrb r3, [r3, #0] - 8002344: b29b uxth r3, r3 - 8002346: 1ad3 subs r3, r2, r3 - 8002348: b299 uxth r1, r3 - 800234a: f107 0218 add.w r2, r7, #24 - 800234e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002352: 011b lsls r3, r3, #4 - 8002354: 4413 add r3, r2 - 8002356: 460a mov r2, r1 - 8002358: 801a strh r2, [r3, #0] - liste_missile[i].y = liste_missile[i].y - liste_missile[i].dy; - 800235a: f107 0218 add.w r2, r7, #24 - 800235e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002362: 011b lsls r3, r3, #4 - 8002364: 4413 add r3, r2 - 8002366: 3302 adds r3, #2 - 8002368: 881a ldrh r2, [r3, #0] - 800236a: f107 0118 add.w r1, r7, #24 - 800236e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002372: 011b lsls r3, r3, #4 - 8002374: 440b add r3, r1 - 8002376: 3305 adds r3, #5 - 8002378: 781b ldrb r3, [r3, #0] - 800237a: b29b uxth r3, r3 - 800237c: 1ad3 subs r3, r2, r3 - 800237e: b299 uxth r1, r3 - 8002380: f107 0218 add.w r2, r7, #24 - 8002384: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002388: 011b lsls r3, r3, #4 - 800238a: 4413 add r3, r2 - 800238c: 3302 adds r3, #2 - 800238e: 460a mov r2, r1 - 8002390: 801a strh r2, [r3, #0] + 8002302: f107 0218 add.w r2, r7, #24 + 8002306: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 800230a: 011b lsls r3, r3, #4 + 800230c: 4413 add r3, r2 + 800230e: 8818 ldrh r0, [r3, #0] + 8002310: f107 0218 add.w r2, r7, #24 + 8002314: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002318: 011b lsls r3, r3, #4 + 800231a: 4413 add r3, r2 + 800231c: 3302 adds r3, #2 + 800231e: 8819 ldrh r1, [r3, #0] + 8002320: 4ba2 ldr r3, [pc, #648] ; (80025ac ) + 8002322: 681b ldr r3, [r3, #0] + 8002324: 461a mov r2, r3 + 8002326: f000 ff35 bl 8003194 + liste_missile[i].x = liste_missile[i].x + liste_missile[i].dx ; + 800232a: f107 0218 add.w r2, r7, #24 + 800232e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002332: 011b lsls r3, r3, #4 + 8002334: 4413 add r3, r2 + 8002336: 881a ldrh r2, [r3, #0] + 8002338: f107 0118 add.w r1, r7, #24 + 800233c: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002340: 011b lsls r3, r3, #4 + 8002342: 440b add r3, r1 + 8002344: 3304 adds r3, #4 + 8002346: 781b ldrb r3, [r3, #0] + 8002348: b29b uxth r3, r3 + 800234a: 4413 add r3, r2 + 800234c: b299 uxth r1, r3 + 800234e: f107 0218 add.w r2, r7, #24 + 8002352: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002356: 011b lsls r3, r3, #4 + 8002358: 4413 add r3, r2 + 800235a: 460a mov r2, r1 + 800235c: 801a strh r2, [r3, #0] + liste_missile[i].y = liste_missile[i].y + liste_missile[i].dy; + 800235e: f107 0218 add.w r2, r7, #24 + 8002362: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002366: 011b lsls r3, r3, #4 + 8002368: 4413 add r3, r2 + 800236a: 3302 adds r3, #2 + 800236c: 881a ldrh r2, [r3, #0] + 800236e: f107 0118 add.w r1, r7, #24 + 8002372: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002376: 011b lsls r3, r3, #4 + 8002378: 440b add r3, r1 + 800237a: 3305 adds r3, #5 + 800237c: 781b ldrb r3, [r3, #0] + 800237e: b29b uxth r3, r3 + 8002380: 4413 add r3, r2 + 8002382: b299 uxth r1, r3 + 8002384: f107 0218 add.w r2, r7, #24 + 8002388: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 800238c: 011b lsls r3, r3, #4 + 800238e: 4413 add r3, r2 + 8002390: 3302 adds r3, #2 + 8002392: 460a mov r2, r1 + 8002394: 801a strh r2, [r3, #0] BSP_LCD_DrawPixel(liste_missile[i].x, liste_missile[i].y, liste_missile[i].color); - 8002392: f107 0218 add.w r2, r7, #24 - 8002396: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800239a: 011b lsls r3, r3, #4 - 800239c: 4413 add r3, r2 - 800239e: 8818 ldrh r0, [r3, #0] - 80023a0: f107 0218 add.w r2, r7, #24 - 80023a4: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80023a8: 011b lsls r3, r3, #4 - 80023aa: 4413 add r3, r2 - 80023ac: 3302 adds r3, #2 - 80023ae: 8819 ldrh r1, [r3, #0] - 80023b0: f107 0218 add.w r2, r7, #24 - 80023b4: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80023b8: 011b lsls r3, r3, #4 - 80023ba: 4413 add r3, r2 - 80023bc: 3308 adds r3, #8 - 80023be: 681b ldr r3, [r3, #0] - 80023c0: 461a mov r2, r3 - 80023c2: f000 fee5 bl 8003190 - 80023c6: e112 b.n 80025ee + 8002396: f107 0218 add.w r2, r7, #24 + 800239a: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 800239e: 011b lsls r3, r3, #4 + 80023a0: 4413 add r3, r2 + 80023a2: 8818 ldrh r0, [r3, #0] + 80023a4: f107 0218 add.w r2, r7, #24 + 80023a8: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80023ac: 011b lsls r3, r3, #4 + 80023ae: 4413 add r3, r2 + 80023b0: 3302 adds r3, #2 + 80023b2: 8819 ldrh r1, [r3, #0] + 80023b4: f107 0218 add.w r2, r7, #24 + 80023b8: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80023bc: 011b lsls r3, r3, #4 + 80023be: 4413 add r3, r2 + 80023c0: 3308 adds r3, #8 + 80023c2: 681b ldr r3, [r3, #0] + 80023c4: 461a mov r2, r3 + 80023c6: f000 fee5 bl 8003194 + 80023ca: e112 b.n 80025f2 } //TODO test sur tous les ennemis else { liste_missile[i].valide = 0; - 80023c8: f107 0218 add.w r2, r7, #24 - 80023cc: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80023d0: 011b lsls r3, r3, #4 - 80023d2: 4413 add r3, r2 - 80023d4: 330d adds r3, #13 - 80023d6: 2200 movs r2, #0 - 80023d8: 701a strb r2, [r3, #0] + 80023cc: f107 0218 add.w r2, r7, #24 + 80023d0: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80023d4: 011b lsls r3, r3, #4 + 80023d6: 4413 add r3, r2 + 80023d8: 330d adds r3, #13 + 80023da: 2200 movs r2, #0 + 80023dc: 701a strb r2, [r3, #0] BSP_LCD_DrawPixel(liste_missile[i].x, liste_missile[i].y, LCD_COLOR_BACKGROUND); - 80023da: f107 0218 add.w r2, r7, #24 - 80023de: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80023e2: 011b lsls r3, r3, #4 - 80023e4: 4413 add r3, r2 - 80023e6: 8818 ldrh r0, [r3, #0] - 80023e8: f107 0218 add.w r2, r7, #24 - 80023ec: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80023f0: 011b lsls r3, r3, #4 - 80023f2: 4413 add r3, r2 - 80023f4: 3302 adds r3, #2 - 80023f6: 8819 ldrh r1, [r3, #0] - 80023f8: 4b6b ldr r3, [pc, #428] ; (80025a8 ) - 80023fa: 681b ldr r3, [r3, #0] - 80023fc: 461a mov r2, r3 - 80023fe: f000 fec7 bl 8003190 - 8002402: e0f4 b.n 80025ee + 80023de: f107 0218 add.w r2, r7, #24 + 80023e2: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80023e6: 011b lsls r3, r3, #4 + 80023e8: 4413 add r3, r2 + 80023ea: 8818 ldrh r0, [r3, #0] + 80023ec: f107 0218 add.w r2, r7, #24 + 80023f0: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80023f4: 011b lsls r3, r3, #4 + 80023f6: 4413 add r3, r2 + 80023f8: 3302 adds r3, #2 + 80023fa: 8819 ldrh r1, [r3, #0] + 80023fc: 4b6b ldr r3, [pc, #428] ; (80025ac ) + 80023fe: 681b ldr r3, [r3, #0] + 8002400: 461a mov r2, r3 + 8002402: f000 fec7 bl 8003194 + 8002406: e0f4 b.n 80025f2 } } // Si le missile appartient aux ennemis else if (liste_missile[i].equipe == 1) - 8002404: f107 0218 add.w r2, r7, #24 - 8002408: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800240c: 011b lsls r3, r3, #4 - 800240e: 4413 add r3, r2 - 8002410: 3306 adds r3, #6 - 8002412: 781b ldrb r3, [r3, #0] - 8002414: 2b01 cmp r3, #1 - 8002416: f040 80ea bne.w 80025ee + 8002408: f107 0218 add.w r2, r7, #24 + 800240c: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002410: 011b lsls r3, r3, #4 + 8002412: 4413 add r3, r2 + 8002414: 3306 adds r3, #6 + 8002416: 781b ldrb r3, [r3, #0] + 8002418: 2b01 cmp r3, #1 + 800241a: f040 80ea bne.w 80025f2 { if ((liste_missile[i].x == joueur.x)&&(liste_missile[i].y == joueur.y)) - 800241a: f107 0218 add.w r2, r7, #24 - 800241e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002422: 011b lsls r3, r3, #4 - 8002424: 4413 add r3, r2 - 8002426: 881a ldrh r2, [r3, #0] - 8002428: 4b60 ldr r3, [pc, #384] ; (80025ac ) - 800242a: 881b ldrh r3, [r3, #0] - 800242c: 429a cmp r2, r3 - 800242e: d124 bne.n 800247a - 8002430: f107 0218 add.w r2, r7, #24 - 8002434: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002438: 011b lsls r3, r3, #4 - 800243a: 4413 add r3, r2 - 800243c: 3302 adds r3, #2 - 800243e: 881a ldrh r2, [r3, #0] - 8002440: 4b5a ldr r3, [pc, #360] ; (80025ac ) - 8002442: 885b ldrh r3, [r3, #2] - 8002444: 429a cmp r2, r3 - 8002446: d118 bne.n 800247a + 800241e: f107 0218 add.w r2, r7, #24 + 8002422: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002426: 011b lsls r3, r3, #4 + 8002428: 4413 add r3, r2 + 800242a: 881a ldrh r2, [r3, #0] + 800242c: 4b60 ldr r3, [pc, #384] ; (80025b0 ) + 800242e: 881b ldrh r3, [r3, #0] + 8002430: 429a cmp r2, r3 + 8002432: d124 bne.n 800247e + 8002434: f107 0218 add.w r2, r7, #24 + 8002438: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 800243c: 011b lsls r3, r3, #4 + 800243e: 4413 add r3, r2 + 8002440: 3302 adds r3, #2 + 8002442: 881a ldrh r2, [r3, #0] + 8002444: 4b5a ldr r3, [pc, #360] ; (80025b0 ) + 8002446: 885b ldrh r3, [r3, #2] + 8002448: 429a cmp r2, r3 + 800244a: d118 bne.n 800247e { xQueueSend(Queue_JHandle, &liste_missile+indice,0); - 8002448: 4b59 ldr r3, [pc, #356] ; (80025b0 ) - 800244a: 6818 ldr r0, [r3, #0] - 800244c: f897 2167 ldrb.w r2, [r7, #359] ; 0x167 - 8002450: 4613 mov r3, r2 - 8002452: 009b lsls r3, r3, #2 - 8002454: 4413 add r3, r2 - 8002456: 019b lsls r3, r3, #6 - 8002458: 461a mov r2, r3 - 800245a: f107 0318 add.w r3, r7, #24 - 800245e: 1899 adds r1, r3, r2 - 8002460: 2300 movs r3, #0 - 8002462: 2200 movs r2, #0 - 8002464: f00b fbae bl 800dbc4 + 800244c: 4b59 ldr r3, [pc, #356] ; (80025b4 ) + 800244e: 6818 ldr r0, [r3, #0] + 8002450: f897 2167 ldrb.w r2, [r7, #359] ; 0x167 + 8002454: 4613 mov r3, r2 + 8002456: 009b lsls r3, r3, #2 + 8002458: 4413 add r3, r2 + 800245a: 019b lsls r3, r3, #6 + 800245c: 461a mov r2, r3 + 800245e: f107 0318 add.w r3, r7, #24 + 8002462: 1899 adds r1, r3, r2 + 8002464: 2300 movs r3, #0 + 8002466: 2200 movs r2, #0 + 8002468: f00b fbae bl 800dbc8 liste_missile[i].valide = 0; - 8002468: f107 0218 add.w r2, r7, #24 - 800246c: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002470: 011b lsls r3, r3, #4 - 8002472: 4413 add r3, r2 - 8002474: 330d adds r3, #13 - 8002476: 2200 movs r2, #0 - 8002478: 701a strb r2, [r3, #0] + 800246c: f107 0218 add.w r2, r7, #24 + 8002470: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002474: 011b lsls r3, r3, #4 + 8002476: 4413 add r3, r2 + 8002478: 330d adds r3, #13 + 800247a: 2200 movs r2, #0 + 800247c: 701a strb r2, [r3, #0] // TODO Une petite animation d'explosion ? } if ((liste_missile[i].x > 1)&&(liste_missile[i].x < LCD_HEIGHT-1)&&(liste_missile[i].y < LCD_WIDTH-1)&&(liste_missile[i].y > 1)) - 800247a: f107 0218 add.w r2, r7, #24 - 800247e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002482: 011b lsls r3, r3, #4 - 8002484: 4413 add r3, r2 - 8002486: 881b ldrh r3, [r3, #0] - 8002488: 2b01 cmp r3, #1 - 800248a: f240 8093 bls.w 80025b4 - 800248e: f107 0218 add.w r2, r7, #24 - 8002492: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002496: 011b lsls r3, r3, #4 - 8002498: 4413 add r3, r2 - 800249a: 881b ldrh r3, [r3, #0] - 800249c: 461a mov r2, r3 - 800249e: f8d7 3160 ldr.w r3, [r7, #352] ; 0x160 - 80024a2: 3b01 subs r3, #1 - 80024a4: 429a cmp r2, r3 - 80024a6: f080 8085 bcs.w 80025b4 - 80024aa: f107 0218 add.w r2, r7, #24 - 80024ae: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80024b2: 011b lsls r3, r3, #4 - 80024b4: 4413 add r3, r2 - 80024b6: 3302 adds r3, #2 - 80024b8: 881b ldrh r3, [r3, #0] - 80024ba: 461a mov r2, r3 - 80024bc: f8d7 315c ldr.w r3, [r7, #348] ; 0x15c - 80024c0: 3b01 subs r3, #1 - 80024c2: 429a cmp r2, r3 - 80024c4: d276 bcs.n 80025b4 - 80024c6: f107 0218 add.w r2, r7, #24 - 80024ca: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80024ce: 011b lsls r3, r3, #4 - 80024d0: 4413 add r3, r2 - 80024d2: 3302 adds r3, #2 - 80024d4: 881b ldrh r3, [r3, #0] - 80024d6: 2b01 cmp r3, #1 - 80024d8: d96c bls.n 80025b4 + 800247e: f107 0218 add.w r2, r7, #24 + 8002482: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002486: 011b lsls r3, r3, #4 + 8002488: 4413 add r3, r2 + 800248a: 881b ldrh r3, [r3, #0] + 800248c: 2b01 cmp r3, #1 + 800248e: f240 8093 bls.w 80025b8 + 8002492: f107 0218 add.w r2, r7, #24 + 8002496: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 800249a: 011b lsls r3, r3, #4 + 800249c: 4413 add r3, r2 + 800249e: 881b ldrh r3, [r3, #0] + 80024a0: 461a mov r2, r3 + 80024a2: f8d7 3160 ldr.w r3, [r7, #352] ; 0x160 + 80024a6: 3b01 subs r3, #1 + 80024a8: 429a cmp r2, r3 + 80024aa: f080 8085 bcs.w 80025b8 + 80024ae: f107 0218 add.w r2, r7, #24 + 80024b2: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80024b6: 011b lsls r3, r3, #4 + 80024b8: 4413 add r3, r2 + 80024ba: 3302 adds r3, #2 + 80024bc: 881b ldrh r3, [r3, #0] + 80024be: 461a mov r2, r3 + 80024c0: f8d7 315c ldr.w r3, [r7, #348] ; 0x15c + 80024c4: 3b01 subs r3, #1 + 80024c6: 429a cmp r2, r3 + 80024c8: d276 bcs.n 80025b8 + 80024ca: f107 0218 add.w r2, r7, #24 + 80024ce: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80024d2: 011b lsls r3, r3, #4 + 80024d4: 4413 add r3, r2 + 80024d6: 3302 adds r3, #2 + 80024d8: 881b ldrh r3, [r3, #0] + 80024da: 2b01 cmp r3, #1 + 80024dc: d96c bls.n 80025b8 { BSP_LCD_DrawPixel(liste_missile[i].x, liste_missile[i].y, LCD_COLOR_BACKGROUND); - 80024da: f107 0218 add.w r2, r7, #24 - 80024de: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80024e2: 011b lsls r3, r3, #4 - 80024e4: 4413 add r3, r2 - 80024e6: 8818 ldrh r0, [r3, #0] - 80024e8: f107 0218 add.w r2, r7, #24 - 80024ec: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80024f0: 011b lsls r3, r3, #4 - 80024f2: 4413 add r3, r2 - 80024f4: 3302 adds r3, #2 - 80024f6: 8819 ldrh r1, [r3, #0] - 80024f8: 4b2b ldr r3, [pc, #172] ; (80025a8 ) - 80024fa: 681b ldr r3, [r3, #0] - 80024fc: 461a mov r2, r3 - 80024fe: f000 fe47 bl 8003190 + 80024de: f107 0218 add.w r2, r7, #24 + 80024e2: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80024e6: 011b lsls r3, r3, #4 + 80024e8: 4413 add r3, r2 + 80024ea: 8818 ldrh r0, [r3, #0] + 80024ec: f107 0218 add.w r2, r7, #24 + 80024f0: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80024f4: 011b lsls r3, r3, #4 + 80024f6: 4413 add r3, r2 + 80024f8: 3302 adds r3, #2 + 80024fa: 8819 ldrh r1, [r3, #0] + 80024fc: 4b2b ldr r3, [pc, #172] ; (80025ac ) + 80024fe: 681b ldr r3, [r3, #0] + 8002500: 461a mov r2, r3 + 8002502: f000 fe47 bl 8003194 liste_missile[i].x = liste_missile[i].x + liste_missile[i].dx ; - 8002502: f107 0218 add.w r2, r7, #24 - 8002506: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800250a: 011b lsls r3, r3, #4 - 800250c: 4413 add r3, r2 - 800250e: 881a ldrh r2, [r3, #0] - 8002510: f107 0118 add.w r1, r7, #24 - 8002514: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002518: 011b lsls r3, r3, #4 - 800251a: 440b add r3, r1 - 800251c: 3304 adds r3, #4 - 800251e: 781b ldrb r3, [r3, #0] - 8002520: b29b uxth r3, r3 - 8002522: 4413 add r3, r2 - 8002524: b299 uxth r1, r3 - 8002526: f107 0218 add.w r2, r7, #24 - 800252a: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800252e: 011b lsls r3, r3, #4 - 8002530: 4413 add r3, r2 - 8002532: 460a mov r2, r1 - 8002534: 801a strh r2, [r3, #0] + 8002506: f107 0218 add.w r2, r7, #24 + 800250a: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 800250e: 011b lsls r3, r3, #4 + 8002510: 4413 add r3, r2 + 8002512: 881a ldrh r2, [r3, #0] + 8002514: f107 0118 add.w r1, r7, #24 + 8002518: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 800251c: 011b lsls r3, r3, #4 + 800251e: 440b add r3, r1 + 8002520: 3304 adds r3, #4 + 8002522: 781b ldrb r3, [r3, #0] + 8002524: b29b uxth r3, r3 + 8002526: 4413 add r3, r2 + 8002528: b299 uxth r1, r3 + 800252a: f107 0218 add.w r2, r7, #24 + 800252e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002532: 011b lsls r3, r3, #4 + 8002534: 4413 add r3, r2 + 8002536: 460a mov r2, r1 + 8002538: 801a strh r2, [r3, #0] liste_missile[i].y = liste_missile[i].y + liste_missile[i].dy; - 8002536: f107 0218 add.w r2, r7, #24 - 800253a: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800253e: 011b lsls r3, r3, #4 - 8002540: 4413 add r3, r2 - 8002542: 3302 adds r3, #2 - 8002544: 881a ldrh r2, [r3, #0] - 8002546: f107 0118 add.w r1, r7, #24 - 800254a: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 800254e: 011b lsls r3, r3, #4 - 8002550: 440b add r3, r1 - 8002552: 3305 adds r3, #5 - 8002554: 781b ldrb r3, [r3, #0] - 8002556: b29b uxth r3, r3 - 8002558: 4413 add r3, r2 - 800255a: b299 uxth r1, r3 - 800255c: f107 0218 add.w r2, r7, #24 - 8002560: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002564: 011b lsls r3, r3, #4 - 8002566: 4413 add r3, r2 - 8002568: 3302 adds r3, #2 - 800256a: 460a mov r2, r1 - 800256c: 801a strh r2, [r3, #0] + 800253a: f107 0218 add.w r2, r7, #24 + 800253e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002542: 011b lsls r3, r3, #4 + 8002544: 4413 add r3, r2 + 8002546: 3302 adds r3, #2 + 8002548: 881a ldrh r2, [r3, #0] + 800254a: f107 0118 add.w r1, r7, #24 + 800254e: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002552: 011b lsls r3, r3, #4 + 8002554: 440b add r3, r1 + 8002556: 3305 adds r3, #5 + 8002558: 781b ldrb r3, [r3, #0] + 800255a: b29b uxth r3, r3 + 800255c: 4413 add r3, r2 + 800255e: b299 uxth r1, r3 + 8002560: f107 0218 add.w r2, r7, #24 + 8002564: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002568: 011b lsls r3, r3, #4 + 800256a: 4413 add r3, r2 + 800256c: 3302 adds r3, #2 + 800256e: 460a mov r2, r1 + 8002570: 801a strh r2, [r3, #0] BSP_LCD_DrawPixel(liste_missile[i].x, liste_missile[i].y, liste_missile[i].color); - 800256e: f107 0218 add.w r2, r7, #24 - 8002572: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002576: 011b lsls r3, r3, #4 - 8002578: 4413 add r3, r2 - 800257a: 8818 ldrh r0, [r3, #0] - 800257c: f107 0218 add.w r2, r7, #24 - 8002580: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002584: 011b lsls r3, r3, #4 - 8002586: 4413 add r3, r2 - 8002588: 3302 adds r3, #2 - 800258a: 8819 ldrh r1, [r3, #0] - 800258c: f107 0218 add.w r2, r7, #24 - 8002590: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 8002594: 011b lsls r3, r3, #4 - 8002596: 4413 add r3, r2 - 8002598: 3308 adds r3, #8 - 800259a: 681b ldr r3, [r3, #0] - 800259c: 461a mov r2, r3 - 800259e: f000 fdf7 bl 8003190 - 80025a2: e024 b.n 80025ee - 80025a4: 0801d8b0 .word 0x0801d8b0 - 80025a8: 20000040 .word 0x20000040 - 80025ac: 20000028 .word 0x20000028 - 80025b0: 200089e0 .word 0x200089e0 + 8002572: f107 0218 add.w r2, r7, #24 + 8002576: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 800257a: 011b lsls r3, r3, #4 + 800257c: 4413 add r3, r2 + 800257e: 8818 ldrh r0, [r3, #0] + 8002580: f107 0218 add.w r2, r7, #24 + 8002584: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002588: 011b lsls r3, r3, #4 + 800258a: 4413 add r3, r2 + 800258c: 3302 adds r3, #2 + 800258e: 8819 ldrh r1, [r3, #0] + 8002590: f107 0218 add.w r2, r7, #24 + 8002594: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 8002598: 011b lsls r3, r3, #4 + 800259a: 4413 add r3, r2 + 800259c: 3308 adds r3, #8 + 800259e: 681b ldr r3, [r3, #0] + 80025a0: 461a mov r2, r3 + 80025a2: f000 fdf7 bl 8003194 + 80025a6: e024 b.n 80025f2 + 80025a8: 0801d8c0 .word 0x0801d8c0 + 80025ac: 20000040 .word 0x20000040 + 80025b0: 20000028 .word 0x20000028 + 80025b4: 200089e0 .word 0x200089e0 } else { liste_missile[i].valide = 0; - 80025b4: f107 0218 add.w r2, r7, #24 - 80025b8: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80025bc: 011b lsls r3, r3, #4 - 80025be: 4413 add r3, r2 - 80025c0: 330d adds r3, #13 - 80025c2: 2200 movs r2, #0 - 80025c4: 701a strb r2, [r3, #0] + 80025b8: f107 0218 add.w r2, r7, #24 + 80025bc: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80025c0: 011b lsls r3, r3, #4 + 80025c2: 4413 add r3, r2 + 80025c4: 330d adds r3, #13 + 80025c6: 2200 movs r2, #0 + 80025c8: 701a strb r2, [r3, #0] BSP_LCD_DrawPixel(liste_missile[i].x, liste_missile[i].y, LCD_COLOR_BACKGROUND); - 80025c6: f107 0218 add.w r2, r7, #24 - 80025ca: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80025ce: 011b lsls r3, r3, #4 - 80025d0: 4413 add r3, r2 - 80025d2: 8818 ldrh r0, [r3, #0] - 80025d4: f107 0218 add.w r2, r7, #24 - 80025d8: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80025dc: 011b lsls r3, r3, #4 - 80025de: 4413 add r3, r2 - 80025e0: 3302 adds r3, #2 - 80025e2: 8819 ldrh r1, [r3, #0] - 80025e4: 4b0c ldr r3, [pc, #48] ; (8002618 ) - 80025e6: 681b ldr r3, [r3, #0] - 80025e8: 461a mov r2, r3 - 80025ea: f000 fdd1 bl 8003190 + 80025ca: f107 0218 add.w r2, r7, #24 + 80025ce: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80025d2: 011b lsls r3, r3, #4 + 80025d4: 4413 add r3, r2 + 80025d6: 8818 ldrh r0, [r3, #0] + 80025d8: f107 0218 add.w r2, r7, #24 + 80025dc: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80025e0: 011b lsls r3, r3, #4 + 80025e2: 4413 add r3, r2 + 80025e4: 3302 adds r3, #2 + 80025e6: 8819 ldrh r1, [r3, #0] + 80025e8: 4b0c ldr r3, [pc, #48] ; (800261c ) + 80025ea: 681b ldr r3, [r3, #0] + 80025ec: 461a mov r2, r3 + 80025ee: f000 fdd1 bl 8003194 for (int i=0;i< indice;i++) - 80025ee: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c - 80025f2: 3301 adds r3, #1 - 80025f4: f8c7 316c str.w r3, [r7, #364] ; 0x16c - 80025f8: f897 3167 ldrb.w r3, [r7, #359] ; 0x167 - 80025fc: f8d7 216c ldr.w r2, [r7, #364] ; 0x16c - 8002600: 429a cmp r2, r3 - 8002602: f6ff ae37 blt.w 8002274 + 80025f2: f8d7 316c ldr.w r3, [r7, #364] ; 0x16c + 80025f6: 3301 adds r3, #1 + 80025f8: f8c7 316c str.w r3, [r7, #364] ; 0x16c + 80025fc: f897 3167 ldrb.w r3, [r7, #359] ; 0x167 + 8002600: f8d7 216c ldr.w r2, [r7, #364] ; 0x16c + 8002604: 429a cmp r2, r3 + 8002606: f6ff ae37 blt.w 8002278 } } } } vTaskDelayUntil(&xLastWakeTime, xPeriodeTache); - 8002606: f507 73ac add.w r3, r7, #344 ; 0x158 - 800260a: f8d7 1168 ldr.w r1, [r7, #360] ; 0x168 - 800260e: 4618 mov r0, r3 - 8002610: f00c fa48 bl 800eaa4 + 800260a: f507 73ac add.w r3, r7, #344 ; 0x158 + 800260e: f8d7 1168 ldr.w r1, [r7, #360] ; 0x168 + 8002612: 4618 mov r0, r3 + 8002614: f00c fa48 bl 800eaa8 for (int i=0;i< indice;i++) - 8002614: e62a b.n 800226c - 8002616: bf00 nop - 8002618: 20000040 .word 0x20000040 + 8002618: e62a b.n 8002270 + 800261a: bf00 nop + 800261c: 20000040 .word 0x20000040 -0800261c : +08002620 : * a global variable "uwTick" used as application time base. * @param htim : TIM handle * @retval None */ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { - 800261c: b580 push {r7, lr} - 800261e: b082 sub sp, #8 - 8002620: af00 add r7, sp, #0 - 8002622: 6078 str r0, [r7, #4] + 8002620: b580 push {r7, lr} + 8002622: b082 sub sp, #8 + 8002624: af00 add r7, sp, #0 + 8002626: 6078 str r0, [r7, #4] /* USER CODE BEGIN Callback 0 */ /* USER CODE END Callback 0 */ if (htim->Instance == TIM6) { - 8002624: 687b ldr r3, [r7, #4] - 8002626: 681b ldr r3, [r3, #0] - 8002628: 4a04 ldr r2, [pc, #16] ; (800263c ) - 800262a: 4293 cmp r3, r2 - 800262c: d101 bne.n 8002632 + 8002628: 687b ldr r3, [r7, #4] + 800262a: 681b ldr r3, [r3, #0] + 800262c: 4a04 ldr r2, [pc, #16] ; (8002640 ) + 800262e: 4293 cmp r3, r2 + 8002630: d101 bne.n 8002636 HAL_IncTick(); - 800262e: f002 fc33 bl 8004e98 + 8002632: f002 fc33 bl 8004e9c } /* USER CODE BEGIN Callback 1 */ /* USER CODE END Callback 1 */ } - 8002632: bf00 nop - 8002634: 3708 adds r7, #8 - 8002636: 46bd mov sp, r7 - 8002638: bd80 pop {r7, pc} - 800263a: bf00 nop - 800263c: 40001000 .word 0x40001000 + 8002636: bf00 nop + 8002638: 3708 adds r7, #8 + 800263a: 46bd mov sp, r7 + 800263c: bd80 pop {r7, pc} + 800263e: bf00 nop + 8002640: 40001000 .word 0x40001000 -08002640 : +08002644 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 8002640: b480 push {r7} - 8002642: af00 add r7, sp, #0 + 8002644: b480 push {r7} + 8002646: af00 add r7, sp, #0 \details Disables IRQ interrupts by setting the I-bit in the CPSR. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); - 8002644: b672 cpsid i + 8002648: b672 cpsid i /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) - 8002646: e7fe b.n 8002646 + 800264a: e7fe b.n 800264a -08002648 : +0800264c : * @brief Initializes I2C MSP. * @param i2c_handler : I2C handler * @retval None */ static void I2Cx_MspInit(I2C_HandleTypeDef *i2c_handler) { - 8002648: b580 push {r7, lr} - 800264a: b08c sub sp, #48 ; 0x30 - 800264c: af00 add r7, sp, #0 - 800264e: 6078 str r0, [r7, #4] + 800264c: b580 push {r7, lr} + 800264e: b08c sub sp, #48 ; 0x30 + 8002650: af00 add r7, sp, #0 + 8002652: 6078 str r0, [r7, #4] GPIO_InitTypeDef gpio_init_structure; if (i2c_handler == (I2C_HandleTypeDef*)(&hI2cAudioHandler)) - 8002650: 687b ldr r3, [r7, #4] - 8002652: 4a51 ldr r2, [pc, #324] ; (8002798 ) - 8002654: 4293 cmp r3, r2 - 8002656: d14d bne.n 80026f4 + 8002654: 687b ldr r3, [r7, #4] + 8002656: 4a51 ldr r2, [pc, #324] ; (800279c ) + 8002658: 4293 cmp r3, r2 + 800265a: d14d bne.n 80026f8 { /* AUDIO and LCD I2C MSP init */ /*** Configure the GPIOs ***/ /* Enable GPIO clock */ DISCOVERY_AUDIO_I2Cx_SCL_SDA_GPIO_CLK_ENABLE(); - 8002658: 4b50 ldr r3, [pc, #320] ; (800279c ) - 800265a: 6b1b ldr r3, [r3, #48] ; 0x30 - 800265c: 4a4f ldr r2, [pc, #316] ; (800279c ) - 800265e: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8002662: 6313 str r3, [r2, #48] ; 0x30 - 8002664: 4b4d ldr r3, [pc, #308] ; (800279c ) - 8002666: 6b1b ldr r3, [r3, #48] ; 0x30 - 8002668: f003 0380 and.w r3, r3, #128 ; 0x80 - 800266c: 61bb str r3, [r7, #24] - 800266e: 69bb ldr r3, [r7, #24] + 800265c: 4b50 ldr r3, [pc, #320] ; (80027a0 ) + 800265e: 6b1b ldr r3, [r3, #48] ; 0x30 + 8002660: 4a4f ldr r2, [pc, #316] ; (80027a0 ) + 8002662: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8002666: 6313 str r3, [r2, #48] ; 0x30 + 8002668: 4b4d ldr r3, [pc, #308] ; (80027a0 ) + 800266a: 6b1b ldr r3, [r3, #48] ; 0x30 + 800266c: f003 0380 and.w r3, r3, #128 ; 0x80 + 8002670: 61bb str r3, [r7, #24] + 8002672: 69bb ldr r3, [r7, #24] /* Configure I2C Tx as alternate function */ gpio_init_structure.Pin = DISCOVERY_AUDIO_I2Cx_SCL_PIN; - 8002670: 2380 movs r3, #128 ; 0x80 - 8002672: 61fb str r3, [r7, #28] + 8002674: 2380 movs r3, #128 ; 0x80 + 8002676: 61fb str r3, [r7, #28] gpio_init_structure.Mode = GPIO_MODE_AF_OD; - 8002674: 2312 movs r3, #18 - 8002676: 623b str r3, [r7, #32] + 8002678: 2312 movs r3, #18 + 800267a: 623b str r3, [r7, #32] gpio_init_structure.Pull = GPIO_NOPULL; - 8002678: 2300 movs r3, #0 - 800267a: 627b str r3, [r7, #36] ; 0x24 + 800267c: 2300 movs r3, #0 + 800267e: 627b str r3, [r7, #36] ; 0x24 gpio_init_structure.Speed = GPIO_SPEED_FAST; - 800267c: 2302 movs r3, #2 - 800267e: 62bb str r3, [r7, #40] ; 0x28 + 8002680: 2302 movs r3, #2 + 8002682: 62bb str r3, [r7, #40] ; 0x28 gpio_init_structure.Alternate = DISCOVERY_AUDIO_I2Cx_SCL_SDA_AF; - 8002680: 2304 movs r3, #4 - 8002682: 62fb str r3, [r7, #44] ; 0x2c + 8002684: 2304 movs r3, #4 + 8002686: 62fb str r3, [r7, #44] ; 0x2c HAL_GPIO_Init(DISCOVERY_AUDIO_I2Cx_SCL_SDA_GPIO_PORT, &gpio_init_structure); - 8002684: f107 031c add.w r3, r7, #28 - 8002688: 4619 mov r1, r3 - 800268a: 4845 ldr r0, [pc, #276] ; (80027a0 ) - 800268c: f004 fff6 bl 800767c + 8002688: f107 031c add.w r3, r7, #28 + 800268c: 4619 mov r1, r3 + 800268e: 4845 ldr r0, [pc, #276] ; (80027a4 ) + 8002690: f004 fff6 bl 8007680 /* Configure I2C Rx as alternate function */ gpio_init_structure.Pin = DISCOVERY_AUDIO_I2Cx_SDA_PIN; - 8002690: f44f 7380 mov.w r3, #256 ; 0x100 - 8002694: 61fb str r3, [r7, #28] + 8002694: f44f 7380 mov.w r3, #256 ; 0x100 + 8002698: 61fb str r3, [r7, #28] HAL_GPIO_Init(DISCOVERY_AUDIO_I2Cx_SCL_SDA_GPIO_PORT, &gpio_init_structure); - 8002696: f107 031c add.w r3, r7, #28 - 800269a: 4619 mov r1, r3 - 800269c: 4840 ldr r0, [pc, #256] ; (80027a0 ) - 800269e: f004 ffed bl 800767c + 800269a: f107 031c add.w r3, r7, #28 + 800269e: 4619 mov r1, r3 + 80026a0: 4840 ldr r0, [pc, #256] ; (80027a4 ) + 80026a2: f004 ffed bl 8007680 /*** Configure the I2C peripheral ***/ /* Enable I2C clock */ DISCOVERY_AUDIO_I2Cx_CLK_ENABLE(); - 80026a2: 4b3e ldr r3, [pc, #248] ; (800279c ) - 80026a4: 6c1b ldr r3, [r3, #64] ; 0x40 - 80026a6: 4a3d ldr r2, [pc, #244] ; (800279c ) - 80026a8: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 - 80026ac: 6413 str r3, [r2, #64] ; 0x40 - 80026ae: 4b3b ldr r3, [pc, #236] ; (800279c ) - 80026b0: 6c1b ldr r3, [r3, #64] ; 0x40 - 80026b2: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 80026b6: 617b str r3, [r7, #20] - 80026b8: 697b ldr r3, [r7, #20] + 80026a6: 4b3e ldr r3, [pc, #248] ; (80027a0 ) + 80026a8: 6c1b ldr r3, [r3, #64] ; 0x40 + 80026aa: 4a3d ldr r2, [pc, #244] ; (80027a0 ) + 80026ac: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 + 80026b0: 6413 str r3, [r2, #64] ; 0x40 + 80026b2: 4b3b ldr r3, [pc, #236] ; (80027a0 ) + 80026b4: 6c1b ldr r3, [r3, #64] ; 0x40 + 80026b6: f403 0300 and.w r3, r3, #8388608 ; 0x800000 + 80026ba: 617b str r3, [r7, #20] + 80026bc: 697b ldr r3, [r7, #20] /* Force the I2C peripheral clock reset */ DISCOVERY_AUDIO_I2Cx_FORCE_RESET(); - 80026ba: 4b38 ldr r3, [pc, #224] ; (800279c ) - 80026bc: 6a1b ldr r3, [r3, #32] - 80026be: 4a37 ldr r2, [pc, #220] ; (800279c ) - 80026c0: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 - 80026c4: 6213 str r3, [r2, #32] + 80026be: 4b38 ldr r3, [pc, #224] ; (80027a0 ) + 80026c0: 6a1b ldr r3, [r3, #32] + 80026c2: 4a37 ldr r2, [pc, #220] ; (80027a0 ) + 80026c4: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 + 80026c8: 6213 str r3, [r2, #32] /* Release the I2C peripheral clock reset */ DISCOVERY_AUDIO_I2Cx_RELEASE_RESET(); - 80026c6: 4b35 ldr r3, [pc, #212] ; (800279c ) - 80026c8: 6a1b ldr r3, [r3, #32] - 80026ca: 4a34 ldr r2, [pc, #208] ; (800279c ) - 80026cc: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 - 80026d0: 6213 str r3, [r2, #32] + 80026ca: 4b35 ldr r3, [pc, #212] ; (80027a0 ) + 80026cc: 6a1b ldr r3, [r3, #32] + 80026ce: 4a34 ldr r2, [pc, #208] ; (80027a0 ) + 80026d0: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 + 80026d4: 6213 str r3, [r2, #32] /* Enable and set I2Cx Interrupt to a lower priority */ HAL_NVIC_SetPriority(DISCOVERY_AUDIO_I2Cx_EV_IRQn, 0x0F, 0); - 80026d2: 2200 movs r2, #0 - 80026d4: 210f movs r1, #15 - 80026d6: 2048 movs r0, #72 ; 0x48 - 80026d8: f003 f820 bl 800571c + 80026d6: 2200 movs r2, #0 + 80026d8: 210f movs r1, #15 + 80026da: 2048 movs r0, #72 ; 0x48 + 80026dc: f003 f820 bl 8005720 HAL_NVIC_EnableIRQ(DISCOVERY_AUDIO_I2Cx_EV_IRQn); - 80026dc: 2048 movs r0, #72 ; 0x48 - 80026de: f003 f839 bl 8005754 + 80026e0: 2048 movs r0, #72 ; 0x48 + 80026e2: f003 f839 bl 8005758 /* Enable and set I2Cx Interrupt to a lower priority */ HAL_NVIC_SetPriority(DISCOVERY_AUDIO_I2Cx_ER_IRQn, 0x0F, 0); - 80026e2: 2200 movs r2, #0 - 80026e4: 210f movs r1, #15 - 80026e6: 2049 movs r0, #73 ; 0x49 - 80026e8: f003 f818 bl 800571c + 80026e6: 2200 movs r2, #0 + 80026e8: 210f movs r1, #15 + 80026ea: 2049 movs r0, #73 ; 0x49 + 80026ec: f003 f818 bl 8005720 HAL_NVIC_EnableIRQ(DISCOVERY_AUDIO_I2Cx_ER_IRQn); - 80026ec: 2049 movs r0, #73 ; 0x49 - 80026ee: f003 f831 bl 8005754 + 80026f0: 2049 movs r0, #73 ; 0x49 + 80026f2: f003 f831 bl 8005758 /* Enable and set I2Cx Interrupt to a lower priority */ HAL_NVIC_SetPriority(DISCOVERY_EXT_I2Cx_ER_IRQn, 0x0F, 0); HAL_NVIC_EnableIRQ(DISCOVERY_EXT_I2Cx_ER_IRQn); } } - 80026f2: e04d b.n 8002790 + 80026f6: e04d b.n 8002794 DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_CLK_ENABLE(); - 80026f4: 4b29 ldr r3, [pc, #164] ; (800279c ) - 80026f6: 6b1b ldr r3, [r3, #48] ; 0x30 - 80026f8: 4a28 ldr r2, [pc, #160] ; (800279c ) - 80026fa: f043 0302 orr.w r3, r3, #2 - 80026fe: 6313 str r3, [r2, #48] ; 0x30 - 8002700: 4b26 ldr r3, [pc, #152] ; (800279c ) - 8002702: 6b1b ldr r3, [r3, #48] ; 0x30 - 8002704: f003 0302 and.w r3, r3, #2 - 8002708: 613b str r3, [r7, #16] - 800270a: 693b ldr r3, [r7, #16] + 80026f8: 4b29 ldr r3, [pc, #164] ; (80027a0 ) + 80026fa: 6b1b ldr r3, [r3, #48] ; 0x30 + 80026fc: 4a28 ldr r2, [pc, #160] ; (80027a0 ) + 80026fe: f043 0302 orr.w r3, r3, #2 + 8002702: 6313 str r3, [r2, #48] ; 0x30 + 8002704: 4b26 ldr r3, [pc, #152] ; (80027a0 ) + 8002706: 6b1b ldr r3, [r3, #48] ; 0x30 + 8002708: f003 0302 and.w r3, r3, #2 + 800270c: 613b str r3, [r7, #16] + 800270e: 693b ldr r3, [r7, #16] gpio_init_structure.Pin = DISCOVERY_EXT_I2Cx_SCL_PIN; - 800270c: f44f 7380 mov.w r3, #256 ; 0x100 - 8002710: 61fb str r3, [r7, #28] + 8002710: f44f 7380 mov.w r3, #256 ; 0x100 + 8002714: 61fb str r3, [r7, #28] gpio_init_structure.Mode = GPIO_MODE_AF_OD; - 8002712: 2312 movs r3, #18 - 8002714: 623b str r3, [r7, #32] + 8002716: 2312 movs r3, #18 + 8002718: 623b str r3, [r7, #32] gpio_init_structure.Pull = GPIO_NOPULL; - 8002716: 2300 movs r3, #0 - 8002718: 627b str r3, [r7, #36] ; 0x24 + 800271a: 2300 movs r3, #0 + 800271c: 627b str r3, [r7, #36] ; 0x24 gpio_init_structure.Speed = GPIO_SPEED_FAST; - 800271a: 2302 movs r3, #2 - 800271c: 62bb str r3, [r7, #40] ; 0x28 + 800271e: 2302 movs r3, #2 + 8002720: 62bb str r3, [r7, #40] ; 0x28 gpio_init_structure.Alternate = DISCOVERY_EXT_I2Cx_SCL_SDA_AF; - 800271e: 2304 movs r3, #4 - 8002720: 62fb str r3, [r7, #44] ; 0x2c + 8002722: 2304 movs r3, #4 + 8002724: 62fb str r3, [r7, #44] ; 0x2c HAL_GPIO_Init(DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_PORT, &gpio_init_structure); - 8002722: f107 031c add.w r3, r7, #28 - 8002726: 4619 mov r1, r3 - 8002728: 481e ldr r0, [pc, #120] ; (80027a4 ) - 800272a: f004 ffa7 bl 800767c + 8002726: f107 031c add.w r3, r7, #28 + 800272a: 4619 mov r1, r3 + 800272c: 481e ldr r0, [pc, #120] ; (80027a8 ) + 800272e: f004 ffa7 bl 8007680 gpio_init_structure.Pin = DISCOVERY_EXT_I2Cx_SDA_PIN; - 800272e: f44f 7300 mov.w r3, #512 ; 0x200 - 8002732: 61fb str r3, [r7, #28] + 8002732: f44f 7300 mov.w r3, #512 ; 0x200 + 8002736: 61fb str r3, [r7, #28] HAL_GPIO_Init(DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_PORT, &gpio_init_structure); - 8002734: f107 031c add.w r3, r7, #28 - 8002738: 4619 mov r1, r3 - 800273a: 481a ldr r0, [pc, #104] ; (80027a4 ) - 800273c: f004 ff9e bl 800767c + 8002738: f107 031c add.w r3, r7, #28 + 800273c: 4619 mov r1, r3 + 800273e: 481a ldr r0, [pc, #104] ; (80027a8 ) + 8002740: f004 ff9e bl 8007680 DISCOVERY_EXT_I2Cx_CLK_ENABLE(); - 8002740: 4b16 ldr r3, [pc, #88] ; (800279c ) - 8002742: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002744: 4a15 ldr r2, [pc, #84] ; (800279c ) - 8002746: f443 1300 orr.w r3, r3, #2097152 ; 0x200000 - 800274a: 6413 str r3, [r2, #64] ; 0x40 - 800274c: 4b13 ldr r3, [pc, #76] ; (800279c ) - 800274e: 6c1b ldr r3, [r3, #64] ; 0x40 - 8002750: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8002754: 60fb str r3, [r7, #12] - 8002756: 68fb ldr r3, [r7, #12] + 8002744: 4b16 ldr r3, [pc, #88] ; (80027a0 ) + 8002746: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002748: 4a15 ldr r2, [pc, #84] ; (80027a0 ) + 800274a: f443 1300 orr.w r3, r3, #2097152 ; 0x200000 + 800274e: 6413 str r3, [r2, #64] ; 0x40 + 8002750: 4b13 ldr r3, [pc, #76] ; (80027a0 ) + 8002752: 6c1b ldr r3, [r3, #64] ; 0x40 + 8002754: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8002758: 60fb str r3, [r7, #12] + 800275a: 68fb ldr r3, [r7, #12] DISCOVERY_EXT_I2Cx_FORCE_RESET(); - 8002758: 4b10 ldr r3, [pc, #64] ; (800279c ) - 800275a: 6a1b ldr r3, [r3, #32] - 800275c: 4a0f ldr r2, [pc, #60] ; (800279c ) - 800275e: f443 1300 orr.w r3, r3, #2097152 ; 0x200000 - 8002762: 6213 str r3, [r2, #32] + 800275c: 4b10 ldr r3, [pc, #64] ; (80027a0 ) + 800275e: 6a1b ldr r3, [r3, #32] + 8002760: 4a0f ldr r2, [pc, #60] ; (80027a0 ) + 8002762: f443 1300 orr.w r3, r3, #2097152 ; 0x200000 + 8002766: 6213 str r3, [r2, #32] DISCOVERY_EXT_I2Cx_RELEASE_RESET(); - 8002764: 4b0d ldr r3, [pc, #52] ; (800279c ) - 8002766: 6a1b ldr r3, [r3, #32] - 8002768: 4a0c ldr r2, [pc, #48] ; (800279c ) - 800276a: f423 1300 bic.w r3, r3, #2097152 ; 0x200000 - 800276e: 6213 str r3, [r2, #32] + 8002768: 4b0d ldr r3, [pc, #52] ; (80027a0 ) + 800276a: 6a1b ldr r3, [r3, #32] + 800276c: 4a0c ldr r2, [pc, #48] ; (80027a0 ) + 800276e: f423 1300 bic.w r3, r3, #2097152 ; 0x200000 + 8002772: 6213 str r3, [r2, #32] HAL_NVIC_SetPriority(DISCOVERY_EXT_I2Cx_EV_IRQn, 0x0F, 0); - 8002770: 2200 movs r2, #0 - 8002772: 210f movs r1, #15 - 8002774: 201f movs r0, #31 - 8002776: f002 ffd1 bl 800571c + 8002774: 2200 movs r2, #0 + 8002776: 210f movs r1, #15 + 8002778: 201f movs r0, #31 + 800277a: f002 ffd1 bl 8005720 HAL_NVIC_EnableIRQ(DISCOVERY_EXT_I2Cx_EV_IRQn); - 800277a: 201f movs r0, #31 - 800277c: f002 ffea bl 8005754 + 800277e: 201f movs r0, #31 + 8002780: f002 ffea bl 8005758 HAL_NVIC_SetPriority(DISCOVERY_EXT_I2Cx_ER_IRQn, 0x0F, 0); - 8002780: 2200 movs r2, #0 - 8002782: 210f movs r1, #15 - 8002784: 2020 movs r0, #32 - 8002786: f002 ffc9 bl 800571c + 8002784: 2200 movs r2, #0 + 8002786: 210f movs r1, #15 + 8002788: 2020 movs r0, #32 + 800278a: f002 ffc9 bl 8005720 HAL_NVIC_EnableIRQ(DISCOVERY_EXT_I2Cx_ER_IRQn); - 800278a: 2020 movs r0, #32 - 800278c: f002 ffe2 bl 8005754 -} - 8002790: bf00 nop - 8002792: 3730 adds r7, #48 ; 0x30 - 8002794: 46bd mov sp, r7 - 8002796: bd80 pop {r7, pc} - 8002798: 20000384 .word 0x20000384 - 800279c: 40023800 .word 0x40023800 - 80027a0: 40021c00 .word 0x40021c00 - 80027a4: 40020400 .word 0x40020400 - -080027a8 : + 800278e: 2020 movs r0, #32 + 8002790: f002 ffe2 bl 8005758 +} + 8002794: bf00 nop + 8002796: 3730 adds r7, #48 ; 0x30 + 8002798: 46bd mov sp, r7 + 800279a: bd80 pop {r7, pc} + 800279c: 20000384 .word 0x20000384 + 80027a0: 40023800 .word 0x40023800 + 80027a4: 40021c00 .word 0x40021c00 + 80027a8: 40020400 .word 0x40020400 + +080027ac : * @brief Initializes I2C HAL. * @param i2c_handler : I2C handler * @retval None */ static void I2Cx_Init(I2C_HandleTypeDef *i2c_handler) { - 80027a8: b580 push {r7, lr} - 80027aa: b082 sub sp, #8 - 80027ac: af00 add r7, sp, #0 - 80027ae: 6078 str r0, [r7, #4] + 80027ac: b580 push {r7, lr} + 80027ae: b082 sub sp, #8 + 80027b0: af00 add r7, sp, #0 + 80027b2: 6078 str r0, [r7, #4] if(HAL_I2C_GetState(i2c_handler) == HAL_I2C_STATE_RESET) - 80027b0: 6878 ldr r0, [r7, #4] - 80027b2: f005 fd37 bl 8008224 - 80027b6: 4603 mov r3, r0 - 80027b8: 2b00 cmp r3, #0 - 80027ba: d125 bne.n 8002808 + 80027b4: 6878 ldr r0, [r7, #4] + 80027b6: f005 fd37 bl 8008228 + 80027ba: 4603 mov r3, r0 + 80027bc: 2b00 cmp r3, #0 + 80027be: d125 bne.n 800280c { if (i2c_handler == (I2C_HandleTypeDef*)(&hI2cAudioHandler)) - 80027bc: 687b ldr r3, [r7, #4] - 80027be: 4a14 ldr r2, [pc, #80] ; (8002810 ) - 80027c0: 4293 cmp r3, r2 - 80027c2: d103 bne.n 80027cc + 80027c0: 687b ldr r3, [r7, #4] + 80027c2: 4a14 ldr r2, [pc, #80] ; (8002814 ) + 80027c4: 4293 cmp r3, r2 + 80027c6: d103 bne.n 80027d0 { /* Audio and LCD I2C configuration */ i2c_handler->Instance = DISCOVERY_AUDIO_I2Cx; - 80027c4: 687b ldr r3, [r7, #4] - 80027c6: 4a13 ldr r2, [pc, #76] ; (8002814 ) - 80027c8: 601a str r2, [r3, #0] - 80027ca: e002 b.n 80027d2 + 80027c8: 687b ldr r3, [r7, #4] + 80027ca: 4a13 ldr r2, [pc, #76] ; (8002818 ) + 80027cc: 601a str r2, [r3, #0] + 80027ce: e002 b.n 80027d6 } else { /* External, camera and Arduino connector I2C configuration */ i2c_handler->Instance = DISCOVERY_EXT_I2Cx; - 80027cc: 687b ldr r3, [r7, #4] - 80027ce: 4a12 ldr r2, [pc, #72] ; (8002818 ) - 80027d0: 601a str r2, [r3, #0] + 80027d0: 687b ldr r3, [r7, #4] + 80027d2: 4a12 ldr r2, [pc, #72] ; (800281c ) + 80027d4: 601a str r2, [r3, #0] } i2c_handler->Init.Timing = DISCOVERY_I2Cx_TIMING; - 80027d2: 687b ldr r3, [r7, #4] - 80027d4: 4a11 ldr r2, [pc, #68] ; (800281c ) - 80027d6: 605a str r2, [r3, #4] + 80027d6: 687b ldr r3, [r7, #4] + 80027d8: 4a11 ldr r2, [pc, #68] ; (8002820 ) + 80027da: 605a str r2, [r3, #4] i2c_handler->Init.OwnAddress1 = 0; - 80027d8: 687b ldr r3, [r7, #4] - 80027da: 2200 movs r2, #0 - 80027dc: 609a str r2, [r3, #8] + 80027dc: 687b ldr r3, [r7, #4] + 80027de: 2200 movs r2, #0 + 80027e0: 609a str r2, [r3, #8] i2c_handler->Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; - 80027de: 687b ldr r3, [r7, #4] - 80027e0: 2201 movs r2, #1 - 80027e2: 60da str r2, [r3, #12] + 80027e2: 687b ldr r3, [r7, #4] + 80027e4: 2201 movs r2, #1 + 80027e6: 60da str r2, [r3, #12] i2c_handler->Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; - 80027e4: 687b ldr r3, [r7, #4] - 80027e6: 2200 movs r2, #0 - 80027e8: 611a str r2, [r3, #16] + 80027e8: 687b ldr r3, [r7, #4] + 80027ea: 2200 movs r2, #0 + 80027ec: 611a str r2, [r3, #16] i2c_handler->Init.OwnAddress2 = 0; - 80027ea: 687b ldr r3, [r7, #4] - 80027ec: 2200 movs r2, #0 - 80027ee: 615a str r2, [r3, #20] + 80027ee: 687b ldr r3, [r7, #4] + 80027f0: 2200 movs r2, #0 + 80027f2: 615a str r2, [r3, #20] i2c_handler->Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; - 80027f0: 687b ldr r3, [r7, #4] - 80027f2: 2200 movs r2, #0 - 80027f4: 61da str r2, [r3, #28] + 80027f4: 687b ldr r3, [r7, #4] + 80027f6: 2200 movs r2, #0 + 80027f8: 61da str r2, [r3, #28] i2c_handler->Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; - 80027f6: 687b ldr r3, [r7, #4] - 80027f8: 2200 movs r2, #0 - 80027fa: 621a str r2, [r3, #32] + 80027fa: 687b ldr r3, [r7, #4] + 80027fc: 2200 movs r2, #0 + 80027fe: 621a str r2, [r3, #32] /* Init the I2C */ I2Cx_MspInit(i2c_handler); - 80027fc: 6878 ldr r0, [r7, #4] - 80027fe: f7ff ff23 bl 8002648 + 8002800: 6878 ldr r0, [r7, #4] + 8002802: f7ff ff23 bl 800264c HAL_I2C_Init(i2c_handler); - 8002802: 6878 ldr r0, [r7, #4] - 8002804: f005 fa20 bl 8007c48 + 8002806: 6878 ldr r0, [r7, #4] + 8002808: f005 fa20 bl 8007c4c } } - 8002808: bf00 nop - 800280a: 3708 adds r7, #8 - 800280c: 46bd mov sp, r7 - 800280e: bd80 pop {r7, pc} - 8002810: 20000384 .word 0x20000384 - 8002814: 40005c00 .word 0x40005c00 - 8002818: 40005400 .word 0x40005400 - 800281c: 40912732 .word 0x40912732 + 800280c: bf00 nop + 800280e: 3708 adds r7, #8 + 8002810: 46bd mov sp, r7 + 8002812: bd80 pop {r7, pc} + 8002814: 20000384 .word 0x20000384 + 8002818: 40005c00 .word 0x40005c00 + 800281c: 40005400 .word 0x40005400 + 8002820: 40912732 .word 0x40912732 -08002820 : +08002824 : uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) { - 8002820: b580 push {r7, lr} - 8002822: b08a sub sp, #40 ; 0x28 - 8002824: af04 add r7, sp, #16 - 8002826: 60f8 str r0, [r7, #12] - 8002828: 4608 mov r0, r1 - 800282a: 4611 mov r1, r2 - 800282c: 461a mov r2, r3 - 800282e: 4603 mov r3, r0 - 8002830: 72fb strb r3, [r7, #11] - 8002832: 460b mov r3, r1 - 8002834: 813b strh r3, [r7, #8] - 8002836: 4613 mov r3, r2 - 8002838: 80fb strh r3, [r7, #6] + 8002824: b580 push {r7, lr} + 8002826: b08a sub sp, #40 ; 0x28 + 8002828: af04 add r7, sp, #16 + 800282a: 60f8 str r0, [r7, #12] + 800282c: 4608 mov r0, r1 + 800282e: 4611 mov r1, r2 + 8002830: 461a mov r2, r3 + 8002832: 4603 mov r3, r0 + 8002834: 72fb strb r3, [r7, #11] + 8002836: 460b mov r3, r1 + 8002838: 813b strh r3, [r7, #8] + 800283a: 4613 mov r3, r2 + 800283c: 80fb strh r3, [r7, #6] HAL_StatusTypeDef status = HAL_OK; - 800283a: 2300 movs r3, #0 - 800283c: 75fb strb r3, [r7, #23] + 800283e: 2300 movs r3, #0 + 8002840: 75fb strb r3, [r7, #23] status = HAL_I2C_Mem_Read(i2c_handler, Addr, (uint16_t)Reg, MemAddress, Buffer, Length, 1000); - 800283e: 7afb ldrb r3, [r7, #11] - 8002840: b299 uxth r1, r3 - 8002842: 88f8 ldrh r0, [r7, #6] - 8002844: 893a ldrh r2, [r7, #8] - 8002846: f44f 737a mov.w r3, #1000 ; 0x3e8 - 800284a: 9302 str r3, [sp, #8] - 800284c: 8cbb ldrh r3, [r7, #36] ; 0x24 - 800284e: 9301 str r3, [sp, #4] - 8002850: 6a3b ldr r3, [r7, #32] - 8002852: 9300 str r3, [sp, #0] - 8002854: 4603 mov r3, r0 - 8002856: 68f8 ldr r0, [r7, #12] - 8002858: f005 fbca bl 8007ff0 - 800285c: 4603 mov r3, r0 - 800285e: 75fb strb r3, [r7, #23] + 8002842: 7afb ldrb r3, [r7, #11] + 8002844: b299 uxth r1, r3 + 8002846: 88f8 ldrh r0, [r7, #6] + 8002848: 893a ldrh r2, [r7, #8] + 800284a: f44f 737a mov.w r3, #1000 ; 0x3e8 + 800284e: 9302 str r3, [sp, #8] + 8002850: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8002852: 9301 str r3, [sp, #4] + 8002854: 6a3b ldr r3, [r7, #32] + 8002856: 9300 str r3, [sp, #0] + 8002858: 4603 mov r3, r0 + 800285a: 68f8 ldr r0, [r7, #12] + 800285c: f005 fbca bl 8007ff4 + 8002860: 4603 mov r3, r0 + 8002862: 75fb strb r3, [r7, #23] /* Check the communication status */ if(status != HAL_OK) - 8002860: 7dfb ldrb r3, [r7, #23] - 8002862: 2b00 cmp r3, #0 - 8002864: d004 beq.n 8002870 + 8002864: 7dfb ldrb r3, [r7, #23] + 8002866: 2b00 cmp r3, #0 + 8002868: d004 beq.n 8002874 { /* I2C error occurred */ I2Cx_Error(i2c_handler, Addr); - 8002866: 7afb ldrb r3, [r7, #11] - 8002868: 4619 mov r1, r3 - 800286a: 68f8 ldr r0, [r7, #12] - 800286c: f000 f832 bl 80028d4 + 800286a: 7afb ldrb r3, [r7, #11] + 800286c: 4619 mov r1, r3 + 800286e: 68f8 ldr r0, [r7, #12] + 8002870: f000 f832 bl 80028d8 } return status; - 8002870: 7dfb ldrb r3, [r7, #23] + 8002874: 7dfb ldrb r3, [r7, #23] } - 8002872: 4618 mov r0, r3 - 8002874: 3718 adds r7, #24 - 8002876: 46bd mov sp, r7 - 8002878: bd80 pop {r7, pc} + 8002876: 4618 mov r0, r3 + 8002878: 3718 adds r7, #24 + 800287a: 46bd mov sp, r7 + 800287c: bd80 pop {r7, pc} -0800287a : +0800287e : uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) { - 800287a: b580 push {r7, lr} - 800287c: b08a sub sp, #40 ; 0x28 - 800287e: af04 add r7, sp, #16 - 8002880: 60f8 str r0, [r7, #12] - 8002882: 4608 mov r0, r1 - 8002884: 4611 mov r1, r2 - 8002886: 461a mov r2, r3 - 8002888: 4603 mov r3, r0 - 800288a: 72fb strb r3, [r7, #11] - 800288c: 460b mov r3, r1 - 800288e: 813b strh r3, [r7, #8] - 8002890: 4613 mov r3, r2 - 8002892: 80fb strh r3, [r7, #6] + 800287e: b580 push {r7, lr} + 8002880: b08a sub sp, #40 ; 0x28 + 8002882: af04 add r7, sp, #16 + 8002884: 60f8 str r0, [r7, #12] + 8002886: 4608 mov r0, r1 + 8002888: 4611 mov r1, r2 + 800288a: 461a mov r2, r3 + 800288c: 4603 mov r3, r0 + 800288e: 72fb strb r3, [r7, #11] + 8002890: 460b mov r3, r1 + 8002892: 813b strh r3, [r7, #8] + 8002894: 4613 mov r3, r2 + 8002896: 80fb strh r3, [r7, #6] HAL_StatusTypeDef status = HAL_OK; - 8002894: 2300 movs r3, #0 - 8002896: 75fb strb r3, [r7, #23] + 8002898: 2300 movs r3, #0 + 800289a: 75fb strb r3, [r7, #23] status = HAL_I2C_Mem_Write(i2c_handler, Addr, (uint16_t)Reg, MemAddress, Buffer, Length, 1000); - 8002898: 7afb ldrb r3, [r7, #11] - 800289a: b299 uxth r1, r3 - 800289c: 88f8 ldrh r0, [r7, #6] - 800289e: 893a ldrh r2, [r7, #8] - 80028a0: f44f 737a mov.w r3, #1000 ; 0x3e8 - 80028a4: 9302 str r3, [sp, #8] - 80028a6: 8cbb ldrh r3, [r7, #36] ; 0x24 - 80028a8: 9301 str r3, [sp, #4] - 80028aa: 6a3b ldr r3, [r7, #32] - 80028ac: 9300 str r3, [sp, #0] - 80028ae: 4603 mov r3, r0 - 80028b0: 68f8 ldr r0, [r7, #12] - 80028b2: f005 fa89 bl 8007dc8 - 80028b6: 4603 mov r3, r0 - 80028b8: 75fb strb r3, [r7, #23] + 800289c: 7afb ldrb r3, [r7, #11] + 800289e: b299 uxth r1, r3 + 80028a0: 88f8 ldrh r0, [r7, #6] + 80028a2: 893a ldrh r2, [r7, #8] + 80028a4: f44f 737a mov.w r3, #1000 ; 0x3e8 + 80028a8: 9302 str r3, [sp, #8] + 80028aa: 8cbb ldrh r3, [r7, #36] ; 0x24 + 80028ac: 9301 str r3, [sp, #4] + 80028ae: 6a3b ldr r3, [r7, #32] + 80028b0: 9300 str r3, [sp, #0] + 80028b2: 4603 mov r3, r0 + 80028b4: 68f8 ldr r0, [r7, #12] + 80028b6: f005 fa89 bl 8007dcc + 80028ba: 4603 mov r3, r0 + 80028bc: 75fb strb r3, [r7, #23] /* Check the communication status */ if(status != HAL_OK) - 80028ba: 7dfb ldrb r3, [r7, #23] - 80028bc: 2b00 cmp r3, #0 - 80028be: d004 beq.n 80028ca + 80028be: 7dfb ldrb r3, [r7, #23] + 80028c0: 2b00 cmp r3, #0 + 80028c2: d004 beq.n 80028ce { /* Re-Initiaize the I2C Bus */ I2Cx_Error(i2c_handler, Addr); - 80028c0: 7afb ldrb r3, [r7, #11] - 80028c2: 4619 mov r1, r3 - 80028c4: 68f8 ldr r0, [r7, #12] - 80028c6: f000 f805 bl 80028d4 + 80028c4: 7afb ldrb r3, [r7, #11] + 80028c6: 4619 mov r1, r3 + 80028c8: 68f8 ldr r0, [r7, #12] + 80028ca: f000 f805 bl 80028d8 } return status; - 80028ca: 7dfb ldrb r3, [r7, #23] + 80028ce: 7dfb ldrb r3, [r7, #23] } - 80028cc: 4618 mov r0, r3 - 80028ce: 3718 adds r7, #24 - 80028d0: 46bd mov sp, r7 - 80028d2: bd80 pop {r7, pc} + 80028d0: 4618 mov r0, r3 + 80028d2: 3718 adds r7, #24 + 80028d4: 46bd mov sp, r7 + 80028d6: bd80 pop {r7, pc} -080028d4 : +080028d8 : * @param i2c_handler : I2C handler * @param Addr: I2C Address * @retval None */ static void I2Cx_Error(I2C_HandleTypeDef *i2c_handler, uint8_t Addr) { - 80028d4: b580 push {r7, lr} - 80028d6: b082 sub sp, #8 - 80028d8: af00 add r7, sp, #0 - 80028da: 6078 str r0, [r7, #4] - 80028dc: 460b mov r3, r1 - 80028de: 70fb strb r3, [r7, #3] + 80028d8: b580 push {r7, lr} + 80028da: b082 sub sp, #8 + 80028dc: af00 add r7, sp, #0 + 80028de: 6078 str r0, [r7, #4] + 80028e0: 460b mov r3, r1 + 80028e2: 70fb strb r3, [r7, #3] /* De-initialize the I2C communication bus */ HAL_I2C_DeInit(i2c_handler); - 80028e0: 6878 ldr r0, [r7, #4] - 80028e2: f005 fa41 bl 8007d68 + 80028e4: 6878 ldr r0, [r7, #4] + 80028e6: f005 fa41 bl 8007d6c /* Re-Initialize the I2C communication bus */ I2Cx_Init(i2c_handler); - 80028e6: 6878 ldr r0, [r7, #4] - 80028e8: f7ff ff5e bl 80027a8 + 80028ea: 6878 ldr r0, [r7, #4] + 80028ec: f7ff ff5e bl 80027ac } - 80028ec: bf00 nop - 80028ee: 3708 adds r7, #8 - 80028f0: 46bd mov sp, r7 - 80028f2: bd80 pop {r7, pc} + 80028f0: bf00 nop + 80028f2: 3708 adds r7, #8 + 80028f4: 46bd mov sp, r7 + 80028f6: bd80 pop {r7, pc} -080028f4 : +080028f8 : /** * @brief Initializes Touchscreen low level. * @retval None */ void TS_IO_Init(void) { - 80028f4: b580 push {r7, lr} - 80028f6: af00 add r7, sp, #0 + 80028f8: b580 push {r7, lr} + 80028fa: af00 add r7, sp, #0 I2Cx_Init(&hI2cAudioHandler); - 80028f8: 4802 ldr r0, [pc, #8] ; (8002904 ) - 80028fa: f7ff ff55 bl 80027a8 + 80028fc: 4802 ldr r0, [pc, #8] ; (8002908 ) + 80028fe: f7ff ff55 bl 80027ac } - 80028fe: bf00 nop - 8002900: bd80 pop {r7, pc} 8002902: bf00 nop - 8002904: 20000384 .word 0x20000384 + 8002904: bd80 pop {r7, pc} + 8002906: bf00 nop + 8002908: 20000384 .word 0x20000384 -08002908 : +0800290c : * @param Reg: Reg address * @param Value: Data to be written * @retval None */ void TS_IO_Write(uint8_t Addr, uint8_t Reg, uint8_t Value) { - 8002908: b580 push {r7, lr} - 800290a: b084 sub sp, #16 - 800290c: af02 add r7, sp, #8 - 800290e: 4603 mov r3, r0 - 8002910: 71fb strb r3, [r7, #7] - 8002912: 460b mov r3, r1 - 8002914: 71bb strb r3, [r7, #6] - 8002916: 4613 mov r3, r2 - 8002918: 717b strb r3, [r7, #5] + 800290c: b580 push {r7, lr} + 800290e: b084 sub sp, #16 + 8002910: af02 add r7, sp, #8 + 8002912: 4603 mov r3, r0 + 8002914: 71fb strb r3, [r7, #7] + 8002916: 460b mov r3, r1 + 8002918: 71bb strb r3, [r7, #6] + 800291a: 4613 mov r3, r2 + 800291c: 717b strb r3, [r7, #5] I2Cx_WriteMultiple(&hI2cAudioHandler, Addr, (uint16_t)Reg, I2C_MEMADD_SIZE_8BIT,(uint8_t*)&Value, 1); - 800291a: 79bb ldrb r3, [r7, #6] - 800291c: b29a uxth r2, r3 - 800291e: 79f9 ldrb r1, [r7, #7] - 8002920: 2301 movs r3, #1 - 8002922: 9301 str r3, [sp, #4] - 8002924: 1d7b adds r3, r7, #5 - 8002926: 9300 str r3, [sp, #0] - 8002928: 2301 movs r3, #1 - 800292a: 4803 ldr r0, [pc, #12] ; (8002938 ) - 800292c: f7ff ffa5 bl 800287a -} - 8002930: bf00 nop - 8002932: 3708 adds r7, #8 - 8002934: 46bd mov sp, r7 - 8002936: bd80 pop {r7, pc} - 8002938: 20000384 .word 0x20000384 - -0800293c : + 800291e: 79bb ldrb r3, [r7, #6] + 8002920: b29a uxth r2, r3 + 8002922: 79f9 ldrb r1, [r7, #7] + 8002924: 2301 movs r3, #1 + 8002926: 9301 str r3, [sp, #4] + 8002928: 1d7b adds r3, r7, #5 + 800292a: 9300 str r3, [sp, #0] + 800292c: 2301 movs r3, #1 + 800292e: 4803 ldr r0, [pc, #12] ; (800293c ) + 8002930: f7ff ffa5 bl 800287e +} + 8002934: bf00 nop + 8002936: 3708 adds r7, #8 + 8002938: 46bd mov sp, r7 + 800293a: bd80 pop {r7, pc} + 800293c: 20000384 .word 0x20000384 + +08002940 : * @param Addr: I2C address * @param Reg: Reg address * @retval Data to be read */ uint8_t TS_IO_Read(uint8_t Addr, uint8_t Reg) { - 800293c: b580 push {r7, lr} - 800293e: b086 sub sp, #24 - 8002940: af02 add r7, sp, #8 - 8002942: 4603 mov r3, r0 - 8002944: 460a mov r2, r1 - 8002946: 71fb strb r3, [r7, #7] - 8002948: 4613 mov r3, r2 - 800294a: 71bb strb r3, [r7, #6] + 8002940: b580 push {r7, lr} + 8002942: b086 sub sp, #24 + 8002944: af02 add r7, sp, #8 + 8002946: 4603 mov r3, r0 + 8002948: 460a mov r2, r1 + 800294a: 71fb strb r3, [r7, #7] + 800294c: 4613 mov r3, r2 + 800294e: 71bb strb r3, [r7, #6] uint8_t read_value = 0; - 800294c: 2300 movs r3, #0 - 800294e: 73fb strb r3, [r7, #15] + 8002950: 2300 movs r3, #0 + 8002952: 73fb strb r3, [r7, #15] I2Cx_ReadMultiple(&hI2cAudioHandler, Addr, Reg, I2C_MEMADD_SIZE_8BIT, (uint8_t*)&read_value, 1); - 8002950: 79bb ldrb r3, [r7, #6] - 8002952: b29a uxth r2, r3 - 8002954: 79f9 ldrb r1, [r7, #7] - 8002956: 2301 movs r3, #1 - 8002958: 9301 str r3, [sp, #4] - 800295a: f107 030f add.w r3, r7, #15 - 800295e: 9300 str r3, [sp, #0] - 8002960: 2301 movs r3, #1 - 8002962: 4804 ldr r0, [pc, #16] ; (8002974 ) - 8002964: f7ff ff5c bl 8002820 + 8002954: 79bb ldrb r3, [r7, #6] + 8002956: b29a uxth r2, r3 + 8002958: 79f9 ldrb r1, [r7, #7] + 800295a: 2301 movs r3, #1 + 800295c: 9301 str r3, [sp, #4] + 800295e: f107 030f add.w r3, r7, #15 + 8002962: 9300 str r3, [sp, #0] + 8002964: 2301 movs r3, #1 + 8002966: 4804 ldr r0, [pc, #16] ; (8002978 ) + 8002968: f7ff ff5c bl 8002824 return read_value; - 8002968: 7bfb ldrb r3, [r7, #15] + 800296c: 7bfb ldrb r3, [r7, #15] } - 800296a: 4618 mov r0, r3 - 800296c: 3710 adds r7, #16 - 800296e: 46bd mov sp, r7 - 8002970: bd80 pop {r7, pc} - 8002972: bf00 nop - 8002974: 20000384 .word 0x20000384 + 800296e: 4618 mov r0, r3 + 8002970: 3710 adds r7, #16 + 8002972: 46bd mov sp, r7 + 8002974: bd80 pop {r7, pc} + 8002976: bf00 nop + 8002978: 20000384 .word 0x20000384 -08002978 : +0800297c : * @brief TS delay * @param Delay: Delay in ms * @retval None */ void TS_IO_Delay(uint32_t Delay) { - 8002978: b580 push {r7, lr} - 800297a: b082 sub sp, #8 - 800297c: af00 add r7, sp, #0 - 800297e: 6078 str r0, [r7, #4] + 800297c: b580 push {r7, lr} + 800297e: b082 sub sp, #8 + 8002980: af00 add r7, sp, #0 + 8002982: 6078 str r0, [r7, #4] HAL_Delay(Delay); - 8002980: 6878 ldr r0, [r7, #4] - 8002982: f002 faa9 bl 8004ed8 + 8002984: 6878 ldr r0, [r7, #4] + 8002986: f002 faa9 bl 8004edc } - 8002986: bf00 nop - 8002988: 3708 adds r7, #8 - 800298a: 46bd mov sp, r7 - 800298c: bd80 pop {r7, pc} + 800298a: bf00 nop + 800298c: 3708 adds r7, #8 + 800298e: 46bd mov sp, r7 + 8002990: bd80 pop {r7, pc} ... -08002990 : +08002994 : /** * @brief Initializes the LCD. * @retval LCD state */ uint8_t BSP_LCD_Init(void) { - 8002990: b580 push {r7, lr} - 8002992: af00 add r7, sp, #0 + 8002994: b580 push {r7, lr} + 8002996: af00 add r7, sp, #0 /* Select the used LCD */ /* The RK043FN48H LCD 480x272 is selected */ /* Timing Configuration */ hLtdcHandler.Init.HorizontalSync = (RK043FN48H_HSYNC - 1); - 8002994: 4b31 ldr r3, [pc, #196] ; (8002a5c ) - 8002996: 2228 movs r2, #40 ; 0x28 - 8002998: 615a str r2, [r3, #20] + 8002998: 4b31 ldr r3, [pc, #196] ; (8002a60 ) + 800299a: 2228 movs r2, #40 ; 0x28 + 800299c: 615a str r2, [r3, #20] hLtdcHandler.Init.VerticalSync = (RK043FN48H_VSYNC - 1); - 800299a: 4b30 ldr r3, [pc, #192] ; (8002a5c ) - 800299c: 2209 movs r2, #9 - 800299e: 619a str r2, [r3, #24] + 800299e: 4b30 ldr r3, [pc, #192] ; (8002a60 ) + 80029a0: 2209 movs r2, #9 + 80029a2: 619a str r2, [r3, #24] hLtdcHandler.Init.AccumulatedHBP = (RK043FN48H_HSYNC + RK043FN48H_HBP - 1); - 80029a0: 4b2e ldr r3, [pc, #184] ; (8002a5c ) - 80029a2: 2235 movs r2, #53 ; 0x35 - 80029a4: 61da str r2, [r3, #28] + 80029a4: 4b2e ldr r3, [pc, #184] ; (8002a60 ) + 80029a6: 2235 movs r2, #53 ; 0x35 + 80029a8: 61da str r2, [r3, #28] hLtdcHandler.Init.AccumulatedVBP = (RK043FN48H_VSYNC + RK043FN48H_VBP - 1); - 80029a6: 4b2d ldr r3, [pc, #180] ; (8002a5c ) - 80029a8: 220b movs r2, #11 - 80029aa: 621a str r2, [r3, #32] + 80029aa: 4b2d ldr r3, [pc, #180] ; (8002a60 ) + 80029ac: 220b movs r2, #11 + 80029ae: 621a str r2, [r3, #32] hLtdcHandler.Init.AccumulatedActiveH = (RK043FN48H_HEIGHT + RK043FN48H_VSYNC + RK043FN48H_VBP - 1); - 80029ac: 4b2b ldr r3, [pc, #172] ; (8002a5c ) - 80029ae: f240 121b movw r2, #283 ; 0x11b - 80029b2: 629a str r2, [r3, #40] ; 0x28 + 80029b0: 4b2b ldr r3, [pc, #172] ; (8002a60 ) + 80029b2: f240 121b movw r2, #283 ; 0x11b + 80029b6: 629a str r2, [r3, #40] ; 0x28 hLtdcHandler.Init.AccumulatedActiveW = (RK043FN48H_WIDTH + RK043FN48H_HSYNC + RK043FN48H_HBP - 1); - 80029b4: 4b29 ldr r3, [pc, #164] ; (8002a5c ) - 80029b6: f240 2215 movw r2, #533 ; 0x215 - 80029ba: 625a str r2, [r3, #36] ; 0x24 + 80029b8: 4b29 ldr r3, [pc, #164] ; (8002a60 ) + 80029ba: f240 2215 movw r2, #533 ; 0x215 + 80029be: 625a str r2, [r3, #36] ; 0x24 hLtdcHandler.Init.TotalHeigh = (RK043FN48H_HEIGHT + RK043FN48H_VSYNC + RK043FN48H_VBP + RK043FN48H_VFP - 1); - 80029bc: 4b27 ldr r3, [pc, #156] ; (8002a5c ) - 80029be: f240 121d movw r2, #285 ; 0x11d - 80029c2: 631a str r2, [r3, #48] ; 0x30 + 80029c0: 4b27 ldr r3, [pc, #156] ; (8002a60 ) + 80029c2: f240 121d movw r2, #285 ; 0x11d + 80029c6: 631a str r2, [r3, #48] ; 0x30 hLtdcHandler.Init.TotalWidth = (RK043FN48H_WIDTH + RK043FN48H_HSYNC + RK043FN48H_HBP + RK043FN48H_HFP - 1); - 80029c4: 4b25 ldr r3, [pc, #148] ; (8002a5c ) - 80029c6: f240 2235 movw r2, #565 ; 0x235 - 80029ca: 62da str r2, [r3, #44] ; 0x2c + 80029c8: 4b25 ldr r3, [pc, #148] ; (8002a60 ) + 80029ca: f240 2235 movw r2, #565 ; 0x235 + 80029ce: 62da str r2, [r3, #44] ; 0x2c /* LCD clock configuration */ BSP_LCD_ClockConfig(&hLtdcHandler, NULL); - 80029cc: 2100 movs r1, #0 - 80029ce: 4823 ldr r0, [pc, #140] ; (8002a5c ) - 80029d0: f000 fe38 bl 8003644 + 80029d0: 2100 movs r1, #0 + 80029d2: 4823 ldr r0, [pc, #140] ; (8002a60 ) + 80029d4: f000 fe38 bl 8003648 /* Initialize the LCD pixel width and pixel height */ hLtdcHandler.LayerCfg->ImageWidth = RK043FN48H_WIDTH; - 80029d4: 4b21 ldr r3, [pc, #132] ; (8002a5c ) - 80029d6: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 80029da: 661a str r2, [r3, #96] ; 0x60 + 80029d8: 4b21 ldr r3, [pc, #132] ; (8002a60 ) + 80029da: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 80029de: 661a str r2, [r3, #96] ; 0x60 hLtdcHandler.LayerCfg->ImageHeight = RK043FN48H_HEIGHT; - 80029dc: 4b1f ldr r3, [pc, #124] ; (8002a5c ) - 80029de: f44f 7288 mov.w r2, #272 ; 0x110 - 80029e2: 665a str r2, [r3, #100] ; 0x64 + 80029e0: 4b1f ldr r3, [pc, #124] ; (8002a60 ) + 80029e2: f44f 7288 mov.w r2, #272 ; 0x110 + 80029e6: 665a str r2, [r3, #100] ; 0x64 /* Background value */ hLtdcHandler.Init.Backcolor.Blue = 0; - 80029e4: 4b1d ldr r3, [pc, #116] ; (8002a5c ) - 80029e6: 2200 movs r2, #0 - 80029e8: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 80029e8: 4b1d ldr r3, [pc, #116] ; (8002a60 ) + 80029ea: 2200 movs r2, #0 + 80029ec: f883 2034 strb.w r2, [r3, #52] ; 0x34 hLtdcHandler.Init.Backcolor.Green = 0; - 80029ec: 4b1b ldr r3, [pc, #108] ; (8002a5c ) - 80029ee: 2200 movs r2, #0 - 80029f0: f883 2035 strb.w r2, [r3, #53] ; 0x35 + 80029f0: 4b1b ldr r3, [pc, #108] ; (8002a60 ) + 80029f2: 2200 movs r2, #0 + 80029f4: f883 2035 strb.w r2, [r3, #53] ; 0x35 hLtdcHandler.Init.Backcolor.Red = 0; - 80029f4: 4b19 ldr r3, [pc, #100] ; (8002a5c ) - 80029f6: 2200 movs r2, #0 - 80029f8: f883 2036 strb.w r2, [r3, #54] ; 0x36 + 80029f8: 4b19 ldr r3, [pc, #100] ; (8002a60 ) + 80029fa: 2200 movs r2, #0 + 80029fc: f883 2036 strb.w r2, [r3, #54] ; 0x36 /* Polarity */ hLtdcHandler.Init.HSPolarity = LTDC_HSPOLARITY_AL; - 80029fc: 4b17 ldr r3, [pc, #92] ; (8002a5c ) - 80029fe: 2200 movs r2, #0 - 8002a00: 605a str r2, [r3, #4] + 8002a00: 4b17 ldr r3, [pc, #92] ; (8002a60 ) + 8002a02: 2200 movs r2, #0 + 8002a04: 605a str r2, [r3, #4] hLtdcHandler.Init.VSPolarity = LTDC_VSPOLARITY_AL; - 8002a02: 4b16 ldr r3, [pc, #88] ; (8002a5c ) - 8002a04: 2200 movs r2, #0 - 8002a06: 609a str r2, [r3, #8] + 8002a06: 4b16 ldr r3, [pc, #88] ; (8002a60 ) + 8002a08: 2200 movs r2, #0 + 8002a0a: 609a str r2, [r3, #8] hLtdcHandler.Init.DEPolarity = LTDC_DEPOLARITY_AL; - 8002a08: 4b14 ldr r3, [pc, #80] ; (8002a5c ) - 8002a0a: 2200 movs r2, #0 - 8002a0c: 60da str r2, [r3, #12] + 8002a0c: 4b14 ldr r3, [pc, #80] ; (8002a60 ) + 8002a0e: 2200 movs r2, #0 + 8002a10: 60da str r2, [r3, #12] hLtdcHandler.Init.PCPolarity = LTDC_PCPOLARITY_IPC; - 8002a0e: 4b13 ldr r3, [pc, #76] ; (8002a5c ) - 8002a10: 2200 movs r2, #0 - 8002a12: 611a str r2, [r3, #16] + 8002a12: 4b13 ldr r3, [pc, #76] ; (8002a60 ) + 8002a14: 2200 movs r2, #0 + 8002a16: 611a str r2, [r3, #16] hLtdcHandler.Instance = LTDC; - 8002a14: 4b11 ldr r3, [pc, #68] ; (8002a5c ) - 8002a16: 4a12 ldr r2, [pc, #72] ; (8002a60 ) - 8002a18: 601a str r2, [r3, #0] + 8002a18: 4b11 ldr r3, [pc, #68] ; (8002a60 ) + 8002a1a: 4a12 ldr r2, [pc, #72] ; (8002a64 ) + 8002a1c: 601a str r2, [r3, #0] if(HAL_LTDC_GetState(&hLtdcHandler) == HAL_LTDC_STATE_RESET) - 8002a1a: 4810 ldr r0, [pc, #64] ; (8002a5c ) - 8002a1c: f006 f894 bl 8008b48 - 8002a20: 4603 mov r3, r0 - 8002a22: 2b00 cmp r3, #0 - 8002a24: d103 bne.n 8002a2e + 8002a1e: 4810 ldr r0, [pc, #64] ; (8002a60 ) + 8002a20: f006 f894 bl 8008b4c + 8002a24: 4603 mov r3, r0 + 8002a26: 2b00 cmp r3, #0 + 8002a28: d103 bne.n 8002a32 { /* Initialize the LCD Msp: this __weak function can be rewritten by the application */ BSP_LCD_MspInit(&hLtdcHandler, NULL); - 8002a26: 2100 movs r1, #0 - 8002a28: 480c ldr r0, [pc, #48] ; (8002a5c ) - 8002a2a: f000 fd31 bl 8003490 + 8002a2a: 2100 movs r1, #0 + 8002a2c: 480c ldr r0, [pc, #48] ; (8002a60 ) + 8002a2e: f000 fd31 bl 8003494 } HAL_LTDC_Init(&hLtdcHandler); - 8002a2e: 480b ldr r0, [pc, #44] ; (8002a5c ) - 8002a30: f005 feba bl 80087a8 + 8002a32: 480b ldr r0, [pc, #44] ; (8002a60 ) + 8002a34: f005 feba bl 80087ac /* Assert display enable LCD_DISP pin */ HAL_GPIO_WritePin(LCD_DISP_GPIO_PORT, LCD_DISP_PIN, GPIO_PIN_SET); - 8002a34: 2201 movs r2, #1 - 8002a36: f44f 5180 mov.w r1, #4096 ; 0x1000 - 8002a3a: 480a ldr r0, [pc, #40] ; (8002a64 ) - 8002a3c: f005 f8ea bl 8007c14 + 8002a38: 2201 movs r2, #1 + 8002a3a: f44f 5180 mov.w r1, #4096 ; 0x1000 + 8002a3e: 480a ldr r0, [pc, #40] ; (8002a68 ) + 8002a40: f005 f8ea bl 8007c18 /* Assert backlight LCD_BL_CTRL pin */ HAL_GPIO_WritePin(LCD_BL_CTRL_GPIO_PORT, LCD_BL_CTRL_PIN, GPIO_PIN_SET); - 8002a40: 2201 movs r2, #1 - 8002a42: 2108 movs r1, #8 - 8002a44: 4808 ldr r0, [pc, #32] ; (8002a68 ) - 8002a46: f005 f8e5 bl 8007c14 + 8002a44: 2201 movs r2, #1 + 8002a46: 2108 movs r1, #8 + 8002a48: 4808 ldr r0, [pc, #32] ; (8002a6c ) + 8002a4a: f005 f8e5 bl 8007c18 #if !defined(DATA_IN_ExtSDRAM) /* Initialize the SDRAM */ BSP_SDRAM_Init(); - 8002a4a: f000 ff1b bl 8003884 + 8002a4e: f000 ff1b bl 8003888 #endif /* Initialize the font */ BSP_LCD_SetFont(&LCD_DEFAULT_FONT); - 8002a4e: 4807 ldr r0, [pc, #28] ; (8002a6c ) - 8002a50: f000 f8d8 bl 8002c04 + 8002a52: 4807 ldr r0, [pc, #28] ; (8002a70 ) + 8002a54: f000 f8d8 bl 8002c08 return LCD_OK; - 8002a54: 2300 movs r3, #0 -} - 8002a56: 4618 mov r0, r3 - 8002a58: bd80 pop {r7, pc} - 8002a5a: bf00 nop - 8002a5c: 20008e64 .word 0x20008e64 - 8002a60: 40016800 .word 0x40016800 - 8002a64: 40022000 .word 0x40022000 - 8002a68: 40022800 .word 0x40022800 - 8002a6c: 20000044 .word 0x20000044 - -08002a70 : + 8002a58: 2300 movs r3, #0 +} + 8002a5a: 4618 mov r0, r3 + 8002a5c: bd80 pop {r7, pc} + 8002a5e: bf00 nop + 8002a60: 20008e64 .word 0x20008e64 + 8002a64: 40016800 .word 0x40016800 + 8002a68: 40022000 .word 0x40022000 + 8002a6c: 40022800 .word 0x40022800 + 8002a70: 20000044 .word 0x20000044 + +08002a74 : /** * @brief Gets the LCD X size. * @retval Used LCD X size */ uint32_t BSP_LCD_GetXSize(void) { - 8002a70: b480 push {r7} - 8002a72: af00 add r7, sp, #0 + 8002a74: b480 push {r7} + 8002a76: af00 add r7, sp, #0 return hLtdcHandler.LayerCfg[ActiveLayer].ImageWidth; - 8002a74: 4b06 ldr r3, [pc, #24] ; (8002a90 ) - 8002a76: 681b ldr r3, [r3, #0] - 8002a78: 4a06 ldr r2, [pc, #24] ; (8002a94 ) - 8002a7a: 2134 movs r1, #52 ; 0x34 - 8002a7c: fb01 f303 mul.w r3, r1, r3 - 8002a80: 4413 add r3, r2 - 8002a82: 3360 adds r3, #96 ; 0x60 - 8002a84: 681b ldr r3, [r3, #0] -} - 8002a86: 4618 mov r0, r3 - 8002a88: 46bd mov sp, r7 - 8002a8a: f85d 7b04 ldr.w r7, [sp], #4 - 8002a8e: 4770 bx lr - 8002a90: 20000410 .word 0x20000410 - 8002a94: 20008e64 .word 0x20008e64 - -08002a98 : + 8002a78: 4b06 ldr r3, [pc, #24] ; (8002a94 ) + 8002a7a: 681b ldr r3, [r3, #0] + 8002a7c: 4a06 ldr r2, [pc, #24] ; (8002a98 ) + 8002a7e: 2134 movs r1, #52 ; 0x34 + 8002a80: fb01 f303 mul.w r3, r1, r3 + 8002a84: 4413 add r3, r2 + 8002a86: 3360 adds r3, #96 ; 0x60 + 8002a88: 681b ldr r3, [r3, #0] +} + 8002a8a: 4618 mov r0, r3 + 8002a8c: 46bd mov sp, r7 + 8002a8e: f85d 7b04 ldr.w r7, [sp], #4 + 8002a92: 4770 bx lr + 8002a94: 20000410 .word 0x20000410 + 8002a98: 20008e64 .word 0x20008e64 + +08002a9c : /** * @brief Gets the LCD Y size. * @retval Used LCD Y size */ uint32_t BSP_LCD_GetYSize(void) { - 8002a98: b480 push {r7} - 8002a9a: af00 add r7, sp, #0 + 8002a9c: b480 push {r7} + 8002a9e: af00 add r7, sp, #0 return hLtdcHandler.LayerCfg[ActiveLayer].ImageHeight; - 8002a9c: 4b06 ldr r3, [pc, #24] ; (8002ab8 ) - 8002a9e: 681b ldr r3, [r3, #0] - 8002aa0: 4a06 ldr r2, [pc, #24] ; (8002abc ) - 8002aa2: 2134 movs r1, #52 ; 0x34 - 8002aa4: fb01 f303 mul.w r3, r1, r3 - 8002aa8: 4413 add r3, r2 - 8002aaa: 3364 adds r3, #100 ; 0x64 - 8002aac: 681b ldr r3, [r3, #0] -} - 8002aae: 4618 mov r0, r3 - 8002ab0: 46bd mov sp, r7 - 8002ab2: f85d 7b04 ldr.w r7, [sp], #4 - 8002ab6: 4770 bx lr - 8002ab8: 20000410 .word 0x20000410 - 8002abc: 20008e64 .word 0x20008e64 - -08002ac0 : + 8002aa0: 4b06 ldr r3, [pc, #24] ; (8002abc ) + 8002aa2: 681b ldr r3, [r3, #0] + 8002aa4: 4a06 ldr r2, [pc, #24] ; (8002ac0 ) + 8002aa6: 2134 movs r1, #52 ; 0x34 + 8002aa8: fb01 f303 mul.w r3, r1, r3 + 8002aac: 4413 add r3, r2 + 8002aae: 3364 adds r3, #100 ; 0x64 + 8002ab0: 681b ldr r3, [r3, #0] +} + 8002ab2: 4618 mov r0, r3 + 8002ab4: 46bd mov sp, r7 + 8002ab6: f85d 7b04 ldr.w r7, [sp], #4 + 8002aba: 4770 bx lr + 8002abc: 20000410 .word 0x20000410 + 8002ac0: 20008e64 .word 0x20008e64 + +08002ac4 : * @param LayerIndex: Layer foreground or background * @param FB_Address: Layer frame buffer * @retval None */ void BSP_LCD_LayerDefaultInit(uint16_t LayerIndex, uint32_t FB_Address) { - 8002ac0: b580 push {r7, lr} - 8002ac2: b090 sub sp, #64 ; 0x40 - 8002ac4: af00 add r7, sp, #0 - 8002ac6: 4603 mov r3, r0 - 8002ac8: 6039 str r1, [r7, #0] - 8002aca: 80fb strh r3, [r7, #6] + 8002ac4: b580 push {r7, lr} + 8002ac6: b090 sub sp, #64 ; 0x40 + 8002ac8: af00 add r7, sp, #0 + 8002aca: 4603 mov r3, r0 + 8002acc: 6039 str r1, [r7, #0] + 8002ace: 80fb strh r3, [r7, #6] LCD_LayerCfgTypeDef layer_cfg; /* Layer Init */ layer_cfg.WindowX0 = 0; - 8002acc: 2300 movs r3, #0 - 8002ace: 60fb str r3, [r7, #12] + 8002ad0: 2300 movs r3, #0 + 8002ad2: 60fb str r3, [r7, #12] layer_cfg.WindowX1 = BSP_LCD_GetXSize(); - 8002ad0: f7ff ffce bl 8002a70 - 8002ad4: 4603 mov r3, r0 - 8002ad6: 613b str r3, [r7, #16] + 8002ad4: f7ff ffce bl 8002a74 + 8002ad8: 4603 mov r3, r0 + 8002ada: 613b str r3, [r7, #16] layer_cfg.WindowY0 = 0; - 8002ad8: 2300 movs r3, #0 - 8002ada: 617b str r3, [r7, #20] + 8002adc: 2300 movs r3, #0 + 8002ade: 617b str r3, [r7, #20] layer_cfg.WindowY1 = BSP_LCD_GetYSize(); - 8002adc: f7ff ffdc bl 8002a98 - 8002ae0: 4603 mov r3, r0 - 8002ae2: 61bb str r3, [r7, #24] + 8002ae0: f7ff ffdc bl 8002a9c + 8002ae4: 4603 mov r3, r0 + 8002ae6: 61bb str r3, [r7, #24] layer_cfg.PixelFormat = LTDC_PIXEL_FORMAT_ARGB8888; - 8002ae4: 2300 movs r3, #0 - 8002ae6: 61fb str r3, [r7, #28] + 8002ae8: 2300 movs r3, #0 + 8002aea: 61fb str r3, [r7, #28] layer_cfg.FBStartAdress = FB_Address; - 8002ae8: 683b ldr r3, [r7, #0] - 8002aea: 633b str r3, [r7, #48] ; 0x30 + 8002aec: 683b ldr r3, [r7, #0] + 8002aee: 633b str r3, [r7, #48] ; 0x30 layer_cfg.Alpha = 255; - 8002aec: 23ff movs r3, #255 ; 0xff - 8002aee: 623b str r3, [r7, #32] + 8002af0: 23ff movs r3, #255 ; 0xff + 8002af2: 623b str r3, [r7, #32] layer_cfg.Alpha0 = 0; - 8002af0: 2300 movs r3, #0 - 8002af2: 627b str r3, [r7, #36] ; 0x24 - layer_cfg.Backcolor.Blue = 0; 8002af4: 2300 movs r3, #0 - 8002af6: f887 303c strb.w r3, [r7, #60] ; 0x3c + 8002af6: 627b str r3, [r7, #36] ; 0x24 + layer_cfg.Backcolor.Blue = 0; + 8002af8: 2300 movs r3, #0 + 8002afa: f887 303c strb.w r3, [r7, #60] ; 0x3c layer_cfg.Backcolor.Green = 0; - 8002afa: 2300 movs r3, #0 - 8002afc: f887 303d strb.w r3, [r7, #61] ; 0x3d + 8002afe: 2300 movs r3, #0 + 8002b00: f887 303d strb.w r3, [r7, #61] ; 0x3d layer_cfg.Backcolor.Red = 0; - 8002b00: 2300 movs r3, #0 - 8002b02: f887 303e strb.w r3, [r7, #62] ; 0x3e + 8002b04: 2300 movs r3, #0 + 8002b06: f887 303e strb.w r3, [r7, #62] ; 0x3e layer_cfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_PAxCA; - 8002b06: f44f 63c0 mov.w r3, #1536 ; 0x600 - 8002b0a: 62bb str r3, [r7, #40] ; 0x28 + 8002b0a: f44f 63c0 mov.w r3, #1536 ; 0x600 + 8002b0e: 62bb str r3, [r7, #40] ; 0x28 layer_cfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_PAxCA; - 8002b0c: 2307 movs r3, #7 - 8002b0e: 62fb str r3, [r7, #44] ; 0x2c + 8002b10: 2307 movs r3, #7 + 8002b12: 62fb str r3, [r7, #44] ; 0x2c layer_cfg.ImageWidth = BSP_LCD_GetXSize(); - 8002b10: f7ff ffae bl 8002a70 - 8002b14: 4603 mov r3, r0 - 8002b16: 637b str r3, [r7, #52] ; 0x34 + 8002b14: f7ff ffae bl 8002a74 + 8002b18: 4603 mov r3, r0 + 8002b1a: 637b str r3, [r7, #52] ; 0x34 layer_cfg.ImageHeight = BSP_LCD_GetYSize(); - 8002b18: f7ff ffbe bl 8002a98 - 8002b1c: 4603 mov r3, r0 - 8002b1e: 63bb str r3, [r7, #56] ; 0x38 + 8002b1c: f7ff ffbe bl 8002a9c + 8002b20: 4603 mov r3, r0 + 8002b22: 63bb str r3, [r7, #56] ; 0x38 HAL_LTDC_ConfigLayer(&hLtdcHandler, &layer_cfg, LayerIndex); - 8002b20: 88fa ldrh r2, [r7, #6] - 8002b22: f107 030c add.w r3, r7, #12 - 8002b26: 4619 mov r1, r3 - 8002b28: 4812 ldr r0, [pc, #72] ; (8002b74 ) - 8002b2a: f005 ffcf bl 8008acc + 8002b24: 88fa ldrh r2, [r7, #6] + 8002b26: f107 030c add.w r3, r7, #12 + 8002b2a: 4619 mov r1, r3 + 8002b2c: 4812 ldr r0, [pc, #72] ; (8002b78 ) + 8002b2e: f005 ffcf bl 8008ad0 DrawProp[LayerIndex].BackColor = LCD_COLOR_WHITE; - 8002b2e: 88fa ldrh r2, [r7, #6] - 8002b30: 4911 ldr r1, [pc, #68] ; (8002b78 ) - 8002b32: 4613 mov r3, r2 - 8002b34: 005b lsls r3, r3, #1 - 8002b36: 4413 add r3, r2 - 8002b38: 009b lsls r3, r3, #2 - 8002b3a: 440b add r3, r1 - 8002b3c: 3304 adds r3, #4 - 8002b3e: f04f 32ff mov.w r2, #4294967295 - 8002b42: 601a str r2, [r3, #0] + 8002b32: 88fa ldrh r2, [r7, #6] + 8002b34: 4911 ldr r1, [pc, #68] ; (8002b7c ) + 8002b36: 4613 mov r3, r2 + 8002b38: 005b lsls r3, r3, #1 + 8002b3a: 4413 add r3, r2 + 8002b3c: 009b lsls r3, r3, #2 + 8002b3e: 440b add r3, r1 + 8002b40: 3304 adds r3, #4 + 8002b42: f04f 32ff mov.w r2, #4294967295 + 8002b46: 601a str r2, [r3, #0] DrawProp[LayerIndex].pFont = &Font24; - 8002b44: 88fa ldrh r2, [r7, #6] - 8002b46: 490c ldr r1, [pc, #48] ; (8002b78 ) - 8002b48: 4613 mov r3, r2 - 8002b4a: 005b lsls r3, r3, #1 - 8002b4c: 4413 add r3, r2 - 8002b4e: 009b lsls r3, r3, #2 - 8002b50: 440b add r3, r1 - 8002b52: 3308 adds r3, #8 - 8002b54: 4a09 ldr r2, [pc, #36] ; (8002b7c ) - 8002b56: 601a str r2, [r3, #0] + 8002b48: 88fa ldrh r2, [r7, #6] + 8002b4a: 490c ldr r1, [pc, #48] ; (8002b7c ) + 8002b4c: 4613 mov r3, r2 + 8002b4e: 005b lsls r3, r3, #1 + 8002b50: 4413 add r3, r2 + 8002b52: 009b lsls r3, r3, #2 + 8002b54: 440b add r3, r1 + 8002b56: 3308 adds r3, #8 + 8002b58: 4a09 ldr r2, [pc, #36] ; (8002b80 ) + 8002b5a: 601a str r2, [r3, #0] DrawProp[LayerIndex].TextColor = LCD_COLOR_BLACK; - 8002b58: 88fa ldrh r2, [r7, #6] - 8002b5a: 4907 ldr r1, [pc, #28] ; (8002b78 ) - 8002b5c: 4613 mov r3, r2 - 8002b5e: 005b lsls r3, r3, #1 - 8002b60: 4413 add r3, r2 - 8002b62: 009b lsls r3, r3, #2 - 8002b64: 440b add r3, r1 - 8002b66: f04f 427f mov.w r2, #4278190080 ; 0xff000000 - 8002b6a: 601a str r2, [r3, #0] -} - 8002b6c: bf00 nop - 8002b6e: 3740 adds r7, #64 ; 0x40 - 8002b70: 46bd mov sp, r7 - 8002b72: bd80 pop {r7, pc} - 8002b74: 20008e64 .word 0x20008e64 - 8002b78: 20000414 .word 0x20000414 - 8002b7c: 20000044 .word 0x20000044 - -08002b80 : + 8002b5c: 88fa ldrh r2, [r7, #6] + 8002b5e: 4907 ldr r1, [pc, #28] ; (8002b7c ) + 8002b60: 4613 mov r3, r2 + 8002b62: 005b lsls r3, r3, #1 + 8002b64: 4413 add r3, r2 + 8002b66: 009b lsls r3, r3, #2 + 8002b68: 440b add r3, r1 + 8002b6a: f04f 427f mov.w r2, #4278190080 ; 0xff000000 + 8002b6e: 601a str r2, [r3, #0] +} + 8002b70: bf00 nop + 8002b72: 3740 adds r7, #64 ; 0x40 + 8002b74: 46bd mov sp, r7 + 8002b76: bd80 pop {r7, pc} + 8002b78: 20008e64 .word 0x20008e64 + 8002b7c: 20000414 .word 0x20000414 + 8002b80: 20000044 .word 0x20000044 + +08002b84 : * @brief Selects the LCD Layer. * @param LayerIndex: Layer foreground or background * @retval None */ void BSP_LCD_SelectLayer(uint32_t LayerIndex) { - 8002b80: b480 push {r7} - 8002b82: b083 sub sp, #12 - 8002b84: af00 add r7, sp, #0 - 8002b86: 6078 str r0, [r7, #4] + 8002b84: b480 push {r7} + 8002b86: b083 sub sp, #12 + 8002b88: af00 add r7, sp, #0 + 8002b8a: 6078 str r0, [r7, #4] ActiveLayer = LayerIndex; - 8002b88: 4a04 ldr r2, [pc, #16] ; (8002b9c ) - 8002b8a: 687b ldr r3, [r7, #4] - 8002b8c: 6013 str r3, [r2, #0] + 8002b8c: 4a04 ldr r2, [pc, #16] ; (8002ba0 ) + 8002b8e: 687b ldr r3, [r7, #4] + 8002b90: 6013 str r3, [r2, #0] } - 8002b8e: bf00 nop - 8002b90: 370c adds r7, #12 - 8002b92: 46bd mov sp, r7 - 8002b94: f85d 7b04 ldr.w r7, [sp], #4 - 8002b98: 4770 bx lr - 8002b9a: bf00 nop - 8002b9c: 20000410 .word 0x20000410 - -08002ba0 : + 8002b92: bf00 nop + 8002b94: 370c adds r7, #12 + 8002b96: 46bd mov sp, r7 + 8002b98: f85d 7b04 ldr.w r7, [sp], #4 + 8002b9c: 4770 bx lr + 8002b9e: bf00 nop + 8002ba0: 20000410 .word 0x20000410 + +08002ba4 : * @brief Sets the LCD text color. * @param Color: Text color code ARGB(8-8-8-8) * @retval None */ void BSP_LCD_SetTextColor(uint32_t Color) { - 8002ba0: b480 push {r7} - 8002ba2: b083 sub sp, #12 - 8002ba4: af00 add r7, sp, #0 - 8002ba6: 6078 str r0, [r7, #4] + 8002ba4: b480 push {r7} + 8002ba6: b083 sub sp, #12 + 8002ba8: af00 add r7, sp, #0 + 8002baa: 6078 str r0, [r7, #4] DrawProp[ActiveLayer].TextColor = Color; - 8002ba8: 4b07 ldr r3, [pc, #28] ; (8002bc8 ) - 8002baa: 681a ldr r2, [r3, #0] - 8002bac: 4907 ldr r1, [pc, #28] ; (8002bcc ) - 8002bae: 4613 mov r3, r2 - 8002bb0: 005b lsls r3, r3, #1 - 8002bb2: 4413 add r3, r2 - 8002bb4: 009b lsls r3, r3, #2 - 8002bb6: 440b add r3, r1 - 8002bb8: 687a ldr r2, [r7, #4] - 8002bba: 601a str r2, [r3, #0] -} - 8002bbc: bf00 nop - 8002bbe: 370c adds r7, #12 - 8002bc0: 46bd mov sp, r7 - 8002bc2: f85d 7b04 ldr.w r7, [sp], #4 - 8002bc6: 4770 bx lr - 8002bc8: 20000410 .word 0x20000410 - 8002bcc: 20000414 .word 0x20000414 - -08002bd0 : + 8002bac: 4b07 ldr r3, [pc, #28] ; (8002bcc ) + 8002bae: 681a ldr r2, [r3, #0] + 8002bb0: 4907 ldr r1, [pc, #28] ; (8002bd0 ) + 8002bb2: 4613 mov r3, r2 + 8002bb4: 005b lsls r3, r3, #1 + 8002bb6: 4413 add r3, r2 + 8002bb8: 009b lsls r3, r3, #2 + 8002bba: 440b add r3, r1 + 8002bbc: 687a ldr r2, [r7, #4] + 8002bbe: 601a str r2, [r3, #0] +} + 8002bc0: bf00 nop + 8002bc2: 370c adds r7, #12 + 8002bc4: 46bd mov sp, r7 + 8002bc6: f85d 7b04 ldr.w r7, [sp], #4 + 8002bca: 4770 bx lr + 8002bcc: 20000410 .word 0x20000410 + 8002bd0: 20000414 .word 0x20000414 + +08002bd4 : * @brief Sets the LCD background color. * @param Color: Layer background color code ARGB(8-8-8-8) * @retval None */ void BSP_LCD_SetBackColor(uint32_t Color) { - 8002bd0: b480 push {r7} - 8002bd2: b083 sub sp, #12 - 8002bd4: af00 add r7, sp, #0 - 8002bd6: 6078 str r0, [r7, #4] + 8002bd4: b480 push {r7} + 8002bd6: b083 sub sp, #12 + 8002bd8: af00 add r7, sp, #0 + 8002bda: 6078 str r0, [r7, #4] DrawProp[ActiveLayer].BackColor = Color; - 8002bd8: 4b08 ldr r3, [pc, #32] ; (8002bfc ) - 8002bda: 681a ldr r2, [r3, #0] - 8002bdc: 4908 ldr r1, [pc, #32] ; (8002c00 ) - 8002bde: 4613 mov r3, r2 - 8002be0: 005b lsls r3, r3, #1 - 8002be2: 4413 add r3, r2 - 8002be4: 009b lsls r3, r3, #2 - 8002be6: 440b add r3, r1 - 8002be8: 3304 adds r3, #4 - 8002bea: 687a ldr r2, [r7, #4] - 8002bec: 601a str r2, [r3, #0] -} - 8002bee: bf00 nop - 8002bf0: 370c adds r7, #12 - 8002bf2: 46bd mov sp, r7 - 8002bf4: f85d 7b04 ldr.w r7, [sp], #4 - 8002bf8: 4770 bx lr - 8002bfa: bf00 nop - 8002bfc: 20000410 .word 0x20000410 - 8002c00: 20000414 .word 0x20000414 - -08002c04 : + 8002bdc: 4b08 ldr r3, [pc, #32] ; (8002c00 ) + 8002bde: 681a ldr r2, [r3, #0] + 8002be0: 4908 ldr r1, [pc, #32] ; (8002c04 ) + 8002be2: 4613 mov r3, r2 + 8002be4: 005b lsls r3, r3, #1 + 8002be6: 4413 add r3, r2 + 8002be8: 009b lsls r3, r3, #2 + 8002bea: 440b add r3, r1 + 8002bec: 3304 adds r3, #4 + 8002bee: 687a ldr r2, [r7, #4] + 8002bf0: 601a str r2, [r3, #0] +} + 8002bf2: bf00 nop + 8002bf4: 370c adds r7, #12 + 8002bf6: 46bd mov sp, r7 + 8002bf8: f85d 7b04 ldr.w r7, [sp], #4 + 8002bfc: 4770 bx lr + 8002bfe: bf00 nop + 8002c00: 20000410 .word 0x20000410 + 8002c04: 20000414 .word 0x20000414 + +08002c08 : * @brief Sets the LCD text font. * @param fonts: Layer font to be used * @retval None */ void BSP_LCD_SetFont(sFONT *fonts) { - 8002c04: b480 push {r7} - 8002c06: b083 sub sp, #12 - 8002c08: af00 add r7, sp, #0 - 8002c0a: 6078 str r0, [r7, #4] + 8002c08: b480 push {r7} + 8002c0a: b083 sub sp, #12 + 8002c0c: af00 add r7, sp, #0 + 8002c0e: 6078 str r0, [r7, #4] DrawProp[ActiveLayer].pFont = fonts; - 8002c0c: 4b08 ldr r3, [pc, #32] ; (8002c30 ) - 8002c0e: 681a ldr r2, [r3, #0] - 8002c10: 4908 ldr r1, [pc, #32] ; (8002c34 ) - 8002c12: 4613 mov r3, r2 - 8002c14: 005b lsls r3, r3, #1 - 8002c16: 4413 add r3, r2 - 8002c18: 009b lsls r3, r3, #2 - 8002c1a: 440b add r3, r1 - 8002c1c: 3308 adds r3, #8 - 8002c1e: 687a ldr r2, [r7, #4] - 8002c20: 601a str r2, [r3, #0] -} - 8002c22: bf00 nop - 8002c24: 370c adds r7, #12 - 8002c26: 46bd mov sp, r7 - 8002c28: f85d 7b04 ldr.w r7, [sp], #4 - 8002c2c: 4770 bx lr - 8002c2e: bf00 nop - 8002c30: 20000410 .word 0x20000410 - 8002c34: 20000414 .word 0x20000414 - -08002c38 : + 8002c10: 4b08 ldr r3, [pc, #32] ; (8002c34 ) + 8002c12: 681a ldr r2, [r3, #0] + 8002c14: 4908 ldr r1, [pc, #32] ; (8002c38 ) + 8002c16: 4613 mov r3, r2 + 8002c18: 005b lsls r3, r3, #1 + 8002c1a: 4413 add r3, r2 + 8002c1c: 009b lsls r3, r3, #2 + 8002c1e: 440b add r3, r1 + 8002c20: 3308 adds r3, #8 + 8002c22: 687a ldr r2, [r7, #4] + 8002c24: 601a str r2, [r3, #0] +} + 8002c26: bf00 nop + 8002c28: 370c adds r7, #12 + 8002c2a: 46bd mov sp, r7 + 8002c2c: f85d 7b04 ldr.w r7, [sp], #4 + 8002c30: 4770 bx lr + 8002c32: bf00 nop + 8002c34: 20000410 .word 0x20000410 + 8002c38: 20000414 .word 0x20000414 + +08002c3c : /** * @brief Gets the LCD text font. * @retval Used layer font */ sFONT *BSP_LCD_GetFont(void) { - 8002c38: b480 push {r7} - 8002c3a: af00 add r7, sp, #0 + 8002c3c: b480 push {r7} + 8002c3e: af00 add r7, sp, #0 return DrawProp[ActiveLayer].pFont; - 8002c3c: 4b07 ldr r3, [pc, #28] ; (8002c5c ) - 8002c3e: 681a ldr r2, [r3, #0] - 8002c40: 4907 ldr r1, [pc, #28] ; (8002c60 ) - 8002c42: 4613 mov r3, r2 - 8002c44: 005b lsls r3, r3, #1 - 8002c46: 4413 add r3, r2 - 8002c48: 009b lsls r3, r3, #2 - 8002c4a: 440b add r3, r1 - 8002c4c: 3308 adds r3, #8 - 8002c4e: 681b ldr r3, [r3, #0] -} - 8002c50: 4618 mov r0, r3 - 8002c52: 46bd mov sp, r7 - 8002c54: f85d 7b04 ldr.w r7, [sp], #4 - 8002c58: 4770 bx lr - 8002c5a: bf00 nop - 8002c5c: 20000410 .word 0x20000410 - 8002c60: 20000414 .word 0x20000414 - -08002c64 : + 8002c40: 4b07 ldr r3, [pc, #28] ; (8002c60 ) + 8002c42: 681a ldr r2, [r3, #0] + 8002c44: 4907 ldr r1, [pc, #28] ; (8002c64 ) + 8002c46: 4613 mov r3, r2 + 8002c48: 005b lsls r3, r3, #1 + 8002c4a: 4413 add r3, r2 + 8002c4c: 009b lsls r3, r3, #2 + 8002c4e: 440b add r3, r1 + 8002c50: 3308 adds r3, #8 + 8002c52: 681b ldr r3, [r3, #0] +} + 8002c54: 4618 mov r0, r3 + 8002c56: 46bd mov sp, r7 + 8002c58: f85d 7b04 ldr.w r7, [sp], #4 + 8002c5c: 4770 bx lr + 8002c5e: bf00 nop + 8002c60: 20000410 .word 0x20000410 + 8002c64: 20000414 .word 0x20000414 + +08002c68 : * @brief Clears the hole LCD. * @param Color: Color of the background * @retval None */ void BSP_LCD_Clear(uint32_t Color) { - 8002c64: b5f0 push {r4, r5, r6, r7, lr} - 8002c66: b085 sub sp, #20 - 8002c68: af02 add r7, sp, #8 - 8002c6a: 6078 str r0, [r7, #4] + 8002c68: b5f0 push {r4, r5, r6, r7, lr} + 8002c6a: b085 sub sp, #20 + 8002c6c: af02 add r7, sp, #8 + 8002c6e: 6078 str r0, [r7, #4] /* Clear the LCD */ LL_FillBuffer(ActiveLayer, (uint32_t *)(hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress), BSP_LCD_GetXSize(), BSP_LCD_GetYSize(), 0, Color); - 8002c6c: 4b0f ldr r3, [pc, #60] ; (8002cac ) - 8002c6e: 681c ldr r4, [r3, #0] - 8002c70: 4b0e ldr r3, [pc, #56] ; (8002cac ) - 8002c72: 681b ldr r3, [r3, #0] - 8002c74: 4a0e ldr r2, [pc, #56] ; (8002cb0 ) - 8002c76: 2134 movs r1, #52 ; 0x34 - 8002c78: fb01 f303 mul.w r3, r1, r3 - 8002c7c: 4413 add r3, r2 - 8002c7e: 335c adds r3, #92 ; 0x5c - 8002c80: 681b ldr r3, [r3, #0] - 8002c82: 461d mov r5, r3 - 8002c84: f7ff fef4 bl 8002a70 - 8002c88: 4606 mov r6, r0 - 8002c8a: f7ff ff05 bl 8002a98 - 8002c8e: 4602 mov r2, r0 - 8002c90: 687b ldr r3, [r7, #4] - 8002c92: 9301 str r3, [sp, #4] - 8002c94: 2300 movs r3, #0 - 8002c96: 9300 str r3, [sp, #0] - 8002c98: 4613 mov r3, r2 - 8002c9a: 4632 mov r2, r6 - 8002c9c: 4629 mov r1, r5 - 8002c9e: 4620 mov r0, r4 - 8002ca0: f000 fda4 bl 80037ec -} - 8002ca4: bf00 nop - 8002ca6: 370c adds r7, #12 - 8002ca8: 46bd mov sp, r7 - 8002caa: bdf0 pop {r4, r5, r6, r7, pc} - 8002cac: 20000410 .word 0x20000410 - 8002cb0: 20008e64 .word 0x20008e64 - -08002cb4 : + 8002c70: 4b0f ldr r3, [pc, #60] ; (8002cb0 ) + 8002c72: 681c ldr r4, [r3, #0] + 8002c74: 4b0e ldr r3, [pc, #56] ; (8002cb0 ) + 8002c76: 681b ldr r3, [r3, #0] + 8002c78: 4a0e ldr r2, [pc, #56] ; (8002cb4 ) + 8002c7a: 2134 movs r1, #52 ; 0x34 + 8002c7c: fb01 f303 mul.w r3, r1, r3 + 8002c80: 4413 add r3, r2 + 8002c82: 335c adds r3, #92 ; 0x5c + 8002c84: 681b ldr r3, [r3, #0] + 8002c86: 461d mov r5, r3 + 8002c88: f7ff fef4 bl 8002a74 + 8002c8c: 4606 mov r6, r0 + 8002c8e: f7ff ff05 bl 8002a9c + 8002c92: 4602 mov r2, r0 + 8002c94: 687b ldr r3, [r7, #4] + 8002c96: 9301 str r3, [sp, #4] + 8002c98: 2300 movs r3, #0 + 8002c9a: 9300 str r3, [sp, #0] + 8002c9c: 4613 mov r3, r2 + 8002c9e: 4632 mov r2, r6 + 8002ca0: 4629 mov r1, r5 + 8002ca2: 4620 mov r0, r4 + 8002ca4: f000 fda4 bl 80037f0 +} + 8002ca8: bf00 nop + 8002caa: 370c adds r7, #12 + 8002cac: 46bd mov sp, r7 + 8002cae: bdf0 pop {r4, r5, r6, r7, pc} + 8002cb0: 20000410 .word 0x20000410 + 8002cb4: 20008e64 .word 0x20008e64 + +08002cb8 : * @param Ascii: Character ascii code * This parameter must be a number between Min_Data = 0x20 and Max_Data = 0x7E * @retval None */ void BSP_LCD_DisplayChar(uint16_t Xpos, uint16_t Ypos, uint8_t Ascii) { - 8002cb4: b590 push {r4, r7, lr} - 8002cb6: b083 sub sp, #12 - 8002cb8: af00 add r7, sp, #0 - 8002cba: 4603 mov r3, r0 - 8002cbc: 80fb strh r3, [r7, #6] - 8002cbe: 460b mov r3, r1 - 8002cc0: 80bb strh r3, [r7, #4] - 8002cc2: 4613 mov r3, r2 - 8002cc4: 70fb strb r3, [r7, #3] + 8002cb8: b590 push {r4, r7, lr} + 8002cba: b083 sub sp, #12 + 8002cbc: af00 add r7, sp, #0 + 8002cbe: 4603 mov r3, r0 + 8002cc0: 80fb strh r3, [r7, #6] + 8002cc2: 460b mov r3, r1 + 8002cc4: 80bb strh r3, [r7, #4] + 8002cc6: 4613 mov r3, r2 + 8002cc8: 70fb strb r3, [r7, #3] DrawChar(Xpos, Ypos, &DrawProp[ActiveLayer].pFont->table[(Ascii-' ') *\ - 8002cc6: 4b1b ldr r3, [pc, #108] ; (8002d34 ) - 8002cc8: 681a ldr r2, [r3, #0] - 8002cca: 491b ldr r1, [pc, #108] ; (8002d38 ) - 8002ccc: 4613 mov r3, r2 - 8002cce: 005b lsls r3, r3, #1 - 8002cd0: 4413 add r3, r2 - 8002cd2: 009b lsls r3, r3, #2 - 8002cd4: 440b add r3, r1 - 8002cd6: 3308 adds r3, #8 - 8002cd8: 681b ldr r3, [r3, #0] - 8002cda: 6819 ldr r1, [r3, #0] - 8002cdc: 78fb ldrb r3, [r7, #3] - 8002cde: f1a3 0020 sub.w r0, r3, #32 + 8002cca: 4b1b ldr r3, [pc, #108] ; (8002d38 ) + 8002ccc: 681a ldr r2, [r3, #0] + 8002cce: 491b ldr r1, [pc, #108] ; (8002d3c ) + 8002cd0: 4613 mov r3, r2 + 8002cd2: 005b lsls r3, r3, #1 + 8002cd4: 4413 add r3, r2 + 8002cd6: 009b lsls r3, r3, #2 + 8002cd8: 440b add r3, r1 + 8002cda: 3308 adds r3, #8 + 8002cdc: 681b ldr r3, [r3, #0] + 8002cde: 6819 ldr r1, [r3, #0] + 8002ce0: 78fb ldrb r3, [r7, #3] + 8002ce2: f1a3 0020 sub.w r0, r3, #32 DrawProp[ActiveLayer].pFont->Height * ((DrawProp[ActiveLayer].pFont->Width + 7) / 8)]); - 8002ce2: 4b14 ldr r3, [pc, #80] ; (8002d34 ) - 8002ce4: 681a ldr r2, [r3, #0] - 8002ce6: 4c14 ldr r4, [pc, #80] ; (8002d38 ) - 8002ce8: 4613 mov r3, r2 - 8002cea: 005b lsls r3, r3, #1 - 8002cec: 4413 add r3, r2 - 8002cee: 009b lsls r3, r3, #2 - 8002cf0: 4423 add r3, r4 - 8002cf2: 3308 adds r3, #8 - 8002cf4: 681b ldr r3, [r3, #0] - 8002cf6: 88db ldrh r3, [r3, #6] + 8002ce6: 4b14 ldr r3, [pc, #80] ; (8002d38 ) + 8002ce8: 681a ldr r2, [r3, #0] + 8002cea: 4c14 ldr r4, [pc, #80] ; (8002d3c ) + 8002cec: 4613 mov r3, r2 + 8002cee: 005b lsls r3, r3, #1 + 8002cf0: 4413 add r3, r2 + 8002cf2: 009b lsls r3, r3, #2 + 8002cf4: 4423 add r3, r4 + 8002cf6: 3308 adds r3, #8 + 8002cf8: 681b ldr r3, [r3, #0] + 8002cfa: 88db ldrh r3, [r3, #6] DrawChar(Xpos, Ypos, &DrawProp[ActiveLayer].pFont->table[(Ascii-' ') *\ - 8002cf8: fb03 f000 mul.w r0, r3, r0 + 8002cfc: fb03 f000 mul.w r0, r3, r0 DrawProp[ActiveLayer].pFont->Height * ((DrawProp[ActiveLayer].pFont->Width + 7) / 8)]); - 8002cfc: 4b0d ldr r3, [pc, #52] ; (8002d34 ) - 8002cfe: 681a ldr r2, [r3, #0] - 8002d00: 4c0d ldr r4, [pc, #52] ; (8002d38 ) - 8002d02: 4613 mov r3, r2 - 8002d04: 005b lsls r3, r3, #1 - 8002d06: 4413 add r3, r2 - 8002d08: 009b lsls r3, r3, #2 - 8002d0a: 4423 add r3, r4 - 8002d0c: 3308 adds r3, #8 - 8002d0e: 681b ldr r3, [r3, #0] - 8002d10: 889b ldrh r3, [r3, #4] - 8002d12: 3307 adds r3, #7 - 8002d14: 2b00 cmp r3, #0 - 8002d16: da00 bge.n 8002d1a - 8002d18: 3307 adds r3, #7 - 8002d1a: 10db asrs r3, r3, #3 - 8002d1c: fb03 f300 mul.w r3, r3, r0 + 8002d00: 4b0d ldr r3, [pc, #52] ; (8002d38 ) + 8002d02: 681a ldr r2, [r3, #0] + 8002d04: 4c0d ldr r4, [pc, #52] ; (8002d3c ) + 8002d06: 4613 mov r3, r2 + 8002d08: 005b lsls r3, r3, #1 + 8002d0a: 4413 add r3, r2 + 8002d0c: 009b lsls r3, r3, #2 + 8002d0e: 4423 add r3, r4 + 8002d10: 3308 adds r3, #8 + 8002d12: 681b ldr r3, [r3, #0] + 8002d14: 889b ldrh r3, [r3, #4] + 8002d16: 3307 adds r3, #7 + 8002d18: 2b00 cmp r3, #0 + 8002d1a: da00 bge.n 8002d1e + 8002d1c: 3307 adds r3, #7 + 8002d1e: 10db asrs r3, r3, #3 + 8002d20: fb03 f300 mul.w r3, r3, r0 DrawChar(Xpos, Ypos, &DrawProp[ActiveLayer].pFont->table[(Ascii-' ') *\ - 8002d20: 18ca adds r2, r1, r3 - 8002d22: 88b9 ldrh r1, [r7, #4] - 8002d24: 88fb ldrh r3, [r7, #6] - 8002d26: 4618 mov r0, r3 - 8002d28: f000 fca8 bl 800367c -} - 8002d2c: bf00 nop - 8002d2e: 370c adds r7, #12 - 8002d30: 46bd mov sp, r7 - 8002d32: bd90 pop {r4, r7, pc} - 8002d34: 20000410 .word 0x20000410 - 8002d38: 20000414 .word 0x20000414 - -08002d3c : + 8002d24: 18ca adds r2, r1, r3 + 8002d26: 88b9 ldrh r1, [r7, #4] + 8002d28: 88fb ldrh r3, [r7, #6] + 8002d2a: 4618 mov r0, r3 + 8002d2c: f000 fca8 bl 8003680 +} + 8002d30: bf00 nop + 8002d32: 370c adds r7, #12 + 8002d34: 46bd mov sp, r7 + 8002d36: bd90 pop {r4, r7, pc} + 8002d38: 20000410 .word 0x20000410 + 8002d3c: 20000414 .word 0x20000414 + +08002d40 : * @arg RIGHT_MODE * @arg LEFT_MODE * @retval None */ void BSP_LCD_DisplayStringAt(uint16_t Xpos, uint16_t Ypos, uint8_t *Text, Text_AlignModeTypdef Mode) { - 8002d3c: b5b0 push {r4, r5, r7, lr} - 8002d3e: b088 sub sp, #32 - 8002d40: af00 add r7, sp, #0 - 8002d42: 60ba str r2, [r7, #8] - 8002d44: 461a mov r2, r3 - 8002d46: 4603 mov r3, r0 - 8002d48: 81fb strh r3, [r7, #14] - 8002d4a: 460b mov r3, r1 - 8002d4c: 81bb strh r3, [r7, #12] - 8002d4e: 4613 mov r3, r2 - 8002d50: 71fb strb r3, [r7, #7] + 8002d40: b5b0 push {r4, r5, r7, lr} + 8002d42: b088 sub sp, #32 + 8002d44: af00 add r7, sp, #0 + 8002d46: 60ba str r2, [r7, #8] + 8002d48: 461a mov r2, r3 + 8002d4a: 4603 mov r3, r0 + 8002d4c: 81fb strh r3, [r7, #14] + 8002d4e: 460b mov r3, r1 + 8002d50: 81bb strh r3, [r7, #12] + 8002d52: 4613 mov r3, r2 + 8002d54: 71fb strb r3, [r7, #7] uint16_t ref_column = 1, i = 0; - 8002d52: 2301 movs r3, #1 - 8002d54: 83fb strh r3, [r7, #30] - 8002d56: 2300 movs r3, #0 - 8002d58: 83bb strh r3, [r7, #28] - uint32_t size = 0, xsize = 0; + 8002d56: 2301 movs r3, #1 + 8002d58: 83fb strh r3, [r7, #30] 8002d5a: 2300 movs r3, #0 - 8002d5c: 61bb str r3, [r7, #24] + 8002d5c: 83bb strh r3, [r7, #28] + uint32_t size = 0, xsize = 0; 8002d5e: 2300 movs r3, #0 - 8002d60: 613b str r3, [r7, #16] + 8002d60: 61bb str r3, [r7, #24] + 8002d62: 2300 movs r3, #0 + 8002d64: 613b str r3, [r7, #16] uint8_t *ptr = Text; - 8002d62: 68bb ldr r3, [r7, #8] - 8002d64: 617b str r3, [r7, #20] + 8002d66: 68bb ldr r3, [r7, #8] + 8002d68: 617b str r3, [r7, #20] /* Get the text size */ while (*ptr++) size ++ ; - 8002d66: e002 b.n 8002d6e - 8002d68: 69bb ldr r3, [r7, #24] - 8002d6a: 3301 adds r3, #1 - 8002d6c: 61bb str r3, [r7, #24] - 8002d6e: 697b ldr r3, [r7, #20] - 8002d70: 1c5a adds r2, r3, #1 - 8002d72: 617a str r2, [r7, #20] - 8002d74: 781b ldrb r3, [r3, #0] - 8002d76: 2b00 cmp r3, #0 - 8002d78: d1f6 bne.n 8002d68 + 8002d6a: e002 b.n 8002d72 + 8002d6c: 69bb ldr r3, [r7, #24] + 8002d6e: 3301 adds r3, #1 + 8002d70: 61bb str r3, [r7, #24] + 8002d72: 697b ldr r3, [r7, #20] + 8002d74: 1c5a adds r2, r3, #1 + 8002d76: 617a str r2, [r7, #20] + 8002d78: 781b ldrb r3, [r3, #0] + 8002d7a: 2b00 cmp r3, #0 + 8002d7c: d1f6 bne.n 8002d6c /* Characters number per line */ xsize = (BSP_LCD_GetXSize()/DrawProp[ActiveLayer].pFont->Width); - 8002d7a: f7ff fe79 bl 8002a70 - 8002d7e: 4b4f ldr r3, [pc, #316] ; (8002ebc ) - 8002d80: 681a ldr r2, [r3, #0] - 8002d82: 494f ldr r1, [pc, #316] ; (8002ec0 ) - 8002d84: 4613 mov r3, r2 - 8002d86: 005b lsls r3, r3, #1 - 8002d88: 4413 add r3, r2 - 8002d8a: 009b lsls r3, r3, #2 - 8002d8c: 440b add r3, r1 - 8002d8e: 3308 adds r3, #8 - 8002d90: 681b ldr r3, [r3, #0] - 8002d92: 889b ldrh r3, [r3, #4] - 8002d94: fbb0 f3f3 udiv r3, r0, r3 - 8002d98: 613b str r3, [r7, #16] + 8002d7e: f7ff fe79 bl 8002a74 + 8002d82: 4b4f ldr r3, [pc, #316] ; (8002ec0 ) + 8002d84: 681a ldr r2, [r3, #0] + 8002d86: 494f ldr r1, [pc, #316] ; (8002ec4 ) + 8002d88: 4613 mov r3, r2 + 8002d8a: 005b lsls r3, r3, #1 + 8002d8c: 4413 add r3, r2 + 8002d8e: 009b lsls r3, r3, #2 + 8002d90: 440b add r3, r1 + 8002d92: 3308 adds r3, #8 + 8002d94: 681b ldr r3, [r3, #0] + 8002d96: 889b ldrh r3, [r3, #4] + 8002d98: fbb0 f3f3 udiv r3, r0, r3 + 8002d9c: 613b str r3, [r7, #16] switch (Mode) - 8002d9a: 79fb ldrb r3, [r7, #7] - 8002d9c: 2b02 cmp r3, #2 - 8002d9e: d01c beq.n 8002dda - 8002da0: 2b03 cmp r3, #3 - 8002da2: d017 beq.n 8002dd4 - 8002da4: 2b01 cmp r3, #1 - 8002da6: d12e bne.n 8002e06 + 8002d9e: 79fb ldrb r3, [r7, #7] + 8002da0: 2b02 cmp r3, #2 + 8002da2: d01c beq.n 8002dde + 8002da4: 2b03 cmp r3, #3 + 8002da6: d017 beq.n 8002dd8 + 8002da8: 2b01 cmp r3, #1 + 8002daa: d12e bne.n 8002e0a { case CENTER_MODE: { ref_column = Xpos + ((xsize - size)* DrawProp[ActiveLayer].pFont->Width) / 2; - 8002da8: 693a ldr r2, [r7, #16] - 8002daa: 69bb ldr r3, [r7, #24] - 8002dac: 1ad1 subs r1, r2, r3 - 8002dae: 4b43 ldr r3, [pc, #268] ; (8002ebc ) - 8002db0: 681a ldr r2, [r3, #0] - 8002db2: 4843 ldr r0, [pc, #268] ; (8002ec0 ) - 8002db4: 4613 mov r3, r2 - 8002db6: 005b lsls r3, r3, #1 - 8002db8: 4413 add r3, r2 - 8002dba: 009b lsls r3, r3, #2 - 8002dbc: 4403 add r3, r0 - 8002dbe: 3308 adds r3, #8 - 8002dc0: 681b ldr r3, [r3, #0] - 8002dc2: 889b ldrh r3, [r3, #4] - 8002dc4: fb03 f301 mul.w r3, r3, r1 - 8002dc8: 085b lsrs r3, r3, #1 - 8002dca: b29a uxth r2, r3 - 8002dcc: 89fb ldrh r3, [r7, #14] - 8002dce: 4413 add r3, r2 - 8002dd0: 83fb strh r3, [r7, #30] + 8002dac: 693a ldr r2, [r7, #16] + 8002dae: 69bb ldr r3, [r7, #24] + 8002db0: 1ad1 subs r1, r2, r3 + 8002db2: 4b43 ldr r3, [pc, #268] ; (8002ec0 ) + 8002db4: 681a ldr r2, [r3, #0] + 8002db6: 4843 ldr r0, [pc, #268] ; (8002ec4 ) + 8002db8: 4613 mov r3, r2 + 8002dba: 005b lsls r3, r3, #1 + 8002dbc: 4413 add r3, r2 + 8002dbe: 009b lsls r3, r3, #2 + 8002dc0: 4403 add r3, r0 + 8002dc2: 3308 adds r3, #8 + 8002dc4: 681b ldr r3, [r3, #0] + 8002dc6: 889b ldrh r3, [r3, #4] + 8002dc8: fb03 f301 mul.w r3, r3, r1 + 8002dcc: 085b lsrs r3, r3, #1 + 8002dce: b29a uxth r2, r3 + 8002dd0: 89fb ldrh r3, [r7, #14] + 8002dd2: 4413 add r3, r2 + 8002dd4: 83fb strh r3, [r7, #30] break; - 8002dd2: e01b b.n 8002e0c + 8002dd6: e01b b.n 8002e10 } case LEFT_MODE: { ref_column = Xpos; - 8002dd4: 89fb ldrh r3, [r7, #14] - 8002dd6: 83fb strh r3, [r7, #30] + 8002dd8: 89fb ldrh r3, [r7, #14] + 8002dda: 83fb strh r3, [r7, #30] break; - 8002dd8: e018 b.n 8002e0c + 8002ddc: e018 b.n 8002e10 } case RIGHT_MODE: { ref_column = - Xpos + ((xsize - size)*DrawProp[ActiveLayer].pFont->Width); - 8002dda: 693a ldr r2, [r7, #16] - 8002ddc: 69bb ldr r3, [r7, #24] - 8002dde: 1ad3 subs r3, r2, r3 - 8002de0: b299 uxth r1, r3 - 8002de2: 4b36 ldr r3, [pc, #216] ; (8002ebc ) - 8002de4: 681a ldr r2, [r3, #0] - 8002de6: 4836 ldr r0, [pc, #216] ; (8002ec0 ) - 8002de8: 4613 mov r3, r2 - 8002dea: 005b lsls r3, r3, #1 - 8002dec: 4413 add r3, r2 - 8002dee: 009b lsls r3, r3, #2 - 8002df0: 4403 add r3, r0 - 8002df2: 3308 adds r3, #8 - 8002df4: 681b ldr r3, [r3, #0] - 8002df6: 889b ldrh r3, [r3, #4] - 8002df8: fb11 f303 smulbb r3, r1, r3 - 8002dfc: b29a uxth r2, r3 - 8002dfe: 89fb ldrh r3, [r7, #14] - 8002e00: 1ad3 subs r3, r2, r3 - 8002e02: 83fb strh r3, [r7, #30] + 8002dde: 693a ldr r2, [r7, #16] + 8002de0: 69bb ldr r3, [r7, #24] + 8002de2: 1ad3 subs r3, r2, r3 + 8002de4: b299 uxth r1, r3 + 8002de6: 4b36 ldr r3, [pc, #216] ; (8002ec0 ) + 8002de8: 681a ldr r2, [r3, #0] + 8002dea: 4836 ldr r0, [pc, #216] ; (8002ec4 ) + 8002dec: 4613 mov r3, r2 + 8002dee: 005b lsls r3, r3, #1 + 8002df0: 4413 add r3, r2 + 8002df2: 009b lsls r3, r3, #2 + 8002df4: 4403 add r3, r0 + 8002df6: 3308 adds r3, #8 + 8002df8: 681b ldr r3, [r3, #0] + 8002dfa: 889b ldrh r3, [r3, #4] + 8002dfc: fb11 f303 smulbb r3, r1, r3 + 8002e00: b29a uxth r2, r3 + 8002e02: 89fb ldrh r3, [r7, #14] + 8002e04: 1ad3 subs r3, r2, r3 + 8002e06: 83fb strh r3, [r7, #30] break; - 8002e04: e002 b.n 8002e0c + 8002e08: e002 b.n 8002e10 } default: { ref_column = Xpos; - 8002e06: 89fb ldrh r3, [r7, #14] - 8002e08: 83fb strh r3, [r7, #30] + 8002e0a: 89fb ldrh r3, [r7, #14] + 8002e0c: 83fb strh r3, [r7, #30] break; - 8002e0a: bf00 nop + 8002e0e: bf00 nop } } /* Check that the Start column is located in the screen */ if ((ref_column < 1) || (ref_column >= 0x8000)) - 8002e0c: 8bfb ldrh r3, [r7, #30] - 8002e0e: 2b00 cmp r3, #0 - 8002e10: d003 beq.n 8002e1a - 8002e12: f9b7 301e ldrsh.w r3, [r7, #30] - 8002e16: 2b00 cmp r3, #0 - 8002e18: da1d bge.n 8002e56 + 8002e10: 8bfb ldrh r3, [r7, #30] + 8002e12: 2b00 cmp r3, #0 + 8002e14: d003 beq.n 8002e1e + 8002e16: f9b7 301e ldrsh.w r3, [r7, #30] + 8002e1a: 2b00 cmp r3, #0 + 8002e1c: da1d bge.n 8002e5a { ref_column = 1; - 8002e1a: 2301 movs r3, #1 - 8002e1c: 83fb strh r3, [r7, #30] + 8002e1e: 2301 movs r3, #1 + 8002e20: 83fb strh r3, [r7, #30] } /* Send the string character by character on LCD */ while ((*Text != 0) & (((BSP_LCD_GetXSize() - (i*DrawProp[ActiveLayer].pFont->Width)) & 0xFFFF) >= DrawProp[ActiveLayer].pFont->Width)) - 8002e1e: e01a b.n 8002e56 + 8002e22: e01a b.n 8002e5a { /* Display one character on LCD */ BSP_LCD_DisplayChar(ref_column, Ypos, *Text); - 8002e20: 68bb ldr r3, [r7, #8] - 8002e22: 781a ldrb r2, [r3, #0] - 8002e24: 89b9 ldrh r1, [r7, #12] - 8002e26: 8bfb ldrh r3, [r7, #30] - 8002e28: 4618 mov r0, r3 - 8002e2a: f7ff ff43 bl 8002cb4 + 8002e24: 68bb ldr r3, [r7, #8] + 8002e26: 781a ldrb r2, [r3, #0] + 8002e28: 89b9 ldrh r1, [r7, #12] + 8002e2a: 8bfb ldrh r3, [r7, #30] + 8002e2c: 4618 mov r0, r3 + 8002e2e: f7ff ff43 bl 8002cb8 /* Decrement the column position by 16 */ ref_column += DrawProp[ActiveLayer].pFont->Width; - 8002e2e: 4b23 ldr r3, [pc, #140] ; (8002ebc ) - 8002e30: 681a ldr r2, [r3, #0] - 8002e32: 4923 ldr r1, [pc, #140] ; (8002ec0 ) - 8002e34: 4613 mov r3, r2 - 8002e36: 005b lsls r3, r3, #1 - 8002e38: 4413 add r3, r2 - 8002e3a: 009b lsls r3, r3, #2 - 8002e3c: 440b add r3, r1 - 8002e3e: 3308 adds r3, #8 - 8002e40: 681b ldr r3, [r3, #0] - 8002e42: 889a ldrh r2, [r3, #4] - 8002e44: 8bfb ldrh r3, [r7, #30] - 8002e46: 4413 add r3, r2 - 8002e48: 83fb strh r3, [r7, #30] + 8002e32: 4b23 ldr r3, [pc, #140] ; (8002ec0 ) + 8002e34: 681a ldr r2, [r3, #0] + 8002e36: 4923 ldr r1, [pc, #140] ; (8002ec4 ) + 8002e38: 4613 mov r3, r2 + 8002e3a: 005b lsls r3, r3, #1 + 8002e3c: 4413 add r3, r2 + 8002e3e: 009b lsls r3, r3, #2 + 8002e40: 440b add r3, r1 + 8002e42: 3308 adds r3, #8 + 8002e44: 681b ldr r3, [r3, #0] + 8002e46: 889a ldrh r2, [r3, #4] + 8002e48: 8bfb ldrh r3, [r7, #30] + 8002e4a: 4413 add r3, r2 + 8002e4c: 83fb strh r3, [r7, #30] /* Point on the next character */ Text++; - 8002e4a: 68bb ldr r3, [r7, #8] - 8002e4c: 3301 adds r3, #1 - 8002e4e: 60bb str r3, [r7, #8] + 8002e4e: 68bb ldr r3, [r7, #8] + 8002e50: 3301 adds r3, #1 + 8002e52: 60bb str r3, [r7, #8] i++; - 8002e50: 8bbb ldrh r3, [r7, #28] - 8002e52: 3301 adds r3, #1 - 8002e54: 83bb strh r3, [r7, #28] + 8002e54: 8bbb ldrh r3, [r7, #28] + 8002e56: 3301 adds r3, #1 + 8002e58: 83bb strh r3, [r7, #28] while ((*Text != 0) & (((BSP_LCD_GetXSize() - (i*DrawProp[ActiveLayer].pFont->Width)) & 0xFFFF) >= DrawProp[ActiveLayer].pFont->Width)) - 8002e56: 68bb ldr r3, [r7, #8] - 8002e58: 781b ldrb r3, [r3, #0] - 8002e5a: 2b00 cmp r3, #0 - 8002e5c: bf14 ite ne - 8002e5e: 2301 movne r3, #1 - 8002e60: 2300 moveq r3, #0 - 8002e62: b2dc uxtb r4, r3 - 8002e64: f7ff fe04 bl 8002a70 - 8002e68: 4605 mov r5, r0 - 8002e6a: 8bb9 ldrh r1, [r7, #28] - 8002e6c: 4b13 ldr r3, [pc, #76] ; (8002ebc ) - 8002e6e: 681a ldr r2, [r3, #0] - 8002e70: 4813 ldr r0, [pc, #76] ; (8002ec0 ) - 8002e72: 4613 mov r3, r2 - 8002e74: 005b lsls r3, r3, #1 - 8002e76: 4413 add r3, r2 - 8002e78: 009b lsls r3, r3, #2 - 8002e7a: 4403 add r3, r0 - 8002e7c: 3308 adds r3, #8 - 8002e7e: 681b ldr r3, [r3, #0] - 8002e80: 889b ldrh r3, [r3, #4] - 8002e82: fb03 f301 mul.w r3, r3, r1 - 8002e86: 1aeb subs r3, r5, r3 - 8002e88: b299 uxth r1, r3 - 8002e8a: 4b0c ldr r3, [pc, #48] ; (8002ebc ) - 8002e8c: 681a ldr r2, [r3, #0] - 8002e8e: 480c ldr r0, [pc, #48] ; (8002ec0 ) - 8002e90: 4613 mov r3, r2 - 8002e92: 005b lsls r3, r3, #1 - 8002e94: 4413 add r3, r2 - 8002e96: 009b lsls r3, r3, #2 - 8002e98: 4403 add r3, r0 - 8002e9a: 3308 adds r3, #8 - 8002e9c: 681b ldr r3, [r3, #0] - 8002e9e: 889b ldrh r3, [r3, #4] - 8002ea0: 4299 cmp r1, r3 - 8002ea2: bf2c ite cs - 8002ea4: 2301 movcs r3, #1 - 8002ea6: 2300 movcc r3, #0 - 8002ea8: b2db uxtb r3, r3 - 8002eaa: 4023 ands r3, r4 + 8002e5a: 68bb ldr r3, [r7, #8] + 8002e5c: 781b ldrb r3, [r3, #0] + 8002e5e: 2b00 cmp r3, #0 + 8002e60: bf14 ite ne + 8002e62: 2301 movne r3, #1 + 8002e64: 2300 moveq r3, #0 + 8002e66: b2dc uxtb r4, r3 + 8002e68: f7ff fe04 bl 8002a74 + 8002e6c: 4605 mov r5, r0 + 8002e6e: 8bb9 ldrh r1, [r7, #28] + 8002e70: 4b13 ldr r3, [pc, #76] ; (8002ec0 ) + 8002e72: 681a ldr r2, [r3, #0] + 8002e74: 4813 ldr r0, [pc, #76] ; (8002ec4 ) + 8002e76: 4613 mov r3, r2 + 8002e78: 005b lsls r3, r3, #1 + 8002e7a: 4413 add r3, r2 + 8002e7c: 009b lsls r3, r3, #2 + 8002e7e: 4403 add r3, r0 + 8002e80: 3308 adds r3, #8 + 8002e82: 681b ldr r3, [r3, #0] + 8002e84: 889b ldrh r3, [r3, #4] + 8002e86: fb03 f301 mul.w r3, r3, r1 + 8002e8a: 1aeb subs r3, r5, r3 + 8002e8c: b299 uxth r1, r3 + 8002e8e: 4b0c ldr r3, [pc, #48] ; (8002ec0 ) + 8002e90: 681a ldr r2, [r3, #0] + 8002e92: 480c ldr r0, [pc, #48] ; (8002ec4 ) + 8002e94: 4613 mov r3, r2 + 8002e96: 005b lsls r3, r3, #1 + 8002e98: 4413 add r3, r2 + 8002e9a: 009b lsls r3, r3, #2 + 8002e9c: 4403 add r3, r0 + 8002e9e: 3308 adds r3, #8 + 8002ea0: 681b ldr r3, [r3, #0] + 8002ea2: 889b ldrh r3, [r3, #4] + 8002ea4: 4299 cmp r1, r3 + 8002ea6: bf2c ite cs + 8002ea8: 2301 movcs r3, #1 + 8002eaa: 2300 movcc r3, #0 8002eac: b2db uxtb r3, r3 - 8002eae: 2b00 cmp r3, #0 - 8002eb0: d1b6 bne.n 8002e20 + 8002eae: 4023 ands r3, r4 + 8002eb0: b2db uxtb r3, r3 + 8002eb2: 2b00 cmp r3, #0 + 8002eb4: d1b6 bne.n 8002e24 } } - 8002eb2: bf00 nop - 8002eb4: 3720 adds r7, #32 - 8002eb6: 46bd mov sp, r7 - 8002eb8: bdb0 pop {r4, r5, r7, pc} - 8002eba: bf00 nop - 8002ebc: 20000410 .word 0x20000410 - 8002ec0: 20000414 .word 0x20000414 + 8002eb6: bf00 nop + 8002eb8: 3720 adds r7, #32 + 8002eba: 46bd mov sp, r7 + 8002ebc: bdb0 pop {r4, r5, r7, pc} + 8002ebe: bf00 nop + 8002ec0: 20000410 .word 0x20000410 + 8002ec4: 20000414 .word 0x20000414 -08002ec4 : +08002ec8 : * @param Line: Line where to display the character shape * @param ptr: Pointer to string to display on LCD * @retval None */ void BSP_LCD_DisplayStringAtLine(uint16_t Line, uint8_t *ptr) { - 8002ec4: b580 push {r7, lr} - 8002ec6: b082 sub sp, #8 - 8002ec8: af00 add r7, sp, #0 - 8002eca: 4603 mov r3, r0 - 8002ecc: 6039 str r1, [r7, #0] - 8002ece: 80fb strh r3, [r7, #6] + 8002ec8: b580 push {r7, lr} + 8002eca: b082 sub sp, #8 + 8002ecc: af00 add r7, sp, #0 + 8002ece: 4603 mov r3, r0 + 8002ed0: 6039 str r1, [r7, #0] + 8002ed2: 80fb strh r3, [r7, #6] BSP_LCD_DisplayStringAt(0, LINE(Line), ptr, LEFT_MODE); - 8002ed0: f7ff feb2 bl 8002c38 - 8002ed4: 4603 mov r3, r0 - 8002ed6: 88db ldrh r3, [r3, #6] - 8002ed8: 88fa ldrh r2, [r7, #6] - 8002eda: fb12 f303 smulbb r3, r2, r3 - 8002ede: b299 uxth r1, r3 - 8002ee0: 2303 movs r3, #3 - 8002ee2: 683a ldr r2, [r7, #0] - 8002ee4: 2000 movs r0, #0 - 8002ee6: f7ff ff29 bl 8002d3c -} - 8002eea: bf00 nop - 8002eec: 3708 adds r7, #8 - 8002eee: 46bd mov sp, r7 - 8002ef0: bd80 pop {r7, pc} + 8002ed4: f7ff feb2 bl 8002c3c + 8002ed8: 4603 mov r3, r0 + 8002eda: 88db ldrh r3, [r3, #6] + 8002edc: 88fa ldrh r2, [r7, #6] + 8002ede: fb12 f303 smulbb r3, r2, r3 + 8002ee2: b299 uxth r1, r3 + 8002ee4: 2303 movs r3, #3 + 8002ee6: 683a ldr r2, [r7, #0] + 8002ee8: 2000 movs r0, #0 + 8002eea: f7ff ff29 bl 8002d40 +} + 8002eee: bf00 nop + 8002ef0: 3708 adds r7, #8 + 8002ef2: 46bd mov sp, r7 + 8002ef4: bd80 pop {r7, pc} ... -08002ef4 : +08002ef8 : * @param Ypos: Y position * @param Length: Line length * @retval None */ void BSP_LCD_DrawHLine(uint16_t Xpos, uint16_t Ypos, uint16_t Length) { - 8002ef4: b5b0 push {r4, r5, r7, lr} - 8002ef6: b086 sub sp, #24 - 8002ef8: af02 add r7, sp, #8 - 8002efa: 4603 mov r3, r0 - 8002efc: 80fb strh r3, [r7, #6] - 8002efe: 460b mov r3, r1 - 8002f00: 80bb strh r3, [r7, #4] - 8002f02: 4613 mov r3, r2 - 8002f04: 807b strh r3, [r7, #2] + 8002ef8: b5b0 push {r4, r5, r7, lr} + 8002efa: b086 sub sp, #24 + 8002efc: af02 add r7, sp, #8 + 8002efe: 4603 mov r3, r0 + 8002f00: 80fb strh r3, [r7, #6] + 8002f02: 460b mov r3, r1 + 8002f04: 80bb strh r3, [r7, #4] + 8002f06: 4613 mov r3, r2 + 8002f08: 807b strh r3, [r7, #2] uint32_t Xaddress = 0; - 8002f06: 2300 movs r3, #0 - 8002f08: 60fb str r3, [r7, #12] + 8002f0a: 2300 movs r3, #0 + 8002f0c: 60fb str r3, [r7, #12] /* Get the line address */ if(hLtdcHandler.LayerCfg[ActiveLayer].PixelFormat == LTDC_PIXEL_FORMAT_RGB565) - 8002f0a: 4b26 ldr r3, [pc, #152] ; (8002fa4 ) - 8002f0c: 681b ldr r3, [r3, #0] - 8002f0e: 4a26 ldr r2, [pc, #152] ; (8002fa8 ) - 8002f10: 2134 movs r1, #52 ; 0x34 - 8002f12: fb01 f303 mul.w r3, r1, r3 - 8002f16: 4413 add r3, r2 - 8002f18: 3348 adds r3, #72 ; 0x48 - 8002f1a: 681b ldr r3, [r3, #0] - 8002f1c: 2b02 cmp r3, #2 - 8002f1e: d114 bne.n 8002f4a + 8002f0e: 4b26 ldr r3, [pc, #152] ; (8002fa8 ) + 8002f10: 681b ldr r3, [r3, #0] + 8002f12: 4a26 ldr r2, [pc, #152] ; (8002fac ) + 8002f14: 2134 movs r1, #52 ; 0x34 + 8002f16: fb01 f303 mul.w r3, r1, r3 + 8002f1a: 4413 add r3, r2 + 8002f1c: 3348 adds r3, #72 ; 0x48 + 8002f1e: 681b ldr r3, [r3, #0] + 8002f20: 2b02 cmp r3, #2 + 8002f22: d114 bne.n 8002f4e { /* RGB565 format */ Xaddress = (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress) + 2*(BSP_LCD_GetXSize()*Ypos + Xpos); - 8002f20: 4b20 ldr r3, [pc, #128] ; (8002fa4 ) - 8002f22: 681b ldr r3, [r3, #0] - 8002f24: 4a20 ldr r2, [pc, #128] ; (8002fa8 ) - 8002f26: 2134 movs r1, #52 ; 0x34 - 8002f28: fb01 f303 mul.w r3, r1, r3 - 8002f2c: 4413 add r3, r2 - 8002f2e: 335c adds r3, #92 ; 0x5c - 8002f30: 681c ldr r4, [r3, #0] - 8002f32: f7ff fd9d bl 8002a70 - 8002f36: 4602 mov r2, r0 - 8002f38: 88bb ldrh r3, [r7, #4] - 8002f3a: fb03 f202 mul.w r2, r3, r2 - 8002f3e: 88fb ldrh r3, [r7, #6] - 8002f40: 4413 add r3, r2 - 8002f42: 005b lsls r3, r3, #1 - 8002f44: 4423 add r3, r4 - 8002f46: 60fb str r3, [r7, #12] - 8002f48: e013 b.n 8002f72 + 8002f24: 4b20 ldr r3, [pc, #128] ; (8002fa8 ) + 8002f26: 681b ldr r3, [r3, #0] + 8002f28: 4a20 ldr r2, [pc, #128] ; (8002fac ) + 8002f2a: 2134 movs r1, #52 ; 0x34 + 8002f2c: fb01 f303 mul.w r3, r1, r3 + 8002f30: 4413 add r3, r2 + 8002f32: 335c adds r3, #92 ; 0x5c + 8002f34: 681c ldr r4, [r3, #0] + 8002f36: f7ff fd9d bl 8002a74 + 8002f3a: 4602 mov r2, r0 + 8002f3c: 88bb ldrh r3, [r7, #4] + 8002f3e: fb03 f202 mul.w r2, r3, r2 + 8002f42: 88fb ldrh r3, [r7, #6] + 8002f44: 4413 add r3, r2 + 8002f46: 005b lsls r3, r3, #1 + 8002f48: 4423 add r3, r4 + 8002f4a: 60fb str r3, [r7, #12] + 8002f4c: e013 b.n 8002f76 } else { /* ARGB8888 format */ Xaddress = (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress) + 4*(BSP_LCD_GetXSize()*Ypos + Xpos); - 8002f4a: 4b16 ldr r3, [pc, #88] ; (8002fa4 ) - 8002f4c: 681b ldr r3, [r3, #0] - 8002f4e: 4a16 ldr r2, [pc, #88] ; (8002fa8 ) - 8002f50: 2134 movs r1, #52 ; 0x34 - 8002f52: fb01 f303 mul.w r3, r1, r3 - 8002f56: 4413 add r3, r2 - 8002f58: 335c adds r3, #92 ; 0x5c - 8002f5a: 681c ldr r4, [r3, #0] - 8002f5c: f7ff fd88 bl 8002a70 - 8002f60: 4602 mov r2, r0 - 8002f62: 88bb ldrh r3, [r7, #4] - 8002f64: fb03 f202 mul.w r2, r3, r2 - 8002f68: 88fb ldrh r3, [r7, #6] - 8002f6a: 4413 add r3, r2 - 8002f6c: 009b lsls r3, r3, #2 - 8002f6e: 4423 add r3, r4 - 8002f70: 60fb str r3, [r7, #12] + 8002f4e: 4b16 ldr r3, [pc, #88] ; (8002fa8 ) + 8002f50: 681b ldr r3, [r3, #0] + 8002f52: 4a16 ldr r2, [pc, #88] ; (8002fac ) + 8002f54: 2134 movs r1, #52 ; 0x34 + 8002f56: fb01 f303 mul.w r3, r1, r3 + 8002f5a: 4413 add r3, r2 + 8002f5c: 335c adds r3, #92 ; 0x5c + 8002f5e: 681c ldr r4, [r3, #0] + 8002f60: f7ff fd88 bl 8002a74 + 8002f64: 4602 mov r2, r0 + 8002f66: 88bb ldrh r3, [r7, #4] + 8002f68: fb03 f202 mul.w r2, r3, r2 + 8002f6c: 88fb ldrh r3, [r7, #6] + 8002f6e: 4413 add r3, r2 + 8002f70: 009b lsls r3, r3, #2 + 8002f72: 4423 add r3, r4 + 8002f74: 60fb str r3, [r7, #12] } /* Write line */ LL_FillBuffer(ActiveLayer, (uint32_t *)Xaddress, Length, 1, 0, DrawProp[ActiveLayer].TextColor); - 8002f72: 4b0c ldr r3, [pc, #48] ; (8002fa4 ) - 8002f74: 6818 ldr r0, [r3, #0] - 8002f76: 68fc ldr r4, [r7, #12] - 8002f78: 887d ldrh r5, [r7, #2] - 8002f7a: 4b0a ldr r3, [pc, #40] ; (8002fa4 ) - 8002f7c: 681a ldr r2, [r3, #0] - 8002f7e: 490b ldr r1, [pc, #44] ; (8002fac ) - 8002f80: 4613 mov r3, r2 - 8002f82: 005b lsls r3, r3, #1 - 8002f84: 4413 add r3, r2 - 8002f86: 009b lsls r3, r3, #2 - 8002f88: 440b add r3, r1 - 8002f8a: 681b ldr r3, [r3, #0] - 8002f8c: 9301 str r3, [sp, #4] - 8002f8e: 2300 movs r3, #0 - 8002f90: 9300 str r3, [sp, #0] - 8002f92: 2301 movs r3, #1 - 8002f94: 462a mov r2, r5 - 8002f96: 4621 mov r1, r4 - 8002f98: f000 fc28 bl 80037ec -} - 8002f9c: bf00 nop - 8002f9e: 3710 adds r7, #16 - 8002fa0: 46bd mov sp, r7 - 8002fa2: bdb0 pop {r4, r5, r7, pc} - 8002fa4: 20000410 .word 0x20000410 - 8002fa8: 20008e64 .word 0x20008e64 - 8002fac: 20000414 .word 0x20000414 - -08002fb0 : + 8002f76: 4b0c ldr r3, [pc, #48] ; (8002fa8 ) + 8002f78: 6818 ldr r0, [r3, #0] + 8002f7a: 68fc ldr r4, [r7, #12] + 8002f7c: 887d ldrh r5, [r7, #2] + 8002f7e: 4b0a ldr r3, [pc, #40] ; (8002fa8 ) + 8002f80: 681a ldr r2, [r3, #0] + 8002f82: 490b ldr r1, [pc, #44] ; (8002fb0 ) + 8002f84: 4613 mov r3, r2 + 8002f86: 005b lsls r3, r3, #1 + 8002f88: 4413 add r3, r2 + 8002f8a: 009b lsls r3, r3, #2 + 8002f8c: 440b add r3, r1 + 8002f8e: 681b ldr r3, [r3, #0] + 8002f90: 9301 str r3, [sp, #4] + 8002f92: 2300 movs r3, #0 + 8002f94: 9300 str r3, [sp, #0] + 8002f96: 2301 movs r3, #1 + 8002f98: 462a mov r2, r5 + 8002f9a: 4621 mov r1, r4 + 8002f9c: f000 fc28 bl 80037f0 +} + 8002fa0: bf00 nop + 8002fa2: 3710 adds r7, #16 + 8002fa4: 46bd mov sp, r7 + 8002fa6: bdb0 pop {r4, r5, r7, pc} + 8002fa8: 20000410 .word 0x20000410 + 8002fac: 20008e64 .word 0x20008e64 + 8002fb0: 20000414 .word 0x20000414 + +08002fb4 : * @param Ypos: Y position * @param Radius: Circle radius * @retval None */ void BSP_LCD_DrawCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius) { - 8002fb0: b590 push {r4, r7, lr} - 8002fb2: b087 sub sp, #28 - 8002fb4: af00 add r7, sp, #0 - 8002fb6: 4603 mov r3, r0 - 8002fb8: 80fb strh r3, [r7, #6] - 8002fba: 460b mov r3, r1 - 8002fbc: 80bb strh r3, [r7, #4] - 8002fbe: 4613 mov r3, r2 - 8002fc0: 807b strh r3, [r7, #2] + 8002fb4: b590 push {r4, r7, lr} + 8002fb6: b087 sub sp, #28 + 8002fb8: af00 add r7, sp, #0 + 8002fba: 4603 mov r3, r0 + 8002fbc: 80fb strh r3, [r7, #6] + 8002fbe: 460b mov r3, r1 + 8002fc0: 80bb strh r3, [r7, #4] + 8002fc2: 4613 mov r3, r2 + 8002fc4: 807b strh r3, [r7, #2] int32_t decision; /* Decision Variable */ uint32_t current_x; /* Current X Value */ uint32_t current_y; /* Current Y Value */ decision = 3 - (Radius << 1); - 8002fc2: 887b ldrh r3, [r7, #2] - 8002fc4: 005b lsls r3, r3, #1 - 8002fc6: f1c3 0303 rsb r3, r3, #3 - 8002fca: 617b str r3, [r7, #20] + 8002fc6: 887b ldrh r3, [r7, #2] + 8002fc8: 005b lsls r3, r3, #1 + 8002fca: f1c3 0303 rsb r3, r3, #3 + 8002fce: 617b str r3, [r7, #20] current_x = 0; - 8002fcc: 2300 movs r3, #0 - 8002fce: 613b str r3, [r7, #16] + 8002fd0: 2300 movs r3, #0 + 8002fd2: 613b str r3, [r7, #16] current_y = Radius; - 8002fd0: 887b ldrh r3, [r7, #2] - 8002fd2: 60fb str r3, [r7, #12] + 8002fd4: 887b ldrh r3, [r7, #2] + 8002fd6: 60fb str r3, [r7, #12] while (current_x <= current_y) - 8002fd4: e0cf b.n 8003176 + 8002fd8: e0cf b.n 800317a { BSP_LCD_DrawPixel((Xpos + current_x), (Ypos - current_y), DrawProp[ActiveLayer].TextColor); - 8002fd6: 693b ldr r3, [r7, #16] - 8002fd8: b29a uxth r2, r3 - 8002fda: 88fb ldrh r3, [r7, #6] - 8002fdc: 4413 add r3, r2 - 8002fde: b298 uxth r0, r3 - 8002fe0: 68fb ldr r3, [r7, #12] - 8002fe2: b29b uxth r3, r3 - 8002fe4: 88ba ldrh r2, [r7, #4] - 8002fe6: 1ad3 subs r3, r2, r3 - 8002fe8: b29c uxth r4, r3 - 8002fea: 4b67 ldr r3, [pc, #412] ; (8003188 ) - 8002fec: 681a ldr r2, [r3, #0] - 8002fee: 4967 ldr r1, [pc, #412] ; (800318c ) - 8002ff0: 4613 mov r3, r2 - 8002ff2: 005b lsls r3, r3, #1 - 8002ff4: 4413 add r3, r2 - 8002ff6: 009b lsls r3, r3, #2 - 8002ff8: 440b add r3, r1 - 8002ffa: 681b ldr r3, [r3, #0] - 8002ffc: 461a mov r2, r3 - 8002ffe: 4621 mov r1, r4 - 8003000: f000 f8c6 bl 8003190 + 8002fda: 693b ldr r3, [r7, #16] + 8002fdc: b29a uxth r2, r3 + 8002fde: 88fb ldrh r3, [r7, #6] + 8002fe0: 4413 add r3, r2 + 8002fe2: b298 uxth r0, r3 + 8002fe4: 68fb ldr r3, [r7, #12] + 8002fe6: b29b uxth r3, r3 + 8002fe8: 88ba ldrh r2, [r7, #4] + 8002fea: 1ad3 subs r3, r2, r3 + 8002fec: b29c uxth r4, r3 + 8002fee: 4b67 ldr r3, [pc, #412] ; (800318c ) + 8002ff0: 681a ldr r2, [r3, #0] + 8002ff2: 4967 ldr r1, [pc, #412] ; (8003190 ) + 8002ff4: 4613 mov r3, r2 + 8002ff6: 005b lsls r3, r3, #1 + 8002ff8: 4413 add r3, r2 + 8002ffa: 009b lsls r3, r3, #2 + 8002ffc: 440b add r3, r1 + 8002ffe: 681b ldr r3, [r3, #0] + 8003000: 461a mov r2, r3 + 8003002: 4621 mov r1, r4 + 8003004: f000 f8c6 bl 8003194 BSP_LCD_DrawPixel((Xpos - current_x), (Ypos - current_y), DrawProp[ActiveLayer].TextColor); - 8003004: 693b ldr r3, [r7, #16] - 8003006: b29b uxth r3, r3 - 8003008: 88fa ldrh r2, [r7, #6] - 800300a: 1ad3 subs r3, r2, r3 - 800300c: b298 uxth r0, r3 - 800300e: 68fb ldr r3, [r7, #12] - 8003010: b29b uxth r3, r3 - 8003012: 88ba ldrh r2, [r7, #4] - 8003014: 1ad3 subs r3, r2, r3 - 8003016: b29c uxth r4, r3 - 8003018: 4b5b ldr r3, [pc, #364] ; (8003188 ) - 800301a: 681a ldr r2, [r3, #0] - 800301c: 495b ldr r1, [pc, #364] ; (800318c ) - 800301e: 4613 mov r3, r2 - 8003020: 005b lsls r3, r3, #1 - 8003022: 4413 add r3, r2 - 8003024: 009b lsls r3, r3, #2 - 8003026: 440b add r3, r1 - 8003028: 681b ldr r3, [r3, #0] - 800302a: 461a mov r2, r3 - 800302c: 4621 mov r1, r4 - 800302e: f000 f8af bl 8003190 + 8003008: 693b ldr r3, [r7, #16] + 800300a: b29b uxth r3, r3 + 800300c: 88fa ldrh r2, [r7, #6] + 800300e: 1ad3 subs r3, r2, r3 + 8003010: b298 uxth r0, r3 + 8003012: 68fb ldr r3, [r7, #12] + 8003014: b29b uxth r3, r3 + 8003016: 88ba ldrh r2, [r7, #4] + 8003018: 1ad3 subs r3, r2, r3 + 800301a: b29c uxth r4, r3 + 800301c: 4b5b ldr r3, [pc, #364] ; (800318c ) + 800301e: 681a ldr r2, [r3, #0] + 8003020: 495b ldr r1, [pc, #364] ; (8003190 ) + 8003022: 4613 mov r3, r2 + 8003024: 005b lsls r3, r3, #1 + 8003026: 4413 add r3, r2 + 8003028: 009b lsls r3, r3, #2 + 800302a: 440b add r3, r1 + 800302c: 681b ldr r3, [r3, #0] + 800302e: 461a mov r2, r3 + 8003030: 4621 mov r1, r4 + 8003032: f000 f8af bl 8003194 BSP_LCD_DrawPixel((Xpos + current_y), (Ypos - current_x), DrawProp[ActiveLayer].TextColor); - 8003032: 68fb ldr r3, [r7, #12] - 8003034: b29a uxth r2, r3 - 8003036: 88fb ldrh r3, [r7, #6] - 8003038: 4413 add r3, r2 - 800303a: b298 uxth r0, r3 - 800303c: 693b ldr r3, [r7, #16] - 800303e: b29b uxth r3, r3 - 8003040: 88ba ldrh r2, [r7, #4] - 8003042: 1ad3 subs r3, r2, r3 - 8003044: b29c uxth r4, r3 - 8003046: 4b50 ldr r3, [pc, #320] ; (8003188 ) - 8003048: 681a ldr r2, [r3, #0] - 800304a: 4950 ldr r1, [pc, #320] ; (800318c ) - 800304c: 4613 mov r3, r2 - 800304e: 005b lsls r3, r3, #1 - 8003050: 4413 add r3, r2 - 8003052: 009b lsls r3, r3, #2 - 8003054: 440b add r3, r1 - 8003056: 681b ldr r3, [r3, #0] - 8003058: 461a mov r2, r3 - 800305a: 4621 mov r1, r4 - 800305c: f000 f898 bl 8003190 + 8003036: 68fb ldr r3, [r7, #12] + 8003038: b29a uxth r2, r3 + 800303a: 88fb ldrh r3, [r7, #6] + 800303c: 4413 add r3, r2 + 800303e: b298 uxth r0, r3 + 8003040: 693b ldr r3, [r7, #16] + 8003042: b29b uxth r3, r3 + 8003044: 88ba ldrh r2, [r7, #4] + 8003046: 1ad3 subs r3, r2, r3 + 8003048: b29c uxth r4, r3 + 800304a: 4b50 ldr r3, [pc, #320] ; (800318c ) + 800304c: 681a ldr r2, [r3, #0] + 800304e: 4950 ldr r1, [pc, #320] ; (8003190 ) + 8003050: 4613 mov r3, r2 + 8003052: 005b lsls r3, r3, #1 + 8003054: 4413 add r3, r2 + 8003056: 009b lsls r3, r3, #2 + 8003058: 440b add r3, r1 + 800305a: 681b ldr r3, [r3, #0] + 800305c: 461a mov r2, r3 + 800305e: 4621 mov r1, r4 + 8003060: f000 f898 bl 8003194 BSP_LCD_DrawPixel((Xpos - current_y), (Ypos - current_x), DrawProp[ActiveLayer].TextColor); - 8003060: 68fb ldr r3, [r7, #12] - 8003062: b29b uxth r3, r3 - 8003064: 88fa ldrh r2, [r7, #6] - 8003066: 1ad3 subs r3, r2, r3 - 8003068: b298 uxth r0, r3 - 800306a: 693b ldr r3, [r7, #16] - 800306c: b29b uxth r3, r3 - 800306e: 88ba ldrh r2, [r7, #4] - 8003070: 1ad3 subs r3, r2, r3 - 8003072: b29c uxth r4, r3 - 8003074: 4b44 ldr r3, [pc, #272] ; (8003188 ) - 8003076: 681a ldr r2, [r3, #0] - 8003078: 4944 ldr r1, [pc, #272] ; (800318c ) - 800307a: 4613 mov r3, r2 - 800307c: 005b lsls r3, r3, #1 - 800307e: 4413 add r3, r2 - 8003080: 009b lsls r3, r3, #2 - 8003082: 440b add r3, r1 - 8003084: 681b ldr r3, [r3, #0] - 8003086: 461a mov r2, r3 - 8003088: 4621 mov r1, r4 - 800308a: f000 f881 bl 8003190 + 8003064: 68fb ldr r3, [r7, #12] + 8003066: b29b uxth r3, r3 + 8003068: 88fa ldrh r2, [r7, #6] + 800306a: 1ad3 subs r3, r2, r3 + 800306c: b298 uxth r0, r3 + 800306e: 693b ldr r3, [r7, #16] + 8003070: b29b uxth r3, r3 + 8003072: 88ba ldrh r2, [r7, #4] + 8003074: 1ad3 subs r3, r2, r3 + 8003076: b29c uxth r4, r3 + 8003078: 4b44 ldr r3, [pc, #272] ; (800318c ) + 800307a: 681a ldr r2, [r3, #0] + 800307c: 4944 ldr r1, [pc, #272] ; (8003190 ) + 800307e: 4613 mov r3, r2 + 8003080: 005b lsls r3, r3, #1 + 8003082: 4413 add r3, r2 + 8003084: 009b lsls r3, r3, #2 + 8003086: 440b add r3, r1 + 8003088: 681b ldr r3, [r3, #0] + 800308a: 461a mov r2, r3 + 800308c: 4621 mov r1, r4 + 800308e: f000 f881 bl 8003194 BSP_LCD_DrawPixel((Xpos + current_x), (Ypos + current_y), DrawProp[ActiveLayer].TextColor); - 800308e: 693b ldr r3, [r7, #16] - 8003090: b29a uxth r2, r3 - 8003092: 88fb ldrh r3, [r7, #6] - 8003094: 4413 add r3, r2 - 8003096: b298 uxth r0, r3 - 8003098: 68fb ldr r3, [r7, #12] - 800309a: b29a uxth r2, r3 - 800309c: 88bb ldrh r3, [r7, #4] - 800309e: 4413 add r3, r2 - 80030a0: b29c uxth r4, r3 - 80030a2: 4b39 ldr r3, [pc, #228] ; (8003188 ) - 80030a4: 681a ldr r2, [r3, #0] - 80030a6: 4939 ldr r1, [pc, #228] ; (800318c ) - 80030a8: 4613 mov r3, r2 - 80030aa: 005b lsls r3, r3, #1 - 80030ac: 4413 add r3, r2 - 80030ae: 009b lsls r3, r3, #2 - 80030b0: 440b add r3, r1 - 80030b2: 681b ldr r3, [r3, #0] - 80030b4: 461a mov r2, r3 - 80030b6: 4621 mov r1, r4 - 80030b8: f000 f86a bl 8003190 + 8003092: 693b ldr r3, [r7, #16] + 8003094: b29a uxth r2, r3 + 8003096: 88fb ldrh r3, [r7, #6] + 8003098: 4413 add r3, r2 + 800309a: b298 uxth r0, r3 + 800309c: 68fb ldr r3, [r7, #12] + 800309e: b29a uxth r2, r3 + 80030a0: 88bb ldrh r3, [r7, #4] + 80030a2: 4413 add r3, r2 + 80030a4: b29c uxth r4, r3 + 80030a6: 4b39 ldr r3, [pc, #228] ; (800318c ) + 80030a8: 681a ldr r2, [r3, #0] + 80030aa: 4939 ldr r1, [pc, #228] ; (8003190 ) + 80030ac: 4613 mov r3, r2 + 80030ae: 005b lsls r3, r3, #1 + 80030b0: 4413 add r3, r2 + 80030b2: 009b lsls r3, r3, #2 + 80030b4: 440b add r3, r1 + 80030b6: 681b ldr r3, [r3, #0] + 80030b8: 461a mov r2, r3 + 80030ba: 4621 mov r1, r4 + 80030bc: f000 f86a bl 8003194 BSP_LCD_DrawPixel((Xpos - current_x), (Ypos + current_y), DrawProp[ActiveLayer].TextColor); - 80030bc: 693b ldr r3, [r7, #16] - 80030be: b29b uxth r3, r3 - 80030c0: 88fa ldrh r2, [r7, #6] - 80030c2: 1ad3 subs r3, r2, r3 - 80030c4: b298 uxth r0, r3 - 80030c6: 68fb ldr r3, [r7, #12] - 80030c8: b29a uxth r2, r3 - 80030ca: 88bb ldrh r3, [r7, #4] - 80030cc: 4413 add r3, r2 - 80030ce: b29c uxth r4, r3 - 80030d0: 4b2d ldr r3, [pc, #180] ; (8003188 ) - 80030d2: 681a ldr r2, [r3, #0] - 80030d4: 492d ldr r1, [pc, #180] ; (800318c ) - 80030d6: 4613 mov r3, r2 - 80030d8: 005b lsls r3, r3, #1 - 80030da: 4413 add r3, r2 - 80030dc: 009b lsls r3, r3, #2 - 80030de: 440b add r3, r1 - 80030e0: 681b ldr r3, [r3, #0] - 80030e2: 461a mov r2, r3 - 80030e4: 4621 mov r1, r4 - 80030e6: f000 f853 bl 8003190 + 80030c0: 693b ldr r3, [r7, #16] + 80030c2: b29b uxth r3, r3 + 80030c4: 88fa ldrh r2, [r7, #6] + 80030c6: 1ad3 subs r3, r2, r3 + 80030c8: b298 uxth r0, r3 + 80030ca: 68fb ldr r3, [r7, #12] + 80030cc: b29a uxth r2, r3 + 80030ce: 88bb ldrh r3, [r7, #4] + 80030d0: 4413 add r3, r2 + 80030d2: b29c uxth r4, r3 + 80030d4: 4b2d ldr r3, [pc, #180] ; (800318c ) + 80030d6: 681a ldr r2, [r3, #0] + 80030d8: 492d ldr r1, [pc, #180] ; (8003190 ) + 80030da: 4613 mov r3, r2 + 80030dc: 005b lsls r3, r3, #1 + 80030de: 4413 add r3, r2 + 80030e0: 009b lsls r3, r3, #2 + 80030e2: 440b add r3, r1 + 80030e4: 681b ldr r3, [r3, #0] + 80030e6: 461a mov r2, r3 + 80030e8: 4621 mov r1, r4 + 80030ea: f000 f853 bl 8003194 BSP_LCD_DrawPixel((Xpos + current_y), (Ypos + current_x), DrawProp[ActiveLayer].TextColor); - 80030ea: 68fb ldr r3, [r7, #12] - 80030ec: b29a uxth r2, r3 - 80030ee: 88fb ldrh r3, [r7, #6] - 80030f0: 4413 add r3, r2 - 80030f2: b298 uxth r0, r3 - 80030f4: 693b ldr r3, [r7, #16] - 80030f6: b29a uxth r2, r3 - 80030f8: 88bb ldrh r3, [r7, #4] - 80030fa: 4413 add r3, r2 - 80030fc: b29c uxth r4, r3 - 80030fe: 4b22 ldr r3, [pc, #136] ; (8003188 ) - 8003100: 681a ldr r2, [r3, #0] - 8003102: 4922 ldr r1, [pc, #136] ; (800318c ) - 8003104: 4613 mov r3, r2 - 8003106: 005b lsls r3, r3, #1 - 8003108: 4413 add r3, r2 - 800310a: 009b lsls r3, r3, #2 - 800310c: 440b add r3, r1 - 800310e: 681b ldr r3, [r3, #0] - 8003110: 461a mov r2, r3 - 8003112: 4621 mov r1, r4 - 8003114: f000 f83c bl 8003190 + 80030ee: 68fb ldr r3, [r7, #12] + 80030f0: b29a uxth r2, r3 + 80030f2: 88fb ldrh r3, [r7, #6] + 80030f4: 4413 add r3, r2 + 80030f6: b298 uxth r0, r3 + 80030f8: 693b ldr r3, [r7, #16] + 80030fa: b29a uxth r2, r3 + 80030fc: 88bb ldrh r3, [r7, #4] + 80030fe: 4413 add r3, r2 + 8003100: b29c uxth r4, r3 + 8003102: 4b22 ldr r3, [pc, #136] ; (800318c ) + 8003104: 681a ldr r2, [r3, #0] + 8003106: 4922 ldr r1, [pc, #136] ; (8003190 ) + 8003108: 4613 mov r3, r2 + 800310a: 005b lsls r3, r3, #1 + 800310c: 4413 add r3, r2 + 800310e: 009b lsls r3, r3, #2 + 8003110: 440b add r3, r1 + 8003112: 681b ldr r3, [r3, #0] + 8003114: 461a mov r2, r3 + 8003116: 4621 mov r1, r4 + 8003118: f000 f83c bl 8003194 BSP_LCD_DrawPixel((Xpos - current_y), (Ypos + current_x), DrawProp[ActiveLayer].TextColor); - 8003118: 68fb ldr r3, [r7, #12] - 800311a: b29b uxth r3, r3 - 800311c: 88fa ldrh r2, [r7, #6] - 800311e: 1ad3 subs r3, r2, r3 - 8003120: b298 uxth r0, r3 - 8003122: 693b ldr r3, [r7, #16] - 8003124: b29a uxth r2, r3 - 8003126: 88bb ldrh r3, [r7, #4] - 8003128: 4413 add r3, r2 - 800312a: b29c uxth r4, r3 - 800312c: 4b16 ldr r3, [pc, #88] ; (8003188 ) - 800312e: 681a ldr r2, [r3, #0] - 8003130: 4916 ldr r1, [pc, #88] ; (800318c ) - 8003132: 4613 mov r3, r2 - 8003134: 005b lsls r3, r3, #1 - 8003136: 4413 add r3, r2 - 8003138: 009b lsls r3, r3, #2 - 800313a: 440b add r3, r1 - 800313c: 681b ldr r3, [r3, #0] - 800313e: 461a mov r2, r3 - 8003140: 4621 mov r1, r4 - 8003142: f000 f825 bl 8003190 + 800311c: 68fb ldr r3, [r7, #12] + 800311e: b29b uxth r3, r3 + 8003120: 88fa ldrh r2, [r7, #6] + 8003122: 1ad3 subs r3, r2, r3 + 8003124: b298 uxth r0, r3 + 8003126: 693b ldr r3, [r7, #16] + 8003128: b29a uxth r2, r3 + 800312a: 88bb ldrh r3, [r7, #4] + 800312c: 4413 add r3, r2 + 800312e: b29c uxth r4, r3 + 8003130: 4b16 ldr r3, [pc, #88] ; (800318c ) + 8003132: 681a ldr r2, [r3, #0] + 8003134: 4916 ldr r1, [pc, #88] ; (8003190 ) + 8003136: 4613 mov r3, r2 + 8003138: 005b lsls r3, r3, #1 + 800313a: 4413 add r3, r2 + 800313c: 009b lsls r3, r3, #2 + 800313e: 440b add r3, r1 + 8003140: 681b ldr r3, [r3, #0] + 8003142: 461a mov r2, r3 + 8003144: 4621 mov r1, r4 + 8003146: f000 f825 bl 8003194 if (decision < 0) - 8003146: 697b ldr r3, [r7, #20] - 8003148: 2b00 cmp r3, #0 - 800314a: da06 bge.n 800315a + 800314a: 697b ldr r3, [r7, #20] + 800314c: 2b00 cmp r3, #0 + 800314e: da06 bge.n 800315e { decision += (current_x << 2) + 6; - 800314c: 693b ldr r3, [r7, #16] - 800314e: 009a lsls r2, r3, #2 - 8003150: 697b ldr r3, [r7, #20] - 8003152: 4413 add r3, r2 - 8003154: 3306 adds r3, #6 - 8003156: 617b str r3, [r7, #20] - 8003158: e00a b.n 8003170 + 8003150: 693b ldr r3, [r7, #16] + 8003152: 009a lsls r2, r3, #2 + 8003154: 697b ldr r3, [r7, #20] + 8003156: 4413 add r3, r2 + 8003158: 3306 adds r3, #6 + 800315a: 617b str r3, [r7, #20] + 800315c: e00a b.n 8003174 } else { decision += ((current_x - current_y) << 2) + 10; - 800315a: 693a ldr r2, [r7, #16] - 800315c: 68fb ldr r3, [r7, #12] - 800315e: 1ad3 subs r3, r2, r3 - 8003160: 009a lsls r2, r3, #2 - 8003162: 697b ldr r3, [r7, #20] - 8003164: 4413 add r3, r2 - 8003166: 330a adds r3, #10 - 8003168: 617b str r3, [r7, #20] + 800315e: 693a ldr r2, [r7, #16] + 8003160: 68fb ldr r3, [r7, #12] + 8003162: 1ad3 subs r3, r2, r3 + 8003164: 009a lsls r2, r3, #2 + 8003166: 697b ldr r3, [r7, #20] + 8003168: 4413 add r3, r2 + 800316a: 330a adds r3, #10 + 800316c: 617b str r3, [r7, #20] current_y--; - 800316a: 68fb ldr r3, [r7, #12] - 800316c: 3b01 subs r3, #1 - 800316e: 60fb str r3, [r7, #12] + 800316e: 68fb ldr r3, [r7, #12] + 8003170: 3b01 subs r3, #1 + 8003172: 60fb str r3, [r7, #12] } current_x++; - 8003170: 693b ldr r3, [r7, #16] - 8003172: 3301 adds r3, #1 - 8003174: 613b str r3, [r7, #16] + 8003174: 693b ldr r3, [r7, #16] + 8003176: 3301 adds r3, #1 + 8003178: 613b str r3, [r7, #16] while (current_x <= current_y) - 8003176: 693a ldr r2, [r7, #16] - 8003178: 68fb ldr r3, [r7, #12] - 800317a: 429a cmp r2, r3 - 800317c: f67f af2b bls.w 8002fd6 + 800317a: 693a ldr r2, [r7, #16] + 800317c: 68fb ldr r3, [r7, #12] + 800317e: 429a cmp r2, r3 + 8003180: f67f af2b bls.w 8002fda } } - 8003180: bf00 nop - 8003182: 371c adds r7, #28 - 8003184: 46bd mov sp, r7 - 8003186: bd90 pop {r4, r7, pc} - 8003188: 20000410 .word 0x20000410 - 800318c: 20000414 .word 0x20000414 + 8003184: bf00 nop + 8003186: 371c adds r7, #28 + 8003188: 46bd mov sp, r7 + 800318a: bd90 pop {r4, r7, pc} + 800318c: 20000410 .word 0x20000410 + 8003190: 20000414 .word 0x20000414 -08003190 : +08003194 : * @param Ypos: Y position * @param RGB_Code: Pixel color in ARGB mode (8-8-8-8) * @retval None */ void BSP_LCD_DrawPixel(uint16_t Xpos, uint16_t Ypos, uint32_t RGB_Code) { - 8003190: b5b0 push {r4, r5, r7, lr} - 8003192: b082 sub sp, #8 - 8003194: af00 add r7, sp, #0 - 8003196: 4603 mov r3, r0 - 8003198: 603a str r2, [r7, #0] - 800319a: 80fb strh r3, [r7, #6] - 800319c: 460b mov r3, r1 - 800319e: 80bb strh r3, [r7, #4] + 8003194: b5b0 push {r4, r5, r7, lr} + 8003196: b082 sub sp, #8 + 8003198: af00 add r7, sp, #0 + 800319a: 4603 mov r3, r0 + 800319c: 603a str r2, [r7, #0] + 800319e: 80fb strh r3, [r7, #6] + 80031a0: 460b mov r3, r1 + 80031a2: 80bb strh r3, [r7, #4] /* Write data value to all SDRAM memory */ if(hLtdcHandler.LayerCfg[ActiveLayer].PixelFormat == LTDC_PIXEL_FORMAT_RGB565) - 80031a0: 4b1d ldr r3, [pc, #116] ; (8003218 ) - 80031a2: 681b ldr r3, [r3, #0] - 80031a4: 4a1d ldr r2, [pc, #116] ; (800321c ) - 80031a6: 2134 movs r1, #52 ; 0x34 - 80031a8: fb01 f303 mul.w r3, r1, r3 - 80031ac: 4413 add r3, r2 - 80031ae: 3348 adds r3, #72 ; 0x48 - 80031b0: 681b ldr r3, [r3, #0] - 80031b2: 2b02 cmp r3, #2 - 80031b4: d116 bne.n 80031e4 + 80031a4: 4b1d ldr r3, [pc, #116] ; (800321c ) + 80031a6: 681b ldr r3, [r3, #0] + 80031a8: 4a1d ldr r2, [pc, #116] ; (8003220 ) + 80031aa: 2134 movs r1, #52 ; 0x34 + 80031ac: fb01 f303 mul.w r3, r1, r3 + 80031b0: 4413 add r3, r2 + 80031b2: 3348 adds r3, #72 ; 0x48 + 80031b4: 681b ldr r3, [r3, #0] + 80031b6: 2b02 cmp r3, #2 + 80031b8: d116 bne.n 80031e8 { /* RGB565 format */ *(__IO uint16_t*) (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress + (2*(Ypos*BSP_LCD_GetXSize() + Xpos))) = (uint16_t)RGB_Code; - 80031b6: 4b18 ldr r3, [pc, #96] ; (8003218 ) - 80031b8: 681b ldr r3, [r3, #0] - 80031ba: 4a18 ldr r2, [pc, #96] ; (800321c ) - 80031bc: 2134 movs r1, #52 ; 0x34 - 80031be: fb01 f303 mul.w r3, r1, r3 - 80031c2: 4413 add r3, r2 - 80031c4: 335c adds r3, #92 ; 0x5c - 80031c6: 681c ldr r4, [r3, #0] - 80031c8: 88bd ldrh r5, [r7, #4] - 80031ca: f7ff fc51 bl 8002a70 - 80031ce: 4603 mov r3, r0 - 80031d0: fb03 f205 mul.w r2, r3, r5 - 80031d4: 88fb ldrh r3, [r7, #6] - 80031d6: 4413 add r3, r2 - 80031d8: 005b lsls r3, r3, #1 - 80031da: 4423 add r3, r4 - 80031dc: 683a ldr r2, [r7, #0] - 80031de: b292 uxth r2, r2 - 80031e0: 801a strh r2, [r3, #0] + 80031ba: 4b18 ldr r3, [pc, #96] ; (800321c ) + 80031bc: 681b ldr r3, [r3, #0] + 80031be: 4a18 ldr r2, [pc, #96] ; (8003220 ) + 80031c0: 2134 movs r1, #52 ; 0x34 + 80031c2: fb01 f303 mul.w r3, r1, r3 + 80031c6: 4413 add r3, r2 + 80031c8: 335c adds r3, #92 ; 0x5c + 80031ca: 681c ldr r4, [r3, #0] + 80031cc: 88bd ldrh r5, [r7, #4] + 80031ce: f7ff fc51 bl 8002a74 + 80031d2: 4603 mov r3, r0 + 80031d4: fb03 f205 mul.w r2, r3, r5 + 80031d8: 88fb ldrh r3, [r7, #6] + 80031da: 4413 add r3, r2 + 80031dc: 005b lsls r3, r3, #1 + 80031de: 4423 add r3, r4 + 80031e0: 683a ldr r2, [r7, #0] + 80031e2: b292 uxth r2, r2 + 80031e4: 801a strh r2, [r3, #0] } else { /* ARGB8888 format */ *(__IO uint32_t*) (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress + (4*(Ypos*BSP_LCD_GetXSize() + Xpos))) = RGB_Code; } } - 80031e2: e015 b.n 8003210 + 80031e6: e015 b.n 8003214 *(__IO uint32_t*) (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress + (4*(Ypos*BSP_LCD_GetXSize() + Xpos))) = RGB_Code; - 80031e4: 4b0c ldr r3, [pc, #48] ; (8003218 ) - 80031e6: 681b ldr r3, [r3, #0] - 80031e8: 4a0c ldr r2, [pc, #48] ; (800321c ) - 80031ea: 2134 movs r1, #52 ; 0x34 - 80031ec: fb01 f303 mul.w r3, r1, r3 - 80031f0: 4413 add r3, r2 - 80031f2: 335c adds r3, #92 ; 0x5c - 80031f4: 681c ldr r4, [r3, #0] - 80031f6: 88bd ldrh r5, [r7, #4] - 80031f8: f7ff fc3a bl 8002a70 - 80031fc: 4603 mov r3, r0 - 80031fe: fb03 f205 mul.w r2, r3, r5 - 8003202: 88fb ldrh r3, [r7, #6] - 8003204: 4413 add r3, r2 - 8003206: 009b lsls r3, r3, #2 - 8003208: 4423 add r3, r4 - 800320a: 461a mov r2, r3 - 800320c: 683b ldr r3, [r7, #0] - 800320e: 6013 str r3, [r2, #0] -} - 8003210: bf00 nop - 8003212: 3708 adds r7, #8 - 8003214: 46bd mov sp, r7 - 8003216: bdb0 pop {r4, r5, r7, pc} - 8003218: 20000410 .word 0x20000410 - 800321c: 20008e64 .word 0x20008e64 - -08003220 : + 80031e8: 4b0c ldr r3, [pc, #48] ; (800321c ) + 80031ea: 681b ldr r3, [r3, #0] + 80031ec: 4a0c ldr r2, [pc, #48] ; (8003220 ) + 80031ee: 2134 movs r1, #52 ; 0x34 + 80031f0: fb01 f303 mul.w r3, r1, r3 + 80031f4: 4413 add r3, r2 + 80031f6: 335c adds r3, #92 ; 0x5c + 80031f8: 681c ldr r4, [r3, #0] + 80031fa: 88bd ldrh r5, [r7, #4] + 80031fc: f7ff fc3a bl 8002a74 + 8003200: 4603 mov r3, r0 + 8003202: fb03 f205 mul.w r2, r3, r5 + 8003206: 88fb ldrh r3, [r7, #6] + 8003208: 4413 add r3, r2 + 800320a: 009b lsls r3, r3, #2 + 800320c: 4423 add r3, r4 + 800320e: 461a mov r2, r3 + 8003210: 683b ldr r3, [r7, #0] + 8003212: 6013 str r3, [r2, #0] +} + 8003214: bf00 nop + 8003216: 3708 adds r7, #8 + 8003218: 46bd mov sp, r7 + 800321a: bdb0 pop {r4, r5, r7, pc} + 800321c: 20000410 .word 0x20000410 + 8003220: 20008e64 .word 0x20008e64 + +08003224 : * @param Width: Rectangle width * @param Height: Rectangle height * @retval None */ void BSP_LCD_FillRect(uint16_t Xpos, uint16_t Ypos, uint16_t Width, uint16_t Height) { - 8003220: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 8003224: b086 sub sp, #24 - 8003226: af02 add r7, sp, #8 - 8003228: 4604 mov r4, r0 - 800322a: 4608 mov r0, r1 - 800322c: 4611 mov r1, r2 - 800322e: 461a mov r2, r3 - 8003230: 4623 mov r3, r4 - 8003232: 80fb strh r3, [r7, #6] - 8003234: 4603 mov r3, r0 - 8003236: 80bb strh r3, [r7, #4] - 8003238: 460b mov r3, r1 - 800323a: 807b strh r3, [r7, #2] - 800323c: 4613 mov r3, r2 - 800323e: 803b strh r3, [r7, #0] + 8003224: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 8003228: b086 sub sp, #24 + 800322a: af02 add r7, sp, #8 + 800322c: 4604 mov r4, r0 + 800322e: 4608 mov r0, r1 + 8003230: 4611 mov r1, r2 + 8003232: 461a mov r2, r3 + 8003234: 4623 mov r3, r4 + 8003236: 80fb strh r3, [r7, #6] + 8003238: 4603 mov r3, r0 + 800323a: 80bb strh r3, [r7, #4] + 800323c: 460b mov r3, r1 + 800323e: 807b strh r3, [r7, #2] + 8003240: 4613 mov r3, r2 + 8003242: 803b strh r3, [r7, #0] uint32_t x_address = 0; - 8003240: 2300 movs r3, #0 - 8003242: 60fb str r3, [r7, #12] + 8003244: 2300 movs r3, #0 + 8003246: 60fb str r3, [r7, #12] /* Set the text color */ BSP_LCD_SetTextColor(DrawProp[ActiveLayer].TextColor); - 8003244: 4b30 ldr r3, [pc, #192] ; (8003308 ) - 8003246: 681a ldr r2, [r3, #0] - 8003248: 4930 ldr r1, [pc, #192] ; (800330c ) - 800324a: 4613 mov r3, r2 - 800324c: 005b lsls r3, r3, #1 - 800324e: 4413 add r3, r2 - 8003250: 009b lsls r3, r3, #2 - 8003252: 440b add r3, r1 - 8003254: 681b ldr r3, [r3, #0] - 8003256: 4618 mov r0, r3 - 8003258: f7ff fca2 bl 8002ba0 + 8003248: 4b30 ldr r3, [pc, #192] ; (800330c ) + 800324a: 681a ldr r2, [r3, #0] + 800324c: 4930 ldr r1, [pc, #192] ; (8003310 ) + 800324e: 4613 mov r3, r2 + 8003250: 005b lsls r3, r3, #1 + 8003252: 4413 add r3, r2 + 8003254: 009b lsls r3, r3, #2 + 8003256: 440b add r3, r1 + 8003258: 681b ldr r3, [r3, #0] + 800325a: 4618 mov r0, r3 + 800325c: f7ff fca2 bl 8002ba4 /* Get the rectangle start address */ if(hLtdcHandler.LayerCfg[ActiveLayer].PixelFormat == LTDC_PIXEL_FORMAT_RGB565) - 800325c: 4b2a ldr r3, [pc, #168] ; (8003308 ) - 800325e: 681b ldr r3, [r3, #0] - 8003260: 4a2b ldr r2, [pc, #172] ; (8003310 ) - 8003262: 2134 movs r1, #52 ; 0x34 - 8003264: fb01 f303 mul.w r3, r1, r3 - 8003268: 4413 add r3, r2 - 800326a: 3348 adds r3, #72 ; 0x48 - 800326c: 681b ldr r3, [r3, #0] - 800326e: 2b02 cmp r3, #2 - 8003270: d114 bne.n 800329c + 8003260: 4b2a ldr r3, [pc, #168] ; (800330c ) + 8003262: 681b ldr r3, [r3, #0] + 8003264: 4a2b ldr r2, [pc, #172] ; (8003314 ) + 8003266: 2134 movs r1, #52 ; 0x34 + 8003268: fb01 f303 mul.w r3, r1, r3 + 800326c: 4413 add r3, r2 + 800326e: 3348 adds r3, #72 ; 0x48 + 8003270: 681b ldr r3, [r3, #0] + 8003272: 2b02 cmp r3, #2 + 8003274: d114 bne.n 80032a0 { /* RGB565 format */ x_address = (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress) + 2*(BSP_LCD_GetXSize()*Ypos + Xpos); - 8003272: 4b25 ldr r3, [pc, #148] ; (8003308 ) - 8003274: 681b ldr r3, [r3, #0] - 8003276: 4a26 ldr r2, [pc, #152] ; (8003310 ) - 8003278: 2134 movs r1, #52 ; 0x34 - 800327a: fb01 f303 mul.w r3, r1, r3 - 800327e: 4413 add r3, r2 - 8003280: 335c adds r3, #92 ; 0x5c - 8003282: 681c ldr r4, [r3, #0] - 8003284: f7ff fbf4 bl 8002a70 - 8003288: 4602 mov r2, r0 - 800328a: 88bb ldrh r3, [r7, #4] - 800328c: fb03 f202 mul.w r2, r3, r2 - 8003290: 88fb ldrh r3, [r7, #6] - 8003292: 4413 add r3, r2 - 8003294: 005b lsls r3, r3, #1 - 8003296: 4423 add r3, r4 - 8003298: 60fb str r3, [r7, #12] - 800329a: e013 b.n 80032c4 + 8003276: 4b25 ldr r3, [pc, #148] ; (800330c ) + 8003278: 681b ldr r3, [r3, #0] + 800327a: 4a26 ldr r2, [pc, #152] ; (8003314 ) + 800327c: 2134 movs r1, #52 ; 0x34 + 800327e: fb01 f303 mul.w r3, r1, r3 + 8003282: 4413 add r3, r2 + 8003284: 335c adds r3, #92 ; 0x5c + 8003286: 681c ldr r4, [r3, #0] + 8003288: f7ff fbf4 bl 8002a74 + 800328c: 4602 mov r2, r0 + 800328e: 88bb ldrh r3, [r7, #4] + 8003290: fb03 f202 mul.w r2, r3, r2 + 8003294: 88fb ldrh r3, [r7, #6] + 8003296: 4413 add r3, r2 + 8003298: 005b lsls r3, r3, #1 + 800329a: 4423 add r3, r4 + 800329c: 60fb str r3, [r7, #12] + 800329e: e013 b.n 80032c8 } else { /* ARGB8888 format */ x_address = (hLtdcHandler.LayerCfg[ActiveLayer].FBStartAdress) + 4*(BSP_LCD_GetXSize()*Ypos + Xpos); - 800329c: 4b1a ldr r3, [pc, #104] ; (8003308 ) - 800329e: 681b ldr r3, [r3, #0] - 80032a0: 4a1b ldr r2, [pc, #108] ; (8003310 ) - 80032a2: 2134 movs r1, #52 ; 0x34 - 80032a4: fb01 f303 mul.w r3, r1, r3 - 80032a8: 4413 add r3, r2 - 80032aa: 335c adds r3, #92 ; 0x5c - 80032ac: 681c ldr r4, [r3, #0] - 80032ae: f7ff fbdf bl 8002a70 - 80032b2: 4602 mov r2, r0 - 80032b4: 88bb ldrh r3, [r7, #4] - 80032b6: fb03 f202 mul.w r2, r3, r2 - 80032ba: 88fb ldrh r3, [r7, #6] - 80032bc: 4413 add r3, r2 - 80032be: 009b lsls r3, r3, #2 - 80032c0: 4423 add r3, r4 - 80032c2: 60fb str r3, [r7, #12] + 80032a0: 4b1a ldr r3, [pc, #104] ; (800330c ) + 80032a2: 681b ldr r3, [r3, #0] + 80032a4: 4a1b ldr r2, [pc, #108] ; (8003314 ) + 80032a6: 2134 movs r1, #52 ; 0x34 + 80032a8: fb01 f303 mul.w r3, r1, r3 + 80032ac: 4413 add r3, r2 + 80032ae: 335c adds r3, #92 ; 0x5c + 80032b0: 681c ldr r4, [r3, #0] + 80032b2: f7ff fbdf bl 8002a74 + 80032b6: 4602 mov r2, r0 + 80032b8: 88bb ldrh r3, [r7, #4] + 80032ba: fb03 f202 mul.w r2, r3, r2 + 80032be: 88fb ldrh r3, [r7, #6] + 80032c0: 4413 add r3, r2 + 80032c2: 009b lsls r3, r3, #2 + 80032c4: 4423 add r3, r4 + 80032c6: 60fb str r3, [r7, #12] } /* Fill the rectangle */ LL_FillBuffer(ActiveLayer, (uint32_t *)x_address, Width, Height, (BSP_LCD_GetXSize() - Width), DrawProp[ActiveLayer].TextColor); - 80032c4: 4b10 ldr r3, [pc, #64] ; (8003308 ) - 80032c6: 681c ldr r4, [r3, #0] - 80032c8: 68fd ldr r5, [r7, #12] - 80032ca: 887e ldrh r6, [r7, #2] - 80032cc: f8b7 8000 ldrh.w r8, [r7] - 80032d0: f7ff fbce bl 8002a70 - 80032d4: 4602 mov r2, r0 - 80032d6: 887b ldrh r3, [r7, #2] - 80032d8: 1ad1 subs r1, r2, r3 - 80032da: 4b0b ldr r3, [pc, #44] ; (8003308 ) - 80032dc: 681a ldr r2, [r3, #0] - 80032de: 480b ldr r0, [pc, #44] ; (800330c ) - 80032e0: 4613 mov r3, r2 - 80032e2: 005b lsls r3, r3, #1 - 80032e4: 4413 add r3, r2 - 80032e6: 009b lsls r3, r3, #2 - 80032e8: 4403 add r3, r0 - 80032ea: 681b ldr r3, [r3, #0] - 80032ec: 9301 str r3, [sp, #4] - 80032ee: 9100 str r1, [sp, #0] - 80032f0: 4643 mov r3, r8 - 80032f2: 4632 mov r2, r6 - 80032f4: 4629 mov r1, r5 - 80032f6: 4620 mov r0, r4 - 80032f8: f000 fa78 bl 80037ec -} - 80032fc: bf00 nop - 80032fe: 3710 adds r7, #16 - 8003300: 46bd mov sp, r7 - 8003302: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 8003306: bf00 nop - 8003308: 20000410 .word 0x20000410 - 800330c: 20000414 .word 0x20000414 - 8003310: 20008e64 .word 0x20008e64 - -08003314 : + 80032c8: 4b10 ldr r3, [pc, #64] ; (800330c ) + 80032ca: 681c ldr r4, [r3, #0] + 80032cc: 68fd ldr r5, [r7, #12] + 80032ce: 887e ldrh r6, [r7, #2] + 80032d0: f8b7 8000 ldrh.w r8, [r7] + 80032d4: f7ff fbce bl 8002a74 + 80032d8: 4602 mov r2, r0 + 80032da: 887b ldrh r3, [r7, #2] + 80032dc: 1ad1 subs r1, r2, r3 + 80032de: 4b0b ldr r3, [pc, #44] ; (800330c ) + 80032e0: 681a ldr r2, [r3, #0] + 80032e2: 480b ldr r0, [pc, #44] ; (8003310 ) + 80032e4: 4613 mov r3, r2 + 80032e6: 005b lsls r3, r3, #1 + 80032e8: 4413 add r3, r2 + 80032ea: 009b lsls r3, r3, #2 + 80032ec: 4403 add r3, r0 + 80032ee: 681b ldr r3, [r3, #0] + 80032f0: 9301 str r3, [sp, #4] + 80032f2: 9100 str r1, [sp, #0] + 80032f4: 4643 mov r3, r8 + 80032f6: 4632 mov r2, r6 + 80032f8: 4629 mov r1, r5 + 80032fa: 4620 mov r0, r4 + 80032fc: f000 fa78 bl 80037f0 +} + 8003300: bf00 nop + 8003302: 3710 adds r7, #16 + 8003304: 46bd mov sp, r7 + 8003306: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 800330a: bf00 nop + 800330c: 20000410 .word 0x20000410 + 8003310: 20000414 .word 0x20000414 + 8003314: 20008e64 .word 0x20008e64 + +08003318 : * @param Ypos: Y position * @param Radius: Circle radius * @retval None */ void BSP_LCD_FillCircle(uint16_t Xpos, uint16_t Ypos, uint16_t Radius) { - 8003314: b580 push {r7, lr} - 8003316: b086 sub sp, #24 - 8003318: af00 add r7, sp, #0 - 800331a: 4603 mov r3, r0 - 800331c: 80fb strh r3, [r7, #6] - 800331e: 460b mov r3, r1 - 8003320: 80bb strh r3, [r7, #4] - 8003322: 4613 mov r3, r2 - 8003324: 807b strh r3, [r7, #2] + 8003318: b580 push {r7, lr} + 800331a: b086 sub sp, #24 + 800331c: af00 add r7, sp, #0 + 800331e: 4603 mov r3, r0 + 8003320: 80fb strh r3, [r7, #6] + 8003322: 460b mov r3, r1 + 8003324: 80bb strh r3, [r7, #4] + 8003326: 4613 mov r3, r2 + 8003328: 807b strh r3, [r7, #2] int32_t decision; /* Decision Variable */ uint32_t current_x; /* Current X Value */ uint32_t current_y; /* Current Y Value */ decision = 3 - (Radius << 1); - 8003326: 887b ldrh r3, [r7, #2] - 8003328: 005b lsls r3, r3, #1 - 800332a: f1c3 0303 rsb r3, r3, #3 - 800332e: 617b str r3, [r7, #20] + 800332a: 887b ldrh r3, [r7, #2] + 800332c: 005b lsls r3, r3, #1 + 800332e: f1c3 0303 rsb r3, r3, #3 + 8003332: 617b str r3, [r7, #20] current_x = 0; - 8003330: 2300 movs r3, #0 - 8003332: 613b str r3, [r7, #16] + 8003334: 2300 movs r3, #0 + 8003336: 613b str r3, [r7, #16] current_y = Radius; - 8003334: 887b ldrh r3, [r7, #2] - 8003336: 60fb str r3, [r7, #12] + 8003338: 887b ldrh r3, [r7, #2] + 800333a: 60fb str r3, [r7, #12] BSP_LCD_SetTextColor(DrawProp[ActiveLayer].TextColor); - 8003338: 4b44 ldr r3, [pc, #272] ; (800344c ) - 800333a: 681a ldr r2, [r3, #0] - 800333c: 4944 ldr r1, [pc, #272] ; (8003450 ) - 800333e: 4613 mov r3, r2 - 8003340: 005b lsls r3, r3, #1 - 8003342: 4413 add r3, r2 - 8003344: 009b lsls r3, r3, #2 - 8003346: 440b add r3, r1 - 8003348: 681b ldr r3, [r3, #0] - 800334a: 4618 mov r0, r3 - 800334c: f7ff fc28 bl 8002ba0 + 800333c: 4b44 ldr r3, [pc, #272] ; (8003450 ) + 800333e: 681a ldr r2, [r3, #0] + 8003340: 4944 ldr r1, [pc, #272] ; (8003454 ) + 8003342: 4613 mov r3, r2 + 8003344: 005b lsls r3, r3, #1 + 8003346: 4413 add r3, r2 + 8003348: 009b lsls r3, r3, #2 + 800334a: 440b add r3, r1 + 800334c: 681b ldr r3, [r3, #0] + 800334e: 4618 mov r0, r3 + 8003350: f7ff fc28 bl 8002ba4 while (current_x <= current_y) - 8003350: e061 b.n 8003416 + 8003354: e061 b.n 800341a { if(current_y > 0) - 8003352: 68fb ldr r3, [r7, #12] - 8003354: 2b00 cmp r3, #0 - 8003356: d021 beq.n 800339c + 8003356: 68fb ldr r3, [r7, #12] + 8003358: 2b00 cmp r3, #0 + 800335a: d021 beq.n 80033a0 { BSP_LCD_DrawHLine(Xpos - current_y, Ypos + current_x, 2*current_y); - 8003358: 68fb ldr r3, [r7, #12] - 800335a: b29b uxth r3, r3 - 800335c: 88fa ldrh r2, [r7, #6] - 800335e: 1ad3 subs r3, r2, r3 - 8003360: b298 uxth r0, r3 - 8003362: 693b ldr r3, [r7, #16] - 8003364: b29a uxth r2, r3 - 8003366: 88bb ldrh r3, [r7, #4] - 8003368: 4413 add r3, r2 - 800336a: b299 uxth r1, r3 - 800336c: 68fb ldr r3, [r7, #12] - 800336e: b29b uxth r3, r3 - 8003370: 005b lsls r3, r3, #1 + 800335c: 68fb ldr r3, [r7, #12] + 800335e: b29b uxth r3, r3 + 8003360: 88fa ldrh r2, [r7, #6] + 8003362: 1ad3 subs r3, r2, r3 + 8003364: b298 uxth r0, r3 + 8003366: 693b ldr r3, [r7, #16] + 8003368: b29a uxth r2, r3 + 800336a: 88bb ldrh r3, [r7, #4] + 800336c: 4413 add r3, r2 + 800336e: b299 uxth r1, r3 + 8003370: 68fb ldr r3, [r7, #12] 8003372: b29b uxth r3, r3 - 8003374: 461a mov r2, r3 - 8003376: f7ff fdbd bl 8002ef4 + 8003374: 005b lsls r3, r3, #1 + 8003376: b29b uxth r3, r3 + 8003378: 461a mov r2, r3 + 800337a: f7ff fdbd bl 8002ef8 BSP_LCD_DrawHLine(Xpos - current_y, Ypos - current_x, 2*current_y); - 800337a: 68fb ldr r3, [r7, #12] - 800337c: b29b uxth r3, r3 - 800337e: 88fa ldrh r2, [r7, #6] - 8003380: 1ad3 subs r3, r2, r3 - 8003382: b298 uxth r0, r3 - 8003384: 693b ldr r3, [r7, #16] - 8003386: b29b uxth r3, r3 - 8003388: 88ba ldrh r2, [r7, #4] - 800338a: 1ad3 subs r3, r2, r3 - 800338c: b299 uxth r1, r3 - 800338e: 68fb ldr r3, [r7, #12] - 8003390: b29b uxth r3, r3 - 8003392: 005b lsls r3, r3, #1 + 800337e: 68fb ldr r3, [r7, #12] + 8003380: b29b uxth r3, r3 + 8003382: 88fa ldrh r2, [r7, #6] + 8003384: 1ad3 subs r3, r2, r3 + 8003386: b298 uxth r0, r3 + 8003388: 693b ldr r3, [r7, #16] + 800338a: b29b uxth r3, r3 + 800338c: 88ba ldrh r2, [r7, #4] + 800338e: 1ad3 subs r3, r2, r3 + 8003390: b299 uxth r1, r3 + 8003392: 68fb ldr r3, [r7, #12] 8003394: b29b uxth r3, r3 - 8003396: 461a mov r2, r3 - 8003398: f7ff fdac bl 8002ef4 + 8003396: 005b lsls r3, r3, #1 + 8003398: b29b uxth r3, r3 + 800339a: 461a mov r2, r3 + 800339c: f7ff fdac bl 8002ef8 } if(current_x > 0) - 800339c: 693b ldr r3, [r7, #16] - 800339e: 2b00 cmp r3, #0 - 80033a0: d021 beq.n 80033e6 + 80033a0: 693b ldr r3, [r7, #16] + 80033a2: 2b00 cmp r3, #0 + 80033a4: d021 beq.n 80033ea { BSP_LCD_DrawHLine(Xpos - current_x, Ypos - current_y, 2*current_x); - 80033a2: 693b ldr r3, [r7, #16] - 80033a4: b29b uxth r3, r3 - 80033a6: 88fa ldrh r2, [r7, #6] - 80033a8: 1ad3 subs r3, r2, r3 - 80033aa: b298 uxth r0, r3 - 80033ac: 68fb ldr r3, [r7, #12] - 80033ae: b29b uxth r3, r3 - 80033b0: 88ba ldrh r2, [r7, #4] - 80033b2: 1ad3 subs r3, r2, r3 - 80033b4: b299 uxth r1, r3 - 80033b6: 693b ldr r3, [r7, #16] - 80033b8: b29b uxth r3, r3 - 80033ba: 005b lsls r3, r3, #1 + 80033a6: 693b ldr r3, [r7, #16] + 80033a8: b29b uxth r3, r3 + 80033aa: 88fa ldrh r2, [r7, #6] + 80033ac: 1ad3 subs r3, r2, r3 + 80033ae: b298 uxth r0, r3 + 80033b0: 68fb ldr r3, [r7, #12] + 80033b2: b29b uxth r3, r3 + 80033b4: 88ba ldrh r2, [r7, #4] + 80033b6: 1ad3 subs r3, r2, r3 + 80033b8: b299 uxth r1, r3 + 80033ba: 693b ldr r3, [r7, #16] 80033bc: b29b uxth r3, r3 - 80033be: 461a mov r2, r3 - 80033c0: f7ff fd98 bl 8002ef4 + 80033be: 005b lsls r3, r3, #1 + 80033c0: b29b uxth r3, r3 + 80033c2: 461a mov r2, r3 + 80033c4: f7ff fd98 bl 8002ef8 BSP_LCD_DrawHLine(Xpos - current_x, Ypos + current_y, 2*current_x); - 80033c4: 693b ldr r3, [r7, #16] - 80033c6: b29b uxth r3, r3 - 80033c8: 88fa ldrh r2, [r7, #6] - 80033ca: 1ad3 subs r3, r2, r3 - 80033cc: b298 uxth r0, r3 - 80033ce: 68fb ldr r3, [r7, #12] - 80033d0: b29a uxth r2, r3 - 80033d2: 88bb ldrh r3, [r7, #4] - 80033d4: 4413 add r3, r2 - 80033d6: b299 uxth r1, r3 - 80033d8: 693b ldr r3, [r7, #16] - 80033da: b29b uxth r3, r3 - 80033dc: 005b lsls r3, r3, #1 + 80033c8: 693b ldr r3, [r7, #16] + 80033ca: b29b uxth r3, r3 + 80033cc: 88fa ldrh r2, [r7, #6] + 80033ce: 1ad3 subs r3, r2, r3 + 80033d0: b298 uxth r0, r3 + 80033d2: 68fb ldr r3, [r7, #12] + 80033d4: b29a uxth r2, r3 + 80033d6: 88bb ldrh r3, [r7, #4] + 80033d8: 4413 add r3, r2 + 80033da: b299 uxth r1, r3 + 80033dc: 693b ldr r3, [r7, #16] 80033de: b29b uxth r3, r3 - 80033e0: 461a mov r2, r3 - 80033e2: f7ff fd87 bl 8002ef4 + 80033e0: 005b lsls r3, r3, #1 + 80033e2: b29b uxth r3, r3 + 80033e4: 461a mov r2, r3 + 80033e6: f7ff fd87 bl 8002ef8 } if (decision < 0) - 80033e6: 697b ldr r3, [r7, #20] - 80033e8: 2b00 cmp r3, #0 - 80033ea: da06 bge.n 80033fa + 80033ea: 697b ldr r3, [r7, #20] + 80033ec: 2b00 cmp r3, #0 + 80033ee: da06 bge.n 80033fe { decision += (current_x << 2) + 6; - 80033ec: 693b ldr r3, [r7, #16] - 80033ee: 009a lsls r2, r3, #2 - 80033f0: 697b ldr r3, [r7, #20] - 80033f2: 4413 add r3, r2 - 80033f4: 3306 adds r3, #6 - 80033f6: 617b str r3, [r7, #20] - 80033f8: e00a b.n 8003410 + 80033f0: 693b ldr r3, [r7, #16] + 80033f2: 009a lsls r2, r3, #2 + 80033f4: 697b ldr r3, [r7, #20] + 80033f6: 4413 add r3, r2 + 80033f8: 3306 adds r3, #6 + 80033fa: 617b str r3, [r7, #20] + 80033fc: e00a b.n 8003414 } else { decision += ((current_x - current_y) << 2) + 10; - 80033fa: 693a ldr r2, [r7, #16] - 80033fc: 68fb ldr r3, [r7, #12] - 80033fe: 1ad3 subs r3, r2, r3 - 8003400: 009a lsls r2, r3, #2 - 8003402: 697b ldr r3, [r7, #20] - 8003404: 4413 add r3, r2 - 8003406: 330a adds r3, #10 - 8003408: 617b str r3, [r7, #20] + 80033fe: 693a ldr r2, [r7, #16] + 8003400: 68fb ldr r3, [r7, #12] + 8003402: 1ad3 subs r3, r2, r3 + 8003404: 009a lsls r2, r3, #2 + 8003406: 697b ldr r3, [r7, #20] + 8003408: 4413 add r3, r2 + 800340a: 330a adds r3, #10 + 800340c: 617b str r3, [r7, #20] current_y--; - 800340a: 68fb ldr r3, [r7, #12] - 800340c: 3b01 subs r3, #1 - 800340e: 60fb str r3, [r7, #12] + 800340e: 68fb ldr r3, [r7, #12] + 8003410: 3b01 subs r3, #1 + 8003412: 60fb str r3, [r7, #12] } current_x++; - 8003410: 693b ldr r3, [r7, #16] - 8003412: 3301 adds r3, #1 - 8003414: 613b str r3, [r7, #16] + 8003414: 693b ldr r3, [r7, #16] + 8003416: 3301 adds r3, #1 + 8003418: 613b str r3, [r7, #16] while (current_x <= current_y) - 8003416: 693a ldr r2, [r7, #16] - 8003418: 68fb ldr r3, [r7, #12] - 800341a: 429a cmp r2, r3 - 800341c: d999 bls.n 8003352 + 800341a: 693a ldr r2, [r7, #16] + 800341c: 68fb ldr r3, [r7, #12] + 800341e: 429a cmp r2, r3 + 8003420: d999 bls.n 8003356 } BSP_LCD_SetTextColor(DrawProp[ActiveLayer].TextColor); - 800341e: 4b0b ldr r3, [pc, #44] ; (800344c ) - 8003420: 681a ldr r2, [r3, #0] - 8003422: 490b ldr r1, [pc, #44] ; (8003450 ) - 8003424: 4613 mov r3, r2 - 8003426: 005b lsls r3, r3, #1 - 8003428: 4413 add r3, r2 - 800342a: 009b lsls r3, r3, #2 - 800342c: 440b add r3, r1 - 800342e: 681b ldr r3, [r3, #0] - 8003430: 4618 mov r0, r3 - 8003432: f7ff fbb5 bl 8002ba0 + 8003422: 4b0b ldr r3, [pc, #44] ; (8003450 ) + 8003424: 681a ldr r2, [r3, #0] + 8003426: 490b ldr r1, [pc, #44] ; (8003454 ) + 8003428: 4613 mov r3, r2 + 800342a: 005b lsls r3, r3, #1 + 800342c: 4413 add r3, r2 + 800342e: 009b lsls r3, r3, #2 + 8003430: 440b add r3, r1 + 8003432: 681b ldr r3, [r3, #0] + 8003434: 4618 mov r0, r3 + 8003436: f7ff fbb5 bl 8002ba4 BSP_LCD_DrawCircle(Xpos, Ypos, Radius); - 8003436: 887a ldrh r2, [r7, #2] - 8003438: 88b9 ldrh r1, [r7, #4] - 800343a: 88fb ldrh r3, [r7, #6] - 800343c: 4618 mov r0, r3 - 800343e: f7ff fdb7 bl 8002fb0 -} - 8003442: bf00 nop - 8003444: 3718 adds r7, #24 - 8003446: 46bd mov sp, r7 - 8003448: bd80 pop {r7, pc} - 800344a: bf00 nop - 800344c: 20000410 .word 0x20000410 - 8003450: 20000414 .word 0x20000414 - -08003454 : + 800343a: 887a ldrh r2, [r7, #2] + 800343c: 88b9 ldrh r1, [r7, #4] + 800343e: 88fb ldrh r3, [r7, #6] + 8003440: 4618 mov r0, r3 + 8003442: f7ff fdb7 bl 8002fb4 +} + 8003446: bf00 nop + 8003448: 3718 adds r7, #24 + 800344a: 46bd mov sp, r7 + 800344c: bd80 pop {r7, pc} + 800344e: bf00 nop + 8003450: 20000410 .word 0x20000410 + 8003454: 20000414 .word 0x20000414 + +08003458 : /** * @brief Enables the display. * @retval None */ void BSP_LCD_DisplayOn(void) { - 8003454: b580 push {r7, lr} - 8003456: af00 add r7, sp, #0 + 8003458: b580 push {r7, lr} + 800345a: af00 add r7, sp, #0 /* Display On */ __HAL_LTDC_ENABLE(&hLtdcHandler); - 8003458: 4b0a ldr r3, [pc, #40] ; (8003484 ) - 800345a: 681b ldr r3, [r3, #0] - 800345c: 699a ldr r2, [r3, #24] - 800345e: 4b09 ldr r3, [pc, #36] ; (8003484 ) - 8003460: 681b ldr r3, [r3, #0] - 8003462: f042 0201 orr.w r2, r2, #1 - 8003466: 619a str r2, [r3, #24] + 800345c: 4b0a ldr r3, [pc, #40] ; (8003488 ) + 800345e: 681b ldr r3, [r3, #0] + 8003460: 699a ldr r2, [r3, #24] + 8003462: 4b09 ldr r3, [pc, #36] ; (8003488 ) + 8003464: 681b ldr r3, [r3, #0] + 8003466: f042 0201 orr.w r2, r2, #1 + 800346a: 619a str r2, [r3, #24] HAL_GPIO_WritePin(LCD_DISP_GPIO_PORT, LCD_DISP_PIN, GPIO_PIN_SET); /* Assert LCD_DISP pin */ - 8003468: 2201 movs r2, #1 - 800346a: f44f 5180 mov.w r1, #4096 ; 0x1000 - 800346e: 4806 ldr r0, [pc, #24] ; (8003488 ) - 8003470: f004 fbd0 bl 8007c14 + 800346c: 2201 movs r2, #1 + 800346e: f44f 5180 mov.w r1, #4096 ; 0x1000 + 8003472: 4806 ldr r0, [pc, #24] ; (800348c ) + 8003474: f004 fbd0 bl 8007c18 HAL_GPIO_WritePin(LCD_BL_CTRL_GPIO_PORT, LCD_BL_CTRL_PIN, GPIO_PIN_SET); /* Assert LCD_BL_CTRL pin */ - 8003474: 2201 movs r2, #1 - 8003476: 2108 movs r1, #8 - 8003478: 4804 ldr r0, [pc, #16] ; (800348c ) - 800347a: f004 fbcb bl 8007c14 + 8003478: 2201 movs r2, #1 + 800347a: 2108 movs r1, #8 + 800347c: 4804 ldr r0, [pc, #16] ; (8003490 ) + 800347e: f004 fbcb bl 8007c18 } - 800347e: bf00 nop - 8003480: bd80 pop {r7, pc} 8003482: bf00 nop - 8003484: 20008e64 .word 0x20008e64 - 8003488: 40022000 .word 0x40022000 - 800348c: 40022800 .word 0x40022800 + 8003484: bd80 pop {r7, pc} + 8003486: bf00 nop + 8003488: 20008e64 .word 0x20008e64 + 800348c: 40022000 .word 0x40022000 + 8003490: 40022800 .word 0x40022800 -08003490 : +08003494 : * @param hltdc: LTDC handle * @param Params * @retval None */ __weak void BSP_LCD_MspInit(LTDC_HandleTypeDef *hltdc, void *Params) { - 8003490: b580 push {r7, lr} - 8003492: b090 sub sp, #64 ; 0x40 - 8003494: af00 add r7, sp, #0 - 8003496: 6078 str r0, [r7, #4] - 8003498: 6039 str r1, [r7, #0] + 8003494: b580 push {r7, lr} + 8003496: b090 sub sp, #64 ; 0x40 + 8003498: af00 add r7, sp, #0 + 800349a: 6078 str r0, [r7, #4] + 800349c: 6039 str r1, [r7, #0] GPIO_InitTypeDef gpio_init_structure; /* Enable the LTDC and DMA2D clocks */ __HAL_RCC_LTDC_CLK_ENABLE(); - 800349a: 4b64 ldr r3, [pc, #400] ; (800362c ) - 800349c: 6c5b ldr r3, [r3, #68] ; 0x44 - 800349e: 4a63 ldr r2, [pc, #396] ; (800362c ) - 80034a0: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 80034a4: 6453 str r3, [r2, #68] ; 0x44 - 80034a6: 4b61 ldr r3, [pc, #388] ; (800362c ) - 80034a8: 6c5b ldr r3, [r3, #68] ; 0x44 - 80034aa: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 80034ae: 62bb str r3, [r7, #40] ; 0x28 - 80034b0: 6abb ldr r3, [r7, #40] ; 0x28 + 800349e: 4b64 ldr r3, [pc, #400] ; (8003630 ) + 80034a0: 6c5b ldr r3, [r3, #68] ; 0x44 + 80034a2: 4a63 ldr r2, [pc, #396] ; (8003630 ) + 80034a4: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 + 80034a8: 6453 str r3, [r2, #68] ; 0x44 + 80034aa: 4b61 ldr r3, [pc, #388] ; (8003630 ) + 80034ac: 6c5b ldr r3, [r3, #68] ; 0x44 + 80034ae: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 + 80034b2: 62bb str r3, [r7, #40] ; 0x28 + 80034b4: 6abb ldr r3, [r7, #40] ; 0x28 __HAL_RCC_DMA2D_CLK_ENABLE(); - 80034b2: 4b5e ldr r3, [pc, #376] ; (800362c ) - 80034b4: 6b1b ldr r3, [r3, #48] ; 0x30 - 80034b6: 4a5d ldr r2, [pc, #372] ; (800362c ) - 80034b8: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 - 80034bc: 6313 str r3, [r2, #48] ; 0x30 - 80034be: 4b5b ldr r3, [pc, #364] ; (800362c ) - 80034c0: 6b1b ldr r3, [r3, #48] ; 0x30 - 80034c2: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 80034c6: 627b str r3, [r7, #36] ; 0x24 - 80034c8: 6a7b ldr r3, [r7, #36] ; 0x24 + 80034b6: 4b5e ldr r3, [pc, #376] ; (8003630 ) + 80034b8: 6b1b ldr r3, [r3, #48] ; 0x30 + 80034ba: 4a5d ldr r2, [pc, #372] ; (8003630 ) + 80034bc: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 + 80034c0: 6313 str r3, [r2, #48] ; 0x30 + 80034c2: 4b5b ldr r3, [pc, #364] ; (8003630 ) + 80034c4: 6b1b ldr r3, [r3, #48] ; 0x30 + 80034c6: f403 0300 and.w r3, r3, #8388608 ; 0x800000 + 80034ca: 627b str r3, [r7, #36] ; 0x24 + 80034cc: 6a7b ldr r3, [r7, #36] ; 0x24 /* Enable GPIOs clock */ __HAL_RCC_GPIOE_CLK_ENABLE(); - 80034ca: 4b58 ldr r3, [pc, #352] ; (800362c ) - 80034cc: 6b1b ldr r3, [r3, #48] ; 0x30 - 80034ce: 4a57 ldr r2, [pc, #348] ; (800362c ) - 80034d0: f043 0310 orr.w r3, r3, #16 - 80034d4: 6313 str r3, [r2, #48] ; 0x30 - 80034d6: 4b55 ldr r3, [pc, #340] ; (800362c ) - 80034d8: 6b1b ldr r3, [r3, #48] ; 0x30 - 80034da: f003 0310 and.w r3, r3, #16 - 80034de: 623b str r3, [r7, #32] - 80034e0: 6a3b ldr r3, [r7, #32] + 80034ce: 4b58 ldr r3, [pc, #352] ; (8003630 ) + 80034d0: 6b1b ldr r3, [r3, #48] ; 0x30 + 80034d2: 4a57 ldr r2, [pc, #348] ; (8003630 ) + 80034d4: f043 0310 orr.w r3, r3, #16 + 80034d8: 6313 str r3, [r2, #48] ; 0x30 + 80034da: 4b55 ldr r3, [pc, #340] ; (8003630 ) + 80034dc: 6b1b ldr r3, [r3, #48] ; 0x30 + 80034de: f003 0310 and.w r3, r3, #16 + 80034e2: 623b str r3, [r7, #32] + 80034e4: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOG_CLK_ENABLE(); - 80034e2: 4b52 ldr r3, [pc, #328] ; (800362c ) - 80034e4: 6b1b ldr r3, [r3, #48] ; 0x30 - 80034e6: 4a51 ldr r2, [pc, #324] ; (800362c ) - 80034e8: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80034ec: 6313 str r3, [r2, #48] ; 0x30 - 80034ee: 4b4f ldr r3, [pc, #316] ; (800362c ) - 80034f0: 6b1b ldr r3, [r3, #48] ; 0x30 - 80034f2: f003 0340 and.w r3, r3, #64 ; 0x40 - 80034f6: 61fb str r3, [r7, #28] - 80034f8: 69fb ldr r3, [r7, #28] + 80034e6: 4b52 ldr r3, [pc, #328] ; (8003630 ) + 80034e8: 6b1b ldr r3, [r3, #48] ; 0x30 + 80034ea: 4a51 ldr r2, [pc, #324] ; (8003630 ) + 80034ec: f043 0340 orr.w r3, r3, #64 ; 0x40 + 80034f0: 6313 str r3, [r2, #48] ; 0x30 + 80034f2: 4b4f ldr r3, [pc, #316] ; (8003630 ) + 80034f4: 6b1b ldr r3, [r3, #48] ; 0x30 + 80034f6: f003 0340 and.w r3, r3, #64 ; 0x40 + 80034fa: 61fb str r3, [r7, #28] + 80034fc: 69fb ldr r3, [r7, #28] __HAL_RCC_GPIOI_CLK_ENABLE(); - 80034fa: 4b4c ldr r3, [pc, #304] ; (800362c ) - 80034fc: 6b1b ldr r3, [r3, #48] ; 0x30 - 80034fe: 4a4b ldr r2, [pc, #300] ; (800362c ) - 8003500: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8003504: 6313 str r3, [r2, #48] ; 0x30 - 8003506: 4b49 ldr r3, [pc, #292] ; (800362c ) - 8003508: 6b1b ldr r3, [r3, #48] ; 0x30 - 800350a: f403 7380 and.w r3, r3, #256 ; 0x100 - 800350e: 61bb str r3, [r7, #24] - 8003510: 69bb ldr r3, [r7, #24] + 80034fe: 4b4c ldr r3, [pc, #304] ; (8003630 ) + 8003500: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003502: 4a4b ldr r2, [pc, #300] ; (8003630 ) + 8003504: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8003508: 6313 str r3, [r2, #48] ; 0x30 + 800350a: 4b49 ldr r3, [pc, #292] ; (8003630 ) + 800350c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800350e: f403 7380 and.w r3, r3, #256 ; 0x100 + 8003512: 61bb str r3, [r7, #24] + 8003514: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOJ_CLK_ENABLE(); - 8003512: 4b46 ldr r3, [pc, #280] ; (800362c ) - 8003514: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003516: 4a45 ldr r2, [pc, #276] ; (800362c ) - 8003518: f443 7300 orr.w r3, r3, #512 ; 0x200 - 800351c: 6313 str r3, [r2, #48] ; 0x30 - 800351e: 4b43 ldr r3, [pc, #268] ; (800362c ) - 8003520: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003522: f403 7300 and.w r3, r3, #512 ; 0x200 - 8003526: 617b str r3, [r7, #20] - 8003528: 697b ldr r3, [r7, #20] + 8003516: 4b46 ldr r3, [pc, #280] ; (8003630 ) + 8003518: 6b1b ldr r3, [r3, #48] ; 0x30 + 800351a: 4a45 ldr r2, [pc, #276] ; (8003630 ) + 800351c: f443 7300 orr.w r3, r3, #512 ; 0x200 + 8003520: 6313 str r3, [r2, #48] ; 0x30 + 8003522: 4b43 ldr r3, [pc, #268] ; (8003630 ) + 8003524: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003526: f403 7300 and.w r3, r3, #512 ; 0x200 + 800352a: 617b str r3, [r7, #20] + 800352c: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOK_CLK_ENABLE(); - 800352a: 4b40 ldr r3, [pc, #256] ; (800362c ) - 800352c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800352e: 4a3f ldr r2, [pc, #252] ; (800362c ) - 8003530: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 8003534: 6313 str r3, [r2, #48] ; 0x30 - 8003536: 4b3d ldr r3, [pc, #244] ; (800362c ) - 8003538: 6b1b ldr r3, [r3, #48] ; 0x30 - 800353a: f403 6380 and.w r3, r3, #1024 ; 0x400 - 800353e: 613b str r3, [r7, #16] - 8003540: 693b ldr r3, [r7, #16] + 800352e: 4b40 ldr r3, [pc, #256] ; (8003630 ) + 8003530: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003532: 4a3f ldr r2, [pc, #252] ; (8003630 ) + 8003534: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 8003538: 6313 str r3, [r2, #48] ; 0x30 + 800353a: 4b3d ldr r3, [pc, #244] ; (8003630 ) + 800353c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800353e: f403 6380 and.w r3, r3, #1024 ; 0x400 + 8003542: 613b str r3, [r7, #16] + 8003544: 693b ldr r3, [r7, #16] LCD_DISP_GPIO_CLK_ENABLE(); - 8003542: 4b3a ldr r3, [pc, #232] ; (800362c ) - 8003544: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003546: 4a39 ldr r2, [pc, #228] ; (800362c ) - 8003548: f443 7380 orr.w r3, r3, #256 ; 0x100 - 800354c: 6313 str r3, [r2, #48] ; 0x30 - 800354e: 4b37 ldr r3, [pc, #220] ; (800362c ) - 8003550: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003552: f403 7380 and.w r3, r3, #256 ; 0x100 - 8003556: 60fb str r3, [r7, #12] - 8003558: 68fb ldr r3, [r7, #12] + 8003546: 4b3a ldr r3, [pc, #232] ; (8003630 ) + 8003548: 6b1b ldr r3, [r3, #48] ; 0x30 + 800354a: 4a39 ldr r2, [pc, #228] ; (8003630 ) + 800354c: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8003550: 6313 str r3, [r2, #48] ; 0x30 + 8003552: 4b37 ldr r3, [pc, #220] ; (8003630 ) + 8003554: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003556: f403 7380 and.w r3, r3, #256 ; 0x100 + 800355a: 60fb str r3, [r7, #12] + 800355c: 68fb ldr r3, [r7, #12] LCD_BL_CTRL_GPIO_CLK_ENABLE(); - 800355a: 4b34 ldr r3, [pc, #208] ; (800362c ) - 800355c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800355e: 4a33 ldr r2, [pc, #204] ; (800362c ) - 8003560: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 8003564: 6313 str r3, [r2, #48] ; 0x30 - 8003566: 4b31 ldr r3, [pc, #196] ; (800362c ) - 8003568: 6b1b ldr r3, [r3, #48] ; 0x30 - 800356a: f403 6380 and.w r3, r3, #1024 ; 0x400 - 800356e: 60bb str r3, [r7, #8] - 8003570: 68bb ldr r3, [r7, #8] + 800355e: 4b34 ldr r3, [pc, #208] ; (8003630 ) + 8003560: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003562: 4a33 ldr r2, [pc, #204] ; (8003630 ) + 8003564: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 8003568: 6313 str r3, [r2, #48] ; 0x30 + 800356a: 4b31 ldr r3, [pc, #196] ; (8003630 ) + 800356c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800356e: f403 6380 and.w r3, r3, #1024 ; 0x400 + 8003572: 60bb str r3, [r7, #8] + 8003574: 68bb ldr r3, [r7, #8] /*** LTDC Pins configuration ***/ /* GPIOE configuration */ gpio_init_structure.Pin = GPIO_PIN_4; - 8003572: 2310 movs r3, #16 - 8003574: 62fb str r3, [r7, #44] ; 0x2c + 8003576: 2310 movs r3, #16 + 8003578: 62fb str r3, [r7, #44] ; 0x2c gpio_init_structure.Mode = GPIO_MODE_AF_PP; - 8003576: 2302 movs r3, #2 - 8003578: 633b str r3, [r7, #48] ; 0x30 + 800357a: 2302 movs r3, #2 + 800357c: 633b str r3, [r7, #48] ; 0x30 gpio_init_structure.Pull = GPIO_NOPULL; - 800357a: 2300 movs r3, #0 - 800357c: 637b str r3, [r7, #52] ; 0x34 + 800357e: 2300 movs r3, #0 + 8003580: 637b str r3, [r7, #52] ; 0x34 gpio_init_structure.Speed = GPIO_SPEED_FAST; - 800357e: 2302 movs r3, #2 - 8003580: 63bb str r3, [r7, #56] ; 0x38 + 8003582: 2302 movs r3, #2 + 8003584: 63bb str r3, [r7, #56] ; 0x38 gpio_init_structure.Alternate = GPIO_AF14_LTDC; - 8003582: 230e movs r3, #14 - 8003584: 63fb str r3, [r7, #60] ; 0x3c + 8003586: 230e movs r3, #14 + 8003588: 63fb str r3, [r7, #60] ; 0x3c HAL_GPIO_Init(GPIOE, &gpio_init_structure); - 8003586: f107 032c add.w r3, r7, #44 ; 0x2c - 800358a: 4619 mov r1, r3 - 800358c: 4828 ldr r0, [pc, #160] ; (8003630 ) - 800358e: f004 f875 bl 800767c + 800358a: f107 032c add.w r3, r7, #44 ; 0x2c + 800358e: 4619 mov r1, r3 + 8003590: 4828 ldr r0, [pc, #160] ; (8003634 ) + 8003592: f004 f875 bl 8007680 /* GPIOG configuration */ gpio_init_structure.Pin = GPIO_PIN_12; - 8003592: f44f 5380 mov.w r3, #4096 ; 0x1000 - 8003596: 62fb str r3, [r7, #44] ; 0x2c + 8003596: f44f 5380 mov.w r3, #4096 ; 0x1000 + 800359a: 62fb str r3, [r7, #44] ; 0x2c gpio_init_structure.Mode = GPIO_MODE_AF_PP; - 8003598: 2302 movs r3, #2 - 800359a: 633b str r3, [r7, #48] ; 0x30 + 800359c: 2302 movs r3, #2 + 800359e: 633b str r3, [r7, #48] ; 0x30 gpio_init_structure.Alternate = GPIO_AF9_LTDC; - 800359c: 2309 movs r3, #9 - 800359e: 63fb str r3, [r7, #60] ; 0x3c + 80035a0: 2309 movs r3, #9 + 80035a2: 63fb str r3, [r7, #60] ; 0x3c HAL_GPIO_Init(GPIOG, &gpio_init_structure); - 80035a0: f107 032c add.w r3, r7, #44 ; 0x2c - 80035a4: 4619 mov r1, r3 - 80035a6: 4823 ldr r0, [pc, #140] ; (8003634 ) - 80035a8: f004 f868 bl 800767c + 80035a4: f107 032c add.w r3, r7, #44 ; 0x2c + 80035a8: 4619 mov r1, r3 + 80035aa: 4823 ldr r0, [pc, #140] ; (8003638 ) + 80035ac: f004 f868 bl 8007680 /* GPIOI LTDC alternate configuration */ gpio_init_structure.Pin = GPIO_PIN_9 | GPIO_PIN_10 | \ - 80035ac: f44f 4366 mov.w r3, #58880 ; 0xe600 - 80035b0: 62fb str r3, [r7, #44] ; 0x2c + 80035b0: f44f 4366 mov.w r3, #58880 ; 0xe600 + 80035b4: 62fb str r3, [r7, #44] ; 0x2c GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15; gpio_init_structure.Mode = GPIO_MODE_AF_PP; - 80035b2: 2302 movs r3, #2 - 80035b4: 633b str r3, [r7, #48] ; 0x30 + 80035b6: 2302 movs r3, #2 + 80035b8: 633b str r3, [r7, #48] ; 0x30 gpio_init_structure.Alternate = GPIO_AF14_LTDC; - 80035b6: 230e movs r3, #14 - 80035b8: 63fb str r3, [r7, #60] ; 0x3c + 80035ba: 230e movs r3, #14 + 80035bc: 63fb str r3, [r7, #60] ; 0x3c HAL_GPIO_Init(GPIOI, &gpio_init_structure); - 80035ba: f107 032c add.w r3, r7, #44 ; 0x2c - 80035be: 4619 mov r1, r3 - 80035c0: 481d ldr r0, [pc, #116] ; (8003638 ) - 80035c2: f004 f85b bl 800767c + 80035be: f107 032c add.w r3, r7, #44 ; 0x2c + 80035c2: 4619 mov r1, r3 + 80035c4: 481d ldr r0, [pc, #116] ; (800363c ) + 80035c6: f004 f85b bl 8007680 /* GPIOJ configuration */ gpio_init_structure.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_3 | \ - 80035c6: f64e 73ff movw r3, #61439 ; 0xefff - 80035ca: 62fb str r3, [r7, #44] ; 0x2c + 80035ca: f64e 73ff movw r3, #61439 ; 0xefff + 80035ce: 62fb str r3, [r7, #44] ; 0x2c GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7 | \ GPIO_PIN_8 | GPIO_PIN_9 | GPIO_PIN_10 | GPIO_PIN_11 | \ GPIO_PIN_13 | GPIO_PIN_14 | GPIO_PIN_15; gpio_init_structure.Mode = GPIO_MODE_AF_PP; - 80035cc: 2302 movs r3, #2 - 80035ce: 633b str r3, [r7, #48] ; 0x30 + 80035d0: 2302 movs r3, #2 + 80035d2: 633b str r3, [r7, #48] ; 0x30 gpio_init_structure.Alternate = GPIO_AF14_LTDC; - 80035d0: 230e movs r3, #14 - 80035d2: 63fb str r3, [r7, #60] ; 0x3c + 80035d4: 230e movs r3, #14 + 80035d6: 63fb str r3, [r7, #60] ; 0x3c HAL_GPIO_Init(GPIOJ, &gpio_init_structure); - 80035d4: f107 032c add.w r3, r7, #44 ; 0x2c - 80035d8: 4619 mov r1, r3 - 80035da: 4818 ldr r0, [pc, #96] ; (800363c ) - 80035dc: f004 f84e bl 800767c + 80035d8: f107 032c add.w r3, r7, #44 ; 0x2c + 80035dc: 4619 mov r1, r3 + 80035de: 4818 ldr r0, [pc, #96] ; (8003640 ) + 80035e0: f004 f84e bl 8007680 /* GPIOK configuration */ gpio_init_structure.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2 | GPIO_PIN_4 | \ - 80035e0: 23f7 movs r3, #247 ; 0xf7 - 80035e2: 62fb str r3, [r7, #44] ; 0x2c + 80035e4: 23f7 movs r3, #247 ; 0xf7 + 80035e6: 62fb str r3, [r7, #44] ; 0x2c GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7; gpio_init_structure.Mode = GPIO_MODE_AF_PP; - 80035e4: 2302 movs r3, #2 - 80035e6: 633b str r3, [r7, #48] ; 0x30 + 80035e8: 2302 movs r3, #2 + 80035ea: 633b str r3, [r7, #48] ; 0x30 gpio_init_structure.Alternate = GPIO_AF14_LTDC; - 80035e8: 230e movs r3, #14 - 80035ea: 63fb str r3, [r7, #60] ; 0x3c + 80035ec: 230e movs r3, #14 + 80035ee: 63fb str r3, [r7, #60] ; 0x3c HAL_GPIO_Init(GPIOK, &gpio_init_structure); - 80035ec: f107 032c add.w r3, r7, #44 ; 0x2c - 80035f0: 4619 mov r1, r3 - 80035f2: 4813 ldr r0, [pc, #76] ; (8003640 ) - 80035f4: f004 f842 bl 800767c + 80035f0: f107 032c add.w r3, r7, #44 ; 0x2c + 80035f4: 4619 mov r1, r3 + 80035f6: 4813 ldr r0, [pc, #76] ; (8003644 ) + 80035f8: f004 f842 bl 8007680 /* LCD_DISP GPIO configuration */ gpio_init_structure.Pin = LCD_DISP_PIN; /* LCD_DISP pin has to be manually controlled */ - 80035f8: f44f 5380 mov.w r3, #4096 ; 0x1000 - 80035fc: 62fb str r3, [r7, #44] ; 0x2c + 80035fc: f44f 5380 mov.w r3, #4096 ; 0x1000 + 8003600: 62fb str r3, [r7, #44] ; 0x2c gpio_init_structure.Mode = GPIO_MODE_OUTPUT_PP; - 80035fe: 2301 movs r3, #1 - 8003600: 633b str r3, [r7, #48] ; 0x30 + 8003602: 2301 movs r3, #1 + 8003604: 633b str r3, [r7, #48] ; 0x30 HAL_GPIO_Init(LCD_DISP_GPIO_PORT, &gpio_init_structure); - 8003602: f107 032c add.w r3, r7, #44 ; 0x2c - 8003606: 4619 mov r1, r3 - 8003608: 480b ldr r0, [pc, #44] ; (8003638 ) - 800360a: f004 f837 bl 800767c + 8003606: f107 032c add.w r3, r7, #44 ; 0x2c + 800360a: 4619 mov r1, r3 + 800360c: 480b ldr r0, [pc, #44] ; (800363c ) + 800360e: f004 f837 bl 8007680 /* LCD_BL_CTRL GPIO configuration */ gpio_init_structure.Pin = LCD_BL_CTRL_PIN; /* LCD_BL_CTRL pin has to be manually controlled */ - 800360e: 2308 movs r3, #8 - 8003610: 62fb str r3, [r7, #44] ; 0x2c + 8003612: 2308 movs r3, #8 + 8003614: 62fb str r3, [r7, #44] ; 0x2c gpio_init_structure.Mode = GPIO_MODE_OUTPUT_PP; - 8003612: 2301 movs r3, #1 - 8003614: 633b str r3, [r7, #48] ; 0x30 + 8003616: 2301 movs r3, #1 + 8003618: 633b str r3, [r7, #48] ; 0x30 HAL_GPIO_Init(LCD_BL_CTRL_GPIO_PORT, &gpio_init_structure); - 8003616: f107 032c add.w r3, r7, #44 ; 0x2c - 800361a: 4619 mov r1, r3 - 800361c: 4808 ldr r0, [pc, #32] ; (8003640 ) - 800361e: f004 f82d bl 800767c -} - 8003622: bf00 nop - 8003624: 3740 adds r7, #64 ; 0x40 - 8003626: 46bd mov sp, r7 - 8003628: bd80 pop {r7, pc} - 800362a: bf00 nop - 800362c: 40023800 .word 0x40023800 - 8003630: 40021000 .word 0x40021000 - 8003634: 40021800 .word 0x40021800 - 8003638: 40022000 .word 0x40022000 - 800363c: 40022400 .word 0x40022400 - 8003640: 40022800 .word 0x40022800 - -08003644 : + 800361a: f107 032c add.w r3, r7, #44 ; 0x2c + 800361e: 4619 mov r1, r3 + 8003620: 4808 ldr r0, [pc, #32] ; (8003644 ) + 8003622: f004 f82d bl 8007680 +} + 8003626: bf00 nop + 8003628: 3740 adds r7, #64 ; 0x40 + 800362a: 46bd mov sp, r7 + 800362c: bd80 pop {r7, pc} + 800362e: bf00 nop + 8003630: 40023800 .word 0x40023800 + 8003634: 40021000 .word 0x40021000 + 8003638: 40021800 .word 0x40021800 + 800363c: 40022000 .word 0x40022000 + 8003640: 40022400 .word 0x40022400 + 8003644: 40022800 .word 0x40022800 + +08003648 : * @note This API is called by BSP_LCD_Init() * Being __weak it can be overwritten by the application * @retval None */ __weak void BSP_LCD_ClockConfig(LTDC_HandleTypeDef *hltdc, void *Params) { - 8003644: b580 push {r7, lr} - 8003646: b082 sub sp, #8 - 8003648: af00 add r7, sp, #0 - 800364a: 6078 str r0, [r7, #4] - 800364c: 6039 str r1, [r7, #0] + 8003648: b580 push {r7, lr} + 800364a: b082 sub sp, #8 + 800364c: af00 add r7, sp, #0 + 800364e: 6078 str r0, [r7, #4] + 8003650: 6039 str r1, [r7, #0] /* RK043FN48H LCD clock configuration */ /* PLLSAI_VCO Input = HSE_VALUE/PLL_M = 1 Mhz */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN = 192 Mhz */ /* PLLLCDCLK = PLLSAI_VCO Output/PLLSAIR = 192/5 = 38.4 Mhz */ /* LTDC clock frequency = PLLLCDCLK / LTDC_PLLSAI_DIVR_4 = 38.4/4 = 9.6Mhz */ periph_clk_init_struct.PeriphClockSelection = RCC_PERIPHCLK_LTDC; - 800364e: 4b0a ldr r3, [pc, #40] ; (8003678 ) - 8003650: 2208 movs r2, #8 - 8003652: 601a str r2, [r3, #0] + 8003652: 4b0a ldr r3, [pc, #40] ; (800367c ) + 8003654: 2208 movs r2, #8 + 8003656: 601a str r2, [r3, #0] periph_clk_init_struct.PLLSAI.PLLSAIN = 192; - 8003654: 4b08 ldr r3, [pc, #32] ; (8003678 ) - 8003656: 22c0 movs r2, #192 ; 0xc0 - 8003658: 615a str r2, [r3, #20] + 8003658: 4b08 ldr r3, [pc, #32] ; (800367c ) + 800365a: 22c0 movs r2, #192 ; 0xc0 + 800365c: 615a str r2, [r3, #20] periph_clk_init_struct.PLLSAI.PLLSAIR = RK043FN48H_FREQUENCY_DIVIDER; - 800365a: 4b07 ldr r3, [pc, #28] ; (8003678 ) - 800365c: 2205 movs r2, #5 - 800365e: 61da str r2, [r3, #28] + 800365e: 4b07 ldr r3, [pc, #28] ; (800367c ) + 8003660: 2205 movs r2, #5 + 8003662: 61da str r2, [r3, #28] periph_clk_init_struct.PLLSAIDivR = RCC_PLLSAIDIVR_4; - 8003660: 4b05 ldr r3, [pc, #20] ; (8003678 ) - 8003662: f44f 3280 mov.w r2, #65536 ; 0x10000 - 8003666: 62da str r2, [r3, #44] ; 0x2c + 8003664: 4b05 ldr r3, [pc, #20] ; (800367c ) + 8003666: f44f 3280 mov.w r2, #65536 ; 0x10000 + 800366a: 62da str r2, [r3, #44] ; 0x2c HAL_RCCEx_PeriphCLKConfig(&periph_clk_init_struct); - 8003668: 4803 ldr r0, [pc, #12] ; (8003678 ) - 800366a: f006 f91d bl 80098a8 + 800366c: 4803 ldr r0, [pc, #12] ; (800367c ) + 800366e: f006 f91d bl 80098ac } - 800366e: bf00 nop - 8003670: 3708 adds r7, #8 - 8003672: 46bd mov sp, r7 - 8003674: bd80 pop {r7, pc} - 8003676: bf00 nop - 8003678: 2000042c .word 0x2000042c + 8003672: bf00 nop + 8003674: 3708 adds r7, #8 + 8003676: 46bd mov sp, r7 + 8003678: bd80 pop {r7, pc} + 800367a: bf00 nop + 800367c: 2000042c .word 0x2000042c -0800367c : +08003680 : * @param Ypos: Start column address * @param c: Pointer to the character data * @retval None */ static void DrawChar(uint16_t Xpos, uint16_t Ypos, const uint8_t *c) { - 800367c: b580 push {r7, lr} - 800367e: b088 sub sp, #32 - 8003680: af00 add r7, sp, #0 - 8003682: 4603 mov r3, r0 - 8003684: 603a str r2, [r7, #0] - 8003686: 80fb strh r3, [r7, #6] - 8003688: 460b mov r3, r1 - 800368a: 80bb strh r3, [r7, #4] + 8003680: b580 push {r7, lr} + 8003682: b088 sub sp, #32 + 8003684: af00 add r7, sp, #0 + 8003686: 4603 mov r3, r0 + 8003688: 603a str r2, [r7, #0] + 800368a: 80fb strh r3, [r7, #6] + 800368c: 460b mov r3, r1 + 800368e: 80bb strh r3, [r7, #4] uint32_t i = 0, j = 0; - 800368c: 2300 movs r3, #0 - 800368e: 61fb str r3, [r7, #28] 8003690: 2300 movs r3, #0 - 8003692: 61bb str r3, [r7, #24] + 8003692: 61fb str r3, [r7, #28] + 8003694: 2300 movs r3, #0 + 8003696: 61bb str r3, [r7, #24] uint16_t height, width; uint8_t offset; uint8_t *pchar; uint32_t line; height = DrawProp[ActiveLayer].pFont->Height; - 8003694: 4b53 ldr r3, [pc, #332] ; (80037e4 ) - 8003696: 681a ldr r2, [r3, #0] - 8003698: 4953 ldr r1, [pc, #332] ; (80037e8 ) - 800369a: 4613 mov r3, r2 - 800369c: 005b lsls r3, r3, #1 - 800369e: 4413 add r3, r2 - 80036a0: 009b lsls r3, r3, #2 - 80036a2: 440b add r3, r1 - 80036a4: 3308 adds r3, #8 - 80036a6: 681b ldr r3, [r3, #0] - 80036a8: 88db ldrh r3, [r3, #6] - 80036aa: 827b strh r3, [r7, #18] + 8003698: 4b53 ldr r3, [pc, #332] ; (80037e8 ) + 800369a: 681a ldr r2, [r3, #0] + 800369c: 4953 ldr r1, [pc, #332] ; (80037ec ) + 800369e: 4613 mov r3, r2 + 80036a0: 005b lsls r3, r3, #1 + 80036a2: 4413 add r3, r2 + 80036a4: 009b lsls r3, r3, #2 + 80036a6: 440b add r3, r1 + 80036a8: 3308 adds r3, #8 + 80036aa: 681b ldr r3, [r3, #0] + 80036ac: 88db ldrh r3, [r3, #6] + 80036ae: 827b strh r3, [r7, #18] width = DrawProp[ActiveLayer].pFont->Width; - 80036ac: 4b4d ldr r3, [pc, #308] ; (80037e4 ) - 80036ae: 681a ldr r2, [r3, #0] - 80036b0: 494d ldr r1, [pc, #308] ; (80037e8 ) - 80036b2: 4613 mov r3, r2 - 80036b4: 005b lsls r3, r3, #1 - 80036b6: 4413 add r3, r2 - 80036b8: 009b lsls r3, r3, #2 - 80036ba: 440b add r3, r1 - 80036bc: 3308 adds r3, #8 - 80036be: 681b ldr r3, [r3, #0] - 80036c0: 889b ldrh r3, [r3, #4] - 80036c2: 823b strh r3, [r7, #16] + 80036b0: 4b4d ldr r3, [pc, #308] ; (80037e8 ) + 80036b2: 681a ldr r2, [r3, #0] + 80036b4: 494d ldr r1, [pc, #308] ; (80037ec ) + 80036b6: 4613 mov r3, r2 + 80036b8: 005b lsls r3, r3, #1 + 80036ba: 4413 add r3, r2 + 80036bc: 009b lsls r3, r3, #2 + 80036be: 440b add r3, r1 + 80036c0: 3308 adds r3, #8 + 80036c2: 681b ldr r3, [r3, #0] + 80036c4: 889b ldrh r3, [r3, #4] + 80036c6: 823b strh r3, [r7, #16] offset = 8 *((width + 7)/8) - width ; - 80036c4: 8a3b ldrh r3, [r7, #16] - 80036c6: 3307 adds r3, #7 - 80036c8: 2b00 cmp r3, #0 - 80036ca: da00 bge.n 80036ce - 80036cc: 3307 adds r3, #7 - 80036ce: 10db asrs r3, r3, #3 - 80036d0: b2db uxtb r3, r3 - 80036d2: 00db lsls r3, r3, #3 - 80036d4: b2da uxtb r2, r3 - 80036d6: 8a3b ldrh r3, [r7, #16] - 80036d8: b2db uxtb r3, r3 - 80036da: 1ad3 subs r3, r2, r3 - 80036dc: 73fb strb r3, [r7, #15] + 80036c8: 8a3b ldrh r3, [r7, #16] + 80036ca: 3307 adds r3, #7 + 80036cc: 2b00 cmp r3, #0 + 80036ce: da00 bge.n 80036d2 + 80036d0: 3307 adds r3, #7 + 80036d2: 10db asrs r3, r3, #3 + 80036d4: b2db uxtb r3, r3 + 80036d6: 00db lsls r3, r3, #3 + 80036d8: b2da uxtb r2, r3 + 80036da: 8a3b ldrh r3, [r7, #16] + 80036dc: b2db uxtb r3, r3 + 80036de: 1ad3 subs r3, r2, r3 + 80036e0: 73fb strb r3, [r7, #15] for(i = 0; i < height; i++) - 80036de: 2300 movs r3, #0 - 80036e0: 61fb str r3, [r7, #28] - 80036e2: e076 b.n 80037d2 + 80036e2: 2300 movs r3, #0 + 80036e4: 61fb str r3, [r7, #28] + 80036e6: e076 b.n 80037d6 { pchar = ((uint8_t *)c + (width + 7)/8 * i); - 80036e4: 8a3b ldrh r3, [r7, #16] - 80036e6: 3307 adds r3, #7 - 80036e8: 2b00 cmp r3, #0 - 80036ea: da00 bge.n 80036ee - 80036ec: 3307 adds r3, #7 - 80036ee: 10db asrs r3, r3, #3 - 80036f0: 461a mov r2, r3 - 80036f2: 69fb ldr r3, [r7, #28] - 80036f4: fb03 f302 mul.w r3, r3, r2 - 80036f8: 683a ldr r2, [r7, #0] - 80036fa: 4413 add r3, r2 - 80036fc: 60bb str r3, [r7, #8] + 80036e8: 8a3b ldrh r3, [r7, #16] + 80036ea: 3307 adds r3, #7 + 80036ec: 2b00 cmp r3, #0 + 80036ee: da00 bge.n 80036f2 + 80036f0: 3307 adds r3, #7 + 80036f2: 10db asrs r3, r3, #3 + 80036f4: 461a mov r2, r3 + 80036f6: 69fb ldr r3, [r7, #28] + 80036f8: fb03 f302 mul.w r3, r3, r2 + 80036fc: 683a ldr r2, [r7, #0] + 80036fe: 4413 add r3, r2 + 8003700: 60bb str r3, [r7, #8] switch(((width + 7)/8)) - 80036fe: 8a3b ldrh r3, [r7, #16] - 8003700: 3307 adds r3, #7 - 8003702: 2b00 cmp r3, #0 - 8003704: da00 bge.n 8003708 - 8003706: 3307 adds r3, #7 - 8003708: 10db asrs r3, r3, #3 - 800370a: 2b01 cmp r3, #1 - 800370c: d002 beq.n 8003714 - 800370e: 2b02 cmp r3, #2 - 8003710: d004 beq.n 800371c - 8003712: e00c b.n 800372e + 8003702: 8a3b ldrh r3, [r7, #16] + 8003704: 3307 adds r3, #7 + 8003706: 2b00 cmp r3, #0 + 8003708: da00 bge.n 800370c + 800370a: 3307 adds r3, #7 + 800370c: 10db asrs r3, r3, #3 + 800370e: 2b01 cmp r3, #1 + 8003710: d002 beq.n 8003718 + 8003712: 2b02 cmp r3, #2 + 8003714: d004 beq.n 8003720 + 8003716: e00c b.n 8003732 { case 1: line = pchar[0]; - 8003714: 68bb ldr r3, [r7, #8] - 8003716: 781b ldrb r3, [r3, #0] - 8003718: 617b str r3, [r7, #20] + 8003718: 68bb ldr r3, [r7, #8] + 800371a: 781b ldrb r3, [r3, #0] + 800371c: 617b str r3, [r7, #20] break; - 800371a: e016 b.n 800374a + 800371e: e016 b.n 800374e case 2: line = (pchar[0]<< 8) | pchar[1]; - 800371c: 68bb ldr r3, [r7, #8] - 800371e: 781b ldrb r3, [r3, #0] - 8003720: 021b lsls r3, r3, #8 - 8003722: 68ba ldr r2, [r7, #8] - 8003724: 3201 adds r2, #1 - 8003726: 7812 ldrb r2, [r2, #0] - 8003728: 4313 orrs r3, r2 - 800372a: 617b str r3, [r7, #20] + 8003720: 68bb ldr r3, [r7, #8] + 8003722: 781b ldrb r3, [r3, #0] + 8003724: 021b lsls r3, r3, #8 + 8003726: 68ba ldr r2, [r7, #8] + 8003728: 3201 adds r2, #1 + 800372a: 7812 ldrb r2, [r2, #0] + 800372c: 4313 orrs r3, r2 + 800372e: 617b str r3, [r7, #20] break; - 800372c: e00d b.n 800374a + 8003730: e00d b.n 800374e case 3: default: line = (pchar[0]<< 16) | (pchar[1]<< 8) | pchar[2]; - 800372e: 68bb ldr r3, [r7, #8] - 8003730: 781b ldrb r3, [r3, #0] - 8003732: 041a lsls r2, r3, #16 - 8003734: 68bb ldr r3, [r7, #8] - 8003736: 3301 adds r3, #1 - 8003738: 781b ldrb r3, [r3, #0] - 800373a: 021b lsls r3, r3, #8 - 800373c: 4313 orrs r3, r2 - 800373e: 68ba ldr r2, [r7, #8] - 8003740: 3202 adds r2, #2 - 8003742: 7812 ldrb r2, [r2, #0] - 8003744: 4313 orrs r3, r2 - 8003746: 617b str r3, [r7, #20] + 8003732: 68bb ldr r3, [r7, #8] + 8003734: 781b ldrb r3, [r3, #0] + 8003736: 041a lsls r2, r3, #16 + 8003738: 68bb ldr r3, [r7, #8] + 800373a: 3301 adds r3, #1 + 800373c: 781b ldrb r3, [r3, #0] + 800373e: 021b lsls r3, r3, #8 + 8003740: 4313 orrs r3, r2 + 8003742: 68ba ldr r2, [r7, #8] + 8003744: 3202 adds r2, #2 + 8003746: 7812 ldrb r2, [r2, #0] + 8003748: 4313 orrs r3, r2 + 800374a: 617b str r3, [r7, #20] break; - 8003748: bf00 nop + 800374c: bf00 nop } for (j = 0; j < width; j++) - 800374a: 2300 movs r3, #0 - 800374c: 61bb str r3, [r7, #24] - 800374e: e036 b.n 80037be + 800374e: 2300 movs r3, #0 + 8003750: 61bb str r3, [r7, #24] + 8003752: e036 b.n 80037c2 { if(line & (1 << (width- j + offset- 1))) - 8003750: 8a3a ldrh r2, [r7, #16] - 8003752: 69bb ldr r3, [r7, #24] - 8003754: 1ad2 subs r2, r2, r3 - 8003756: 7bfb ldrb r3, [r7, #15] - 8003758: 4413 add r3, r2 - 800375a: 3b01 subs r3, #1 - 800375c: 2201 movs r2, #1 - 800375e: fa02 f303 lsl.w r3, r2, r3 - 8003762: 461a mov r2, r3 - 8003764: 697b ldr r3, [r7, #20] - 8003766: 4013 ands r3, r2 - 8003768: 2b00 cmp r3, #0 - 800376a: d012 beq.n 8003792 + 8003754: 8a3a ldrh r2, [r7, #16] + 8003756: 69bb ldr r3, [r7, #24] + 8003758: 1ad2 subs r2, r2, r3 + 800375a: 7bfb ldrb r3, [r7, #15] + 800375c: 4413 add r3, r2 + 800375e: 3b01 subs r3, #1 + 8003760: 2201 movs r2, #1 + 8003762: fa02 f303 lsl.w r3, r2, r3 + 8003766: 461a mov r2, r3 + 8003768: 697b ldr r3, [r7, #20] + 800376a: 4013 ands r3, r2 + 800376c: 2b00 cmp r3, #0 + 800376e: d012 beq.n 8003796 { BSP_LCD_DrawPixel((Xpos + j), Ypos, DrawProp[ActiveLayer].TextColor); - 800376c: 69bb ldr r3, [r7, #24] - 800376e: b29a uxth r2, r3 - 8003770: 88fb ldrh r3, [r7, #6] - 8003772: 4413 add r3, r2 - 8003774: b298 uxth r0, r3 - 8003776: 4b1b ldr r3, [pc, #108] ; (80037e4 ) - 8003778: 681a ldr r2, [r3, #0] - 800377a: 491b ldr r1, [pc, #108] ; (80037e8 ) - 800377c: 4613 mov r3, r2 - 800377e: 005b lsls r3, r3, #1 - 8003780: 4413 add r3, r2 - 8003782: 009b lsls r3, r3, #2 - 8003784: 440b add r3, r1 - 8003786: 681a ldr r2, [r3, #0] - 8003788: 88bb ldrh r3, [r7, #4] - 800378a: 4619 mov r1, r3 - 800378c: f7ff fd00 bl 8003190 - 8003790: e012 b.n 80037b8 + 8003770: 69bb ldr r3, [r7, #24] + 8003772: b29a uxth r2, r3 + 8003774: 88fb ldrh r3, [r7, #6] + 8003776: 4413 add r3, r2 + 8003778: b298 uxth r0, r3 + 800377a: 4b1b ldr r3, [pc, #108] ; (80037e8 ) + 800377c: 681a ldr r2, [r3, #0] + 800377e: 491b ldr r1, [pc, #108] ; (80037ec ) + 8003780: 4613 mov r3, r2 + 8003782: 005b lsls r3, r3, #1 + 8003784: 4413 add r3, r2 + 8003786: 009b lsls r3, r3, #2 + 8003788: 440b add r3, r1 + 800378a: 681a ldr r2, [r3, #0] + 800378c: 88bb ldrh r3, [r7, #4] + 800378e: 4619 mov r1, r3 + 8003790: f7ff fd00 bl 8003194 + 8003794: e012 b.n 80037bc } else { BSP_LCD_DrawPixel((Xpos + j), Ypos, DrawProp[ActiveLayer].BackColor); - 8003792: 69bb ldr r3, [r7, #24] - 8003794: b29a uxth r2, r3 - 8003796: 88fb ldrh r3, [r7, #6] - 8003798: 4413 add r3, r2 - 800379a: b298 uxth r0, r3 - 800379c: 4b11 ldr r3, [pc, #68] ; (80037e4 ) - 800379e: 681a ldr r2, [r3, #0] - 80037a0: 4911 ldr r1, [pc, #68] ; (80037e8 ) - 80037a2: 4613 mov r3, r2 - 80037a4: 005b lsls r3, r3, #1 - 80037a6: 4413 add r3, r2 - 80037a8: 009b lsls r3, r3, #2 - 80037aa: 440b add r3, r1 - 80037ac: 3304 adds r3, #4 - 80037ae: 681a ldr r2, [r3, #0] - 80037b0: 88bb ldrh r3, [r7, #4] - 80037b2: 4619 mov r1, r3 - 80037b4: f7ff fcec bl 8003190 + 8003796: 69bb ldr r3, [r7, #24] + 8003798: b29a uxth r2, r3 + 800379a: 88fb ldrh r3, [r7, #6] + 800379c: 4413 add r3, r2 + 800379e: b298 uxth r0, r3 + 80037a0: 4b11 ldr r3, [pc, #68] ; (80037e8 ) + 80037a2: 681a ldr r2, [r3, #0] + 80037a4: 4911 ldr r1, [pc, #68] ; (80037ec ) + 80037a6: 4613 mov r3, r2 + 80037a8: 005b lsls r3, r3, #1 + 80037aa: 4413 add r3, r2 + 80037ac: 009b lsls r3, r3, #2 + 80037ae: 440b add r3, r1 + 80037b0: 3304 adds r3, #4 + 80037b2: 681a ldr r2, [r3, #0] + 80037b4: 88bb ldrh r3, [r7, #4] + 80037b6: 4619 mov r1, r3 + 80037b8: f7ff fcec bl 8003194 for (j = 0; j < width; j++) - 80037b8: 69bb ldr r3, [r7, #24] - 80037ba: 3301 adds r3, #1 - 80037bc: 61bb str r3, [r7, #24] - 80037be: 8a3b ldrh r3, [r7, #16] - 80037c0: 69ba ldr r2, [r7, #24] - 80037c2: 429a cmp r2, r3 - 80037c4: d3c4 bcc.n 8003750 + 80037bc: 69bb ldr r3, [r7, #24] + 80037be: 3301 adds r3, #1 + 80037c0: 61bb str r3, [r7, #24] + 80037c2: 8a3b ldrh r3, [r7, #16] + 80037c4: 69ba ldr r2, [r7, #24] + 80037c6: 429a cmp r2, r3 + 80037c8: d3c4 bcc.n 8003754 } } Ypos++; - 80037c6: 88bb ldrh r3, [r7, #4] - 80037c8: 3301 adds r3, #1 - 80037ca: 80bb strh r3, [r7, #4] + 80037ca: 88bb ldrh r3, [r7, #4] + 80037cc: 3301 adds r3, #1 + 80037ce: 80bb strh r3, [r7, #4] for(i = 0; i < height; i++) - 80037cc: 69fb ldr r3, [r7, #28] - 80037ce: 3301 adds r3, #1 - 80037d0: 61fb str r3, [r7, #28] - 80037d2: 8a7b ldrh r3, [r7, #18] - 80037d4: 69fa ldr r2, [r7, #28] - 80037d6: 429a cmp r2, r3 - 80037d8: d384 bcc.n 80036e4 - } -} - 80037da: bf00 nop - 80037dc: 3720 adds r7, #32 - 80037de: 46bd mov sp, r7 - 80037e0: bd80 pop {r7, pc} - 80037e2: bf00 nop - 80037e4: 20000410 .word 0x20000410 - 80037e8: 20000414 .word 0x20000414 - -080037ec : + 80037d0: 69fb ldr r3, [r7, #28] + 80037d2: 3301 adds r3, #1 + 80037d4: 61fb str r3, [r7, #28] + 80037d6: 8a7b ldrh r3, [r7, #18] + 80037d8: 69fa ldr r2, [r7, #28] + 80037da: 429a cmp r2, r3 + 80037dc: d384 bcc.n 80036e8 + } +} + 80037de: bf00 nop + 80037e0: 3720 adds r7, #32 + 80037e2: 46bd mov sp, r7 + 80037e4: bd80 pop {r7, pc} + 80037e6: bf00 nop + 80037e8: 20000410 .word 0x20000410 + 80037ec: 20000414 .word 0x20000414 + +080037f0 : * @param OffLine: Offset * @param ColorIndex: Color index * @retval None */ static void LL_FillBuffer(uint32_t LayerIndex, void *pDst, uint32_t xSize, uint32_t ySize, uint32_t OffLine, uint32_t ColorIndex) { - 80037ec: b580 push {r7, lr} - 80037ee: b086 sub sp, #24 - 80037f0: af02 add r7, sp, #8 - 80037f2: 60f8 str r0, [r7, #12] - 80037f4: 60b9 str r1, [r7, #8] - 80037f6: 607a str r2, [r7, #4] - 80037f8: 603b str r3, [r7, #0] + 80037f0: b580 push {r7, lr} + 80037f2: b086 sub sp, #24 + 80037f4: af02 add r7, sp, #8 + 80037f6: 60f8 str r0, [r7, #12] + 80037f8: 60b9 str r1, [r7, #8] + 80037fa: 607a str r2, [r7, #4] + 80037fc: 603b str r3, [r7, #0] /* Register to memory mode with ARGB8888 as color Mode */ hDma2dHandler.Init.Mode = DMA2D_R2M; - 80037fa: 4b1e ldr r3, [pc, #120] ; (8003874 ) - 80037fc: f44f 3240 mov.w r2, #196608 ; 0x30000 - 8003800: 605a str r2, [r3, #4] + 80037fe: 4b1e ldr r3, [pc, #120] ; (8003878 ) + 8003800: f44f 3240 mov.w r2, #196608 ; 0x30000 + 8003804: 605a str r2, [r3, #4] if(hLtdcHandler.LayerCfg[ActiveLayer].PixelFormat == LTDC_PIXEL_FORMAT_RGB565) - 8003802: 4b1d ldr r3, [pc, #116] ; (8003878 ) - 8003804: 681b ldr r3, [r3, #0] - 8003806: 4a1d ldr r2, [pc, #116] ; (800387c ) - 8003808: 2134 movs r1, #52 ; 0x34 - 800380a: fb01 f303 mul.w r3, r1, r3 - 800380e: 4413 add r3, r2 - 8003810: 3348 adds r3, #72 ; 0x48 - 8003812: 681b ldr r3, [r3, #0] - 8003814: 2b02 cmp r3, #2 - 8003816: d103 bne.n 8003820 + 8003806: 4b1d ldr r3, [pc, #116] ; (800387c ) + 8003808: 681b ldr r3, [r3, #0] + 800380a: 4a1d ldr r2, [pc, #116] ; (8003880 ) + 800380c: 2134 movs r1, #52 ; 0x34 + 800380e: fb01 f303 mul.w r3, r1, r3 + 8003812: 4413 add r3, r2 + 8003814: 3348 adds r3, #72 ; 0x48 + 8003816: 681b ldr r3, [r3, #0] + 8003818: 2b02 cmp r3, #2 + 800381a: d103 bne.n 8003824 { /* RGB565 format */ hDma2dHandler.Init.ColorMode = DMA2D_RGB565; - 8003818: 4b16 ldr r3, [pc, #88] ; (8003874 ) - 800381a: 2202 movs r2, #2 - 800381c: 609a str r2, [r3, #8] - 800381e: e002 b.n 8003826 + 800381c: 4b16 ldr r3, [pc, #88] ; (8003878 ) + 800381e: 2202 movs r2, #2 + 8003820: 609a str r2, [r3, #8] + 8003822: e002 b.n 800382a } else { /* ARGB8888 format */ hDma2dHandler.Init.ColorMode = DMA2D_ARGB8888; - 8003820: 4b14 ldr r3, [pc, #80] ; (8003874 ) - 8003822: 2200 movs r2, #0 - 8003824: 609a str r2, [r3, #8] + 8003824: 4b14 ldr r3, [pc, #80] ; (8003878 ) + 8003826: 2200 movs r2, #0 + 8003828: 609a str r2, [r3, #8] } hDma2dHandler.Init.OutputOffset = OffLine; - 8003826: 4a13 ldr r2, [pc, #76] ; (8003874 ) - 8003828: 69bb ldr r3, [r7, #24] - 800382a: 60d3 str r3, [r2, #12] + 800382a: 4a13 ldr r2, [pc, #76] ; (8003878 ) + 800382c: 69bb ldr r3, [r7, #24] + 800382e: 60d3 str r3, [r2, #12] hDma2dHandler.Instance = DMA2D; - 800382c: 4b11 ldr r3, [pc, #68] ; (8003874 ) - 800382e: 4a14 ldr r2, [pc, #80] ; (8003880 ) - 8003830: 601a str r2, [r3, #0] + 8003830: 4b11 ldr r3, [pc, #68] ; (8003878 ) + 8003832: 4a14 ldr r2, [pc, #80] ; (8003884 ) + 8003834: 601a str r2, [r3, #0] /* DMA2D Initialization */ if(HAL_DMA2D_Init(&hDma2dHandler) == HAL_OK) - 8003832: 4810 ldr r0, [pc, #64] ; (8003874 ) - 8003834: f002 fb10 bl 8005e58 - 8003838: 4603 mov r3, r0 - 800383a: 2b00 cmp r3, #0 - 800383c: d115 bne.n 800386a + 8003836: 4810 ldr r0, [pc, #64] ; (8003878 ) + 8003838: f002 fb10 bl 8005e5c + 800383c: 4603 mov r3, r0 + 800383e: 2b00 cmp r3, #0 + 8003840: d115 bne.n 800386e { if(HAL_DMA2D_ConfigLayer(&hDma2dHandler, LayerIndex) == HAL_OK) - 800383e: 68f9 ldr r1, [r7, #12] - 8003840: 480c ldr r0, [pc, #48] ; (8003874 ) - 8003842: f002 fc67 bl 8006114 - 8003846: 4603 mov r3, r0 - 8003848: 2b00 cmp r3, #0 - 800384a: d10e bne.n 800386a + 8003842: 68f9 ldr r1, [r7, #12] + 8003844: 480c ldr r0, [pc, #48] ; (8003878 ) + 8003846: f002 fc67 bl 8006118 + 800384a: 4603 mov r3, r0 + 800384c: 2b00 cmp r3, #0 + 800384e: d10e bne.n 800386e { if (HAL_DMA2D_Start(&hDma2dHandler, ColorIndex, (uint32_t)pDst, xSize, ySize) == HAL_OK) - 800384c: 68ba ldr r2, [r7, #8] - 800384e: 683b ldr r3, [r7, #0] - 8003850: 9300 str r3, [sp, #0] - 8003852: 687b ldr r3, [r7, #4] - 8003854: 69f9 ldr r1, [r7, #28] - 8003856: 4807 ldr r0, [pc, #28] ; (8003874 ) - 8003858: f002 fb48 bl 8005eec - 800385c: 4603 mov r3, r0 - 800385e: 2b00 cmp r3, #0 - 8003860: d103 bne.n 800386a + 8003850: 68ba ldr r2, [r7, #8] + 8003852: 683b ldr r3, [r7, #0] + 8003854: 9300 str r3, [sp, #0] + 8003856: 687b ldr r3, [r7, #4] + 8003858: 69f9 ldr r1, [r7, #28] + 800385a: 4807 ldr r0, [pc, #28] ; (8003878 ) + 800385c: f002 fb48 bl 8005ef0 + 8003860: 4603 mov r3, r0 + 8003862: 2b00 cmp r3, #0 + 8003864: d103 bne.n 800386e { /* Polling For DMA transfer */ HAL_DMA2D_PollForTransfer(&hDma2dHandler, 10); - 8003862: 210a movs r1, #10 - 8003864: 4803 ldr r0, [pc, #12] ; (8003874 ) - 8003866: f002 fb6c bl 8005f42 + 8003866: 210a movs r1, #10 + 8003868: 4803 ldr r0, [pc, #12] ; (8003878 ) + 800386a: f002 fb6c bl 8005f46 } } } } - 800386a: bf00 nop - 800386c: 3710 adds r7, #16 - 800386e: 46bd mov sp, r7 - 8003870: bd80 pop {r7, pc} - 8003872: bf00 nop - 8003874: 200003d0 .word 0x200003d0 - 8003878: 20000410 .word 0x20000410 - 800387c: 20008e64 .word 0x20008e64 - 8003880: 4002b000 .word 0x4002b000 - -08003884 : + 800386e: bf00 nop + 8003870: 3710 adds r7, #16 + 8003872: 46bd mov sp, r7 + 8003874: bd80 pop {r7, pc} + 8003876: bf00 nop + 8003878: 200003d0 .word 0x200003d0 + 800387c: 20000410 .word 0x20000410 + 8003880: 20008e64 .word 0x20008e64 + 8003884: 4002b000 .word 0x4002b000 + +08003888 : /** * @brief Initializes the SDRAM device. * @retval SDRAM status */ uint8_t BSP_SDRAM_Init(void) { - 8003884: b580 push {r7, lr} - 8003886: af00 add r7, sp, #0 + 8003888: b580 push {r7, lr} + 800388a: af00 add r7, sp, #0 static uint8_t sdramstatus = SDRAM_ERROR; /* SDRAM device configuration */ sdramHandle.Instance = FMC_SDRAM_DEVICE; - 8003888: 4b29 ldr r3, [pc, #164] ; (8003930 ) - 800388a: 4a2a ldr r2, [pc, #168] ; (8003934 ) - 800388c: 601a str r2, [r3, #0] + 800388c: 4b29 ldr r3, [pc, #164] ; (8003934 ) + 800388e: 4a2a ldr r2, [pc, #168] ; (8003938 ) + 8003890: 601a str r2, [r3, #0] /* Timing configuration for 100Mhz as SD clock frequency (System clock is up to 200Mhz) */ Timing.LoadToActiveDelay = 2; - 800388e: 4b2a ldr r3, [pc, #168] ; (8003938 ) - 8003890: 2202 movs r2, #2 - 8003892: 601a str r2, [r3, #0] + 8003892: 4b2a ldr r3, [pc, #168] ; (800393c ) + 8003894: 2202 movs r2, #2 + 8003896: 601a str r2, [r3, #0] Timing.ExitSelfRefreshDelay = 7; - 8003894: 4b28 ldr r3, [pc, #160] ; (8003938 ) - 8003896: 2207 movs r2, #7 - 8003898: 605a str r2, [r3, #4] + 8003898: 4b28 ldr r3, [pc, #160] ; (800393c ) + 800389a: 2207 movs r2, #7 + 800389c: 605a str r2, [r3, #4] Timing.SelfRefreshTime = 4; - 800389a: 4b27 ldr r3, [pc, #156] ; (8003938 ) - 800389c: 2204 movs r2, #4 - 800389e: 609a str r2, [r3, #8] + 800389e: 4b27 ldr r3, [pc, #156] ; (800393c ) + 80038a0: 2204 movs r2, #4 + 80038a2: 609a str r2, [r3, #8] Timing.RowCycleDelay = 7; - 80038a0: 4b25 ldr r3, [pc, #148] ; (8003938 ) - 80038a2: 2207 movs r2, #7 - 80038a4: 60da str r2, [r3, #12] + 80038a4: 4b25 ldr r3, [pc, #148] ; (800393c ) + 80038a6: 2207 movs r2, #7 + 80038a8: 60da str r2, [r3, #12] Timing.WriteRecoveryTime = 2; - 80038a6: 4b24 ldr r3, [pc, #144] ; (8003938 ) - 80038a8: 2202 movs r2, #2 - 80038aa: 611a str r2, [r3, #16] + 80038aa: 4b24 ldr r3, [pc, #144] ; (800393c ) + 80038ac: 2202 movs r2, #2 + 80038ae: 611a str r2, [r3, #16] Timing.RPDelay = 2; - 80038ac: 4b22 ldr r3, [pc, #136] ; (8003938 ) - 80038ae: 2202 movs r2, #2 - 80038b0: 615a str r2, [r3, #20] + 80038b0: 4b22 ldr r3, [pc, #136] ; (800393c ) + 80038b2: 2202 movs r2, #2 + 80038b4: 615a str r2, [r3, #20] Timing.RCDDelay = 2; - 80038b2: 4b21 ldr r3, [pc, #132] ; (8003938 ) - 80038b4: 2202 movs r2, #2 - 80038b6: 619a str r2, [r3, #24] + 80038b6: 4b21 ldr r3, [pc, #132] ; (800393c ) + 80038b8: 2202 movs r2, #2 + 80038ba: 619a str r2, [r3, #24] sdramHandle.Init.SDBank = FMC_SDRAM_BANK1; - 80038b8: 4b1d ldr r3, [pc, #116] ; (8003930 ) - 80038ba: 2200 movs r2, #0 - 80038bc: 605a str r2, [r3, #4] + 80038bc: 4b1d ldr r3, [pc, #116] ; (8003934 ) + 80038be: 2200 movs r2, #0 + 80038c0: 605a str r2, [r3, #4] sdramHandle.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_8; - 80038be: 4b1c ldr r3, [pc, #112] ; (8003930 ) - 80038c0: 2200 movs r2, #0 - 80038c2: 609a str r2, [r3, #8] + 80038c2: 4b1c ldr r3, [pc, #112] ; (8003934 ) + 80038c4: 2200 movs r2, #0 + 80038c6: 609a str r2, [r3, #8] sdramHandle.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_12; - 80038c4: 4b1a ldr r3, [pc, #104] ; (8003930 ) - 80038c6: 2204 movs r2, #4 - 80038c8: 60da str r2, [r3, #12] + 80038c8: 4b1a ldr r3, [pc, #104] ; (8003934 ) + 80038ca: 2204 movs r2, #4 + 80038cc: 60da str r2, [r3, #12] sdramHandle.Init.MemoryDataWidth = SDRAM_MEMORY_WIDTH; - 80038ca: 4b19 ldr r3, [pc, #100] ; (8003930 ) - 80038cc: 2210 movs r2, #16 - 80038ce: 611a str r2, [r3, #16] + 80038ce: 4b19 ldr r3, [pc, #100] ; (8003934 ) + 80038d0: 2210 movs r2, #16 + 80038d2: 611a str r2, [r3, #16] sdramHandle.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4; - 80038d0: 4b17 ldr r3, [pc, #92] ; (8003930 ) - 80038d2: 2240 movs r2, #64 ; 0x40 - 80038d4: 615a str r2, [r3, #20] + 80038d4: 4b17 ldr r3, [pc, #92] ; (8003934 ) + 80038d6: 2240 movs r2, #64 ; 0x40 + 80038d8: 615a str r2, [r3, #20] sdramHandle.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_2; - 80038d6: 4b16 ldr r3, [pc, #88] ; (8003930 ) - 80038d8: f44f 7280 mov.w r2, #256 ; 0x100 - 80038dc: 619a str r2, [r3, #24] + 80038da: 4b16 ldr r3, [pc, #88] ; (8003934 ) + 80038dc: f44f 7280 mov.w r2, #256 ; 0x100 + 80038e0: 619a str r2, [r3, #24] sdramHandle.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE; - 80038de: 4b14 ldr r3, [pc, #80] ; (8003930 ) - 80038e0: 2200 movs r2, #0 - 80038e2: 61da str r2, [r3, #28] + 80038e2: 4b14 ldr r3, [pc, #80] ; (8003934 ) + 80038e4: 2200 movs r2, #0 + 80038e6: 61da str r2, [r3, #28] sdramHandle.Init.SDClockPeriod = SDCLOCK_PERIOD; - 80038e4: 4b12 ldr r3, [pc, #72] ; (8003930 ) - 80038e6: f44f 6200 mov.w r2, #2048 ; 0x800 - 80038ea: 621a str r2, [r3, #32] + 80038e8: 4b12 ldr r3, [pc, #72] ; (8003934 ) + 80038ea: f44f 6200 mov.w r2, #2048 ; 0x800 + 80038ee: 621a str r2, [r3, #32] sdramHandle.Init.ReadBurst = FMC_SDRAM_RBURST_ENABLE; - 80038ec: 4b10 ldr r3, [pc, #64] ; (8003930 ) - 80038ee: f44f 5280 mov.w r2, #4096 ; 0x1000 - 80038f2: 625a str r2, [r3, #36] ; 0x24 + 80038f0: 4b10 ldr r3, [pc, #64] ; (8003934 ) + 80038f2: f44f 5280 mov.w r2, #4096 ; 0x1000 + 80038f6: 625a str r2, [r3, #36] ; 0x24 sdramHandle.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_0; - 80038f4: 4b0e ldr r3, [pc, #56] ; (8003930 ) - 80038f6: 2200 movs r2, #0 - 80038f8: 629a str r2, [r3, #40] ; 0x28 + 80038f8: 4b0e ldr r3, [pc, #56] ; (8003934 ) + 80038fa: 2200 movs r2, #0 + 80038fc: 629a str r2, [r3, #40] ; 0x28 /* SDRAM controller initialization */ BSP_SDRAM_MspInit(&sdramHandle, NULL); /* __weak function can be rewritten by the application */ - 80038fa: 2100 movs r1, #0 - 80038fc: 480c ldr r0, [pc, #48] ; (8003930 ) - 80038fe: f000 f87f bl 8003a00 + 80038fe: 2100 movs r1, #0 + 8003900: 480c ldr r0, [pc, #48] ; (8003934 ) + 8003902: f000 f87f bl 8003a04 if(HAL_SDRAM_Init(&sdramHandle, &Timing) != HAL_OK) - 8003902: 490d ldr r1, [pc, #52] ; (8003938 ) - 8003904: 480a ldr r0, [pc, #40] ; (8003930 ) - 8003906: f006 ffa9 bl 800a85c - 800390a: 4603 mov r3, r0 - 800390c: 2b00 cmp r3, #0 - 800390e: d003 beq.n 8003918 + 8003906: 490d ldr r1, [pc, #52] ; (800393c ) + 8003908: 480a ldr r0, [pc, #40] ; (8003934 ) + 800390a: f006 ffa9 bl 800a860 + 800390e: 4603 mov r3, r0 + 8003910: 2b00 cmp r3, #0 + 8003912: d003 beq.n 800391c { sdramstatus = SDRAM_ERROR; - 8003910: 4b0a ldr r3, [pc, #40] ; (800393c ) - 8003912: 2201 movs r2, #1 - 8003914: 701a strb r2, [r3, #0] - 8003916: e002 b.n 800391e + 8003914: 4b0a ldr r3, [pc, #40] ; (8003940 ) + 8003916: 2201 movs r2, #1 + 8003918: 701a strb r2, [r3, #0] + 800391a: e002 b.n 8003922 } else { sdramstatus = SDRAM_OK; - 8003918: 4b08 ldr r3, [pc, #32] ; (800393c ) - 800391a: 2200 movs r2, #0 - 800391c: 701a strb r2, [r3, #0] + 800391c: 4b08 ldr r3, [pc, #32] ; (8003940 ) + 800391e: 2200 movs r2, #0 + 8003920: 701a strb r2, [r3, #0] } /* SDRAM initialization sequence */ BSP_SDRAM_Initialization_sequence(REFRESH_COUNT); - 800391e: f240 6003 movw r0, #1539 ; 0x603 - 8003922: f000 f80d bl 8003940 + 8003922: f240 6003 movw r0, #1539 ; 0x603 + 8003926: f000 f80d bl 8003944 return sdramstatus; - 8003926: 4b05 ldr r3, [pc, #20] ; (800393c ) - 8003928: 781b ldrb r3, [r3, #0] -} - 800392a: 4618 mov r0, r3 - 800392c: bd80 pop {r7, pc} - 800392e: bf00 nop - 8003930: 20008f0c .word 0x20008f0c - 8003934: a0000140 .word 0xa0000140 - 8003938: 200004b0 .word 0x200004b0 - 800393c: 20000054 .word 0x20000054 - -08003940 : + 800392a: 4b05 ldr r3, [pc, #20] ; (8003940 ) + 800392c: 781b ldrb r3, [r3, #0] +} + 800392e: 4618 mov r0, r3 + 8003930: bd80 pop {r7, pc} + 8003932: bf00 nop + 8003934: 20008f0c .word 0x20008f0c + 8003938: a0000140 .word 0xa0000140 + 800393c: 200004b0 .word 0x200004b0 + 8003940: 20000054 .word 0x20000054 + +08003944 : * @brief Programs the SDRAM device. * @param RefreshCount: SDRAM refresh counter value * @retval None */ void BSP_SDRAM_Initialization_sequence(uint32_t RefreshCount) { - 8003940: b580 push {r7, lr} - 8003942: b084 sub sp, #16 - 8003944: af00 add r7, sp, #0 - 8003946: 6078 str r0, [r7, #4] + 8003944: b580 push {r7, lr} + 8003946: b084 sub sp, #16 + 8003948: af00 add r7, sp, #0 + 800394a: 6078 str r0, [r7, #4] __IO uint32_t tmpmrd = 0; - 8003948: 2300 movs r3, #0 - 800394a: 60fb str r3, [r7, #12] + 800394c: 2300 movs r3, #0 + 800394e: 60fb str r3, [r7, #12] /* Step 1: Configure a clock configuration enable command */ Command.CommandMode = FMC_SDRAM_CMD_CLK_ENABLE; - 800394c: 4b2a ldr r3, [pc, #168] ; (80039f8 ) - 800394e: 2201 movs r2, #1 - 8003950: 601a str r2, [r3, #0] + 8003950: 4b2a ldr r3, [pc, #168] ; (80039fc ) + 8003952: 2201 movs r2, #1 + 8003954: 601a str r2, [r3, #0] Command.CommandTarget = FMC_SDRAM_CMD_TARGET_BANK1; - 8003952: 4b29 ldr r3, [pc, #164] ; (80039f8 ) - 8003954: 2210 movs r2, #16 - 8003956: 605a str r2, [r3, #4] + 8003956: 4b29 ldr r3, [pc, #164] ; (80039fc ) + 8003958: 2210 movs r2, #16 + 800395a: 605a str r2, [r3, #4] Command.AutoRefreshNumber = 1; - 8003958: 4b27 ldr r3, [pc, #156] ; (80039f8 ) - 800395a: 2201 movs r2, #1 - 800395c: 609a str r2, [r3, #8] + 800395c: 4b27 ldr r3, [pc, #156] ; (80039fc ) + 800395e: 2201 movs r2, #1 + 8003960: 609a str r2, [r3, #8] Command.ModeRegisterDefinition = 0; - 800395e: 4b26 ldr r3, [pc, #152] ; (80039f8 ) - 8003960: 2200 movs r2, #0 - 8003962: 60da str r2, [r3, #12] + 8003962: 4b26 ldr r3, [pc, #152] ; (80039fc ) + 8003964: 2200 movs r2, #0 + 8003966: 60da str r2, [r3, #12] /* Send the command */ HAL_SDRAM_SendCommand(&sdramHandle, &Command, SDRAM_TIMEOUT); - 8003964: f64f 72ff movw r2, #65535 ; 0xffff - 8003968: 4923 ldr r1, [pc, #140] ; (80039f8 ) - 800396a: 4824 ldr r0, [pc, #144] ; (80039fc ) - 800396c: f006 ffaa bl 800a8c4 + 8003968: f64f 72ff movw r2, #65535 ; 0xffff + 800396c: 4923 ldr r1, [pc, #140] ; (80039fc ) + 800396e: 4824 ldr r0, [pc, #144] ; (8003a00 ) + 8003970: f006 ffaa bl 800a8c8 /* Step 2: Insert 100 us minimum delay */ /* Inserted delay is equal to 1 ms due to systick time base unit (ms) */ HAL_Delay(1); - 8003970: 2001 movs r0, #1 - 8003972: f001 fab1 bl 8004ed8 + 8003974: 2001 movs r0, #1 + 8003976: f001 fab1 bl 8004edc /* Step 3: Configure a PALL (precharge all) command */ Command.CommandMode = FMC_SDRAM_CMD_PALL; - 8003976: 4b20 ldr r3, [pc, #128] ; (80039f8 ) - 8003978: 2202 movs r2, #2 - 800397a: 601a str r2, [r3, #0] + 800397a: 4b20 ldr r3, [pc, #128] ; (80039fc ) + 800397c: 2202 movs r2, #2 + 800397e: 601a str r2, [r3, #0] Command.CommandTarget = FMC_SDRAM_CMD_TARGET_BANK1; - 800397c: 4b1e ldr r3, [pc, #120] ; (80039f8 ) - 800397e: 2210 movs r2, #16 - 8003980: 605a str r2, [r3, #4] + 8003980: 4b1e ldr r3, [pc, #120] ; (80039fc ) + 8003982: 2210 movs r2, #16 + 8003984: 605a str r2, [r3, #4] Command.AutoRefreshNumber = 1; - 8003982: 4b1d ldr r3, [pc, #116] ; (80039f8 ) - 8003984: 2201 movs r2, #1 - 8003986: 609a str r2, [r3, #8] + 8003986: 4b1d ldr r3, [pc, #116] ; (80039fc ) + 8003988: 2201 movs r2, #1 + 800398a: 609a str r2, [r3, #8] Command.ModeRegisterDefinition = 0; - 8003988: 4b1b ldr r3, [pc, #108] ; (80039f8 ) - 800398a: 2200 movs r2, #0 - 800398c: 60da str r2, [r3, #12] + 800398c: 4b1b ldr r3, [pc, #108] ; (80039fc ) + 800398e: 2200 movs r2, #0 + 8003990: 60da str r2, [r3, #12] /* Send the command */ HAL_SDRAM_SendCommand(&sdramHandle, &Command, SDRAM_TIMEOUT); - 800398e: f64f 72ff movw r2, #65535 ; 0xffff - 8003992: 4919 ldr r1, [pc, #100] ; (80039f8 ) - 8003994: 4819 ldr r0, [pc, #100] ; (80039fc ) - 8003996: f006 ff95 bl 800a8c4 + 8003992: f64f 72ff movw r2, #65535 ; 0xffff + 8003996: 4919 ldr r1, [pc, #100] ; (80039fc ) + 8003998: 4819 ldr r0, [pc, #100] ; (8003a00 ) + 800399a: f006 ff95 bl 800a8c8 /* Step 4: Configure an Auto Refresh command */ Command.CommandMode = FMC_SDRAM_CMD_AUTOREFRESH_MODE; - 800399a: 4b17 ldr r3, [pc, #92] ; (80039f8 ) - 800399c: 2203 movs r2, #3 - 800399e: 601a str r2, [r3, #0] + 800399e: 4b17 ldr r3, [pc, #92] ; (80039fc ) + 80039a0: 2203 movs r2, #3 + 80039a2: 601a str r2, [r3, #0] Command.CommandTarget = FMC_SDRAM_CMD_TARGET_BANK1; - 80039a0: 4b15 ldr r3, [pc, #84] ; (80039f8 ) - 80039a2: 2210 movs r2, #16 - 80039a4: 605a str r2, [r3, #4] + 80039a4: 4b15 ldr r3, [pc, #84] ; (80039fc ) + 80039a6: 2210 movs r2, #16 + 80039a8: 605a str r2, [r3, #4] Command.AutoRefreshNumber = 8; - 80039a6: 4b14 ldr r3, [pc, #80] ; (80039f8 ) - 80039a8: 2208 movs r2, #8 - 80039aa: 609a str r2, [r3, #8] + 80039aa: 4b14 ldr r3, [pc, #80] ; (80039fc ) + 80039ac: 2208 movs r2, #8 + 80039ae: 609a str r2, [r3, #8] Command.ModeRegisterDefinition = 0; - 80039ac: 4b12 ldr r3, [pc, #72] ; (80039f8 ) - 80039ae: 2200 movs r2, #0 - 80039b0: 60da str r2, [r3, #12] + 80039b0: 4b12 ldr r3, [pc, #72] ; (80039fc ) + 80039b2: 2200 movs r2, #0 + 80039b4: 60da str r2, [r3, #12] /* Send the command */ HAL_SDRAM_SendCommand(&sdramHandle, &Command, SDRAM_TIMEOUT); - 80039b2: f64f 72ff movw r2, #65535 ; 0xffff - 80039b6: 4910 ldr r1, [pc, #64] ; (80039f8 ) - 80039b8: 4810 ldr r0, [pc, #64] ; (80039fc ) - 80039ba: f006 ff83 bl 800a8c4 + 80039b6: f64f 72ff movw r2, #65535 ; 0xffff + 80039ba: 4910 ldr r1, [pc, #64] ; (80039fc ) + 80039bc: 4810 ldr r0, [pc, #64] ; (8003a00 ) + 80039be: f006 ff83 bl 800a8c8 /* Step 5: Program the external memory mode register */ tmpmrd = (uint32_t)SDRAM_MODEREG_BURST_LENGTH_1 |\ - 80039be: f44f 7308 mov.w r3, #544 ; 0x220 - 80039c2: 60fb str r3, [r7, #12] + 80039c2: f44f 7308 mov.w r3, #544 ; 0x220 + 80039c6: 60fb str r3, [r7, #12] SDRAM_MODEREG_BURST_TYPE_SEQUENTIAL |\ SDRAM_MODEREG_CAS_LATENCY_2 |\ SDRAM_MODEREG_OPERATING_MODE_STANDARD |\ SDRAM_MODEREG_WRITEBURST_MODE_SINGLE; Command.CommandMode = FMC_SDRAM_CMD_LOAD_MODE; - 80039c4: 4b0c ldr r3, [pc, #48] ; (80039f8 ) - 80039c6: 2204 movs r2, #4 - 80039c8: 601a str r2, [r3, #0] + 80039c8: 4b0c ldr r3, [pc, #48] ; (80039fc ) + 80039ca: 2204 movs r2, #4 + 80039cc: 601a str r2, [r3, #0] Command.CommandTarget = FMC_SDRAM_CMD_TARGET_BANK1; - 80039ca: 4b0b ldr r3, [pc, #44] ; (80039f8 ) - 80039cc: 2210 movs r2, #16 - 80039ce: 605a str r2, [r3, #4] + 80039ce: 4b0b ldr r3, [pc, #44] ; (80039fc ) + 80039d0: 2210 movs r2, #16 + 80039d2: 605a str r2, [r3, #4] Command.AutoRefreshNumber = 1; - 80039d0: 4b09 ldr r3, [pc, #36] ; (80039f8 ) - 80039d2: 2201 movs r2, #1 - 80039d4: 609a str r2, [r3, #8] + 80039d4: 4b09 ldr r3, [pc, #36] ; (80039fc ) + 80039d6: 2201 movs r2, #1 + 80039d8: 609a str r2, [r3, #8] Command.ModeRegisterDefinition = tmpmrd; - 80039d6: 68fb ldr r3, [r7, #12] - 80039d8: 4a07 ldr r2, [pc, #28] ; (80039f8 ) - 80039da: 60d3 str r3, [r2, #12] + 80039da: 68fb ldr r3, [r7, #12] + 80039dc: 4a07 ldr r2, [pc, #28] ; (80039fc ) + 80039de: 60d3 str r3, [r2, #12] /* Send the command */ HAL_SDRAM_SendCommand(&sdramHandle, &Command, SDRAM_TIMEOUT); - 80039dc: f64f 72ff movw r2, #65535 ; 0xffff - 80039e0: 4905 ldr r1, [pc, #20] ; (80039f8 ) - 80039e2: 4806 ldr r0, [pc, #24] ; (80039fc ) - 80039e4: f006 ff6e bl 800a8c4 + 80039e0: f64f 72ff movw r2, #65535 ; 0xffff + 80039e4: 4905 ldr r1, [pc, #20] ; (80039fc ) + 80039e6: 4806 ldr r0, [pc, #24] ; (8003a00 ) + 80039e8: f006 ff6e bl 800a8c8 /* Step 6: Set the refresh rate counter */ /* Set the device refresh rate */ HAL_SDRAM_ProgramRefreshRate(&sdramHandle, RefreshCount); - 80039e8: 6879 ldr r1, [r7, #4] - 80039ea: 4804 ldr r0, [pc, #16] ; (80039fc ) - 80039ec: f006 ff95 bl 800a91a -} - 80039f0: bf00 nop - 80039f2: 3710 adds r7, #16 - 80039f4: 46bd mov sp, r7 - 80039f6: bd80 pop {r7, pc} - 80039f8: 200004cc .word 0x200004cc - 80039fc: 20008f0c .word 0x20008f0c - -08003a00 : + 80039ec: 6879 ldr r1, [r7, #4] + 80039ee: 4804 ldr r0, [pc, #16] ; (8003a00 ) + 80039f0: f006 ff95 bl 800a91e +} + 80039f4: bf00 nop + 80039f6: 3710 adds r7, #16 + 80039f8: 46bd mov sp, r7 + 80039fa: bd80 pop {r7, pc} + 80039fc: 200004cc .word 0x200004cc + 8003a00: 20008f0c .word 0x20008f0c + +08003a04 : * @param hsdram: SDRAM handle * @param Params * @retval None */ __weak void BSP_SDRAM_MspInit(SDRAM_HandleTypeDef *hsdram, void *Params) { - 8003a00: b580 push {r7, lr} - 8003a02: b090 sub sp, #64 ; 0x40 - 8003a04: af00 add r7, sp, #0 - 8003a06: 6078 str r0, [r7, #4] - 8003a08: 6039 str r1, [r7, #0] + 8003a04: b580 push {r7, lr} + 8003a06: b090 sub sp, #64 ; 0x40 + 8003a08: af00 add r7, sp, #0 + 8003a0a: 6078 str r0, [r7, #4] + 8003a0c: 6039 str r1, [r7, #0] static DMA_HandleTypeDef dma_handle; GPIO_InitTypeDef gpio_init_structure; /* Enable FMC clock */ __HAL_RCC_FMC_CLK_ENABLE(); - 8003a0a: 4b70 ldr r3, [pc, #448] ; (8003bcc ) - 8003a0c: 6b9b ldr r3, [r3, #56] ; 0x38 - 8003a0e: 4a6f ldr r2, [pc, #444] ; (8003bcc ) - 8003a10: f043 0301 orr.w r3, r3, #1 - 8003a14: 6393 str r3, [r2, #56] ; 0x38 - 8003a16: 4b6d ldr r3, [pc, #436] ; (8003bcc ) - 8003a18: 6b9b ldr r3, [r3, #56] ; 0x38 - 8003a1a: f003 0301 and.w r3, r3, #1 - 8003a1e: 62bb str r3, [r7, #40] ; 0x28 - 8003a20: 6abb ldr r3, [r7, #40] ; 0x28 + 8003a0e: 4b70 ldr r3, [pc, #448] ; (8003bd0 ) + 8003a10: 6b9b ldr r3, [r3, #56] ; 0x38 + 8003a12: 4a6f ldr r2, [pc, #444] ; (8003bd0 ) + 8003a14: f043 0301 orr.w r3, r3, #1 + 8003a18: 6393 str r3, [r2, #56] ; 0x38 + 8003a1a: 4b6d ldr r3, [pc, #436] ; (8003bd0 ) + 8003a1c: 6b9b ldr r3, [r3, #56] ; 0x38 + 8003a1e: f003 0301 and.w r3, r3, #1 + 8003a22: 62bb str r3, [r7, #40] ; 0x28 + 8003a24: 6abb ldr r3, [r7, #40] ; 0x28 /* Enable chosen DMAx clock */ __DMAx_CLK_ENABLE(); - 8003a22: 4b6a ldr r3, [pc, #424] ; (8003bcc ) - 8003a24: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a26: 4a69 ldr r2, [pc, #420] ; (8003bcc ) - 8003a28: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 - 8003a2c: 6313 str r3, [r2, #48] ; 0x30 - 8003a2e: 4b67 ldr r3, [pc, #412] ; (8003bcc ) - 8003a30: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a32: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 8003a36: 627b str r3, [r7, #36] ; 0x24 - 8003a38: 6a7b ldr r3, [r7, #36] ; 0x24 + 8003a26: 4b6a ldr r3, [pc, #424] ; (8003bd0 ) + 8003a28: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a2a: 4a69 ldr r2, [pc, #420] ; (8003bd0 ) + 8003a2c: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 + 8003a30: 6313 str r3, [r2, #48] ; 0x30 + 8003a32: 4b67 ldr r3, [pc, #412] ; (8003bd0 ) + 8003a34: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a36: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 8003a3a: 627b str r3, [r7, #36] ; 0x24 + 8003a3c: 6a7b ldr r3, [r7, #36] ; 0x24 /* Enable GPIOs clock */ __HAL_RCC_GPIOC_CLK_ENABLE(); - 8003a3a: 4b64 ldr r3, [pc, #400] ; (8003bcc ) - 8003a3c: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a3e: 4a63 ldr r2, [pc, #396] ; (8003bcc ) - 8003a40: f043 0304 orr.w r3, r3, #4 - 8003a44: 6313 str r3, [r2, #48] ; 0x30 - 8003a46: 4b61 ldr r3, [pc, #388] ; (8003bcc ) - 8003a48: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a4a: f003 0304 and.w r3, r3, #4 - 8003a4e: 623b str r3, [r7, #32] - 8003a50: 6a3b ldr r3, [r7, #32] + 8003a3e: 4b64 ldr r3, [pc, #400] ; (8003bd0 ) + 8003a40: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a42: 4a63 ldr r2, [pc, #396] ; (8003bd0 ) + 8003a44: f043 0304 orr.w r3, r3, #4 + 8003a48: 6313 str r3, [r2, #48] ; 0x30 + 8003a4a: 4b61 ldr r3, [pc, #388] ; (8003bd0 ) + 8003a4c: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a4e: f003 0304 and.w r3, r3, #4 + 8003a52: 623b str r3, [r7, #32] + 8003a54: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOD_CLK_ENABLE(); - 8003a52: 4b5e ldr r3, [pc, #376] ; (8003bcc ) - 8003a54: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a56: 4a5d ldr r2, [pc, #372] ; (8003bcc ) - 8003a58: f043 0308 orr.w r3, r3, #8 - 8003a5c: 6313 str r3, [r2, #48] ; 0x30 - 8003a5e: 4b5b ldr r3, [pc, #364] ; (8003bcc ) - 8003a60: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a62: f003 0308 and.w r3, r3, #8 - 8003a66: 61fb str r3, [r7, #28] - 8003a68: 69fb ldr r3, [r7, #28] + 8003a56: 4b5e ldr r3, [pc, #376] ; (8003bd0 ) + 8003a58: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a5a: 4a5d ldr r2, [pc, #372] ; (8003bd0 ) + 8003a5c: f043 0308 orr.w r3, r3, #8 + 8003a60: 6313 str r3, [r2, #48] ; 0x30 + 8003a62: 4b5b ldr r3, [pc, #364] ; (8003bd0 ) + 8003a64: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a66: f003 0308 and.w r3, r3, #8 + 8003a6a: 61fb str r3, [r7, #28] + 8003a6c: 69fb ldr r3, [r7, #28] __HAL_RCC_GPIOE_CLK_ENABLE(); - 8003a6a: 4b58 ldr r3, [pc, #352] ; (8003bcc ) - 8003a6c: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a6e: 4a57 ldr r2, [pc, #348] ; (8003bcc ) - 8003a70: f043 0310 orr.w r3, r3, #16 - 8003a74: 6313 str r3, [r2, #48] ; 0x30 - 8003a76: 4b55 ldr r3, [pc, #340] ; (8003bcc ) - 8003a78: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a7a: f003 0310 and.w r3, r3, #16 - 8003a7e: 61bb str r3, [r7, #24] - 8003a80: 69bb ldr r3, [r7, #24] + 8003a6e: 4b58 ldr r3, [pc, #352] ; (8003bd0 ) + 8003a70: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a72: 4a57 ldr r2, [pc, #348] ; (8003bd0 ) + 8003a74: f043 0310 orr.w r3, r3, #16 + 8003a78: 6313 str r3, [r2, #48] ; 0x30 + 8003a7a: 4b55 ldr r3, [pc, #340] ; (8003bd0 ) + 8003a7c: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a7e: f003 0310 and.w r3, r3, #16 + 8003a82: 61bb str r3, [r7, #24] + 8003a84: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOF_CLK_ENABLE(); - 8003a82: 4b52 ldr r3, [pc, #328] ; (8003bcc ) - 8003a84: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a86: 4a51 ldr r2, [pc, #324] ; (8003bcc ) - 8003a88: f043 0320 orr.w r3, r3, #32 - 8003a8c: 6313 str r3, [r2, #48] ; 0x30 - 8003a8e: 4b4f ldr r3, [pc, #316] ; (8003bcc ) - 8003a90: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a92: f003 0320 and.w r3, r3, #32 - 8003a96: 617b str r3, [r7, #20] - 8003a98: 697b ldr r3, [r7, #20] + 8003a86: 4b52 ldr r3, [pc, #328] ; (8003bd0 ) + 8003a88: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a8a: 4a51 ldr r2, [pc, #324] ; (8003bd0 ) + 8003a8c: f043 0320 orr.w r3, r3, #32 + 8003a90: 6313 str r3, [r2, #48] ; 0x30 + 8003a92: 4b4f ldr r3, [pc, #316] ; (8003bd0 ) + 8003a94: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003a96: f003 0320 and.w r3, r3, #32 + 8003a9a: 617b str r3, [r7, #20] + 8003a9c: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOG_CLK_ENABLE(); - 8003a9a: 4b4c ldr r3, [pc, #304] ; (8003bcc ) - 8003a9c: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003a9e: 4a4b ldr r2, [pc, #300] ; (8003bcc ) - 8003aa0: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8003aa4: 6313 str r3, [r2, #48] ; 0x30 - 8003aa6: 4b49 ldr r3, [pc, #292] ; (8003bcc ) - 8003aa8: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003aaa: f003 0340 and.w r3, r3, #64 ; 0x40 - 8003aae: 613b str r3, [r7, #16] - 8003ab0: 693b ldr r3, [r7, #16] + 8003a9e: 4b4c ldr r3, [pc, #304] ; (8003bd0 ) + 8003aa0: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003aa2: 4a4b ldr r2, [pc, #300] ; (8003bd0 ) + 8003aa4: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8003aa8: 6313 str r3, [r2, #48] ; 0x30 + 8003aaa: 4b49 ldr r3, [pc, #292] ; (8003bd0 ) + 8003aac: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003aae: f003 0340 and.w r3, r3, #64 ; 0x40 + 8003ab2: 613b str r3, [r7, #16] + 8003ab4: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOH_CLK_ENABLE(); - 8003ab2: 4b46 ldr r3, [pc, #280] ; (8003bcc ) - 8003ab4: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003ab6: 4a45 ldr r2, [pc, #276] ; (8003bcc ) - 8003ab8: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8003abc: 6313 str r3, [r2, #48] ; 0x30 - 8003abe: 4b43 ldr r3, [pc, #268] ; (8003bcc ) - 8003ac0: 6b1b ldr r3, [r3, #48] ; 0x30 - 8003ac2: f003 0380 and.w r3, r3, #128 ; 0x80 - 8003ac6: 60fb str r3, [r7, #12] - 8003ac8: 68fb ldr r3, [r7, #12] + 8003ab6: 4b46 ldr r3, [pc, #280] ; (8003bd0 ) + 8003ab8: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003aba: 4a45 ldr r2, [pc, #276] ; (8003bd0 ) + 8003abc: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8003ac0: 6313 str r3, [r2, #48] ; 0x30 + 8003ac2: 4b43 ldr r3, [pc, #268] ; (8003bd0 ) + 8003ac4: 6b1b ldr r3, [r3, #48] ; 0x30 + 8003ac6: f003 0380 and.w r3, r3, #128 ; 0x80 + 8003aca: 60fb str r3, [r7, #12] + 8003acc: 68fb ldr r3, [r7, #12] /* Common GPIO configuration */ gpio_init_structure.Mode = GPIO_MODE_AF_PP; - 8003aca: 2302 movs r3, #2 - 8003acc: 633b str r3, [r7, #48] ; 0x30 + 8003ace: 2302 movs r3, #2 + 8003ad0: 633b str r3, [r7, #48] ; 0x30 gpio_init_structure.Pull = GPIO_PULLUP; - 8003ace: 2301 movs r3, #1 - 8003ad0: 637b str r3, [r7, #52] ; 0x34 + 8003ad2: 2301 movs r3, #1 + 8003ad4: 637b str r3, [r7, #52] ; 0x34 gpio_init_structure.Speed = GPIO_SPEED_FAST; - 8003ad2: 2302 movs r3, #2 - 8003ad4: 63bb str r3, [r7, #56] ; 0x38 + 8003ad6: 2302 movs r3, #2 + 8003ad8: 63bb str r3, [r7, #56] ; 0x38 gpio_init_structure.Alternate = GPIO_AF12_FMC; - 8003ad6: 230c movs r3, #12 - 8003ad8: 63fb str r3, [r7, #60] ; 0x3c + 8003ada: 230c movs r3, #12 + 8003adc: 63fb str r3, [r7, #60] ; 0x3c /* GPIOC configuration */ gpio_init_structure.Pin = GPIO_PIN_3; - 8003ada: 2308 movs r3, #8 - 8003adc: 62fb str r3, [r7, #44] ; 0x2c + 8003ade: 2308 movs r3, #8 + 8003ae0: 62fb str r3, [r7, #44] ; 0x2c HAL_GPIO_Init(GPIOC, &gpio_init_structure); - 8003ade: f107 032c add.w r3, r7, #44 ; 0x2c - 8003ae2: 4619 mov r1, r3 - 8003ae4: 483a ldr r0, [pc, #232] ; (8003bd0 ) - 8003ae6: f003 fdc9 bl 800767c + 8003ae2: f107 032c add.w r3, r7, #44 ; 0x2c + 8003ae6: 4619 mov r1, r3 + 8003ae8: 483a ldr r0, [pc, #232] ; (8003bd4 ) + 8003aea: f003 fdc9 bl 8007680 /* GPIOD configuration */ gpio_init_structure.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_8 | GPIO_PIN_9 | - 8003aea: f24c 7303 movw r3, #50947 ; 0xc703 - 8003aee: 62fb str r3, [r7, #44] ; 0x2c + 8003aee: f24c 7303 movw r3, #50947 ; 0xc703 + 8003af2: 62fb str r3, [r7, #44] ; 0x2c GPIO_PIN_10 | GPIO_PIN_14 | GPIO_PIN_15; HAL_GPIO_Init(GPIOD, &gpio_init_structure); - 8003af0: f107 032c add.w r3, r7, #44 ; 0x2c - 8003af4: 4619 mov r1, r3 - 8003af6: 4837 ldr r0, [pc, #220] ; (8003bd4 ) - 8003af8: f003 fdc0 bl 800767c + 8003af4: f107 032c add.w r3, r7, #44 ; 0x2c + 8003af8: 4619 mov r1, r3 + 8003afa: 4837 ldr r0, [pc, #220] ; (8003bd8 ) + 8003afc: f003 fdc0 bl 8007680 /* GPIOE configuration */ gpio_init_structure.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_7| GPIO_PIN_8 | GPIO_PIN_9 |\ - 8003afc: f64f 7383 movw r3, #65411 ; 0xff83 - 8003b00: 62fb str r3, [r7, #44] ; 0x2c + 8003b00: f64f 7383 movw r3, #65411 ; 0xff83 + 8003b04: 62fb str r3, [r7, #44] ; 0x2c GPIO_PIN_10 | GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 |\ GPIO_PIN_15; HAL_GPIO_Init(GPIOE, &gpio_init_structure); - 8003b02: f107 032c add.w r3, r7, #44 ; 0x2c - 8003b06: 4619 mov r1, r3 - 8003b08: 4833 ldr r0, [pc, #204] ; (8003bd8 ) - 8003b0a: f003 fdb7 bl 800767c + 8003b06: f107 032c add.w r3, r7, #44 ; 0x2c + 8003b0a: 4619 mov r1, r3 + 8003b0c: 4833 ldr r0, [pc, #204] ; (8003bdc ) + 8003b0e: f003 fdb7 bl 8007680 /* GPIOF configuration */ gpio_init_structure.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_2| GPIO_PIN_3 | GPIO_PIN_4 |\ - 8003b0e: f64f 033f movw r3, #63551 ; 0xf83f - 8003b12: 62fb str r3, [r7, #44] ; 0x2c + 8003b12: f64f 033f movw r3, #63551 ; 0xf83f + 8003b16: 62fb str r3, [r7, #44] ; 0x2c GPIO_PIN_5 | GPIO_PIN_11 | GPIO_PIN_12 | GPIO_PIN_13 | GPIO_PIN_14 |\ GPIO_PIN_15; HAL_GPIO_Init(GPIOF, &gpio_init_structure); - 8003b14: f107 032c add.w r3, r7, #44 ; 0x2c - 8003b18: 4619 mov r1, r3 - 8003b1a: 4830 ldr r0, [pc, #192] ; (8003bdc ) - 8003b1c: f003 fdae bl 800767c + 8003b18: f107 032c add.w r3, r7, #44 ; 0x2c + 8003b1c: 4619 mov r1, r3 + 8003b1e: 4830 ldr r0, [pc, #192] ; (8003be0 ) + 8003b20: f003 fdae bl 8007680 /* GPIOG configuration */ gpio_init_structure.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_4| GPIO_PIN_5 | GPIO_PIN_8 |\ - 8003b20: f248 1333 movw r3, #33075 ; 0x8133 - 8003b24: 62fb str r3, [r7, #44] ; 0x2c + 8003b24: f248 1333 movw r3, #33075 ; 0x8133 + 8003b28: 62fb str r3, [r7, #44] ; 0x2c GPIO_PIN_15; HAL_GPIO_Init(GPIOG, &gpio_init_structure); - 8003b26: f107 032c add.w r3, r7, #44 ; 0x2c - 8003b2a: 4619 mov r1, r3 - 8003b2c: 482c ldr r0, [pc, #176] ; (8003be0 ) - 8003b2e: f003 fda5 bl 800767c + 8003b2a: f107 032c add.w r3, r7, #44 ; 0x2c + 8003b2e: 4619 mov r1, r3 + 8003b30: 482c ldr r0, [pc, #176] ; (8003be4 ) + 8003b32: f003 fda5 bl 8007680 /* GPIOH configuration */ gpio_init_structure.Pin = GPIO_PIN_3 | GPIO_PIN_5; - 8003b32: 2328 movs r3, #40 ; 0x28 - 8003b34: 62fb str r3, [r7, #44] ; 0x2c + 8003b36: 2328 movs r3, #40 ; 0x28 + 8003b38: 62fb str r3, [r7, #44] ; 0x2c HAL_GPIO_Init(GPIOH, &gpio_init_structure); - 8003b36: f107 032c add.w r3, r7, #44 ; 0x2c - 8003b3a: 4619 mov r1, r3 - 8003b3c: 4829 ldr r0, [pc, #164] ; (8003be4 ) - 8003b3e: f003 fd9d bl 800767c + 8003b3a: f107 032c add.w r3, r7, #44 ; 0x2c + 8003b3e: 4619 mov r1, r3 + 8003b40: 4829 ldr r0, [pc, #164] ; (8003be8 ) + 8003b42: f003 fd9d bl 8007680 /* Configure common DMA parameters */ dma_handle.Init.Channel = SDRAM_DMAx_CHANNEL; - 8003b42: 4b29 ldr r3, [pc, #164] ; (8003be8 ) - 8003b44: 2200 movs r2, #0 - 8003b46: 605a str r2, [r3, #4] + 8003b46: 4b29 ldr r3, [pc, #164] ; (8003bec ) + 8003b48: 2200 movs r2, #0 + 8003b4a: 605a str r2, [r3, #4] dma_handle.Init.Direction = DMA_MEMORY_TO_MEMORY; - 8003b48: 4b27 ldr r3, [pc, #156] ; (8003be8 ) - 8003b4a: 2280 movs r2, #128 ; 0x80 - 8003b4c: 609a str r2, [r3, #8] + 8003b4c: 4b27 ldr r3, [pc, #156] ; (8003bec ) + 8003b4e: 2280 movs r2, #128 ; 0x80 + 8003b50: 609a str r2, [r3, #8] dma_handle.Init.PeriphInc = DMA_PINC_ENABLE; - 8003b4e: 4b26 ldr r3, [pc, #152] ; (8003be8 ) - 8003b50: f44f 7200 mov.w r2, #512 ; 0x200 - 8003b54: 60da str r2, [r3, #12] + 8003b52: 4b26 ldr r3, [pc, #152] ; (8003bec ) + 8003b54: f44f 7200 mov.w r2, #512 ; 0x200 + 8003b58: 60da str r2, [r3, #12] dma_handle.Init.MemInc = DMA_MINC_ENABLE; - 8003b56: 4b24 ldr r3, [pc, #144] ; (8003be8 ) - 8003b58: f44f 6280 mov.w r2, #1024 ; 0x400 - 8003b5c: 611a str r2, [r3, #16] + 8003b5a: 4b24 ldr r3, [pc, #144] ; (8003bec ) + 8003b5c: f44f 6280 mov.w r2, #1024 ; 0x400 + 8003b60: 611a str r2, [r3, #16] dma_handle.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD; - 8003b5e: 4b22 ldr r3, [pc, #136] ; (8003be8 ) - 8003b60: f44f 5280 mov.w r2, #4096 ; 0x1000 - 8003b64: 615a str r2, [r3, #20] + 8003b62: 4b22 ldr r3, [pc, #136] ; (8003bec ) + 8003b64: f44f 5280 mov.w r2, #4096 ; 0x1000 + 8003b68: 615a str r2, [r3, #20] dma_handle.Init.MemDataAlignment = DMA_MDATAALIGN_WORD; - 8003b66: 4b20 ldr r3, [pc, #128] ; (8003be8 ) - 8003b68: f44f 4280 mov.w r2, #16384 ; 0x4000 - 8003b6c: 619a str r2, [r3, #24] + 8003b6a: 4b20 ldr r3, [pc, #128] ; (8003bec ) + 8003b6c: f44f 4280 mov.w r2, #16384 ; 0x4000 + 8003b70: 619a str r2, [r3, #24] dma_handle.Init.Mode = DMA_NORMAL; - 8003b6e: 4b1e ldr r3, [pc, #120] ; (8003be8 ) - 8003b70: 2200 movs r2, #0 - 8003b72: 61da str r2, [r3, #28] + 8003b72: 4b1e ldr r3, [pc, #120] ; (8003bec ) + 8003b74: 2200 movs r2, #0 + 8003b76: 61da str r2, [r3, #28] dma_handle.Init.Priority = DMA_PRIORITY_HIGH; - 8003b74: 4b1c ldr r3, [pc, #112] ; (8003be8 ) - 8003b76: f44f 3200 mov.w r2, #131072 ; 0x20000 - 8003b7a: 621a str r2, [r3, #32] + 8003b78: 4b1c ldr r3, [pc, #112] ; (8003bec ) + 8003b7a: f44f 3200 mov.w r2, #131072 ; 0x20000 + 8003b7e: 621a str r2, [r3, #32] dma_handle.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8003b7c: 4b1a ldr r3, [pc, #104] ; (8003be8 ) - 8003b7e: 2200 movs r2, #0 - 8003b80: 625a str r2, [r3, #36] ; 0x24 + 8003b80: 4b1a ldr r3, [pc, #104] ; (8003bec ) + 8003b82: 2200 movs r2, #0 + 8003b84: 625a str r2, [r3, #36] ; 0x24 dma_handle.Init.FIFOThreshold = DMA_FIFO_THRESHOLD_FULL; - 8003b82: 4b19 ldr r3, [pc, #100] ; (8003be8 ) - 8003b84: 2203 movs r2, #3 - 8003b86: 629a str r2, [r3, #40] ; 0x28 + 8003b86: 4b19 ldr r3, [pc, #100] ; (8003bec ) + 8003b88: 2203 movs r2, #3 + 8003b8a: 629a str r2, [r3, #40] ; 0x28 dma_handle.Init.MemBurst = DMA_MBURST_SINGLE; - 8003b88: 4b17 ldr r3, [pc, #92] ; (8003be8 ) - 8003b8a: 2200 movs r2, #0 - 8003b8c: 62da str r2, [r3, #44] ; 0x2c + 8003b8c: 4b17 ldr r3, [pc, #92] ; (8003bec ) + 8003b8e: 2200 movs r2, #0 + 8003b90: 62da str r2, [r3, #44] ; 0x2c dma_handle.Init.PeriphBurst = DMA_PBURST_SINGLE; - 8003b8e: 4b16 ldr r3, [pc, #88] ; (8003be8 ) - 8003b90: 2200 movs r2, #0 - 8003b92: 631a str r2, [r3, #48] ; 0x30 + 8003b92: 4b16 ldr r3, [pc, #88] ; (8003bec ) + 8003b94: 2200 movs r2, #0 + 8003b96: 631a str r2, [r3, #48] ; 0x30 dma_handle.Instance = SDRAM_DMAx_STREAM; - 8003b94: 4b14 ldr r3, [pc, #80] ; (8003be8 ) - 8003b96: 4a15 ldr r2, [pc, #84] ; (8003bec ) - 8003b98: 601a str r2, [r3, #0] + 8003b98: 4b14 ldr r3, [pc, #80] ; (8003bec ) + 8003b9a: 4a15 ldr r2, [pc, #84] ; (8003bf0 ) + 8003b9c: 601a str r2, [r3, #0] /* Associate the DMA handle */ __HAL_LINKDMA(hsdram, hdma, dma_handle); - 8003b9a: 687b ldr r3, [r7, #4] - 8003b9c: 4a12 ldr r2, [pc, #72] ; (8003be8 ) - 8003b9e: 631a str r2, [r3, #48] ; 0x30 - 8003ba0: 4a11 ldr r2, [pc, #68] ; (8003be8 ) - 8003ba2: 687b ldr r3, [r7, #4] - 8003ba4: 6393 str r3, [r2, #56] ; 0x38 + 8003b9e: 687b ldr r3, [r7, #4] + 8003ba0: 4a12 ldr r2, [pc, #72] ; (8003bec ) + 8003ba2: 631a str r2, [r3, #48] ; 0x30 + 8003ba4: 4a11 ldr r2, [pc, #68] ; (8003bec ) + 8003ba6: 687b ldr r3, [r7, #4] + 8003ba8: 6393 str r3, [r2, #56] ; 0x38 /* Deinitialize the stream for new transfer */ HAL_DMA_DeInit(&dma_handle); - 8003ba6: 4810 ldr r0, [pc, #64] ; (8003be8 ) - 8003ba8: f002 f848 bl 8005c3c + 8003baa: 4810 ldr r0, [pc, #64] ; (8003bec ) + 8003bac: f002 f848 bl 8005c40 /* Configure the DMA stream */ HAL_DMA_Init(&dma_handle); - 8003bac: 480e ldr r0, [pc, #56] ; (8003be8 ) - 8003bae: f001 ff97 bl 8005ae0 + 8003bb0: 480e ldr r0, [pc, #56] ; (8003bec ) + 8003bb2: f001 ff97 bl 8005ae4 /* NVIC configuration for DMA transfer complete interrupt */ HAL_NVIC_SetPriority(SDRAM_DMAx_IRQn, 0x0F, 0); - 8003bb2: 2200 movs r2, #0 - 8003bb4: 210f movs r1, #15 - 8003bb6: 2038 movs r0, #56 ; 0x38 - 8003bb8: f001 fdb0 bl 800571c + 8003bb6: 2200 movs r2, #0 + 8003bb8: 210f movs r1, #15 + 8003bba: 2038 movs r0, #56 ; 0x38 + 8003bbc: f001 fdb0 bl 8005720 HAL_NVIC_EnableIRQ(SDRAM_DMAx_IRQn); - 8003bbc: 2038 movs r0, #56 ; 0x38 - 8003bbe: f001 fdc9 bl 8005754 -} - 8003bc2: bf00 nop - 8003bc4: 3740 adds r7, #64 ; 0x40 - 8003bc6: 46bd mov sp, r7 - 8003bc8: bd80 pop {r7, pc} - 8003bca: bf00 nop - 8003bcc: 40023800 .word 0x40023800 - 8003bd0: 40020800 .word 0x40020800 - 8003bd4: 40020c00 .word 0x40020c00 - 8003bd8: 40021000 .word 0x40021000 - 8003bdc: 40021400 .word 0x40021400 - 8003be0: 40021800 .word 0x40021800 - 8003be4: 40021c00 .word 0x40021c00 - 8003be8: 200004dc .word 0x200004dc - 8003bec: 40026410 .word 0x40026410 - -08003bf0 : + 8003bc0: 2038 movs r0, #56 ; 0x38 + 8003bc2: f001 fdc9 bl 8005758 +} + 8003bc6: bf00 nop + 8003bc8: 3740 adds r7, #64 ; 0x40 + 8003bca: 46bd mov sp, r7 + 8003bcc: bd80 pop {r7, pc} + 8003bce: bf00 nop + 8003bd0: 40023800 .word 0x40023800 + 8003bd4: 40020800 .word 0x40020800 + 8003bd8: 40020c00 .word 0x40020c00 + 8003bdc: 40021000 .word 0x40021000 + 8003be0: 40021400 .word 0x40021400 + 8003be4: 40021800 .word 0x40021800 + 8003be8: 40021c00 .word 0x40021c00 + 8003bec: 200004dc .word 0x200004dc + 8003bf0: 40026410 .word 0x40026410 + +08003bf4 : * @param ts_SizeX: Maximum X size of the TS area on LCD * @param ts_SizeY: Maximum Y size of the TS area on LCD * @retval TS_OK if all initializations are OK. Other value if error. */ uint8_t BSP_TS_Init(uint16_t ts_SizeX, uint16_t ts_SizeY) { - 8003bf0: b580 push {r7, lr} - 8003bf2: b084 sub sp, #16 - 8003bf4: af00 add r7, sp, #0 - 8003bf6: 4603 mov r3, r0 - 8003bf8: 460a mov r2, r1 - 8003bfa: 80fb strh r3, [r7, #6] - 8003bfc: 4613 mov r3, r2 - 8003bfe: 80bb strh r3, [r7, #4] + 8003bf4: b580 push {r7, lr} + 8003bf6: b084 sub sp, #16 + 8003bf8: af00 add r7, sp, #0 + 8003bfa: 4603 mov r3, r0 + 8003bfc: 460a mov r2, r1 + 8003bfe: 80fb strh r3, [r7, #6] + 8003c00: 4613 mov r3, r2 + 8003c02: 80bb strh r3, [r7, #4] uint8_t status = TS_OK; - 8003c00: 2300 movs r3, #0 - 8003c02: 73fb strb r3, [r7, #15] + 8003c04: 2300 movs r3, #0 + 8003c06: 73fb strb r3, [r7, #15] tsXBoundary = ts_SizeX; - 8003c04: 4a14 ldr r2, [pc, #80] ; (8003c58 ) - 8003c06: 88fb ldrh r3, [r7, #6] - 8003c08: 8013 strh r3, [r2, #0] + 8003c08: 4a14 ldr r2, [pc, #80] ; (8003c5c ) + 8003c0a: 88fb ldrh r3, [r7, #6] + 8003c0c: 8013 strh r3, [r2, #0] tsYBoundary = ts_SizeY; - 8003c0a: 4a14 ldr r2, [pc, #80] ; (8003c5c ) - 8003c0c: 88bb ldrh r3, [r7, #4] - 8003c0e: 8013 strh r3, [r2, #0] + 8003c0e: 4a14 ldr r2, [pc, #80] ; (8003c60 ) + 8003c10: 88bb ldrh r3, [r7, #4] + 8003c12: 8013 strh r3, [r2, #0] /* Read ID and verify if the touch screen driver is ready */ ft5336_ts_drv.Init(TS_I2C_ADDRESS); - 8003c10: 4b13 ldr r3, [pc, #76] ; (8003c60 ) - 8003c12: 681b ldr r3, [r3, #0] - 8003c14: 2070 movs r0, #112 ; 0x70 - 8003c16: 4798 blx r3 + 8003c14: 4b13 ldr r3, [pc, #76] ; (8003c64 ) + 8003c16: 681b ldr r3, [r3, #0] + 8003c18: 2070 movs r0, #112 ; 0x70 + 8003c1a: 4798 blx r3 if(ft5336_ts_drv.ReadID(TS_I2C_ADDRESS) == FT5336_ID_VALUE) - 8003c18: 4b11 ldr r3, [pc, #68] ; (8003c60 ) - 8003c1a: 685b ldr r3, [r3, #4] - 8003c1c: 2070 movs r0, #112 ; 0x70 - 8003c1e: 4798 blx r3 - 8003c20: 4603 mov r3, r0 - 8003c22: 2b51 cmp r3, #81 ; 0x51 - 8003c24: d111 bne.n 8003c4a + 8003c1c: 4b11 ldr r3, [pc, #68] ; (8003c64 ) + 8003c1e: 685b ldr r3, [r3, #4] + 8003c20: 2070 movs r0, #112 ; 0x70 + 8003c22: 4798 blx r3 + 8003c24: 4603 mov r3, r0 + 8003c26: 2b51 cmp r3, #81 ; 0x51 + 8003c28: d111 bne.n 8003c4e { /* Initialize the TS driver structure */ tsDriver = &ft5336_ts_drv; - 8003c26: 4b0f ldr r3, [pc, #60] ; (8003c64 ) - 8003c28: 4a0d ldr r2, [pc, #52] ; (8003c60 ) - 8003c2a: 601a str r2, [r3, #0] + 8003c2a: 4b0f ldr r3, [pc, #60] ; (8003c68 ) + 8003c2c: 4a0d ldr r2, [pc, #52] ; (8003c64 ) + 8003c2e: 601a str r2, [r3, #0] I2cAddress = TS_I2C_ADDRESS; - 8003c2c: 4b0e ldr r3, [pc, #56] ; (8003c68 ) - 8003c2e: 2270 movs r2, #112 ; 0x70 - 8003c30: 701a strb r2, [r3, #0] + 8003c30: 4b0e ldr r3, [pc, #56] ; (8003c6c ) + 8003c32: 2270 movs r2, #112 ; 0x70 + 8003c34: 701a strb r2, [r3, #0] tsOrientation = TS_SWAP_XY; - 8003c32: 4b0e ldr r3, [pc, #56] ; (8003c6c ) - 8003c34: 2208 movs r2, #8 - 8003c36: 701a strb r2, [r3, #0] + 8003c36: 4b0e ldr r3, [pc, #56] ; (8003c70 ) + 8003c38: 2208 movs r2, #8 + 8003c3a: 701a strb r2, [r3, #0] /* Initialize the TS driver */ tsDriver->Start(I2cAddress); - 8003c38: 4b0a ldr r3, [pc, #40] ; (8003c64 ) - 8003c3a: 681b ldr r3, [r3, #0] - 8003c3c: 68db ldr r3, [r3, #12] - 8003c3e: 4a0a ldr r2, [pc, #40] ; (8003c68 ) - 8003c40: 7812 ldrb r2, [r2, #0] - 8003c42: b292 uxth r2, r2 - 8003c44: 4610 mov r0, r2 - 8003c46: 4798 blx r3 - 8003c48: e001 b.n 8003c4e + 8003c3c: 4b0a ldr r3, [pc, #40] ; (8003c68 ) + 8003c3e: 681b ldr r3, [r3, #0] + 8003c40: 68db ldr r3, [r3, #12] + 8003c42: 4a0a ldr r2, [pc, #40] ; (8003c6c ) + 8003c44: 7812 ldrb r2, [r2, #0] + 8003c46: b292 uxth r2, r2 + 8003c48: 4610 mov r0, r2 + 8003c4a: 4798 blx r3 + 8003c4c: e001 b.n 8003c52 } else { status = TS_DEVICE_NOT_FOUND; - 8003c4a: 2303 movs r3, #3 - 8003c4c: 73fb strb r3, [r7, #15] + 8003c4e: 2303 movs r3, #3 + 8003c50: 73fb strb r3, [r7, #15] } return status; - 8003c4e: 7bfb ldrb r3, [r7, #15] -} - 8003c50: 4618 mov r0, r3 - 8003c52: 3710 adds r7, #16 - 8003c54: 46bd mov sp, r7 - 8003c56: bd80 pop {r7, pc} - 8003c58: 20000540 .word 0x20000540 - 8003c5c: 20000542 .word 0x20000542 - 8003c60: 20000000 .word 0x20000000 - 8003c64: 2000053c .word 0x2000053c - 8003c68: 20000545 .word 0x20000545 - 8003c6c: 20000544 .word 0x20000544 - -08003c70 : + 8003c52: 7bfb ldrb r3, [r7, #15] +} + 8003c54: 4618 mov r0, r3 + 8003c56: 3710 adds r7, #16 + 8003c58: 46bd mov sp, r7 + 8003c5a: bd80 pop {r7, pc} + 8003c5c: 20000540 .word 0x20000540 + 8003c60: 20000542 .word 0x20000542 + 8003c64: 20000000 .word 0x20000000 + 8003c68: 2000053c .word 0x2000053c + 8003c6c: 20000545 .word 0x20000545 + 8003c70: 20000544 .word 0x20000544 + +08003c74 : * @brief Returns status and positions of the touch screen. * @param TS_State: Pointer to touch screen current state structure * @retval TS_OK if all initializations are OK. Other value if error. */ uint8_t BSP_TS_GetState(TS_StateTypeDef *TS_State) { - 8003c70: b590 push {r4, r7, lr} - 8003c72: b097 sub sp, #92 ; 0x5c - 8003c74: af02 add r7, sp, #8 - 8003c76: 6078 str r0, [r7, #4] + 8003c74: b590 push {r4, r7, lr} + 8003c76: b097 sub sp, #92 ; 0x5c + 8003c78: af02 add r7, sp, #8 + 8003c7a: 6078 str r0, [r7, #4] static uint32_t _x[TS_MAX_NB_TOUCH] = {0, 0}; static uint32_t _y[TS_MAX_NB_TOUCH] = {0, 0}; uint8_t ts_status = TS_OK; - 8003c78: 2300 movs r3, #0 - 8003c7a: f887 304f strb.w r3, [r7, #79] ; 0x4f + 8003c7c: 2300 movs r3, #0 + 8003c7e: f887 304f strb.w r3, [r7, #79] ; 0x4f uint16_t brute_y[TS_MAX_NB_TOUCH]; uint16_t x_diff; uint16_t y_diff; uint32_t index; #if (TS_MULTI_TOUCH_SUPPORTED == 1) uint32_t weight = 0; - 8003c7e: 2300 movs r3, #0 - 8003c80: 613b str r3, [r7, #16] - uint32_t area = 0; 8003c82: 2300 movs r3, #0 - 8003c84: 60fb str r3, [r7, #12] - uint32_t event = 0; + 8003c84: 613b str r3, [r7, #16] + uint32_t area = 0; 8003c86: 2300 movs r3, #0 - 8003c88: 60bb str r3, [r7, #8] + 8003c88: 60fb str r3, [r7, #12] + uint32_t event = 0; + 8003c8a: 2300 movs r3, #0 + 8003c8c: 60bb str r3, [r7, #8] #endif /* TS_MULTI_TOUCH_SUPPORTED == 1 */ /* Check and update the number of touches active detected */ TS_State->touchDetected = tsDriver->DetectTouch(I2cAddress); - 8003c8a: 4b97 ldr r3, [pc, #604] ; (8003ee8 ) - 8003c8c: 681b ldr r3, [r3, #0] - 8003c8e: 691b ldr r3, [r3, #16] - 8003c90: 4a96 ldr r2, [pc, #600] ; (8003eec ) - 8003c92: 7812 ldrb r2, [r2, #0] - 8003c94: b292 uxth r2, r2 - 8003c96: 4610 mov r0, r2 - 8003c98: 4798 blx r3 - 8003c9a: 4603 mov r3, r0 - 8003c9c: 461a mov r2, r3 - 8003c9e: 687b ldr r3, [r7, #4] - 8003ca0: 701a strb r2, [r3, #0] + 8003c8e: 4b97 ldr r3, [pc, #604] ; (8003eec ) + 8003c90: 681b ldr r3, [r3, #0] + 8003c92: 691b ldr r3, [r3, #16] + 8003c94: 4a96 ldr r2, [pc, #600] ; (8003ef0 ) + 8003c96: 7812 ldrb r2, [r2, #0] + 8003c98: b292 uxth r2, r2 + 8003c9a: 4610 mov r0, r2 + 8003c9c: 4798 blx r3 + 8003c9e: 4603 mov r3, r0 + 8003ca0: 461a mov r2, r3 + 8003ca2: 687b ldr r3, [r7, #4] + 8003ca4: 701a strb r2, [r3, #0] if(TS_State->touchDetected) - 8003ca2: 687b ldr r3, [r7, #4] - 8003ca4: 781b ldrb r3, [r3, #0] - 8003ca6: 2b00 cmp r3, #0 - 8003ca8: f000 81a8 beq.w 8003ffc + 8003ca6: 687b ldr r3, [r7, #4] + 8003ca8: 781b ldrb r3, [r3, #0] + 8003caa: 2b00 cmp r3, #0 + 8003cac: f000 81a8 beq.w 8004000 { for(index=0; index < TS_State->touchDetected; index++) - 8003cac: 2300 movs r3, #0 - 8003cae: 64bb str r3, [r7, #72] ; 0x48 - 8003cb0: e197 b.n 8003fe2 + 8003cb0: 2300 movs r3, #0 + 8003cb2: 64bb str r3, [r7, #72] ; 0x48 + 8003cb4: e197 b.n 8003fe6 { /* Get each touch coordinates */ tsDriver->GetXY(I2cAddress, &(brute_x[index]), &(brute_y[index])); - 8003cb2: 4b8d ldr r3, [pc, #564] ; (8003ee8 ) - 8003cb4: 681b ldr r3, [r3, #0] - 8003cb6: 695b ldr r3, [r3, #20] - 8003cb8: 4a8c ldr r2, [pc, #560] ; (8003eec ) - 8003cba: 7812 ldrb r2, [r2, #0] - 8003cbc: b290 uxth r0, r2 - 8003cbe: f107 0120 add.w r1, r7, #32 - 8003cc2: 6cba ldr r2, [r7, #72] ; 0x48 - 8003cc4: 0052 lsls r2, r2, #1 - 8003cc6: 188c adds r4, r1, r2 - 8003cc8: f107 0114 add.w r1, r7, #20 - 8003ccc: 6cba ldr r2, [r7, #72] ; 0x48 - 8003cce: 0052 lsls r2, r2, #1 - 8003cd0: 440a add r2, r1 - 8003cd2: 4621 mov r1, r4 - 8003cd4: 4798 blx r3 + 8003cb6: 4b8d ldr r3, [pc, #564] ; (8003eec ) + 8003cb8: 681b ldr r3, [r3, #0] + 8003cba: 695b ldr r3, [r3, #20] + 8003cbc: 4a8c ldr r2, [pc, #560] ; (8003ef0 ) + 8003cbe: 7812 ldrb r2, [r2, #0] + 8003cc0: b290 uxth r0, r2 + 8003cc2: f107 0120 add.w r1, r7, #32 + 8003cc6: 6cba ldr r2, [r7, #72] ; 0x48 + 8003cc8: 0052 lsls r2, r2, #1 + 8003cca: 188c adds r4, r1, r2 + 8003ccc: f107 0114 add.w r1, r7, #20 + 8003cd0: 6cba ldr r2, [r7, #72] ; 0x48 + 8003cd2: 0052 lsls r2, r2, #1 + 8003cd4: 440a add r2, r1 + 8003cd6: 4621 mov r1, r4 + 8003cd8: 4798 blx r3 if(tsOrientation == TS_SWAP_NONE) - 8003cd6: 4b86 ldr r3, [pc, #536] ; (8003ef0 ) - 8003cd8: 781b ldrb r3, [r3, #0] - 8003cda: 2b01 cmp r3, #1 - 8003cdc: d11b bne.n 8003d16 + 8003cda: 4b86 ldr r3, [pc, #536] ; (8003ef4 ) + 8003cdc: 781b ldrb r3, [r3, #0] + 8003cde: 2b01 cmp r3, #1 + 8003ce0: d11b bne.n 8003d1a { x[index] = brute_x[index]; - 8003cde: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003ce0: 005b lsls r3, r3, #1 - 8003ce2: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003ce6: 4413 add r3, r2 - 8003ce8: f833 2c30 ldrh.w r2, [r3, #-48] - 8003cec: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003cee: 005b lsls r3, r3, #1 - 8003cf0: f107 0150 add.w r1, r7, #80 ; 0x50 - 8003cf4: 440b add r3, r1 - 8003cf6: f823 2c18 strh.w r2, [r3, #-24] + 8003ce2: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003ce4: 005b lsls r3, r3, #1 + 8003ce6: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003cea: 4413 add r3, r2 + 8003cec: f833 2c30 ldrh.w r2, [r3, #-48] + 8003cf0: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003cf2: 005b lsls r3, r3, #1 + 8003cf4: f107 0150 add.w r1, r7, #80 ; 0x50 + 8003cf8: 440b add r3, r1 + 8003cfa: f823 2c18 strh.w r2, [r3, #-24] y[index] = brute_y[index]; - 8003cfa: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003cfc: 005b lsls r3, r3, #1 - 8003cfe: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003d02: 4413 add r3, r2 - 8003d04: f833 2c3c ldrh.w r2, [r3, #-60] - 8003d08: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d0a: 005b lsls r3, r3, #1 - 8003d0c: f107 0150 add.w r1, r7, #80 ; 0x50 - 8003d10: 440b add r3, r1 - 8003d12: f823 2c24 strh.w r2, [r3, #-36] + 8003cfe: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003d00: 005b lsls r3, r3, #1 + 8003d02: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003d06: 4413 add r3, r2 + 8003d08: f833 2c3c ldrh.w r2, [r3, #-60] + 8003d0c: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003d0e: 005b lsls r3, r3, #1 + 8003d10: f107 0150 add.w r1, r7, #80 ; 0x50 + 8003d14: 440b add r3, r1 + 8003d16: f823 2c24 strh.w r2, [r3, #-36] } if(tsOrientation & TS_SWAP_X) - 8003d16: 4b76 ldr r3, [pc, #472] ; (8003ef0 ) - 8003d18: 781b ldrb r3, [r3, #0] - 8003d1a: f003 0302 and.w r3, r3, #2 - 8003d1e: 2b00 cmp r3, #0 - 8003d20: d010 beq.n 8003d44 + 8003d1a: 4b76 ldr r3, [pc, #472] ; (8003ef4 ) + 8003d1c: 781b ldrb r3, [r3, #0] + 8003d1e: f003 0302 and.w r3, r3, #2 + 8003d22: 2b00 cmp r3, #0 + 8003d24: d010 beq.n 8003d48 { x[index] = 4096 - brute_x[index]; - 8003d22: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d24: 005b lsls r3, r3, #1 - 8003d26: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003d2a: 4413 add r3, r2 - 8003d2c: f833 3c30 ldrh.w r3, [r3, #-48] - 8003d30: f5c3 5380 rsb r3, r3, #4096 ; 0x1000 - 8003d34: b29a uxth r2, r3 - 8003d36: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d38: 005b lsls r3, r3, #1 - 8003d3a: f107 0150 add.w r1, r7, #80 ; 0x50 - 8003d3e: 440b add r3, r1 - 8003d40: f823 2c18 strh.w r2, [r3, #-24] + 8003d26: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003d28: 005b lsls r3, r3, #1 + 8003d2a: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003d2e: 4413 add r3, r2 + 8003d30: f833 3c30 ldrh.w r3, [r3, #-48] + 8003d34: f5c3 5380 rsb r3, r3, #4096 ; 0x1000 + 8003d38: b29a uxth r2, r3 + 8003d3a: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003d3c: 005b lsls r3, r3, #1 + 8003d3e: f107 0150 add.w r1, r7, #80 ; 0x50 + 8003d42: 440b add r3, r1 + 8003d44: f823 2c18 strh.w r2, [r3, #-24] } if(tsOrientation & TS_SWAP_Y) - 8003d44: 4b6a ldr r3, [pc, #424] ; (8003ef0 ) - 8003d46: 781b ldrb r3, [r3, #0] - 8003d48: f003 0304 and.w r3, r3, #4 - 8003d4c: 2b00 cmp r3, #0 - 8003d4e: d010 beq.n 8003d72 + 8003d48: 4b6a ldr r3, [pc, #424] ; (8003ef4 ) + 8003d4a: 781b ldrb r3, [r3, #0] + 8003d4c: f003 0304 and.w r3, r3, #4 + 8003d50: 2b00 cmp r3, #0 + 8003d52: d010 beq.n 8003d76 { y[index] = 4096 - brute_y[index]; - 8003d50: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d52: 005b lsls r3, r3, #1 - 8003d54: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003d58: 4413 add r3, r2 - 8003d5a: f833 3c3c ldrh.w r3, [r3, #-60] - 8003d5e: f5c3 5380 rsb r3, r3, #4096 ; 0x1000 - 8003d62: b29a uxth r2, r3 - 8003d64: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d66: 005b lsls r3, r3, #1 - 8003d68: f107 0150 add.w r1, r7, #80 ; 0x50 - 8003d6c: 440b add r3, r1 - 8003d6e: f823 2c24 strh.w r2, [r3, #-36] + 8003d54: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003d56: 005b lsls r3, r3, #1 + 8003d58: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003d5c: 4413 add r3, r2 + 8003d5e: f833 3c3c ldrh.w r3, [r3, #-60] + 8003d62: f5c3 5380 rsb r3, r3, #4096 ; 0x1000 + 8003d66: b29a uxth r2, r3 + 8003d68: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003d6a: 005b lsls r3, r3, #1 + 8003d6c: f107 0150 add.w r1, r7, #80 ; 0x50 + 8003d70: 440b add r3, r1 + 8003d72: f823 2c24 strh.w r2, [r3, #-36] } if(tsOrientation & TS_SWAP_XY) - 8003d72: 4b5f ldr r3, [pc, #380] ; (8003ef0 ) - 8003d74: 781b ldrb r3, [r3, #0] - 8003d76: f003 0308 and.w r3, r3, #8 - 8003d7a: 2b00 cmp r3, #0 - 8003d7c: d01b beq.n 8003db6 + 8003d76: 4b5f ldr r3, [pc, #380] ; (8003ef4 ) + 8003d78: 781b ldrb r3, [r3, #0] + 8003d7a: f003 0308 and.w r3, r3, #8 + 8003d7e: 2b00 cmp r3, #0 + 8003d80: d01b beq.n 8003dba { y[index] = brute_x[index]; - 8003d7e: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d80: 005b lsls r3, r3, #1 - 8003d82: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003d86: 4413 add r3, r2 - 8003d88: f833 2c30 ldrh.w r2, [r3, #-48] - 8003d8c: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d8e: 005b lsls r3, r3, #1 - 8003d90: f107 0150 add.w r1, r7, #80 ; 0x50 - 8003d94: 440b add r3, r1 - 8003d96: f823 2c24 strh.w r2, [r3, #-36] + 8003d82: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003d84: 005b lsls r3, r3, #1 + 8003d86: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003d8a: 4413 add r3, r2 + 8003d8c: f833 2c30 ldrh.w r2, [r3, #-48] + 8003d90: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003d92: 005b lsls r3, r3, #1 + 8003d94: f107 0150 add.w r1, r7, #80 ; 0x50 + 8003d98: 440b add r3, r1 + 8003d9a: f823 2c24 strh.w r2, [r3, #-36] x[index] = brute_y[index]; - 8003d9a: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003d9c: 005b lsls r3, r3, #1 - 8003d9e: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003da2: 4413 add r3, r2 - 8003da4: f833 2c3c ldrh.w r2, [r3, #-60] - 8003da8: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003daa: 005b lsls r3, r3, #1 - 8003dac: f107 0150 add.w r1, r7, #80 ; 0x50 - 8003db0: 440b add r3, r1 - 8003db2: f823 2c18 strh.w r2, [r3, #-24] + 8003d9e: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003da0: 005b lsls r3, r3, #1 + 8003da2: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003da6: 4413 add r3, r2 + 8003da8: f833 2c3c ldrh.w r2, [r3, #-60] + 8003dac: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003dae: 005b lsls r3, r3, #1 + 8003db0: f107 0150 add.w r1, r7, #80 ; 0x50 + 8003db4: 440b add r3, r1 + 8003db6: f823 2c18 strh.w r2, [r3, #-24] } x_diff = x[index] > _x[index]? (x[index] - _x[index]): (_x[index] - x[index]); - 8003db6: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003db8: 005b lsls r3, r3, #1 - 8003dba: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003dbe: 4413 add r3, r2 - 8003dc0: f833 3c18 ldrh.w r3, [r3, #-24] - 8003dc4: 4619 mov r1, r3 - 8003dc6: 4a4b ldr r2, [pc, #300] ; (8003ef4 ) - 8003dc8: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003dca: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8003dce: 4299 cmp r1, r3 - 8003dd0: d90e bls.n 8003df0 - 8003dd2: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003dd4: 005b lsls r3, r3, #1 - 8003dd6: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003dda: 4413 add r3, r2 - 8003ddc: f833 2c18 ldrh.w r2, [r3, #-24] - 8003de0: 4944 ldr r1, [pc, #272] ; (8003ef4 ) - 8003de2: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003de4: f851 3023 ldr.w r3, [r1, r3, lsl #2] - 8003de8: b29b uxth r3, r3 - 8003dea: 1ad3 subs r3, r2, r3 + 8003dba: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003dbc: 005b lsls r3, r3, #1 + 8003dbe: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003dc2: 4413 add r3, r2 + 8003dc4: f833 3c18 ldrh.w r3, [r3, #-24] + 8003dc8: 4619 mov r1, r3 + 8003dca: 4a4b ldr r2, [pc, #300] ; (8003ef8 ) + 8003dcc: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003dce: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8003dd2: 4299 cmp r1, r3 + 8003dd4: d90e bls.n 8003df4 + 8003dd6: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003dd8: 005b lsls r3, r3, #1 + 8003dda: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003dde: 4413 add r3, r2 + 8003de0: f833 2c18 ldrh.w r2, [r3, #-24] + 8003de4: 4944 ldr r1, [pc, #272] ; (8003ef8 ) + 8003de6: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003de8: f851 3023 ldr.w r3, [r1, r3, lsl #2] 8003dec: b29b uxth r3, r3 - 8003dee: e00d b.n 8003e0c - 8003df0: 4a40 ldr r2, [pc, #256] ; (8003ef4 ) - 8003df2: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003df4: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8003df8: b29a uxth r2, r3 - 8003dfa: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003dfc: 005b lsls r3, r3, #1 - 8003dfe: f107 0150 add.w r1, r7, #80 ; 0x50 - 8003e02: 440b add r3, r1 - 8003e04: f833 3c18 ldrh.w r3, [r3, #-24] - 8003e08: 1ad3 subs r3, r2, r3 - 8003e0a: b29b uxth r3, r3 - 8003e0c: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 + 8003dee: 1ad3 subs r3, r2, r3 + 8003df0: b29b uxth r3, r3 + 8003df2: e00d b.n 8003e10 + 8003df4: 4a40 ldr r2, [pc, #256] ; (8003ef8 ) + 8003df6: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003df8: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8003dfc: b29a uxth r2, r3 + 8003dfe: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e00: 005b lsls r3, r3, #1 + 8003e02: f107 0150 add.w r1, r7, #80 ; 0x50 + 8003e06: 440b add r3, r1 + 8003e08: f833 3c18 ldrh.w r3, [r3, #-24] + 8003e0c: 1ad3 subs r3, r2, r3 + 8003e0e: b29b uxth r3, r3 + 8003e10: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 y_diff = y[index] > _y[index]? (y[index] - _y[index]): (_y[index] - y[index]); - 8003e10: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e12: 005b lsls r3, r3, #1 - 8003e14: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003e18: 4413 add r3, r2 - 8003e1a: f833 3c24 ldrh.w r3, [r3, #-36] - 8003e1e: 4619 mov r1, r3 - 8003e20: 4a35 ldr r2, [pc, #212] ; (8003ef8 ) - 8003e22: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e24: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8003e28: 4299 cmp r1, r3 - 8003e2a: d90e bls.n 8003e4a - 8003e2c: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e2e: 005b lsls r3, r3, #1 - 8003e30: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003e34: 4413 add r3, r2 - 8003e36: f833 2c24 ldrh.w r2, [r3, #-36] - 8003e3a: 492f ldr r1, [pc, #188] ; (8003ef8 ) - 8003e3c: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e3e: f851 3023 ldr.w r3, [r1, r3, lsl #2] - 8003e42: b29b uxth r3, r3 - 8003e44: 1ad3 subs r3, r2, r3 + 8003e14: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e16: 005b lsls r3, r3, #1 + 8003e18: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003e1c: 4413 add r3, r2 + 8003e1e: f833 3c24 ldrh.w r3, [r3, #-36] + 8003e22: 4619 mov r1, r3 + 8003e24: 4a35 ldr r2, [pc, #212] ; (8003efc ) + 8003e26: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e28: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8003e2c: 4299 cmp r1, r3 + 8003e2e: d90e bls.n 8003e4e + 8003e30: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e32: 005b lsls r3, r3, #1 + 8003e34: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003e38: 4413 add r3, r2 + 8003e3a: f833 2c24 ldrh.w r2, [r3, #-36] + 8003e3e: 492f ldr r1, [pc, #188] ; (8003efc ) + 8003e40: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e42: f851 3023 ldr.w r3, [r1, r3, lsl #2] 8003e46: b29b uxth r3, r3 - 8003e48: e00d b.n 8003e66 - 8003e4a: 4a2b ldr r2, [pc, #172] ; (8003ef8 ) - 8003e4c: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e4e: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8003e52: b29a uxth r2, r3 - 8003e54: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e56: 005b lsls r3, r3, #1 - 8003e58: f107 0150 add.w r1, r7, #80 ; 0x50 - 8003e5c: 440b add r3, r1 - 8003e5e: f833 3c24 ldrh.w r3, [r3, #-36] - 8003e62: 1ad3 subs r3, r2, r3 - 8003e64: b29b uxth r3, r3 - 8003e66: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 + 8003e48: 1ad3 subs r3, r2, r3 + 8003e4a: b29b uxth r3, r3 + 8003e4c: e00d b.n 8003e6a + 8003e4e: 4a2b ldr r2, [pc, #172] ; (8003efc ) + 8003e50: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e52: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8003e56: b29a uxth r2, r3 + 8003e58: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e5a: 005b lsls r3, r3, #1 + 8003e5c: f107 0150 add.w r1, r7, #80 ; 0x50 + 8003e60: 440b add r3, r1 + 8003e62: f833 3c24 ldrh.w r3, [r3, #-36] + 8003e66: 1ad3 subs r3, r2, r3 + 8003e68: b29b uxth r3, r3 + 8003e6a: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 if ((x_diff + y_diff) > 5) - 8003e6a: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 - 8003e6e: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 8003e72: 4413 add r3, r2 - 8003e74: 2b05 cmp r3, #5 - 8003e76: dd17 ble.n 8003ea8 + 8003e6e: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 + 8003e72: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 + 8003e76: 4413 add r3, r2 + 8003e78: 2b05 cmp r3, #5 + 8003e7a: dd17 ble.n 8003eac { _x[index] = x[index]; - 8003e78: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e7a: 005b lsls r3, r3, #1 - 8003e7c: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003e80: 4413 add r3, r2 - 8003e82: f833 3c18 ldrh.w r3, [r3, #-24] - 8003e86: 4619 mov r1, r3 - 8003e88: 4a1a ldr r2, [pc, #104] ; (8003ef4 ) - 8003e8a: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e8c: f842 1023 str.w r1, [r2, r3, lsl #2] + 8003e7c: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e7e: 005b lsls r3, r3, #1 + 8003e80: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003e84: 4413 add r3, r2 + 8003e86: f833 3c18 ldrh.w r3, [r3, #-24] + 8003e8a: 4619 mov r1, r3 + 8003e8c: 4a1a ldr r2, [pc, #104] ; (8003ef8 ) + 8003e8e: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e90: f842 1023 str.w r1, [r2, r3, lsl #2] _y[index] = y[index]; - 8003e90: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003e92: 005b lsls r3, r3, #1 - 8003e94: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003e98: 4413 add r3, r2 - 8003e9a: f833 3c24 ldrh.w r3, [r3, #-36] - 8003e9e: 4619 mov r1, r3 - 8003ea0: 4a15 ldr r2, [pc, #84] ; (8003ef8 ) - 8003ea2: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003ea4: f842 1023 str.w r1, [r2, r3, lsl #2] + 8003e94: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003e96: 005b lsls r3, r3, #1 + 8003e98: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003e9c: 4413 add r3, r2 + 8003e9e: f833 3c24 ldrh.w r3, [r3, #-36] + 8003ea2: 4619 mov r1, r3 + 8003ea4: 4a15 ldr r2, [pc, #84] ; (8003efc ) + 8003ea6: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003ea8: f842 1023 str.w r1, [r2, r3, lsl #2] } if(I2cAddress == FT5336_I2C_SLAVE_ADDRESS) - 8003ea8: 4b10 ldr r3, [pc, #64] ; (8003eec ) - 8003eaa: 781b ldrb r3, [r3, #0] - 8003eac: 2b70 cmp r3, #112 ; 0x70 - 8003eae: d125 bne.n 8003efc + 8003eac: 4b10 ldr r3, [pc, #64] ; (8003ef0 ) + 8003eae: 781b ldrb r3, [r3, #0] + 8003eb0: 2b70 cmp r3, #112 ; 0x70 + 8003eb2: d125 bne.n 8003f00 { TS_State->touchX[index] = x[index]; - 8003eb0: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003eb2: 005b lsls r3, r3, #1 - 8003eb4: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003eb8: 4413 add r3, r2 - 8003eba: f833 1c18 ldrh.w r1, [r3, #-24] - 8003ebe: 687a ldr r2, [r7, #4] - 8003ec0: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003ec2: 005b lsls r3, r3, #1 - 8003ec4: 4413 add r3, r2 - 8003ec6: 460a mov r2, r1 - 8003ec8: 805a strh r2, [r3, #2] + 8003eb4: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003eb6: 005b lsls r3, r3, #1 + 8003eb8: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003ebc: 4413 add r3, r2 + 8003ebe: f833 1c18 ldrh.w r1, [r3, #-24] + 8003ec2: 687a ldr r2, [r7, #4] + 8003ec4: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003ec6: 005b lsls r3, r3, #1 + 8003ec8: 4413 add r3, r2 + 8003eca: 460a mov r2, r1 + 8003ecc: 805a strh r2, [r3, #2] TS_State->touchY[index] = y[index]; - 8003eca: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003ecc: 005b lsls r3, r3, #1 - 8003ece: f107 0250 add.w r2, r7, #80 ; 0x50 - 8003ed2: 4413 add r3, r2 - 8003ed4: f833 1c24 ldrh.w r1, [r3, #-36] - 8003ed8: 687a ldr r2, [r7, #4] - 8003eda: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003edc: 3304 adds r3, #4 - 8003ede: 005b lsls r3, r3, #1 - 8003ee0: 4413 add r3, r2 - 8003ee2: 460a mov r2, r1 - 8003ee4: 809a strh r2, [r3, #4] - 8003ee6: e02c b.n 8003f42 - 8003ee8: 2000053c .word 0x2000053c - 8003eec: 20000545 .word 0x20000545 - 8003ef0: 20000544 .word 0x20000544 - 8003ef4: 20000548 .word 0x20000548 - 8003ef8: 2000055c .word 0x2000055c + 8003ece: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003ed0: 005b lsls r3, r3, #1 + 8003ed2: f107 0250 add.w r2, r7, #80 ; 0x50 + 8003ed6: 4413 add r3, r2 + 8003ed8: f833 1c24 ldrh.w r1, [r3, #-36] + 8003edc: 687a ldr r2, [r7, #4] + 8003ede: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003ee0: 3304 adds r3, #4 + 8003ee2: 005b lsls r3, r3, #1 + 8003ee4: 4413 add r3, r2 + 8003ee6: 460a mov r2, r1 + 8003ee8: 809a strh r2, [r3, #4] + 8003eea: e02c b.n 8003f46 + 8003eec: 2000053c .word 0x2000053c + 8003ef0: 20000545 .word 0x20000545 + 8003ef4: 20000544 .word 0x20000544 + 8003ef8: 20000548 .word 0x20000548 + 8003efc: 2000055c .word 0x2000055c } else { /* 2^12 = 4096 : indexes are expressed on a dynamic of 4096 */ TS_State->touchX[index] = (tsXBoundary * _x[index]) >> 12; - 8003efc: 4b42 ldr r3, [pc, #264] ; (8004008 ) - 8003efe: 881b ldrh r3, [r3, #0] - 8003f00: 4619 mov r1, r3 - 8003f02: 4a42 ldr r2, [pc, #264] ; (800400c ) - 8003f04: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003f06: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8003f0a: fb03 f301 mul.w r3, r3, r1 - 8003f0e: 0b1b lsrs r3, r3, #12 - 8003f10: b299 uxth r1, r3 - 8003f12: 687a ldr r2, [r7, #4] - 8003f14: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003f16: 005b lsls r3, r3, #1 - 8003f18: 4413 add r3, r2 - 8003f1a: 460a mov r2, r1 - 8003f1c: 805a strh r2, [r3, #2] + 8003f00: 4b42 ldr r3, [pc, #264] ; (800400c ) + 8003f02: 881b ldrh r3, [r3, #0] + 8003f04: 4619 mov r1, r3 + 8003f06: 4a42 ldr r2, [pc, #264] ; (8004010 ) + 8003f08: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003f0a: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8003f0e: fb03 f301 mul.w r3, r3, r1 + 8003f12: 0b1b lsrs r3, r3, #12 + 8003f14: b299 uxth r1, r3 + 8003f16: 687a ldr r2, [r7, #4] + 8003f18: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003f1a: 005b lsls r3, r3, #1 + 8003f1c: 4413 add r3, r2 + 8003f1e: 460a mov r2, r1 + 8003f20: 805a strh r2, [r3, #2] TS_State->touchY[index] = (tsYBoundary * _y[index]) >> 12; - 8003f1e: 4b3c ldr r3, [pc, #240] ; (8004010 ) - 8003f20: 881b ldrh r3, [r3, #0] - 8003f22: 4619 mov r1, r3 - 8003f24: 4a3b ldr r2, [pc, #236] ; (8004014 ) - 8003f26: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003f28: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8003f2c: fb03 f301 mul.w r3, r3, r1 - 8003f30: 0b1b lsrs r3, r3, #12 - 8003f32: b299 uxth r1, r3 - 8003f34: 687a ldr r2, [r7, #4] - 8003f36: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003f38: 3304 adds r3, #4 - 8003f3a: 005b lsls r3, r3, #1 - 8003f3c: 4413 add r3, r2 - 8003f3e: 460a mov r2, r1 - 8003f40: 809a strh r2, [r3, #4] + 8003f22: 4b3c ldr r3, [pc, #240] ; (8004014 ) + 8003f24: 881b ldrh r3, [r3, #0] + 8003f26: 4619 mov r1, r3 + 8003f28: 4a3b ldr r2, [pc, #236] ; (8004018 ) + 8003f2a: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003f2c: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8003f30: fb03 f301 mul.w r3, r3, r1 + 8003f34: 0b1b lsrs r3, r3, #12 + 8003f36: b299 uxth r1, r3 + 8003f38: 687a ldr r2, [r7, #4] + 8003f3a: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003f3c: 3304 adds r3, #4 + 8003f3e: 005b lsls r3, r3, #1 + 8003f40: 4413 add r3, r2 + 8003f42: 460a mov r2, r1 + 8003f44: 809a strh r2, [r3, #4] } #if (TS_MULTI_TOUCH_SUPPORTED == 1) /* Get touch info related to the current touch */ ft5336_TS_GetTouchInfo(I2cAddress, index, &weight, &area, &event); - 8003f42: 4b35 ldr r3, [pc, #212] ; (8004018 ) - 8003f44: 781b ldrb r3, [r3, #0] - 8003f46: b298 uxth r0, r3 - 8003f48: f107 010c add.w r1, r7, #12 - 8003f4c: f107 0210 add.w r2, r7, #16 - 8003f50: f107 0308 add.w r3, r7, #8 - 8003f54: 9300 str r3, [sp, #0] - 8003f56: 460b mov r3, r1 - 8003f58: 6cb9 ldr r1, [r7, #72] ; 0x48 - 8003f5a: f7fc fd27 bl 80009ac + 8003f46: 4b35 ldr r3, [pc, #212] ; (800401c ) + 8003f48: 781b ldrb r3, [r3, #0] + 8003f4a: b298 uxth r0, r3 + 8003f4c: f107 010c add.w r1, r7, #12 + 8003f50: f107 0210 add.w r2, r7, #16 + 8003f54: f107 0308 add.w r3, r7, #8 + 8003f58: 9300 str r3, [sp, #0] + 8003f5a: 460b mov r3, r1 + 8003f5c: 6cb9 ldr r1, [r7, #72] ; 0x48 + 8003f5e: f7fc fd25 bl 80009ac /* Update TS_State structure */ TS_State->touchWeight[index] = weight; - 8003f5e: 693b ldr r3, [r7, #16] - 8003f60: b2d9 uxtb r1, r3 - 8003f62: 687a ldr r2, [r7, #4] - 8003f64: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003f66: 4413 add r3, r2 - 8003f68: 3316 adds r3, #22 - 8003f6a: 460a mov r2, r1 - 8003f6c: 701a strb r2, [r3, #0] + 8003f62: 693b ldr r3, [r7, #16] + 8003f64: b2d9 uxtb r1, r3 + 8003f66: 687a ldr r2, [r7, #4] + 8003f68: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003f6a: 4413 add r3, r2 + 8003f6c: 3316 adds r3, #22 + 8003f6e: 460a mov r2, r1 + 8003f70: 701a strb r2, [r3, #0] TS_State->touchArea[index] = area; - 8003f6e: 68fb ldr r3, [r7, #12] - 8003f70: b2d9 uxtb r1, r3 - 8003f72: 687a ldr r2, [r7, #4] - 8003f74: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003f76: 4413 add r3, r2 - 8003f78: 3320 adds r3, #32 - 8003f7a: 460a mov r2, r1 - 8003f7c: 701a strb r2, [r3, #0] + 8003f72: 68fb ldr r3, [r7, #12] + 8003f74: b2d9 uxtb r1, r3 + 8003f76: 687a ldr r2, [r7, #4] + 8003f78: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003f7a: 4413 add r3, r2 + 8003f7c: 3320 adds r3, #32 + 8003f7e: 460a mov r2, r1 + 8003f80: 701a strb r2, [r3, #0] /* Remap touch event */ switch(event) - 8003f7e: 68bb ldr r3, [r7, #8] - 8003f80: 2b03 cmp r3, #3 - 8003f82: d827 bhi.n 8003fd4 - 8003f84: a201 add r2, pc, #4 ; (adr r2, 8003f8c ) - 8003f86: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8003f8a: bf00 nop - 8003f8c: 08003f9d .word 0x08003f9d - 8003f90: 08003fab .word 0x08003fab - 8003f94: 08003fb9 .word 0x08003fb9 - 8003f98: 08003fc7 .word 0x08003fc7 + 8003f82: 68bb ldr r3, [r7, #8] + 8003f84: 2b03 cmp r3, #3 + 8003f86: d827 bhi.n 8003fd8 + 8003f88: a201 add r2, pc, #4 ; (adr r2, 8003f90 ) + 8003f8a: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8003f8e: bf00 nop + 8003f90: 08003fa1 .word 0x08003fa1 + 8003f94: 08003faf .word 0x08003faf + 8003f98: 08003fbd .word 0x08003fbd + 8003f9c: 08003fcb .word 0x08003fcb { case FT5336_TOUCH_EVT_FLAG_PRESS_DOWN : TS_State->touchEventId[index] = TOUCH_EVENT_PRESS_DOWN; - 8003f9c: 687a ldr r2, [r7, #4] - 8003f9e: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003fa0: 4413 add r3, r2 - 8003fa2: 331b adds r3, #27 - 8003fa4: 2201 movs r2, #1 - 8003fa6: 701a strb r2, [r3, #0] + 8003fa0: 687a ldr r2, [r7, #4] + 8003fa2: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003fa4: 4413 add r3, r2 + 8003fa6: 331b adds r3, #27 + 8003fa8: 2201 movs r2, #1 + 8003faa: 701a strb r2, [r3, #0] break; - 8003fa8: e018 b.n 8003fdc + 8003fac: e018 b.n 8003fe0 case FT5336_TOUCH_EVT_FLAG_LIFT_UP : TS_State->touchEventId[index] = TOUCH_EVENT_LIFT_UP; - 8003faa: 687a ldr r2, [r7, #4] - 8003fac: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003fae: 4413 add r3, r2 - 8003fb0: 331b adds r3, #27 - 8003fb2: 2202 movs r2, #2 - 8003fb4: 701a strb r2, [r3, #0] + 8003fae: 687a ldr r2, [r7, #4] + 8003fb0: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003fb2: 4413 add r3, r2 + 8003fb4: 331b adds r3, #27 + 8003fb6: 2202 movs r2, #2 + 8003fb8: 701a strb r2, [r3, #0] break; - 8003fb6: e011 b.n 8003fdc + 8003fba: e011 b.n 8003fe0 case FT5336_TOUCH_EVT_FLAG_CONTACT : TS_State->touchEventId[index] = TOUCH_EVENT_CONTACT; - 8003fb8: 687a ldr r2, [r7, #4] - 8003fba: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003fbc: 4413 add r3, r2 - 8003fbe: 331b adds r3, #27 - 8003fc0: 2203 movs r2, #3 - 8003fc2: 701a strb r2, [r3, #0] + 8003fbc: 687a ldr r2, [r7, #4] + 8003fbe: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003fc0: 4413 add r3, r2 + 8003fc2: 331b adds r3, #27 + 8003fc4: 2203 movs r2, #3 + 8003fc6: 701a strb r2, [r3, #0] break; - 8003fc4: e00a b.n 8003fdc + 8003fc8: e00a b.n 8003fe0 case FT5336_TOUCH_EVT_FLAG_NO_EVENT : TS_State->touchEventId[index] = TOUCH_EVENT_NO_EVT; - 8003fc6: 687a ldr r2, [r7, #4] - 8003fc8: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003fca: 4413 add r3, r2 - 8003fcc: 331b adds r3, #27 - 8003fce: 2200 movs r2, #0 - 8003fd0: 701a strb r2, [r3, #0] + 8003fca: 687a ldr r2, [r7, #4] + 8003fcc: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003fce: 4413 add r3, r2 + 8003fd0: 331b adds r3, #27 + 8003fd2: 2200 movs r2, #0 + 8003fd4: 701a strb r2, [r3, #0] break; - 8003fd2: e003 b.n 8003fdc + 8003fd6: e003 b.n 8003fe0 default : ts_status = TS_ERROR; - 8003fd4: 2301 movs r3, #1 - 8003fd6: f887 304f strb.w r3, [r7, #79] ; 0x4f + 8003fd8: 2301 movs r3, #1 + 8003fda: f887 304f strb.w r3, [r7, #79] ; 0x4f break; - 8003fda: bf00 nop + 8003fde: bf00 nop for(index=0; index < TS_State->touchDetected; index++) - 8003fdc: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003fde: 3301 adds r3, #1 - 8003fe0: 64bb str r3, [r7, #72] ; 0x48 - 8003fe2: 687b ldr r3, [r7, #4] - 8003fe4: 781b ldrb r3, [r3, #0] - 8003fe6: 461a mov r2, r3 - 8003fe8: 6cbb ldr r3, [r7, #72] ; 0x48 - 8003fea: 4293 cmp r3, r2 - 8003fec: f4ff ae61 bcc.w 8003cb2 + 8003fe0: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003fe2: 3301 adds r3, #1 + 8003fe4: 64bb str r3, [r7, #72] ; 0x48 + 8003fe6: 687b ldr r3, [r7, #4] + 8003fe8: 781b ldrb r3, [r3, #0] + 8003fea: 461a mov r2, r3 + 8003fec: 6cbb ldr r3, [r7, #72] ; 0x48 + 8003fee: 4293 cmp r3, r2 + 8003ff0: f4ff ae61 bcc.w 8003cb6 } /* of for(index=0; index < TS_State->touchDetected; index++) */ #if (TS_MULTI_TOUCH_SUPPORTED == 1) /* Get gesture Id */ ts_status = BSP_TS_Get_GestureId(TS_State); - 8003ff0: 6878 ldr r0, [r7, #4] - 8003ff2: f000 f813 bl 800401c - 8003ff6: 4603 mov r3, r0 - 8003ff8: f887 304f strb.w r3, [r7, #79] ; 0x4f + 8003ff4: 6878 ldr r0, [r7, #4] + 8003ff6: f000 f813 bl 8004020 + 8003ffa: 4603 mov r3, r0 + 8003ffc: f887 304f strb.w r3, [r7, #79] ; 0x4f #endif /* TS_MULTI_TOUCH_SUPPORTED == 1 */ } /* end of if(TS_State->touchDetected != 0) */ return (ts_status); - 8003ffc: f897 304f ldrb.w r3, [r7, #79] ; 0x4f -} - 8004000: 4618 mov r0, r3 - 8004002: 3754 adds r7, #84 ; 0x54 - 8004004: 46bd mov sp, r7 - 8004006: bd90 pop {r4, r7, pc} - 8004008: 20000540 .word 0x20000540 - 800400c: 20000548 .word 0x20000548 - 8004010: 20000542 .word 0x20000542 - 8004014: 2000055c .word 0x2000055c - 8004018: 20000545 .word 0x20000545 - -0800401c : + 8004000: f897 304f ldrb.w r3, [r7, #79] ; 0x4f +} + 8004004: 4618 mov r0, r3 + 8004006: 3754 adds r7, #84 ; 0x54 + 8004008: 46bd mov sp, r7 + 800400a: bd90 pop {r4, r7, pc} + 800400c: 20000540 .word 0x20000540 + 8004010: 20000548 .word 0x20000548 + 8004014: 20000542 .word 0x20000542 + 8004018: 2000055c .word 0x2000055c + 800401c: 20000545 .word 0x20000545 + +08004020 : * @brief Update gesture Id following a touch detected. * @param TS_State: Pointer to touch screen current state structure * @retval TS_OK if all initializations are OK. Other value if error. */ uint8_t BSP_TS_Get_GestureId(TS_StateTypeDef *TS_State) { - 800401c: b580 push {r7, lr} - 800401e: b084 sub sp, #16 - 8004020: af00 add r7, sp, #0 - 8004022: 6078 str r0, [r7, #4] + 8004020: b580 push {r7, lr} + 8004022: b084 sub sp, #16 + 8004024: af00 add r7, sp, #0 + 8004026: 6078 str r0, [r7, #4] uint32_t gestureId = 0; - 8004024: 2300 movs r3, #0 - 8004026: 60bb str r3, [r7, #8] - uint8_t ts_status = TS_OK; 8004028: 2300 movs r3, #0 - 800402a: 73fb strb r3, [r7, #15] + 800402a: 60bb str r3, [r7, #8] + uint8_t ts_status = TS_OK; + 800402c: 2300 movs r3, #0 + 800402e: 73fb strb r3, [r7, #15] /* Get gesture Id */ ft5336_TS_GetGestureID(I2cAddress, &gestureId); - 800402c: 4b1f ldr r3, [pc, #124] ; (80040ac ) - 800402e: 781b ldrb r3, [r3, #0] - 8004030: b29b uxth r3, r3 - 8004032: f107 0208 add.w r2, r7, #8 - 8004036: 4611 mov r1, r2 - 8004038: 4618 mov r0, r3 - 800403a: f7fc fc9e bl 800097a + 8004030: 4b1f ldr r3, [pc, #124] ; (80040b0 ) + 8004032: 781b ldrb r3, [r3, #0] + 8004034: b29b uxth r3, r3 + 8004036: f107 0208 add.w r2, r7, #8 + 800403a: 4611 mov r1, r2 + 800403c: 4618 mov r0, r3 + 800403e: f7fc fc9c bl 800097a /* Remap gesture Id to a TS_GestureIdTypeDef value */ switch(gestureId) - 800403e: 68bb ldr r3, [r7, #8] - 8004040: 2b18 cmp r3, #24 - 8004042: d01b beq.n 800407c + 8004042: 68bb ldr r3, [r7, #8] 8004044: 2b18 cmp r3, #24 - 8004046: d806 bhi.n 8004056 - 8004048: 2b10 cmp r3, #16 - 800404a: d00f beq.n 800406c - 800404c: 2b14 cmp r3, #20 - 800404e: d011 beq.n 8004074 - 8004050: 2b00 cmp r3, #0 - 8004052: d007 beq.n 8004064 - 8004054: e022 b.n 800409c - 8004056: 2b40 cmp r3, #64 ; 0x40 - 8004058: d018 beq.n 800408c - 800405a: 2b49 cmp r3, #73 ; 0x49 - 800405c: d01a beq.n 8004094 - 800405e: 2b1c cmp r3, #28 - 8004060: d010 beq.n 8004084 - 8004062: e01b b.n 800409c + 8004046: d01b beq.n 8004080 + 8004048: 2b18 cmp r3, #24 + 800404a: d806 bhi.n 800405a + 800404c: 2b10 cmp r3, #16 + 800404e: d00f beq.n 8004070 + 8004050: 2b14 cmp r3, #20 + 8004052: d011 beq.n 8004078 + 8004054: 2b00 cmp r3, #0 + 8004056: d007 beq.n 8004068 + 8004058: e022 b.n 80040a0 + 800405a: 2b40 cmp r3, #64 ; 0x40 + 800405c: d018 beq.n 8004090 + 800405e: 2b49 cmp r3, #73 ; 0x49 + 8004060: d01a beq.n 8004098 + 8004062: 2b1c cmp r3, #28 + 8004064: d010 beq.n 8004088 + 8004066: e01b b.n 80040a0 { case FT5336_GEST_ID_NO_GESTURE : TS_State->gestureId = GEST_ID_NO_GESTURE; - 8004064: 687b ldr r3, [r7, #4] - 8004066: 2200 movs r2, #0 - 8004068: 629a str r2, [r3, #40] ; 0x28 + 8004068: 687b ldr r3, [r7, #4] + 800406a: 2200 movs r2, #0 + 800406c: 629a str r2, [r3, #40] ; 0x28 break; - 800406a: e01a b.n 80040a2 + 800406e: e01a b.n 80040a6 case FT5336_GEST_ID_MOVE_UP : TS_State->gestureId = GEST_ID_MOVE_UP; - 800406c: 687b ldr r3, [r7, #4] - 800406e: 2201 movs r2, #1 - 8004070: 629a str r2, [r3, #40] ; 0x28 + 8004070: 687b ldr r3, [r7, #4] + 8004072: 2201 movs r2, #1 + 8004074: 629a str r2, [r3, #40] ; 0x28 break; - 8004072: e016 b.n 80040a2 + 8004076: e016 b.n 80040a6 case FT5336_GEST_ID_MOVE_RIGHT : TS_State->gestureId = GEST_ID_MOVE_RIGHT; - 8004074: 687b ldr r3, [r7, #4] - 8004076: 2202 movs r2, #2 - 8004078: 629a str r2, [r3, #40] ; 0x28 + 8004078: 687b ldr r3, [r7, #4] + 800407a: 2202 movs r2, #2 + 800407c: 629a str r2, [r3, #40] ; 0x28 break; - 800407a: e012 b.n 80040a2 + 800407e: e012 b.n 80040a6 case FT5336_GEST_ID_MOVE_DOWN : TS_State->gestureId = GEST_ID_MOVE_DOWN; - 800407c: 687b ldr r3, [r7, #4] - 800407e: 2203 movs r2, #3 - 8004080: 629a str r2, [r3, #40] ; 0x28 + 8004080: 687b ldr r3, [r7, #4] + 8004082: 2203 movs r2, #3 + 8004084: 629a str r2, [r3, #40] ; 0x28 break; - 8004082: e00e b.n 80040a2 + 8004086: e00e b.n 80040a6 case FT5336_GEST_ID_MOVE_LEFT : TS_State->gestureId = GEST_ID_MOVE_LEFT; - 8004084: 687b ldr r3, [r7, #4] - 8004086: 2204 movs r2, #4 - 8004088: 629a str r2, [r3, #40] ; 0x28 + 8004088: 687b ldr r3, [r7, #4] + 800408a: 2204 movs r2, #4 + 800408c: 629a str r2, [r3, #40] ; 0x28 break; - 800408a: e00a b.n 80040a2 + 800408e: e00a b.n 80040a6 case FT5336_GEST_ID_ZOOM_IN : TS_State->gestureId = GEST_ID_ZOOM_IN; - 800408c: 687b ldr r3, [r7, #4] - 800408e: 2205 movs r2, #5 - 8004090: 629a str r2, [r3, #40] ; 0x28 + 8004090: 687b ldr r3, [r7, #4] + 8004092: 2205 movs r2, #5 + 8004094: 629a str r2, [r3, #40] ; 0x28 break; - 8004092: e006 b.n 80040a2 + 8004096: e006 b.n 80040a6 case FT5336_GEST_ID_ZOOM_OUT : TS_State->gestureId = GEST_ID_ZOOM_OUT; - 8004094: 687b ldr r3, [r7, #4] - 8004096: 2206 movs r2, #6 - 8004098: 629a str r2, [r3, #40] ; 0x28 + 8004098: 687b ldr r3, [r7, #4] + 800409a: 2206 movs r2, #6 + 800409c: 629a str r2, [r3, #40] ; 0x28 break; - 800409a: e002 b.n 80040a2 + 800409e: e002 b.n 80040a6 default : ts_status = TS_ERROR; - 800409c: 2301 movs r3, #1 - 800409e: 73fb strb r3, [r7, #15] + 80040a0: 2301 movs r3, #1 + 80040a2: 73fb strb r3, [r7, #15] break; - 80040a0: bf00 nop + 80040a4: bf00 nop } /* of switch(gestureId) */ return(ts_status); - 80040a2: 7bfb ldrb r3, [r7, #15] + 80040a6: 7bfb ldrb r3, [r7, #15] } - 80040a4: 4618 mov r0, r3 - 80040a6: 3710 adds r7, #16 - 80040a8: 46bd mov sp, r7 - 80040aa: bd80 pop {r7, pc} - 80040ac: 20000545 .word 0x20000545 + 80040a8: 4618 mov r0, r3 + 80040aa: 3710 adds r7, #16 + 80040ac: 46bd mov sp, r7 + 80040ae: bd80 pop {r7, pc} + 80040b0: 20000545 .word 0x20000545 -080040b0 : +080040b4 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 80040b0: b580 push {r7, lr} - 80040b2: b082 sub sp, #8 - 80040b4: af00 add r7, sp, #0 + 80040b4: b580 push {r7, lr} + 80040b6: b082 sub sp, #8 + 80040b8: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_PWR_CLK_ENABLE(); - 80040b6: 4b11 ldr r3, [pc, #68] ; (80040fc ) - 80040b8: 6c1b ldr r3, [r3, #64] ; 0x40 - 80040ba: 4a10 ldr r2, [pc, #64] ; (80040fc ) - 80040bc: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 80040c0: 6413 str r3, [r2, #64] ; 0x40 - 80040c2: 4b0e ldr r3, [pc, #56] ; (80040fc ) - 80040c4: 6c1b ldr r3, [r3, #64] ; 0x40 - 80040c6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 80040ca: 607b str r3, [r7, #4] - 80040cc: 687b ldr r3, [r7, #4] + 80040ba: 4b11 ldr r3, [pc, #68] ; (8004100 ) + 80040bc: 6c1b ldr r3, [r3, #64] ; 0x40 + 80040be: 4a10 ldr r2, [pc, #64] ; (8004100 ) + 80040c0: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 80040c4: 6413 str r3, [r2, #64] ; 0x40 + 80040c6: 4b0e ldr r3, [pc, #56] ; (8004100 ) + 80040c8: 6c1b ldr r3, [r3, #64] ; 0x40 + 80040ca: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80040ce: 607b str r3, [r7, #4] + 80040d0: 687b ldr r3, [r7, #4] __HAL_RCC_SYSCFG_CLK_ENABLE(); - 80040ce: 4b0b ldr r3, [pc, #44] ; (80040fc ) - 80040d0: 6c5b ldr r3, [r3, #68] ; 0x44 - 80040d2: 4a0a ldr r2, [pc, #40] ; (80040fc ) - 80040d4: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 80040d8: 6453 str r3, [r2, #68] ; 0x44 - 80040da: 4b08 ldr r3, [pc, #32] ; (80040fc ) - 80040dc: 6c5b ldr r3, [r3, #68] ; 0x44 - 80040de: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 80040e2: 603b str r3, [r7, #0] - 80040e4: 683b ldr r3, [r7, #0] + 80040d2: 4b0b ldr r3, [pc, #44] ; (8004100 ) + 80040d4: 6c5b ldr r3, [r3, #68] ; 0x44 + 80040d6: 4a0a ldr r2, [pc, #40] ; (8004100 ) + 80040d8: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 80040dc: 6453 str r3, [r2, #68] ; 0x44 + 80040de: 4b08 ldr r3, [pc, #32] ; (8004100 ) + 80040e0: 6c5b ldr r3, [r3, #68] ; 0x44 + 80040e2: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 80040e6: 603b str r3, [r7, #0] + 80040e8: 683b ldr r3, [r7, #0] /* System interrupt init*/ /* PendSV_IRQn interrupt configuration */ HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0); - 80040e6: 2200 movs r2, #0 - 80040e8: 210f movs r1, #15 - 80040ea: f06f 0001 mvn.w r0, #1 - 80040ee: f001 fb15 bl 800571c + 80040ea: 2200 movs r2, #0 + 80040ec: 210f movs r1, #15 + 80040ee: f06f 0001 mvn.w r0, #1 + 80040f2: f001 fb15 bl 8005720 /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 80040f2: bf00 nop - 80040f4: 3708 adds r7, #8 - 80040f6: 46bd mov sp, r7 - 80040f8: bd80 pop {r7, pc} - 80040fa: bf00 nop - 80040fc: 40023800 .word 0x40023800 + 80040f6: bf00 nop + 80040f8: 3708 adds r7, #8 + 80040fa: 46bd mov sp, r7 + 80040fc: bd80 pop {r7, pc} + 80040fe: bf00 nop + 8004100: 40023800 .word 0x40023800 -08004100 : +08004104 : * This function configures the hardware resources used in this example * @param hadc: ADC handle pointer * @retval None */ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) { - 8004100: b580 push {r7, lr} - 8004102: b08c sub sp, #48 ; 0x30 - 8004104: af00 add r7, sp, #0 - 8004106: 6078 str r0, [r7, #4] + 8004104: b580 push {r7, lr} + 8004106: b08c sub sp, #48 ; 0x30 + 8004108: af00 add r7, sp, #0 + 800410a: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8004108: f107 031c add.w r3, r7, #28 - 800410c: 2200 movs r2, #0 - 800410e: 601a str r2, [r3, #0] - 8004110: 605a str r2, [r3, #4] - 8004112: 609a str r2, [r3, #8] - 8004114: 60da str r2, [r3, #12] - 8004116: 611a str r2, [r3, #16] + 800410c: f107 031c add.w r3, r7, #28 + 8004110: 2200 movs r2, #0 + 8004112: 601a str r2, [r3, #0] + 8004114: 605a str r2, [r3, #4] + 8004116: 609a str r2, [r3, #8] + 8004118: 60da str r2, [r3, #12] + 800411a: 611a str r2, [r3, #16] if(hadc->Instance==ADC1) - 8004118: 687b ldr r3, [r7, #4] - 800411a: 681b ldr r3, [r3, #0] - 800411c: 4a2a ldr r2, [pc, #168] ; (80041c8 ) - 800411e: 4293 cmp r3, r2 - 8004120: d124 bne.n 800416c + 800411c: 687b ldr r3, [r7, #4] + 800411e: 681b ldr r3, [r3, #0] + 8004120: 4a2a ldr r2, [pc, #168] ; (80041cc ) + 8004122: 4293 cmp r3, r2 + 8004124: d124 bne.n 8004170 { /* USER CODE BEGIN ADC1_MspInit 0 */ /* USER CODE END ADC1_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_ADC1_CLK_ENABLE(); - 8004122: 4b2a ldr r3, [pc, #168] ; (80041cc ) - 8004124: 6c5b ldr r3, [r3, #68] ; 0x44 - 8004126: 4a29 ldr r2, [pc, #164] ; (80041cc ) - 8004128: f443 7380 orr.w r3, r3, #256 ; 0x100 - 800412c: 6453 str r3, [r2, #68] ; 0x44 - 800412e: 4b27 ldr r3, [pc, #156] ; (80041cc ) - 8004130: 6c5b ldr r3, [r3, #68] ; 0x44 - 8004132: f403 7380 and.w r3, r3, #256 ; 0x100 - 8004136: 61bb str r3, [r7, #24] - 8004138: 69bb ldr r3, [r7, #24] + 8004126: 4b2a ldr r3, [pc, #168] ; (80041d0 ) + 8004128: 6c5b ldr r3, [r3, #68] ; 0x44 + 800412a: 4a29 ldr r2, [pc, #164] ; (80041d0 ) + 800412c: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8004130: 6453 str r3, [r2, #68] ; 0x44 + 8004132: 4b27 ldr r3, [pc, #156] ; (80041d0 ) + 8004134: 6c5b ldr r3, [r3, #68] ; 0x44 + 8004136: f403 7380 and.w r3, r3, #256 ; 0x100 + 800413a: 61bb str r3, [r7, #24] + 800413c: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOA_CLK_ENABLE(); - 800413a: 4b24 ldr r3, [pc, #144] ; (80041cc ) - 800413c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800413e: 4a23 ldr r2, [pc, #140] ; (80041cc ) - 8004140: f043 0301 orr.w r3, r3, #1 - 8004144: 6313 str r3, [r2, #48] ; 0x30 - 8004146: 4b21 ldr r3, [pc, #132] ; (80041cc ) - 8004148: 6b1b ldr r3, [r3, #48] ; 0x30 - 800414a: f003 0301 and.w r3, r3, #1 - 800414e: 617b str r3, [r7, #20] - 8004150: 697b ldr r3, [r7, #20] + 800413e: 4b24 ldr r3, [pc, #144] ; (80041d0 ) + 8004140: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004142: 4a23 ldr r2, [pc, #140] ; (80041d0 ) + 8004144: f043 0301 orr.w r3, r3, #1 + 8004148: 6313 str r3, [r2, #48] ; 0x30 + 800414a: 4b21 ldr r3, [pc, #132] ; (80041d0 ) + 800414c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800414e: f003 0301 and.w r3, r3, #1 + 8004152: 617b str r3, [r7, #20] + 8004154: 697b ldr r3, [r7, #20] /**ADC1 GPIO Configuration PA0/WKUP ------> ADC1_IN0 */ GPIO_InitStruct.Pin = GPIO_PIN_0; - 8004152: 2301 movs r3, #1 - 8004154: 61fb str r3, [r7, #28] + 8004156: 2301 movs r3, #1 + 8004158: 61fb str r3, [r7, #28] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 8004156: 2303 movs r3, #3 - 8004158: 623b str r3, [r7, #32] + 800415a: 2303 movs r3, #3 + 800415c: 623b str r3, [r7, #32] GPIO_InitStruct.Pull = GPIO_NOPULL; - 800415a: 2300 movs r3, #0 - 800415c: 627b str r3, [r7, #36] ; 0x24 + 800415e: 2300 movs r3, #0 + 8004160: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 800415e: f107 031c add.w r3, r7, #28 - 8004162: 4619 mov r1, r3 - 8004164: 481a ldr r0, [pc, #104] ; (80041d0 ) - 8004166: f003 fa89 bl 800767c + 8004162: f107 031c add.w r3, r7, #28 + 8004166: 4619 mov r1, r3 + 8004168: 481a ldr r0, [pc, #104] ; (80041d4 ) + 800416a: f003 fa89 bl 8007680 /* USER CODE BEGIN ADC3_MspInit 1 */ /* USER CODE END ADC3_MspInit 1 */ } } - 800416a: e029 b.n 80041c0 + 800416e: e029 b.n 80041c4 else if(hadc->Instance==ADC3) - 800416c: 687b ldr r3, [r7, #4] - 800416e: 681b ldr r3, [r3, #0] - 8004170: 4a18 ldr r2, [pc, #96] ; (80041d4 ) - 8004172: 4293 cmp r3, r2 - 8004174: d124 bne.n 80041c0 + 8004170: 687b ldr r3, [r7, #4] + 8004172: 681b ldr r3, [r3, #0] + 8004174: 4a18 ldr r2, [pc, #96] ; (80041d8 ) + 8004176: 4293 cmp r3, r2 + 8004178: d124 bne.n 80041c4 __HAL_RCC_ADC3_CLK_ENABLE(); - 8004176: 4b15 ldr r3, [pc, #84] ; (80041cc ) - 8004178: 6c5b ldr r3, [r3, #68] ; 0x44 - 800417a: 4a14 ldr r2, [pc, #80] ; (80041cc ) - 800417c: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 8004180: 6453 str r3, [r2, #68] ; 0x44 - 8004182: 4b12 ldr r3, [pc, #72] ; (80041cc ) - 8004184: 6c5b ldr r3, [r3, #68] ; 0x44 - 8004186: f403 6380 and.w r3, r3, #1024 ; 0x400 - 800418a: 613b str r3, [r7, #16] - 800418c: 693b ldr r3, [r7, #16] + 800417a: 4b15 ldr r3, [pc, #84] ; (80041d0 ) + 800417c: 6c5b ldr r3, [r3, #68] ; 0x44 + 800417e: 4a14 ldr r2, [pc, #80] ; (80041d0 ) + 8004180: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 8004184: 6453 str r3, [r2, #68] ; 0x44 + 8004186: 4b12 ldr r3, [pc, #72] ; (80041d0 ) + 8004188: 6c5b ldr r3, [r3, #68] ; 0x44 + 800418a: f403 6380 and.w r3, r3, #1024 ; 0x400 + 800418e: 613b str r3, [r7, #16] + 8004190: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOF_CLK_ENABLE(); - 800418e: 4b0f ldr r3, [pc, #60] ; (80041cc ) - 8004190: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004192: 4a0e ldr r2, [pc, #56] ; (80041cc ) - 8004194: f043 0320 orr.w r3, r3, #32 - 8004198: 6313 str r3, [r2, #48] ; 0x30 - 800419a: 4b0c ldr r3, [pc, #48] ; (80041cc ) - 800419c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800419e: f003 0320 and.w r3, r3, #32 - 80041a2: 60fb str r3, [r7, #12] - 80041a4: 68fb ldr r3, [r7, #12] + 8004192: 4b0f ldr r3, [pc, #60] ; (80041d0 ) + 8004194: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004196: 4a0e ldr r2, [pc, #56] ; (80041d0 ) + 8004198: f043 0320 orr.w r3, r3, #32 + 800419c: 6313 str r3, [r2, #48] ; 0x30 + 800419e: 4b0c ldr r3, [pc, #48] ; (80041d0 ) + 80041a0: 6b1b ldr r3, [r3, #48] ; 0x30 + 80041a2: f003 0320 and.w r3, r3, #32 + 80041a6: 60fb str r3, [r7, #12] + 80041a8: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_9|GPIO_PIN_8; - 80041a6: f44f 63e0 mov.w r3, #1792 ; 0x700 - 80041aa: 61fb str r3, [r7, #28] + 80041aa: f44f 63e0 mov.w r3, #1792 ; 0x700 + 80041ae: 61fb str r3, [r7, #28] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 80041ac: 2303 movs r3, #3 - 80041ae: 623b str r3, [r7, #32] + 80041b0: 2303 movs r3, #3 + 80041b2: 623b str r3, [r7, #32] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80041b0: 2300 movs r3, #0 - 80041b2: 627b str r3, [r7, #36] ; 0x24 + 80041b4: 2300 movs r3, #0 + 80041b6: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOF, &GPIO_InitStruct); - 80041b4: f107 031c add.w r3, r7, #28 - 80041b8: 4619 mov r1, r3 - 80041ba: 4807 ldr r0, [pc, #28] ; (80041d8 ) - 80041bc: f003 fa5e bl 800767c -} - 80041c0: bf00 nop - 80041c2: 3730 adds r7, #48 ; 0x30 - 80041c4: 46bd mov sp, r7 - 80041c6: bd80 pop {r7, pc} - 80041c8: 40012000 .word 0x40012000 - 80041cc: 40023800 .word 0x40023800 - 80041d0: 40020000 .word 0x40020000 - 80041d4: 40012200 .word 0x40012200 - 80041d8: 40021400 .word 0x40021400 - -080041dc : + 80041b8: f107 031c add.w r3, r7, #28 + 80041bc: 4619 mov r1, r3 + 80041be: 4807 ldr r0, [pc, #28] ; (80041dc ) + 80041c0: f003 fa5e bl 8007680 +} + 80041c4: bf00 nop + 80041c6: 3730 adds r7, #48 ; 0x30 + 80041c8: 46bd mov sp, r7 + 80041ca: bd80 pop {r7, pc} + 80041cc: 40012000 .word 0x40012000 + 80041d0: 40023800 .word 0x40023800 + 80041d4: 40020000 .word 0x40020000 + 80041d8: 40012200 .word 0x40012200 + 80041dc: 40021400 .word 0x40021400 + +080041e0 : * This function configures the hardware resources used in this example * @param hcrc: CRC handle pointer * @retval None */ void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc) { - 80041dc: b480 push {r7} - 80041de: b085 sub sp, #20 - 80041e0: af00 add r7, sp, #0 - 80041e2: 6078 str r0, [r7, #4] + 80041e0: b480 push {r7} + 80041e2: b085 sub sp, #20 + 80041e4: af00 add r7, sp, #0 + 80041e6: 6078 str r0, [r7, #4] if(hcrc->Instance==CRC) - 80041e4: 687b ldr r3, [r7, #4] - 80041e6: 681b ldr r3, [r3, #0] - 80041e8: 4a0a ldr r2, [pc, #40] ; (8004214 ) - 80041ea: 4293 cmp r3, r2 - 80041ec: d10b bne.n 8004206 + 80041e8: 687b ldr r3, [r7, #4] + 80041ea: 681b ldr r3, [r3, #0] + 80041ec: 4a0a ldr r2, [pc, #40] ; (8004218 ) + 80041ee: 4293 cmp r3, r2 + 80041f0: d10b bne.n 800420a { /* USER CODE BEGIN CRC_MspInit 0 */ /* USER CODE END CRC_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_CRC_CLK_ENABLE(); - 80041ee: 4b0a ldr r3, [pc, #40] ; (8004218 ) - 80041f0: 6b1b ldr r3, [r3, #48] ; 0x30 - 80041f2: 4a09 ldr r2, [pc, #36] ; (8004218 ) - 80041f4: f443 5380 orr.w r3, r3, #4096 ; 0x1000 - 80041f8: 6313 str r3, [r2, #48] ; 0x30 - 80041fa: 4b07 ldr r3, [pc, #28] ; (8004218 ) - 80041fc: 6b1b ldr r3, [r3, #48] ; 0x30 - 80041fe: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 8004202: 60fb str r3, [r7, #12] - 8004204: 68fb ldr r3, [r7, #12] + 80041f2: 4b0a ldr r3, [pc, #40] ; (800421c ) + 80041f4: 6b1b ldr r3, [r3, #48] ; 0x30 + 80041f6: 4a09 ldr r2, [pc, #36] ; (800421c ) + 80041f8: f443 5380 orr.w r3, r3, #4096 ; 0x1000 + 80041fc: 6313 str r3, [r2, #48] ; 0x30 + 80041fe: 4b07 ldr r3, [pc, #28] ; (800421c ) + 8004200: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004202: f403 5380 and.w r3, r3, #4096 ; 0x1000 + 8004206: 60fb str r3, [r7, #12] + 8004208: 68fb ldr r3, [r7, #12] /* USER CODE BEGIN CRC_MspInit 1 */ /* USER CODE END CRC_MspInit 1 */ } } - 8004206: bf00 nop - 8004208: 3714 adds r7, #20 - 800420a: 46bd mov sp, r7 - 800420c: f85d 7b04 ldr.w r7, [sp], #4 - 8004210: 4770 bx lr - 8004212: bf00 nop - 8004214: 40023000 .word 0x40023000 - 8004218: 40023800 .word 0x40023800 + 800420a: bf00 nop + 800420c: 3714 adds r7, #20 + 800420e: 46bd mov sp, r7 + 8004210: f85d 7b04 ldr.w r7, [sp], #4 + 8004214: 4770 bx lr + 8004216: bf00 nop + 8004218: 40023000 .word 0x40023000 + 800421c: 40023800 .word 0x40023800 -0800421c : +08004220 : * This function configures the hardware resources used in this example * @param hdac: DAC handle pointer * @retval None */ void HAL_DAC_MspInit(DAC_HandleTypeDef* hdac) { - 800421c: b580 push {r7, lr} - 800421e: b08a sub sp, #40 ; 0x28 - 8004220: af00 add r7, sp, #0 - 8004222: 6078 str r0, [r7, #4] + 8004220: b580 push {r7, lr} + 8004222: b08a sub sp, #40 ; 0x28 + 8004224: af00 add r7, sp, #0 + 8004226: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8004224: f107 0314 add.w r3, r7, #20 - 8004228: 2200 movs r2, #0 - 800422a: 601a str r2, [r3, #0] - 800422c: 605a str r2, [r3, #4] - 800422e: 609a str r2, [r3, #8] - 8004230: 60da str r2, [r3, #12] - 8004232: 611a str r2, [r3, #16] + 8004228: f107 0314 add.w r3, r7, #20 + 800422c: 2200 movs r2, #0 + 800422e: 601a str r2, [r3, #0] + 8004230: 605a str r2, [r3, #4] + 8004232: 609a str r2, [r3, #8] + 8004234: 60da str r2, [r3, #12] + 8004236: 611a str r2, [r3, #16] if(hdac->Instance==DAC) - 8004234: 687b ldr r3, [r7, #4] - 8004236: 681b ldr r3, [r3, #0] - 8004238: 4a19 ldr r2, [pc, #100] ; (80042a0 ) - 800423a: 4293 cmp r3, r2 - 800423c: d12b bne.n 8004296 + 8004238: 687b ldr r3, [r7, #4] + 800423a: 681b ldr r3, [r3, #0] + 800423c: 4a19 ldr r2, [pc, #100] ; (80042a4 ) + 800423e: 4293 cmp r3, r2 + 8004240: d12b bne.n 800429a { /* USER CODE BEGIN DAC_MspInit 0 */ /* USER CODE END DAC_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_DAC_CLK_ENABLE(); - 800423e: 4b19 ldr r3, [pc, #100] ; (80042a4 ) - 8004240: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004242: 4a18 ldr r2, [pc, #96] ; (80042a4 ) - 8004244: f043 5300 orr.w r3, r3, #536870912 ; 0x20000000 - 8004248: 6413 str r3, [r2, #64] ; 0x40 - 800424a: 4b16 ldr r3, [pc, #88] ; (80042a4 ) - 800424c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800424e: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8004252: 613b str r3, [r7, #16] - 8004254: 693b ldr r3, [r7, #16] + 8004242: 4b19 ldr r3, [pc, #100] ; (80042a8 ) + 8004244: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004246: 4a18 ldr r2, [pc, #96] ; (80042a8 ) + 8004248: f043 5300 orr.w r3, r3, #536870912 ; 0x20000000 + 800424c: 6413 str r3, [r2, #64] ; 0x40 + 800424e: 4b16 ldr r3, [pc, #88] ; (80042a8 ) + 8004250: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004252: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 + 8004256: 613b str r3, [r7, #16] + 8004258: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8004256: 4b13 ldr r3, [pc, #76] ; (80042a4 ) - 8004258: 6b1b ldr r3, [r3, #48] ; 0x30 - 800425a: 4a12 ldr r2, [pc, #72] ; (80042a4 ) - 800425c: f043 0301 orr.w r3, r3, #1 - 8004260: 6313 str r3, [r2, #48] ; 0x30 - 8004262: 4b10 ldr r3, [pc, #64] ; (80042a4 ) - 8004264: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004266: f003 0301 and.w r3, r3, #1 - 800426a: 60fb str r3, [r7, #12] - 800426c: 68fb ldr r3, [r7, #12] + 800425a: 4b13 ldr r3, [pc, #76] ; (80042a8 ) + 800425c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800425e: 4a12 ldr r2, [pc, #72] ; (80042a8 ) + 8004260: f043 0301 orr.w r3, r3, #1 + 8004264: 6313 str r3, [r2, #48] ; 0x30 + 8004266: 4b10 ldr r3, [pc, #64] ; (80042a8 ) + 8004268: 6b1b ldr r3, [r3, #48] ; 0x30 + 800426a: f003 0301 and.w r3, r3, #1 + 800426e: 60fb str r3, [r7, #12] + 8004270: 68fb ldr r3, [r7, #12] /**DAC GPIO Configuration PA4 ------> DAC_OUT1 */ GPIO_InitStruct.Pin = GPIO_PIN_4; - 800426e: 2310 movs r3, #16 - 8004270: 617b str r3, [r7, #20] + 8004272: 2310 movs r3, #16 + 8004274: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; - 8004272: 2303 movs r3, #3 - 8004274: 61bb str r3, [r7, #24] + 8004276: 2303 movs r3, #3 + 8004278: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004276: 2300 movs r3, #0 - 8004278: 61fb str r3, [r7, #28] + 800427a: 2300 movs r3, #0 + 800427c: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 800427a: f107 0314 add.w r3, r7, #20 - 800427e: 4619 mov r1, r3 - 8004280: 4809 ldr r0, [pc, #36] ; (80042a8 ) - 8004282: f003 f9fb bl 800767c + 800427e: f107 0314 add.w r3, r7, #20 + 8004282: 4619 mov r1, r3 + 8004284: 4809 ldr r0, [pc, #36] ; (80042ac ) + 8004286: f003 f9fb bl 8007680 /* DAC interrupt Init */ HAL_NVIC_SetPriority(TIM6_DAC_IRQn, 0, 0); - 8004286: 2200 movs r2, #0 - 8004288: 2100 movs r1, #0 - 800428a: 2036 movs r0, #54 ; 0x36 - 800428c: f001 fa46 bl 800571c + 800428a: 2200 movs r2, #0 + 800428c: 2100 movs r1, #0 + 800428e: 2036 movs r0, #54 ; 0x36 + 8004290: f001 fa46 bl 8005720 HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn); - 8004290: 2036 movs r0, #54 ; 0x36 - 8004292: f001 fa5f bl 8005754 + 8004294: 2036 movs r0, #54 ; 0x36 + 8004296: f001 fa5f bl 8005758 /* USER CODE BEGIN DAC_MspInit 1 */ /* USER CODE END DAC_MspInit 1 */ } } - 8004296: bf00 nop - 8004298: 3728 adds r7, #40 ; 0x28 - 800429a: 46bd mov sp, r7 - 800429c: bd80 pop {r7, pc} - 800429e: bf00 nop - 80042a0: 40007400 .word 0x40007400 - 80042a4: 40023800 .word 0x40023800 - 80042a8: 40020000 .word 0x40020000 + 800429a: bf00 nop + 800429c: 3728 adds r7, #40 ; 0x28 + 800429e: 46bd mov sp, r7 + 80042a0: bd80 pop {r7, pc} + 80042a2: bf00 nop + 80042a4: 40007400 .word 0x40007400 + 80042a8: 40023800 .word 0x40023800 + 80042ac: 40020000 .word 0x40020000 -080042ac : +080042b0 : * This function configures the hardware resources used in this example * @param hdma2d: DMA2D handle pointer * @retval None */ void HAL_DMA2D_MspInit(DMA2D_HandleTypeDef* hdma2d) { - 80042ac: b480 push {r7} - 80042ae: b085 sub sp, #20 - 80042b0: af00 add r7, sp, #0 - 80042b2: 6078 str r0, [r7, #4] + 80042b0: b480 push {r7} + 80042b2: b085 sub sp, #20 + 80042b4: af00 add r7, sp, #0 + 80042b6: 6078 str r0, [r7, #4] if(hdma2d->Instance==DMA2D) - 80042b4: 687b ldr r3, [r7, #4] - 80042b6: 681b ldr r3, [r3, #0] - 80042b8: 4a0a ldr r2, [pc, #40] ; (80042e4 ) - 80042ba: 4293 cmp r3, r2 - 80042bc: d10b bne.n 80042d6 + 80042b8: 687b ldr r3, [r7, #4] + 80042ba: 681b ldr r3, [r3, #0] + 80042bc: 4a0a ldr r2, [pc, #40] ; (80042e8 ) + 80042be: 4293 cmp r3, r2 + 80042c0: d10b bne.n 80042da { /* USER CODE BEGIN DMA2D_MspInit 0 */ /* USER CODE END DMA2D_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_DMA2D_CLK_ENABLE(); - 80042be: 4b0a ldr r3, [pc, #40] ; (80042e8 ) - 80042c0: 6b1b ldr r3, [r3, #48] ; 0x30 - 80042c2: 4a09 ldr r2, [pc, #36] ; (80042e8 ) - 80042c4: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 - 80042c8: 6313 str r3, [r2, #48] ; 0x30 - 80042ca: 4b07 ldr r3, [pc, #28] ; (80042e8 ) - 80042cc: 6b1b ldr r3, [r3, #48] ; 0x30 - 80042ce: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 80042d2: 60fb str r3, [r7, #12] - 80042d4: 68fb ldr r3, [r7, #12] + 80042c2: 4b0a ldr r3, [pc, #40] ; (80042ec ) + 80042c4: 6b1b ldr r3, [r3, #48] ; 0x30 + 80042c6: 4a09 ldr r2, [pc, #36] ; (80042ec ) + 80042c8: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 + 80042cc: 6313 str r3, [r2, #48] ; 0x30 + 80042ce: 4b07 ldr r3, [pc, #28] ; (80042ec ) + 80042d0: 6b1b ldr r3, [r3, #48] ; 0x30 + 80042d2: f403 0300 and.w r3, r3, #8388608 ; 0x800000 + 80042d6: 60fb str r3, [r7, #12] + 80042d8: 68fb ldr r3, [r7, #12] /* USER CODE BEGIN DMA2D_MspInit 1 */ /* USER CODE END DMA2D_MspInit 1 */ } } - 80042d6: bf00 nop - 80042d8: 3714 adds r7, #20 - 80042da: 46bd mov sp, r7 - 80042dc: f85d 7b04 ldr.w r7, [sp], #4 - 80042e0: 4770 bx lr - 80042e2: bf00 nop - 80042e4: 4002b000 .word 0x4002b000 - 80042e8: 40023800 .word 0x40023800 + 80042da: bf00 nop + 80042dc: 3714 adds r7, #20 + 80042de: 46bd mov sp, r7 + 80042e0: f85d 7b04 ldr.w r7, [sp], #4 + 80042e4: 4770 bx lr + 80042e6: bf00 nop + 80042e8: 4002b000 .word 0x4002b000 + 80042ec: 40023800 .word 0x40023800 -080042ec : +080042f0 : * This function configures the hardware resources used in this example * @param hi2c: I2C handle pointer * @retval None */ void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) { - 80042ec: b580 push {r7, lr} - 80042ee: b08c sub sp, #48 ; 0x30 - 80042f0: af00 add r7, sp, #0 - 80042f2: 6078 str r0, [r7, #4] + 80042f0: b580 push {r7, lr} + 80042f2: b08c sub sp, #48 ; 0x30 + 80042f4: af00 add r7, sp, #0 + 80042f6: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80042f4: f107 031c add.w r3, r7, #28 - 80042f8: 2200 movs r2, #0 - 80042fa: 601a str r2, [r3, #0] - 80042fc: 605a str r2, [r3, #4] - 80042fe: 609a str r2, [r3, #8] - 8004300: 60da str r2, [r3, #12] - 8004302: 611a str r2, [r3, #16] + 80042f8: f107 031c add.w r3, r7, #28 + 80042fc: 2200 movs r2, #0 + 80042fe: 601a str r2, [r3, #0] + 8004300: 605a str r2, [r3, #4] + 8004302: 609a str r2, [r3, #8] + 8004304: 60da str r2, [r3, #12] + 8004306: 611a str r2, [r3, #16] if(hi2c->Instance==I2C1) - 8004304: 687b ldr r3, [r7, #4] - 8004306: 681b ldr r3, [r3, #0] - 8004308: 4a2f ldr r2, [pc, #188] ; (80043c8 ) - 800430a: 4293 cmp r3, r2 - 800430c: d129 bne.n 8004362 + 8004308: 687b ldr r3, [r7, #4] + 800430a: 681b ldr r3, [r3, #0] + 800430c: 4a2f ldr r2, [pc, #188] ; (80043cc ) + 800430e: 4293 cmp r3, r2 + 8004310: d129 bne.n 8004366 { /* USER CODE BEGIN I2C1_MspInit 0 */ /* USER CODE END I2C1_MspInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); - 800430e: 4b2f ldr r3, [pc, #188] ; (80043cc ) - 8004310: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004312: 4a2e ldr r2, [pc, #184] ; (80043cc ) - 8004314: f043 0302 orr.w r3, r3, #2 - 8004318: 6313 str r3, [r2, #48] ; 0x30 - 800431a: 4b2c ldr r3, [pc, #176] ; (80043cc ) - 800431c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800431e: f003 0302 and.w r3, r3, #2 - 8004322: 61bb str r3, [r7, #24] - 8004324: 69bb ldr r3, [r7, #24] + 8004312: 4b2f ldr r3, [pc, #188] ; (80043d0 ) + 8004314: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004316: 4a2e ldr r2, [pc, #184] ; (80043d0 ) + 8004318: f043 0302 orr.w r3, r3, #2 + 800431c: 6313 str r3, [r2, #48] ; 0x30 + 800431e: 4b2c ldr r3, [pc, #176] ; (80043d0 ) + 8004320: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004322: f003 0302 and.w r3, r3, #2 + 8004326: 61bb str r3, [r7, #24] + 8004328: 69bb ldr r3, [r7, #24] /**I2C1 GPIO Configuration PB8 ------> I2C1_SCL PB9 ------> I2C1_SDA */ GPIO_InitStruct.Pin = ARDUINO_SCL_D15_Pin|ARDUINO_SDA_D14_Pin; - 8004326: f44f 7340 mov.w r3, #768 ; 0x300 - 800432a: 61fb str r3, [r7, #28] + 800432a: f44f 7340 mov.w r3, #768 ; 0x300 + 800432e: 61fb str r3, [r7, #28] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 800432c: 2312 movs r3, #18 - 800432e: 623b str r3, [r7, #32] + 8004330: 2312 movs r3, #18 + 8004332: 623b str r3, [r7, #32] GPIO_InitStruct.Pull = GPIO_PULLUP; - 8004330: 2301 movs r3, #1 - 8004332: 627b str r3, [r7, #36] ; 0x24 + 8004334: 2301 movs r3, #1 + 8004336: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8004334: 2300 movs r3, #0 - 8004336: 62bb str r3, [r7, #40] ; 0x28 + 8004338: 2300 movs r3, #0 + 800433a: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Alternate = GPIO_AF4_I2C1; - 8004338: 2304 movs r3, #4 - 800433a: 62fb str r3, [r7, #44] ; 0x2c + 800433c: 2304 movs r3, #4 + 800433e: 62fb str r3, [r7, #44] ; 0x2c HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 800433c: f107 031c add.w r3, r7, #28 - 8004340: 4619 mov r1, r3 - 8004342: 4823 ldr r0, [pc, #140] ; (80043d0 ) - 8004344: f003 f99a bl 800767c + 8004340: f107 031c add.w r3, r7, #28 + 8004344: 4619 mov r1, r3 + 8004346: 4823 ldr r0, [pc, #140] ; (80043d4 ) + 8004348: f003 f99a bl 8007680 /* Peripheral clock enable */ __HAL_RCC_I2C1_CLK_ENABLE(); - 8004348: 4b20 ldr r3, [pc, #128] ; (80043cc ) - 800434a: 6c1b ldr r3, [r3, #64] ; 0x40 - 800434c: 4a1f ldr r2, [pc, #124] ; (80043cc ) - 800434e: f443 1300 orr.w r3, r3, #2097152 ; 0x200000 - 8004352: 6413 str r3, [r2, #64] ; 0x40 - 8004354: 4b1d ldr r3, [pc, #116] ; (80043cc ) - 8004356: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004358: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 800435c: 617b str r3, [r7, #20] - 800435e: 697b ldr r3, [r7, #20] + 800434c: 4b20 ldr r3, [pc, #128] ; (80043d0 ) + 800434e: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004350: 4a1f ldr r2, [pc, #124] ; (80043d0 ) + 8004352: f443 1300 orr.w r3, r3, #2097152 ; 0x200000 + 8004356: 6413 str r3, [r2, #64] ; 0x40 + 8004358: 4b1d ldr r3, [pc, #116] ; (80043d0 ) + 800435a: 6c1b ldr r3, [r3, #64] ; 0x40 + 800435c: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8004360: 617b str r3, [r7, #20] + 8004362: 697b ldr r3, [r7, #20] /* USER CODE BEGIN I2C3_MspInit 1 */ /* USER CODE END I2C3_MspInit 1 */ } } - 8004360: e02d b.n 80043be + 8004364: e02d b.n 80043c2 else if(hi2c->Instance==I2C3) - 8004362: 687b ldr r3, [r7, #4] - 8004364: 681b ldr r3, [r3, #0] - 8004366: 4a1b ldr r2, [pc, #108] ; (80043d4 ) - 8004368: 4293 cmp r3, r2 - 800436a: d128 bne.n 80043be + 8004366: 687b ldr r3, [r7, #4] + 8004368: 681b ldr r3, [r3, #0] + 800436a: 4a1b ldr r2, [pc, #108] ; (80043d8 ) + 800436c: 4293 cmp r3, r2 + 800436e: d128 bne.n 80043c2 __HAL_RCC_GPIOH_CLK_ENABLE(); - 800436c: 4b17 ldr r3, [pc, #92] ; (80043cc ) - 800436e: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004370: 4a16 ldr r2, [pc, #88] ; (80043cc ) - 8004372: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8004376: 6313 str r3, [r2, #48] ; 0x30 - 8004378: 4b14 ldr r3, [pc, #80] ; (80043cc ) - 800437a: 6b1b ldr r3, [r3, #48] ; 0x30 - 800437c: f003 0380 and.w r3, r3, #128 ; 0x80 - 8004380: 613b str r3, [r7, #16] - 8004382: 693b ldr r3, [r7, #16] + 8004370: 4b17 ldr r3, [pc, #92] ; (80043d0 ) + 8004372: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004374: 4a16 ldr r2, [pc, #88] ; (80043d0 ) + 8004376: f043 0380 orr.w r3, r3, #128 ; 0x80 + 800437a: 6313 str r3, [r2, #48] ; 0x30 + 800437c: 4b14 ldr r3, [pc, #80] ; (80043d0 ) + 800437e: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004380: f003 0380 and.w r3, r3, #128 ; 0x80 + 8004384: 613b str r3, [r7, #16] + 8004386: 693b ldr r3, [r7, #16] GPIO_InitStruct.Pin = LCD_SCL_Pin|LCD_SDA_Pin; - 8004384: f44f 73c0 mov.w r3, #384 ; 0x180 - 8004388: 61fb str r3, [r7, #28] + 8004388: f44f 73c0 mov.w r3, #384 ; 0x180 + 800438c: 61fb str r3, [r7, #28] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 800438a: 2312 movs r3, #18 - 800438c: 623b str r3, [r7, #32] + 800438e: 2312 movs r3, #18 + 8004390: 623b str r3, [r7, #32] GPIO_InitStruct.Pull = GPIO_PULLUP; - 800438e: 2301 movs r3, #1 - 8004390: 627b str r3, [r7, #36] ; 0x24 + 8004392: 2301 movs r3, #1 + 8004394: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004392: 2303 movs r3, #3 - 8004394: 62bb str r3, [r7, #40] ; 0x28 + 8004396: 2303 movs r3, #3 + 8004398: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Alternate = GPIO_AF4_I2C3; - 8004396: 2304 movs r3, #4 - 8004398: 62fb str r3, [r7, #44] ; 0x2c + 800439a: 2304 movs r3, #4 + 800439c: 62fb str r3, [r7, #44] ; 0x2c HAL_GPIO_Init(GPIOH, &GPIO_InitStruct); - 800439a: f107 031c add.w r3, r7, #28 - 800439e: 4619 mov r1, r3 - 80043a0: 480d ldr r0, [pc, #52] ; (80043d8 ) - 80043a2: f003 f96b bl 800767c + 800439e: f107 031c add.w r3, r7, #28 + 80043a2: 4619 mov r1, r3 + 80043a4: 480d ldr r0, [pc, #52] ; (80043dc ) + 80043a6: f003 f96b bl 8007680 __HAL_RCC_I2C3_CLK_ENABLE(); - 80043a6: 4b09 ldr r3, [pc, #36] ; (80043cc ) - 80043a8: 6c1b ldr r3, [r3, #64] ; 0x40 - 80043aa: 4a08 ldr r2, [pc, #32] ; (80043cc ) - 80043ac: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 - 80043b0: 6413 str r3, [r2, #64] ; 0x40 - 80043b2: 4b06 ldr r3, [pc, #24] ; (80043cc ) - 80043b4: 6c1b ldr r3, [r3, #64] ; 0x40 - 80043b6: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 80043ba: 60fb str r3, [r7, #12] - 80043bc: 68fb ldr r3, [r7, #12] -} - 80043be: bf00 nop - 80043c0: 3730 adds r7, #48 ; 0x30 - 80043c2: 46bd mov sp, r7 - 80043c4: bd80 pop {r7, pc} - 80043c6: bf00 nop - 80043c8: 40005400 .word 0x40005400 - 80043cc: 40023800 .word 0x40023800 - 80043d0: 40020400 .word 0x40020400 - 80043d4: 40005c00 .word 0x40005c00 - 80043d8: 40021c00 .word 0x40021c00 - -080043dc : + 80043aa: 4b09 ldr r3, [pc, #36] ; (80043d0 ) + 80043ac: 6c1b ldr r3, [r3, #64] ; 0x40 + 80043ae: 4a08 ldr r2, [pc, #32] ; (80043d0 ) + 80043b0: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 + 80043b4: 6413 str r3, [r2, #64] ; 0x40 + 80043b6: 4b06 ldr r3, [pc, #24] ; (80043d0 ) + 80043b8: 6c1b ldr r3, [r3, #64] ; 0x40 + 80043ba: f403 0300 and.w r3, r3, #8388608 ; 0x800000 + 80043be: 60fb str r3, [r7, #12] + 80043c0: 68fb ldr r3, [r7, #12] +} + 80043c2: bf00 nop + 80043c4: 3730 adds r7, #48 ; 0x30 + 80043c6: 46bd mov sp, r7 + 80043c8: bd80 pop {r7, pc} + 80043ca: bf00 nop + 80043cc: 40005400 .word 0x40005400 + 80043d0: 40023800 .word 0x40023800 + 80043d4: 40020400 .word 0x40020400 + 80043d8: 40005c00 .word 0x40005c00 + 80043dc: 40021c00 .word 0x40021c00 + +080043e0 : * This function freeze the hardware resources used in this example * @param hi2c: I2C handle pointer * @retval None */ void HAL_I2C_MspDeInit(I2C_HandleTypeDef* hi2c) { - 80043dc: b580 push {r7, lr} - 80043de: b082 sub sp, #8 - 80043e0: af00 add r7, sp, #0 - 80043e2: 6078 str r0, [r7, #4] + 80043e0: b580 push {r7, lr} + 80043e2: b082 sub sp, #8 + 80043e4: af00 add r7, sp, #0 + 80043e6: 6078 str r0, [r7, #4] if(hi2c->Instance==I2C1) - 80043e4: 687b ldr r3, [r7, #4] - 80043e6: 681b ldr r3, [r3, #0] - 80043e8: 4a15 ldr r2, [pc, #84] ; (8004440 ) - 80043ea: 4293 cmp r3, r2 - 80043ec: d110 bne.n 8004410 + 80043e8: 687b ldr r3, [r7, #4] + 80043ea: 681b ldr r3, [r3, #0] + 80043ec: 4a15 ldr r2, [pc, #84] ; (8004444 ) + 80043ee: 4293 cmp r3, r2 + 80043f0: d110 bne.n 8004414 { /* USER CODE BEGIN I2C1_MspDeInit 0 */ /* USER CODE END I2C1_MspDeInit 0 */ /* Peripheral clock disable */ __HAL_RCC_I2C1_CLK_DISABLE(); - 80043ee: 4b15 ldr r3, [pc, #84] ; (8004444 ) - 80043f0: 6c1b ldr r3, [r3, #64] ; 0x40 - 80043f2: 4a14 ldr r2, [pc, #80] ; (8004444 ) - 80043f4: f423 1300 bic.w r3, r3, #2097152 ; 0x200000 - 80043f8: 6413 str r3, [r2, #64] ; 0x40 + 80043f2: 4b15 ldr r3, [pc, #84] ; (8004448 ) + 80043f4: 6c1b ldr r3, [r3, #64] ; 0x40 + 80043f6: 4a14 ldr r2, [pc, #80] ; (8004448 ) + 80043f8: f423 1300 bic.w r3, r3, #2097152 ; 0x200000 + 80043fc: 6413 str r3, [r2, #64] ; 0x40 /**I2C1 GPIO Configuration PB8 ------> I2C1_SCL PB9 ------> I2C1_SDA */ HAL_GPIO_DeInit(ARDUINO_SCL_D15_GPIO_Port, ARDUINO_SCL_D15_Pin); - 80043fa: f44f 7180 mov.w r1, #256 ; 0x100 - 80043fe: 4812 ldr r0, [pc, #72] ; (8004448 ) - 8004400: f003 fae6 bl 80079d0 + 80043fe: f44f 7180 mov.w r1, #256 ; 0x100 + 8004402: 4812 ldr r0, [pc, #72] ; (800444c ) + 8004404: f003 fae6 bl 80079d4 HAL_GPIO_DeInit(ARDUINO_SDA_D14_GPIO_Port, ARDUINO_SDA_D14_Pin); - 8004404: f44f 7100 mov.w r1, #512 ; 0x200 - 8004408: 480f ldr r0, [pc, #60] ; (8004448 ) - 800440a: f003 fae1 bl 80079d0 + 8004408: f44f 7100 mov.w r1, #512 ; 0x200 + 800440c: 480f ldr r0, [pc, #60] ; (800444c ) + 800440e: f003 fae1 bl 80079d4 /* USER CODE BEGIN I2C3_MspDeInit 1 */ /* USER CODE END I2C3_MspDeInit 1 */ } } - 800440e: e013 b.n 8004438 + 8004412: e013 b.n 800443c else if(hi2c->Instance==I2C3) - 8004410: 687b ldr r3, [r7, #4] - 8004412: 681b ldr r3, [r3, #0] - 8004414: 4a0d ldr r2, [pc, #52] ; (800444c ) - 8004416: 4293 cmp r3, r2 - 8004418: d10e bne.n 8004438 + 8004414: 687b ldr r3, [r7, #4] + 8004416: 681b ldr r3, [r3, #0] + 8004418: 4a0d ldr r2, [pc, #52] ; (8004450 ) + 800441a: 4293 cmp r3, r2 + 800441c: d10e bne.n 800443c __HAL_RCC_I2C3_CLK_DISABLE(); - 800441a: 4b0a ldr r3, [pc, #40] ; (8004444 ) - 800441c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800441e: 4a09 ldr r2, [pc, #36] ; (8004444 ) - 8004420: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 - 8004424: 6413 str r3, [r2, #64] ; 0x40 + 800441e: 4b0a ldr r3, [pc, #40] ; (8004448 ) + 8004420: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004422: 4a09 ldr r2, [pc, #36] ; (8004448 ) + 8004424: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 + 8004428: 6413 str r3, [r2, #64] ; 0x40 HAL_GPIO_DeInit(LCD_SCL_GPIO_Port, LCD_SCL_Pin); - 8004426: 2180 movs r1, #128 ; 0x80 - 8004428: 4809 ldr r0, [pc, #36] ; (8004450 ) - 800442a: f003 fad1 bl 80079d0 + 800442a: 2180 movs r1, #128 ; 0x80 + 800442c: 4809 ldr r0, [pc, #36] ; (8004454 ) + 800442e: f003 fad1 bl 80079d4 HAL_GPIO_DeInit(LCD_SDA_GPIO_Port, LCD_SDA_Pin); - 800442e: f44f 7180 mov.w r1, #256 ; 0x100 - 8004432: 4807 ldr r0, [pc, #28] ; (8004450 ) - 8004434: f003 facc bl 80079d0 -} - 8004438: bf00 nop - 800443a: 3708 adds r7, #8 - 800443c: 46bd mov sp, r7 - 800443e: bd80 pop {r7, pc} - 8004440: 40005400 .word 0x40005400 - 8004444: 40023800 .word 0x40023800 - 8004448: 40020400 .word 0x40020400 - 800444c: 40005c00 .word 0x40005c00 - 8004450: 40021c00 .word 0x40021c00 - -08004454 : + 8004432: f44f 7180 mov.w r1, #256 ; 0x100 + 8004436: 4807 ldr r0, [pc, #28] ; (8004454 ) + 8004438: f003 facc bl 80079d4 +} + 800443c: bf00 nop + 800443e: 3708 adds r7, #8 + 8004440: 46bd mov sp, r7 + 8004442: bd80 pop {r7, pc} + 8004444: 40005400 .word 0x40005400 + 8004448: 40023800 .word 0x40023800 + 800444c: 40020400 .word 0x40020400 + 8004450: 40005c00 .word 0x40005c00 + 8004454: 40021c00 .word 0x40021c00 + +08004458 : * This function configures the hardware resources used in this example * @param hltdc: LTDC handle pointer * @retval None */ void HAL_LTDC_MspInit(LTDC_HandleTypeDef* hltdc) { - 8004454: b580 push {r7, lr} - 8004456: b08e sub sp, #56 ; 0x38 - 8004458: af00 add r7, sp, #0 - 800445a: 6078 str r0, [r7, #4] + 8004458: b580 push {r7, lr} + 800445a: b08e sub sp, #56 ; 0x38 + 800445c: af00 add r7, sp, #0 + 800445e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800445c: f107 0324 add.w r3, r7, #36 ; 0x24 - 8004460: 2200 movs r2, #0 - 8004462: 601a str r2, [r3, #0] - 8004464: 605a str r2, [r3, #4] - 8004466: 609a str r2, [r3, #8] - 8004468: 60da str r2, [r3, #12] - 800446a: 611a str r2, [r3, #16] + 8004460: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004464: 2200 movs r2, #0 + 8004466: 601a str r2, [r3, #0] + 8004468: 605a str r2, [r3, #4] + 800446a: 609a str r2, [r3, #8] + 800446c: 60da str r2, [r3, #12] + 800446e: 611a str r2, [r3, #16] if(hltdc->Instance==LTDC) - 800446c: 687b ldr r3, [r7, #4] - 800446e: 681b ldr r3, [r3, #0] - 8004470: 4a55 ldr r2, [pc, #340] ; (80045c8 ) - 8004472: 4293 cmp r3, r2 - 8004474: f040 80a3 bne.w 80045be + 8004470: 687b ldr r3, [r7, #4] + 8004472: 681b ldr r3, [r3, #0] + 8004474: 4a55 ldr r2, [pc, #340] ; (80045cc ) + 8004476: 4293 cmp r3, r2 + 8004478: f040 80a3 bne.w 80045c2 { /* USER CODE BEGIN LTDC_MspInit 0 */ /* USER CODE END LTDC_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_LTDC_CLK_ENABLE(); - 8004478: 4b54 ldr r3, [pc, #336] ; (80045cc ) - 800447a: 6c5b ldr r3, [r3, #68] ; 0x44 - 800447c: 4a53 ldr r2, [pc, #332] ; (80045cc ) - 800447e: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 8004482: 6453 str r3, [r2, #68] ; 0x44 - 8004484: 4b51 ldr r3, [pc, #324] ; (80045cc ) - 8004486: 6c5b ldr r3, [r3, #68] ; 0x44 - 8004488: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 800448c: 623b str r3, [r7, #32] - 800448e: 6a3b ldr r3, [r7, #32] + 800447c: 4b54 ldr r3, [pc, #336] ; (80045d0 ) + 800447e: 6c5b ldr r3, [r3, #68] ; 0x44 + 8004480: 4a53 ldr r2, [pc, #332] ; (80045d0 ) + 8004482: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 + 8004486: 6453 str r3, [r2, #68] ; 0x44 + 8004488: 4b51 ldr r3, [pc, #324] ; (80045d0 ) + 800448a: 6c5b ldr r3, [r3, #68] ; 0x44 + 800448c: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 + 8004490: 623b str r3, [r7, #32] + 8004492: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOE_CLK_ENABLE(); - 8004490: 4b4e ldr r3, [pc, #312] ; (80045cc ) - 8004492: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004494: 4a4d ldr r2, [pc, #308] ; (80045cc ) - 8004496: f043 0310 orr.w r3, r3, #16 - 800449a: 6313 str r3, [r2, #48] ; 0x30 - 800449c: 4b4b ldr r3, [pc, #300] ; (80045cc ) - 800449e: 6b1b ldr r3, [r3, #48] ; 0x30 - 80044a0: f003 0310 and.w r3, r3, #16 - 80044a4: 61fb str r3, [r7, #28] - 80044a6: 69fb ldr r3, [r7, #28] + 8004494: 4b4e ldr r3, [pc, #312] ; (80045d0 ) + 8004496: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004498: 4a4d ldr r2, [pc, #308] ; (80045d0 ) + 800449a: f043 0310 orr.w r3, r3, #16 + 800449e: 6313 str r3, [r2, #48] ; 0x30 + 80044a0: 4b4b ldr r3, [pc, #300] ; (80045d0 ) + 80044a2: 6b1b ldr r3, [r3, #48] ; 0x30 + 80044a4: f003 0310 and.w r3, r3, #16 + 80044a8: 61fb str r3, [r7, #28] + 80044aa: 69fb ldr r3, [r7, #28] __HAL_RCC_GPIOJ_CLK_ENABLE(); - 80044a8: 4b48 ldr r3, [pc, #288] ; (80045cc ) - 80044aa: 6b1b ldr r3, [r3, #48] ; 0x30 - 80044ac: 4a47 ldr r2, [pc, #284] ; (80045cc ) - 80044ae: f443 7300 orr.w r3, r3, #512 ; 0x200 - 80044b2: 6313 str r3, [r2, #48] ; 0x30 - 80044b4: 4b45 ldr r3, [pc, #276] ; (80045cc ) - 80044b6: 6b1b ldr r3, [r3, #48] ; 0x30 - 80044b8: f403 7300 and.w r3, r3, #512 ; 0x200 - 80044bc: 61bb str r3, [r7, #24] - 80044be: 69bb ldr r3, [r7, #24] + 80044ac: 4b48 ldr r3, [pc, #288] ; (80045d0 ) + 80044ae: 6b1b ldr r3, [r3, #48] ; 0x30 + 80044b0: 4a47 ldr r2, [pc, #284] ; (80045d0 ) + 80044b2: f443 7300 orr.w r3, r3, #512 ; 0x200 + 80044b6: 6313 str r3, [r2, #48] ; 0x30 + 80044b8: 4b45 ldr r3, [pc, #276] ; (80045d0 ) + 80044ba: 6b1b ldr r3, [r3, #48] ; 0x30 + 80044bc: f403 7300 and.w r3, r3, #512 ; 0x200 + 80044c0: 61bb str r3, [r7, #24] + 80044c2: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOK_CLK_ENABLE(); - 80044c0: 4b42 ldr r3, [pc, #264] ; (80045cc ) - 80044c2: 6b1b ldr r3, [r3, #48] ; 0x30 - 80044c4: 4a41 ldr r2, [pc, #260] ; (80045cc ) - 80044c6: f443 6380 orr.w r3, r3, #1024 ; 0x400 - 80044ca: 6313 str r3, [r2, #48] ; 0x30 - 80044cc: 4b3f ldr r3, [pc, #252] ; (80045cc ) - 80044ce: 6b1b ldr r3, [r3, #48] ; 0x30 - 80044d0: f403 6380 and.w r3, r3, #1024 ; 0x400 - 80044d4: 617b str r3, [r7, #20] - 80044d6: 697b ldr r3, [r7, #20] + 80044c4: 4b42 ldr r3, [pc, #264] ; (80045d0 ) + 80044c6: 6b1b ldr r3, [r3, #48] ; 0x30 + 80044c8: 4a41 ldr r2, [pc, #260] ; (80045d0 ) + 80044ca: f443 6380 orr.w r3, r3, #1024 ; 0x400 + 80044ce: 6313 str r3, [r2, #48] ; 0x30 + 80044d0: 4b3f ldr r3, [pc, #252] ; (80045d0 ) + 80044d2: 6b1b ldr r3, [r3, #48] ; 0x30 + 80044d4: f403 6380 and.w r3, r3, #1024 ; 0x400 + 80044d8: 617b str r3, [r7, #20] + 80044da: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOG_CLK_ENABLE(); - 80044d8: 4b3c ldr r3, [pc, #240] ; (80045cc ) - 80044da: 6b1b ldr r3, [r3, #48] ; 0x30 - 80044dc: 4a3b ldr r2, [pc, #236] ; (80045cc ) - 80044de: f043 0340 orr.w r3, r3, #64 ; 0x40 - 80044e2: 6313 str r3, [r2, #48] ; 0x30 - 80044e4: 4b39 ldr r3, [pc, #228] ; (80045cc ) - 80044e6: 6b1b ldr r3, [r3, #48] ; 0x30 - 80044e8: f003 0340 and.w r3, r3, #64 ; 0x40 - 80044ec: 613b str r3, [r7, #16] - 80044ee: 693b ldr r3, [r7, #16] + 80044dc: 4b3c ldr r3, [pc, #240] ; (80045d0 ) + 80044de: 6b1b ldr r3, [r3, #48] ; 0x30 + 80044e0: 4a3b ldr r2, [pc, #236] ; (80045d0 ) + 80044e2: f043 0340 orr.w r3, r3, #64 ; 0x40 + 80044e6: 6313 str r3, [r2, #48] ; 0x30 + 80044e8: 4b39 ldr r3, [pc, #228] ; (80045d0 ) + 80044ea: 6b1b ldr r3, [r3, #48] ; 0x30 + 80044ec: f003 0340 and.w r3, r3, #64 ; 0x40 + 80044f0: 613b str r3, [r7, #16] + 80044f2: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOI_CLK_ENABLE(); - 80044f0: 4b36 ldr r3, [pc, #216] ; (80045cc ) - 80044f2: 6b1b ldr r3, [r3, #48] ; 0x30 - 80044f4: 4a35 ldr r2, [pc, #212] ; (80045cc ) - 80044f6: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80044fa: 6313 str r3, [r2, #48] ; 0x30 - 80044fc: 4b33 ldr r3, [pc, #204] ; (80045cc ) - 80044fe: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004500: f403 7380 and.w r3, r3, #256 ; 0x100 - 8004504: 60fb str r3, [r7, #12] - 8004506: 68fb ldr r3, [r7, #12] + 80044f4: 4b36 ldr r3, [pc, #216] ; (80045d0 ) + 80044f6: 6b1b ldr r3, [r3, #48] ; 0x30 + 80044f8: 4a35 ldr r2, [pc, #212] ; (80045d0 ) + 80044fa: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80044fe: 6313 str r3, [r2, #48] ; 0x30 + 8004500: 4b33 ldr r3, [pc, #204] ; (80045d0 ) + 8004502: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004504: f403 7380 and.w r3, r3, #256 ; 0x100 + 8004508: 60fb str r3, [r7, #12] + 800450a: 68fb ldr r3, [r7, #12] PJ3 ------> LTDC_R4 PJ2 ------> LTDC_R3 PJ0 ------> LTDC_R1 PJ1 ------> LTDC_R2 */ GPIO_InitStruct.Pin = LCD_B0_Pin; - 8004508: 2310 movs r3, #16 - 800450a: 627b str r3, [r7, #36] ; 0x24 + 800450c: 2310 movs r3, #16 + 800450e: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800450c: 2302 movs r3, #2 - 800450e: 62bb str r3, [r7, #40] ; 0x28 + 8004510: 2302 movs r3, #2 + 8004512: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004510: 2300 movs r3, #0 - 8004512: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 8004514: 2300 movs r3, #0 - 8004516: 633b str r3, [r7, #48] ; 0x30 + 8004516: 62fb str r3, [r7, #44] ; 0x2c + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 8004518: 2300 movs r3, #0 + 800451a: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF14_LTDC; - 8004518: 230e movs r3, #14 - 800451a: 637b str r3, [r7, #52] ; 0x34 + 800451c: 230e movs r3, #14 + 800451e: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(LCD_B0_GPIO_Port, &GPIO_InitStruct); - 800451c: f107 0324 add.w r3, r7, #36 ; 0x24 - 8004520: 4619 mov r1, r3 - 8004522: 482b ldr r0, [pc, #172] ; (80045d0 ) - 8004524: f003 f8aa bl 800767c + 8004520: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004524: 4619 mov r1, r3 + 8004526: 482b ldr r0, [pc, #172] ; (80045d4 ) + 8004528: f003 f8aa bl 8007680 GPIO_InitStruct.Pin = LCD_B1_Pin|LCD_B2_Pin|LCD_B3_Pin|LCD_G4_Pin - 8004528: f64e 73ff movw r3, #61439 ; 0xefff - 800452c: 627b str r3, [r7, #36] ; 0x24 + 800452c: f64e 73ff movw r3, #61439 ; 0xefff + 8004530: 627b str r3, [r7, #36] ; 0x24 |LCD_G1_Pin|LCD_G3_Pin|LCD_G0_Pin|LCD_G2_Pin |LCD_R7_Pin|LCD_R5_Pin|LCD_R6_Pin|LCD_R4_Pin |LCD_R3_Pin|LCD_R1_Pin|LCD_R2_Pin; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800452e: 2302 movs r3, #2 - 8004530: 62bb str r3, [r7, #40] ; 0x28 + 8004532: 2302 movs r3, #2 + 8004534: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004532: 2300 movs r3, #0 - 8004534: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 8004536: 2300 movs r3, #0 - 8004538: 633b str r3, [r7, #48] ; 0x30 + 8004538: 62fb str r3, [r7, #44] ; 0x2c + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 800453a: 2300 movs r3, #0 + 800453c: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF14_LTDC; - 800453a: 230e movs r3, #14 - 800453c: 637b str r3, [r7, #52] ; 0x34 + 800453e: 230e movs r3, #14 + 8004540: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOJ, &GPIO_InitStruct); - 800453e: f107 0324 add.w r3, r7, #36 ; 0x24 - 8004542: 4619 mov r1, r3 - 8004544: 4823 ldr r0, [pc, #140] ; (80045d4 ) - 8004546: f003 f899 bl 800767c + 8004542: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004546: 4619 mov r1, r3 + 8004548: 4823 ldr r0, [pc, #140] ; (80045d8 ) + 800454a: f003 f899 bl 8007680 GPIO_InitStruct.Pin = LCD_DE_Pin|LCD_B7_Pin|LCD_B6_Pin|LCD_B5_Pin - 800454a: 23f7 movs r3, #247 ; 0xf7 - 800454c: 627b str r3, [r7, #36] ; 0x24 + 800454e: 23f7 movs r3, #247 ; 0xf7 + 8004550: 627b str r3, [r7, #36] ; 0x24 |LCD_G6_Pin|LCD_G7_Pin|LCD_G5_Pin; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800454e: 2302 movs r3, #2 - 8004550: 62bb str r3, [r7, #40] ; 0x28 + 8004552: 2302 movs r3, #2 + 8004554: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004552: 2300 movs r3, #0 - 8004554: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 8004556: 2300 movs r3, #0 - 8004558: 633b str r3, [r7, #48] ; 0x30 + 8004558: 62fb str r3, [r7, #44] ; 0x2c + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 800455a: 2300 movs r3, #0 + 800455c: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF14_LTDC; - 800455a: 230e movs r3, #14 - 800455c: 637b str r3, [r7, #52] ; 0x34 + 800455e: 230e movs r3, #14 + 8004560: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOK, &GPIO_InitStruct); - 800455e: f107 0324 add.w r3, r7, #36 ; 0x24 - 8004562: 4619 mov r1, r3 - 8004564: 481c ldr r0, [pc, #112] ; (80045d8 ) - 8004566: f003 f889 bl 800767c + 8004562: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004566: 4619 mov r1, r3 + 8004568: 481c ldr r0, [pc, #112] ; (80045dc ) + 800456a: f003 f889 bl 8007680 GPIO_InitStruct.Pin = LCD_B4_Pin; - 800456a: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800456e: 627b str r3, [r7, #36] ; 0x24 + 800456e: f44f 5380 mov.w r3, #4096 ; 0x1000 + 8004572: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004570: 2302 movs r3, #2 - 8004572: 62bb str r3, [r7, #40] ; 0x28 + 8004574: 2302 movs r3, #2 + 8004576: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004574: 2300 movs r3, #0 - 8004576: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 8004578: 2300 movs r3, #0 - 800457a: 633b str r3, [r7, #48] ; 0x30 + 800457a: 62fb str r3, [r7, #44] ; 0x2c + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 800457c: 2300 movs r3, #0 + 800457e: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF9_LTDC; - 800457c: 2309 movs r3, #9 - 800457e: 637b str r3, [r7, #52] ; 0x34 + 8004580: 2309 movs r3, #9 + 8004582: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(LCD_B4_GPIO_Port, &GPIO_InitStruct); - 8004580: f107 0324 add.w r3, r7, #36 ; 0x24 - 8004584: 4619 mov r1, r3 - 8004586: 4815 ldr r0, [pc, #84] ; (80045dc ) - 8004588: f003 f878 bl 800767c + 8004584: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004588: 4619 mov r1, r3 + 800458a: 4815 ldr r0, [pc, #84] ; (80045e0 ) + 800458c: f003 f878 bl 8007680 GPIO_InitStruct.Pin = LCD_HSYNC_Pin|LCD_VSYNC_Pin|LCD_R0_Pin|LCD_CLK_Pin; - 800458c: f44f 4346 mov.w r3, #50688 ; 0xc600 - 8004590: 627b str r3, [r7, #36] ; 0x24 + 8004590: f44f 4346 mov.w r3, #50688 ; 0xc600 + 8004594: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004592: 2302 movs r3, #2 - 8004594: 62bb str r3, [r7, #40] ; 0x28 + 8004596: 2302 movs r3, #2 + 8004598: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004596: 2300 movs r3, #0 - 8004598: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800459a: 2300 movs r3, #0 - 800459c: 633b str r3, [r7, #48] ; 0x30 + 800459c: 62fb str r3, [r7, #44] ; 0x2c + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 800459e: 2300 movs r3, #0 + 80045a0: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF14_LTDC; - 800459e: 230e movs r3, #14 - 80045a0: 637b str r3, [r7, #52] ; 0x34 + 80045a2: 230e movs r3, #14 + 80045a4: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOI, &GPIO_InitStruct); - 80045a2: f107 0324 add.w r3, r7, #36 ; 0x24 - 80045a6: 4619 mov r1, r3 - 80045a8: 480d ldr r0, [pc, #52] ; (80045e0 ) - 80045aa: f003 f867 bl 800767c + 80045a6: f107 0324 add.w r3, r7, #36 ; 0x24 + 80045aa: 4619 mov r1, r3 + 80045ac: 480d ldr r0, [pc, #52] ; (80045e4 ) + 80045ae: f003 f867 bl 8007680 /* LTDC interrupt Init */ HAL_NVIC_SetPriority(LTDC_IRQn, 5, 0); - 80045ae: 2200 movs r2, #0 - 80045b0: 2105 movs r1, #5 - 80045b2: 2058 movs r0, #88 ; 0x58 - 80045b4: f001 f8b2 bl 800571c + 80045b2: 2200 movs r2, #0 + 80045b4: 2105 movs r1, #5 + 80045b6: 2058 movs r0, #88 ; 0x58 + 80045b8: f001 f8b2 bl 8005720 HAL_NVIC_EnableIRQ(LTDC_IRQn); - 80045b8: 2058 movs r0, #88 ; 0x58 - 80045ba: f001 f8cb bl 8005754 + 80045bc: 2058 movs r0, #88 ; 0x58 + 80045be: f001 f8cb bl 8005758 /* USER CODE BEGIN LTDC_MspInit 1 */ /* USER CODE END LTDC_MspInit 1 */ } } - 80045be: bf00 nop - 80045c0: 3738 adds r7, #56 ; 0x38 - 80045c2: 46bd mov sp, r7 - 80045c4: bd80 pop {r7, pc} - 80045c6: bf00 nop - 80045c8: 40016800 .word 0x40016800 - 80045cc: 40023800 .word 0x40023800 - 80045d0: 40021000 .word 0x40021000 - 80045d4: 40022400 .word 0x40022400 - 80045d8: 40022800 .word 0x40022800 - 80045dc: 40021800 .word 0x40021800 - 80045e0: 40022000 .word 0x40022000 + 80045c2: bf00 nop + 80045c4: 3738 adds r7, #56 ; 0x38 + 80045c6: 46bd mov sp, r7 + 80045c8: bd80 pop {r7, pc} + 80045ca: bf00 nop + 80045cc: 40016800 .word 0x40016800 + 80045d0: 40023800 .word 0x40023800 + 80045d4: 40021000 .word 0x40021000 + 80045d8: 40022400 .word 0x40022400 + 80045dc: 40022800 .word 0x40022800 + 80045e0: 40021800 .word 0x40021800 + 80045e4: 40022000 .word 0x40022000 -080045e4 : +080045e8 : * This function configures the hardware resources used in this example * @param hrng: RNG handle pointer * @retval None */ void HAL_RNG_MspInit(RNG_HandleTypeDef* hrng) { - 80045e4: b480 push {r7} - 80045e6: b085 sub sp, #20 - 80045e8: af00 add r7, sp, #0 - 80045ea: 6078 str r0, [r7, #4] + 80045e8: b480 push {r7} + 80045ea: b085 sub sp, #20 + 80045ec: af00 add r7, sp, #0 + 80045ee: 6078 str r0, [r7, #4] if(hrng->Instance==RNG) - 80045ec: 687b ldr r3, [r7, #4] - 80045ee: 681b ldr r3, [r3, #0] - 80045f0: 4a0a ldr r2, [pc, #40] ; (800461c ) - 80045f2: 4293 cmp r3, r2 - 80045f4: d10b bne.n 800460e + 80045f0: 687b ldr r3, [r7, #4] + 80045f2: 681b ldr r3, [r3, #0] + 80045f4: 4a0a ldr r2, [pc, #40] ; (8004620 ) + 80045f6: 4293 cmp r3, r2 + 80045f8: d10b bne.n 8004612 { /* USER CODE BEGIN RNG_MspInit 0 */ /* USER CODE END RNG_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_RNG_CLK_ENABLE(); - 80045f6: 4b0a ldr r3, [pc, #40] ; (8004620 ) - 80045f8: 6b5b ldr r3, [r3, #52] ; 0x34 - 80045fa: 4a09 ldr r2, [pc, #36] ; (8004620 ) - 80045fc: f043 0340 orr.w r3, r3, #64 ; 0x40 - 8004600: 6353 str r3, [r2, #52] ; 0x34 - 8004602: 4b07 ldr r3, [pc, #28] ; (8004620 ) - 8004604: 6b5b ldr r3, [r3, #52] ; 0x34 - 8004606: f003 0340 and.w r3, r3, #64 ; 0x40 - 800460a: 60fb str r3, [r7, #12] - 800460c: 68fb ldr r3, [r7, #12] + 80045fa: 4b0a ldr r3, [pc, #40] ; (8004624 ) + 80045fc: 6b5b ldr r3, [r3, #52] ; 0x34 + 80045fe: 4a09 ldr r2, [pc, #36] ; (8004624 ) + 8004600: f043 0340 orr.w r3, r3, #64 ; 0x40 + 8004604: 6353 str r3, [r2, #52] ; 0x34 + 8004606: 4b07 ldr r3, [pc, #28] ; (8004624 ) + 8004608: 6b5b ldr r3, [r3, #52] ; 0x34 + 800460a: f003 0340 and.w r3, r3, #64 ; 0x40 + 800460e: 60fb str r3, [r7, #12] + 8004610: 68fb ldr r3, [r7, #12] /* USER CODE BEGIN RNG_MspInit 1 */ /* USER CODE END RNG_MspInit 1 */ } } - 800460e: bf00 nop - 8004610: 3714 adds r7, #20 - 8004612: 46bd mov sp, r7 - 8004614: f85d 7b04 ldr.w r7, [sp], #4 - 8004618: 4770 bx lr - 800461a: bf00 nop - 800461c: 50060800 .word 0x50060800 - 8004620: 40023800 .word 0x40023800 + 8004612: bf00 nop + 8004614: 3714 adds r7, #20 + 8004616: 46bd mov sp, r7 + 8004618: f85d 7b04 ldr.w r7, [sp], #4 + 800461c: 4770 bx lr + 800461e: bf00 nop + 8004620: 50060800 .word 0x50060800 + 8004624: 40023800 .word 0x40023800 -08004624 : +08004628 : * This function configures the hardware resources used in this example * @param hrtc: RTC handle pointer * @retval None */ void HAL_RTC_MspInit(RTC_HandleTypeDef* hrtc) { - 8004624: b480 push {r7} - 8004626: b083 sub sp, #12 - 8004628: af00 add r7, sp, #0 - 800462a: 6078 str r0, [r7, #4] + 8004628: b480 push {r7} + 800462a: b083 sub sp, #12 + 800462c: af00 add r7, sp, #0 + 800462e: 6078 str r0, [r7, #4] if(hrtc->Instance==RTC) - 800462c: 687b ldr r3, [r7, #4] - 800462e: 681b ldr r3, [r3, #0] - 8004630: 4a07 ldr r2, [pc, #28] ; (8004650 ) - 8004632: 4293 cmp r3, r2 - 8004634: d105 bne.n 8004642 + 8004630: 687b ldr r3, [r7, #4] + 8004632: 681b ldr r3, [r3, #0] + 8004634: 4a07 ldr r2, [pc, #28] ; (8004654 ) + 8004636: 4293 cmp r3, r2 + 8004638: d105 bne.n 8004646 { /* USER CODE BEGIN RTC_MspInit 0 */ /* USER CODE END RTC_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_RTC_ENABLE(); - 8004636: 4b07 ldr r3, [pc, #28] ; (8004654 ) - 8004638: 6f1b ldr r3, [r3, #112] ; 0x70 - 800463a: 4a06 ldr r2, [pc, #24] ; (8004654 ) - 800463c: f443 4300 orr.w r3, r3, #32768 ; 0x8000 - 8004640: 6713 str r3, [r2, #112] ; 0x70 + 800463a: 4b07 ldr r3, [pc, #28] ; (8004658 ) + 800463c: 6f1b ldr r3, [r3, #112] ; 0x70 + 800463e: 4a06 ldr r2, [pc, #24] ; (8004658 ) + 8004640: f443 4300 orr.w r3, r3, #32768 ; 0x8000 + 8004644: 6713 str r3, [r2, #112] ; 0x70 /* USER CODE BEGIN RTC_MspInit 1 */ /* USER CODE END RTC_MspInit 1 */ } } - 8004642: bf00 nop - 8004644: 370c adds r7, #12 - 8004646: 46bd mov sp, r7 - 8004648: f85d 7b04 ldr.w r7, [sp], #4 - 800464c: 4770 bx lr - 800464e: bf00 nop - 8004650: 40002800 .word 0x40002800 - 8004654: 40023800 .word 0x40023800 + 8004646: bf00 nop + 8004648: 370c adds r7, #12 + 800464a: 46bd mov sp, r7 + 800464c: f85d 7b04 ldr.w r7, [sp], #4 + 8004650: 4770 bx lr + 8004652: bf00 nop + 8004654: 40002800 .word 0x40002800 + 8004658: 40023800 .word 0x40023800 -08004658 : +0800465c : * This function configures the hardware resources used in this example * @param hspi: SPI handle pointer * @retval None */ void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi) { - 8004658: b580 push {r7, lr} - 800465a: b08a sub sp, #40 ; 0x28 - 800465c: af00 add r7, sp, #0 - 800465e: 6078 str r0, [r7, #4] + 800465c: b580 push {r7, lr} + 800465e: b08a sub sp, #40 ; 0x28 + 8004660: af00 add r7, sp, #0 + 8004662: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8004660: f107 0314 add.w r3, r7, #20 - 8004664: 2200 movs r2, #0 - 8004666: 601a str r2, [r3, #0] - 8004668: 605a str r2, [r3, #4] - 800466a: 609a str r2, [r3, #8] - 800466c: 60da str r2, [r3, #12] - 800466e: 611a str r2, [r3, #16] + 8004664: f107 0314 add.w r3, r7, #20 + 8004668: 2200 movs r2, #0 + 800466a: 601a str r2, [r3, #0] + 800466c: 605a str r2, [r3, #4] + 800466e: 609a str r2, [r3, #8] + 8004670: 60da str r2, [r3, #12] + 8004672: 611a str r2, [r3, #16] if(hspi->Instance==SPI2) - 8004670: 687b ldr r3, [r7, #4] - 8004672: 681b ldr r3, [r3, #0] - 8004674: 4a2d ldr r2, [pc, #180] ; (800472c ) - 8004676: 4293 cmp r3, r2 - 8004678: d154 bne.n 8004724 + 8004674: 687b ldr r3, [r7, #4] + 8004676: 681b ldr r3, [r3, #0] + 8004678: 4a2d ldr r2, [pc, #180] ; (8004730 ) + 800467a: 4293 cmp r3, r2 + 800467c: d154 bne.n 8004728 { /* USER CODE BEGIN SPI2_MspInit 0 */ /* USER CODE END SPI2_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_SPI2_CLK_ENABLE(); - 800467a: 4b2d ldr r3, [pc, #180] ; (8004730 ) - 800467c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800467e: 4a2c ldr r2, [pc, #176] ; (8004730 ) - 8004680: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 8004684: 6413 str r3, [r2, #64] ; 0x40 - 8004686: 4b2a ldr r3, [pc, #168] ; (8004730 ) - 8004688: 6c1b ldr r3, [r3, #64] ; 0x40 - 800468a: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 800468e: 613b str r3, [r7, #16] - 8004690: 693b ldr r3, [r7, #16] + 800467e: 4b2d ldr r3, [pc, #180] ; (8004734 ) + 8004680: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004682: 4a2c ldr r2, [pc, #176] ; (8004734 ) + 8004684: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 8004688: 6413 str r3, [r2, #64] ; 0x40 + 800468a: 4b2a ldr r3, [pc, #168] ; (8004734 ) + 800468c: 6c1b ldr r3, [r3, #64] ; 0x40 + 800468e: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 8004692: 613b str r3, [r7, #16] + 8004694: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOI_CLK_ENABLE(); - 8004692: 4b27 ldr r3, [pc, #156] ; (8004730 ) - 8004694: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004696: 4a26 ldr r2, [pc, #152] ; (8004730 ) - 8004698: f443 7380 orr.w r3, r3, #256 ; 0x100 - 800469c: 6313 str r3, [r2, #48] ; 0x30 - 800469e: 4b24 ldr r3, [pc, #144] ; (8004730 ) - 80046a0: 6b1b ldr r3, [r3, #48] ; 0x30 - 80046a2: f403 7380 and.w r3, r3, #256 ; 0x100 - 80046a6: 60fb str r3, [r7, #12] - 80046a8: 68fb ldr r3, [r7, #12] + 8004696: 4b27 ldr r3, [pc, #156] ; (8004734 ) + 8004698: 6b1b ldr r3, [r3, #48] ; 0x30 + 800469a: 4a26 ldr r2, [pc, #152] ; (8004734 ) + 800469c: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80046a0: 6313 str r3, [r2, #48] ; 0x30 + 80046a2: 4b24 ldr r3, [pc, #144] ; (8004734 ) + 80046a4: 6b1b ldr r3, [r3, #48] ; 0x30 + 80046a6: f403 7380 and.w r3, r3, #256 ; 0x100 + 80046aa: 60fb str r3, [r7, #12] + 80046ac: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOB_CLK_ENABLE(); - 80046aa: 4b21 ldr r3, [pc, #132] ; (8004730 ) - 80046ac: 6b1b ldr r3, [r3, #48] ; 0x30 - 80046ae: 4a20 ldr r2, [pc, #128] ; (8004730 ) - 80046b0: f043 0302 orr.w r3, r3, #2 - 80046b4: 6313 str r3, [r2, #48] ; 0x30 - 80046b6: 4b1e ldr r3, [pc, #120] ; (8004730 ) - 80046b8: 6b1b ldr r3, [r3, #48] ; 0x30 - 80046ba: f003 0302 and.w r3, r3, #2 - 80046be: 60bb str r3, [r7, #8] - 80046c0: 68bb ldr r3, [r7, #8] + 80046ae: 4b21 ldr r3, [pc, #132] ; (8004734 ) + 80046b0: 6b1b ldr r3, [r3, #48] ; 0x30 + 80046b2: 4a20 ldr r2, [pc, #128] ; (8004734 ) + 80046b4: f043 0302 orr.w r3, r3, #2 + 80046b8: 6313 str r3, [r2, #48] ; 0x30 + 80046ba: 4b1e ldr r3, [pc, #120] ; (8004734 ) + 80046bc: 6b1b ldr r3, [r3, #48] ; 0x30 + 80046be: f003 0302 and.w r3, r3, #2 + 80046c2: 60bb str r3, [r7, #8] + 80046c4: 68bb ldr r3, [r7, #8] PI1 ------> SPI2_SCK PI0 ------> SPI2_NSS PB14 ------> SPI2_MISO PB15 ------> SPI2_MOSI */ GPIO_InitStruct.Pin = ARDUINO_SCK_D13_Pin; - 80046c2: 2302 movs r3, #2 - 80046c4: 617b str r3, [r7, #20] - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 80046c6: 2302 movs r3, #2 - 80046c8: 61bb str r3, [r7, #24] + 80046c8: 617b str r3, [r7, #20] + GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; + 80046ca: 2302 movs r3, #2 + 80046cc: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80046ca: 2300 movs r3, #0 - 80046cc: 61fb str r3, [r7, #28] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 80046ce: 2300 movs r3, #0 - 80046d0: 623b str r3, [r7, #32] + 80046d0: 61fb str r3, [r7, #28] + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 80046d2: 2300 movs r3, #0 + 80046d4: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF5_SPI2; - 80046d2: 2305 movs r3, #5 - 80046d4: 627b str r3, [r7, #36] ; 0x24 + 80046d6: 2305 movs r3, #5 + 80046d8: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(ARDUINO_SCK_D13_GPIO_Port, &GPIO_InitStruct); - 80046d6: f107 0314 add.w r3, r7, #20 - 80046da: 4619 mov r1, r3 - 80046dc: 4815 ldr r0, [pc, #84] ; (8004734 ) - 80046de: f002 ffcd bl 800767c + 80046da: f107 0314 add.w r3, r7, #20 + 80046de: 4619 mov r1, r3 + 80046e0: 4815 ldr r0, [pc, #84] ; (8004738 ) + 80046e2: f002 ffcd bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_0; - 80046e2: 2301 movs r3, #1 - 80046e4: 617b str r3, [r7, #20] + 80046e6: 2301 movs r3, #1 + 80046e8: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80046e6: 2302 movs r3, #2 - 80046e8: 61bb str r3, [r7, #24] + 80046ea: 2302 movs r3, #2 + 80046ec: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80046ea: 2300 movs r3, #0 - 80046ec: 61fb str r3, [r7, #28] + 80046ee: 2300 movs r3, #0 + 80046f0: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80046ee: 2303 movs r3, #3 - 80046f0: 623b str r3, [r7, #32] + 80046f2: 2303 movs r3, #3 + 80046f4: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF5_SPI2; - 80046f2: 2305 movs r3, #5 - 80046f4: 627b str r3, [r7, #36] ; 0x24 + 80046f6: 2305 movs r3, #5 + 80046f8: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOI, &GPIO_InitStruct); - 80046f6: f107 0314 add.w r3, r7, #20 - 80046fa: 4619 mov r1, r3 - 80046fc: 480d ldr r0, [pc, #52] ; (8004734 ) - 80046fe: f002 ffbd bl 800767c + 80046fa: f107 0314 add.w r3, r7, #20 + 80046fe: 4619 mov r1, r3 + 8004700: 480d ldr r0, [pc, #52] ; (8004738 ) + 8004702: f002 ffbd bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15; - 8004702: f44f 4340 mov.w r3, #49152 ; 0xc000 - 8004706: 617b str r3, [r7, #20] + 8004706: f44f 4340 mov.w r3, #49152 ; 0xc000 + 800470a: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004708: 2302 movs r3, #2 - 800470a: 61bb str r3, [r7, #24] + 800470c: 2302 movs r3, #2 + 800470e: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 800470c: 2300 movs r3, #0 - 800470e: 61fb str r3, [r7, #28] + 8004710: 2300 movs r3, #0 + 8004712: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004710: 2303 movs r3, #3 - 8004712: 623b str r3, [r7, #32] + 8004714: 2303 movs r3, #3 + 8004716: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF5_SPI2; - 8004714: 2305 movs r3, #5 - 8004716: 627b str r3, [r7, #36] ; 0x24 + 8004718: 2305 movs r3, #5 + 800471a: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8004718: f107 0314 add.w r3, r7, #20 - 800471c: 4619 mov r1, r3 - 800471e: 4806 ldr r0, [pc, #24] ; (8004738 ) - 8004720: f002 ffac bl 800767c + 800471c: f107 0314 add.w r3, r7, #20 + 8004720: 4619 mov r1, r3 + 8004722: 4806 ldr r0, [pc, #24] ; (800473c ) + 8004724: f002 ffac bl 8007680 /* USER CODE BEGIN SPI2_MspInit 1 */ /* USER CODE END SPI2_MspInit 1 */ } } - 8004724: bf00 nop - 8004726: 3728 adds r7, #40 ; 0x28 - 8004728: 46bd mov sp, r7 - 800472a: bd80 pop {r7, pc} - 800472c: 40003800 .word 0x40003800 - 8004730: 40023800 .word 0x40023800 - 8004734: 40022000 .word 0x40022000 - 8004738: 40020400 .word 0x40020400 + 8004728: bf00 nop + 800472a: 3728 adds r7, #40 ; 0x28 + 800472c: 46bd mov sp, r7 + 800472e: bd80 pop {r7, pc} + 8004730: 40003800 .word 0x40003800 + 8004734: 40023800 .word 0x40023800 + 8004738: 40022000 .word 0x40022000 + 800473c: 40020400 .word 0x40020400 -0800473c : +08004740 : * This function configures the hardware resources used in this example * @param htim_base: TIM_Base handle pointer * @retval None */ void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base) { - 800473c: b480 push {r7} - 800473e: b089 sub sp, #36 ; 0x24 - 8004740: af00 add r7, sp, #0 - 8004742: 6078 str r0, [r7, #4] + 8004740: b480 push {r7} + 8004742: b089 sub sp, #36 ; 0x24 + 8004744: af00 add r7, sp, #0 + 8004746: 6078 str r0, [r7, #4] if(htim_base->Instance==TIM1) - 8004744: 687b ldr r3, [r7, #4] - 8004746: 681b ldr r3, [r3, #0] - 8004748: 4a2e ldr r2, [pc, #184] ; (8004804 ) - 800474a: 4293 cmp r3, r2 - 800474c: d10c bne.n 8004768 + 8004748: 687b ldr r3, [r7, #4] + 800474a: 681b ldr r3, [r3, #0] + 800474c: 4a2e ldr r2, [pc, #184] ; (8004808 ) + 800474e: 4293 cmp r3, r2 + 8004750: d10c bne.n 800476c { /* USER CODE BEGIN TIM1_MspInit 0 */ /* USER CODE END TIM1_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_TIM1_CLK_ENABLE(); - 800474e: 4b2e ldr r3, [pc, #184] ; (8004808 ) - 8004750: 6c5b ldr r3, [r3, #68] ; 0x44 - 8004752: 4a2d ldr r2, [pc, #180] ; (8004808 ) - 8004754: f043 0301 orr.w r3, r3, #1 - 8004758: 6453 str r3, [r2, #68] ; 0x44 - 800475a: 4b2b ldr r3, [pc, #172] ; (8004808 ) - 800475c: 6c5b ldr r3, [r3, #68] ; 0x44 - 800475e: f003 0301 and.w r3, r3, #1 - 8004762: 61fb str r3, [r7, #28] - 8004764: 69fb ldr r3, [r7, #28] + 8004752: 4b2e ldr r3, [pc, #184] ; (800480c ) + 8004754: 6c5b ldr r3, [r3, #68] ; 0x44 + 8004756: 4a2d ldr r2, [pc, #180] ; (800480c ) + 8004758: f043 0301 orr.w r3, r3, #1 + 800475c: 6453 str r3, [r2, #68] ; 0x44 + 800475e: 4b2b ldr r3, [pc, #172] ; (800480c ) + 8004760: 6c5b ldr r3, [r3, #68] ; 0x44 + 8004762: f003 0301 and.w r3, r3, #1 + 8004766: 61fb str r3, [r7, #28] + 8004768: 69fb ldr r3, [r7, #28] /* USER CODE BEGIN TIM8_MspInit 1 */ /* USER CODE END TIM8_MspInit 1 */ } } - 8004766: e046 b.n 80047f6 + 800476a: e046 b.n 80047fa else if(htim_base->Instance==TIM2) - 8004768: 687b ldr r3, [r7, #4] - 800476a: 681b ldr r3, [r3, #0] - 800476c: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 8004770: d10c bne.n 800478c + 800476c: 687b ldr r3, [r7, #4] + 800476e: 681b ldr r3, [r3, #0] + 8004770: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 8004774: d10c bne.n 8004790 __HAL_RCC_TIM2_CLK_ENABLE(); - 8004772: 4b25 ldr r3, [pc, #148] ; (8004808 ) - 8004774: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004776: 4a24 ldr r2, [pc, #144] ; (8004808 ) - 8004778: f043 0301 orr.w r3, r3, #1 - 800477c: 6413 str r3, [r2, #64] ; 0x40 - 800477e: 4b22 ldr r3, [pc, #136] ; (8004808 ) - 8004780: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004782: f003 0301 and.w r3, r3, #1 - 8004786: 61bb str r3, [r7, #24] - 8004788: 69bb ldr r3, [r7, #24] -} - 800478a: e034 b.n 80047f6 + 8004776: 4b25 ldr r3, [pc, #148] ; (800480c ) + 8004778: 6c1b ldr r3, [r3, #64] ; 0x40 + 800477a: 4a24 ldr r2, [pc, #144] ; (800480c ) + 800477c: f043 0301 orr.w r3, r3, #1 + 8004780: 6413 str r3, [r2, #64] ; 0x40 + 8004782: 4b22 ldr r3, [pc, #136] ; (800480c ) + 8004784: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004786: f003 0301 and.w r3, r3, #1 + 800478a: 61bb str r3, [r7, #24] + 800478c: 69bb ldr r3, [r7, #24] +} + 800478e: e034 b.n 80047fa else if(htim_base->Instance==TIM3) - 800478c: 687b ldr r3, [r7, #4] - 800478e: 681b ldr r3, [r3, #0] - 8004790: 4a1e ldr r2, [pc, #120] ; (800480c ) - 8004792: 4293 cmp r3, r2 - 8004794: d10c bne.n 80047b0 + 8004790: 687b ldr r3, [r7, #4] + 8004792: 681b ldr r3, [r3, #0] + 8004794: 4a1e ldr r2, [pc, #120] ; (8004810 ) + 8004796: 4293 cmp r3, r2 + 8004798: d10c bne.n 80047b4 __HAL_RCC_TIM3_CLK_ENABLE(); - 8004796: 4b1c ldr r3, [pc, #112] ; (8004808 ) - 8004798: 6c1b ldr r3, [r3, #64] ; 0x40 - 800479a: 4a1b ldr r2, [pc, #108] ; (8004808 ) - 800479c: f043 0302 orr.w r3, r3, #2 - 80047a0: 6413 str r3, [r2, #64] ; 0x40 - 80047a2: 4b19 ldr r3, [pc, #100] ; (8004808 ) - 80047a4: 6c1b ldr r3, [r3, #64] ; 0x40 - 80047a6: f003 0302 and.w r3, r3, #2 - 80047aa: 617b str r3, [r7, #20] - 80047ac: 697b ldr r3, [r7, #20] -} - 80047ae: e022 b.n 80047f6 + 800479a: 4b1c ldr r3, [pc, #112] ; (800480c ) + 800479c: 6c1b ldr r3, [r3, #64] ; 0x40 + 800479e: 4a1b ldr r2, [pc, #108] ; (800480c ) + 80047a0: f043 0302 orr.w r3, r3, #2 + 80047a4: 6413 str r3, [r2, #64] ; 0x40 + 80047a6: 4b19 ldr r3, [pc, #100] ; (800480c ) + 80047a8: 6c1b ldr r3, [r3, #64] ; 0x40 + 80047aa: f003 0302 and.w r3, r3, #2 + 80047ae: 617b str r3, [r7, #20] + 80047b0: 697b ldr r3, [r7, #20] +} + 80047b2: e022 b.n 80047fa else if(htim_base->Instance==TIM5) - 80047b0: 687b ldr r3, [r7, #4] - 80047b2: 681b ldr r3, [r3, #0] - 80047b4: 4a16 ldr r2, [pc, #88] ; (8004810 ) - 80047b6: 4293 cmp r3, r2 - 80047b8: d10c bne.n 80047d4 + 80047b4: 687b ldr r3, [r7, #4] + 80047b6: 681b ldr r3, [r3, #0] + 80047b8: 4a16 ldr r2, [pc, #88] ; (8004814 ) + 80047ba: 4293 cmp r3, r2 + 80047bc: d10c bne.n 80047d8 __HAL_RCC_TIM5_CLK_ENABLE(); - 80047ba: 4b13 ldr r3, [pc, #76] ; (8004808 ) - 80047bc: 6c1b ldr r3, [r3, #64] ; 0x40 - 80047be: 4a12 ldr r2, [pc, #72] ; (8004808 ) - 80047c0: f043 0308 orr.w r3, r3, #8 - 80047c4: 6413 str r3, [r2, #64] ; 0x40 - 80047c6: 4b10 ldr r3, [pc, #64] ; (8004808 ) - 80047c8: 6c1b ldr r3, [r3, #64] ; 0x40 - 80047ca: f003 0308 and.w r3, r3, #8 - 80047ce: 613b str r3, [r7, #16] - 80047d0: 693b ldr r3, [r7, #16] -} - 80047d2: e010 b.n 80047f6 + 80047be: 4b13 ldr r3, [pc, #76] ; (800480c ) + 80047c0: 6c1b ldr r3, [r3, #64] ; 0x40 + 80047c2: 4a12 ldr r2, [pc, #72] ; (800480c ) + 80047c4: f043 0308 orr.w r3, r3, #8 + 80047c8: 6413 str r3, [r2, #64] ; 0x40 + 80047ca: 4b10 ldr r3, [pc, #64] ; (800480c ) + 80047cc: 6c1b ldr r3, [r3, #64] ; 0x40 + 80047ce: f003 0308 and.w r3, r3, #8 + 80047d2: 613b str r3, [r7, #16] + 80047d4: 693b ldr r3, [r7, #16] +} + 80047d6: e010 b.n 80047fa else if(htim_base->Instance==TIM8) - 80047d4: 687b ldr r3, [r7, #4] - 80047d6: 681b ldr r3, [r3, #0] - 80047d8: 4a0e ldr r2, [pc, #56] ; (8004814 ) - 80047da: 4293 cmp r3, r2 - 80047dc: d10b bne.n 80047f6 + 80047d8: 687b ldr r3, [r7, #4] + 80047da: 681b ldr r3, [r3, #0] + 80047dc: 4a0e ldr r2, [pc, #56] ; (8004818 ) + 80047de: 4293 cmp r3, r2 + 80047e0: d10b bne.n 80047fa __HAL_RCC_TIM8_CLK_ENABLE(); - 80047de: 4b0a ldr r3, [pc, #40] ; (8004808 ) - 80047e0: 6c5b ldr r3, [r3, #68] ; 0x44 - 80047e2: 4a09 ldr r2, [pc, #36] ; (8004808 ) - 80047e4: f043 0302 orr.w r3, r3, #2 - 80047e8: 6453 str r3, [r2, #68] ; 0x44 - 80047ea: 4b07 ldr r3, [pc, #28] ; (8004808 ) - 80047ec: 6c5b ldr r3, [r3, #68] ; 0x44 - 80047ee: f003 0302 and.w r3, r3, #2 - 80047f2: 60fb str r3, [r7, #12] - 80047f4: 68fb ldr r3, [r7, #12] -} - 80047f6: bf00 nop - 80047f8: 3724 adds r7, #36 ; 0x24 - 80047fa: 46bd mov sp, r7 - 80047fc: f85d 7b04 ldr.w r7, [sp], #4 - 8004800: 4770 bx lr - 8004802: bf00 nop - 8004804: 40010000 .word 0x40010000 - 8004808: 40023800 .word 0x40023800 - 800480c: 40000400 .word 0x40000400 - 8004810: 40000c00 .word 0x40000c00 - 8004814: 40010400 .word 0x40010400 - -08004818 : + 80047e2: 4b0a ldr r3, [pc, #40] ; (800480c ) + 80047e4: 6c5b ldr r3, [r3, #68] ; 0x44 + 80047e6: 4a09 ldr r2, [pc, #36] ; (800480c ) + 80047e8: f043 0302 orr.w r3, r3, #2 + 80047ec: 6453 str r3, [r2, #68] ; 0x44 + 80047ee: 4b07 ldr r3, [pc, #28] ; (800480c ) + 80047f0: 6c5b ldr r3, [r3, #68] ; 0x44 + 80047f2: f003 0302 and.w r3, r3, #2 + 80047f6: 60fb str r3, [r7, #12] + 80047f8: 68fb ldr r3, [r7, #12] +} + 80047fa: bf00 nop + 80047fc: 3724 adds r7, #36 ; 0x24 + 80047fe: 46bd mov sp, r7 + 8004800: f85d 7b04 ldr.w r7, [sp], #4 + 8004804: 4770 bx lr + 8004806: bf00 nop + 8004808: 40010000 .word 0x40010000 + 800480c: 40023800 .word 0x40023800 + 8004810: 40000400 .word 0x40000400 + 8004814: 40000c00 .word 0x40000c00 + 8004818: 40010400 .word 0x40010400 + +0800481c : void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim) { - 8004818: b580 push {r7, lr} - 800481a: b08a sub sp, #40 ; 0x28 - 800481c: af00 add r7, sp, #0 - 800481e: 6078 str r0, [r7, #4] + 800481c: b580 push {r7, lr} + 800481e: b08a sub sp, #40 ; 0x28 + 8004820: af00 add r7, sp, #0 + 8004822: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8004820: f107 0314 add.w r3, r7, #20 - 8004824: 2200 movs r2, #0 - 8004826: 601a str r2, [r3, #0] - 8004828: 605a str r2, [r3, #4] - 800482a: 609a str r2, [r3, #8] - 800482c: 60da str r2, [r3, #12] - 800482e: 611a str r2, [r3, #16] + 8004824: f107 0314 add.w r3, r7, #20 + 8004828: 2200 movs r2, #0 + 800482a: 601a str r2, [r3, #0] + 800482c: 605a str r2, [r3, #4] + 800482e: 609a str r2, [r3, #8] + 8004830: 60da str r2, [r3, #12] + 8004832: 611a str r2, [r3, #16] if(htim->Instance==TIM3) - 8004830: 687b ldr r3, [r7, #4] - 8004832: 681b ldr r3, [r3, #0] - 8004834: 4a22 ldr r2, [pc, #136] ; (80048c0 ) - 8004836: 4293 cmp r3, r2 - 8004838: d11c bne.n 8004874 + 8004834: 687b ldr r3, [r7, #4] + 8004836: 681b ldr r3, [r3, #0] + 8004838: 4a22 ldr r2, [pc, #136] ; (80048c4 ) + 800483a: 4293 cmp r3, r2 + 800483c: d11c bne.n 8004878 { /* USER CODE BEGIN TIM3_MspPostInit 0 */ /* USER CODE END TIM3_MspPostInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); - 800483a: 4b22 ldr r3, [pc, #136] ; (80048c4 ) - 800483c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800483e: 4a21 ldr r2, [pc, #132] ; (80048c4 ) - 8004840: f043 0302 orr.w r3, r3, #2 - 8004844: 6313 str r3, [r2, #48] ; 0x30 - 8004846: 4b1f ldr r3, [pc, #124] ; (80048c4 ) - 8004848: 6b1b ldr r3, [r3, #48] ; 0x30 - 800484a: f003 0302 and.w r3, r3, #2 - 800484e: 613b str r3, [r7, #16] - 8004850: 693b ldr r3, [r7, #16] + 800483e: 4b22 ldr r3, [pc, #136] ; (80048c8 ) + 8004840: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004842: 4a21 ldr r2, [pc, #132] ; (80048c8 ) + 8004844: f043 0302 orr.w r3, r3, #2 + 8004848: 6313 str r3, [r2, #48] ; 0x30 + 800484a: 4b1f ldr r3, [pc, #124] ; (80048c8 ) + 800484c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800484e: f003 0302 and.w r3, r3, #2 + 8004852: 613b str r3, [r7, #16] + 8004854: 693b ldr r3, [r7, #16] /**TIM3 GPIO Configuration PB4 ------> TIM3_CH1 */ GPIO_InitStruct.Pin = GPIO_PIN_4; - 8004852: 2310 movs r3, #16 - 8004854: 617b str r3, [r7, #20] + 8004856: 2310 movs r3, #16 + 8004858: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004856: 2302 movs r3, #2 - 8004858: 61bb str r3, [r7, #24] + 800485a: 2302 movs r3, #2 + 800485c: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 800485a: 2300 movs r3, #0 - 800485c: 61fb str r3, [r7, #28] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800485e: 2300 movs r3, #0 - 8004860: 623b str r3, [r7, #32] + 8004860: 61fb str r3, [r7, #28] + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 8004862: 2300 movs r3, #0 + 8004864: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF2_TIM3; - 8004862: 2302 movs r3, #2 - 8004864: 627b str r3, [r7, #36] ; 0x24 + 8004866: 2302 movs r3, #2 + 8004868: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 8004866: f107 0314 add.w r3, r7, #20 - 800486a: 4619 mov r1, r3 - 800486c: 4816 ldr r0, [pc, #88] ; (80048c8 ) - 800486e: f002 ff05 bl 800767c + 800486a: f107 0314 add.w r3, r7, #20 + 800486e: 4619 mov r1, r3 + 8004870: 4816 ldr r0, [pc, #88] ; (80048cc ) + 8004872: f002 ff05 bl 8007680 /* USER CODE BEGIN TIM8_MspPostInit 1 */ /* USER CODE END TIM8_MspPostInit 1 */ } } - 8004872: e020 b.n 80048b6 + 8004876: e020 b.n 80048ba else if(htim->Instance==TIM8) - 8004874: 687b ldr r3, [r7, #4] - 8004876: 681b ldr r3, [r3, #0] - 8004878: 4a14 ldr r2, [pc, #80] ; (80048cc ) - 800487a: 4293 cmp r3, r2 - 800487c: d11b bne.n 80048b6 + 8004878: 687b ldr r3, [r7, #4] + 800487a: 681b ldr r3, [r3, #0] + 800487c: 4a14 ldr r2, [pc, #80] ; (80048d0 ) + 800487e: 4293 cmp r3, r2 + 8004880: d11b bne.n 80048ba __HAL_RCC_GPIOI_CLK_ENABLE(); - 800487e: 4b11 ldr r3, [pc, #68] ; (80048c4 ) - 8004880: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004882: 4a10 ldr r2, [pc, #64] ; (80048c4 ) - 8004884: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8004888: 6313 str r3, [r2, #48] ; 0x30 - 800488a: 4b0e ldr r3, [pc, #56] ; (80048c4 ) - 800488c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800488e: f403 7380 and.w r3, r3, #256 ; 0x100 - 8004892: 60fb str r3, [r7, #12] - 8004894: 68fb ldr r3, [r7, #12] + 8004882: 4b11 ldr r3, [pc, #68] ; (80048c8 ) + 8004884: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004886: 4a10 ldr r2, [pc, #64] ; (80048c8 ) + 8004888: f443 7380 orr.w r3, r3, #256 ; 0x100 + 800488c: 6313 str r3, [r2, #48] ; 0x30 + 800488e: 4b0e ldr r3, [pc, #56] ; (80048c8 ) + 8004890: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004892: f403 7380 and.w r3, r3, #256 ; 0x100 + 8004896: 60fb str r3, [r7, #12] + 8004898: 68fb ldr r3, [r7, #12] GPIO_InitStruct.Pin = GPIO_PIN_2; - 8004896: 2304 movs r3, #4 - 8004898: 617b str r3, [r7, #20] + 800489a: 2304 movs r3, #4 + 800489c: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800489a: 2302 movs r3, #2 - 800489c: 61bb str r3, [r7, #24] + 800489e: 2302 movs r3, #2 + 80048a0: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 800489e: 2300 movs r3, #0 - 80048a0: 61fb str r3, [r7, #28] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 80048a2: 2300 movs r3, #0 - 80048a4: 623b str r3, [r7, #32] + 80048a4: 61fb str r3, [r7, #28] + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 80048a6: 2300 movs r3, #0 + 80048a8: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF3_TIM8; - 80048a6: 2303 movs r3, #3 - 80048a8: 627b str r3, [r7, #36] ; 0x24 + 80048aa: 2303 movs r3, #3 + 80048ac: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOI, &GPIO_InitStruct); - 80048aa: f107 0314 add.w r3, r7, #20 - 80048ae: 4619 mov r1, r3 - 80048b0: 4807 ldr r0, [pc, #28] ; (80048d0 ) - 80048b2: f002 fee3 bl 800767c -} - 80048b6: bf00 nop - 80048b8: 3728 adds r7, #40 ; 0x28 - 80048ba: 46bd mov sp, r7 - 80048bc: bd80 pop {r7, pc} - 80048be: bf00 nop - 80048c0: 40000400 .word 0x40000400 - 80048c4: 40023800 .word 0x40023800 - 80048c8: 40020400 .word 0x40020400 - 80048cc: 40010400 .word 0x40010400 - 80048d0: 40022000 .word 0x40022000 - -080048d4 : + 80048ae: f107 0314 add.w r3, r7, #20 + 80048b2: 4619 mov r1, r3 + 80048b4: 4807 ldr r0, [pc, #28] ; (80048d4 ) + 80048b6: f002 fee3 bl 8007680 +} + 80048ba: bf00 nop + 80048bc: 3728 adds r7, #40 ; 0x28 + 80048be: 46bd mov sp, r7 + 80048c0: bd80 pop {r7, pc} + 80048c2: bf00 nop + 80048c4: 40000400 .word 0x40000400 + 80048c8: 40023800 .word 0x40023800 + 80048cc: 40020400 .word 0x40020400 + 80048d0: 40010400 .word 0x40010400 + 80048d4: 40022000 .word 0x40022000 + +080048d8 : * This function configures the hardware resources used in this example * @param huart: UART handle pointer * @retval None */ void HAL_UART_MspInit(UART_HandleTypeDef* huart) { - 80048d4: b580 push {r7, lr} - 80048d6: b08e sub sp, #56 ; 0x38 - 80048d8: af00 add r7, sp, #0 - 80048da: 6078 str r0, [r7, #4] + 80048d8: b580 push {r7, lr} + 80048da: b08e sub sp, #56 ; 0x38 + 80048dc: af00 add r7, sp, #0 + 80048de: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80048dc: f107 0324 add.w r3, r7, #36 ; 0x24 - 80048e0: 2200 movs r2, #0 - 80048e2: 601a str r2, [r3, #0] - 80048e4: 605a str r2, [r3, #4] - 80048e6: 609a str r2, [r3, #8] - 80048e8: 60da str r2, [r3, #12] - 80048ea: 611a str r2, [r3, #16] + 80048e0: f107 0324 add.w r3, r7, #36 ; 0x24 + 80048e4: 2200 movs r2, #0 + 80048e6: 601a str r2, [r3, #0] + 80048e8: 605a str r2, [r3, #4] + 80048ea: 609a str r2, [r3, #8] + 80048ec: 60da str r2, [r3, #12] + 80048ee: 611a str r2, [r3, #16] if(huart->Instance==UART7) - 80048ec: 687b ldr r3, [r7, #4] - 80048ee: 681b ldr r3, [r3, #0] - 80048f0: 4a53 ldr r2, [pc, #332] ; (8004a40 ) - 80048f2: 4293 cmp r3, r2 - 80048f4: d128 bne.n 8004948 + 80048f0: 687b ldr r3, [r7, #4] + 80048f2: 681b ldr r3, [r3, #0] + 80048f4: 4a53 ldr r2, [pc, #332] ; (8004a44 ) + 80048f6: 4293 cmp r3, r2 + 80048f8: d128 bne.n 800494c { /* USER CODE BEGIN UART7_MspInit 0 */ /* USER CODE END UART7_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_UART7_CLK_ENABLE(); - 80048f6: 4b53 ldr r3, [pc, #332] ; (8004a44 ) - 80048f8: 6c1b ldr r3, [r3, #64] ; 0x40 - 80048fa: 4a52 ldr r2, [pc, #328] ; (8004a44 ) - 80048fc: f043 4380 orr.w r3, r3, #1073741824 ; 0x40000000 - 8004900: 6413 str r3, [r2, #64] ; 0x40 - 8004902: 4b50 ldr r3, [pc, #320] ; (8004a44 ) - 8004904: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004906: f003 4380 and.w r3, r3, #1073741824 ; 0x40000000 - 800490a: 623b str r3, [r7, #32] - 800490c: 6a3b ldr r3, [r7, #32] + 80048fa: 4b53 ldr r3, [pc, #332] ; (8004a48 ) + 80048fc: 6c1b ldr r3, [r3, #64] ; 0x40 + 80048fe: 4a52 ldr r2, [pc, #328] ; (8004a48 ) + 8004900: f043 4380 orr.w r3, r3, #1073741824 ; 0x40000000 + 8004904: 6413 str r3, [r2, #64] ; 0x40 + 8004906: 4b50 ldr r3, [pc, #320] ; (8004a48 ) + 8004908: 6c1b ldr r3, [r3, #64] ; 0x40 + 800490a: f003 4380 and.w r3, r3, #1073741824 ; 0x40000000 + 800490e: 623b str r3, [r7, #32] + 8004910: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOF_CLK_ENABLE(); - 800490e: 4b4d ldr r3, [pc, #308] ; (8004a44 ) - 8004910: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004912: 4a4c ldr r2, [pc, #304] ; (8004a44 ) - 8004914: f043 0320 orr.w r3, r3, #32 - 8004918: 6313 str r3, [r2, #48] ; 0x30 - 800491a: 4b4a ldr r3, [pc, #296] ; (8004a44 ) - 800491c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800491e: f003 0320 and.w r3, r3, #32 - 8004922: 61fb str r3, [r7, #28] - 8004924: 69fb ldr r3, [r7, #28] + 8004912: 4b4d ldr r3, [pc, #308] ; (8004a48 ) + 8004914: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004916: 4a4c ldr r2, [pc, #304] ; (8004a48 ) + 8004918: f043 0320 orr.w r3, r3, #32 + 800491c: 6313 str r3, [r2, #48] ; 0x30 + 800491e: 4b4a ldr r3, [pc, #296] ; (8004a48 ) + 8004920: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004922: f003 0320 and.w r3, r3, #32 + 8004926: 61fb str r3, [r7, #28] + 8004928: 69fb ldr r3, [r7, #28] /**UART7 GPIO Configuration PF7 ------> UART7_TX PF6 ------> UART7_RX */ GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_6; - 8004926: 23c0 movs r3, #192 ; 0xc0 - 8004928: 627b str r3, [r7, #36] ; 0x24 + 800492a: 23c0 movs r3, #192 ; 0xc0 + 800492c: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800492a: 2302 movs r3, #2 - 800492c: 62bb str r3, [r7, #40] ; 0x28 + 800492e: 2302 movs r3, #2 + 8004930: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 800492e: 2300 movs r3, #0 - 8004930: 62fb str r3, [r7, #44] ; 0x2c + 8004932: 2300 movs r3, #0 + 8004934: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004932: 2303 movs r3, #3 - 8004934: 633b str r3, [r7, #48] ; 0x30 + 8004936: 2303 movs r3, #3 + 8004938: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF8_UART7; - 8004936: 2308 movs r3, #8 - 8004938: 637b str r3, [r7, #52] ; 0x34 + 800493a: 2308 movs r3, #8 + 800493c: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOF, &GPIO_InitStruct); - 800493a: f107 0324 add.w r3, r7, #36 ; 0x24 - 800493e: 4619 mov r1, r3 - 8004940: 4841 ldr r0, [pc, #260] ; (8004a48 ) - 8004942: f002 fe9b bl 800767c + 800493e: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004942: 4619 mov r1, r3 + 8004944: 4841 ldr r0, [pc, #260] ; (8004a4c ) + 8004946: f002 fe9b bl 8007680 /* USER CODE BEGIN USART6_MspInit 1 */ /* USER CODE END USART6_MspInit 1 */ } } - 8004946: e077 b.n 8004a38 + 800494a: e077 b.n 8004a3c else if(huart->Instance==USART1) - 8004948: 687b ldr r3, [r7, #4] - 800494a: 681b ldr r3, [r3, #0] - 800494c: 4a3f ldr r2, [pc, #252] ; (8004a4c ) - 800494e: 4293 cmp r3, r2 - 8004950: d145 bne.n 80049de + 800494c: 687b ldr r3, [r7, #4] + 800494e: 681b ldr r3, [r3, #0] + 8004950: 4a3f ldr r2, [pc, #252] ; (8004a50 ) + 8004952: 4293 cmp r3, r2 + 8004954: d145 bne.n 80049e2 __HAL_RCC_USART1_CLK_ENABLE(); - 8004952: 4b3c ldr r3, [pc, #240] ; (8004a44 ) - 8004954: 6c5b ldr r3, [r3, #68] ; 0x44 - 8004956: 4a3b ldr r2, [pc, #236] ; (8004a44 ) - 8004958: f043 0310 orr.w r3, r3, #16 - 800495c: 6453 str r3, [r2, #68] ; 0x44 - 800495e: 4b39 ldr r3, [pc, #228] ; (8004a44 ) - 8004960: 6c5b ldr r3, [r3, #68] ; 0x44 - 8004962: f003 0310 and.w r3, r3, #16 - 8004966: 61bb str r3, [r7, #24] - 8004968: 69bb ldr r3, [r7, #24] + 8004956: 4b3c ldr r3, [pc, #240] ; (8004a48 ) + 8004958: 6c5b ldr r3, [r3, #68] ; 0x44 + 800495a: 4a3b ldr r2, [pc, #236] ; (8004a48 ) + 800495c: f043 0310 orr.w r3, r3, #16 + 8004960: 6453 str r3, [r2, #68] ; 0x44 + 8004962: 4b39 ldr r3, [pc, #228] ; (8004a48 ) + 8004964: 6c5b ldr r3, [r3, #68] ; 0x44 + 8004966: f003 0310 and.w r3, r3, #16 + 800496a: 61bb str r3, [r7, #24] + 800496c: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOB_CLK_ENABLE(); - 800496a: 4b36 ldr r3, [pc, #216] ; (8004a44 ) - 800496c: 6b1b ldr r3, [r3, #48] ; 0x30 - 800496e: 4a35 ldr r2, [pc, #212] ; (8004a44 ) - 8004970: f043 0302 orr.w r3, r3, #2 - 8004974: 6313 str r3, [r2, #48] ; 0x30 - 8004976: 4b33 ldr r3, [pc, #204] ; (8004a44 ) - 8004978: 6b1b ldr r3, [r3, #48] ; 0x30 - 800497a: f003 0302 and.w r3, r3, #2 - 800497e: 617b str r3, [r7, #20] - 8004980: 697b ldr r3, [r7, #20] + 800496e: 4b36 ldr r3, [pc, #216] ; (8004a48 ) + 8004970: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004972: 4a35 ldr r2, [pc, #212] ; (8004a48 ) + 8004974: f043 0302 orr.w r3, r3, #2 + 8004978: 6313 str r3, [r2, #48] ; 0x30 + 800497a: 4b33 ldr r3, [pc, #204] ; (8004a48 ) + 800497c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800497e: f003 0302 and.w r3, r3, #2 + 8004982: 617b str r3, [r7, #20] + 8004984: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8004982: 4b30 ldr r3, [pc, #192] ; (8004a44 ) - 8004984: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004986: 4a2f ldr r2, [pc, #188] ; (8004a44 ) - 8004988: f043 0301 orr.w r3, r3, #1 - 800498c: 6313 str r3, [r2, #48] ; 0x30 - 800498e: 4b2d ldr r3, [pc, #180] ; (8004a44 ) - 8004990: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004992: f003 0301 and.w r3, r3, #1 - 8004996: 613b str r3, [r7, #16] - 8004998: 693b ldr r3, [r7, #16] + 8004986: 4b30 ldr r3, [pc, #192] ; (8004a48 ) + 8004988: 6b1b ldr r3, [r3, #48] ; 0x30 + 800498a: 4a2f ldr r2, [pc, #188] ; (8004a48 ) + 800498c: f043 0301 orr.w r3, r3, #1 + 8004990: 6313 str r3, [r2, #48] ; 0x30 + 8004992: 4b2d ldr r3, [pc, #180] ; (8004a48 ) + 8004994: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004996: f003 0301 and.w r3, r3, #1 + 800499a: 613b str r3, [r7, #16] + 800499c: 693b ldr r3, [r7, #16] GPIO_InitStruct.Pin = VCP_RX_Pin; - 800499a: 2380 movs r3, #128 ; 0x80 - 800499c: 627b str r3, [r7, #36] ; 0x24 + 800499e: 2380 movs r3, #128 ; 0x80 + 80049a0: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800499e: 2302 movs r3, #2 - 80049a0: 62bb str r3, [r7, #40] ; 0x28 + 80049a2: 2302 movs r3, #2 + 80049a4: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 80049a2: 2300 movs r3, #0 - 80049a4: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 80049a6: 2300 movs r3, #0 - 80049a8: 633b str r3, [r7, #48] ; 0x30 + 80049a8: 62fb str r3, [r7, #44] ; 0x2c + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 80049aa: 2300 movs r3, #0 + 80049ac: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF7_USART1; - 80049aa: 2307 movs r3, #7 - 80049ac: 637b str r3, [r7, #52] ; 0x34 + 80049ae: 2307 movs r3, #7 + 80049b0: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(VCP_RX_GPIO_Port, &GPIO_InitStruct); - 80049ae: f107 0324 add.w r3, r7, #36 ; 0x24 - 80049b2: 4619 mov r1, r3 - 80049b4: 4826 ldr r0, [pc, #152] ; (8004a50 ) - 80049b6: f002 fe61 bl 800767c + 80049b2: f107 0324 add.w r3, r7, #36 ; 0x24 + 80049b6: 4619 mov r1, r3 + 80049b8: 4826 ldr r0, [pc, #152] ; (8004a54 ) + 80049ba: f002 fe61 bl 8007680 GPIO_InitStruct.Pin = VCP_TX_Pin; - 80049ba: f44f 7300 mov.w r3, #512 ; 0x200 - 80049be: 627b str r3, [r7, #36] ; 0x24 + 80049be: f44f 7300 mov.w r3, #512 ; 0x200 + 80049c2: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80049c0: 2302 movs r3, #2 - 80049c2: 62bb str r3, [r7, #40] ; 0x28 + 80049c4: 2302 movs r3, #2 + 80049c6: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 80049c4: 2300 movs r3, #0 - 80049c6: 62fb str r3, [r7, #44] ; 0x2c - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 80049c8: 2300 movs r3, #0 - 80049ca: 633b str r3, [r7, #48] ; 0x30 + 80049ca: 62fb str r3, [r7, #44] ; 0x2c + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; + 80049cc: 2300 movs r3, #0 + 80049ce: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF7_USART1; - 80049cc: 2307 movs r3, #7 - 80049ce: 637b str r3, [r7, #52] ; 0x34 + 80049d0: 2307 movs r3, #7 + 80049d2: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(VCP_TX_GPIO_Port, &GPIO_InitStruct); - 80049d0: f107 0324 add.w r3, r7, #36 ; 0x24 - 80049d4: 4619 mov r1, r3 - 80049d6: 481f ldr r0, [pc, #124] ; (8004a54 ) - 80049d8: f002 fe50 bl 800767c + 80049d4: f107 0324 add.w r3, r7, #36 ; 0x24 + 80049d8: 4619 mov r1, r3 + 80049da: 481f ldr r0, [pc, #124] ; (8004a58 ) + 80049dc: f002 fe50 bl 8007680 } - 80049dc: e02c b.n 8004a38 + 80049e0: e02c b.n 8004a3c else if(huart->Instance==USART6) - 80049de: 687b ldr r3, [r7, #4] - 80049e0: 681b ldr r3, [r3, #0] - 80049e2: 4a1d ldr r2, [pc, #116] ; (8004a58 ) - 80049e4: 4293 cmp r3, r2 - 80049e6: d127 bne.n 8004a38 + 80049e2: 687b ldr r3, [r7, #4] + 80049e4: 681b ldr r3, [r3, #0] + 80049e6: 4a1d ldr r2, [pc, #116] ; (8004a5c ) + 80049e8: 4293 cmp r3, r2 + 80049ea: d127 bne.n 8004a3c __HAL_RCC_USART6_CLK_ENABLE(); - 80049e8: 4b16 ldr r3, [pc, #88] ; (8004a44 ) - 80049ea: 6c5b ldr r3, [r3, #68] ; 0x44 - 80049ec: 4a15 ldr r2, [pc, #84] ; (8004a44 ) - 80049ee: f043 0320 orr.w r3, r3, #32 - 80049f2: 6453 str r3, [r2, #68] ; 0x44 - 80049f4: 4b13 ldr r3, [pc, #76] ; (8004a44 ) - 80049f6: 6c5b ldr r3, [r3, #68] ; 0x44 - 80049f8: f003 0320 and.w r3, r3, #32 - 80049fc: 60fb str r3, [r7, #12] - 80049fe: 68fb ldr r3, [r7, #12] + 80049ec: 4b16 ldr r3, [pc, #88] ; (8004a48 ) + 80049ee: 6c5b ldr r3, [r3, #68] ; 0x44 + 80049f0: 4a15 ldr r2, [pc, #84] ; (8004a48 ) + 80049f2: f043 0320 orr.w r3, r3, #32 + 80049f6: 6453 str r3, [r2, #68] ; 0x44 + 80049f8: 4b13 ldr r3, [pc, #76] ; (8004a48 ) + 80049fa: 6c5b ldr r3, [r3, #68] ; 0x44 + 80049fc: f003 0320 and.w r3, r3, #32 + 8004a00: 60fb str r3, [r7, #12] + 8004a02: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOC_CLK_ENABLE(); - 8004a00: 4b10 ldr r3, [pc, #64] ; (8004a44 ) - 8004a02: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004a04: 4a0f ldr r2, [pc, #60] ; (8004a44 ) - 8004a06: f043 0304 orr.w r3, r3, #4 - 8004a0a: 6313 str r3, [r2, #48] ; 0x30 - 8004a0c: 4b0d ldr r3, [pc, #52] ; (8004a44 ) - 8004a0e: 6b1b ldr r3, [r3, #48] ; 0x30 - 8004a10: f003 0304 and.w r3, r3, #4 - 8004a14: 60bb str r3, [r7, #8] - 8004a16: 68bb ldr r3, [r7, #8] + 8004a04: 4b10 ldr r3, [pc, #64] ; (8004a48 ) + 8004a06: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004a08: 4a0f ldr r2, [pc, #60] ; (8004a48 ) + 8004a0a: f043 0304 orr.w r3, r3, #4 + 8004a0e: 6313 str r3, [r2, #48] ; 0x30 + 8004a10: 4b0d ldr r3, [pc, #52] ; (8004a48 ) + 8004a12: 6b1b ldr r3, [r3, #48] ; 0x30 + 8004a14: f003 0304 and.w r3, r3, #4 + 8004a18: 60bb str r3, [r7, #8] + 8004a1a: 68bb ldr r3, [r7, #8] GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_6; - 8004a18: 23c0 movs r3, #192 ; 0xc0 - 8004a1a: 627b str r3, [r7, #36] ; 0x24 + 8004a1c: 23c0 movs r3, #192 ; 0xc0 + 8004a1e: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004a1c: 2302 movs r3, #2 - 8004a1e: 62bb str r3, [r7, #40] ; 0x28 + 8004a20: 2302 movs r3, #2 + 8004a22: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004a20: 2300 movs r3, #0 - 8004a22: 62fb str r3, [r7, #44] ; 0x2c + 8004a24: 2300 movs r3, #0 + 8004a26: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004a24: 2303 movs r3, #3 - 8004a26: 633b str r3, [r7, #48] ; 0x30 + 8004a28: 2303 movs r3, #3 + 8004a2a: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF8_USART6; - 8004a28: 2308 movs r3, #8 - 8004a2a: 637b str r3, [r7, #52] ; 0x34 + 8004a2c: 2308 movs r3, #8 + 8004a2e: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 8004a2c: f107 0324 add.w r3, r7, #36 ; 0x24 - 8004a30: 4619 mov r1, r3 - 8004a32: 480a ldr r0, [pc, #40] ; (8004a5c ) - 8004a34: f002 fe22 bl 800767c + 8004a30: f107 0324 add.w r3, r7, #36 ; 0x24 + 8004a34: 4619 mov r1, r3 + 8004a36: 480a ldr r0, [pc, #40] ; (8004a60 ) + 8004a38: f002 fe22 bl 8007680 } - 8004a38: bf00 nop - 8004a3a: 3738 adds r7, #56 ; 0x38 - 8004a3c: 46bd mov sp, r7 - 8004a3e: bd80 pop {r7, pc} - 8004a40: 40007800 .word 0x40007800 - 8004a44: 40023800 .word 0x40023800 - 8004a48: 40021400 .word 0x40021400 - 8004a4c: 40011000 .word 0x40011000 - 8004a50: 40020400 .word 0x40020400 - 8004a54: 40020000 .word 0x40020000 - 8004a58: 40011400 .word 0x40011400 - 8004a5c: 40020800 .word 0x40020800 + 8004a3c: bf00 nop + 8004a3e: 3738 adds r7, #56 ; 0x38 + 8004a40: 46bd mov sp, r7 + 8004a42: bd80 pop {r7, pc} + 8004a44: 40007800 .word 0x40007800 + 8004a48: 40023800 .word 0x40023800 + 8004a4c: 40021400 .word 0x40021400 + 8004a50: 40011000 .word 0x40011000 + 8004a54: 40020400 .word 0x40020400 + 8004a58: 40020000 .word 0x40020000 + 8004a5c: 40011400 .word 0x40011400 + 8004a60: 40020800 .word 0x40020800 -08004a60 : +08004a64 : } static uint32_t FMC_Initialized = 0; static void HAL_FMC_MspInit(void){ - 8004a60: b580 push {r7, lr} - 8004a62: b086 sub sp, #24 - 8004a64: af00 add r7, sp, #0 + 8004a64: b580 push {r7, lr} + 8004a66: b086 sub sp, #24 + 8004a68: af00 add r7, sp, #0 /* USER CODE BEGIN FMC_MspInit 0 */ /* USER CODE END FMC_MspInit 0 */ GPIO_InitTypeDef GPIO_InitStruct ={0}; - 8004a66: 1d3b adds r3, r7, #4 - 8004a68: 2200 movs r2, #0 - 8004a6a: 601a str r2, [r3, #0] - 8004a6c: 605a str r2, [r3, #4] - 8004a6e: 609a str r2, [r3, #8] - 8004a70: 60da str r2, [r3, #12] - 8004a72: 611a str r2, [r3, #16] + 8004a6a: 1d3b adds r3, r7, #4 + 8004a6c: 2200 movs r2, #0 + 8004a6e: 601a str r2, [r3, #0] + 8004a70: 605a str r2, [r3, #4] + 8004a72: 609a str r2, [r3, #8] + 8004a74: 60da str r2, [r3, #12] + 8004a76: 611a str r2, [r3, #16] if (FMC_Initialized) { - 8004a74: 4b3a ldr r3, [pc, #232] ; (8004b60 ) - 8004a76: 681b ldr r3, [r3, #0] - 8004a78: 2b00 cmp r3, #0 - 8004a7a: d16d bne.n 8004b58 + 8004a78: 4b3a ldr r3, [pc, #232] ; (8004b64 ) + 8004a7a: 681b ldr r3, [r3, #0] + 8004a7c: 2b00 cmp r3, #0 + 8004a7e: d16d bne.n 8004b5c return; } FMC_Initialized = 1; - 8004a7c: 4b38 ldr r3, [pc, #224] ; (8004b60 ) - 8004a7e: 2201 movs r2, #1 - 8004a80: 601a str r2, [r3, #0] + 8004a80: 4b38 ldr r3, [pc, #224] ; (8004b64 ) + 8004a82: 2201 movs r2, #1 + 8004a84: 601a str r2, [r3, #0] /* Peripheral clock enable */ __HAL_RCC_FMC_CLK_ENABLE(); - 8004a82: 4b38 ldr r3, [pc, #224] ; (8004b64 ) - 8004a84: 6b9b ldr r3, [r3, #56] ; 0x38 - 8004a86: 4a37 ldr r2, [pc, #220] ; (8004b64 ) - 8004a88: f043 0301 orr.w r3, r3, #1 - 8004a8c: 6393 str r3, [r2, #56] ; 0x38 - 8004a8e: 4b35 ldr r3, [pc, #212] ; (8004b64 ) - 8004a90: 6b9b ldr r3, [r3, #56] ; 0x38 - 8004a92: f003 0301 and.w r3, r3, #1 - 8004a96: 603b str r3, [r7, #0] - 8004a98: 683b ldr r3, [r7, #0] + 8004a86: 4b38 ldr r3, [pc, #224] ; (8004b68 ) + 8004a88: 6b9b ldr r3, [r3, #56] ; 0x38 + 8004a8a: 4a37 ldr r2, [pc, #220] ; (8004b68 ) + 8004a8c: f043 0301 orr.w r3, r3, #1 + 8004a90: 6393 str r3, [r2, #56] ; 0x38 + 8004a92: 4b35 ldr r3, [pc, #212] ; (8004b68 ) + 8004a94: 6b9b ldr r3, [r3, #56] ; 0x38 + 8004a96: f003 0301 and.w r3, r3, #1 + 8004a9a: 603b str r3, [r7, #0] + 8004a9c: 683b ldr r3, [r7, #0] PE10 ------> FMC_D7 PE12 ------> FMC_D9 PE15 ------> FMC_D12 PE13 ------> FMC_D10 */ GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_0|GPIO_PIN_8|GPIO_PIN_9 - 8004a9a: f64f 7383 movw r3, #65411 ; 0xff83 - 8004a9e: 607b str r3, [r7, #4] + 8004a9e: f64f 7383 movw r3, #65411 ; 0xff83 + 8004aa2: 607b str r3, [r7, #4] |GPIO_PIN_11|GPIO_PIN_14|GPIO_PIN_7|GPIO_PIN_10 |GPIO_PIN_12|GPIO_PIN_15|GPIO_PIN_13; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004aa0: 2302 movs r3, #2 - 8004aa2: 60bb str r3, [r7, #8] + 8004aa4: 2302 movs r3, #2 + 8004aa6: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004aa4: 2300 movs r3, #0 - 8004aa6: 60fb str r3, [r7, #12] + 8004aa8: 2300 movs r3, #0 + 8004aaa: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004aa8: 2303 movs r3, #3 - 8004aaa: 613b str r3, [r7, #16] + 8004aac: 2303 movs r3, #3 + 8004aae: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 8004aac: 230c movs r3, #12 - 8004aae: 617b str r3, [r7, #20] + 8004ab0: 230c movs r3, #12 + 8004ab2: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); - 8004ab0: 1d3b adds r3, r7, #4 - 8004ab2: 4619 mov r1, r3 - 8004ab4: 482c ldr r0, [pc, #176] ; (8004b68 ) - 8004ab6: f002 fde1 bl 800767c + 8004ab4: 1d3b adds r3, r7, #4 + 8004ab6: 4619 mov r1, r3 + 8004ab8: 482c ldr r0, [pc, #176] ; (8004b6c ) + 8004aba: f002 fde1 bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_15|GPIO_PIN_8|GPIO_PIN_1|GPIO_PIN_0 - 8004aba: f248 1333 movw r3, #33075 ; 0x8133 - 8004abe: 607b str r3, [r7, #4] + 8004abe: f248 1333 movw r3, #33075 ; 0x8133 + 8004ac2: 607b str r3, [r7, #4] |GPIO_PIN_5|GPIO_PIN_4; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004ac0: 2302 movs r3, #2 - 8004ac2: 60bb str r3, [r7, #8] + 8004ac4: 2302 movs r3, #2 + 8004ac6: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004ac4: 2300 movs r3, #0 - 8004ac6: 60fb str r3, [r7, #12] + 8004ac8: 2300 movs r3, #0 + 8004aca: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004ac8: 2303 movs r3, #3 - 8004aca: 613b str r3, [r7, #16] + 8004acc: 2303 movs r3, #3 + 8004ace: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 8004acc: 230c movs r3, #12 - 8004ace: 617b str r3, [r7, #20] + 8004ad0: 230c movs r3, #12 + 8004ad2: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOG, &GPIO_InitStruct); - 8004ad0: 1d3b adds r3, r7, #4 - 8004ad2: 4619 mov r1, r3 - 8004ad4: 4825 ldr r0, [pc, #148] ; (8004b6c ) - 8004ad6: f002 fdd1 bl 800767c + 8004ad4: 1d3b adds r3, r7, #4 + 8004ad6: 4619 mov r1, r3 + 8004ad8: 4825 ldr r0, [pc, #148] ; (8004b70 ) + 8004ada: f002 fdd1 bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_15|GPIO_PIN_10 - 8004ada: f24c 7303 movw r3, #50947 ; 0xc703 - 8004ade: 607b str r3, [r7, #4] + 8004ade: f24c 7303 movw r3, #50947 ; 0xc703 + 8004ae2: 607b str r3, [r7, #4] |GPIO_PIN_14|GPIO_PIN_9|GPIO_PIN_8; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004ae0: 2302 movs r3, #2 - 8004ae2: 60bb str r3, [r7, #8] + 8004ae4: 2302 movs r3, #2 + 8004ae6: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004ae4: 2300 movs r3, #0 - 8004ae6: 60fb str r3, [r7, #12] + 8004ae8: 2300 movs r3, #0 + 8004aea: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004ae8: 2303 movs r3, #3 - 8004aea: 613b str r3, [r7, #16] + 8004aec: 2303 movs r3, #3 + 8004aee: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 8004aec: 230c movs r3, #12 - 8004aee: 617b str r3, [r7, #20] + 8004af0: 230c movs r3, #12 + 8004af2: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8004af0: 1d3b adds r3, r7, #4 - 8004af2: 4619 mov r1, r3 - 8004af4: 481e ldr r0, [pc, #120] ; (8004b70 ) - 8004af6: f002 fdc1 bl 800767c + 8004af4: 1d3b adds r3, r7, #4 + 8004af6: 4619 mov r1, r3 + 8004af8: 481e ldr r0, [pc, #120] ; (8004b74 ) + 8004afa: f002 fdc1 bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3 - 8004afa: f64f 033f movw r3, #63551 ; 0xf83f - 8004afe: 607b str r3, [r7, #4] + 8004afe: f64f 033f movw r3, #63551 ; 0xf83f + 8004b02: 607b str r3, [r7, #4] |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_12|GPIO_PIN_15 |GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_11; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004b00: 2302 movs r3, #2 - 8004b02: 60bb str r3, [r7, #8] + 8004b04: 2302 movs r3, #2 + 8004b06: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004b04: 2300 movs r3, #0 - 8004b06: 60fb str r3, [r7, #12] + 8004b08: 2300 movs r3, #0 + 8004b0a: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004b08: 2303 movs r3, #3 - 8004b0a: 613b str r3, [r7, #16] + 8004b0c: 2303 movs r3, #3 + 8004b0e: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 8004b0c: 230c movs r3, #12 - 8004b0e: 617b str r3, [r7, #20] + 8004b10: 230c movs r3, #12 + 8004b12: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOF, &GPIO_InitStruct); - 8004b10: 1d3b adds r3, r7, #4 - 8004b12: 4619 mov r1, r3 - 8004b14: 4817 ldr r0, [pc, #92] ; (8004b74 ) - 8004b16: f002 fdb1 bl 800767c + 8004b14: 1d3b adds r3, r7, #4 + 8004b16: 4619 mov r1, r3 + 8004b18: 4817 ldr r0, [pc, #92] ; (8004b78 ) + 8004b1a: f002 fdb1 bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_3; - 8004b1a: 2328 movs r3, #40 ; 0x28 - 8004b1c: 607b str r3, [r7, #4] + 8004b1e: 2328 movs r3, #40 ; 0x28 + 8004b20: 607b str r3, [r7, #4] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004b1e: 2302 movs r3, #2 - 8004b20: 60bb str r3, [r7, #8] + 8004b22: 2302 movs r3, #2 + 8004b24: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004b22: 2300 movs r3, #0 - 8004b24: 60fb str r3, [r7, #12] + 8004b26: 2300 movs r3, #0 + 8004b28: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004b26: 2303 movs r3, #3 - 8004b28: 613b str r3, [r7, #16] + 8004b2a: 2303 movs r3, #3 + 8004b2c: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 8004b2a: 230c movs r3, #12 - 8004b2c: 617b str r3, [r7, #20] + 8004b2e: 230c movs r3, #12 + 8004b30: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOH, &GPIO_InitStruct); - 8004b2e: 1d3b adds r3, r7, #4 - 8004b30: 4619 mov r1, r3 - 8004b32: 4811 ldr r0, [pc, #68] ; (8004b78 ) - 8004b34: f002 fda2 bl 800767c + 8004b32: 1d3b adds r3, r7, #4 + 8004b34: 4619 mov r1, r3 + 8004b36: 4811 ldr r0, [pc, #68] ; (8004b7c ) + 8004b38: f002 fda2 bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_3; - 8004b38: 2308 movs r3, #8 - 8004b3a: 607b str r3, [r7, #4] + 8004b3c: 2308 movs r3, #8 + 8004b3e: 607b str r3, [r7, #4] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8004b3c: 2302 movs r3, #2 - 8004b3e: 60bb str r3, [r7, #8] + 8004b40: 2302 movs r3, #2 + 8004b42: 60bb str r3, [r7, #8] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8004b40: 2300 movs r3, #0 - 8004b42: 60fb str r3, [r7, #12] + 8004b44: 2300 movs r3, #0 + 8004b46: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8004b44: 2303 movs r3, #3 - 8004b46: 613b str r3, [r7, #16] + 8004b48: 2303 movs r3, #3 + 8004b4a: 613b str r3, [r7, #16] GPIO_InitStruct.Alternate = GPIO_AF12_FMC; - 8004b48: 230c movs r3, #12 - 8004b4a: 617b str r3, [r7, #20] + 8004b4c: 230c movs r3, #12 + 8004b4e: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 8004b4c: 1d3b adds r3, r7, #4 - 8004b4e: 4619 mov r1, r3 - 8004b50: 480a ldr r0, [pc, #40] ; (8004b7c ) - 8004b52: f002 fd93 bl 800767c - 8004b56: e000 b.n 8004b5a + 8004b50: 1d3b adds r3, r7, #4 + 8004b52: 4619 mov r1, r3 + 8004b54: 480a ldr r0, [pc, #40] ; (8004b80 ) + 8004b56: f002 fd93 bl 8007680 + 8004b5a: e000 b.n 8004b5e return; - 8004b58: bf00 nop + 8004b5c: bf00 nop /* USER CODE BEGIN FMC_MspInit 1 */ /* USER CODE END FMC_MspInit 1 */ } - 8004b5a: 3718 adds r7, #24 - 8004b5c: 46bd mov sp, r7 - 8004b5e: bd80 pop {r7, pc} - 8004b60: 20000570 .word 0x20000570 - 8004b64: 40023800 .word 0x40023800 - 8004b68: 40021000 .word 0x40021000 - 8004b6c: 40021800 .word 0x40021800 - 8004b70: 40020c00 .word 0x40020c00 - 8004b74: 40021400 .word 0x40021400 - 8004b78: 40021c00 .word 0x40021c00 - 8004b7c: 40020800 .word 0x40020800 + 8004b5e: 3718 adds r7, #24 + 8004b60: 46bd mov sp, r7 + 8004b62: bd80 pop {r7, pc} + 8004b64: 20000570 .word 0x20000570 + 8004b68: 40023800 .word 0x40023800 + 8004b6c: 40021000 .word 0x40021000 + 8004b70: 40021800 .word 0x40021800 + 8004b74: 40020c00 .word 0x40020c00 + 8004b78: 40021400 .word 0x40021400 + 8004b7c: 40021c00 .word 0x40021c00 + 8004b80: 40020800 .word 0x40020800 -08004b80 : +08004b84 : void HAL_SDRAM_MspInit(SDRAM_HandleTypeDef* hsdram){ - 8004b80: b580 push {r7, lr} - 8004b82: b082 sub sp, #8 - 8004b84: af00 add r7, sp, #0 - 8004b86: 6078 str r0, [r7, #4] + 8004b84: b580 push {r7, lr} + 8004b86: b082 sub sp, #8 + 8004b88: af00 add r7, sp, #0 + 8004b8a: 6078 str r0, [r7, #4] /* USER CODE BEGIN SDRAM_MspInit 0 */ /* USER CODE END SDRAM_MspInit 0 */ HAL_FMC_MspInit(); - 8004b88: f7ff ff6a bl 8004a60 + 8004b8c: f7ff ff6a bl 8004a64 /* USER CODE BEGIN SDRAM_MspInit 1 */ /* USER CODE END SDRAM_MspInit 1 */ } - 8004b8c: bf00 nop - 8004b8e: 3708 adds r7, #8 - 8004b90: 46bd mov sp, r7 - 8004b92: bd80 pop {r7, pc} + 8004b90: bf00 nop + 8004b92: 3708 adds r7, #8 + 8004b94: 46bd mov sp, r7 + 8004b96: bd80 pop {r7, pc} -08004b94 : +08004b98 : * reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig(). * @param TickPriority: Tick interrupt priority. * @retval HAL status */ HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8004b94: b580 push {r7, lr} - 8004b96: b08c sub sp, #48 ; 0x30 - 8004b98: af00 add r7, sp, #0 - 8004b9a: 6078 str r0, [r7, #4] + 8004b98: b580 push {r7, lr} + 8004b9a: b08c sub sp, #48 ; 0x30 + 8004b9c: af00 add r7, sp, #0 + 8004b9e: 6078 str r0, [r7, #4] RCC_ClkInitTypeDef clkconfig; uint32_t uwTimclock = 0; - 8004b9c: 2300 movs r3, #0 - 8004b9e: 62fb str r3, [r7, #44] ; 0x2c - uint32_t uwPrescalerValue = 0; 8004ba0: 2300 movs r3, #0 - 8004ba2: 62bb str r3, [r7, #40] ; 0x28 + 8004ba2: 62fb str r3, [r7, #44] ; 0x2c + uint32_t uwPrescalerValue = 0; + 8004ba4: 2300 movs r3, #0 + 8004ba6: 62bb str r3, [r7, #40] ; 0x28 uint32_t pFLatency; /*Configure the TIM6 IRQ priority */ HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority ,0); - 8004ba4: 2200 movs r2, #0 - 8004ba6: 6879 ldr r1, [r7, #4] - 8004ba8: 2036 movs r0, #54 ; 0x36 - 8004baa: f000 fdb7 bl 800571c + 8004ba8: 2200 movs r2, #0 + 8004baa: 6879 ldr r1, [r7, #4] + 8004bac: 2036 movs r0, #54 ; 0x36 + 8004bae: f000 fdb7 bl 8005720 /* Enable the TIM6 global Interrupt */ HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn); - 8004bae: 2036 movs r0, #54 ; 0x36 - 8004bb0: f000 fdd0 bl 8005754 + 8004bb2: 2036 movs r0, #54 ; 0x36 + 8004bb4: f000 fdd0 bl 8005758 /* Enable TIM6 clock */ __HAL_RCC_TIM6_CLK_ENABLE(); - 8004bb4: 4b1f ldr r3, [pc, #124] ; (8004c34 ) - 8004bb6: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004bb8: 4a1e ldr r2, [pc, #120] ; (8004c34 ) - 8004bba: f043 0310 orr.w r3, r3, #16 - 8004bbe: 6413 str r3, [r2, #64] ; 0x40 - 8004bc0: 4b1c ldr r3, [pc, #112] ; (8004c34 ) - 8004bc2: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004bc4: f003 0310 and.w r3, r3, #16 - 8004bc8: 60fb str r3, [r7, #12] - 8004bca: 68fb ldr r3, [r7, #12] + 8004bb8: 4b1f ldr r3, [pc, #124] ; (8004c38 ) + 8004bba: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004bbc: 4a1e ldr r2, [pc, #120] ; (8004c38 ) + 8004bbe: f043 0310 orr.w r3, r3, #16 + 8004bc2: 6413 str r3, [r2, #64] ; 0x40 + 8004bc4: 4b1c ldr r3, [pc, #112] ; (8004c38 ) + 8004bc6: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004bc8: f003 0310 and.w r3, r3, #16 + 8004bcc: 60fb str r3, [r7, #12] + 8004bce: 68fb ldr r3, [r7, #12] /* Get clock configuration */ HAL_RCC_GetClockConfig(&clkconfig, &pFLatency); - 8004bcc: f107 0210 add.w r2, r7, #16 - 8004bd0: f107 0314 add.w r3, r7, #20 - 8004bd4: 4611 mov r1, r2 - 8004bd6: 4618 mov r0, r3 - 8004bd8: f004 fe34 bl 8009844 + 8004bd0: f107 0210 add.w r2, r7, #16 + 8004bd4: f107 0314 add.w r3, r7, #20 + 8004bd8: 4611 mov r1, r2 + 8004bda: 4618 mov r0, r3 + 8004bdc: f004 fe34 bl 8009848 /* Compute TIM6 clock */ uwTimclock = 2*HAL_RCC_GetPCLK1Freq(); - 8004bdc: f004 fe0a bl 80097f4 - 8004be0: 4603 mov r3, r0 - 8004be2: 005b lsls r3, r3, #1 - 8004be4: 62fb str r3, [r7, #44] ; 0x2c + 8004be0: f004 fe0a bl 80097f8 + 8004be4: 4603 mov r3, r0 + 8004be6: 005b lsls r3, r3, #1 + 8004be8: 62fb str r3, [r7, #44] ; 0x2c /* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */ uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U); - 8004be6: 6afb ldr r3, [r7, #44] ; 0x2c - 8004be8: 4a13 ldr r2, [pc, #76] ; (8004c38 ) - 8004bea: fba2 2303 umull r2, r3, r2, r3 - 8004bee: 0c9b lsrs r3, r3, #18 - 8004bf0: 3b01 subs r3, #1 - 8004bf2: 62bb str r3, [r7, #40] ; 0x28 + 8004bea: 6afb ldr r3, [r7, #44] ; 0x2c + 8004bec: 4a13 ldr r2, [pc, #76] ; (8004c3c ) + 8004bee: fba2 2303 umull r2, r3, r2, r3 + 8004bf2: 0c9b lsrs r3, r3, #18 + 8004bf4: 3b01 subs r3, #1 + 8004bf6: 62bb str r3, [r7, #40] ; 0x28 /* Initialize TIM6 */ htim6.Instance = TIM6; - 8004bf4: 4b11 ldr r3, [pc, #68] ; (8004c3c ) - 8004bf6: 4a12 ldr r2, [pc, #72] ; (8004c40 ) - 8004bf8: 601a str r2, [r3, #0] + 8004bf8: 4b11 ldr r3, [pc, #68] ; (8004c40 ) + 8004bfa: 4a12 ldr r2, [pc, #72] ; (8004c44 ) + 8004bfc: 601a str r2, [r3, #0] + Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base. + Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock. + ClockDivision = 0 + Counter direction = Up */ htim6.Init.Period = (1000000U / 1000U) - 1U; - 8004bfa: 4b10 ldr r3, [pc, #64] ; (8004c3c ) - 8004bfc: f240 32e7 movw r2, #999 ; 0x3e7 - 8004c00: 60da str r2, [r3, #12] + 8004bfe: 4b10 ldr r3, [pc, #64] ; (8004c40 ) + 8004c00: f240 32e7 movw r2, #999 ; 0x3e7 + 8004c04: 60da str r2, [r3, #12] htim6.Init.Prescaler = uwPrescalerValue; - 8004c02: 4a0e ldr r2, [pc, #56] ; (8004c3c ) - 8004c04: 6abb ldr r3, [r7, #40] ; 0x28 - 8004c06: 6053 str r3, [r2, #4] + 8004c06: 4a0e ldr r2, [pc, #56] ; (8004c40 ) + 8004c08: 6abb ldr r3, [r7, #40] ; 0x28 + 8004c0a: 6053 str r3, [r2, #4] htim6.Init.ClockDivision = 0; - 8004c08: 4b0c ldr r3, [pc, #48] ; (8004c3c ) - 8004c0a: 2200 movs r2, #0 - 8004c0c: 611a str r2, [r3, #16] + 8004c0c: 4b0c ldr r3, [pc, #48] ; (8004c40 ) + 8004c0e: 2200 movs r2, #0 + 8004c10: 611a str r2, [r3, #16] htim6.Init.CounterMode = TIM_COUNTERMODE_UP; - 8004c0e: 4b0b ldr r3, [pc, #44] ; (8004c3c ) - 8004c10: 2200 movs r2, #0 - 8004c12: 609a str r2, [r3, #8] + 8004c12: 4b0b ldr r3, [pc, #44] ; (8004c40 ) + 8004c14: 2200 movs r2, #0 + 8004c16: 609a str r2, [r3, #8] if(HAL_TIM_Base_Init(&htim6) == HAL_OK) - 8004c14: 4809 ldr r0, [pc, #36] ; (8004c3c ) - 8004c16: f005 ff32 bl 800aa7e - 8004c1a: 4603 mov r3, r0 - 8004c1c: 2b00 cmp r3, #0 - 8004c1e: d104 bne.n 8004c2a + 8004c18: 4809 ldr r0, [pc, #36] ; (8004c40 ) + 8004c1a: f005 ff32 bl 800aa82 + 8004c1e: 4603 mov r3, r0 + 8004c20: 2b00 cmp r3, #0 + 8004c22: d104 bne.n 8004c2e { /* Start the TIM time Base generation in interrupt mode */ return HAL_TIM_Base_Start_IT(&htim6); - 8004c20: 4806 ldr r0, [pc, #24] ; (8004c3c ) - 8004c22: f005 ff57 bl 800aad4 - 8004c26: 4603 mov r3, r0 - 8004c28: e000 b.n 8004c2c + 8004c24: 4806 ldr r0, [pc, #24] ; (8004c40 ) + 8004c26: f005 ff57 bl 800aad8 + 8004c2a: 4603 mov r3, r0 + 8004c2c: e000 b.n 8004c30 } /* Return function status */ return HAL_ERROR; - 8004c2a: 2301 movs r3, #1 -} - 8004c2c: 4618 mov r0, r3 - 8004c2e: 3730 adds r7, #48 ; 0x30 - 8004c30: 46bd mov sp, r7 - 8004c32: bd80 pop {r7, pc} - 8004c34: 40023800 .word 0x40023800 - 8004c38: 431bde83 .word 0x431bde83 - 8004c3c: 20008f40 .word 0x20008f40 - 8004c40: 40001000 .word 0x40001000 - -08004c44 : + 8004c2e: 2301 movs r3, #1 +} + 8004c30: 4618 mov r0, r3 + 8004c32: 3730 adds r7, #48 ; 0x30 + 8004c34: 46bd mov sp, r7 + 8004c36: bd80 pop {r7, pc} + 8004c38: 40023800 .word 0x40023800 + 8004c3c: 431bde83 .word 0x431bde83 + 8004c40: 20008f40 .word 0x20008f40 + 8004c44: 40001000 .word 0x40001000 + +08004c48 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 8004c44: b480 push {r7} - 8004c46: af00 add r7, sp, #0 + 8004c48: b480 push {r7} + 8004c4a: 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) - 8004c48: e7fe b.n 8004c48 + 8004c4c: e7fe b.n 8004c4c -08004c4a : +08004c4e : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 8004c4a: b480 push {r7} - 8004c4c: af00 add r7, sp, #0 + 8004c4e: b480 push {r7} + 8004c50: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 8004c4e: e7fe b.n 8004c4e + 8004c52: e7fe b.n 8004c52 -08004c50 : +08004c54 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 8004c50: b480 push {r7} - 8004c52: af00 add r7, sp, #0 + 8004c54: b480 push {r7} + 8004c56: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 8004c54: e7fe b.n 8004c54 + 8004c58: e7fe b.n 8004c58 -08004c56 : +08004c5a : /** * @brief This function handles Pre-fetch fault, memory access fault. */ void BusFault_Handler(void) { - 8004c56: b480 push {r7} - 8004c58: af00 add r7, sp, #0 + 8004c5a: b480 push {r7} + 8004c5c: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 8004c5a: e7fe b.n 8004c5a + 8004c5e: e7fe b.n 8004c5e -08004c5c : +08004c60 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 8004c5c: b480 push {r7} - 8004c5e: af00 add r7, sp, #0 + 8004c60: b480 push {r7} + 8004c62: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 8004c60: e7fe b.n 8004c60 + 8004c64: e7fe b.n 8004c64 -08004c62 : +08004c66 : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 8004c62: b480 push {r7} - 8004c64: af00 add r7, sp, #0 + 8004c66: b480 push {r7} + 8004c68: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 8004c66: bf00 nop - 8004c68: 46bd mov sp, r7 - 8004c6a: f85d 7b04 ldr.w r7, [sp], #4 - 8004c6e: 4770 bx lr + 8004c6a: bf00 nop + 8004c6c: 46bd mov sp, r7 + 8004c6e: f85d 7b04 ldr.w r7, [sp], #4 + 8004c72: 4770 bx lr -08004c70 : +08004c74 : /** * @brief This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts. */ void TIM6_DAC_IRQHandler(void) { - 8004c70: b580 push {r7, lr} - 8004c72: af00 add r7, sp, #0 + 8004c74: b580 push {r7, lr} + 8004c76: af00 add r7, sp, #0 /* USER CODE BEGIN TIM6_DAC_IRQn 0 */ /* USER CODE END TIM6_DAC_IRQn 0 */ HAL_DAC_IRQHandler(&hdac); - 8004c74: 4803 ldr r0, [pc, #12] ; (8004c84 ) - 8004c76: f000 fe87 bl 8005988 + 8004c78: 4803 ldr r0, [pc, #12] ; (8004c88 ) + 8004c7a: f000 fe87 bl 800598c HAL_TIM_IRQHandler(&htim6); - 8004c7a: 4803 ldr r0, [pc, #12] ; (8004c88 ) - 8004c7c: f005 ff89 bl 800ab92 + 8004c7e: 4803 ldr r0, [pc, #12] ; (8004c8c ) + 8004c80: f005 ff89 bl 800ab96 /* USER CODE BEGIN TIM6_DAC_IRQn 1 */ /* USER CODE END TIM6_DAC_IRQn 1 */ } - 8004c80: bf00 nop - 8004c82: bd80 pop {r7, pc} - 8004c84: 20008c9c .word 0x20008c9c - 8004c88: 20008f40 .word 0x20008f40 + 8004c84: bf00 nop + 8004c86: bd80 pop {r7, pc} + 8004c88: 20008c9c .word 0x20008c9c + 8004c8c: 20008f40 .word 0x20008f40 -08004c8c : +08004c90 : /** * @brief This function handles Ethernet global interrupt. */ void ETH_IRQHandler(void) { - 8004c8c: b580 push {r7, lr} - 8004c8e: af00 add r7, sp, #0 + 8004c90: b580 push {r7, lr} + 8004c92: af00 add r7, sp, #0 /* USER CODE BEGIN ETH_IRQn 0 */ /* USER CODE END ETH_IRQn 0 */ HAL_ETH_IRQHandler(&heth); - 8004c90: 4802 ldr r0, [pc, #8] ; (8004c9c ) - 8004c92: f001 ff51 bl 8006b38 + 8004c94: 4802 ldr r0, [pc, #8] ; (8004ca0 ) + 8004c96: f001 ff51 bl 8006b3c /* USER CODE BEGIN ETH_IRQn 1 */ /* USER CODE END ETH_IRQn 1 */ } - 8004c96: bf00 nop - 8004c98: bd80 pop {r7, pc} 8004c9a: bf00 nop - 8004c9c: 2000a8a0 .word 0x2000a8a0 + 8004c9c: bd80 pop {r7, pc} + 8004c9e: bf00 nop + 8004ca0: 2000a8a0 .word 0x2000a8a0 -08004ca0 : +08004ca4 : /** * @brief This function handles LTDC global interrupt. */ void LTDC_IRQHandler(void) { - 8004ca0: b580 push {r7, lr} - 8004ca2: af00 add r7, sp, #0 + 8004ca4: b580 push {r7, lr} + 8004ca6: af00 add r7, sp, #0 /* USER CODE BEGIN LTDC_IRQn 0 */ /* USER CODE END LTDC_IRQn 0 */ HAL_LTDC_IRQHandler(&hltdc); - 8004ca4: 4802 ldr r0, [pc, #8] ; (8004cb0 ) - 8004ca6: f003 fe4f bl 8008948 + 8004ca8: 4802 ldr r0, [pc, #8] ; (8004cb4 ) + 8004caa: f003 fe4f bl 800894c /* USER CODE BEGIN LTDC_IRQn 1 */ /* USER CODE END LTDC_IRQn 1 */ } - 8004caa: bf00 nop - 8004cac: bd80 pop {r7, pc} 8004cae: bf00 nop - 8004cb0: 20008ad8 .word 0x20008ad8 + 8004cb0: bd80 pop {r7, pc} + 8004cb2: bf00 nop + 8004cb4: 20008ad8 .word 0x20008ad8 -08004cb4 <_read>: +08004cb8 <_read>: _kill(status, -1); while (1) {} /* Make sure we hang here */ } __attribute__((weak)) int _read(int file, char *ptr, int len) { - 8004cb4: b580 push {r7, lr} - 8004cb6: b086 sub sp, #24 - 8004cb8: af00 add r7, sp, #0 - 8004cba: 60f8 str r0, [r7, #12] - 8004cbc: 60b9 str r1, [r7, #8] - 8004cbe: 607a str r2, [r7, #4] + 8004cb8: b580 push {r7, lr} + 8004cba: b086 sub sp, #24 + 8004cbc: af00 add r7, sp, #0 + 8004cbe: 60f8 str r0, [r7, #12] + 8004cc0: 60b9 str r1, [r7, #8] + 8004cc2: 607a str r2, [r7, #4] int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) - 8004cc0: 2300 movs r3, #0 - 8004cc2: 617b str r3, [r7, #20] - 8004cc4: e00a b.n 8004cdc <_read+0x28> + 8004cc4: 2300 movs r3, #0 + 8004cc6: 617b str r3, [r7, #20] + 8004cc8: e00a b.n 8004ce0 <_read+0x28> { *ptr++ = __io_getchar(); - 8004cc6: f3af 8000 nop.w - 8004cca: 4601 mov r1, r0 - 8004ccc: 68bb ldr r3, [r7, #8] - 8004cce: 1c5a adds r2, r3, #1 - 8004cd0: 60ba str r2, [r7, #8] - 8004cd2: b2ca uxtb r2, r1 - 8004cd4: 701a strb r2, [r3, #0] + 8004cca: f3af 8000 nop.w + 8004cce: 4601 mov r1, r0 + 8004cd0: 68bb ldr r3, [r7, #8] + 8004cd2: 1c5a adds r2, r3, #1 + 8004cd4: 60ba str r2, [r7, #8] + 8004cd6: b2ca uxtb r2, r1 + 8004cd8: 701a strb r2, [r3, #0] for (DataIdx = 0; DataIdx < len; DataIdx++) - 8004cd6: 697b ldr r3, [r7, #20] - 8004cd8: 3301 adds r3, #1 - 8004cda: 617b str r3, [r7, #20] - 8004cdc: 697a ldr r2, [r7, #20] - 8004cde: 687b ldr r3, [r7, #4] - 8004ce0: 429a cmp r2, r3 - 8004ce2: dbf0 blt.n 8004cc6 <_read+0x12> + 8004cda: 697b ldr r3, [r7, #20] + 8004cdc: 3301 adds r3, #1 + 8004cde: 617b str r3, [r7, #20] + 8004ce0: 697a ldr r2, [r7, #20] + 8004ce2: 687b ldr r3, [r7, #4] + 8004ce4: 429a cmp r2, r3 + 8004ce6: dbf0 blt.n 8004cca <_read+0x12> } return len; - 8004ce4: 687b ldr r3, [r7, #4] + 8004ce8: 687b ldr r3, [r7, #4] } - 8004ce6: 4618 mov r0, r3 - 8004ce8: 3718 adds r7, #24 - 8004cea: 46bd mov sp, r7 - 8004cec: bd80 pop {r7, pc} + 8004cea: 4618 mov r0, r3 + 8004cec: 3718 adds r7, #24 + 8004cee: 46bd mov sp, r7 + 8004cf0: bd80 pop {r7, pc} -08004cee <_write>: +08004cf2 <_write>: __attribute__((weak)) int _write(int file, char *ptr, int len) { - 8004cee: b580 push {r7, lr} - 8004cf0: b086 sub sp, #24 - 8004cf2: af00 add r7, sp, #0 - 8004cf4: 60f8 str r0, [r7, #12] - 8004cf6: 60b9 str r1, [r7, #8] - 8004cf8: 607a str r2, [r7, #4] + 8004cf2: b580 push {r7, lr} + 8004cf4: b086 sub sp, #24 + 8004cf6: af00 add r7, sp, #0 + 8004cf8: 60f8 str r0, [r7, #12] + 8004cfa: 60b9 str r1, [r7, #8] + 8004cfc: 607a str r2, [r7, #4] int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) - 8004cfa: 2300 movs r3, #0 - 8004cfc: 617b str r3, [r7, #20] - 8004cfe: e009 b.n 8004d14 <_write+0x26> + 8004cfe: 2300 movs r3, #0 + 8004d00: 617b str r3, [r7, #20] + 8004d02: e009 b.n 8004d18 <_write+0x26> { __io_putchar(*ptr++); - 8004d00: 68bb ldr r3, [r7, #8] - 8004d02: 1c5a adds r2, r3, #1 - 8004d04: 60ba str r2, [r7, #8] - 8004d06: 781b ldrb r3, [r3, #0] - 8004d08: 4618 mov r0, r3 - 8004d0a: f3af 8000 nop.w + 8004d04: 68bb ldr r3, [r7, #8] + 8004d06: 1c5a adds r2, r3, #1 + 8004d08: 60ba str r2, [r7, #8] + 8004d0a: 781b ldrb r3, [r3, #0] + 8004d0c: 4618 mov r0, r3 + 8004d0e: f3af 8000 nop.w for (DataIdx = 0; DataIdx < len; DataIdx++) - 8004d0e: 697b ldr r3, [r7, #20] - 8004d10: 3301 adds r3, #1 - 8004d12: 617b str r3, [r7, #20] - 8004d14: 697a ldr r2, [r7, #20] - 8004d16: 687b ldr r3, [r7, #4] - 8004d18: 429a cmp r2, r3 - 8004d1a: dbf1 blt.n 8004d00 <_write+0x12> + 8004d12: 697b ldr r3, [r7, #20] + 8004d14: 3301 adds r3, #1 + 8004d16: 617b str r3, [r7, #20] + 8004d18: 697a ldr r2, [r7, #20] + 8004d1a: 687b ldr r3, [r7, #4] + 8004d1c: 429a cmp r2, r3 + 8004d1e: dbf1 blt.n 8004d04 <_write+0x12> } return len; - 8004d1c: 687b ldr r3, [r7, #4] + 8004d20: 687b ldr r3, [r7, #4] } - 8004d1e: 4618 mov r0, r3 - 8004d20: 3718 adds r7, #24 - 8004d22: 46bd mov sp, r7 - 8004d24: bd80 pop {r7, pc} + 8004d22: 4618 mov r0, r3 + 8004d24: 3718 adds r7, #24 + 8004d26: 46bd mov sp, r7 + 8004d28: bd80 pop {r7, pc} -08004d26 <_close>: +08004d2a <_close>: int _close(int file) { - 8004d26: b480 push {r7} - 8004d28: b083 sub sp, #12 - 8004d2a: af00 add r7, sp, #0 - 8004d2c: 6078 str r0, [r7, #4] + 8004d2a: b480 push {r7} + 8004d2c: b083 sub sp, #12 + 8004d2e: af00 add r7, sp, #0 + 8004d30: 6078 str r0, [r7, #4] return -1; - 8004d2e: f04f 33ff mov.w r3, #4294967295 + 8004d32: f04f 33ff mov.w r3, #4294967295 } - 8004d32: 4618 mov r0, r3 - 8004d34: 370c adds r7, #12 - 8004d36: 46bd mov sp, r7 - 8004d38: f85d 7b04 ldr.w r7, [sp], #4 - 8004d3c: 4770 bx lr + 8004d36: 4618 mov r0, r3 + 8004d38: 370c adds r7, #12 + 8004d3a: 46bd mov sp, r7 + 8004d3c: f85d 7b04 ldr.w r7, [sp], #4 + 8004d40: 4770 bx lr -08004d3e <_fstat>: +08004d42 <_fstat>: int _fstat(int file, struct stat *st) { - 8004d3e: b480 push {r7} - 8004d40: b083 sub sp, #12 - 8004d42: af00 add r7, sp, #0 - 8004d44: 6078 str r0, [r7, #4] - 8004d46: 6039 str r1, [r7, #0] + 8004d42: b480 push {r7} + 8004d44: b083 sub sp, #12 + 8004d46: af00 add r7, sp, #0 + 8004d48: 6078 str r0, [r7, #4] + 8004d4a: 6039 str r1, [r7, #0] st->st_mode = S_IFCHR; - 8004d48: 683b ldr r3, [r7, #0] - 8004d4a: f44f 5200 mov.w r2, #8192 ; 0x2000 - 8004d4e: 605a str r2, [r3, #4] + 8004d4c: 683b ldr r3, [r7, #0] + 8004d4e: f44f 5200 mov.w r2, #8192 ; 0x2000 + 8004d52: 605a str r2, [r3, #4] return 0; - 8004d50: 2300 movs r3, #0 + 8004d54: 2300 movs r3, #0 } - 8004d52: 4618 mov r0, r3 - 8004d54: 370c adds r7, #12 - 8004d56: 46bd mov sp, r7 - 8004d58: f85d 7b04 ldr.w r7, [sp], #4 - 8004d5c: 4770 bx lr + 8004d56: 4618 mov r0, r3 + 8004d58: 370c adds r7, #12 + 8004d5a: 46bd mov sp, r7 + 8004d5c: f85d 7b04 ldr.w r7, [sp], #4 + 8004d60: 4770 bx lr -08004d5e <_isatty>: +08004d62 <_isatty>: int _isatty(int file) { - 8004d5e: b480 push {r7} - 8004d60: b083 sub sp, #12 - 8004d62: af00 add r7, sp, #0 - 8004d64: 6078 str r0, [r7, #4] + 8004d62: b480 push {r7} + 8004d64: b083 sub sp, #12 + 8004d66: af00 add r7, sp, #0 + 8004d68: 6078 str r0, [r7, #4] return 1; - 8004d66: 2301 movs r3, #1 + 8004d6a: 2301 movs r3, #1 } - 8004d68: 4618 mov r0, r3 - 8004d6a: 370c adds r7, #12 - 8004d6c: 46bd mov sp, r7 - 8004d6e: f85d 7b04 ldr.w r7, [sp], #4 - 8004d72: 4770 bx lr + 8004d6c: 4618 mov r0, r3 + 8004d6e: 370c adds r7, #12 + 8004d70: 46bd mov sp, r7 + 8004d72: f85d 7b04 ldr.w r7, [sp], #4 + 8004d76: 4770 bx lr -08004d74 <_lseek>: +08004d78 <_lseek>: int _lseek(int file, int ptr, int dir) { - 8004d74: b480 push {r7} - 8004d76: b085 sub sp, #20 - 8004d78: af00 add r7, sp, #0 - 8004d7a: 60f8 str r0, [r7, #12] - 8004d7c: 60b9 str r1, [r7, #8] - 8004d7e: 607a str r2, [r7, #4] + 8004d78: b480 push {r7} + 8004d7a: b085 sub sp, #20 + 8004d7c: af00 add r7, sp, #0 + 8004d7e: 60f8 str r0, [r7, #12] + 8004d80: 60b9 str r1, [r7, #8] + 8004d82: 607a str r2, [r7, #4] return 0; - 8004d80: 2300 movs r3, #0 + 8004d84: 2300 movs r3, #0 } - 8004d82: 4618 mov r0, r3 - 8004d84: 3714 adds r7, #20 - 8004d86: 46bd mov sp, r7 - 8004d88: f85d 7b04 ldr.w r7, [sp], #4 - 8004d8c: 4770 bx lr + 8004d86: 4618 mov r0, r3 + 8004d88: 3714 adds r7, #20 + 8004d8a: 46bd mov sp, r7 + 8004d8c: f85d 7b04 ldr.w r7, [sp], #4 + 8004d90: 4770 bx lr ... -08004d90 <_sbrk>: +08004d94 <_sbrk>: * * @param incr Memory size * @return Pointer to allocated memory */ void *_sbrk(ptrdiff_t incr) { - 8004d90: b480 push {r7} - 8004d92: b087 sub sp, #28 - 8004d94: af00 add r7, sp, #0 - 8004d96: 6078 str r0, [r7, #4] + 8004d94: b480 push {r7} + 8004d96: b087 sub sp, #28 + 8004d98: af00 add r7, sp, #0 + 8004d9a: 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; - 8004d98: 4a14 ldr r2, [pc, #80] ; (8004dec <_sbrk+0x5c>) - 8004d9a: 4b15 ldr r3, [pc, #84] ; (8004df0 <_sbrk+0x60>) - 8004d9c: 1ad3 subs r3, r2, r3 - 8004d9e: 617b str r3, [r7, #20] + 8004d9c: 4a14 ldr r2, [pc, #80] ; (8004df0 <_sbrk+0x5c>) + 8004d9e: 4b15 ldr r3, [pc, #84] ; (8004df4 <_sbrk+0x60>) + 8004da0: 1ad3 subs r3, r2, r3 + 8004da2: 617b str r3, [r7, #20] const uint8_t *max_heap = (uint8_t *)stack_limit; - 8004da0: 697b ldr r3, [r7, #20] - 8004da2: 613b str r3, [r7, #16] + 8004da4: 697b ldr r3, [r7, #20] + 8004da6: 613b str r3, [r7, #16] uint8_t *prev_heap_end; /* Initialize heap end at first call */ if (NULL == __sbrk_heap_end) - 8004da4: 4b13 ldr r3, [pc, #76] ; (8004df4 <_sbrk+0x64>) - 8004da6: 681b ldr r3, [r3, #0] - 8004da8: 2b00 cmp r3, #0 - 8004daa: d102 bne.n 8004db2 <_sbrk+0x22> + 8004da8: 4b13 ldr r3, [pc, #76] ; (8004df8 <_sbrk+0x64>) + 8004daa: 681b ldr r3, [r3, #0] + 8004dac: 2b00 cmp r3, #0 + 8004dae: d102 bne.n 8004db6 <_sbrk+0x22> { __sbrk_heap_end = &_end; - 8004dac: 4b11 ldr r3, [pc, #68] ; (8004df4 <_sbrk+0x64>) - 8004dae: 4a12 ldr r2, [pc, #72] ; (8004df8 <_sbrk+0x68>) - 8004db0: 601a str r2, [r3, #0] + 8004db0: 4b11 ldr r3, [pc, #68] ; (8004df8 <_sbrk+0x64>) + 8004db2: 4a12 ldr r2, [pc, #72] ; (8004dfc <_sbrk+0x68>) + 8004db4: 601a str r2, [r3, #0] } /* Protect heap from growing into the reserved MSP stack */ if (__sbrk_heap_end + incr > max_heap) - 8004db2: 4b10 ldr r3, [pc, #64] ; (8004df4 <_sbrk+0x64>) - 8004db4: 681a ldr r2, [r3, #0] - 8004db6: 687b ldr r3, [r7, #4] - 8004db8: 4413 add r3, r2 - 8004dba: 693a ldr r2, [r7, #16] - 8004dbc: 429a cmp r2, r3 - 8004dbe: d205 bcs.n 8004dcc <_sbrk+0x3c> + 8004db6: 4b10 ldr r3, [pc, #64] ; (8004df8 <_sbrk+0x64>) + 8004db8: 681a ldr r2, [r3, #0] + 8004dba: 687b ldr r3, [r7, #4] + 8004dbc: 4413 add r3, r2 + 8004dbe: 693a ldr r2, [r7, #16] + 8004dc0: 429a cmp r2, r3 + 8004dc2: d205 bcs.n 8004dd0 <_sbrk+0x3c> { errno = ENOMEM; - 8004dc0: 4b0e ldr r3, [pc, #56] ; (8004dfc <_sbrk+0x6c>) - 8004dc2: 220c movs r2, #12 - 8004dc4: 601a str r2, [r3, #0] + 8004dc4: 4b0e ldr r3, [pc, #56] ; (8004e00 <_sbrk+0x6c>) + 8004dc6: 220c movs r2, #12 + 8004dc8: 601a str r2, [r3, #0] return (void *)-1; - 8004dc6: f04f 33ff mov.w r3, #4294967295 - 8004dca: e009 b.n 8004de0 <_sbrk+0x50> + 8004dca: f04f 33ff mov.w r3, #4294967295 + 8004dce: e009 b.n 8004de4 <_sbrk+0x50> } prev_heap_end = __sbrk_heap_end; - 8004dcc: 4b09 ldr r3, [pc, #36] ; (8004df4 <_sbrk+0x64>) - 8004dce: 681b ldr r3, [r3, #0] - 8004dd0: 60fb str r3, [r7, #12] + 8004dd0: 4b09 ldr r3, [pc, #36] ; (8004df8 <_sbrk+0x64>) + 8004dd2: 681b ldr r3, [r3, #0] + 8004dd4: 60fb str r3, [r7, #12] __sbrk_heap_end += incr; - 8004dd2: 4b08 ldr r3, [pc, #32] ; (8004df4 <_sbrk+0x64>) - 8004dd4: 681a ldr r2, [r3, #0] - 8004dd6: 687b ldr r3, [r7, #4] - 8004dd8: 4413 add r3, r2 - 8004dda: 4a06 ldr r2, [pc, #24] ; (8004df4 <_sbrk+0x64>) - 8004ddc: 6013 str r3, [r2, #0] + 8004dd6: 4b08 ldr r3, [pc, #32] ; (8004df8 <_sbrk+0x64>) + 8004dd8: 681a ldr r2, [r3, #0] + 8004dda: 687b ldr r3, [r7, #4] + 8004ddc: 4413 add r3, r2 + 8004dde: 4a06 ldr r2, [pc, #24] ; (8004df8 <_sbrk+0x64>) + 8004de0: 6013 str r3, [r2, #0] return (void *)prev_heap_end; - 8004dde: 68fb ldr r3, [r7, #12] -} - 8004de0: 4618 mov r0, r3 - 8004de2: 371c adds r7, #28 - 8004de4: 46bd mov sp, r7 - 8004de6: f85d 7b04 ldr.w r7, [sp], #4 - 8004dea: 4770 bx lr - 8004dec: 20050000 .word 0x20050000 - 8004df0: 00000400 .word 0x00000400 - 8004df4: 20000574 .word 0x20000574 - 8004df8: 2000f840 .word 0x2000f840 - 8004dfc: 2000f834 .word 0x2000f834 - -08004e00 : + 8004de2: 68fb ldr r3, [r7, #12] +} + 8004de4: 4618 mov r0, r3 + 8004de6: 371c adds r7, #28 + 8004de8: 46bd mov sp, r7 + 8004dea: f85d 7b04 ldr.w r7, [sp], #4 + 8004dee: 4770 bx lr + 8004df0: 20050000 .word 0x20050000 + 8004df4: 00000400 .word 0x00000400 + 8004df8: 20000574 .word 0x20000574 + 8004dfc: 2000f840 .word 0x2000f840 + 8004e00: 2000f834 .word 0x2000f834 + +08004e04 : * SystemFrequency variable. * @param None * @retval None */ void SystemInit(void) { - 8004e00: b480 push {r7} - 8004e02: af00 add r7, sp, #0 + 8004e04: b480 push {r7} + 8004e06: af00 add r7, sp, #0 /* FPU settings ------------------------------------------------------------*/ #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */ - 8004e04: 4b08 ldr r3, [pc, #32] ; (8004e28 ) - 8004e06: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8004e0a: 4a07 ldr r2, [pc, #28] ; (8004e28 ) - 8004e0c: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 - 8004e10: f8c2 3088 str.w r3, [r2, #136] ; 0x88 + 8004e08: 4b08 ldr r3, [pc, #32] ; (8004e2c ) + 8004e0a: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8004e0e: 4a07 ldr r2, [pc, #28] ; (8004e2c ) + 8004e10: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 + 8004e14: f8c2 3088 str.w r3, [r2, #136] ; 0x88 /* Configure the Vector Table location add offset address ------------------*/ #ifdef VECT_TAB_SRAM SCB->VTOR = RAMDTCM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ #else SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */ - 8004e14: 4b04 ldr r3, [pc, #16] ; (8004e28 ) - 8004e16: f04f 6200 mov.w r2, #134217728 ; 0x8000000 - 8004e1a: 609a str r2, [r3, #8] + 8004e18: 4b04 ldr r3, [pc, #16] ; (8004e2c ) + 8004e1a: f04f 6200 mov.w r2, #134217728 ; 0x8000000 + 8004e1e: 609a str r2, [r3, #8] #endif } - 8004e1c: bf00 nop - 8004e1e: 46bd mov sp, r7 - 8004e20: f85d 7b04 ldr.w r7, [sp], #4 - 8004e24: 4770 bx lr - 8004e26: bf00 nop - 8004e28: e000ed00 .word 0xe000ed00 + 8004e20: bf00 nop + 8004e22: 46bd mov sp, r7 + 8004e24: f85d 7b04 ldr.w r7, [sp], #4 + 8004e28: 4770 bx lr + 8004e2a: bf00 nop + 8004e2c: e000ed00 .word 0xe000ed00 -08004e2c : +08004e30 : +*/ .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function -Reset_Handler: - ldr sp, =_estack /* set stack pointer */ - 8004e2c: f8df d034 ldr.w sp, [pc, #52] ; 8004e64 +Reset_Handler: ldr sp, =_estack /* set stack pointer */ + 8004e30: f8df d034 ldr.w sp, [pc, #52] ; 8004e68 /* Copy the data segment initializers from flash to SRAM */ movs r1, #0 - 8004e30: 2100 movs r1, #0 + 8004e34: 2100 movs r1, #0 b LoopCopyDataInit - 8004e32: e003 b.n 8004e3c + 8004e36: e003 b.n 8004e40 -08004e34 : +08004e38 : CopyDataInit: ldr r3, =_sidata - 8004e34: 4b0c ldr r3, [pc, #48] ; (8004e68 ) + 8004e38: 4b0c ldr r3, [pc, #48] ; (8004e6c ) ldr r3, [r3, r1] - 8004e36: 585b ldr r3, [r3, r1] + 8004e3a: 585b ldr r3, [r3, r1] str r3, [r0, r1] - 8004e38: 5043 str r3, [r0, r1] + 8004e3c: 5043 str r3, [r0, r1] adds r1, r1, #4 - 8004e3a: 3104 adds r1, #4 + 8004e3e: 3104 adds r1, #4 -08004e3c : +08004e40 : LoopCopyDataInit: ldr r0, =_sdata - 8004e3c: 480b ldr r0, [pc, #44] ; (8004e6c ) + 8004e40: 480b ldr r0, [pc, #44] ; (8004e70 ) ldr r3, =_edata - 8004e3e: 4b0c ldr r3, [pc, #48] ; (8004e70 ) + 8004e42: 4b0c ldr r3, [pc, #48] ; (8004e74 ) adds r2, r0, r1 - 8004e40: 1842 adds r2, r0, r1 + 8004e44: 1842 adds r2, r0, r1 cmp r2, r3 - 8004e42: 429a cmp r2, r3 + 8004e46: 429a cmp r2, r3 bcc CopyDataInit - 8004e44: d3f6 bcc.n 8004e34 + 8004e48: d3f6 bcc.n 8004e38 ldr r2, =_sbss - 8004e46: 4a0b ldr r2, [pc, #44] ; (8004e74 ) + 8004e4a: 4a0b ldr r2, [pc, #44] ; (8004e78 ) b LoopFillZerobss - 8004e48: e002 b.n 8004e50 + 8004e4c: e002 b.n 8004e54 -08004e4a : +08004e4e : /* Zero fill the bss segment. */ FillZerobss: movs r3, #0 - 8004e4a: 2300 movs r3, #0 + 8004e4e: 2300 movs r3, #0 str r3, [r2], #4 - 8004e4c: f842 3b04 str.w r3, [r2], #4 + 8004e50: f842 3b04 str.w r3, [r2], #4 -08004e50 : +08004e54 : LoopFillZerobss: ldr r3, = _ebss - 8004e50: 4b09 ldr r3, [pc, #36] ; (8004e78 ) + 8004e54: 4b09 ldr r3, [pc, #36] ; (8004e7c ) cmp r2, r3 - 8004e52: 429a cmp r2, r3 + 8004e56: 429a cmp r2, r3 bcc FillZerobss - 8004e54: d3f9 bcc.n 8004e4a + 8004e58: d3f9 bcc.n 8004e4e /* Call the clock system initialization function.*/ bl SystemInit - 8004e56: f7ff ffd3 bl 8004e00 + 8004e5a: f7ff ffd3 bl 8004e04 /* Call static constructors */ bl __libc_init_array - 8004e5a: f017 fb95 bl 801c588 <__libc_init_array> + 8004e5e: f017 fb9b bl 801c598 <__libc_init_array> /* Call the application's entry point.*/ bl main - 8004e5e: f7fb fe7d bl 8000b5c
+ 8004e62: f7fb fe7b bl 8000b5c
bx lr - 8004e62: 4770 bx lr - ldr sp, =_estack /* set stack pointer */ - 8004e64: 20050000 .word 0x20050000 + 8004e66: 4770 bx lr +Reset_Handler: ldr sp, =_estack /* set stack pointer */ + 8004e68: 20050000 .word 0x20050000 ldr r3, =_sidata - 8004e68: 080228c0 .word 0x080228c0 + 8004e6c: 080228d0 .word 0x080228d0 ldr r0, =_sdata - 8004e6c: 20000000 .word 0x20000000 + 8004e70: 20000000 .word 0x20000000 ldr r3, =_edata - 8004e70: 200000dc .word 0x200000dc - ldr r2, =_sbss 8004e74: 200000dc .word 0x200000dc + ldr r2, =_sbss + 8004e78: 200000dc .word 0x200000dc ldr r3, = _ebss - 8004e78: 2000f83c .word 0x2000f83c + 8004e7c: 2000f83c .word 0x2000f83c -08004e7c : +08004e80 : * @retval None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8004e7c: e7fe b.n 8004e7c + 8004e80: e7fe b.n 8004e80 -08004e7e : +08004e82 : * 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) { - 8004e7e: b580 push {r7, lr} - 8004e80: af00 add r7, sp, #0 + 8004e82: b580 push {r7, lr} + 8004e84: af00 add r7, sp, #0 #if (PREFETCH_ENABLE != 0U) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8004e82: 2003 movs r0, #3 - 8004e84: f000 fc3f bl 8005706 + 8004e86: 2003 movs r0, #3 + 8004e88: f000 fc3f bl 800570a /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8004e88: 2000 movs r0, #0 - 8004e8a: f7ff fe83 bl 8004b94 + 8004e8c: 2000 movs r0, #0 + 8004e8e: f7ff fe83 bl 8004b98 /* Init the low level hardware */ HAL_MspInit(); - 8004e8e: f7ff f90f bl 80040b0 + 8004e92: f7ff f90f bl 80040b4 /* Return function status */ return HAL_OK; - 8004e92: 2300 movs r3, #0 + 8004e96: 2300 movs r3, #0 } - 8004e94: 4618 mov r0, r3 - 8004e96: bd80 pop {r7, pc} + 8004e98: 4618 mov r0, r3 + 8004e9a: bd80 pop {r7, pc} -08004e98 : +08004e9c : * @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) { - 8004e98: b480 push {r7} - 8004e9a: af00 add r7, sp, #0 + 8004e9c: b480 push {r7} + 8004e9e: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8004e9c: 4b06 ldr r3, [pc, #24] ; (8004eb8 ) - 8004e9e: 781b ldrb r3, [r3, #0] - 8004ea0: 461a mov r2, r3 - 8004ea2: 4b06 ldr r3, [pc, #24] ; (8004ebc ) - 8004ea4: 681b ldr r3, [r3, #0] - 8004ea6: 4413 add r3, r2 - 8004ea8: 4a04 ldr r2, [pc, #16] ; (8004ebc ) - 8004eaa: 6013 str r3, [r2, #0] -} - 8004eac: bf00 nop - 8004eae: 46bd mov sp, r7 - 8004eb0: f85d 7b04 ldr.w r7, [sp], #4 - 8004eb4: 4770 bx lr - 8004eb6: bf00 nop - 8004eb8: 20000060 .word 0x20000060 - 8004ebc: 20008f80 .word 0x20008f80 - -08004ec0 : + 8004ea0: 4b06 ldr r3, [pc, #24] ; (8004ebc ) + 8004ea2: 781b ldrb r3, [r3, #0] + 8004ea4: 461a mov r2, r3 + 8004ea6: 4b06 ldr r3, [pc, #24] ; (8004ec0 ) + 8004ea8: 681b ldr r3, [r3, #0] + 8004eaa: 4413 add r3, r2 + 8004eac: 4a04 ldr r2, [pc, #16] ; (8004ec0 ) + 8004eae: 6013 str r3, [r2, #0] +} + 8004eb0: bf00 nop + 8004eb2: 46bd mov sp, r7 + 8004eb4: f85d 7b04 ldr.w r7, [sp], #4 + 8004eb8: 4770 bx lr + 8004eba: bf00 nop + 8004ebc: 20000060 .word 0x20000060 + 8004ec0: 20008f80 .word 0x20008f80 + +08004ec4 : * @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) { - 8004ec0: b480 push {r7} - 8004ec2: af00 add r7, sp, #0 + 8004ec4: b480 push {r7} + 8004ec6: af00 add r7, sp, #0 return uwTick; - 8004ec4: 4b03 ldr r3, [pc, #12] ; (8004ed4 ) - 8004ec6: 681b ldr r3, [r3, #0] + 8004ec8: 4b03 ldr r3, [pc, #12] ; (8004ed8 ) + 8004eca: 681b ldr r3, [r3, #0] } - 8004ec8: 4618 mov r0, r3 - 8004eca: 46bd mov sp, r7 - 8004ecc: f85d 7b04 ldr.w r7, [sp], #4 - 8004ed0: 4770 bx lr - 8004ed2: bf00 nop - 8004ed4: 20008f80 .word 0x20008f80 + 8004ecc: 4618 mov r0, r3 + 8004ece: 46bd mov sp, r7 + 8004ed0: f85d 7b04 ldr.w r7, [sp], #4 + 8004ed4: 4770 bx lr + 8004ed6: bf00 nop + 8004ed8: 20008f80 .word 0x20008f80 -08004ed8 : +08004edc : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8004ed8: b580 push {r7, lr} - 8004eda: b084 sub sp, #16 - 8004edc: af00 add r7, sp, #0 - 8004ede: 6078 str r0, [r7, #4] + 8004edc: b580 push {r7, lr} + 8004ede: b084 sub sp, #16 + 8004ee0: af00 add r7, sp, #0 + 8004ee2: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8004ee0: f7ff ffee bl 8004ec0 - 8004ee4: 60b8 str r0, [r7, #8] + 8004ee4: f7ff ffee bl 8004ec4 + 8004ee8: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 8004ee6: 687b ldr r3, [r7, #4] - 8004ee8: 60fb str r3, [r7, #12] + 8004eea: 687b ldr r3, [r7, #4] + 8004eec: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8004eea: 68fb ldr r3, [r7, #12] - 8004eec: f1b3 3fff cmp.w r3, #4294967295 - 8004ef0: d005 beq.n 8004efe + 8004eee: 68fb ldr r3, [r7, #12] + 8004ef0: f1b3 3fff cmp.w r3, #4294967295 + 8004ef4: d005 beq.n 8004f02 { wait += (uint32_t)(uwTickFreq); - 8004ef2: 4b09 ldr r3, [pc, #36] ; (8004f18 ) - 8004ef4: 781b ldrb r3, [r3, #0] - 8004ef6: 461a mov r2, r3 - 8004ef8: 68fb ldr r3, [r7, #12] - 8004efa: 4413 add r3, r2 - 8004efc: 60fb str r3, [r7, #12] + 8004ef6: 4b09 ldr r3, [pc, #36] ; (8004f1c ) + 8004ef8: 781b ldrb r3, [r3, #0] + 8004efa: 461a mov r2, r3 + 8004efc: 68fb ldr r3, [r7, #12] + 8004efe: 4413 add r3, r2 + 8004f00: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) - 8004efe: bf00 nop - 8004f00: f7ff ffde bl 8004ec0 - 8004f04: 4602 mov r2, r0 - 8004f06: 68bb ldr r3, [r7, #8] - 8004f08: 1ad3 subs r3, r2, r3 - 8004f0a: 68fa ldr r2, [r7, #12] - 8004f0c: 429a cmp r2, r3 - 8004f0e: d8f7 bhi.n 8004f00 + 8004f02: bf00 nop + 8004f04: f7ff ffde bl 8004ec4 + 8004f08: 4602 mov r2, r0 + 8004f0a: 68bb ldr r3, [r7, #8] + 8004f0c: 1ad3 subs r3, r2, r3 + 8004f0e: 68fa ldr r2, [r7, #12] + 8004f10: 429a cmp r2, r3 + 8004f12: d8f7 bhi.n 8004f04 { } } - 8004f10: bf00 nop - 8004f12: 3710 adds r7, #16 - 8004f14: 46bd mov sp, r7 - 8004f16: bd80 pop {r7, pc} - 8004f18: 20000060 .word 0x20000060 + 8004f14: bf00 nop + 8004f16: 3710 adds r7, #16 + 8004f18: 46bd mov sp, r7 + 8004f1a: bd80 pop {r7, pc} + 8004f1c: 20000060 .word 0x20000060 -08004f1c : +08004f20 : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Init(ADC_HandleTypeDef* hadc) { - 8004f1c: b580 push {r7, lr} - 8004f1e: b084 sub sp, #16 - 8004f20: af00 add r7, sp, #0 - 8004f22: 6078 str r0, [r7, #4] + 8004f20: b580 push {r7, lr} + 8004f22: b084 sub sp, #16 + 8004f24: af00 add r7, sp, #0 + 8004f26: 6078 str r0, [r7, #4] HAL_StatusTypeDef tmp_hal_status = HAL_OK; - 8004f24: 2300 movs r3, #0 - 8004f26: 73fb strb r3, [r7, #15] + 8004f28: 2300 movs r3, #0 + 8004f2a: 73fb strb r3, [r7, #15] /* Check ADC handle */ if(hadc == NULL) - 8004f28: 687b ldr r3, [r7, #4] - 8004f2a: 2b00 cmp r3, #0 - 8004f2c: d101 bne.n 8004f32 + 8004f2c: 687b ldr r3, [r7, #4] + 8004f2e: 2b00 cmp r3, #0 + 8004f30: d101 bne.n 8004f36 { return HAL_ERROR; - 8004f2e: 2301 movs r3, #1 - 8004f30: e031 b.n 8004f96 + 8004f32: 2301 movs r3, #1 + 8004f34: e031 b.n 8004f9a if(hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) { assert_param(IS_ADC_EXT_TRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); } if(hadc->State == HAL_ADC_STATE_RESET) - 8004f32: 687b ldr r3, [r7, #4] - 8004f34: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004f36: 2b00 cmp r3, #0 - 8004f38: d109 bne.n 8004f4e + 8004f36: 687b ldr r3, [r7, #4] + 8004f38: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004f3a: 2b00 cmp r3, #0 + 8004f3c: d109 bne.n 8004f52 /* Init the low level hardware */ hadc->MspInitCallback(hadc); #else /* Init the low level hardware */ HAL_ADC_MspInit(hadc); - 8004f3a: 6878 ldr r0, [r7, #4] - 8004f3c: f7ff f8e0 bl 8004100 + 8004f3e: 6878 ldr r0, [r7, #4] + 8004f40: f7ff f8e0 bl 8004104 #endif /* USE_HAL_ADC_REGISTER_CALLBACKS */ /* Initialize ADC error code */ ADC_CLEAR_ERRORCODE(hadc); - 8004f40: 687b ldr r3, [r7, #4] - 8004f42: 2200 movs r2, #0 - 8004f44: 645a str r2, [r3, #68] ; 0x44 + 8004f44: 687b ldr r3, [r7, #4] + 8004f46: 2200 movs r2, #0 + 8004f48: 645a str r2, [r3, #68] ; 0x44 /* Allocate lock resource and initialize it */ hadc->Lock = HAL_UNLOCKED; - 8004f46: 687b ldr r3, [r7, #4] - 8004f48: 2200 movs r2, #0 - 8004f4a: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8004f4a: 687b ldr r3, [r7, #4] + 8004f4c: 2200 movs r2, #0 + 8004f4e: f883 203c strb.w r2, [r3, #60] ; 0x3c } /* Configuration of ADC parameters if previous preliminary actions are */ /* correctly completed. */ if (HAL_IS_BIT_CLR(hadc->State, HAL_ADC_STATE_ERROR_INTERNAL)) - 8004f4e: 687b ldr r3, [r7, #4] - 8004f50: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004f52: f003 0310 and.w r3, r3, #16 - 8004f56: 2b00 cmp r3, #0 - 8004f58: d116 bne.n 8004f88 + 8004f52: 687b ldr r3, [r7, #4] + 8004f54: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004f56: f003 0310 and.w r3, r3, #16 + 8004f5a: 2b00 cmp r3, #0 + 8004f5c: d116 bne.n 8004f8c { /* Set ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8004f5a: 687b ldr r3, [r7, #4] - 8004f5c: 6c1a ldr r2, [r3, #64] ; 0x40 - 8004f5e: 4b10 ldr r3, [pc, #64] ; (8004fa0 ) - 8004f60: 4013 ands r3, r2 - 8004f62: f043 0202 orr.w r2, r3, #2 - 8004f66: 687b ldr r3, [r7, #4] - 8004f68: 641a str r2, [r3, #64] ; 0x40 + 8004f5e: 687b ldr r3, [r7, #4] + 8004f60: 6c1a ldr r2, [r3, #64] ; 0x40 + 8004f62: 4b10 ldr r3, [pc, #64] ; (8004fa4 ) + 8004f64: 4013 ands r3, r2 + 8004f66: f043 0202 orr.w r2, r3, #2 + 8004f6a: 687b ldr r3, [r7, #4] + 8004f6c: 641a str r2, [r3, #64] ; 0x40 HAL_ADC_STATE_REG_BUSY | HAL_ADC_STATE_INJ_BUSY, HAL_ADC_STATE_BUSY_INTERNAL); /* Set ADC parameters */ ADC_Init(hadc); - 8004f6a: 6878 ldr r0, [r7, #4] - 8004f6c: f000 fa24 bl 80053b8 + 8004f6e: 6878 ldr r0, [r7, #4] + 8004f70: f000 fa24 bl 80053bc /* Set ADC error code to none */ ADC_CLEAR_ERRORCODE(hadc); - 8004f70: 687b ldr r3, [r7, #4] - 8004f72: 2200 movs r2, #0 - 8004f74: 645a str r2, [r3, #68] ; 0x44 + 8004f74: 687b ldr r3, [r7, #4] + 8004f76: 2200 movs r2, #0 + 8004f78: 645a str r2, [r3, #68] ; 0x44 /* Set the ADC state */ ADC_STATE_CLR_SET(hadc->State, - 8004f76: 687b ldr r3, [r7, #4] - 8004f78: 6c1b ldr r3, [r3, #64] ; 0x40 - 8004f7a: f023 0303 bic.w r3, r3, #3 - 8004f7e: f043 0201 orr.w r2, r3, #1 - 8004f82: 687b ldr r3, [r7, #4] - 8004f84: 641a str r2, [r3, #64] ; 0x40 - 8004f86: e001 b.n 8004f8c + 8004f7a: 687b ldr r3, [r7, #4] + 8004f7c: 6c1b ldr r3, [r3, #64] ; 0x40 + 8004f7e: f023 0303 bic.w r3, r3, #3 + 8004f82: f043 0201 orr.w r2, r3, #1 + 8004f86: 687b ldr r3, [r7, #4] + 8004f88: 641a str r2, [r3, #64] ; 0x40 + 8004f8a: e001 b.n 8004f90 HAL_ADC_STATE_BUSY_INTERNAL, HAL_ADC_STATE_READY); } else { tmp_hal_status = HAL_ERROR; - 8004f88: 2301 movs r3, #1 - 8004f8a: 73fb strb r3, [r7, #15] + 8004f8c: 2301 movs r3, #1 + 8004f8e: 73fb strb r3, [r7, #15] } /* Release Lock */ __HAL_UNLOCK(hadc); - 8004f8c: 687b ldr r3, [r7, #4] - 8004f8e: 2200 movs r2, #0 - 8004f90: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8004f90: 687b ldr r3, [r7, #4] + 8004f92: 2200 movs r2, #0 + 8004f94: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Return function status */ return tmp_hal_status; - 8004f94: 7bfb ldrb r3, [r7, #15] + 8004f98: 7bfb ldrb r3, [r7, #15] } - 8004f96: 4618 mov r0, r3 - 8004f98: 3710 adds r7, #16 - 8004f9a: 46bd mov sp, r7 - 8004f9c: bd80 pop {r7, pc} - 8004f9e: bf00 nop - 8004fa0: ffffeefd .word 0xffffeefd + 8004f9a: 4618 mov r0, r3 + 8004f9c: 3710 adds r7, #16 + 8004f9e: 46bd mov sp, r7 + 8004fa0: bd80 pop {r7, pc} + 8004fa2: bf00 nop + 8004fa4: ffffeefd .word 0xffffeefd -08004fa4 : +08004fa8 : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_Start(ADC_HandleTypeDef* hadc) { - 8004fa4: b480 push {r7} - 8004fa6: b085 sub sp, #20 - 8004fa8: af00 add r7, sp, #0 - 8004faa: 6078 str r0, [r7, #4] + 8004fa8: b480 push {r7} + 8004faa: b085 sub sp, #20 + 8004fac: af00 add r7, sp, #0 + 8004fae: 6078 str r0, [r7, #4] __IO uint32_t counter = 0; - 8004fac: 2300 movs r3, #0 - 8004fae: 60fb str r3, [r7, #12] + 8004fb0: 2300 movs r3, #0 + 8004fb2: 60fb str r3, [r7, #12] /* Check the parameters */ assert_param(IS_FUNCTIONAL_STATE(hadc->Init.ContinuousConvMode)); assert_param(IS_ADC_EXT_TRIG_EDGE(hadc->Init.ExternalTrigConvEdge)); /* Process locked */ __HAL_LOCK(hadc); - 8004fb0: 687b ldr r3, [r7, #4] - 8004fb2: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 8004fb6: 2b01 cmp r3, #1 - 8004fb8: d101 bne.n 8004fbe - 8004fba: 2302 movs r3, #2 - 8004fbc: e0a0 b.n 8005100 - 8004fbe: 687b ldr r3, [r7, #4] - 8004fc0: 2201 movs r2, #1 - 8004fc2: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8004fb4: 687b ldr r3, [r7, #4] + 8004fb6: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 8004fba: 2b01 cmp r3, #1 + 8004fbc: d101 bne.n 8004fc2 + 8004fbe: 2302 movs r3, #2 + 8004fc0: e0a0 b.n 8005104 + 8004fc2: 687b ldr r3, [r7, #4] + 8004fc4: 2201 movs r2, #1 + 8004fc6: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Enable the ADC peripheral */ /* Check if ADC peripheral is disabled in order to enable it and wait during Tstab time the ADC's stabilization */ if((hadc->Instance->CR2 & ADC_CR2_ADON) != ADC_CR2_ADON) - 8004fc6: 687b ldr r3, [r7, #4] - 8004fc8: 681b ldr r3, [r3, #0] - 8004fca: 689b ldr r3, [r3, #8] - 8004fcc: f003 0301 and.w r3, r3, #1 - 8004fd0: 2b01 cmp r3, #1 - 8004fd2: d018 beq.n 8005006 + 8004fca: 687b ldr r3, [r7, #4] + 8004fcc: 681b ldr r3, [r3, #0] + 8004fce: 689b ldr r3, [r3, #8] + 8004fd0: f003 0301 and.w r3, r3, #1 + 8004fd4: 2b01 cmp r3, #1 + 8004fd6: d018 beq.n 800500a { /* Enable the Peripheral */ __HAL_ADC_ENABLE(hadc); - 8004fd4: 687b ldr r3, [r7, #4] - 8004fd6: 681b ldr r3, [r3, #0] - 8004fd8: 689a ldr r2, [r3, #8] - 8004fda: 687b ldr r3, [r7, #4] - 8004fdc: 681b ldr r3, [r3, #0] - 8004fde: f042 0201 orr.w r2, r2, #1 - 8004fe2: 609a str r2, [r3, #8] + 8004fd8: 687b ldr r3, [r7, #4] + 8004fda: 681b ldr r3, [r3, #0] + 8004fdc: 689a ldr r2, [r3, #8] + 8004fde: 687b ldr r3, [r7, #4] + 8004fe0: 681b ldr r3, [r3, #0] + 8004fe2: f042 0201 orr.w r2, r2, #1 + 8004fe6: 609a str r2, [r3, #8] /* Delay for ADC stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_STAB_DELAY_US * (SystemCoreClock / 1000000)); - 8004fe4: 4b49 ldr r3, [pc, #292] ; (800510c ) - 8004fe6: 681b ldr r3, [r3, #0] - 8004fe8: 4a49 ldr r2, [pc, #292] ; (8005110 ) - 8004fea: fba2 2303 umull r2, r3, r2, r3 - 8004fee: 0c9a lsrs r2, r3, #18 - 8004ff0: 4613 mov r3, r2 - 8004ff2: 005b lsls r3, r3, #1 - 8004ff4: 4413 add r3, r2 - 8004ff6: 60fb str r3, [r7, #12] + 8004fe8: 4b49 ldr r3, [pc, #292] ; (8005110 ) + 8004fea: 681b ldr r3, [r3, #0] + 8004fec: 4a49 ldr r2, [pc, #292] ; (8005114 ) + 8004fee: fba2 2303 umull r2, r3, r2, r3 + 8004ff2: 0c9a lsrs r2, r3, #18 + 8004ff4: 4613 mov r3, r2 + 8004ff6: 005b lsls r3, r3, #1 + 8004ff8: 4413 add r3, r2 + 8004ffa: 60fb str r3, [r7, #12] while(counter != 0) - 8004ff8: e002 b.n 8005000 + 8004ffc: e002 b.n 8005004 { counter--; - 8004ffa: 68fb ldr r3, [r7, #12] - 8004ffc: 3b01 subs r3, #1 - 8004ffe: 60fb str r3, [r7, #12] + 8004ffe: 68fb ldr r3, [r7, #12] + 8005000: 3b01 subs r3, #1 + 8005002: 60fb str r3, [r7, #12] while(counter != 0) - 8005000: 68fb ldr r3, [r7, #12] - 8005002: 2b00 cmp r3, #0 - 8005004: d1f9 bne.n 8004ffa + 8005004: 68fb ldr r3, [r7, #12] + 8005006: 2b00 cmp r3, #0 + 8005008: d1f9 bne.n 8004ffe } } /* Start conversion if ADC is effectively enabled */ if(HAL_IS_BIT_SET(hadc->Instance->CR2, ADC_CR2_ADON)) - 8005006: 687b ldr r3, [r7, #4] - 8005008: 681b ldr r3, [r3, #0] - 800500a: 689b ldr r3, [r3, #8] - 800500c: f003 0301 and.w r3, r3, #1 - 8005010: 2b01 cmp r3, #1 - 8005012: d174 bne.n 80050fe + 800500a: 687b ldr r3, [r7, #4] + 800500c: 681b ldr r3, [r3, #0] + 800500e: 689b ldr r3, [r3, #8] + 8005010: f003 0301 and.w r3, r3, #1 + 8005014: 2b01 cmp r3, #1 + 8005016: d174 bne.n 8005102 { /* Set ADC state */ /* - Clear state bitfield related to regular group conversion results */ /* - Set state bitfield related to regular group operation */ ADC_STATE_CLR_SET(hadc->State, - 8005014: 687b ldr r3, [r7, #4] - 8005016: 6c1a ldr r2, [r3, #64] ; 0x40 - 8005018: 4b3e ldr r3, [pc, #248] ; (8005114 ) - 800501a: 4013 ands r3, r2 - 800501c: f443 7280 orr.w r2, r3, #256 ; 0x100 - 8005020: 687b ldr r3, [r7, #4] - 8005022: 641a str r2, [r3, #64] ; 0x40 + 8005018: 687b ldr r3, [r7, #4] + 800501a: 6c1a ldr r2, [r3, #64] ; 0x40 + 800501c: 4b3e ldr r3, [pc, #248] ; (8005118 ) + 800501e: 4013 ands r3, r2 + 8005020: f443 7280 orr.w r2, r3, #256 ; 0x100 + 8005024: 687b ldr r3, [r7, #4] + 8005026: 641a str r2, [r3, #64] ; 0x40 HAL_ADC_STATE_READY | HAL_ADC_STATE_REG_EOC | HAL_ADC_STATE_REG_OVR, HAL_ADC_STATE_REG_BUSY); /* If conversions on group regular are also triggering group injected, */ /* update ADC state. */ if (READ_BIT(hadc->Instance->CR1, ADC_CR1_JAUTO) != RESET) - 8005024: 687b ldr r3, [r7, #4] - 8005026: 681b ldr r3, [r3, #0] - 8005028: 685b ldr r3, [r3, #4] - 800502a: f403 6380 and.w r3, r3, #1024 ; 0x400 - 800502e: 2b00 cmp r3, #0 - 8005030: d007 beq.n 8005042 + 8005028: 687b ldr r3, [r7, #4] + 800502a: 681b ldr r3, [r3, #0] + 800502c: 685b ldr r3, [r3, #4] + 800502e: f403 6380 and.w r3, r3, #1024 ; 0x400 + 8005032: 2b00 cmp r3, #0 + 8005034: d007 beq.n 8005046 { ADC_STATE_CLR_SET(hadc->State, HAL_ADC_STATE_INJ_EOC, HAL_ADC_STATE_INJ_BUSY); - 8005032: 687b ldr r3, [r7, #4] - 8005034: 6c1b ldr r3, [r3, #64] ; 0x40 - 8005036: f423 5340 bic.w r3, r3, #12288 ; 0x3000 - 800503a: f443 5280 orr.w r2, r3, #4096 ; 0x1000 - 800503e: 687b ldr r3, [r7, #4] - 8005040: 641a str r2, [r3, #64] ; 0x40 + 8005036: 687b ldr r3, [r7, #4] + 8005038: 6c1b ldr r3, [r3, #64] ; 0x40 + 800503a: f423 5340 bic.w r3, r3, #12288 ; 0x3000 + 800503e: f443 5280 orr.w r2, r3, #4096 ; 0x1000 + 8005042: 687b ldr r3, [r7, #4] + 8005044: 641a str r2, [r3, #64] ; 0x40 } /* State machine update: Check if an injected conversion is ongoing */ if (HAL_IS_BIT_SET(hadc->State, HAL_ADC_STATE_INJ_BUSY)) - 8005042: 687b ldr r3, [r7, #4] - 8005044: 6c1b ldr r3, [r3, #64] ; 0x40 - 8005046: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 800504a: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 800504e: d106 bne.n 800505e + 8005046: 687b ldr r3, [r7, #4] + 8005048: 6c1b ldr r3, [r3, #64] ; 0x40 + 800504a: f403 5380 and.w r3, r3, #4096 ; 0x1000 + 800504e: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 8005052: d106 bne.n 8005062 { /* Reset ADC error code fields related to conversions on group regular */ CLEAR_BIT(hadc->ErrorCode, (HAL_ADC_ERROR_OVR | HAL_ADC_ERROR_DMA)); - 8005050: 687b ldr r3, [r7, #4] - 8005052: 6c5b ldr r3, [r3, #68] ; 0x44 - 8005054: f023 0206 bic.w r2, r3, #6 - 8005058: 687b ldr r3, [r7, #4] - 800505a: 645a str r2, [r3, #68] ; 0x44 - 800505c: e002 b.n 8005064 + 8005054: 687b ldr r3, [r7, #4] + 8005056: 6c5b ldr r3, [r3, #68] ; 0x44 + 8005058: f023 0206 bic.w r2, r3, #6 + 800505c: 687b ldr r3, [r7, #4] + 800505e: 645a str r2, [r3, #68] ; 0x44 + 8005060: e002 b.n 8005068 } else { /* Reset ADC all error code fields */ ADC_CLEAR_ERRORCODE(hadc); - 800505e: 687b ldr r3, [r7, #4] - 8005060: 2200 movs r2, #0 - 8005062: 645a str r2, [r3, #68] ; 0x44 + 8005062: 687b ldr r3, [r7, #4] + 8005064: 2200 movs r2, #0 + 8005066: 645a str r2, [r3, #68] ; 0x44 } /* Process unlocked */ /* Unlock before starting ADC conversions: in case of potential */ /* interruption, to let the process to ADC IRQ Handler. */ __HAL_UNLOCK(hadc); - 8005064: 687b ldr r3, [r7, #4] - 8005066: 2200 movs r2, #0 - 8005068: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8005068: 687b ldr r3, [r7, #4] + 800506a: 2200 movs r2, #0 + 800506c: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Clear regular group conversion flag and overrun flag */ /* (To ensure of no unknown state from potential previous ADC operations) */ __HAL_ADC_CLEAR_FLAG(hadc, ADC_FLAG_EOC | ADC_FLAG_OVR); - 800506c: 687b ldr r3, [r7, #4] - 800506e: 681b ldr r3, [r3, #0] - 8005070: f06f 0222 mvn.w r2, #34 ; 0x22 - 8005074: 601a str r2, [r3, #0] + 8005070: 687b ldr r3, [r7, #4] + 8005072: 681b ldr r3, [r3, #0] + 8005074: f06f 0222 mvn.w r2, #34 ; 0x22 + 8005078: 601a str r2, [r3, #0] /* Check if Multimode enabled */ if(HAL_IS_BIT_CLR(ADC->CCR, ADC_CCR_MULTI)) - 8005076: 4b28 ldr r3, [pc, #160] ; (8005118 ) - 8005078: 685b ldr r3, [r3, #4] - 800507a: f003 031f and.w r3, r3, #31 - 800507e: 2b00 cmp r3, #0 - 8005080: d10f bne.n 80050a2 + 800507a: 4b28 ldr r3, [pc, #160] ; (800511c ) + 800507c: 685b ldr r3, [r3, #4] + 800507e: f003 031f and.w r3, r3, #31 + 8005082: 2b00 cmp r3, #0 + 8005084: d10f bne.n 80050a6 { /* if no external trigger present enable software conversion of regular channels */ if((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET) - 8005082: 687b ldr r3, [r7, #4] - 8005084: 681b ldr r3, [r3, #0] - 8005086: 689b ldr r3, [r3, #8] - 8005088: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 800508c: 2b00 cmp r3, #0 - 800508e: d136 bne.n 80050fe + 8005086: 687b ldr r3, [r7, #4] + 8005088: 681b ldr r3, [r3, #0] + 800508a: 689b ldr r3, [r3, #8] + 800508c: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 + 8005090: 2b00 cmp r3, #0 + 8005092: d136 bne.n 8005102 { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; - 8005090: 687b ldr r3, [r7, #4] - 8005092: 681b ldr r3, [r3, #0] - 8005094: 689a ldr r2, [r3, #8] - 8005096: 687b ldr r3, [r7, #4] - 8005098: 681b ldr r3, [r3, #0] - 800509a: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000 - 800509e: 609a str r2, [r3, #8] - 80050a0: e02d b.n 80050fe + 8005094: 687b ldr r3, [r7, #4] + 8005096: 681b ldr r3, [r3, #0] + 8005098: 689a ldr r2, [r3, #8] + 800509a: 687b ldr r3, [r7, #4] + 800509c: 681b ldr r3, [r3, #0] + 800509e: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000 + 80050a2: 609a str r2, [r3, #8] + 80050a4: e02d b.n 8005102 } } else { /* if instance of handle correspond to ADC1 and no external trigger present enable software conversion of regular channels */ if((hadc->Instance == ADC1) && ((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET)) - 80050a2: 687b ldr r3, [r7, #4] - 80050a4: 681b ldr r3, [r3, #0] - 80050a6: 4a1d ldr r2, [pc, #116] ; (800511c ) - 80050a8: 4293 cmp r3, r2 - 80050aa: d10e bne.n 80050ca - 80050ac: 687b ldr r3, [r7, #4] - 80050ae: 681b ldr r3, [r3, #0] - 80050b0: 689b ldr r3, [r3, #8] - 80050b2: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 80050b6: 2b00 cmp r3, #0 - 80050b8: d107 bne.n 80050ca + 80050a6: 687b ldr r3, [r7, #4] + 80050a8: 681b ldr r3, [r3, #0] + 80050aa: 4a1d ldr r2, [pc, #116] ; (8005120 ) + 80050ac: 4293 cmp r3, r2 + 80050ae: d10e bne.n 80050ce + 80050b0: 687b ldr r3, [r7, #4] + 80050b2: 681b ldr r3, [r3, #0] + 80050b4: 689b ldr r3, [r3, #8] + 80050b6: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 + 80050ba: 2b00 cmp r3, #0 + 80050bc: d107 bne.n 80050ce { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; - 80050ba: 687b ldr r3, [r7, #4] - 80050bc: 681b ldr r3, [r3, #0] - 80050be: 689a ldr r2, [r3, #8] - 80050c0: 687b ldr r3, [r7, #4] - 80050c2: 681b ldr r3, [r3, #0] - 80050c4: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000 - 80050c8: 609a str r2, [r3, #8] + 80050be: 687b ldr r3, [r7, #4] + 80050c0: 681b ldr r3, [r3, #0] + 80050c2: 689a ldr r2, [r3, #8] + 80050c4: 687b ldr r3, [r7, #4] + 80050c6: 681b ldr r3, [r3, #0] + 80050c8: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000 + 80050cc: 609a str r2, [r3, #8] } /* if dual mode is selected, ADC3 works independently. */ /* check if the mode selected is not triple */ if( HAL_IS_BIT_CLR(ADC->CCR, ADC_CCR_MULTI_4) ) - 80050ca: 4b13 ldr r3, [pc, #76] ; (8005118 ) - 80050cc: 685b ldr r3, [r3, #4] - 80050ce: f003 0310 and.w r3, r3, #16 - 80050d2: 2b00 cmp r3, #0 - 80050d4: d113 bne.n 80050fe + 80050ce: 4b13 ldr r3, [pc, #76] ; (800511c ) + 80050d0: 685b ldr r3, [r3, #4] + 80050d2: f003 0310 and.w r3, r3, #16 + 80050d6: 2b00 cmp r3, #0 + 80050d8: d113 bne.n 8005102 { /* if instance of handle correspond to ADC3 and no external trigger present enable software conversion of regular channels */ if((hadc->Instance == ADC3) && ((hadc->Instance->CR2 & ADC_CR2_EXTEN) == RESET)) - 80050d6: 687b ldr r3, [r7, #4] - 80050d8: 681b ldr r3, [r3, #0] - 80050da: 4a11 ldr r2, [pc, #68] ; (8005120 ) - 80050dc: 4293 cmp r3, r2 - 80050de: d10e bne.n 80050fe - 80050e0: 687b ldr r3, [r7, #4] - 80050e2: 681b ldr r3, [r3, #0] - 80050e4: 689b ldr r3, [r3, #8] - 80050e6: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 - 80050ea: 2b00 cmp r3, #0 - 80050ec: d107 bne.n 80050fe + 80050da: 687b ldr r3, [r7, #4] + 80050dc: 681b ldr r3, [r3, #0] + 80050de: 4a11 ldr r2, [pc, #68] ; (8005124 ) + 80050e0: 4293 cmp r3, r2 + 80050e2: d10e bne.n 8005102 + 80050e4: 687b ldr r3, [r7, #4] + 80050e6: 681b ldr r3, [r3, #0] + 80050e8: 689b ldr r3, [r3, #8] + 80050ea: f003 5340 and.w r3, r3, #805306368 ; 0x30000000 + 80050ee: 2b00 cmp r3, #0 + 80050f0: d107 bne.n 8005102 { /* Enable the selected ADC software conversion for regular group */ hadc->Instance->CR2 |= (uint32_t)ADC_CR2_SWSTART; - 80050ee: 687b ldr r3, [r7, #4] - 80050f0: 681b ldr r3, [r3, #0] - 80050f2: 689a ldr r2, [r3, #8] - 80050f4: 687b ldr r3, [r7, #4] - 80050f6: 681b ldr r3, [r3, #0] - 80050f8: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000 - 80050fc: 609a str r2, [r3, #8] + 80050f2: 687b ldr r3, [r7, #4] + 80050f4: 681b ldr r3, [r3, #0] + 80050f6: 689a ldr r2, [r3, #8] + 80050f8: 687b ldr r3, [r7, #4] + 80050fa: 681b ldr r3, [r3, #0] + 80050fc: f042 4280 orr.w r2, r2, #1073741824 ; 0x40000000 + 8005100: 609a str r2, [r3, #8] } } } /* Return function status */ return HAL_OK; - 80050fe: 2300 movs r3, #0 -} - 8005100: 4618 mov r0, r3 - 8005102: 3714 adds r7, #20 - 8005104: 46bd mov sp, r7 - 8005106: f85d 7b04 ldr.w r7, [sp], #4 - 800510a: 4770 bx lr - 800510c: 20000058 .word 0x20000058 - 8005110: 431bde83 .word 0x431bde83 - 8005114: fffff8fe .word 0xfffff8fe - 8005118: 40012300 .word 0x40012300 - 800511c: 40012000 .word 0x40012000 - 8005120: 40012200 .word 0x40012200 - -08005124 : + 8005102: 2300 movs r3, #0 +} + 8005104: 4618 mov r0, r3 + 8005106: 3714 adds r7, #20 + 8005108: 46bd mov sp, r7 + 800510a: f85d 7b04 ldr.w r7, [sp], #4 + 800510e: 4770 bx lr + 8005110: 20000058 .word 0x20000058 + 8005114: 431bde83 .word 0x431bde83 + 8005118: fffff8fe .word 0xfffff8fe + 800511c: 40012300 .word 0x40012300 + 8005120: 40012000 .word 0x40012000 + 8005124: 40012200 .word 0x40012200 + +08005128 : * the configuration information for the specified ADC. * @param sConfig ADC configuration structure. * @retval HAL status */ HAL_StatusTypeDef HAL_ADC_ConfigChannel(ADC_HandleTypeDef* hadc, ADC_ChannelConfTypeDef* sConfig) { - 8005124: b480 push {r7} - 8005126: b085 sub sp, #20 - 8005128: af00 add r7, sp, #0 - 800512a: 6078 str r0, [r7, #4] - 800512c: 6039 str r1, [r7, #0] + 8005128: b480 push {r7} + 800512a: b085 sub sp, #20 + 800512c: af00 add r7, sp, #0 + 800512e: 6078 str r0, [r7, #4] + 8005130: 6039 str r1, [r7, #0] __IO uint32_t counter = 0; - 800512e: 2300 movs r3, #0 - 8005130: 60fb str r3, [r7, #12] + 8005132: 2300 movs r3, #0 + 8005134: 60fb str r3, [r7, #12] 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); - 8005132: 687b ldr r3, [r7, #4] - 8005134: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 8005138: 2b01 cmp r3, #1 - 800513a: d101 bne.n 8005140 - 800513c: 2302 movs r3, #2 - 800513e: e12a b.n 8005396 - 8005140: 687b ldr r3, [r7, #4] - 8005142: 2201 movs r2, #1 - 8005144: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8005136: 687b ldr r3, [r7, #4] + 8005138: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 800513c: 2b01 cmp r3, #1 + 800513e: d101 bne.n 8005144 + 8005140: 2302 movs r3, #2 + 8005142: e12a b.n 800539a + 8005144: 687b ldr r3, [r7, #4] + 8005146: 2201 movs r2, #1 + 8005148: f883 203c strb.w r2, [r3, #60] ; 0x3c /* if ADC_Channel_10 ... ADC_Channel_18 is selected */ if ((sConfig->Channel > ADC_CHANNEL_9) && (sConfig->Channel != ADC_INTERNAL_NONE)) - 8005148: 683b ldr r3, [r7, #0] - 800514a: 681b ldr r3, [r3, #0] - 800514c: 2b09 cmp r3, #9 - 800514e: d93a bls.n 80051c6 - 8005150: 683b ldr r3, [r7, #0] - 8005152: 681b ldr r3, [r3, #0] - 8005154: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 8005158: d035 beq.n 80051c6 + 800514c: 683b ldr r3, [r7, #0] + 800514e: 681b ldr r3, [r3, #0] + 8005150: 2b09 cmp r3, #9 + 8005152: d93a bls.n 80051ca + 8005154: 683b ldr r3, [r7, #0] + 8005156: 681b ldr r3, [r3, #0] + 8005158: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 + 800515c: d035 beq.n 80051ca { /* Clear the old sample time */ hadc->Instance->SMPR1 &= ~ADC_SMPR1(ADC_SMPR1_SMP10, sConfig->Channel); - 800515a: 687b ldr r3, [r7, #4] - 800515c: 681b ldr r3, [r3, #0] - 800515e: 68d9 ldr r1, [r3, #12] - 8005160: 683b ldr r3, [r7, #0] - 8005162: 681b ldr r3, [r3, #0] - 8005164: b29b uxth r3, r3 - 8005166: 461a mov r2, r3 - 8005168: 4613 mov r3, r2 - 800516a: 005b lsls r3, r3, #1 - 800516c: 4413 add r3, r2 - 800516e: 3b1e subs r3, #30 - 8005170: 2207 movs r2, #7 - 8005172: fa02 f303 lsl.w r3, r2, r3 - 8005176: 43da mvns r2, r3 - 8005178: 687b ldr r3, [r7, #4] - 800517a: 681b ldr r3, [r3, #0] - 800517c: 400a ands r2, r1 - 800517e: 60da str r2, [r3, #12] + 800515e: 687b ldr r3, [r7, #4] + 8005160: 681b ldr r3, [r3, #0] + 8005162: 68d9 ldr r1, [r3, #12] + 8005164: 683b ldr r3, [r7, #0] + 8005166: 681b ldr r3, [r3, #0] + 8005168: b29b uxth r3, r3 + 800516a: 461a mov r2, r3 + 800516c: 4613 mov r3, r2 + 800516e: 005b lsls r3, r3, #1 + 8005170: 4413 add r3, r2 + 8005172: 3b1e subs r3, #30 + 8005174: 2207 movs r2, #7 + 8005176: fa02 f303 lsl.w r3, r2, r3 + 800517a: 43da mvns r2, r3 + 800517c: 687b ldr r3, [r7, #4] + 800517e: 681b ldr r3, [r3, #0] + 8005180: 400a ands r2, r1 + 8005182: 60da str r2, [r3, #12] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) - 8005180: 683b ldr r3, [r7, #0] - 8005182: 681b ldr r3, [r3, #0] - 8005184: 4a87 ldr r2, [pc, #540] ; (80053a4 ) - 8005186: 4293 cmp r3, r2 - 8005188: d10a bne.n 80051a0 + 8005184: 683b ldr r3, [r7, #0] + 8005186: 681b ldr r3, [r3, #0] + 8005188: 4a87 ldr r2, [pc, #540] ; (80053a8 ) + 800518a: 4293 cmp r3, r2 + 800518c: d10a bne.n 80051a4 { /* Set the new sample time */ hadc->Instance->SMPR1 |= ADC_SMPR1(sConfig->SamplingTime, ADC_CHANNEL_18); - 800518a: 687b ldr r3, [r7, #4] - 800518c: 681b ldr r3, [r3, #0] - 800518e: 68d9 ldr r1, [r3, #12] - 8005190: 683b ldr r3, [r7, #0] - 8005192: 689b ldr r3, [r3, #8] - 8005194: 061a lsls r2, r3, #24 - 8005196: 687b ldr r3, [r7, #4] - 8005198: 681b ldr r3, [r3, #0] - 800519a: 430a orrs r2, r1 - 800519c: 60da str r2, [r3, #12] + 800518e: 687b ldr r3, [r7, #4] + 8005190: 681b ldr r3, [r3, #0] + 8005192: 68d9 ldr r1, [r3, #12] + 8005194: 683b ldr r3, [r7, #0] + 8005196: 689b ldr r3, [r3, #8] + 8005198: 061a lsls r2, r3, #24 + 800519a: 687b ldr r3, [r7, #4] + 800519c: 681b ldr r3, [r3, #0] + 800519e: 430a orrs r2, r1 + 80051a0: 60da str r2, [r3, #12] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) - 800519e: e035 b.n 800520c + 80051a2: e035 b.n 8005210 } else { /* Set the new sample time */ hadc->Instance->SMPR1 |= ADC_SMPR1(sConfig->SamplingTime, sConfig->Channel); - 80051a0: 687b ldr r3, [r7, #4] - 80051a2: 681b ldr r3, [r3, #0] - 80051a4: 68d9 ldr r1, [r3, #12] - 80051a6: 683b ldr r3, [r7, #0] - 80051a8: 689a ldr r2, [r3, #8] + 80051a4: 687b ldr r3, [r7, #4] + 80051a6: 681b ldr r3, [r3, #0] + 80051a8: 68d9 ldr r1, [r3, #12] 80051aa: 683b ldr r3, [r7, #0] - 80051ac: 681b ldr r3, [r3, #0] - 80051ae: b29b uxth r3, r3 - 80051b0: 4618 mov r0, r3 - 80051b2: 4603 mov r3, r0 - 80051b4: 005b lsls r3, r3, #1 - 80051b6: 4403 add r3, r0 - 80051b8: 3b1e subs r3, #30 - 80051ba: 409a lsls r2, r3 - 80051bc: 687b ldr r3, [r7, #4] - 80051be: 681b ldr r3, [r3, #0] - 80051c0: 430a orrs r2, r1 - 80051c2: 60da str r2, [r3, #12] + 80051ac: 689a ldr r2, [r3, #8] + 80051ae: 683b ldr r3, [r7, #0] + 80051b0: 681b ldr r3, [r3, #0] + 80051b2: b29b uxth r3, r3 + 80051b4: 4618 mov r0, r3 + 80051b6: 4603 mov r3, r0 + 80051b8: 005b lsls r3, r3, #1 + 80051ba: 4403 add r3, r0 + 80051bc: 3b1e subs r3, #30 + 80051be: 409a lsls r2, r3 + 80051c0: 687b ldr r3, [r7, #4] + 80051c2: 681b ldr r3, [r3, #0] + 80051c4: 430a orrs r2, r1 + 80051c6: 60da str r2, [r3, #12] if (sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) - 80051c4: e022 b.n 800520c + 80051c8: e022 b.n 8005210 } } else /* ADC_Channel include in ADC_Channel_[0..9] */ { /* Clear the old sample time */ hadc->Instance->SMPR2 &= ~ADC_SMPR2(ADC_SMPR2_SMP0, sConfig->Channel); - 80051c6: 687b ldr r3, [r7, #4] - 80051c8: 681b ldr r3, [r3, #0] - 80051ca: 6919 ldr r1, [r3, #16] - 80051cc: 683b ldr r3, [r7, #0] - 80051ce: 681b ldr r3, [r3, #0] - 80051d0: b29b uxth r3, r3 - 80051d2: 461a mov r2, r3 - 80051d4: 4613 mov r3, r2 - 80051d6: 005b lsls r3, r3, #1 - 80051d8: 4413 add r3, r2 - 80051da: 2207 movs r2, #7 - 80051dc: fa02 f303 lsl.w r3, r2, r3 - 80051e0: 43da mvns r2, r3 - 80051e2: 687b ldr r3, [r7, #4] - 80051e4: 681b ldr r3, [r3, #0] - 80051e6: 400a ands r2, r1 - 80051e8: 611a str r2, [r3, #16] + 80051ca: 687b ldr r3, [r7, #4] + 80051cc: 681b ldr r3, [r3, #0] + 80051ce: 6919 ldr r1, [r3, #16] + 80051d0: 683b ldr r3, [r7, #0] + 80051d2: 681b ldr r3, [r3, #0] + 80051d4: b29b uxth r3, r3 + 80051d6: 461a mov r2, r3 + 80051d8: 4613 mov r3, r2 + 80051da: 005b lsls r3, r3, #1 + 80051dc: 4413 add r3, r2 + 80051de: 2207 movs r2, #7 + 80051e0: fa02 f303 lsl.w r3, r2, r3 + 80051e4: 43da mvns r2, r3 + 80051e6: 687b ldr r3, [r7, #4] + 80051e8: 681b ldr r3, [r3, #0] + 80051ea: 400a ands r2, r1 + 80051ec: 611a str r2, [r3, #16] /* Set the new sample time */ hadc->Instance->SMPR2 |= ADC_SMPR2(sConfig->SamplingTime, sConfig->Channel); - 80051ea: 687b ldr r3, [r7, #4] - 80051ec: 681b ldr r3, [r3, #0] - 80051ee: 6919 ldr r1, [r3, #16] - 80051f0: 683b ldr r3, [r7, #0] - 80051f2: 689a ldr r2, [r3, #8] + 80051ee: 687b ldr r3, [r7, #4] + 80051f0: 681b ldr r3, [r3, #0] + 80051f2: 6919 ldr r1, [r3, #16] 80051f4: 683b ldr r3, [r7, #0] - 80051f6: 681b ldr r3, [r3, #0] - 80051f8: b29b uxth r3, r3 - 80051fa: 4618 mov r0, r3 - 80051fc: 4603 mov r3, r0 - 80051fe: 005b lsls r3, r3, #1 - 8005200: 4403 add r3, r0 - 8005202: 409a lsls r2, r3 - 8005204: 687b ldr r3, [r7, #4] - 8005206: 681b ldr r3, [r3, #0] - 8005208: 430a orrs r2, r1 - 800520a: 611a str r2, [r3, #16] + 80051f6: 689a ldr r2, [r3, #8] + 80051f8: 683b ldr r3, [r7, #0] + 80051fa: 681b ldr r3, [r3, #0] + 80051fc: b29b uxth r3, r3 + 80051fe: 4618 mov r0, r3 + 8005200: 4603 mov r3, r0 + 8005202: 005b lsls r3, r3, #1 + 8005204: 4403 add r3, r0 + 8005206: 409a lsls r2, r3 + 8005208: 687b ldr r3, [r7, #4] + 800520a: 681b ldr r3, [r3, #0] + 800520c: 430a orrs r2, r1 + 800520e: 611a str r2, [r3, #16] } /* For Rank 1 to 6 */ if (sConfig->Rank < 7) - 800520c: 683b ldr r3, [r7, #0] - 800520e: 685b ldr r3, [r3, #4] - 8005210: 2b06 cmp r3, #6 - 8005212: d824 bhi.n 800525e + 8005210: 683b ldr r3, [r7, #0] + 8005212: 685b ldr r3, [r3, #4] + 8005214: 2b06 cmp r3, #6 + 8005216: d824 bhi.n 8005262 { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR3 &= ~ADC_SQR3_RK(ADC_SQR3_SQ1, sConfig->Rank); - 8005214: 687b ldr r3, [r7, #4] - 8005216: 681b ldr r3, [r3, #0] - 8005218: 6b59 ldr r1, [r3, #52] ; 0x34 - 800521a: 683b ldr r3, [r7, #0] - 800521c: 685a ldr r2, [r3, #4] - 800521e: 4613 mov r3, r2 - 8005220: 009b lsls r3, r3, #2 - 8005222: 4413 add r3, r2 - 8005224: 3b05 subs r3, #5 - 8005226: 221f movs r2, #31 - 8005228: fa02 f303 lsl.w r3, r2, r3 - 800522c: 43da mvns r2, r3 - 800522e: 687b ldr r3, [r7, #4] - 8005230: 681b ldr r3, [r3, #0] - 8005232: 400a ands r2, r1 - 8005234: 635a str r2, [r3, #52] ; 0x34 + 8005218: 687b ldr r3, [r7, #4] + 800521a: 681b ldr r3, [r3, #0] + 800521c: 6b59 ldr r1, [r3, #52] ; 0x34 + 800521e: 683b ldr r3, [r7, #0] + 8005220: 685a ldr r2, [r3, #4] + 8005222: 4613 mov r3, r2 + 8005224: 009b lsls r3, r3, #2 + 8005226: 4413 add r3, r2 + 8005228: 3b05 subs r3, #5 + 800522a: 221f movs r2, #31 + 800522c: fa02 f303 lsl.w r3, r2, r3 + 8005230: 43da mvns r2, r3 + 8005232: 687b ldr r3, [r7, #4] + 8005234: 681b ldr r3, [r3, #0] + 8005236: 400a ands r2, r1 + 8005238: 635a str r2, [r3, #52] ; 0x34 /* Set the SQx bits for the selected rank */ hadc->Instance->SQR3 |= ADC_SQR3_RK(sConfig->Channel, sConfig->Rank); - 8005236: 687b ldr r3, [r7, #4] - 8005238: 681b ldr r3, [r3, #0] - 800523a: 6b59 ldr r1, [r3, #52] ; 0x34 - 800523c: 683b ldr r3, [r7, #0] - 800523e: 681b ldr r3, [r3, #0] - 8005240: b29b uxth r3, r3 - 8005242: 4618 mov r0, r3 - 8005244: 683b ldr r3, [r7, #0] - 8005246: 685a ldr r2, [r3, #4] - 8005248: 4613 mov r3, r2 - 800524a: 009b lsls r3, r3, #2 - 800524c: 4413 add r3, r2 - 800524e: 3b05 subs r3, #5 - 8005250: fa00 f203 lsl.w r2, r0, r3 - 8005254: 687b ldr r3, [r7, #4] - 8005256: 681b ldr r3, [r3, #0] - 8005258: 430a orrs r2, r1 - 800525a: 635a str r2, [r3, #52] ; 0x34 - 800525c: e04c b.n 80052f8 + 800523a: 687b ldr r3, [r7, #4] + 800523c: 681b ldr r3, [r3, #0] + 800523e: 6b59 ldr r1, [r3, #52] ; 0x34 + 8005240: 683b ldr r3, [r7, #0] + 8005242: 681b ldr r3, [r3, #0] + 8005244: b29b uxth r3, r3 + 8005246: 4618 mov r0, r3 + 8005248: 683b ldr r3, [r7, #0] + 800524a: 685a ldr r2, [r3, #4] + 800524c: 4613 mov r3, r2 + 800524e: 009b lsls r3, r3, #2 + 8005250: 4413 add r3, r2 + 8005252: 3b05 subs r3, #5 + 8005254: fa00 f203 lsl.w r2, r0, r3 + 8005258: 687b ldr r3, [r7, #4] + 800525a: 681b ldr r3, [r3, #0] + 800525c: 430a orrs r2, r1 + 800525e: 635a str r2, [r3, #52] ; 0x34 + 8005260: e04c b.n 80052fc } /* For Rank 7 to 12 */ else if (sConfig->Rank < 13) - 800525e: 683b ldr r3, [r7, #0] - 8005260: 685b ldr r3, [r3, #4] - 8005262: 2b0c cmp r3, #12 - 8005264: d824 bhi.n 80052b0 + 8005262: 683b ldr r3, [r7, #0] + 8005264: 685b ldr r3, [r3, #4] + 8005266: 2b0c cmp r3, #12 + 8005268: d824 bhi.n 80052b4 { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR2 &= ~ADC_SQR2_RK(ADC_SQR2_SQ7, sConfig->Rank); - 8005266: 687b ldr r3, [r7, #4] - 8005268: 681b ldr r3, [r3, #0] - 800526a: 6b19 ldr r1, [r3, #48] ; 0x30 - 800526c: 683b ldr r3, [r7, #0] - 800526e: 685a ldr r2, [r3, #4] - 8005270: 4613 mov r3, r2 - 8005272: 009b lsls r3, r3, #2 - 8005274: 4413 add r3, r2 - 8005276: 3b23 subs r3, #35 ; 0x23 - 8005278: 221f movs r2, #31 - 800527a: fa02 f303 lsl.w r3, r2, r3 - 800527e: 43da mvns r2, r3 - 8005280: 687b ldr r3, [r7, #4] - 8005282: 681b ldr r3, [r3, #0] - 8005284: 400a ands r2, r1 - 8005286: 631a str r2, [r3, #48] ; 0x30 + 800526a: 687b ldr r3, [r7, #4] + 800526c: 681b ldr r3, [r3, #0] + 800526e: 6b19 ldr r1, [r3, #48] ; 0x30 + 8005270: 683b ldr r3, [r7, #0] + 8005272: 685a ldr r2, [r3, #4] + 8005274: 4613 mov r3, r2 + 8005276: 009b lsls r3, r3, #2 + 8005278: 4413 add r3, r2 + 800527a: 3b23 subs r3, #35 ; 0x23 + 800527c: 221f movs r2, #31 + 800527e: fa02 f303 lsl.w r3, r2, r3 + 8005282: 43da mvns r2, r3 + 8005284: 687b ldr r3, [r7, #4] + 8005286: 681b ldr r3, [r3, #0] + 8005288: 400a ands r2, r1 + 800528a: 631a str r2, [r3, #48] ; 0x30 /* Set the SQx bits for the selected rank */ hadc->Instance->SQR2 |= ADC_SQR2_RK(sConfig->Channel, sConfig->Rank); - 8005288: 687b ldr r3, [r7, #4] - 800528a: 681b ldr r3, [r3, #0] - 800528c: 6b19 ldr r1, [r3, #48] ; 0x30 - 800528e: 683b ldr r3, [r7, #0] - 8005290: 681b ldr r3, [r3, #0] - 8005292: b29b uxth r3, r3 - 8005294: 4618 mov r0, r3 - 8005296: 683b ldr r3, [r7, #0] - 8005298: 685a ldr r2, [r3, #4] - 800529a: 4613 mov r3, r2 - 800529c: 009b lsls r3, r3, #2 - 800529e: 4413 add r3, r2 - 80052a0: 3b23 subs r3, #35 ; 0x23 - 80052a2: fa00 f203 lsl.w r2, r0, r3 - 80052a6: 687b ldr r3, [r7, #4] - 80052a8: 681b ldr r3, [r3, #0] - 80052aa: 430a orrs r2, r1 - 80052ac: 631a str r2, [r3, #48] ; 0x30 - 80052ae: e023 b.n 80052f8 + 800528c: 687b ldr r3, [r7, #4] + 800528e: 681b ldr r3, [r3, #0] + 8005290: 6b19 ldr r1, [r3, #48] ; 0x30 + 8005292: 683b ldr r3, [r7, #0] + 8005294: 681b ldr r3, [r3, #0] + 8005296: b29b uxth r3, r3 + 8005298: 4618 mov r0, r3 + 800529a: 683b ldr r3, [r7, #0] + 800529c: 685a ldr r2, [r3, #4] + 800529e: 4613 mov r3, r2 + 80052a0: 009b lsls r3, r3, #2 + 80052a2: 4413 add r3, r2 + 80052a4: 3b23 subs r3, #35 ; 0x23 + 80052a6: fa00 f203 lsl.w r2, r0, r3 + 80052aa: 687b ldr r3, [r7, #4] + 80052ac: 681b ldr r3, [r3, #0] + 80052ae: 430a orrs r2, r1 + 80052b0: 631a str r2, [r3, #48] ; 0x30 + 80052b2: e023 b.n 80052fc } /* For Rank 13 to 16 */ else { /* Clear the old SQx bits for the selected rank */ hadc->Instance->SQR1 &= ~ADC_SQR1_RK(ADC_SQR1_SQ13, sConfig->Rank); - 80052b0: 687b ldr r3, [r7, #4] - 80052b2: 681b ldr r3, [r3, #0] - 80052b4: 6ad9 ldr r1, [r3, #44] ; 0x2c - 80052b6: 683b ldr r3, [r7, #0] - 80052b8: 685a ldr r2, [r3, #4] - 80052ba: 4613 mov r3, r2 - 80052bc: 009b lsls r3, r3, #2 - 80052be: 4413 add r3, r2 - 80052c0: 3b41 subs r3, #65 ; 0x41 - 80052c2: 221f movs r2, #31 - 80052c4: fa02 f303 lsl.w r3, r2, r3 - 80052c8: 43da mvns r2, r3 - 80052ca: 687b ldr r3, [r7, #4] - 80052cc: 681b ldr r3, [r3, #0] - 80052ce: 400a ands r2, r1 - 80052d0: 62da str r2, [r3, #44] ; 0x2c + 80052b4: 687b ldr r3, [r7, #4] + 80052b6: 681b ldr r3, [r3, #0] + 80052b8: 6ad9 ldr r1, [r3, #44] ; 0x2c + 80052ba: 683b ldr r3, [r7, #0] + 80052bc: 685a ldr r2, [r3, #4] + 80052be: 4613 mov r3, r2 + 80052c0: 009b lsls r3, r3, #2 + 80052c2: 4413 add r3, r2 + 80052c4: 3b41 subs r3, #65 ; 0x41 + 80052c6: 221f movs r2, #31 + 80052c8: fa02 f303 lsl.w r3, r2, r3 + 80052cc: 43da mvns r2, r3 + 80052ce: 687b ldr r3, [r7, #4] + 80052d0: 681b ldr r3, [r3, #0] + 80052d2: 400a ands r2, r1 + 80052d4: 62da str r2, [r3, #44] ; 0x2c /* Set the SQx bits for the selected rank */ hadc->Instance->SQR1 |= ADC_SQR1_RK(sConfig->Channel, sConfig->Rank); - 80052d2: 687b ldr r3, [r7, #4] - 80052d4: 681b ldr r3, [r3, #0] - 80052d6: 6ad9 ldr r1, [r3, #44] ; 0x2c - 80052d8: 683b ldr r3, [r7, #0] - 80052da: 681b ldr r3, [r3, #0] - 80052dc: b29b uxth r3, r3 - 80052de: 4618 mov r0, r3 - 80052e0: 683b ldr r3, [r7, #0] - 80052e2: 685a ldr r2, [r3, #4] - 80052e4: 4613 mov r3, r2 - 80052e6: 009b lsls r3, r3, #2 - 80052e8: 4413 add r3, r2 - 80052ea: 3b41 subs r3, #65 ; 0x41 - 80052ec: fa00 f203 lsl.w r2, r0, r3 - 80052f0: 687b ldr r3, [r7, #4] - 80052f2: 681b ldr r3, [r3, #0] - 80052f4: 430a orrs r2, r1 - 80052f6: 62da str r2, [r3, #44] ; 0x2c + 80052d6: 687b ldr r3, [r7, #4] + 80052d8: 681b ldr r3, [r3, #0] + 80052da: 6ad9 ldr r1, [r3, #44] ; 0x2c + 80052dc: 683b ldr r3, [r7, #0] + 80052de: 681b ldr r3, [r3, #0] + 80052e0: b29b uxth r3, r3 + 80052e2: 4618 mov r0, r3 + 80052e4: 683b ldr r3, [r7, #0] + 80052e6: 685a ldr r2, [r3, #4] + 80052e8: 4613 mov r3, r2 + 80052ea: 009b lsls r3, r3, #2 + 80052ec: 4413 add r3, r2 + 80052ee: 3b41 subs r3, #65 ; 0x41 + 80052f0: fa00 f203 lsl.w r2, r0, r3 + 80052f4: 687b ldr r3, [r7, #4] + 80052f6: 681b ldr r3, [r3, #0] + 80052f8: 430a orrs r2, r1 + 80052fa: 62da str r2, [r3, #44] ; 0x2c } /* if no internal channel selected */ if ((hadc->Instance == ADC1) && (sConfig->Channel == ADC_INTERNAL_NONE)) - 80052f8: 687b ldr r3, [r7, #4] - 80052fa: 681b ldr r3, [r3, #0] - 80052fc: 4a2a ldr r2, [pc, #168] ; (80053a8 ) - 80052fe: 4293 cmp r3, r2 - 8005300: d10a bne.n 8005318 - 8005302: 683b ldr r3, [r7, #0] - 8005304: 681b ldr r3, [r3, #0] - 8005306: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 - 800530a: d105 bne.n 8005318 + 80052fc: 687b ldr r3, [r7, #4] + 80052fe: 681b ldr r3, [r3, #0] + 8005300: 4a2a ldr r2, [pc, #168] ; (80053ac ) + 8005302: 4293 cmp r3, r2 + 8005304: d10a bne.n 800531c + 8005306: 683b ldr r3, [r7, #0] + 8005308: 681b ldr r3, [r3, #0] + 800530a: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 + 800530e: d105 bne.n 800531c { /* Disable the VBAT & TSVREFE channel*/ ADC->CCR &= ~(ADC_CCR_VBATE | ADC_CCR_TSVREFE); - 800530c: 4b27 ldr r3, [pc, #156] ; (80053ac ) - 800530e: 685b ldr r3, [r3, #4] - 8005310: 4a26 ldr r2, [pc, #152] ; (80053ac ) - 8005312: f423 0340 bic.w r3, r3, #12582912 ; 0xc00000 - 8005316: 6053 str r3, [r2, #4] + 8005310: 4b27 ldr r3, [pc, #156] ; (80053b0 ) + 8005312: 685b ldr r3, [r3, #4] + 8005314: 4a26 ldr r2, [pc, #152] ; (80053b0 ) + 8005316: f423 0340 bic.w r3, r3, #12582912 ; 0xc00000 + 800531a: 6053 str r3, [r2, #4] } /* if ADC1 Channel_18 is selected enable VBAT Channel */ if ((hadc->Instance == ADC1) && (sConfig->Channel == ADC_CHANNEL_VBAT)) - 8005318: 687b ldr r3, [r7, #4] - 800531a: 681b ldr r3, [r3, #0] - 800531c: 4a22 ldr r2, [pc, #136] ; (80053a8 ) - 800531e: 4293 cmp r3, r2 - 8005320: d109 bne.n 8005336 - 8005322: 683b ldr r3, [r7, #0] - 8005324: 681b ldr r3, [r3, #0] - 8005326: 2b12 cmp r3, #18 - 8005328: d105 bne.n 8005336 + 800531c: 687b ldr r3, [r7, #4] + 800531e: 681b ldr r3, [r3, #0] + 8005320: 4a22 ldr r2, [pc, #136] ; (80053ac ) + 8005322: 4293 cmp r3, r2 + 8005324: d109 bne.n 800533a + 8005326: 683b ldr r3, [r7, #0] + 8005328: 681b ldr r3, [r3, #0] + 800532a: 2b12 cmp r3, #18 + 800532c: d105 bne.n 800533a { /* Enable the VBAT channel*/ ADC->CCR |= ADC_CCR_VBATE; - 800532a: 4b20 ldr r3, [pc, #128] ; (80053ac ) - 800532c: 685b ldr r3, [r3, #4] - 800532e: 4a1f ldr r2, [pc, #124] ; (80053ac ) - 8005330: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 - 8005334: 6053 str r3, [r2, #4] + 800532e: 4b20 ldr r3, [pc, #128] ; (80053b0 ) + 8005330: 685b ldr r3, [r3, #4] + 8005332: 4a1f ldr r2, [pc, #124] ; (80053b0 ) + 8005334: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 + 8005338: 6053 str r3, [r2, #4] } /* if ADC1 Channel_18 or Channel_17 is selected enable TSVREFE Channel(Temperature sensor and VREFINT) */ if ((hadc->Instance == ADC1) && ((sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) || (sConfig->Channel == ADC_CHANNEL_VREFINT))) - 8005336: 687b ldr r3, [r7, #4] - 8005338: 681b ldr r3, [r3, #0] - 800533a: 4a1b ldr r2, [pc, #108] ; (80053a8 ) - 800533c: 4293 cmp r3, r2 - 800533e: d125 bne.n 800538c - 8005340: 683b ldr r3, [r7, #0] - 8005342: 681b ldr r3, [r3, #0] - 8005344: 4a17 ldr r2, [pc, #92] ; (80053a4 ) - 8005346: 4293 cmp r3, r2 - 8005348: d003 beq.n 8005352 - 800534a: 683b ldr r3, [r7, #0] - 800534c: 681b ldr r3, [r3, #0] - 800534e: 2b11 cmp r3, #17 - 8005350: d11c bne.n 800538c + 800533a: 687b ldr r3, [r7, #4] + 800533c: 681b ldr r3, [r3, #0] + 800533e: 4a1b ldr r2, [pc, #108] ; (80053ac ) + 8005340: 4293 cmp r3, r2 + 8005342: d125 bne.n 8005390 + 8005344: 683b ldr r3, [r7, #0] + 8005346: 681b ldr r3, [r3, #0] + 8005348: 4a17 ldr r2, [pc, #92] ; (80053a8 ) + 800534a: 4293 cmp r3, r2 + 800534c: d003 beq.n 8005356 + 800534e: 683b ldr r3, [r7, #0] + 8005350: 681b ldr r3, [r3, #0] + 8005352: 2b11 cmp r3, #17 + 8005354: d11c bne.n 8005390 { /* Enable the TSVREFE channel*/ ADC->CCR |= ADC_CCR_TSVREFE; - 8005352: 4b16 ldr r3, [pc, #88] ; (80053ac ) - 8005354: 685b ldr r3, [r3, #4] - 8005356: 4a15 ldr r2, [pc, #84] ; (80053ac ) - 8005358: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 - 800535c: 6053 str r3, [r2, #4] + 8005356: 4b16 ldr r3, [pc, #88] ; (80053b0 ) + 8005358: 685b ldr r3, [r3, #4] + 800535a: 4a15 ldr r2, [pc, #84] ; (80053b0 ) + 800535c: f443 0300 orr.w r3, r3, #8388608 ; 0x800000 + 8005360: 6053 str r3, [r2, #4] if(sConfig->Channel == ADC_CHANNEL_TEMPSENSOR) - 800535e: 683b ldr r3, [r7, #0] - 8005360: 681b ldr r3, [r3, #0] - 8005362: 4a10 ldr r2, [pc, #64] ; (80053a4 ) - 8005364: 4293 cmp r3, r2 - 8005366: d111 bne.n 800538c + 8005362: 683b ldr r3, [r7, #0] + 8005364: 681b ldr r3, [r3, #0] + 8005366: 4a10 ldr r2, [pc, #64] ; (80053a8 ) + 8005368: 4293 cmp r3, r2 + 800536a: d111 bne.n 8005390 { /* Delay for temperature sensor stabilization time */ /* Compute number of CPU cycles to wait for */ counter = (ADC_TEMPSENSOR_DELAY_US * (SystemCoreClock / 1000000)); - 8005368: 4b11 ldr r3, [pc, #68] ; (80053b0 ) - 800536a: 681b ldr r3, [r3, #0] - 800536c: 4a11 ldr r2, [pc, #68] ; (80053b4 ) - 800536e: fba2 2303 umull r2, r3, r2, r3 - 8005372: 0c9a lsrs r2, r3, #18 - 8005374: 4613 mov r3, r2 - 8005376: 009b lsls r3, r3, #2 - 8005378: 4413 add r3, r2 - 800537a: 005b lsls r3, r3, #1 - 800537c: 60fb str r3, [r7, #12] + 800536c: 4b11 ldr r3, [pc, #68] ; (80053b4 ) + 800536e: 681b ldr r3, [r3, #0] + 8005370: 4a11 ldr r2, [pc, #68] ; (80053b8 ) + 8005372: fba2 2303 umull r2, r3, r2, r3 + 8005376: 0c9a lsrs r2, r3, #18 + 8005378: 4613 mov r3, r2 + 800537a: 009b lsls r3, r3, #2 + 800537c: 4413 add r3, r2 + 800537e: 005b lsls r3, r3, #1 + 8005380: 60fb str r3, [r7, #12] while(counter != 0) - 800537e: e002 b.n 8005386 + 8005382: e002 b.n 800538a { counter--; - 8005380: 68fb ldr r3, [r7, #12] - 8005382: 3b01 subs r3, #1 - 8005384: 60fb str r3, [r7, #12] + 8005384: 68fb ldr r3, [r7, #12] + 8005386: 3b01 subs r3, #1 + 8005388: 60fb str r3, [r7, #12] while(counter != 0) - 8005386: 68fb ldr r3, [r7, #12] - 8005388: 2b00 cmp r3, #0 - 800538a: d1f9 bne.n 8005380 + 800538a: 68fb ldr r3, [r7, #12] + 800538c: 2b00 cmp r3, #0 + 800538e: d1f9 bne.n 8005384 } } } /* Process unlocked */ __HAL_UNLOCK(hadc); - 800538c: 687b ldr r3, [r7, #4] - 800538e: 2200 movs r2, #0 - 8005390: f883 203c strb.w r2, [r3, #60] ; 0x3c + 8005390: 687b ldr r3, [r7, #4] + 8005392: 2200 movs r2, #0 + 8005394: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Return function status */ return HAL_OK; - 8005394: 2300 movs r3, #0 -} - 8005396: 4618 mov r0, r3 - 8005398: 3714 adds r7, #20 - 800539a: 46bd mov sp, r7 - 800539c: f85d 7b04 ldr.w r7, [sp], #4 - 80053a0: 4770 bx lr - 80053a2: bf00 nop - 80053a4: 10000012 .word 0x10000012 - 80053a8: 40012000 .word 0x40012000 - 80053ac: 40012300 .word 0x40012300 - 80053b0: 20000058 .word 0x20000058 - 80053b4: 431bde83 .word 0x431bde83 - -080053b8 : + 8005398: 2300 movs r3, #0 +} + 800539a: 4618 mov r0, r3 + 800539c: 3714 adds r7, #20 + 800539e: 46bd mov sp, r7 + 80053a0: f85d 7b04 ldr.w r7, [sp], #4 + 80053a4: 4770 bx lr + 80053a6: bf00 nop + 80053a8: 10000012 .word 0x10000012 + 80053ac: 40012000 .word 0x40012000 + 80053b0: 40012300 .word 0x40012300 + 80053b4: 20000058 .word 0x20000058 + 80053b8: 431bde83 .word 0x431bde83 + +080053bc : * @param hadc pointer to a ADC_HandleTypeDef structure that contains * the configuration information for the specified ADC. * @retval None */ static void ADC_Init(ADC_HandleTypeDef* hadc) { - 80053b8: b480 push {r7} - 80053ba: b083 sub sp, #12 - 80053bc: af00 add r7, sp, #0 - 80053be: 6078 str r0, [r7, #4] + 80053bc: b480 push {r7} + 80053be: b083 sub sp, #12 + 80053c0: af00 add r7, sp, #0 + 80053c2: 6078 str r0, [r7, #4] /* Set ADC parameters */ /* Set the ADC clock prescaler */ ADC->CCR &= ~(ADC_CCR_ADCPRE); - 80053c0: 4b78 ldr r3, [pc, #480] ; (80055a4 ) - 80053c2: 685b ldr r3, [r3, #4] - 80053c4: 4a77 ldr r2, [pc, #476] ; (80055a4 ) - 80053c6: f423 3340 bic.w r3, r3, #196608 ; 0x30000 - 80053ca: 6053 str r3, [r2, #4] + 80053c4: 4b78 ldr r3, [pc, #480] ; (80055a8 ) + 80053c6: 685b ldr r3, [r3, #4] + 80053c8: 4a77 ldr r2, [pc, #476] ; (80055a8 ) + 80053ca: f423 3340 bic.w r3, r3, #196608 ; 0x30000 + 80053ce: 6053 str r3, [r2, #4] ADC->CCR |= hadc->Init.ClockPrescaler; - 80053cc: 4b75 ldr r3, [pc, #468] ; (80055a4 ) - 80053ce: 685a ldr r2, [r3, #4] - 80053d0: 687b ldr r3, [r7, #4] - 80053d2: 685b ldr r3, [r3, #4] - 80053d4: 4973 ldr r1, [pc, #460] ; (80055a4 ) - 80053d6: 4313 orrs r3, r2 - 80053d8: 604b str r3, [r1, #4] + 80053d0: 4b75 ldr r3, [pc, #468] ; (80055a8 ) + 80053d2: 685a ldr r2, [r3, #4] + 80053d4: 687b ldr r3, [r7, #4] + 80053d6: 685b ldr r3, [r3, #4] + 80053d8: 4973 ldr r1, [pc, #460] ; (80055a8 ) + 80053da: 4313 orrs r3, r2 + 80053dc: 604b str r3, [r1, #4] /* Set ADC scan mode */ hadc->Instance->CR1 &= ~(ADC_CR1_SCAN); - 80053da: 687b ldr r3, [r7, #4] - 80053dc: 681b ldr r3, [r3, #0] - 80053de: 685a ldr r2, [r3, #4] - 80053e0: 687b ldr r3, [r7, #4] - 80053e2: 681b ldr r3, [r3, #0] - 80053e4: f422 7280 bic.w r2, r2, #256 ; 0x100 - 80053e8: 605a str r2, [r3, #4] + 80053de: 687b ldr r3, [r7, #4] + 80053e0: 681b ldr r3, [r3, #0] + 80053e2: 685a ldr r2, [r3, #4] + 80053e4: 687b ldr r3, [r7, #4] + 80053e6: 681b ldr r3, [r3, #0] + 80053e8: f422 7280 bic.w r2, r2, #256 ; 0x100 + 80053ec: 605a str r2, [r3, #4] hadc->Instance->CR1 |= ADC_CR1_SCANCONV(hadc->Init.ScanConvMode); - 80053ea: 687b ldr r3, [r7, #4] - 80053ec: 681b ldr r3, [r3, #0] - 80053ee: 6859 ldr r1, [r3, #4] - 80053f0: 687b ldr r3, [r7, #4] - 80053f2: 691b ldr r3, [r3, #16] - 80053f4: 021a lsls r2, r3, #8 - 80053f6: 687b ldr r3, [r7, #4] - 80053f8: 681b ldr r3, [r3, #0] - 80053fa: 430a orrs r2, r1 - 80053fc: 605a str r2, [r3, #4] + 80053ee: 687b ldr r3, [r7, #4] + 80053f0: 681b ldr r3, [r3, #0] + 80053f2: 6859 ldr r1, [r3, #4] + 80053f4: 687b ldr r3, [r7, #4] + 80053f6: 691b ldr r3, [r3, #16] + 80053f8: 021a lsls r2, r3, #8 + 80053fa: 687b ldr r3, [r7, #4] + 80053fc: 681b ldr r3, [r3, #0] + 80053fe: 430a orrs r2, r1 + 8005400: 605a str r2, [r3, #4] /* Set ADC resolution */ hadc->Instance->CR1 &= ~(ADC_CR1_RES); - 80053fe: 687b ldr r3, [r7, #4] - 8005400: 681b ldr r3, [r3, #0] - 8005402: 685a ldr r2, [r3, #4] - 8005404: 687b ldr r3, [r7, #4] - 8005406: 681b ldr r3, [r3, #0] - 8005408: f022 7240 bic.w r2, r2, #50331648 ; 0x3000000 - 800540c: 605a str r2, [r3, #4] + 8005402: 687b ldr r3, [r7, #4] + 8005404: 681b ldr r3, [r3, #0] + 8005406: 685a ldr r2, [r3, #4] + 8005408: 687b ldr r3, [r7, #4] + 800540a: 681b ldr r3, [r3, #0] + 800540c: f022 7240 bic.w r2, r2, #50331648 ; 0x3000000 + 8005410: 605a str r2, [r3, #4] hadc->Instance->CR1 |= hadc->Init.Resolution; - 800540e: 687b ldr r3, [r7, #4] - 8005410: 681b ldr r3, [r3, #0] - 8005412: 6859 ldr r1, [r3, #4] - 8005414: 687b ldr r3, [r7, #4] - 8005416: 689a ldr r2, [r3, #8] + 8005412: 687b ldr r3, [r7, #4] + 8005414: 681b ldr r3, [r3, #0] + 8005416: 6859 ldr r1, [r3, #4] 8005418: 687b ldr r3, [r7, #4] - 800541a: 681b ldr r3, [r3, #0] - 800541c: 430a orrs r2, r1 - 800541e: 605a str r2, [r3, #4] + 800541a: 689a ldr r2, [r3, #8] + 800541c: 687b ldr r3, [r7, #4] + 800541e: 681b ldr r3, [r3, #0] + 8005420: 430a orrs r2, r1 + 8005422: 605a str r2, [r3, #4] /* Set ADC data alignment */ hadc->Instance->CR2 &= ~(ADC_CR2_ALIGN); - 8005420: 687b ldr r3, [r7, #4] - 8005422: 681b ldr r3, [r3, #0] - 8005424: 689a ldr r2, [r3, #8] - 8005426: 687b ldr r3, [r7, #4] - 8005428: 681b ldr r3, [r3, #0] - 800542a: f422 6200 bic.w r2, r2, #2048 ; 0x800 - 800542e: 609a str r2, [r3, #8] + 8005424: 687b ldr r3, [r7, #4] + 8005426: 681b ldr r3, [r3, #0] + 8005428: 689a ldr r2, [r3, #8] + 800542a: 687b ldr r3, [r7, #4] + 800542c: 681b ldr r3, [r3, #0] + 800542e: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 8005432: 609a str r2, [r3, #8] hadc->Instance->CR2 |= hadc->Init.DataAlign; - 8005430: 687b ldr r3, [r7, #4] - 8005432: 681b ldr r3, [r3, #0] - 8005434: 6899 ldr r1, [r3, #8] - 8005436: 687b ldr r3, [r7, #4] - 8005438: 68da ldr r2, [r3, #12] + 8005434: 687b ldr r3, [r7, #4] + 8005436: 681b ldr r3, [r3, #0] + 8005438: 6899 ldr r1, [r3, #8] 800543a: 687b ldr r3, [r7, #4] - 800543c: 681b ldr r3, [r3, #0] - 800543e: 430a orrs r2, r1 - 8005440: 609a str r2, [r3, #8] + 800543c: 68da ldr r2, [r3, #12] + 800543e: 687b ldr r3, [r7, #4] + 8005440: 681b ldr r3, [r3, #0] + 8005442: 430a orrs r2, r1 + 8005444: 609a str r2, [r3, #8] /* Enable external trigger if trigger selection is different of software */ /* start. */ /* Note: This configuration keeps the hardware feature of parameter */ /* ExternalTrigConvEdge "trigger edge none" equivalent to */ /* software start. */ if(hadc->Init.ExternalTrigConv != ADC_SOFTWARE_START) - 8005442: 687b ldr r3, [r7, #4] - 8005444: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005446: 4a58 ldr r2, [pc, #352] ; (80055a8 ) - 8005448: 4293 cmp r3, r2 - 800544a: d022 beq.n 8005492 + 8005446: 687b ldr r3, [r7, #4] + 8005448: 6a9b ldr r3, [r3, #40] ; 0x28 + 800544a: 4a58 ldr r2, [pc, #352] ; (80055ac ) + 800544c: 4293 cmp r3, r2 + 800544e: d022 beq.n 8005496 { /* Select external trigger to start conversion */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTSEL); - 800544c: 687b ldr r3, [r7, #4] - 800544e: 681b ldr r3, [r3, #0] - 8005450: 689a ldr r2, [r3, #8] - 8005452: 687b ldr r3, [r7, #4] - 8005454: 681b ldr r3, [r3, #0] - 8005456: f022 6270 bic.w r2, r2, #251658240 ; 0xf000000 - 800545a: 609a str r2, [r3, #8] + 8005450: 687b ldr r3, [r7, #4] + 8005452: 681b ldr r3, [r3, #0] + 8005454: 689a ldr r2, [r3, #8] + 8005456: 687b ldr r3, [r7, #4] + 8005458: 681b ldr r3, [r3, #0] + 800545a: f022 6270 bic.w r2, r2, #251658240 ; 0xf000000 + 800545e: 609a str r2, [r3, #8] hadc->Instance->CR2 |= hadc->Init.ExternalTrigConv; - 800545c: 687b ldr r3, [r7, #4] - 800545e: 681b ldr r3, [r3, #0] - 8005460: 6899 ldr r1, [r3, #8] - 8005462: 687b ldr r3, [r7, #4] - 8005464: 6a9a ldr r2, [r3, #40] ; 0x28 + 8005460: 687b ldr r3, [r7, #4] + 8005462: 681b ldr r3, [r3, #0] + 8005464: 6899 ldr r1, [r3, #8] 8005466: 687b ldr r3, [r7, #4] - 8005468: 681b ldr r3, [r3, #0] - 800546a: 430a orrs r2, r1 - 800546c: 609a str r2, [r3, #8] + 8005468: 6a9a ldr r2, [r3, #40] ; 0x28 + 800546a: 687b ldr r3, [r7, #4] + 800546c: 681b ldr r3, [r3, #0] + 800546e: 430a orrs r2, r1 + 8005470: 609a str r2, [r3, #8] /* Select external trigger polarity */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTEN); - 800546e: 687b ldr r3, [r7, #4] - 8005470: 681b ldr r3, [r3, #0] - 8005472: 689a ldr r2, [r3, #8] - 8005474: 687b ldr r3, [r7, #4] - 8005476: 681b ldr r3, [r3, #0] - 8005478: f022 5240 bic.w r2, r2, #805306368 ; 0x30000000 - 800547c: 609a str r2, [r3, #8] + 8005472: 687b ldr r3, [r7, #4] + 8005474: 681b ldr r3, [r3, #0] + 8005476: 689a ldr r2, [r3, #8] + 8005478: 687b ldr r3, [r7, #4] + 800547a: 681b ldr r3, [r3, #0] + 800547c: f022 5240 bic.w r2, r2, #805306368 ; 0x30000000 + 8005480: 609a str r2, [r3, #8] hadc->Instance->CR2 |= hadc->Init.ExternalTrigConvEdge; - 800547e: 687b ldr r3, [r7, #4] - 8005480: 681b ldr r3, [r3, #0] - 8005482: 6899 ldr r1, [r3, #8] - 8005484: 687b ldr r3, [r7, #4] - 8005486: 6ada ldr r2, [r3, #44] ; 0x2c + 8005482: 687b ldr r3, [r7, #4] + 8005484: 681b ldr r3, [r3, #0] + 8005486: 6899 ldr r1, [r3, #8] 8005488: 687b ldr r3, [r7, #4] - 800548a: 681b ldr r3, [r3, #0] - 800548c: 430a orrs r2, r1 - 800548e: 609a str r2, [r3, #8] - 8005490: e00f b.n 80054b2 + 800548a: 6ada ldr r2, [r3, #44] ; 0x2c + 800548c: 687b ldr r3, [r7, #4] + 800548e: 681b ldr r3, [r3, #0] + 8005490: 430a orrs r2, r1 + 8005492: 609a str r2, [r3, #8] + 8005494: e00f b.n 80054b6 } else { /* Reset the external trigger */ hadc->Instance->CR2 &= ~(ADC_CR2_EXTSEL); - 8005492: 687b ldr r3, [r7, #4] - 8005494: 681b ldr r3, [r3, #0] - 8005496: 689a ldr r2, [r3, #8] - 8005498: 687b ldr r3, [r7, #4] - 800549a: 681b ldr r3, [r3, #0] - 800549c: f022 6270 bic.w r2, r2, #251658240 ; 0xf000000 - 80054a0: 609a str r2, [r3, #8] + 8005496: 687b ldr r3, [r7, #4] + 8005498: 681b ldr r3, [r3, #0] + 800549a: 689a ldr r2, [r3, #8] + 800549c: 687b ldr r3, [r7, #4] + 800549e: 681b ldr r3, [r3, #0] + 80054a0: f022 6270 bic.w r2, r2, #251658240 ; 0xf000000 + 80054a4: 609a str r2, [r3, #8] hadc->Instance->CR2 &= ~(ADC_CR2_EXTEN); - 80054a2: 687b ldr r3, [r7, #4] - 80054a4: 681b ldr r3, [r3, #0] - 80054a6: 689a ldr r2, [r3, #8] - 80054a8: 687b ldr r3, [r7, #4] - 80054aa: 681b ldr r3, [r3, #0] - 80054ac: f022 5240 bic.w r2, r2, #805306368 ; 0x30000000 - 80054b0: 609a str r2, [r3, #8] + 80054a6: 687b ldr r3, [r7, #4] + 80054a8: 681b ldr r3, [r3, #0] + 80054aa: 689a ldr r2, [r3, #8] + 80054ac: 687b ldr r3, [r7, #4] + 80054ae: 681b ldr r3, [r3, #0] + 80054b0: f022 5240 bic.w r2, r2, #805306368 ; 0x30000000 + 80054b4: 609a str r2, [r3, #8] } /* Enable or disable ADC continuous conversion mode */ hadc->Instance->CR2 &= ~(ADC_CR2_CONT); - 80054b2: 687b ldr r3, [r7, #4] - 80054b4: 681b ldr r3, [r3, #0] - 80054b6: 689a ldr r2, [r3, #8] - 80054b8: 687b ldr r3, [r7, #4] - 80054ba: 681b ldr r3, [r3, #0] - 80054bc: f022 0202 bic.w r2, r2, #2 - 80054c0: 609a str r2, [r3, #8] + 80054b6: 687b ldr r3, [r7, #4] + 80054b8: 681b ldr r3, [r3, #0] + 80054ba: 689a ldr r2, [r3, #8] + 80054bc: 687b ldr r3, [r7, #4] + 80054be: 681b ldr r3, [r3, #0] + 80054c0: f022 0202 bic.w r2, r2, #2 + 80054c4: 609a str r2, [r3, #8] hadc->Instance->CR2 |= ADC_CR2_CONTINUOUS((uint32_t)hadc->Init.ContinuousConvMode); - 80054c2: 687b ldr r3, [r7, #4] - 80054c4: 681b ldr r3, [r3, #0] - 80054c6: 6899 ldr r1, [r3, #8] - 80054c8: 687b ldr r3, [r7, #4] - 80054ca: 699b ldr r3, [r3, #24] - 80054cc: 005a lsls r2, r3, #1 - 80054ce: 687b ldr r3, [r7, #4] - 80054d0: 681b ldr r3, [r3, #0] - 80054d2: 430a orrs r2, r1 - 80054d4: 609a str r2, [r3, #8] + 80054c6: 687b ldr r3, [r7, #4] + 80054c8: 681b ldr r3, [r3, #0] + 80054ca: 6899 ldr r1, [r3, #8] + 80054cc: 687b ldr r3, [r7, #4] + 80054ce: 699b ldr r3, [r3, #24] + 80054d0: 005a lsls r2, r3, #1 + 80054d2: 687b ldr r3, [r7, #4] + 80054d4: 681b ldr r3, [r3, #0] + 80054d6: 430a orrs r2, r1 + 80054d8: 609a str r2, [r3, #8] if(hadc->Init.DiscontinuousConvMode != DISABLE) - 80054d6: 687b ldr r3, [r7, #4] - 80054d8: f893 3020 ldrb.w r3, [r3, #32] - 80054dc: 2b00 cmp r3, #0 - 80054de: d01b beq.n 8005518 + 80054da: 687b ldr r3, [r7, #4] + 80054dc: f893 3020 ldrb.w r3, [r3, #32] + 80054e0: 2b00 cmp r3, #0 + 80054e2: d01b beq.n 800551c { assert_param(IS_ADC_REGULAR_DISC_NUMBER(hadc->Init.NbrOfDiscConversion)); /* Enable the selected ADC regular discontinuous mode */ hadc->Instance->CR1 |= (uint32_t)ADC_CR1_DISCEN; - 80054e0: 687b ldr r3, [r7, #4] - 80054e2: 681b ldr r3, [r3, #0] - 80054e4: 685a ldr r2, [r3, #4] - 80054e6: 687b ldr r3, [r7, #4] - 80054e8: 681b ldr r3, [r3, #0] - 80054ea: f442 6200 orr.w r2, r2, #2048 ; 0x800 - 80054ee: 605a str r2, [r3, #4] + 80054e4: 687b ldr r3, [r7, #4] + 80054e6: 681b ldr r3, [r3, #0] + 80054e8: 685a ldr r2, [r3, #4] + 80054ea: 687b ldr r3, [r7, #4] + 80054ec: 681b ldr r3, [r3, #0] + 80054ee: f442 6200 orr.w r2, r2, #2048 ; 0x800 + 80054f2: 605a str r2, [r3, #4] /* Set the number of channels to be converted in discontinuous mode */ hadc->Instance->CR1 &= ~(ADC_CR1_DISCNUM); - 80054f0: 687b ldr r3, [r7, #4] - 80054f2: 681b ldr r3, [r3, #0] - 80054f4: 685a ldr r2, [r3, #4] - 80054f6: 687b ldr r3, [r7, #4] - 80054f8: 681b ldr r3, [r3, #0] - 80054fa: f422 4260 bic.w r2, r2, #57344 ; 0xe000 - 80054fe: 605a str r2, [r3, #4] + 80054f4: 687b ldr r3, [r7, #4] + 80054f6: 681b ldr r3, [r3, #0] + 80054f8: 685a ldr r2, [r3, #4] + 80054fa: 687b ldr r3, [r7, #4] + 80054fc: 681b ldr r3, [r3, #0] + 80054fe: f422 4260 bic.w r2, r2, #57344 ; 0xe000 + 8005502: 605a str r2, [r3, #4] hadc->Instance->CR1 |= ADC_CR1_DISCONTINUOUS(hadc->Init.NbrOfDiscConversion); - 8005500: 687b ldr r3, [r7, #4] - 8005502: 681b ldr r3, [r3, #0] - 8005504: 6859 ldr r1, [r3, #4] - 8005506: 687b ldr r3, [r7, #4] - 8005508: 6a5b ldr r3, [r3, #36] ; 0x24 - 800550a: 3b01 subs r3, #1 - 800550c: 035a lsls r2, r3, #13 - 800550e: 687b ldr r3, [r7, #4] - 8005510: 681b ldr r3, [r3, #0] - 8005512: 430a orrs r2, r1 - 8005514: 605a str r2, [r3, #4] - 8005516: e007 b.n 8005528 + 8005504: 687b ldr r3, [r7, #4] + 8005506: 681b ldr r3, [r3, #0] + 8005508: 6859 ldr r1, [r3, #4] + 800550a: 687b ldr r3, [r7, #4] + 800550c: 6a5b ldr r3, [r3, #36] ; 0x24 + 800550e: 3b01 subs r3, #1 + 8005510: 035a lsls r2, r3, #13 + 8005512: 687b ldr r3, [r7, #4] + 8005514: 681b ldr r3, [r3, #0] + 8005516: 430a orrs r2, r1 + 8005518: 605a str r2, [r3, #4] + 800551a: e007 b.n 800552c } else { /* Disable the selected ADC regular discontinuous mode */ hadc->Instance->CR1 &= ~(ADC_CR1_DISCEN); - 8005518: 687b ldr r3, [r7, #4] - 800551a: 681b ldr r3, [r3, #0] - 800551c: 685a ldr r2, [r3, #4] - 800551e: 687b ldr r3, [r7, #4] - 8005520: 681b ldr r3, [r3, #0] - 8005522: f422 6200 bic.w r2, r2, #2048 ; 0x800 - 8005526: 605a str r2, [r3, #4] + 800551c: 687b ldr r3, [r7, #4] + 800551e: 681b ldr r3, [r3, #0] + 8005520: 685a ldr r2, [r3, #4] + 8005522: 687b ldr r3, [r7, #4] + 8005524: 681b ldr r3, [r3, #0] + 8005526: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 800552a: 605a str r2, [r3, #4] } /* Set ADC number of conversion */ hadc->Instance->SQR1 &= ~(ADC_SQR1_L); - 8005528: 687b ldr r3, [r7, #4] - 800552a: 681b ldr r3, [r3, #0] - 800552c: 6ada ldr r2, [r3, #44] ; 0x2c - 800552e: 687b ldr r3, [r7, #4] - 8005530: 681b ldr r3, [r3, #0] - 8005532: f422 0270 bic.w r2, r2, #15728640 ; 0xf00000 - 8005536: 62da str r2, [r3, #44] ; 0x2c + 800552c: 687b ldr r3, [r7, #4] + 800552e: 681b ldr r3, [r3, #0] + 8005530: 6ada ldr r2, [r3, #44] ; 0x2c + 8005532: 687b ldr r3, [r7, #4] + 8005534: 681b ldr r3, [r3, #0] + 8005536: f422 0270 bic.w r2, r2, #15728640 ; 0xf00000 + 800553a: 62da str r2, [r3, #44] ; 0x2c hadc->Instance->SQR1 |= ADC_SQR1(hadc->Init.NbrOfConversion); - 8005538: 687b ldr r3, [r7, #4] - 800553a: 681b ldr r3, [r3, #0] - 800553c: 6ad9 ldr r1, [r3, #44] ; 0x2c - 800553e: 687b ldr r3, [r7, #4] - 8005540: 69db ldr r3, [r3, #28] - 8005542: 3b01 subs r3, #1 - 8005544: 051a lsls r2, r3, #20 - 8005546: 687b ldr r3, [r7, #4] - 8005548: 681b ldr r3, [r3, #0] - 800554a: 430a orrs r2, r1 - 800554c: 62da str r2, [r3, #44] ; 0x2c + 800553c: 687b ldr r3, [r7, #4] + 800553e: 681b ldr r3, [r3, #0] + 8005540: 6ad9 ldr r1, [r3, #44] ; 0x2c + 8005542: 687b ldr r3, [r7, #4] + 8005544: 69db ldr r3, [r3, #28] + 8005546: 3b01 subs r3, #1 + 8005548: 051a lsls r2, r3, #20 + 800554a: 687b ldr r3, [r7, #4] + 800554c: 681b ldr r3, [r3, #0] + 800554e: 430a orrs r2, r1 + 8005550: 62da str r2, [r3, #44] ; 0x2c /* Enable or disable ADC DMA continuous request */ hadc->Instance->CR2 &= ~(ADC_CR2_DDS); - 800554e: 687b ldr r3, [r7, #4] - 8005550: 681b ldr r3, [r3, #0] - 8005552: 689a ldr r2, [r3, #8] - 8005554: 687b ldr r3, [r7, #4] - 8005556: 681b ldr r3, [r3, #0] - 8005558: f422 7200 bic.w r2, r2, #512 ; 0x200 - 800555c: 609a str r2, [r3, #8] + 8005552: 687b ldr r3, [r7, #4] + 8005554: 681b ldr r3, [r3, #0] + 8005556: 689a ldr r2, [r3, #8] + 8005558: 687b ldr r3, [r7, #4] + 800555a: 681b ldr r3, [r3, #0] + 800555c: f422 7200 bic.w r2, r2, #512 ; 0x200 + 8005560: 609a str r2, [r3, #8] hadc->Instance->CR2 |= ADC_CR2_DMAContReq((uint32_t)hadc->Init.DMAContinuousRequests); - 800555e: 687b ldr r3, [r7, #4] - 8005560: 681b ldr r3, [r3, #0] - 8005562: 6899 ldr r1, [r3, #8] - 8005564: 687b ldr r3, [r7, #4] - 8005566: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 800556a: 025a lsls r2, r3, #9 - 800556c: 687b ldr r3, [r7, #4] - 800556e: 681b ldr r3, [r3, #0] - 8005570: 430a orrs r2, r1 - 8005572: 609a str r2, [r3, #8] + 8005562: 687b ldr r3, [r7, #4] + 8005564: 681b ldr r3, [r3, #0] + 8005566: 6899 ldr r1, [r3, #8] + 8005568: 687b ldr r3, [r7, #4] + 800556a: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 800556e: 025a lsls r2, r3, #9 + 8005570: 687b ldr r3, [r7, #4] + 8005572: 681b ldr r3, [r3, #0] + 8005574: 430a orrs r2, r1 + 8005576: 609a str r2, [r3, #8] /* Enable or disable ADC end of conversion selection */ hadc->Instance->CR2 &= ~(ADC_CR2_EOCS); - 8005574: 687b ldr r3, [r7, #4] - 8005576: 681b ldr r3, [r3, #0] - 8005578: 689a ldr r2, [r3, #8] - 800557a: 687b ldr r3, [r7, #4] - 800557c: 681b ldr r3, [r3, #0] - 800557e: f422 6280 bic.w r2, r2, #1024 ; 0x400 - 8005582: 609a str r2, [r3, #8] + 8005578: 687b ldr r3, [r7, #4] + 800557a: 681b ldr r3, [r3, #0] + 800557c: 689a ldr r2, [r3, #8] + 800557e: 687b ldr r3, [r7, #4] + 8005580: 681b ldr r3, [r3, #0] + 8005582: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 8005586: 609a str r2, [r3, #8] hadc->Instance->CR2 |= ADC_CR2_EOCSelection(hadc->Init.EOCSelection); - 8005584: 687b ldr r3, [r7, #4] - 8005586: 681b ldr r3, [r3, #0] - 8005588: 6899 ldr r1, [r3, #8] - 800558a: 687b ldr r3, [r7, #4] - 800558c: 695b ldr r3, [r3, #20] - 800558e: 029a lsls r2, r3, #10 - 8005590: 687b ldr r3, [r7, #4] - 8005592: 681b ldr r3, [r3, #0] - 8005594: 430a orrs r2, r1 - 8005596: 609a str r2, [r3, #8] -} - 8005598: bf00 nop - 800559a: 370c adds r7, #12 - 800559c: 46bd mov sp, r7 - 800559e: f85d 7b04 ldr.w r7, [sp], #4 - 80055a2: 4770 bx lr - 80055a4: 40012300 .word 0x40012300 - 80055a8: 0f000001 .word 0x0f000001 - -080055ac <__NVIC_SetPriorityGrouping>: + 8005588: 687b ldr r3, [r7, #4] + 800558a: 681b ldr r3, [r3, #0] + 800558c: 6899 ldr r1, [r3, #8] + 800558e: 687b ldr r3, [r7, #4] + 8005590: 695b ldr r3, [r3, #20] + 8005592: 029a lsls r2, r3, #10 + 8005594: 687b ldr r3, [r7, #4] + 8005596: 681b ldr r3, [r3, #0] + 8005598: 430a orrs r2, r1 + 800559a: 609a str r2, [r3, #8] +} + 800559c: bf00 nop + 800559e: 370c adds r7, #12 + 80055a0: 46bd mov sp, r7 + 80055a2: f85d 7b04 ldr.w r7, [sp], #4 + 80055a6: 4770 bx lr + 80055a8: 40012300 .word 0x40012300 + 80055ac: 0f000001 .word 0x0f000001 + +080055b0 <__NVIC_SetPriorityGrouping>: In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 80055ac: b480 push {r7} - 80055ae: b085 sub sp, #20 - 80055b0: af00 add r7, sp, #0 - 80055b2: 6078 str r0, [r7, #4] + 80055b0: b480 push {r7} + 80055b2: b085 sub sp, #20 + 80055b4: af00 add r7, sp, #0 + 80055b6: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80055b4: 687b ldr r3, [r7, #4] - 80055b6: f003 0307 and.w r3, r3, #7 - 80055ba: 60fb str r3, [r7, #12] + 80055b8: 687b ldr r3, [r7, #4] + 80055ba: f003 0307 and.w r3, r3, #7 + 80055be: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 80055bc: 4b0b ldr r3, [pc, #44] ; (80055ec <__NVIC_SetPriorityGrouping+0x40>) - 80055be: 68db ldr r3, [r3, #12] - 80055c0: 60bb str r3, [r7, #8] + 80055c0: 4b0b ldr r3, [pc, #44] ; (80055f0 <__NVIC_SetPriorityGrouping+0x40>) + 80055c2: 68db ldr r3, [r3, #12] + 80055c4: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 80055c2: 68ba ldr r2, [r7, #8] - 80055c4: f64f 03ff movw r3, #63743 ; 0xf8ff - 80055c8: 4013 ands r3, r2 - 80055ca: 60bb str r3, [r7, #8] + 80055c6: 68ba ldr r2, [r7, #8] + 80055c8: f64f 03ff movw r3, #63743 ; 0xf8ff + 80055cc: 4013 ands r3, r2 + 80055ce: 60bb str r3, [r7, #8] reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 80055cc: 68fb ldr r3, [r7, #12] - 80055ce: 021a lsls r2, r3, #8 + 80055d0: 68fb ldr r3, [r7, #12] + 80055d2: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 80055d0: 68bb ldr r3, [r7, #8] - 80055d2: 431a orrs r2, r3 + 80055d4: 68bb ldr r3, [r7, #8] + 80055d6: 431a orrs r2, r3 reg_value = (reg_value | - 80055d4: 4b06 ldr r3, [pc, #24] ; (80055f0 <__NVIC_SetPriorityGrouping+0x44>) - 80055d6: 4313 orrs r3, r2 - 80055d8: 60bb str r3, [r7, #8] + 80055d8: 4b06 ldr r3, [pc, #24] ; (80055f4 <__NVIC_SetPriorityGrouping+0x44>) + 80055da: 4313 orrs r3, r2 + 80055dc: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 80055da: 4a04 ldr r2, [pc, #16] ; (80055ec <__NVIC_SetPriorityGrouping+0x40>) - 80055dc: 68bb ldr r3, [r7, #8] - 80055de: 60d3 str r3, [r2, #12] -} - 80055e0: bf00 nop - 80055e2: 3714 adds r7, #20 - 80055e4: 46bd mov sp, r7 - 80055e6: f85d 7b04 ldr.w r7, [sp], #4 - 80055ea: 4770 bx lr - 80055ec: e000ed00 .word 0xe000ed00 - 80055f0: 05fa0000 .word 0x05fa0000 - -080055f4 <__NVIC_GetPriorityGrouping>: + 80055de: 4a04 ldr r2, [pc, #16] ; (80055f0 <__NVIC_SetPriorityGrouping+0x40>) + 80055e0: 68bb ldr r3, [r7, #8] + 80055e2: 60d3 str r3, [r2, #12] +} + 80055e4: bf00 nop + 80055e6: 3714 adds r7, #20 + 80055e8: 46bd mov sp, r7 + 80055ea: f85d 7b04 ldr.w r7, [sp], #4 + 80055ee: 4770 bx lr + 80055f0: e000ed00 .word 0xe000ed00 + 80055f4: 05fa0000 .word 0x05fa0000 + +080055f8 <__NVIC_GetPriorityGrouping>: \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { - 80055f4: b480 push {r7} - 80055f6: af00 add r7, sp, #0 + 80055f8: b480 push {r7} + 80055fa: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 80055f8: 4b04 ldr r3, [pc, #16] ; (800560c <__NVIC_GetPriorityGrouping+0x18>) - 80055fa: 68db ldr r3, [r3, #12] - 80055fc: 0a1b lsrs r3, r3, #8 - 80055fe: f003 0307 and.w r3, r3, #7 -} - 8005602: 4618 mov r0, r3 - 8005604: 46bd mov sp, r7 - 8005606: f85d 7b04 ldr.w r7, [sp], #4 - 800560a: 4770 bx lr - 800560c: e000ed00 .word 0xe000ed00 - -08005610 <__NVIC_EnableIRQ>: + 80055fc: 4b04 ldr r3, [pc, #16] ; (8005610 <__NVIC_GetPriorityGrouping+0x18>) + 80055fe: 68db ldr r3, [r3, #12] + 8005600: 0a1b lsrs r3, r3, #8 + 8005602: f003 0307 and.w r3, r3, #7 +} + 8005606: 4618 mov r0, r3 + 8005608: 46bd mov sp, r7 + 800560a: f85d 7b04 ldr.w r7, [sp], #4 + 800560e: 4770 bx lr + 8005610: e000ed00 .word 0xe000ed00 + +08005614 <__NVIC_EnableIRQ>: \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { - 8005610: b480 push {r7} - 8005612: b083 sub sp, #12 - 8005614: af00 add r7, sp, #0 - 8005616: 4603 mov r3, r0 - 8005618: 71fb strb r3, [r7, #7] + 8005614: b480 push {r7} + 8005616: b083 sub sp, #12 + 8005618: af00 add r7, sp, #0 + 800561a: 4603 mov r3, r0 + 800561c: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 800561a: f997 3007 ldrsb.w r3, [r7, #7] - 800561e: 2b00 cmp r3, #0 - 8005620: db0b blt.n 800563a <__NVIC_EnableIRQ+0x2a> + 800561e: f997 3007 ldrsb.w r3, [r7, #7] + 8005622: 2b00 cmp r3, #0 + 8005624: db0b blt.n 800563e <__NVIC_EnableIRQ+0x2a> { NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8005622: 79fb ldrb r3, [r7, #7] - 8005624: f003 021f and.w r2, r3, #31 - 8005628: 4907 ldr r1, [pc, #28] ; (8005648 <__NVIC_EnableIRQ+0x38>) - 800562a: f997 3007 ldrsb.w r3, [r7, #7] - 800562e: 095b lsrs r3, r3, #5 - 8005630: 2001 movs r0, #1 - 8005632: fa00 f202 lsl.w r2, r0, r2 - 8005636: f841 2023 str.w r2, [r1, r3, lsl #2] - } -} - 800563a: bf00 nop - 800563c: 370c adds r7, #12 - 800563e: 46bd mov sp, r7 - 8005640: f85d 7b04 ldr.w r7, [sp], #4 - 8005644: 4770 bx lr - 8005646: bf00 nop - 8005648: e000e100 .word 0xe000e100 - -0800564c <__NVIC_SetPriority>: + 8005626: 79fb ldrb r3, [r7, #7] + 8005628: f003 021f and.w r2, r3, #31 + 800562c: 4907 ldr r1, [pc, #28] ; (800564c <__NVIC_EnableIRQ+0x38>) + 800562e: f997 3007 ldrsb.w r3, [r7, #7] + 8005632: 095b lsrs r3, r3, #5 + 8005634: 2001 movs r0, #1 + 8005636: fa00 f202 lsl.w r2, r0, r2 + 800563a: f841 2023 str.w r2, [r1, r3, lsl #2] + } +} + 800563e: bf00 nop + 8005640: 370c adds r7, #12 + 8005642: 46bd mov sp, r7 + 8005644: f85d 7b04 ldr.w r7, [sp], #4 + 8005648: 4770 bx lr + 800564a: bf00 nop + 800564c: e000e100 .word 0xe000e100 + +08005650 <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { - 800564c: b480 push {r7} - 800564e: b083 sub sp, #12 - 8005650: af00 add r7, sp, #0 - 8005652: 4603 mov r3, r0 - 8005654: 6039 str r1, [r7, #0] - 8005656: 71fb strb r3, [r7, #7] + 8005650: b480 push {r7} + 8005652: b083 sub sp, #12 + 8005654: af00 add r7, sp, #0 + 8005656: 4603 mov r3, r0 + 8005658: 6039 str r1, [r7, #0] + 800565a: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8005658: f997 3007 ldrsb.w r3, [r7, #7] - 800565c: 2b00 cmp r3, #0 - 800565e: db0a blt.n 8005676 <__NVIC_SetPriority+0x2a> + 800565c: f997 3007 ldrsb.w r3, [r7, #7] + 8005660: 2b00 cmp r3, #0 + 8005662: db0a blt.n 800567a <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8005660: 683b ldr r3, [r7, #0] - 8005662: b2da uxtb r2, r3 - 8005664: 490c ldr r1, [pc, #48] ; (8005698 <__NVIC_SetPriority+0x4c>) - 8005666: f997 3007 ldrsb.w r3, [r7, #7] - 800566a: 0112 lsls r2, r2, #4 - 800566c: b2d2 uxtb r2, r2 - 800566e: 440b add r3, r1 - 8005670: f883 2300 strb.w r2, [r3, #768] ; 0x300 + 8005664: 683b ldr r3, [r7, #0] + 8005666: b2da uxtb r2, r3 + 8005668: 490c ldr r1, [pc, #48] ; (800569c <__NVIC_SetPriority+0x4c>) + 800566a: f997 3007 ldrsb.w r3, [r7, #7] + 800566e: 0112 lsls r2, r2, #4 + 8005670: b2d2 uxtb r2, r2 + 8005672: 440b add r3, r1 + 8005674: f883 2300 strb.w r2, [r3, #768] ; 0x300 } else { SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } - 8005674: e00a b.n 800568c <__NVIC_SetPriority+0x40> + 8005678: e00a b.n 8005690 <__NVIC_SetPriority+0x40> SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8005676: 683b ldr r3, [r7, #0] - 8005678: b2da uxtb r2, r3 - 800567a: 4908 ldr r1, [pc, #32] ; (800569c <__NVIC_SetPriority+0x50>) - 800567c: 79fb ldrb r3, [r7, #7] - 800567e: f003 030f and.w r3, r3, #15 - 8005682: 3b04 subs r3, #4 - 8005684: 0112 lsls r2, r2, #4 - 8005686: b2d2 uxtb r2, r2 - 8005688: 440b add r3, r1 - 800568a: 761a strb r2, [r3, #24] -} - 800568c: bf00 nop - 800568e: 370c adds r7, #12 - 8005690: 46bd mov sp, r7 - 8005692: f85d 7b04 ldr.w r7, [sp], #4 - 8005696: 4770 bx lr - 8005698: e000e100 .word 0xe000e100 - 800569c: e000ed00 .word 0xe000ed00 - -080056a0 : + 800567a: 683b ldr r3, [r7, #0] + 800567c: b2da uxtb r2, r3 + 800567e: 4908 ldr r1, [pc, #32] ; (80056a0 <__NVIC_SetPriority+0x50>) + 8005680: 79fb ldrb r3, [r7, #7] + 8005682: f003 030f and.w r3, r3, #15 + 8005686: 3b04 subs r3, #4 + 8005688: 0112 lsls r2, r2, #4 + 800568a: b2d2 uxtb r2, r2 + 800568c: 440b add r3, r1 + 800568e: 761a strb r2, [r3, #24] +} + 8005690: bf00 nop + 8005692: 370c adds r7, #12 + 8005694: 46bd mov sp, r7 + 8005696: f85d 7b04 ldr.w r7, [sp], #4 + 800569a: 4770 bx lr + 800569c: e000e100 .word 0xe000e100 + 80056a0: e000ed00 .word 0xe000ed00 + +080056a4 : \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { - 80056a0: b480 push {r7} - 80056a2: b089 sub sp, #36 ; 0x24 - 80056a4: af00 add r7, sp, #0 - 80056a6: 60f8 str r0, [r7, #12] - 80056a8: 60b9 str r1, [r7, #8] - 80056aa: 607a str r2, [r7, #4] + 80056a4: b480 push {r7} + 80056a6: b089 sub sp, #36 ; 0x24 + 80056a8: af00 add r7, sp, #0 + 80056aa: 60f8 str r0, [r7, #12] + 80056ac: 60b9 str r1, [r7, #8] + 80056ae: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80056ac: 68fb ldr r3, [r7, #12] - 80056ae: f003 0307 and.w r3, r3, #7 - 80056b2: 61fb str r3, [r7, #28] + 80056b0: 68fb ldr r3, [r7, #12] + 80056b2: f003 0307 and.w r3, r3, #7 + 80056b6: 61fb str r3, [r7, #28] uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 80056b4: 69fb ldr r3, [r7, #28] - 80056b6: f1c3 0307 rsb r3, r3, #7 - 80056ba: 2b04 cmp r3, #4 - 80056bc: bf28 it cs - 80056be: 2304 movcs r3, #4 - 80056c0: 61bb str r3, [r7, #24] + 80056b8: 69fb ldr r3, [r7, #28] + 80056ba: f1c3 0307 rsb r3, r3, #7 + 80056be: 2b04 cmp r3, #4 + 80056c0: bf28 it cs + 80056c2: 2304 movcs r3, #4 + 80056c4: 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)); - 80056c2: 69fb ldr r3, [r7, #28] - 80056c4: 3304 adds r3, #4 - 80056c6: 2b06 cmp r3, #6 - 80056c8: d902 bls.n 80056d0 - 80056ca: 69fb ldr r3, [r7, #28] - 80056cc: 3b03 subs r3, #3 - 80056ce: e000 b.n 80056d2 - 80056d0: 2300 movs r3, #0 - 80056d2: 617b str r3, [r7, #20] + 80056c6: 69fb ldr r3, [r7, #28] + 80056c8: 3304 adds r3, #4 + 80056ca: 2b06 cmp r3, #6 + 80056cc: d902 bls.n 80056d4 + 80056ce: 69fb ldr r3, [r7, #28] + 80056d0: 3b03 subs r3, #3 + 80056d2: e000 b.n 80056d6 + 80056d4: 2300 movs r3, #0 + 80056d6: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 80056d4: f04f 32ff mov.w r2, #4294967295 - 80056d8: 69bb ldr r3, [r7, #24] - 80056da: fa02 f303 lsl.w r3, r2, r3 - 80056de: 43da mvns r2, r3 - 80056e0: 68bb ldr r3, [r7, #8] - 80056e2: 401a ands r2, r3 - 80056e4: 697b ldr r3, [r7, #20] - 80056e6: 409a lsls r2, r3 + 80056d8: f04f 32ff mov.w r2, #4294967295 + 80056dc: 69bb ldr r3, [r7, #24] + 80056de: fa02 f303 lsl.w r3, r2, r3 + 80056e2: 43da mvns r2, r3 + 80056e4: 68bb ldr r3, [r7, #8] + 80056e6: 401a ands r2, r3 + 80056e8: 697b ldr r3, [r7, #20] + 80056ea: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 80056e8: f04f 31ff mov.w r1, #4294967295 - 80056ec: 697b ldr r3, [r7, #20] - 80056ee: fa01 f303 lsl.w r3, r1, r3 - 80056f2: 43d9 mvns r1, r3 - 80056f4: 687b ldr r3, [r7, #4] - 80056f6: 400b ands r3, r1 + 80056ec: f04f 31ff mov.w r1, #4294967295 + 80056f0: 697b ldr r3, [r7, #20] + 80056f2: fa01 f303 lsl.w r3, r1, r3 + 80056f6: 43d9 mvns r1, r3 + 80056f8: 687b ldr r3, [r7, #4] + 80056fa: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 80056f8: 4313 orrs r3, r2 + 80056fc: 4313 orrs r3, r2 ); } - 80056fa: 4618 mov r0, r3 - 80056fc: 3724 adds r7, #36 ; 0x24 - 80056fe: 46bd mov sp, r7 - 8005700: f85d 7b04 ldr.w r7, [sp], #4 - 8005704: 4770 bx lr + 80056fe: 4618 mov r0, r3 + 8005700: 3724 adds r7, #36 ; 0x24 + 8005702: 46bd mov sp, r7 + 8005704: f85d 7b04 ldr.w r7, [sp], #4 + 8005708: 4770 bx lr -08005706 : +0800570a : * @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) { - 8005706: b580 push {r7, lr} - 8005708: b082 sub sp, #8 - 800570a: af00 add r7, sp, #0 - 800570c: 6078 str r0, [r7, #4] + 800570a: b580 push {r7, lr} + 800570c: b082 sub sp, #8 + 800570e: af00 add r7, sp, #0 + 8005710: 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); - 800570e: 6878 ldr r0, [r7, #4] - 8005710: f7ff ff4c bl 80055ac <__NVIC_SetPriorityGrouping> + 8005712: 6878 ldr r0, [r7, #4] + 8005714: f7ff ff4c bl 80055b0 <__NVIC_SetPriorityGrouping> } - 8005714: bf00 nop - 8005716: 3708 adds r7, #8 - 8005718: 46bd mov sp, r7 - 800571a: bd80 pop {r7, pc} + 8005718: bf00 nop + 800571a: 3708 adds r7, #8 + 800571c: 46bd mov sp, r7 + 800571e: bd80 pop {r7, pc} -0800571c : +08005720 : * 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) { - 800571c: b580 push {r7, lr} - 800571e: b086 sub sp, #24 - 8005720: af00 add r7, sp, #0 - 8005722: 4603 mov r3, r0 - 8005724: 60b9 str r1, [r7, #8] - 8005726: 607a str r2, [r7, #4] - 8005728: 73fb strb r3, [r7, #15] + 8005720: b580 push {r7, lr} + 8005722: b086 sub sp, #24 + 8005724: af00 add r7, sp, #0 + 8005726: 4603 mov r3, r0 + 8005728: 60b9 str r1, [r7, #8] + 800572a: 607a str r2, [r7, #4] + 800572c: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00; - 800572a: 2300 movs r3, #0 - 800572c: 617b str r3, [r7, #20] + 800572e: 2300 movs r3, #0 + 8005730: 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(); - 800572e: f7ff ff61 bl 80055f4 <__NVIC_GetPriorityGrouping> - 8005732: 6178 str r0, [r7, #20] + 8005732: f7ff ff61 bl 80055f8 <__NVIC_GetPriorityGrouping> + 8005736: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8005734: 687a ldr r2, [r7, #4] - 8005736: 68b9 ldr r1, [r7, #8] - 8005738: 6978 ldr r0, [r7, #20] - 800573a: f7ff ffb1 bl 80056a0 - 800573e: 4602 mov r2, r0 - 8005740: f997 300f ldrsb.w r3, [r7, #15] - 8005744: 4611 mov r1, r2 - 8005746: 4618 mov r0, r3 - 8005748: f7ff ff80 bl 800564c <__NVIC_SetPriority> -} - 800574c: bf00 nop - 800574e: 3718 adds r7, #24 - 8005750: 46bd mov sp, r7 - 8005752: bd80 pop {r7, pc} - -08005754 : + 8005738: 687a ldr r2, [r7, #4] + 800573a: 68b9 ldr r1, [r7, #8] + 800573c: 6978 ldr r0, [r7, #20] + 800573e: f7ff ffb1 bl 80056a4 + 8005742: 4602 mov r2, r0 + 8005744: f997 300f ldrsb.w r3, [r7, #15] + 8005748: 4611 mov r1, r2 + 800574a: 4618 mov r0, r3 + 800574c: f7ff ff80 bl 8005650 <__NVIC_SetPriority> +} + 8005750: bf00 nop + 8005752: 3718 adds r7, #24 + 8005754: 46bd mov sp, r7 + 8005756: bd80 pop {r7, pc} + +08005758 : * This parameter can be an enumerator of IRQn_Type enumeration * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f7xxxx.h)) * @retval None */ void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) { - 8005754: b580 push {r7, lr} - 8005756: b082 sub sp, #8 - 8005758: af00 add r7, sp, #0 - 800575a: 4603 mov r3, r0 - 800575c: 71fb strb r3, [r7, #7] + 8005758: b580 push {r7, lr} + 800575a: b082 sub sp, #8 + 800575c: af00 add r7, sp, #0 + 800575e: 4603 mov r3, r0 + 8005760: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); - 800575e: f997 3007 ldrsb.w r3, [r7, #7] - 8005762: 4618 mov r0, r3 - 8005764: f7ff ff54 bl 8005610 <__NVIC_EnableIRQ> + 8005762: f997 3007 ldrsb.w r3, [r7, #7] + 8005766: 4618 mov r0, r3 + 8005768: f7ff ff54 bl 8005614 <__NVIC_EnableIRQ> } - 8005768: bf00 nop - 800576a: 3708 adds r7, #8 - 800576c: 46bd mov sp, r7 - 800576e: bd80 pop {r7, pc} + 800576c: bf00 nop + 800576e: 3708 adds r7, #8 + 8005770: 46bd mov sp, r7 + 8005772: bd80 pop {r7, pc} -08005770 : +08005774 : * parameters in the CRC_InitTypeDef and create the associated handle. * @param hcrc CRC handle * @retval HAL status */ HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc) { - 8005770: b580 push {r7, lr} - 8005772: b082 sub sp, #8 - 8005774: af00 add r7, sp, #0 - 8005776: 6078 str r0, [r7, #4] + 8005774: b580 push {r7, lr} + 8005776: b082 sub sp, #8 + 8005778: af00 add r7, sp, #0 + 800577a: 6078 str r0, [r7, #4] /* Check the CRC handle allocation */ if (hcrc == NULL) - 8005778: 687b ldr r3, [r7, #4] - 800577a: 2b00 cmp r3, #0 - 800577c: d101 bne.n 8005782 + 800577c: 687b ldr r3, [r7, #4] + 800577e: 2b00 cmp r3, #0 + 8005780: d101 bne.n 8005786 { return HAL_ERROR; - 800577e: 2301 movs r3, #1 - 8005780: e054 b.n 800582c + 8005782: 2301 movs r3, #1 + 8005784: e054 b.n 8005830 } /* Check the parameters */ assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance)); if (hcrc->State == HAL_CRC_STATE_RESET) - 8005782: 687b ldr r3, [r7, #4] - 8005784: 7f5b ldrb r3, [r3, #29] - 8005786: b2db uxtb r3, r3 - 8005788: 2b00 cmp r3, #0 - 800578a: d105 bne.n 8005798 + 8005786: 687b ldr r3, [r7, #4] + 8005788: 7f5b ldrb r3, [r3, #29] + 800578a: b2db uxtb r3, r3 + 800578c: 2b00 cmp r3, #0 + 800578e: d105 bne.n 800579c { /* Allocate lock resource and initialize it */ hcrc->Lock = HAL_UNLOCKED; - 800578c: 687b ldr r3, [r7, #4] - 800578e: 2200 movs r2, #0 - 8005790: 771a strb r2, [r3, #28] + 8005790: 687b ldr r3, [r7, #4] + 8005792: 2200 movs r2, #0 + 8005794: 771a strb r2, [r3, #28] /* Init the low level hardware */ HAL_CRC_MspInit(hcrc); - 8005792: 6878 ldr r0, [r7, #4] - 8005794: f7fe fd22 bl 80041dc + 8005796: 6878 ldr r0, [r7, #4] + 8005798: f7fe fd22 bl 80041e0 } hcrc->State = HAL_CRC_STATE_BUSY; - 8005798: 687b ldr r3, [r7, #4] - 800579a: 2202 movs r2, #2 - 800579c: 775a strb r2, [r3, #29] + 800579c: 687b ldr r3, [r7, #4] + 800579e: 2202 movs r2, #2 + 80057a0: 775a strb r2, [r3, #29] /* check whether or not non-default generating polynomial has been * picked up by user */ assert_param(IS_DEFAULT_POLYNOMIAL(hcrc->Init.DefaultPolynomialUse)); if (hcrc->Init.DefaultPolynomialUse == DEFAULT_POLYNOMIAL_ENABLE) - 800579e: 687b ldr r3, [r7, #4] - 80057a0: 791b ldrb r3, [r3, #4] - 80057a2: 2b00 cmp r3, #0 - 80057a4: d10c bne.n 80057c0 + 80057a2: 687b ldr r3, [r7, #4] + 80057a4: 791b ldrb r3, [r3, #4] + 80057a6: 2b00 cmp r3, #0 + 80057a8: d10c bne.n 80057c4 { /* initialize peripheral with default generating polynomial */ WRITE_REG(hcrc->Instance->POL, DEFAULT_CRC32_POLY); - 80057a6: 687b ldr r3, [r7, #4] - 80057a8: 681b ldr r3, [r3, #0] - 80057aa: 4a22 ldr r2, [pc, #136] ; (8005834 ) - 80057ac: 615a str r2, [r3, #20] + 80057aa: 687b ldr r3, [r7, #4] + 80057ac: 681b ldr r3, [r3, #0] + 80057ae: 4a22 ldr r2, [pc, #136] ; (8005838 ) + 80057b0: 615a str r2, [r3, #20] MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, CRC_POLYLENGTH_32B); - 80057ae: 687b ldr r3, [r7, #4] - 80057b0: 681b ldr r3, [r3, #0] - 80057b2: 689a ldr r2, [r3, #8] - 80057b4: 687b ldr r3, [r7, #4] - 80057b6: 681b ldr r3, [r3, #0] - 80057b8: f022 0218 bic.w r2, r2, #24 - 80057bc: 609a str r2, [r3, #8] - 80057be: e00c b.n 80057da + 80057b2: 687b ldr r3, [r7, #4] + 80057b4: 681b ldr r3, [r3, #0] + 80057b6: 689a ldr r2, [r3, #8] + 80057b8: 687b ldr r3, [r7, #4] + 80057ba: 681b ldr r3, [r3, #0] + 80057bc: f022 0218 bic.w r2, r2, #24 + 80057c0: 609a str r2, [r3, #8] + 80057c2: e00c b.n 80057de } else { /* initialize CRC peripheral with generating polynomial defined by user */ if (HAL_CRCEx_Polynomial_Set(hcrc, hcrc->Init.GeneratingPolynomial, hcrc->Init.CRCLength) != HAL_OK) - 80057c0: 687b ldr r3, [r7, #4] - 80057c2: 6899 ldr r1, [r3, #8] 80057c4: 687b ldr r3, [r7, #4] - 80057c6: 68db ldr r3, [r3, #12] - 80057c8: 461a mov r2, r3 - 80057ca: 6878 ldr r0, [r7, #4] - 80057cc: f000 f834 bl 8005838 - 80057d0: 4603 mov r3, r0 - 80057d2: 2b00 cmp r3, #0 - 80057d4: d001 beq.n 80057da + 80057c6: 6899 ldr r1, [r3, #8] + 80057c8: 687b ldr r3, [r7, #4] + 80057ca: 68db ldr r3, [r3, #12] + 80057cc: 461a mov r2, r3 + 80057ce: 6878 ldr r0, [r7, #4] + 80057d0: f000 f834 bl 800583c + 80057d4: 4603 mov r3, r0 + 80057d6: 2b00 cmp r3, #0 + 80057d8: d001 beq.n 80057de { return HAL_ERROR; - 80057d6: 2301 movs r3, #1 - 80057d8: e028 b.n 800582c + 80057da: 2301 movs r3, #1 + 80057dc: e028 b.n 8005830 } /* check whether or not non-default CRC initial value has been * picked up by user */ assert_param(IS_DEFAULT_INIT_VALUE(hcrc->Init.DefaultInitValueUse)); if (hcrc->Init.DefaultInitValueUse == DEFAULT_INIT_VALUE_ENABLE) - 80057da: 687b ldr r3, [r7, #4] - 80057dc: 795b ldrb r3, [r3, #5] - 80057de: 2b00 cmp r3, #0 - 80057e0: d105 bne.n 80057ee + 80057de: 687b ldr r3, [r7, #4] + 80057e0: 795b ldrb r3, [r3, #5] + 80057e2: 2b00 cmp r3, #0 + 80057e4: d105 bne.n 80057f2 { WRITE_REG(hcrc->Instance->INIT, DEFAULT_CRC_INITVALUE); - 80057e2: 687b ldr r3, [r7, #4] - 80057e4: 681b ldr r3, [r3, #0] - 80057e6: f04f 32ff mov.w r2, #4294967295 - 80057ea: 611a str r2, [r3, #16] - 80057ec: e004 b.n 80057f8 + 80057e6: 687b ldr r3, [r7, #4] + 80057e8: 681b ldr r3, [r3, #0] + 80057ea: f04f 32ff mov.w r2, #4294967295 + 80057ee: 611a str r2, [r3, #16] + 80057f0: e004 b.n 80057fc } else { WRITE_REG(hcrc->Instance->INIT, hcrc->Init.InitValue); - 80057ee: 687b ldr r3, [r7, #4] - 80057f0: 681b ldr r3, [r3, #0] - 80057f2: 687a ldr r2, [r7, #4] - 80057f4: 6912 ldr r2, [r2, #16] - 80057f6: 611a str r2, [r3, #16] + 80057f2: 687b ldr r3, [r7, #4] + 80057f4: 681b ldr r3, [r3, #0] + 80057f6: 687a ldr r2, [r7, #4] + 80057f8: 6912 ldr r2, [r2, #16] + 80057fa: 611a str r2, [r3, #16] } /* set input data inversion mode */ assert_param(IS_CRC_INPUTDATA_INVERSION_MODE(hcrc->Init.InputDataInversionMode)); MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_IN, hcrc->Init.InputDataInversionMode); - 80057f8: 687b ldr r3, [r7, #4] - 80057fa: 681b ldr r3, [r3, #0] - 80057fc: 689b ldr r3, [r3, #8] - 80057fe: f023 0160 bic.w r1, r3, #96 ; 0x60 - 8005802: 687b ldr r3, [r7, #4] - 8005804: 695a ldr r2, [r3, #20] + 80057fc: 687b ldr r3, [r7, #4] + 80057fe: 681b ldr r3, [r3, #0] + 8005800: 689b ldr r3, [r3, #8] + 8005802: f023 0160 bic.w r1, r3, #96 ; 0x60 8005806: 687b ldr r3, [r7, #4] - 8005808: 681b ldr r3, [r3, #0] - 800580a: 430a orrs r2, r1 - 800580c: 609a str r2, [r3, #8] + 8005808: 695a ldr r2, [r3, #20] + 800580a: 687b ldr r3, [r7, #4] + 800580c: 681b ldr r3, [r3, #0] + 800580e: 430a orrs r2, r1 + 8005810: 609a str r2, [r3, #8] /* set output data inversion mode */ assert_param(IS_CRC_OUTPUTDATA_INVERSION_MODE(hcrc->Init.OutputDataInversionMode)); MODIFY_REG(hcrc->Instance->CR, CRC_CR_REV_OUT, hcrc->Init.OutputDataInversionMode); - 800580e: 687b ldr r3, [r7, #4] - 8005810: 681b ldr r3, [r3, #0] - 8005812: 689b ldr r3, [r3, #8] - 8005814: f023 0180 bic.w r1, r3, #128 ; 0x80 - 8005818: 687b ldr r3, [r7, #4] - 800581a: 699a ldr r2, [r3, #24] + 8005812: 687b ldr r3, [r7, #4] + 8005814: 681b ldr r3, [r3, #0] + 8005816: 689b ldr r3, [r3, #8] + 8005818: f023 0180 bic.w r1, r3, #128 ; 0x80 800581c: 687b ldr r3, [r7, #4] - 800581e: 681b ldr r3, [r3, #0] - 8005820: 430a orrs r2, r1 - 8005822: 609a str r2, [r3, #8] + 800581e: 699a ldr r2, [r3, #24] + 8005820: 687b ldr r3, [r7, #4] + 8005822: 681b ldr r3, [r3, #0] + 8005824: 430a orrs r2, r1 + 8005826: 609a str r2, [r3, #8] /* makes sure the input data format (bytes, halfwords or words stream) * is properly specified by user */ assert_param(IS_CRC_INPUTDATA_FORMAT(hcrc->InputDataFormat)); /* Change CRC peripheral state */ hcrc->State = HAL_CRC_STATE_READY; - 8005824: 687b ldr r3, [r7, #4] - 8005826: 2201 movs r2, #1 - 8005828: 775a strb r2, [r3, #29] + 8005828: 687b ldr r3, [r7, #4] + 800582a: 2201 movs r2, #1 + 800582c: 775a strb r2, [r3, #29] /* Return function status */ return HAL_OK; - 800582a: 2300 movs r3, #0 + 800582e: 2300 movs r3, #0 } - 800582c: 4618 mov r0, r3 - 800582e: 3708 adds r7, #8 - 8005830: 46bd mov sp, r7 - 8005832: bd80 pop {r7, pc} - 8005834: 04c11db7 .word 0x04c11db7 + 8005830: 4618 mov r0, r3 + 8005832: 3708 adds r7, #8 + 8005834: 46bd mov sp, r7 + 8005836: bd80 pop {r7, pc} + 8005838: 04c11db7 .word 0x04c11db7 -08005838 : +0800583c : * @arg @ref CRC_POLYLENGTH_16B 16-bit long CRC (generating polynomial of degree 16) * @arg @ref CRC_POLYLENGTH_32B 32-bit long CRC (generating polynomial of degree 32) * @retval HAL status */ HAL_StatusTypeDef HAL_CRCEx_Polynomial_Set(CRC_HandleTypeDef *hcrc, uint32_t Pol, uint32_t PolyLength) { - 8005838: b480 push {r7} - 800583a: b087 sub sp, #28 - 800583c: af00 add r7, sp, #0 - 800583e: 60f8 str r0, [r7, #12] - 8005840: 60b9 str r1, [r7, #8] - 8005842: 607a str r2, [r7, #4] + 800583c: b480 push {r7} + 800583e: b087 sub sp, #28 + 8005840: af00 add r7, sp, #0 + 8005842: 60f8 str r0, [r7, #12] + 8005844: 60b9 str r1, [r7, #8] + 8005846: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8005844: 2300 movs r3, #0 - 8005846: 75fb strb r3, [r7, #23] + 8005848: 2300 movs r3, #0 + 800584a: 75fb strb r3, [r7, #23] uint32_t msb = 31U; /* polynomial degree is 32 at most, so msb is initialized to max value */ - 8005848: 231f movs r3, #31 - 800584a: 613b str r3, [r7, #16] + 800584c: 231f movs r3, #31 + 800584e: 613b str r3, [r7, #16] * definition. HAL_ERROR is reported if Pol degree is * larger than that indicated by PolyLength. * Look for MSB position: msb will contain the degree of * the second to the largest polynomial member. E.g., for * X^7 + X^6 + X^5 + X^2 + 1, msb = 6. */ while ((msb-- > 0U) && ((Pol & ((uint32_t)(0x1U) << (msb & 0x1FU))) == 0U)) - 800584c: bf00 nop - 800584e: 693b ldr r3, [r7, #16] - 8005850: 1e5a subs r2, r3, #1 - 8005852: 613a str r2, [r7, #16] - 8005854: 2b00 cmp r3, #0 - 8005856: d009 beq.n 800586c - 8005858: 693b ldr r3, [r7, #16] - 800585a: f003 031f and.w r3, r3, #31 - 800585e: 68ba ldr r2, [r7, #8] - 8005860: fa22 f303 lsr.w r3, r2, r3 - 8005864: f003 0301 and.w r3, r3, #1 - 8005868: 2b00 cmp r3, #0 - 800586a: d0f0 beq.n 800584e + 8005850: bf00 nop + 8005852: 693b ldr r3, [r7, #16] + 8005854: 1e5a subs r2, r3, #1 + 8005856: 613a str r2, [r7, #16] + 8005858: 2b00 cmp r3, #0 + 800585a: d009 beq.n 8005870 + 800585c: 693b ldr r3, [r7, #16] + 800585e: f003 031f and.w r3, r3, #31 + 8005862: 68ba ldr r2, [r7, #8] + 8005864: fa22 f303 lsr.w r3, r2, r3 + 8005868: f003 0301 and.w r3, r3, #1 + 800586c: 2b00 cmp r3, #0 + 800586e: d0f0 beq.n 8005852 { } switch (PolyLength) - 800586c: 687b ldr r3, [r7, #4] - 800586e: 2b18 cmp r3, #24 - 8005870: d846 bhi.n 8005900 - 8005872: a201 add r2, pc, #4 ; (adr r2, 8005878 ) - 8005874: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005878: 08005907 .word 0x08005907 - 800587c: 08005901 .word 0x08005901 - 8005880: 08005901 .word 0x08005901 - 8005884: 08005901 .word 0x08005901 - 8005888: 08005901 .word 0x08005901 - 800588c: 08005901 .word 0x08005901 - 8005890: 08005901 .word 0x08005901 - 8005894: 08005901 .word 0x08005901 - 8005898: 080058f5 .word 0x080058f5 - 800589c: 08005901 .word 0x08005901 - 80058a0: 08005901 .word 0x08005901 - 80058a4: 08005901 .word 0x08005901 - 80058a8: 08005901 .word 0x08005901 - 80058ac: 08005901 .word 0x08005901 - 80058b0: 08005901 .word 0x08005901 - 80058b4: 08005901 .word 0x08005901 - 80058b8: 080058e9 .word 0x080058e9 - 80058bc: 08005901 .word 0x08005901 - 80058c0: 08005901 .word 0x08005901 - 80058c4: 08005901 .word 0x08005901 - 80058c8: 08005901 .word 0x08005901 - 80058cc: 08005901 .word 0x08005901 - 80058d0: 08005901 .word 0x08005901 - 80058d4: 08005901 .word 0x08005901 - 80058d8: 080058dd .word 0x080058dd + 8005870: 687b ldr r3, [r7, #4] + 8005872: 2b18 cmp r3, #24 + 8005874: d846 bhi.n 8005904 + 8005876: a201 add r2, pc, #4 ; (adr r2, 800587c ) + 8005878: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800587c: 0800590b .word 0x0800590b + 8005880: 08005905 .word 0x08005905 + 8005884: 08005905 .word 0x08005905 + 8005888: 08005905 .word 0x08005905 + 800588c: 08005905 .word 0x08005905 + 8005890: 08005905 .word 0x08005905 + 8005894: 08005905 .word 0x08005905 + 8005898: 08005905 .word 0x08005905 + 800589c: 080058f9 .word 0x080058f9 + 80058a0: 08005905 .word 0x08005905 + 80058a4: 08005905 .word 0x08005905 + 80058a8: 08005905 .word 0x08005905 + 80058ac: 08005905 .word 0x08005905 + 80058b0: 08005905 .word 0x08005905 + 80058b4: 08005905 .word 0x08005905 + 80058b8: 08005905 .word 0x08005905 + 80058bc: 080058ed .word 0x080058ed + 80058c0: 08005905 .word 0x08005905 + 80058c4: 08005905 .word 0x08005905 + 80058c8: 08005905 .word 0x08005905 + 80058cc: 08005905 .word 0x08005905 + 80058d0: 08005905 .word 0x08005905 + 80058d4: 08005905 .word 0x08005905 + 80058d8: 08005905 .word 0x08005905 + 80058dc: 080058e1 .word 0x080058e1 { case CRC_POLYLENGTH_7B: if (msb >= HAL_CRC_LENGTH_7B) - 80058dc: 693b ldr r3, [r7, #16] - 80058de: 2b06 cmp r3, #6 - 80058e0: d913 bls.n 800590a + 80058e0: 693b ldr r3, [r7, #16] + 80058e2: 2b06 cmp r3, #6 + 80058e4: d913 bls.n 800590e { status = HAL_ERROR; - 80058e2: 2301 movs r3, #1 - 80058e4: 75fb strb r3, [r7, #23] + 80058e6: 2301 movs r3, #1 + 80058e8: 75fb strb r3, [r7, #23] } break; - 80058e6: e010 b.n 800590a + 80058ea: e010 b.n 800590e case CRC_POLYLENGTH_8B: if (msb >= HAL_CRC_LENGTH_8B) - 80058e8: 693b ldr r3, [r7, #16] - 80058ea: 2b07 cmp r3, #7 - 80058ec: d90f bls.n 800590e + 80058ec: 693b ldr r3, [r7, #16] + 80058ee: 2b07 cmp r3, #7 + 80058f0: d90f bls.n 8005912 { status = HAL_ERROR; - 80058ee: 2301 movs r3, #1 - 80058f0: 75fb strb r3, [r7, #23] + 80058f2: 2301 movs r3, #1 + 80058f4: 75fb strb r3, [r7, #23] } break; - 80058f2: e00c b.n 800590e + 80058f6: e00c b.n 8005912 case CRC_POLYLENGTH_16B: if (msb >= HAL_CRC_LENGTH_16B) - 80058f4: 693b ldr r3, [r7, #16] - 80058f6: 2b0f cmp r3, #15 - 80058f8: d90b bls.n 8005912 + 80058f8: 693b ldr r3, [r7, #16] + 80058fa: 2b0f cmp r3, #15 + 80058fc: d90b bls.n 8005916 { status = HAL_ERROR; - 80058fa: 2301 movs r3, #1 - 80058fc: 75fb strb r3, [r7, #23] + 80058fe: 2301 movs r3, #1 + 8005900: 75fb strb r3, [r7, #23] } break; - 80058fe: e008 b.n 8005912 + 8005902: e008 b.n 8005916 case CRC_POLYLENGTH_32B: /* no polynomial definition vs. polynomial length issue possible */ break; default: status = HAL_ERROR; - 8005900: 2301 movs r3, #1 - 8005902: 75fb strb r3, [r7, #23] - break; - 8005904: e006 b.n 8005914 + 8005904: 2301 movs r3, #1 + 8005906: 75fb strb r3, [r7, #23] break; - 8005906: bf00 nop - 8005908: e004 b.n 8005914 + 8005908: e006 b.n 8005918 break; 800590a: bf00 nop - 800590c: e002 b.n 8005914 + 800590c: e004 b.n 8005918 break; 800590e: bf00 nop - 8005910: e000 b.n 8005914 + 8005910: e002 b.n 8005918 break; 8005912: bf00 nop + 8005914: e000 b.n 8005918 + break; + 8005916: bf00 nop } if (status == HAL_OK) - 8005914: 7dfb ldrb r3, [r7, #23] - 8005916: 2b00 cmp r3, #0 - 8005918: d10d bne.n 8005936 + 8005918: 7dfb ldrb r3, [r7, #23] + 800591a: 2b00 cmp r3, #0 + 800591c: d10d bne.n 800593a { /* set generating polynomial */ WRITE_REG(hcrc->Instance->POL, Pol); - 800591a: 68fb ldr r3, [r7, #12] - 800591c: 681b ldr r3, [r3, #0] - 800591e: 68ba ldr r2, [r7, #8] - 8005920: 615a str r2, [r3, #20] + 800591e: 68fb ldr r3, [r7, #12] + 8005920: 681b ldr r3, [r3, #0] + 8005922: 68ba ldr r2, [r7, #8] + 8005924: 615a str r2, [r3, #20] /* set generating polynomial size */ MODIFY_REG(hcrc->Instance->CR, CRC_CR_POLYSIZE, PolyLength); - 8005922: 68fb ldr r3, [r7, #12] - 8005924: 681b ldr r3, [r3, #0] - 8005926: 689b ldr r3, [r3, #8] - 8005928: f023 0118 bic.w r1, r3, #24 - 800592c: 68fb ldr r3, [r7, #12] - 800592e: 681b ldr r3, [r3, #0] - 8005930: 687a ldr r2, [r7, #4] - 8005932: 430a orrs r2, r1 - 8005934: 609a str r2, [r3, #8] + 8005926: 68fb ldr r3, [r7, #12] + 8005928: 681b ldr r3, [r3, #0] + 800592a: 689b ldr r3, [r3, #8] + 800592c: f023 0118 bic.w r1, r3, #24 + 8005930: 68fb ldr r3, [r7, #12] + 8005932: 681b ldr r3, [r3, #0] + 8005934: 687a ldr r2, [r7, #4] + 8005936: 430a orrs r2, r1 + 8005938: 609a str r2, [r3, #8] } /* Return function status */ return status; - 8005936: 7dfb ldrb r3, [r7, #23] + 800593a: 7dfb ldrb r3, [r7, #23] } - 8005938: 4618 mov r0, r3 - 800593a: 371c adds r7, #28 - 800593c: 46bd mov sp, r7 - 800593e: f85d 7b04 ldr.w r7, [sp], #4 - 8005942: 4770 bx lr + 800593c: 4618 mov r0, r3 + 800593e: 371c adds r7, #28 + 8005940: 46bd mov sp, r7 + 8005942: f85d 7b04 ldr.w r7, [sp], #4 + 8005946: 4770 bx lr -08005944 : +08005948 : * @param hdac: pointer to a DAC_HandleTypeDef structure that contains * the configuration information for the specified DAC. * @retval HAL status */ HAL_StatusTypeDef HAL_DAC_Init(DAC_HandleTypeDef* hdac) { - 8005944: b580 push {r7, lr} - 8005946: b082 sub sp, #8 - 8005948: af00 add r7, sp, #0 - 800594a: 6078 str r0, [r7, #4] + 8005948: b580 push {r7, lr} + 800594a: b082 sub sp, #8 + 800594c: af00 add r7, sp, #0 + 800594e: 6078 str r0, [r7, #4] /* Check DAC handle */ if(hdac == NULL) - 800594c: 687b ldr r3, [r7, #4] - 800594e: 2b00 cmp r3, #0 - 8005950: d101 bne.n 8005956 + 8005950: 687b ldr r3, [r7, #4] + 8005952: 2b00 cmp r3, #0 + 8005954: d101 bne.n 800595a { return HAL_ERROR; - 8005952: 2301 movs r3, #1 - 8005954: e014 b.n 8005980 + 8005956: 2301 movs r3, #1 + 8005958: e014 b.n 8005984 } /* Check the parameters */ assert_param(IS_DAC_ALL_INSTANCE(hdac->Instance)); if(hdac->State == HAL_DAC_STATE_RESET) - 8005956: 687b ldr r3, [r7, #4] - 8005958: 791b ldrb r3, [r3, #4] - 800595a: b2db uxtb r3, r3 - 800595c: 2b00 cmp r3, #0 - 800595e: d105 bne.n 800596c + 800595a: 687b ldr r3, [r7, #4] + 800595c: 791b ldrb r3, [r3, #4] + 800595e: b2db uxtb r3, r3 + 8005960: 2b00 cmp r3, #0 + 8005962: d105 bne.n 8005970 { hdac->MspInitCallback = HAL_DAC_MspInit; } #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ /* Allocate lock resource and initialize it */ hdac->Lock = HAL_UNLOCKED; - 8005960: 687b ldr r3, [r7, #4] - 8005962: 2200 movs r2, #0 - 8005964: 715a strb r2, [r3, #5] + 8005964: 687b ldr r3, [r7, #4] + 8005966: 2200 movs r2, #0 + 8005968: 715a strb r2, [r3, #5] #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) /* Init the low level hardware */ hdac->MspInitCallback(hdac); #else /* Init the low level hardware */ HAL_DAC_MspInit(hdac); - 8005966: 6878 ldr r0, [r7, #4] - 8005968: f7fe fc58 bl 800421c + 800596a: 6878 ldr r0, [r7, #4] + 800596c: f7fe fc58 bl 8004220 #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ } /* Initialize the DAC state*/ hdac->State = HAL_DAC_STATE_BUSY; - 800596c: 687b ldr r3, [r7, #4] - 800596e: 2202 movs r2, #2 - 8005970: 711a strb r2, [r3, #4] + 8005970: 687b ldr r3, [r7, #4] + 8005972: 2202 movs r2, #2 + 8005974: 711a strb r2, [r3, #4] /* Set DAC error code to none */ hdac->ErrorCode = HAL_DAC_ERROR_NONE; - 8005972: 687b ldr r3, [r7, #4] - 8005974: 2200 movs r2, #0 - 8005976: 611a str r2, [r3, #16] + 8005976: 687b ldr r3, [r7, #4] + 8005978: 2200 movs r2, #0 + 800597a: 611a str r2, [r3, #16] /* Initialize the DAC state*/ hdac->State = HAL_DAC_STATE_READY; - 8005978: 687b ldr r3, [r7, #4] - 800597a: 2201 movs r2, #1 - 800597c: 711a strb r2, [r3, #4] + 800597c: 687b ldr r3, [r7, #4] + 800597e: 2201 movs r2, #1 + 8005980: 711a strb r2, [r3, #4] /* Return function status */ return HAL_OK; - 800597e: 2300 movs r3, #0 + 8005982: 2300 movs r3, #0 } - 8005980: 4618 mov r0, r3 - 8005982: 3708 adds r7, #8 - 8005984: 46bd mov sp, r7 - 8005986: bd80 pop {r7, pc} + 8005984: 4618 mov r0, r3 + 8005986: 3708 adds r7, #8 + 8005988: 46bd mov sp, r7 + 800598a: bd80 pop {r7, pc} -08005988 : +0800598c : * @param hdac: pointer to a DAC_HandleTypeDef structure that contains * the configuration information for the specified DAC. * @retval None */ void HAL_DAC_IRQHandler(DAC_HandleTypeDef* hdac) { - 8005988: b580 push {r7, lr} - 800598a: b082 sub sp, #8 - 800598c: af00 add r7, sp, #0 - 800598e: 6078 str r0, [r7, #4] + 800598c: b580 push {r7, lr} + 800598e: b082 sub sp, #8 + 8005990: af00 add r7, sp, #0 + 8005992: 6078 str r0, [r7, #4] /* Check underrun channel 1 flag */ if(__HAL_DAC_GET_FLAG(hdac, DAC_FLAG_DMAUDR1)) - 8005990: 687b ldr r3, [r7, #4] - 8005992: 681b ldr r3, [r3, #0] - 8005994: 6b5b ldr r3, [r3, #52] ; 0x34 - 8005996: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 800599a: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 800599e: d118 bne.n 80059d2 + 8005994: 687b ldr r3, [r7, #4] + 8005996: 681b ldr r3, [r3, #0] + 8005998: 6b5b ldr r3, [r3, #52] ; 0x34 + 800599a: f403 5300 and.w r3, r3, #8192 ; 0x2000 + 800599e: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 + 80059a2: d118 bne.n 80059d6 { /* Change DAC state to error state */ hdac->State = HAL_DAC_STATE_ERROR; - 80059a0: 687b ldr r3, [r7, #4] - 80059a2: 2204 movs r2, #4 - 80059a4: 711a strb r2, [r3, #4] + 80059a4: 687b ldr r3, [r7, #4] + 80059a6: 2204 movs r2, #4 + 80059a8: 711a strb r2, [r3, #4] /* Set DAC error code to channel1 DMA underrun error */ hdac->ErrorCode |= HAL_DAC_ERROR_DMAUNDERRUNCH1; - 80059a6: 687b ldr r3, [r7, #4] - 80059a8: 691b ldr r3, [r3, #16] - 80059aa: f043 0201 orr.w r2, r3, #1 - 80059ae: 687b ldr r3, [r7, #4] - 80059b0: 611a str r2, [r3, #16] + 80059aa: 687b ldr r3, [r7, #4] + 80059ac: 691b ldr r3, [r3, #16] + 80059ae: f043 0201 orr.w r2, r3, #1 + 80059b2: 687b ldr r3, [r7, #4] + 80059b4: 611a str r2, [r3, #16] /* Clear the underrun flag */ __HAL_DAC_CLEAR_FLAG(hdac,DAC_FLAG_DMAUDR1); - 80059b2: 687b ldr r3, [r7, #4] - 80059b4: 681b ldr r3, [r3, #0] - 80059b6: f44f 5200 mov.w r2, #8192 ; 0x2000 - 80059ba: 635a str r2, [r3, #52] ; 0x34 + 80059b6: 687b ldr r3, [r7, #4] + 80059b8: 681b ldr r3, [r3, #0] + 80059ba: f44f 5200 mov.w r2, #8192 ; 0x2000 + 80059be: 635a str r2, [r3, #52] ; 0x34 /* Disable the selected DAC channel1 DMA request */ hdac->Instance->CR &= ~DAC_CR_DMAEN1; - 80059bc: 687b ldr r3, [r7, #4] - 80059be: 681b ldr r3, [r3, #0] - 80059c0: 681a ldr r2, [r3, #0] - 80059c2: 687b ldr r3, [r7, #4] - 80059c4: 681b ldr r3, [r3, #0] - 80059c6: f422 5280 bic.w r2, r2, #4096 ; 0x1000 - 80059ca: 601a str r2, [r3, #0] + 80059c0: 687b ldr r3, [r7, #4] + 80059c2: 681b ldr r3, [r3, #0] + 80059c4: 681a ldr r2, [r3, #0] + 80059c6: 687b ldr r3, [r7, #4] + 80059c8: 681b ldr r3, [r3, #0] + 80059ca: f422 5280 bic.w r2, r2, #4096 ; 0x1000 + 80059ce: 601a str r2, [r3, #0] /* Error callback */ #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) hdac->DMAUnderrunCallbackCh1(hdac); #else HAL_DAC_DMAUnderrunCallbackCh1(hdac); - 80059cc: 6878 ldr r0, [r7, #4] - 80059ce: f000 f825 bl 8005a1c + 80059d0: 6878 ldr r0, [r7, #4] + 80059d2: f000 f825 bl 8005a20 #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ } /* Check underrun channel 2 flag */ if(__HAL_DAC_GET_FLAG(hdac, DAC_FLAG_DMAUDR2)) - 80059d2: 687b ldr r3, [r7, #4] - 80059d4: 681b ldr r3, [r3, #0] - 80059d6: 6b5b ldr r3, [r3, #52] ; 0x34 - 80059d8: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 80059dc: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 80059e0: d118 bne.n 8005a14 + 80059d6: 687b ldr r3, [r7, #4] + 80059d8: 681b ldr r3, [r3, #0] + 80059da: 6b5b ldr r3, [r3, #52] ; 0x34 + 80059dc: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 + 80059e0: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 + 80059e4: d118 bne.n 8005a18 { /* Change DAC state to error state */ hdac->State = HAL_DAC_STATE_ERROR; - 80059e2: 687b ldr r3, [r7, #4] - 80059e4: 2204 movs r2, #4 - 80059e6: 711a strb r2, [r3, #4] + 80059e6: 687b ldr r3, [r7, #4] + 80059e8: 2204 movs r2, #4 + 80059ea: 711a strb r2, [r3, #4] /* Set DAC error code to channel2 DMA underrun error */ hdac->ErrorCode |= HAL_DAC_ERROR_DMAUNDERRUNCH2; - 80059e8: 687b ldr r3, [r7, #4] - 80059ea: 691b ldr r3, [r3, #16] - 80059ec: f043 0202 orr.w r2, r3, #2 - 80059f0: 687b ldr r3, [r7, #4] - 80059f2: 611a str r2, [r3, #16] + 80059ec: 687b ldr r3, [r7, #4] + 80059ee: 691b ldr r3, [r3, #16] + 80059f0: f043 0202 orr.w r2, r3, #2 + 80059f4: 687b ldr r3, [r7, #4] + 80059f6: 611a str r2, [r3, #16] /* Clear the underrun flag */ __HAL_DAC_CLEAR_FLAG(hdac,DAC_FLAG_DMAUDR2); - 80059f4: 687b ldr r3, [r7, #4] - 80059f6: 681b ldr r3, [r3, #0] - 80059f8: f04f 5200 mov.w r2, #536870912 ; 0x20000000 - 80059fc: 635a str r2, [r3, #52] ; 0x34 + 80059f8: 687b ldr r3, [r7, #4] + 80059fa: 681b ldr r3, [r3, #0] + 80059fc: f04f 5200 mov.w r2, #536870912 ; 0x20000000 + 8005a00: 635a str r2, [r3, #52] ; 0x34 /* Disable the selected DAC channel1 DMA request */ hdac->Instance->CR &= ~DAC_CR_DMAEN2; - 80059fe: 687b ldr r3, [r7, #4] - 8005a00: 681b ldr r3, [r3, #0] - 8005a02: 681a ldr r2, [r3, #0] - 8005a04: 687b ldr r3, [r7, #4] - 8005a06: 681b ldr r3, [r3, #0] - 8005a08: f022 5280 bic.w r2, r2, #268435456 ; 0x10000000 - 8005a0c: 601a str r2, [r3, #0] + 8005a02: 687b ldr r3, [r7, #4] + 8005a04: 681b ldr r3, [r3, #0] + 8005a06: 681a ldr r2, [r3, #0] + 8005a08: 687b ldr r3, [r7, #4] + 8005a0a: 681b ldr r3, [r3, #0] + 8005a0c: f022 5280 bic.w r2, r2, #268435456 ; 0x10000000 + 8005a10: 601a str r2, [r3, #0] /* Error callback */ #if (USE_HAL_DAC_REGISTER_CALLBACKS == 1) hdac->DMAUnderrunCallbackCh2(hdac); #else HAL_DACEx_DMAUnderrunCallbackCh2(hdac); - 8005a0e: 6878 ldr r0, [r7, #4] - 8005a10: f000 f85b bl 8005aca + 8005a12: 6878 ldr r0, [r7, #4] + 8005a14: f000 f85b bl 8005ace #endif /* USE_HAL_DAC_REGISTER_CALLBACKS */ } } - 8005a14: bf00 nop - 8005a16: 3708 adds r7, #8 - 8005a18: 46bd mov sp, r7 - 8005a1a: bd80 pop {r7, pc} + 8005a18: bf00 nop + 8005a1a: 3708 adds r7, #8 + 8005a1c: 46bd mov sp, r7 + 8005a1e: bd80 pop {r7, pc} -08005a1c : +08005a20 : * @param hdac: pointer to a DAC_HandleTypeDef structure that contains * the configuration information for the specified DAC. * @retval None */ __weak void HAL_DAC_DMAUnderrunCallbackCh1(DAC_HandleTypeDef *hdac) { - 8005a1c: b480 push {r7} - 8005a1e: b083 sub sp, #12 - 8005a20: af00 add r7, sp, #0 - 8005a22: 6078 str r0, [r7, #4] + 8005a20: b480 push {r7} + 8005a22: b083 sub sp, #12 + 8005a24: af00 add r7, sp, #0 + 8005a26: 6078 str r0, [r7, #4] UNUSED(hdac); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_DAC_DMAUnderrunCallbackCh1 could be implemented in the user file */ } - 8005a24: bf00 nop - 8005a26: 370c adds r7, #12 - 8005a28: 46bd mov sp, r7 - 8005a2a: f85d 7b04 ldr.w r7, [sp], #4 - 8005a2e: 4770 bx lr + 8005a28: bf00 nop + 8005a2a: 370c adds r7, #12 + 8005a2c: 46bd mov sp, r7 + 8005a2e: f85d 7b04 ldr.w r7, [sp], #4 + 8005a32: 4770 bx lr -08005a30 : +08005a34 : * @arg DAC_CHANNEL_1: DAC Channel1 selected * @arg DAC_CHANNEL_2: DAC Channel2 selected * @retval HAL status */ HAL_StatusTypeDef HAL_DAC_ConfigChannel(DAC_HandleTypeDef* hdac, DAC_ChannelConfTypeDef* sConfig, uint32_t Channel) { - 8005a30: b480 push {r7} - 8005a32: b087 sub sp, #28 - 8005a34: af00 add r7, sp, #0 - 8005a36: 60f8 str r0, [r7, #12] - 8005a38: 60b9 str r1, [r7, #8] - 8005a3a: 607a str r2, [r7, #4] + 8005a34: b480 push {r7} + 8005a36: b087 sub sp, #28 + 8005a38: af00 add r7, sp, #0 + 8005a3a: 60f8 str r0, [r7, #12] + 8005a3c: 60b9 str r1, [r7, #8] + 8005a3e: 607a str r2, [r7, #4] uint32_t tmpreg1 = 0, tmpreg2 = 0; - 8005a3c: 2300 movs r3, #0 - 8005a3e: 617b str r3, [r7, #20] 8005a40: 2300 movs r3, #0 - 8005a42: 613b str r3, [r7, #16] + 8005a42: 617b str r3, [r7, #20] + 8005a44: 2300 movs r3, #0 + 8005a46: 613b str r3, [r7, #16] assert_param(IS_DAC_TRIGGER(sConfig->DAC_Trigger)); assert_param(IS_DAC_OUTPUT_BUFFER_STATE(sConfig->DAC_OutputBuffer)); assert_param(IS_DAC_CHANNEL(Channel)); /* Process locked */ __HAL_LOCK(hdac); - 8005a44: 68fb ldr r3, [r7, #12] - 8005a46: 795b ldrb r3, [r3, #5] - 8005a48: 2b01 cmp r3, #1 - 8005a4a: d101 bne.n 8005a50 - 8005a4c: 2302 movs r3, #2 - 8005a4e: e036 b.n 8005abe - 8005a50: 68fb ldr r3, [r7, #12] - 8005a52: 2201 movs r2, #1 - 8005a54: 715a strb r2, [r3, #5] + 8005a48: 68fb ldr r3, [r7, #12] + 8005a4a: 795b ldrb r3, [r3, #5] + 8005a4c: 2b01 cmp r3, #1 + 8005a4e: d101 bne.n 8005a54 + 8005a50: 2302 movs r3, #2 + 8005a52: e036 b.n 8005ac2 + 8005a54: 68fb ldr r3, [r7, #12] + 8005a56: 2201 movs r2, #1 + 8005a58: 715a strb r2, [r3, #5] /* Change DAC state */ hdac->State = HAL_DAC_STATE_BUSY; - 8005a56: 68fb ldr r3, [r7, #12] - 8005a58: 2202 movs r2, #2 - 8005a5a: 711a strb r2, [r3, #4] + 8005a5a: 68fb ldr r3, [r7, #12] + 8005a5c: 2202 movs r2, #2 + 8005a5e: 711a strb r2, [r3, #4] /* Get the DAC CR value */ tmpreg1 = hdac->Instance->CR; - 8005a5c: 68fb ldr r3, [r7, #12] - 8005a5e: 681b ldr r3, [r3, #0] - 8005a60: 681b ldr r3, [r3, #0] - 8005a62: 617b str r3, [r7, #20] + 8005a60: 68fb ldr r3, [r7, #12] + 8005a62: 681b ldr r3, [r3, #0] + 8005a64: 681b ldr r3, [r3, #0] + 8005a66: 617b str r3, [r7, #20] /* Clear BOFFx, TENx, TSELx, WAVEx and MAMPx bits */ tmpreg1 &= ~(((uint32_t)(DAC_CR_MAMP1 | DAC_CR_WAVE1 | DAC_CR_TSEL1 | DAC_CR_TEN1 | DAC_CR_BOFF1)) << Channel); - 8005a64: f640 72fe movw r2, #4094 ; 0xffe - 8005a68: 687b ldr r3, [r7, #4] - 8005a6a: fa02 f303 lsl.w r3, r2, r3 - 8005a6e: 43db mvns r3, r3 - 8005a70: 697a ldr r2, [r7, #20] - 8005a72: 4013 ands r3, r2 - 8005a74: 617b str r3, [r7, #20] + 8005a68: f640 72fe movw r2, #4094 ; 0xffe + 8005a6c: 687b ldr r3, [r7, #4] + 8005a6e: fa02 f303 lsl.w r3, r2, r3 + 8005a72: 43db mvns r3, r3 + 8005a74: 697a ldr r2, [r7, #20] + 8005a76: 4013 ands r3, r2 + 8005a78: 617b str r3, [r7, #20] /* Configure for the selected DAC channel: buffer output, trigger */ /* Set TSELx and TENx bits according to DAC_Trigger value */ /* Set BOFFx bit according to DAC_OutputBuffer value */ tmpreg2 = (sConfig->DAC_Trigger | sConfig->DAC_OutputBuffer); - 8005a76: 68bb ldr r3, [r7, #8] - 8005a78: 681a ldr r2, [r3, #0] 8005a7a: 68bb ldr r3, [r7, #8] - 8005a7c: 685b ldr r3, [r3, #4] - 8005a7e: 4313 orrs r3, r2 - 8005a80: 613b str r3, [r7, #16] + 8005a7c: 681a ldr r2, [r3, #0] + 8005a7e: 68bb ldr r3, [r7, #8] + 8005a80: 685b ldr r3, [r3, #4] + 8005a82: 4313 orrs r3, r2 + 8005a84: 613b str r3, [r7, #16] /* Calculate CR register value depending on DAC_Channel */ tmpreg1 |= tmpreg2 << Channel; - 8005a82: 693a ldr r2, [r7, #16] - 8005a84: 687b ldr r3, [r7, #4] - 8005a86: fa02 f303 lsl.w r3, r2, r3 - 8005a8a: 697a ldr r2, [r7, #20] - 8005a8c: 4313 orrs r3, r2 - 8005a8e: 617b str r3, [r7, #20] + 8005a86: 693a ldr r2, [r7, #16] + 8005a88: 687b ldr r3, [r7, #4] + 8005a8a: fa02 f303 lsl.w r3, r2, r3 + 8005a8e: 697a ldr r2, [r7, #20] + 8005a90: 4313 orrs r3, r2 + 8005a92: 617b str r3, [r7, #20] /* Write to DAC CR */ hdac->Instance->CR = tmpreg1; - 8005a90: 68fb ldr r3, [r7, #12] - 8005a92: 681b ldr r3, [r3, #0] - 8005a94: 697a ldr r2, [r7, #20] - 8005a96: 601a str r2, [r3, #0] + 8005a94: 68fb ldr r3, [r7, #12] + 8005a96: 681b ldr r3, [r3, #0] + 8005a98: 697a ldr r2, [r7, #20] + 8005a9a: 601a str r2, [r3, #0] /* Disable wave generation */ hdac->Instance->CR &= ~(DAC_CR_WAVE1 << Channel); - 8005a98: 68fb ldr r3, [r7, #12] - 8005a9a: 681b ldr r3, [r3, #0] - 8005a9c: 6819 ldr r1, [r3, #0] - 8005a9e: 22c0 movs r2, #192 ; 0xc0 - 8005aa0: 687b ldr r3, [r7, #4] - 8005aa2: fa02 f303 lsl.w r3, r2, r3 - 8005aa6: 43da mvns r2, r3 - 8005aa8: 68fb ldr r3, [r7, #12] - 8005aaa: 681b ldr r3, [r3, #0] - 8005aac: 400a ands r2, r1 - 8005aae: 601a str r2, [r3, #0] + 8005a9c: 68fb ldr r3, [r7, #12] + 8005a9e: 681b ldr r3, [r3, #0] + 8005aa0: 6819 ldr r1, [r3, #0] + 8005aa2: 22c0 movs r2, #192 ; 0xc0 + 8005aa4: 687b ldr r3, [r7, #4] + 8005aa6: fa02 f303 lsl.w r3, r2, r3 + 8005aaa: 43da mvns r2, r3 + 8005aac: 68fb ldr r3, [r7, #12] + 8005aae: 681b ldr r3, [r3, #0] + 8005ab0: 400a ands r2, r1 + 8005ab2: 601a str r2, [r3, #0] /* Change DAC state */ hdac->State = HAL_DAC_STATE_READY; - 8005ab0: 68fb ldr r3, [r7, #12] - 8005ab2: 2201 movs r2, #1 - 8005ab4: 711a strb r2, [r3, #4] + 8005ab4: 68fb ldr r3, [r7, #12] + 8005ab6: 2201 movs r2, #1 + 8005ab8: 711a strb r2, [r3, #4] /* Process unlocked */ __HAL_UNLOCK(hdac); - 8005ab6: 68fb ldr r3, [r7, #12] - 8005ab8: 2200 movs r2, #0 - 8005aba: 715a strb r2, [r3, #5] + 8005aba: 68fb ldr r3, [r7, #12] + 8005abc: 2200 movs r2, #0 + 8005abe: 715a strb r2, [r3, #5] /* Return function status */ return HAL_OK; - 8005abc: 2300 movs r3, #0 + 8005ac0: 2300 movs r3, #0 } - 8005abe: 4618 mov r0, r3 - 8005ac0: 371c adds r7, #28 - 8005ac2: 46bd mov sp, r7 - 8005ac4: f85d 7b04 ldr.w r7, [sp], #4 - 8005ac8: 4770 bx lr + 8005ac2: 4618 mov r0, r3 + 8005ac4: 371c adds r7, #28 + 8005ac6: 46bd mov sp, r7 + 8005ac8: f85d 7b04 ldr.w r7, [sp], #4 + 8005acc: 4770 bx lr -08005aca : +08005ace : * @param hdac: pointer to a DAC_HandleTypeDef structure that contains * the configuration information for the specified DAC. * @retval None */ __weak void HAL_DACEx_DMAUnderrunCallbackCh2(DAC_HandleTypeDef *hdac) { - 8005aca: b480 push {r7} - 8005acc: b083 sub sp, #12 - 8005ace: af00 add r7, sp, #0 - 8005ad0: 6078 str r0, [r7, #4] + 8005ace: b480 push {r7} + 8005ad0: b083 sub sp, #12 + 8005ad2: af00 add r7, sp, #0 + 8005ad4: 6078 str r0, [r7, #4] UNUSED(hdac); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_DACEx_DMAUnderrunCallbackCh2 could be implemented in the user file */ } - 8005ad2: bf00 nop - 8005ad4: 370c adds r7, #12 - 8005ad6: 46bd mov sp, r7 - 8005ad8: f85d 7b04 ldr.w r7, [sp], #4 - 8005adc: 4770 bx lr + 8005ad6: bf00 nop + 8005ad8: 370c adds r7, #12 + 8005ada: 46bd mov sp, r7 + 8005adc: f85d 7b04 ldr.w r7, [sp], #4 + 8005ae0: 4770 bx lr ... -08005ae0 : +08005ae4 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) { - 8005ae0: b580 push {r7, lr} - 8005ae2: b086 sub sp, #24 - 8005ae4: af00 add r7, sp, #0 - 8005ae6: 6078 str r0, [r7, #4] + 8005ae4: b580 push {r7, lr} + 8005ae6: b086 sub sp, #24 + 8005ae8: af00 add r7, sp, #0 + 8005aea: 6078 str r0, [r7, #4] uint32_t tmp = 0U; - 8005ae8: 2300 movs r3, #0 - 8005aea: 617b str r3, [r7, #20] + 8005aec: 2300 movs r3, #0 + 8005aee: 617b str r3, [r7, #20] uint32_t tickstart = HAL_GetTick(); - 8005aec: f7ff f9e8 bl 8004ec0 - 8005af0: 6138 str r0, [r7, #16] + 8005af0: f7ff f9e8 bl 8004ec4 + 8005af4: 6138 str r0, [r7, #16] DMA_Base_Registers *regs; /* Check the DMA peripheral state */ if(hdma == NULL) - 8005af2: 687b ldr r3, [r7, #4] - 8005af4: 2b00 cmp r3, #0 - 8005af6: d101 bne.n 8005afc + 8005af6: 687b ldr r3, [r7, #4] + 8005af8: 2b00 cmp r3, #0 + 8005afa: d101 bne.n 8005b00 { return HAL_ERROR; - 8005af8: 2301 movs r3, #1 - 8005afa: e099 b.n 8005c30 + 8005afc: 2301 movs r3, #1 + 8005afe: e099 b.n 8005c34 assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst)); assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst)); } /* Allocate lock resource */ __HAL_UNLOCK(hdma); - 8005afc: 687b ldr r3, [r7, #4] - 8005afe: 2200 movs r2, #0 - 8005b00: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 8005b00: 687b ldr r3, [r7, #4] + 8005b02: 2200 movs r2, #0 + 8005b04: f883 2034 strb.w r2, [r3, #52] ; 0x34 /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; - 8005b04: 687b ldr r3, [r7, #4] - 8005b06: 2202 movs r2, #2 - 8005b08: f883 2035 strb.w r2, [r3, #53] ; 0x35 + 8005b08: 687b ldr r3, [r7, #4] + 8005b0a: 2202 movs r2, #2 + 8005b0c: f883 2035 strb.w r2, [r3, #53] ; 0x35 /* Disable the peripheral */ __HAL_DMA_DISABLE(hdma); - 8005b0c: 687b ldr r3, [r7, #4] - 8005b0e: 681b ldr r3, [r3, #0] - 8005b10: 681a ldr r2, [r3, #0] - 8005b12: 687b ldr r3, [r7, #4] - 8005b14: 681b ldr r3, [r3, #0] - 8005b16: f022 0201 bic.w r2, r2, #1 - 8005b1a: 601a str r2, [r3, #0] + 8005b10: 687b ldr r3, [r7, #4] + 8005b12: 681b ldr r3, [r3, #0] + 8005b14: 681a ldr r2, [r3, #0] + 8005b16: 687b ldr r3, [r7, #4] + 8005b18: 681b ldr r3, [r3, #0] + 8005b1a: f022 0201 bic.w r2, r2, #1 + 8005b1e: 601a str r2, [r3, #0] /* Check if the DMA Stream is effectively disabled */ while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 8005b1c: e00f b.n 8005b3e + 8005b20: e00f b.n 8005b42 { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - 8005b1e: f7ff f9cf bl 8004ec0 - 8005b22: 4602 mov r2, r0 - 8005b24: 693b ldr r3, [r7, #16] - 8005b26: 1ad3 subs r3, r2, r3 - 8005b28: 2b05 cmp r3, #5 - 8005b2a: d908 bls.n 8005b3e + 8005b22: f7ff f9cf bl 8004ec4 + 8005b26: 4602 mov r2, r0 + 8005b28: 693b ldr r3, [r7, #16] + 8005b2a: 1ad3 subs r3, r2, r3 + 8005b2c: 2b05 cmp r3, #5 + 8005b2e: d908 bls.n 8005b42 { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 8005b2c: 687b ldr r3, [r7, #4] - 8005b2e: 2220 movs r2, #32 - 8005b30: 655a str r2, [r3, #84] ; 0x54 + 8005b30: 687b ldr r3, [r7, #4] + 8005b32: 2220 movs r2, #32 + 8005b34: 655a str r2, [r3, #84] ; 0x54 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_TIMEOUT; - 8005b32: 687b ldr r3, [r7, #4] - 8005b34: 2203 movs r2, #3 - 8005b36: f883 2035 strb.w r2, [r3, #53] ; 0x35 + 8005b36: 687b ldr r3, [r7, #4] + 8005b38: 2203 movs r2, #3 + 8005b3a: f883 2035 strb.w r2, [r3, #53] ; 0x35 return HAL_TIMEOUT; - 8005b3a: 2303 movs r3, #3 - 8005b3c: e078 b.n 8005c30 + 8005b3e: 2303 movs r3, #3 + 8005b40: e078 b.n 8005c34 while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 8005b3e: 687b ldr r3, [r7, #4] - 8005b40: 681b ldr r3, [r3, #0] - 8005b42: 681b ldr r3, [r3, #0] - 8005b44: f003 0301 and.w r3, r3, #1 - 8005b48: 2b00 cmp r3, #0 - 8005b4a: d1e8 bne.n 8005b1e + 8005b42: 687b ldr r3, [r7, #4] + 8005b44: 681b ldr r3, [r3, #0] + 8005b46: 681b ldr r3, [r3, #0] + 8005b48: f003 0301 and.w r3, r3, #1 + 8005b4c: 2b00 cmp r3, #0 + 8005b4e: d1e8 bne.n 8005b22 } } /* Get the CR register value */ tmp = hdma->Instance->CR; - 8005b4c: 687b ldr r3, [r7, #4] - 8005b4e: 681b ldr r3, [r3, #0] - 8005b50: 681b ldr r3, [r3, #0] - 8005b52: 617b str r3, [r7, #20] + 8005b50: 687b ldr r3, [r7, #4] + 8005b52: 681b ldr r3, [r3, #0] + 8005b54: 681b ldr r3, [r3, #0] + 8005b56: 617b str r3, [r7, #20] /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */ tmp &= ((uint32_t)~(DMA_SxCR_CHSEL | DMA_SxCR_MBURST | DMA_SxCR_PBURST | \ - 8005b54: 697a ldr r2, [r7, #20] - 8005b56: 4b38 ldr r3, [pc, #224] ; (8005c38 ) - 8005b58: 4013 ands r3, r2 - 8005b5a: 617b str r3, [r7, #20] + 8005b58: 697a ldr r2, [r7, #20] + 8005b5a: 4b38 ldr r3, [pc, #224] ; (8005c3c ) + 8005b5c: 4013 ands r3, r2 + 8005b5e: 617b str r3, [r7, #20] DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \ DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \ DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM)); /* Prepare the DMA Stream configuration */ tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8005b5c: 687b ldr r3, [r7, #4] - 8005b5e: 685a ldr r2, [r3, #4] 8005b60: 687b ldr r3, [r7, #4] - 8005b62: 689b ldr r3, [r3, #8] - 8005b64: 431a orrs r2, r3 + 8005b62: 685a ldr r2, [r3, #4] + 8005b64: 687b ldr r3, [r7, #4] + 8005b66: 689b ldr r3, [r3, #8] + 8005b68: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | - 8005b66: 687b ldr r3, [r7, #4] - 8005b68: 68db ldr r3, [r3, #12] + 8005b6a: 687b ldr r3, [r7, #4] + 8005b6c: 68db ldr r3, [r3, #12] tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8005b6a: 431a orrs r2, r3 + 8005b6e: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | - 8005b6c: 687b ldr r3, [r7, #4] - 8005b6e: 691b ldr r3, [r3, #16] - 8005b70: 431a orrs r2, r3 + 8005b70: 687b ldr r3, [r7, #4] + 8005b72: 691b ldr r3, [r3, #16] + 8005b74: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 8005b72: 687b ldr r3, [r7, #4] - 8005b74: 695b ldr r3, [r3, #20] + 8005b76: 687b ldr r3, [r7, #4] + 8005b78: 695b ldr r3, [r3, #20] hdma->Init.PeriphInc | hdma->Init.MemInc | - 8005b76: 431a orrs r2, r3 + 8005b7a: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 8005b78: 687b ldr r3, [r7, #4] - 8005b7a: 699b ldr r3, [r3, #24] - 8005b7c: 431a orrs r2, r3 + 8005b7c: 687b ldr r3, [r7, #4] + 8005b7e: 699b ldr r3, [r3, #24] + 8005b80: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; - 8005b7e: 687b ldr r3, [r7, #4] - 8005b80: 69db ldr r3, [r3, #28] + 8005b82: 687b ldr r3, [r7, #4] + 8005b84: 69db ldr r3, [r3, #28] hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 8005b82: 431a orrs r2, r3 + 8005b86: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; - 8005b84: 687b ldr r3, [r7, #4] - 8005b86: 6a1b ldr r3, [r3, #32] - 8005b88: 4313 orrs r3, r2 - tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8005b8a: 697a ldr r2, [r7, #20] + 8005b88: 687b ldr r3, [r7, #4] + 8005b8a: 6a1b ldr r3, [r3, #32] 8005b8c: 4313 orrs r3, r2 - 8005b8e: 617b str r3, [r7, #20] + tmp |= hdma->Init.Channel | hdma->Init.Direction | + 8005b8e: 697a ldr r2, [r7, #20] + 8005b90: 4313 orrs r3, r2 + 8005b92: 617b str r3, [r7, #20] /* the Memory burst and peripheral burst are not used when the FIFO is disabled */ if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - 8005b90: 687b ldr r3, [r7, #4] - 8005b92: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005b94: 2b04 cmp r3, #4 - 8005b96: d107 bne.n 8005ba8 + 8005b94: 687b ldr r3, [r7, #4] + 8005b96: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005b98: 2b04 cmp r3, #4 + 8005b9a: d107 bne.n 8005bac { /* Get memory burst and peripheral burst */ tmp |= hdma->Init.MemBurst | hdma->Init.PeriphBurst; - 8005b98: 687b ldr r3, [r7, #4] - 8005b9a: 6ada ldr r2, [r3, #44] ; 0x2c 8005b9c: 687b ldr r3, [r7, #4] - 8005b9e: 6b1b ldr r3, [r3, #48] ; 0x30 - 8005ba0: 4313 orrs r3, r2 - 8005ba2: 697a ldr r2, [r7, #20] + 8005b9e: 6ada ldr r2, [r3, #44] ; 0x2c + 8005ba0: 687b ldr r3, [r7, #4] + 8005ba2: 6b1b ldr r3, [r3, #48] ; 0x30 8005ba4: 4313 orrs r3, r2 - 8005ba6: 617b str r3, [r7, #20] + 8005ba6: 697a ldr r2, [r7, #20] + 8005ba8: 4313 orrs r3, r2 + 8005baa: 617b str r3, [r7, #20] } /* Write to DMA Stream CR register */ hdma->Instance->CR = tmp; - 8005ba8: 687b ldr r3, [r7, #4] - 8005baa: 681b ldr r3, [r3, #0] - 8005bac: 697a ldr r2, [r7, #20] - 8005bae: 601a str r2, [r3, #0] + 8005bac: 687b ldr r3, [r7, #4] + 8005bae: 681b ldr r3, [r3, #0] + 8005bb0: 697a ldr r2, [r7, #20] + 8005bb2: 601a str r2, [r3, #0] /* Get the FCR register value */ tmp = hdma->Instance->FCR; - 8005bb0: 687b ldr r3, [r7, #4] - 8005bb2: 681b ldr r3, [r3, #0] - 8005bb4: 695b ldr r3, [r3, #20] - 8005bb6: 617b str r3, [r7, #20] + 8005bb4: 687b ldr r3, [r7, #4] + 8005bb6: 681b ldr r3, [r3, #0] + 8005bb8: 695b ldr r3, [r3, #20] + 8005bba: 617b str r3, [r7, #20] /* Clear Direct mode and FIFO threshold bits */ tmp &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); - 8005bb8: 697b ldr r3, [r7, #20] - 8005bba: f023 0307 bic.w r3, r3, #7 - 8005bbe: 617b str r3, [r7, #20] + 8005bbc: 697b ldr r3, [r7, #20] + 8005bbe: f023 0307 bic.w r3, r3, #7 + 8005bc2: 617b str r3, [r7, #20] /* Prepare the DMA Stream FIFO configuration */ tmp |= hdma->Init.FIFOMode; - 8005bc0: 687b ldr r3, [r7, #4] - 8005bc2: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005bc4: 697a ldr r2, [r7, #20] - 8005bc6: 4313 orrs r3, r2 - 8005bc8: 617b str r3, [r7, #20] + 8005bc4: 687b ldr r3, [r7, #4] + 8005bc6: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005bc8: 697a ldr r2, [r7, #20] + 8005bca: 4313 orrs r3, r2 + 8005bcc: 617b str r3, [r7, #20] /* The FIFO threshold is not used when the FIFO mode is disabled */ if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - 8005bca: 687b ldr r3, [r7, #4] - 8005bcc: 6a5b ldr r3, [r3, #36] ; 0x24 - 8005bce: 2b04 cmp r3, #4 - 8005bd0: d117 bne.n 8005c02 + 8005bce: 687b ldr r3, [r7, #4] + 8005bd0: 6a5b ldr r3, [r3, #36] ; 0x24 + 8005bd2: 2b04 cmp r3, #4 + 8005bd4: d117 bne.n 8005c06 { /* Get the FIFO threshold */ tmp |= hdma->Init.FIFOThreshold; - 8005bd2: 687b ldr r3, [r7, #4] - 8005bd4: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005bd6: 697a ldr r2, [r7, #20] - 8005bd8: 4313 orrs r3, r2 - 8005bda: 617b str r3, [r7, #20] + 8005bd6: 687b ldr r3, [r7, #4] + 8005bd8: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005bda: 697a ldr r2, [r7, #20] + 8005bdc: 4313 orrs r3, r2 + 8005bde: 617b str r3, [r7, #20] /* Check compatibility between FIFO threshold level and size of the memory burst */ /* for INCR4, INCR8, INCR16 bursts */ if (hdma->Init.MemBurst != DMA_MBURST_SINGLE) - 8005bdc: 687b ldr r3, [r7, #4] - 8005bde: 6adb ldr r3, [r3, #44] ; 0x2c - 8005be0: 2b00 cmp r3, #0 - 8005be2: d00e beq.n 8005c02 + 8005be0: 687b ldr r3, [r7, #4] + 8005be2: 6adb ldr r3, [r3, #44] ; 0x2c + 8005be4: 2b00 cmp r3, #0 + 8005be6: d00e beq.n 8005c06 { if (DMA_CheckFifoParam(hdma) != HAL_OK) - 8005be4: 6878 ldr r0, [r7, #4] - 8005be6: f000 f8bd bl 8005d64 - 8005bea: 4603 mov r3, r0 - 8005bec: 2b00 cmp r3, #0 - 8005bee: d008 beq.n 8005c02 + 8005be8: 6878 ldr r0, [r7, #4] + 8005bea: f000 f8bd bl 8005d68 + 8005bee: 4603 mov r3, r0 + 8005bf0: 2b00 cmp r3, #0 + 8005bf2: d008 beq.n 8005c06 { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - 8005bf0: 687b ldr r3, [r7, #4] - 8005bf2: 2240 movs r2, #64 ; 0x40 - 8005bf4: 655a str r2, [r3, #84] ; 0x54 + 8005bf4: 687b ldr r3, [r7, #4] + 8005bf6: 2240 movs r2, #64 ; 0x40 + 8005bf8: 655a str r2, [r3, #84] ; 0x54 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8005bf6: 687b ldr r3, [r7, #4] - 8005bf8: 2201 movs r2, #1 - 8005bfa: f883 2035 strb.w r2, [r3, #53] ; 0x35 + 8005bfa: 687b ldr r3, [r7, #4] + 8005bfc: 2201 movs r2, #1 + 8005bfe: f883 2035 strb.w r2, [r3, #53] ; 0x35 return HAL_ERROR; - 8005bfe: 2301 movs r3, #1 - 8005c00: e016 b.n 8005c30 + 8005c02: 2301 movs r3, #1 + 8005c04: e016 b.n 8005c34 } } } /* Write to DMA Stream FCR */ hdma->Instance->FCR = tmp; - 8005c02: 687b ldr r3, [r7, #4] - 8005c04: 681b ldr r3, [r3, #0] - 8005c06: 697a ldr r2, [r7, #20] - 8005c08: 615a str r2, [r3, #20] + 8005c06: 687b ldr r3, [r7, #4] + 8005c08: 681b ldr r3, [r3, #0] + 8005c0a: 697a ldr r2, [r7, #20] + 8005c0c: 615a str r2, [r3, #20] /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */ regs = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - 8005c0a: 6878 ldr r0, [r7, #4] - 8005c0c: f000 f874 bl 8005cf8 - 8005c10: 4603 mov r3, r0 - 8005c12: 60fb str r3, [r7, #12] + 8005c0e: 6878 ldr r0, [r7, #4] + 8005c10: f000 f874 bl 8005cfc + 8005c14: 4603 mov r3, r0 + 8005c16: 60fb str r3, [r7, #12] /* Clear all interrupt flags */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 8005c14: 687b ldr r3, [r7, #4] - 8005c16: 6ddb ldr r3, [r3, #92] ; 0x5c - 8005c18: 223f movs r2, #63 ; 0x3f - 8005c1a: 409a lsls r2, r3 - 8005c1c: 68fb ldr r3, [r7, #12] - 8005c1e: 609a str r2, [r3, #8] + 8005c18: 687b ldr r3, [r7, #4] + 8005c1a: 6ddb ldr r3, [r3, #92] ; 0x5c + 8005c1c: 223f movs r2, #63 ; 0x3f + 8005c1e: 409a lsls r2, r3 + 8005c20: 68fb ldr r3, [r7, #12] + 8005c22: 609a str r2, [r3, #8] /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 8005c20: 687b ldr r3, [r7, #4] - 8005c22: 2200 movs r2, #0 - 8005c24: 655a str r2, [r3, #84] ; 0x54 + 8005c24: 687b ldr r3, [r7, #4] + 8005c26: 2200 movs r2, #0 + 8005c28: 655a str r2, [r3, #84] ; 0x54 /* Initialize the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8005c26: 687b ldr r3, [r7, #4] - 8005c28: 2201 movs r2, #1 - 8005c2a: f883 2035 strb.w r2, [r3, #53] ; 0x35 + 8005c2a: 687b ldr r3, [r7, #4] + 8005c2c: 2201 movs r2, #1 + 8005c2e: f883 2035 strb.w r2, [r3, #53] ; 0x35 return HAL_OK; - 8005c2e: 2300 movs r3, #0 + 8005c32: 2300 movs r3, #0 } - 8005c30: 4618 mov r0, r3 - 8005c32: 3718 adds r7, #24 - 8005c34: 46bd mov sp, r7 - 8005c36: bd80 pop {r7, pc} - 8005c38: f010803f .word 0xf010803f + 8005c34: 4618 mov r0, r3 + 8005c36: 3718 adds r7, #24 + 8005c38: 46bd mov sp, r7 + 8005c3a: bd80 pop {r7, pc} + 8005c3c: f010803f .word 0xf010803f -08005c3c : +08005c40 : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_DeInit(DMA_HandleTypeDef *hdma) { - 8005c3c: b580 push {r7, lr} - 8005c3e: b084 sub sp, #16 - 8005c40: af00 add r7, sp, #0 - 8005c42: 6078 str r0, [r7, #4] + 8005c40: b580 push {r7, lr} + 8005c42: b084 sub sp, #16 + 8005c44: af00 add r7, sp, #0 + 8005c46: 6078 str r0, [r7, #4] DMA_Base_Registers *regs; /* Check the DMA peripheral state */ if(hdma == NULL) - 8005c44: 687b ldr r3, [r7, #4] - 8005c46: 2b00 cmp r3, #0 - 8005c48: d101 bne.n 8005c4e + 8005c48: 687b ldr r3, [r7, #4] + 8005c4a: 2b00 cmp r3, #0 + 8005c4c: d101 bne.n 8005c52 { return HAL_ERROR; - 8005c4a: 2301 movs r3, #1 - 8005c4c: e050 b.n 8005cf0 + 8005c4e: 2301 movs r3, #1 + 8005c50: e050 b.n 8005cf4 } /* Check the DMA peripheral state */ if(hdma->State == HAL_DMA_STATE_BUSY) - 8005c4e: 687b ldr r3, [r7, #4] - 8005c50: f893 3035 ldrb.w r3, [r3, #53] ; 0x35 - 8005c54: b2db uxtb r3, r3 - 8005c56: 2b02 cmp r3, #2 - 8005c58: d101 bne.n 8005c5e + 8005c52: 687b ldr r3, [r7, #4] + 8005c54: f893 3035 ldrb.w r3, [r3, #53] ; 0x35 + 8005c58: b2db uxtb r3, r3 + 8005c5a: 2b02 cmp r3, #2 + 8005c5c: d101 bne.n 8005c62 { /* Return error status */ return HAL_BUSY; - 8005c5a: 2302 movs r3, #2 - 8005c5c: e048 b.n 8005cf0 + 8005c5e: 2302 movs r3, #2 + 8005c60: e048 b.n 8005cf4 /* Check the parameters */ assert_param(IS_DMA_STREAM_ALL_INSTANCE(hdma->Instance)); /* Disable the selected DMA Streamx */ __HAL_DMA_DISABLE(hdma); - 8005c5e: 687b ldr r3, [r7, #4] - 8005c60: 681b ldr r3, [r3, #0] - 8005c62: 681a ldr r2, [r3, #0] - 8005c64: 687b ldr r3, [r7, #4] - 8005c66: 681b ldr r3, [r3, #0] - 8005c68: f022 0201 bic.w r2, r2, #1 - 8005c6c: 601a str r2, [r3, #0] + 8005c62: 687b ldr r3, [r7, #4] + 8005c64: 681b ldr r3, [r3, #0] + 8005c66: 681a ldr r2, [r3, #0] + 8005c68: 687b ldr r3, [r7, #4] + 8005c6a: 681b ldr r3, [r3, #0] + 8005c6c: f022 0201 bic.w r2, r2, #1 + 8005c70: 601a str r2, [r3, #0] /* Reset DMA Streamx control register */ hdma->Instance->CR = 0U; - 8005c6e: 687b ldr r3, [r7, #4] - 8005c70: 681b ldr r3, [r3, #0] - 8005c72: 2200 movs r2, #0 - 8005c74: 601a str r2, [r3, #0] + 8005c72: 687b ldr r3, [r7, #4] + 8005c74: 681b ldr r3, [r3, #0] + 8005c76: 2200 movs r2, #0 + 8005c78: 601a str r2, [r3, #0] /* Reset DMA Streamx number of data to transfer register */ hdma->Instance->NDTR = 0U; - 8005c76: 687b ldr r3, [r7, #4] - 8005c78: 681b ldr r3, [r3, #0] - 8005c7a: 2200 movs r2, #0 - 8005c7c: 605a str r2, [r3, #4] + 8005c7a: 687b ldr r3, [r7, #4] + 8005c7c: 681b ldr r3, [r3, #0] + 8005c7e: 2200 movs r2, #0 + 8005c80: 605a str r2, [r3, #4] /* Reset DMA Streamx peripheral address register */ hdma->Instance->PAR = 0U; - 8005c7e: 687b ldr r3, [r7, #4] - 8005c80: 681b ldr r3, [r3, #0] - 8005c82: 2200 movs r2, #0 - 8005c84: 609a str r2, [r3, #8] + 8005c82: 687b ldr r3, [r7, #4] + 8005c84: 681b ldr r3, [r3, #0] + 8005c86: 2200 movs r2, #0 + 8005c88: 609a str r2, [r3, #8] /* Reset DMA Streamx memory 0 address register */ hdma->Instance->M0AR = 0U; - 8005c86: 687b ldr r3, [r7, #4] - 8005c88: 681b ldr r3, [r3, #0] - 8005c8a: 2200 movs r2, #0 - 8005c8c: 60da str r2, [r3, #12] + 8005c8a: 687b ldr r3, [r7, #4] + 8005c8c: 681b ldr r3, [r3, #0] + 8005c8e: 2200 movs r2, #0 + 8005c90: 60da str r2, [r3, #12] /* Reset DMA Streamx memory 1 address register */ hdma->Instance->M1AR = 0U; - 8005c8e: 687b ldr r3, [r7, #4] - 8005c90: 681b ldr r3, [r3, #0] - 8005c92: 2200 movs r2, #0 - 8005c94: 611a str r2, [r3, #16] + 8005c92: 687b ldr r3, [r7, #4] + 8005c94: 681b ldr r3, [r3, #0] + 8005c96: 2200 movs r2, #0 + 8005c98: 611a str r2, [r3, #16] /* Reset DMA Streamx FIFO control register */ hdma->Instance->FCR = (uint32_t)0x00000021U; - 8005c96: 687b ldr r3, [r7, #4] - 8005c98: 681b ldr r3, [r3, #0] - 8005c9a: 2221 movs r2, #33 ; 0x21 - 8005c9c: 615a str r2, [r3, #20] + 8005c9a: 687b ldr r3, [r7, #4] + 8005c9c: 681b ldr r3, [r3, #0] + 8005c9e: 2221 movs r2, #33 ; 0x21 + 8005ca0: 615a str r2, [r3, #20] /* Get DMA steam Base Address */ regs = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - 8005c9e: 6878 ldr r0, [r7, #4] - 8005ca0: f000 f82a bl 8005cf8 - 8005ca4: 4603 mov r3, r0 - 8005ca6: 60fb str r3, [r7, #12] + 8005ca2: 6878 ldr r0, [r7, #4] + 8005ca4: f000 f82a bl 8005cfc + 8005ca8: 4603 mov r3, r0 + 8005caa: 60fb str r3, [r7, #12] /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 8005ca8: 687b ldr r3, [r7, #4] - 8005caa: 6ddb ldr r3, [r3, #92] ; 0x5c - 8005cac: 223f movs r2, #63 ; 0x3f - 8005cae: 409a lsls r2, r3 - 8005cb0: 68fb ldr r3, [r7, #12] - 8005cb2: 609a str r2, [r3, #8] + 8005cac: 687b ldr r3, [r7, #4] + 8005cae: 6ddb ldr r3, [r3, #92] ; 0x5c + 8005cb0: 223f movs r2, #63 ; 0x3f + 8005cb2: 409a lsls r2, r3 + 8005cb4: 68fb ldr r3, [r7, #12] + 8005cb6: 609a str r2, [r3, #8] /* Clean all callbacks */ hdma->XferCpltCallback = NULL; - 8005cb4: 687b ldr r3, [r7, #4] - 8005cb6: 2200 movs r2, #0 - 8005cb8: 63da str r2, [r3, #60] ; 0x3c + 8005cb8: 687b ldr r3, [r7, #4] + 8005cba: 2200 movs r2, #0 + 8005cbc: 63da str r2, [r3, #60] ; 0x3c hdma->XferHalfCpltCallback = NULL; - 8005cba: 687b ldr r3, [r7, #4] - 8005cbc: 2200 movs r2, #0 - 8005cbe: 641a str r2, [r3, #64] ; 0x40 + 8005cbe: 687b ldr r3, [r7, #4] + 8005cc0: 2200 movs r2, #0 + 8005cc2: 641a str r2, [r3, #64] ; 0x40 hdma->XferM1CpltCallback = NULL; - 8005cc0: 687b ldr r3, [r7, #4] - 8005cc2: 2200 movs r2, #0 - 8005cc4: 645a str r2, [r3, #68] ; 0x44 + 8005cc4: 687b ldr r3, [r7, #4] + 8005cc6: 2200 movs r2, #0 + 8005cc8: 645a str r2, [r3, #68] ; 0x44 hdma->XferM1HalfCpltCallback = NULL; - 8005cc6: 687b ldr r3, [r7, #4] - 8005cc8: 2200 movs r2, #0 - 8005cca: 649a str r2, [r3, #72] ; 0x48 + 8005cca: 687b ldr r3, [r7, #4] + 8005ccc: 2200 movs r2, #0 + 8005cce: 649a str r2, [r3, #72] ; 0x48 hdma->XferErrorCallback = NULL; - 8005ccc: 687b ldr r3, [r7, #4] - 8005cce: 2200 movs r2, #0 - 8005cd0: 64da str r2, [r3, #76] ; 0x4c + 8005cd0: 687b ldr r3, [r7, #4] + 8005cd2: 2200 movs r2, #0 + 8005cd4: 64da str r2, [r3, #76] ; 0x4c hdma->XferAbortCallback = NULL; - 8005cd2: 687b ldr r3, [r7, #4] - 8005cd4: 2200 movs r2, #0 - 8005cd6: 651a str r2, [r3, #80] ; 0x50 + 8005cd6: 687b ldr r3, [r7, #4] + 8005cd8: 2200 movs r2, #0 + 8005cda: 651a str r2, [r3, #80] ; 0x50 /* Reset the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 8005cd8: 687b ldr r3, [r7, #4] - 8005cda: 2200 movs r2, #0 - 8005cdc: 655a str r2, [r3, #84] ; 0x54 + 8005cdc: 687b ldr r3, [r7, #4] + 8005cde: 2200 movs r2, #0 + 8005ce0: 655a str r2, [r3, #84] ; 0x54 /* Reset the DMA state */ hdma->State = HAL_DMA_STATE_RESET; - 8005cde: 687b ldr r3, [r7, #4] - 8005ce0: 2200 movs r2, #0 - 8005ce2: f883 2035 strb.w r2, [r3, #53] ; 0x35 + 8005ce2: 687b ldr r3, [r7, #4] + 8005ce4: 2200 movs r2, #0 + 8005ce6: f883 2035 strb.w r2, [r3, #53] ; 0x35 /* Release Lock */ __HAL_UNLOCK(hdma); - 8005ce6: 687b ldr r3, [r7, #4] - 8005ce8: 2200 movs r2, #0 - 8005cea: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 8005cea: 687b ldr r3, [r7, #4] + 8005cec: 2200 movs r2, #0 + 8005cee: f883 2034 strb.w r2, [r3, #52] ; 0x34 return HAL_OK; - 8005cee: 2300 movs r3, #0 + 8005cf2: 2300 movs r3, #0 } - 8005cf0: 4618 mov r0, r3 - 8005cf2: 3710 adds r7, #16 - 8005cf4: 46bd mov sp, r7 - 8005cf6: bd80 pop {r7, pc} + 8005cf4: 4618 mov r0, r3 + 8005cf6: 3710 adds r7, #16 + 8005cf8: 46bd mov sp, r7 + 8005cfa: bd80 pop {r7, pc} -08005cf8 : +08005cfc : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval Stream base address */ static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma) { - 8005cf8: b480 push {r7} - 8005cfa: b085 sub sp, #20 - 8005cfc: af00 add r7, sp, #0 - 8005cfe: 6078 str r0, [r7, #4] + 8005cfc: b480 push {r7} + 8005cfe: b085 sub sp, #20 + 8005d00: af00 add r7, sp, #0 + 8005d02: 6078 str r0, [r7, #4] uint32_t stream_number = (((uint32_t)hdma->Instance & 0xFFU) - 16U) / 24U; - 8005d00: 687b ldr r3, [r7, #4] - 8005d02: 681b ldr r3, [r3, #0] - 8005d04: b2db uxtb r3, r3 - 8005d06: 3b10 subs r3, #16 - 8005d08: 4a13 ldr r2, [pc, #76] ; (8005d58 ) - 8005d0a: fba2 2303 umull r2, r3, r2, r3 - 8005d0e: 091b lsrs r3, r3, #4 - 8005d10: 60fb str r3, [r7, #12] + 8005d04: 687b ldr r3, [r7, #4] + 8005d06: 681b ldr r3, [r3, #0] + 8005d08: b2db uxtb r3, r3 + 8005d0a: 3b10 subs r3, #16 + 8005d0c: 4a13 ldr r2, [pc, #76] ; (8005d5c ) + 8005d0e: fba2 2303 umull r2, r3, r2, r3 + 8005d12: 091b lsrs r3, r3, #4 + 8005d14: 60fb str r3, [r7, #12] /* lookup table for necessary bitshift of flags within status registers */ static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U}; hdma->StreamIndex = flagBitshiftOffset[stream_number]; - 8005d12: 4a12 ldr r2, [pc, #72] ; (8005d5c ) - 8005d14: 68fb ldr r3, [r7, #12] - 8005d16: 4413 add r3, r2 - 8005d18: 781b ldrb r3, [r3, #0] - 8005d1a: 461a mov r2, r3 - 8005d1c: 687b ldr r3, [r7, #4] - 8005d1e: 65da str r2, [r3, #92] ; 0x5c + 8005d16: 4a12 ldr r2, [pc, #72] ; (8005d60 ) + 8005d18: 68fb ldr r3, [r7, #12] + 8005d1a: 4413 add r3, r2 + 8005d1c: 781b ldrb r3, [r3, #0] + 8005d1e: 461a mov r2, r3 + 8005d20: 687b ldr r3, [r7, #4] + 8005d22: 65da str r2, [r3, #92] ; 0x5c if (stream_number > 3U) - 8005d20: 68fb ldr r3, [r7, #12] - 8005d22: 2b03 cmp r3, #3 - 8005d24: d908 bls.n 8005d38 + 8005d24: 68fb ldr r3, [r7, #12] + 8005d26: 2b03 cmp r3, #3 + 8005d28: d908 bls.n 8005d3c { /* return pointer to HISR and HIFCR */ hdma->StreamBaseAddress = (((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)) + 4U); - 8005d26: 687b ldr r3, [r7, #4] - 8005d28: 681b ldr r3, [r3, #0] - 8005d2a: 461a mov r2, r3 - 8005d2c: 4b0c ldr r3, [pc, #48] ; (8005d60 ) - 8005d2e: 4013 ands r3, r2 - 8005d30: 1d1a adds r2, r3, #4 - 8005d32: 687b ldr r3, [r7, #4] - 8005d34: 659a str r2, [r3, #88] ; 0x58 - 8005d36: e006 b.n 8005d46 + 8005d2a: 687b ldr r3, [r7, #4] + 8005d2c: 681b ldr r3, [r3, #0] + 8005d2e: 461a mov r2, r3 + 8005d30: 4b0c ldr r3, [pc, #48] ; (8005d64 ) + 8005d32: 4013 ands r3, r2 + 8005d34: 1d1a adds r2, r3, #4 + 8005d36: 687b ldr r3, [r7, #4] + 8005d38: 659a str r2, [r3, #88] ; 0x58 + 8005d3a: e006 b.n 8005d4a } else { /* return pointer to LISR and LIFCR */ hdma->StreamBaseAddress = ((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)); - 8005d38: 687b ldr r3, [r7, #4] - 8005d3a: 681b ldr r3, [r3, #0] - 8005d3c: 461a mov r2, r3 - 8005d3e: 4b08 ldr r3, [pc, #32] ; (8005d60 ) - 8005d40: 4013 ands r3, r2 - 8005d42: 687a ldr r2, [r7, #4] - 8005d44: 6593 str r3, [r2, #88] ; 0x58 + 8005d3c: 687b ldr r3, [r7, #4] + 8005d3e: 681b ldr r3, [r3, #0] + 8005d40: 461a mov r2, r3 + 8005d42: 4b08 ldr r3, [pc, #32] ; (8005d64 ) + 8005d44: 4013 ands r3, r2 + 8005d46: 687a ldr r2, [r7, #4] + 8005d48: 6593 str r3, [r2, #88] ; 0x58 } return hdma->StreamBaseAddress; - 8005d46: 687b ldr r3, [r7, #4] - 8005d48: 6d9b ldr r3, [r3, #88] ; 0x58 -} - 8005d4a: 4618 mov r0, r3 - 8005d4c: 3714 adds r7, #20 - 8005d4e: 46bd mov sp, r7 - 8005d50: f85d 7b04 ldr.w r7, [sp], #4 - 8005d54: 4770 bx lr - 8005d56: bf00 nop - 8005d58: aaaaaaab .word 0xaaaaaaab - 8005d5c: 080226d0 .word 0x080226d0 - 8005d60: fffffc00 .word 0xfffffc00 - -08005d64 : + 8005d4a: 687b ldr r3, [r7, #4] + 8005d4c: 6d9b ldr r3, [r3, #88] ; 0x58 +} + 8005d4e: 4618 mov r0, r3 + 8005d50: 3714 adds r7, #20 + 8005d52: 46bd mov sp, r7 + 8005d54: f85d 7b04 ldr.w r7, [sp], #4 + 8005d58: 4770 bx lr + 8005d5a: bf00 nop + 8005d5c: aaaaaaab .word 0xaaaaaaab + 8005d60: 080226e0 .word 0x080226e0 + 8005d64: fffffc00 .word 0xfffffc00 + +08005d68 : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma) { - 8005d64: b480 push {r7} - 8005d66: b085 sub sp, #20 - 8005d68: af00 add r7, sp, #0 - 8005d6a: 6078 str r0, [r7, #4] + 8005d68: b480 push {r7} + 8005d6a: b085 sub sp, #20 + 8005d6c: af00 add r7, sp, #0 + 8005d6e: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8005d6c: 2300 movs r3, #0 - 8005d6e: 73fb strb r3, [r7, #15] + 8005d70: 2300 movs r3, #0 + 8005d72: 73fb strb r3, [r7, #15] uint32_t tmp = hdma->Init.FIFOThreshold; - 8005d70: 687b ldr r3, [r7, #4] - 8005d72: 6a9b ldr r3, [r3, #40] ; 0x28 - 8005d74: 60bb str r3, [r7, #8] + 8005d74: 687b ldr r3, [r7, #4] + 8005d76: 6a9b ldr r3, [r3, #40] ; 0x28 + 8005d78: 60bb str r3, [r7, #8] /* Memory Data size equal to Byte */ if(hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE) - 8005d76: 687b ldr r3, [r7, #4] - 8005d78: 699b ldr r3, [r3, #24] - 8005d7a: 2b00 cmp r3, #0 - 8005d7c: d11f bne.n 8005dbe + 8005d7a: 687b ldr r3, [r7, #4] + 8005d7c: 699b ldr r3, [r3, #24] + 8005d7e: 2b00 cmp r3, #0 + 8005d80: d11f bne.n 8005dc2 { switch (tmp) - 8005d7e: 68bb ldr r3, [r7, #8] - 8005d80: 2b03 cmp r3, #3 - 8005d82: d855 bhi.n 8005e30 - 8005d84: a201 add r2, pc, #4 ; (adr r2, 8005d8c ) - 8005d86: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005d8a: bf00 nop - 8005d8c: 08005d9d .word 0x08005d9d - 8005d90: 08005daf .word 0x08005daf - 8005d94: 08005d9d .word 0x08005d9d - 8005d98: 08005e31 .word 0x08005e31 + 8005d82: 68bb ldr r3, [r7, #8] + 8005d84: 2b03 cmp r3, #3 + 8005d86: d855 bhi.n 8005e34 + 8005d88: a201 add r2, pc, #4 ; (adr r2, 8005d90 ) + 8005d8a: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005d8e: bf00 nop + 8005d90: 08005da1 .word 0x08005da1 + 8005d94: 08005db3 .word 0x08005db3 + 8005d98: 08005da1 .word 0x08005da1 + 8005d9c: 08005e35 .word 0x08005e35 { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8005d9c: 687b ldr r3, [r7, #4] - 8005d9e: 6adb ldr r3, [r3, #44] ; 0x2c - 8005da0: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8005da4: 2b00 cmp r3, #0 - 8005da6: d045 beq.n 8005e34 + 8005da0: 687b ldr r3, [r7, #4] + 8005da2: 6adb ldr r3, [r3, #44] ; 0x2c + 8005da4: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 + 8005da8: 2b00 cmp r3, #0 + 8005daa: d045 beq.n 8005e38 { status = HAL_ERROR; - 8005da8: 2301 movs r3, #1 - 8005daa: 73fb strb r3, [r7, #15] + 8005dac: 2301 movs r3, #1 + 8005dae: 73fb strb r3, [r7, #15] } break; - 8005dac: e042 b.n 8005e34 + 8005db0: e042 b.n 8005e38 case DMA_FIFO_THRESHOLD_HALFFULL: if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 8005dae: 687b ldr r3, [r7, #4] - 8005db0: 6adb ldr r3, [r3, #44] ; 0x2c - 8005db2: f1b3 7fc0 cmp.w r3, #25165824 ; 0x1800000 - 8005db6: d13f bne.n 8005e38 + 8005db2: 687b ldr r3, [r7, #4] + 8005db4: 6adb ldr r3, [r3, #44] ; 0x2c + 8005db6: f1b3 7fc0 cmp.w r3, #25165824 ; 0x1800000 + 8005dba: d13f bne.n 8005e3c { status = HAL_ERROR; - 8005db8: 2301 movs r3, #1 - 8005dba: 73fb strb r3, [r7, #15] + 8005dbc: 2301 movs r3, #1 + 8005dbe: 73fb strb r3, [r7, #15] } break; - 8005dbc: e03c b.n 8005e38 + 8005dc0: e03c b.n 8005e3c break; } } /* Memory Data size equal to Half-Word */ else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD) - 8005dbe: 687b ldr r3, [r7, #4] - 8005dc0: 699b ldr r3, [r3, #24] - 8005dc2: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 8005dc6: d121 bne.n 8005e0c + 8005dc2: 687b ldr r3, [r7, #4] + 8005dc4: 699b ldr r3, [r3, #24] + 8005dc6: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 + 8005dca: d121 bne.n 8005e10 { switch (tmp) - 8005dc8: 68bb ldr r3, [r7, #8] - 8005dca: 2b03 cmp r3, #3 - 8005dcc: d836 bhi.n 8005e3c - 8005dce: a201 add r2, pc, #4 ; (adr r2, 8005dd4 ) - 8005dd0: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005dd4: 08005de5 .word 0x08005de5 - 8005dd8: 08005deb .word 0x08005deb - 8005ddc: 08005de5 .word 0x08005de5 - 8005de0: 08005dfd .word 0x08005dfd + 8005dcc: 68bb ldr r3, [r7, #8] + 8005dce: 2b03 cmp r3, #3 + 8005dd0: d836 bhi.n 8005e40 + 8005dd2: a201 add r2, pc, #4 ; (adr r2, 8005dd8 ) + 8005dd4: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005dd8: 08005de9 .word 0x08005de9 + 8005ddc: 08005def .word 0x08005def + 8005de0: 08005de9 .word 0x08005de9 + 8005de4: 08005e01 .word 0x08005e01 { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: status = HAL_ERROR; - 8005de4: 2301 movs r3, #1 - 8005de6: 73fb strb r3, [r7, #15] + 8005de8: 2301 movs r3, #1 + 8005dea: 73fb strb r3, [r7, #15] break; - 8005de8: e02f b.n 8005e4a + 8005dec: e02f b.n 8005e4e case DMA_FIFO_THRESHOLD_HALFFULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8005dea: 687b ldr r3, [r7, #4] - 8005dec: 6adb ldr r3, [r3, #44] ; 0x2c - 8005dee: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8005df2: 2b00 cmp r3, #0 - 8005df4: d024 beq.n 8005e40 + 8005dee: 687b ldr r3, [r7, #4] + 8005df0: 6adb ldr r3, [r3, #44] ; 0x2c + 8005df2: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 + 8005df6: 2b00 cmp r3, #0 + 8005df8: d024 beq.n 8005e44 { status = HAL_ERROR; - 8005df6: 2301 movs r3, #1 - 8005df8: 73fb strb r3, [r7, #15] + 8005dfa: 2301 movs r3, #1 + 8005dfc: 73fb strb r3, [r7, #15] } break; - 8005dfa: e021 b.n 8005e40 + 8005dfe: e021 b.n 8005e44 case DMA_FIFO_THRESHOLD_FULL: if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 8005dfc: 687b ldr r3, [r7, #4] - 8005dfe: 6adb ldr r3, [r3, #44] ; 0x2c - 8005e00: f1b3 7fc0 cmp.w r3, #25165824 ; 0x1800000 - 8005e04: d11e bne.n 8005e44 + 8005e00: 687b ldr r3, [r7, #4] + 8005e02: 6adb ldr r3, [r3, #44] ; 0x2c + 8005e04: f1b3 7fc0 cmp.w r3, #25165824 ; 0x1800000 + 8005e08: d11e bne.n 8005e48 { status = HAL_ERROR; - 8005e06: 2301 movs r3, #1 - 8005e08: 73fb strb r3, [r7, #15] + 8005e0a: 2301 movs r3, #1 + 8005e0c: 73fb strb r3, [r7, #15] } break; - 8005e0a: e01b b.n 8005e44 + 8005e0e: e01b b.n 8005e48 } /* Memory Data size equal to Word */ else { switch (tmp) - 8005e0c: 68bb ldr r3, [r7, #8] - 8005e0e: 2b02 cmp r3, #2 - 8005e10: d902 bls.n 8005e18 - 8005e12: 2b03 cmp r3, #3 - 8005e14: d003 beq.n 8005e1e + 8005e10: 68bb ldr r3, [r7, #8] + 8005e12: 2b02 cmp r3, #2 + 8005e14: d902 bls.n 8005e1c + 8005e16: 2b03 cmp r3, #3 + 8005e18: d003 beq.n 8005e22 { status = HAL_ERROR; } break; default: break; - 8005e16: e018 b.n 8005e4a + 8005e1a: e018 b.n 8005e4e status = HAL_ERROR; - 8005e18: 2301 movs r3, #1 - 8005e1a: 73fb strb r3, [r7, #15] + 8005e1c: 2301 movs r3, #1 + 8005e1e: 73fb strb r3, [r7, #15] break; - 8005e1c: e015 b.n 8005e4a + 8005e20: e015 b.n 8005e4e if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8005e1e: 687b ldr r3, [r7, #4] - 8005e20: 6adb ldr r3, [r3, #44] ; 0x2c - 8005e22: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8005e26: 2b00 cmp r3, #0 - 8005e28: d00e beq.n 8005e48 + 8005e22: 687b ldr r3, [r7, #4] + 8005e24: 6adb ldr r3, [r3, #44] ; 0x2c + 8005e26: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 + 8005e2a: 2b00 cmp r3, #0 + 8005e2c: d00e beq.n 8005e4c status = HAL_ERROR; - 8005e2a: 2301 movs r3, #1 - 8005e2c: 73fb strb r3, [r7, #15] - break; - 8005e2e: e00b b.n 8005e48 + 8005e2e: 2301 movs r3, #1 + 8005e30: 73fb strb r3, [r7, #15] break; - 8005e30: bf00 nop - 8005e32: e00a b.n 8005e4a + 8005e32: e00b b.n 8005e4c break; 8005e34: bf00 nop - 8005e36: e008 b.n 8005e4a + 8005e36: e00a b.n 8005e4e break; 8005e38: bf00 nop - 8005e3a: e006 b.n 8005e4a + 8005e3a: e008 b.n 8005e4e break; 8005e3c: bf00 nop - 8005e3e: e004 b.n 8005e4a + 8005e3e: e006 b.n 8005e4e break; 8005e40: bf00 nop - 8005e42: e002 b.n 8005e4a - break; - 8005e44: bf00 nop - 8005e46: e000 b.n 8005e4a + 8005e42: e004 b.n 8005e4e break; + 8005e44: bf00 nop + 8005e46: e002 b.n 8005e4e + break; 8005e48: bf00 nop + 8005e4a: e000 b.n 8005e4e + break; + 8005e4c: bf00 nop } } return status; - 8005e4a: 7bfb ldrb r3, [r7, #15] + 8005e4e: 7bfb ldrb r3, [r7, #15] } - 8005e4c: 4618 mov r0, r3 - 8005e4e: 3714 adds r7, #20 - 8005e50: 46bd mov sp, r7 - 8005e52: f85d 7b04 ldr.w r7, [sp], #4 - 8005e56: 4770 bx lr + 8005e50: 4618 mov r0, r3 + 8005e52: 3714 adds r7, #20 + 8005e54: 46bd mov sp, r7 + 8005e56: f85d 7b04 ldr.w r7, [sp], #4 + 8005e5a: 4770 bx lr -08005e58 : +08005e5c : * @param hdma2d pointer to a DMA2D_HandleTypeDef structure that contains * the configuration information for the DMA2D. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA2D_Init(DMA2D_HandleTypeDef *hdma2d) { - 8005e58: b580 push {r7, lr} - 8005e5a: b082 sub sp, #8 - 8005e5c: af00 add r7, sp, #0 - 8005e5e: 6078 str r0, [r7, #4] + 8005e5c: b580 push {r7, lr} + 8005e5e: b082 sub sp, #8 + 8005e60: af00 add r7, sp, #0 + 8005e62: 6078 str r0, [r7, #4] /* Check the DMA2D peripheral state */ if(hdma2d == NULL) - 8005e60: 687b ldr r3, [r7, #4] - 8005e62: 2b00 cmp r3, #0 - 8005e64: d101 bne.n 8005e6a + 8005e64: 687b ldr r3, [r7, #4] + 8005e66: 2b00 cmp r3, #0 + 8005e68: d101 bne.n 8005e6e { return HAL_ERROR; - 8005e66: 2301 movs r3, #1 - 8005e68: e039 b.n 8005ede + 8005e6a: 2301 movs r3, #1 + 8005e6c: e039 b.n 8005ee2 /* Init the low level hardware */ hdma2d->MspInitCallback(hdma2d); } #else if(hdma2d->State == HAL_DMA2D_STATE_RESET) - 8005e6a: 687b ldr r3, [r7, #4] - 8005e6c: f893 3039 ldrb.w r3, [r3, #57] ; 0x39 - 8005e70: b2db uxtb r3, r3 - 8005e72: 2b00 cmp r3, #0 - 8005e74: d106 bne.n 8005e84 + 8005e6e: 687b ldr r3, [r7, #4] + 8005e70: f893 3039 ldrb.w r3, [r3, #57] ; 0x39 + 8005e74: b2db uxtb r3, r3 + 8005e76: 2b00 cmp r3, #0 + 8005e78: d106 bne.n 8005e88 { /* Allocate lock resource and initialize it */ hdma2d->Lock = HAL_UNLOCKED; - 8005e76: 687b ldr r3, [r7, #4] - 8005e78: 2200 movs r2, #0 - 8005e7a: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 8005e7a: 687b ldr r3, [r7, #4] + 8005e7c: 2200 movs r2, #0 + 8005e7e: f883 2038 strb.w r2, [r3, #56] ; 0x38 /* Init the low level hardware */ HAL_DMA2D_MspInit(hdma2d); - 8005e7e: 6878 ldr r0, [r7, #4] - 8005e80: f7fe fa14 bl 80042ac + 8005e82: 6878 ldr r0, [r7, #4] + 8005e84: f7fe fa14 bl 80042b0 } #endif /* (USE_HAL_DMA2D_REGISTER_CALLBACKS) */ /* Change DMA2D peripheral state */ hdma2d->State = HAL_DMA2D_STATE_BUSY; - 8005e84: 687b ldr r3, [r7, #4] - 8005e86: 2202 movs r2, #2 - 8005e88: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 8005e88: 687b ldr r3, [r7, #4] + 8005e8a: 2202 movs r2, #2 + 8005e8c: f883 2039 strb.w r2, [r3, #57] ; 0x39 /* DMA2D CR register configuration -------------------------------------------*/ MODIFY_REG(hdma2d->Instance->CR, DMA2D_CR_MODE, hdma2d->Init.Mode); - 8005e8c: 687b ldr r3, [r7, #4] - 8005e8e: 681b ldr r3, [r3, #0] - 8005e90: 681b ldr r3, [r3, #0] - 8005e92: f423 3140 bic.w r1, r3, #196608 ; 0x30000 - 8005e96: 687b ldr r3, [r7, #4] - 8005e98: 685a ldr r2, [r3, #4] + 8005e90: 687b ldr r3, [r7, #4] + 8005e92: 681b ldr r3, [r3, #0] + 8005e94: 681b ldr r3, [r3, #0] + 8005e96: f423 3140 bic.w r1, r3, #196608 ; 0x30000 8005e9a: 687b ldr r3, [r7, #4] - 8005e9c: 681b ldr r3, [r3, #0] - 8005e9e: 430a orrs r2, r1 - 8005ea0: 601a str r2, [r3, #0] + 8005e9c: 685a ldr r2, [r3, #4] + 8005e9e: 687b ldr r3, [r7, #4] + 8005ea0: 681b ldr r3, [r3, #0] + 8005ea2: 430a orrs r2, r1 + 8005ea4: 601a str r2, [r3, #0] /* DMA2D OPFCCR register configuration ---------------------------------------*/ MODIFY_REG(hdma2d->Instance->OPFCCR, DMA2D_OPFCCR_CM, hdma2d->Init.ColorMode); - 8005ea2: 687b ldr r3, [r7, #4] - 8005ea4: 681b ldr r3, [r3, #0] - 8005ea6: 6b5b ldr r3, [r3, #52] ; 0x34 - 8005ea8: f023 0107 bic.w r1, r3, #7 - 8005eac: 687b ldr r3, [r7, #4] - 8005eae: 689a ldr r2, [r3, #8] + 8005ea6: 687b ldr r3, [r7, #4] + 8005ea8: 681b ldr r3, [r3, #0] + 8005eaa: 6b5b ldr r3, [r3, #52] ; 0x34 + 8005eac: f023 0107 bic.w r1, r3, #7 8005eb0: 687b ldr r3, [r7, #4] - 8005eb2: 681b ldr r3, [r3, #0] - 8005eb4: 430a orrs r2, r1 - 8005eb6: 635a str r2, [r3, #52] ; 0x34 + 8005eb2: 689a ldr r2, [r3, #8] + 8005eb4: 687b ldr r3, [r7, #4] + 8005eb6: 681b ldr r3, [r3, #0] + 8005eb8: 430a orrs r2, r1 + 8005eba: 635a str r2, [r3, #52] ; 0x34 /* DMA2D OOR register configuration ------------------------------------------*/ MODIFY_REG(hdma2d->Instance->OOR, DMA2D_OOR_LO, hdma2d->Init.OutputOffset); - 8005eb8: 687b ldr r3, [r7, #4] - 8005eba: 681b ldr r3, [r3, #0] - 8005ebc: 6c1a ldr r2, [r3, #64] ; 0x40 - 8005ebe: 4b0a ldr r3, [pc, #40] ; (8005ee8 ) - 8005ec0: 4013 ands r3, r2 - 8005ec2: 687a ldr r2, [r7, #4] - 8005ec4: 68d1 ldr r1, [r2, #12] + 8005ebc: 687b ldr r3, [r7, #4] + 8005ebe: 681b ldr r3, [r3, #0] + 8005ec0: 6c1a ldr r2, [r3, #64] ; 0x40 + 8005ec2: 4b0a ldr r3, [pc, #40] ; (8005eec ) + 8005ec4: 4013 ands r3, r2 8005ec6: 687a ldr r2, [r7, #4] - 8005ec8: 6812 ldr r2, [r2, #0] - 8005eca: 430b orrs r3, r1 - 8005ecc: 6413 str r3, [r2, #64] ; 0x40 + 8005ec8: 68d1 ldr r1, [r2, #12] + 8005eca: 687a ldr r2, [r7, #4] + 8005ecc: 6812 ldr r2, [r2, #0] + 8005ece: 430b orrs r3, r1 + 8005ed0: 6413 str r3, [r2, #64] ; 0x40 MODIFY_REG(hdma2d->Instance->OPFCCR,(DMA2D_OPFCCR_AI|DMA2D_OPFCCR_RBS), ((hdma2d->Init.AlphaInverted << DMA2D_OPFCCR_AI_Pos) | (hdma2d->Init.RedBlueSwap << DMA2D_OPFCCR_RBS_Pos))); #endif /* DMA2D_ALPHA_INV_RB_SWAP_SUPPORT */ /* Update error code */ hdma2d->ErrorCode = HAL_DMA2D_ERROR_NONE; - 8005ece: 687b ldr r3, [r7, #4] - 8005ed0: 2200 movs r2, #0 - 8005ed2: 63da str r2, [r3, #60] ; 0x3c + 8005ed2: 687b ldr r3, [r7, #4] + 8005ed4: 2200 movs r2, #0 + 8005ed6: 63da str r2, [r3, #60] ; 0x3c /* Initialize the DMA2D state*/ hdma2d->State = HAL_DMA2D_STATE_READY; - 8005ed4: 687b ldr r3, [r7, #4] - 8005ed6: 2201 movs r2, #1 - 8005ed8: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 8005ed8: 687b ldr r3, [r7, #4] + 8005eda: 2201 movs r2, #1 + 8005edc: f883 2039 strb.w r2, [r3, #57] ; 0x39 return HAL_OK; - 8005edc: 2300 movs r3, #0 + 8005ee0: 2300 movs r3, #0 } - 8005ede: 4618 mov r0, r3 - 8005ee0: 3708 adds r7, #8 - 8005ee2: 46bd mov sp, r7 - 8005ee4: bd80 pop {r7, pc} - 8005ee6: bf00 nop - 8005ee8: ffffc000 .word 0xffffc000 + 8005ee2: 4618 mov r0, r3 + 8005ee4: 3708 adds r7, #8 + 8005ee6: 46bd mov sp, r7 + 8005ee8: bd80 pop {r7, pc} + 8005eea: bf00 nop + 8005eec: ffffc000 .word 0xffffc000 -08005eec : +08005ef0 : * @param Width The width of data to be transferred from source to destination (expressed in number of pixels per line). * @param Height The height of data to be transferred from source to destination (expressed in number of lines). * @retval HAL status */ HAL_StatusTypeDef HAL_DMA2D_Start(DMA2D_HandleTypeDef *hdma2d, uint32_t pdata, uint32_t DstAddress, uint32_t Width, uint32_t Height) { - 8005eec: b580 push {r7, lr} - 8005eee: b086 sub sp, #24 - 8005ef0: af02 add r7, sp, #8 - 8005ef2: 60f8 str r0, [r7, #12] - 8005ef4: 60b9 str r1, [r7, #8] - 8005ef6: 607a str r2, [r7, #4] - 8005ef8: 603b str r3, [r7, #0] + 8005ef0: b580 push {r7, lr} + 8005ef2: b086 sub sp, #24 + 8005ef4: af02 add r7, sp, #8 + 8005ef6: 60f8 str r0, [r7, #12] + 8005ef8: 60b9 str r1, [r7, #8] + 8005efa: 607a str r2, [r7, #4] + 8005efc: 603b str r3, [r7, #0] /* Check the parameters */ assert_param(IS_DMA2D_LINE(Height)); assert_param(IS_DMA2D_PIXEL(Width)); /* Process locked */ __HAL_LOCK(hdma2d); - 8005efa: 68fb ldr r3, [r7, #12] - 8005efc: f893 3038 ldrb.w r3, [r3, #56] ; 0x38 - 8005f00: 2b01 cmp r3, #1 - 8005f02: d101 bne.n 8005f08 - 8005f04: 2302 movs r3, #2 - 8005f06: e018 b.n 8005f3a - 8005f08: 68fb ldr r3, [r7, #12] - 8005f0a: 2201 movs r2, #1 - 8005f0c: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 8005efe: 68fb ldr r3, [r7, #12] + 8005f00: f893 3038 ldrb.w r3, [r3, #56] ; 0x38 + 8005f04: 2b01 cmp r3, #1 + 8005f06: d101 bne.n 8005f0c + 8005f08: 2302 movs r3, #2 + 8005f0a: e018 b.n 8005f3e + 8005f0c: 68fb ldr r3, [r7, #12] + 8005f0e: 2201 movs r2, #1 + 8005f10: f883 2038 strb.w r2, [r3, #56] ; 0x38 /* Change DMA2D peripheral state */ hdma2d->State = HAL_DMA2D_STATE_BUSY; - 8005f10: 68fb ldr r3, [r7, #12] - 8005f12: 2202 movs r2, #2 - 8005f14: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 8005f14: 68fb ldr r3, [r7, #12] + 8005f16: 2202 movs r2, #2 + 8005f18: f883 2039 strb.w r2, [r3, #57] ; 0x39 /* Configure the source, destination address and the data size */ DMA2D_SetConfig(hdma2d, pdata, DstAddress, Width, Height); - 8005f18: 69bb ldr r3, [r7, #24] - 8005f1a: 9300 str r3, [sp, #0] - 8005f1c: 683b ldr r3, [r7, #0] - 8005f1e: 687a ldr r2, [r7, #4] - 8005f20: 68b9 ldr r1, [r7, #8] - 8005f22: 68f8 ldr r0, [r7, #12] - 8005f24: f000 f988 bl 8006238 + 8005f1c: 69bb ldr r3, [r7, #24] + 8005f1e: 9300 str r3, [sp, #0] + 8005f20: 683b ldr r3, [r7, #0] + 8005f22: 687a ldr r2, [r7, #4] + 8005f24: 68b9 ldr r1, [r7, #8] + 8005f26: 68f8 ldr r0, [r7, #12] + 8005f28: f000 f988 bl 800623c /* Enable the Peripheral */ __HAL_DMA2D_ENABLE(hdma2d); - 8005f28: 68fb ldr r3, [r7, #12] - 8005f2a: 681b ldr r3, [r3, #0] - 8005f2c: 681a ldr r2, [r3, #0] - 8005f2e: 68fb ldr r3, [r7, #12] - 8005f30: 681b ldr r3, [r3, #0] - 8005f32: f042 0201 orr.w r2, r2, #1 - 8005f36: 601a str r2, [r3, #0] + 8005f2c: 68fb ldr r3, [r7, #12] + 8005f2e: 681b ldr r3, [r3, #0] + 8005f30: 681a ldr r2, [r3, #0] + 8005f32: 68fb ldr r3, [r7, #12] + 8005f34: 681b ldr r3, [r3, #0] + 8005f36: f042 0201 orr.w r2, r2, #1 + 8005f3a: 601a str r2, [r3, #0] return HAL_OK; - 8005f38: 2300 movs r3, #0 + 8005f3c: 2300 movs r3, #0 } - 8005f3a: 4618 mov r0, r3 - 8005f3c: 3710 adds r7, #16 - 8005f3e: 46bd mov sp, r7 - 8005f40: bd80 pop {r7, pc} + 8005f3e: 4618 mov r0, r3 + 8005f40: 3710 adds r7, #16 + 8005f42: 46bd mov sp, r7 + 8005f44: bd80 pop {r7, pc} -08005f42 : +08005f46 : * the configuration information for the DMA2D. * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_DMA2D_PollForTransfer(DMA2D_HandleTypeDef *hdma2d, uint32_t Timeout) { - 8005f42: b580 push {r7, lr} - 8005f44: b086 sub sp, #24 - 8005f46: af00 add r7, sp, #0 - 8005f48: 6078 str r0, [r7, #4] - 8005f4a: 6039 str r1, [r7, #0] + 8005f46: b580 push {r7, lr} + 8005f48: b086 sub sp, #24 + 8005f4a: af00 add r7, sp, #0 + 8005f4c: 6078 str r0, [r7, #4] + 8005f4e: 6039 str r1, [r7, #0] uint32_t tickstart; uint32_t layer_start; __IO uint32_t isrflags = 0x0U; - 8005f4c: 2300 movs r3, #0 - 8005f4e: 60fb str r3, [r7, #12] + 8005f50: 2300 movs r3, #0 + 8005f52: 60fb str r3, [r7, #12] /* Polling for DMA2D transfer */ if((hdma2d->Instance->CR & DMA2D_CR_START) != 0U) - 8005f50: 687b ldr r3, [r7, #4] - 8005f52: 681b ldr r3, [r3, #0] - 8005f54: 681b ldr r3, [r3, #0] - 8005f56: f003 0301 and.w r3, r3, #1 - 8005f5a: 2b00 cmp r3, #0 - 8005f5c: d056 beq.n 800600c + 8005f54: 687b ldr r3, [r7, #4] + 8005f56: 681b ldr r3, [r3, #0] + 8005f58: 681b ldr r3, [r3, #0] + 8005f5a: f003 0301 and.w r3, r3, #1 + 8005f5e: 2b00 cmp r3, #0 + 8005f60: d056 beq.n 8006010 { /* Get tick */ tickstart = HAL_GetTick(); - 8005f5e: f7fe ffaf bl 8004ec0 - 8005f62: 6178 str r0, [r7, #20] + 8005f62: f7fe ffaf bl 8004ec4 + 8005f66: 6178 str r0, [r7, #20] while(__HAL_DMA2D_GET_FLAG(hdma2d, DMA2D_FLAG_TC) == 0U) - 8005f64: e04b b.n 8005ffe + 8005f68: e04b b.n 8006002 { isrflags = READ_REG(hdma2d->Instance->ISR); - 8005f66: 687b ldr r3, [r7, #4] - 8005f68: 681b ldr r3, [r3, #0] - 8005f6a: 685b ldr r3, [r3, #4] - 8005f6c: 60fb str r3, [r7, #12] + 8005f6a: 687b ldr r3, [r7, #4] + 8005f6c: 681b ldr r3, [r3, #0] + 8005f6e: 685b ldr r3, [r3, #4] + 8005f70: 60fb str r3, [r7, #12] if ((isrflags & (DMA2D_FLAG_CE|DMA2D_FLAG_TE)) != 0U) - 8005f6e: 68fb ldr r3, [r7, #12] - 8005f70: f003 0321 and.w r3, r3, #33 ; 0x21 - 8005f74: 2b00 cmp r3, #0 - 8005f76: d023 beq.n 8005fc0 + 8005f72: 68fb ldr r3, [r7, #12] + 8005f74: f003 0321 and.w r3, r3, #33 ; 0x21 + 8005f78: 2b00 cmp r3, #0 + 8005f7a: d023 beq.n 8005fc4 { if ((isrflags & DMA2D_FLAG_CE) != 0U) - 8005f78: 68fb ldr r3, [r7, #12] - 8005f7a: f003 0320 and.w r3, r3, #32 - 8005f7e: 2b00 cmp r3, #0 - 8005f80: d005 beq.n 8005f8e + 8005f7c: 68fb ldr r3, [r7, #12] + 8005f7e: f003 0320 and.w r3, r3, #32 + 8005f82: 2b00 cmp r3, #0 + 8005f84: d005 beq.n 8005f92 { hdma2d->ErrorCode |= HAL_DMA2D_ERROR_CE; - 8005f82: 687b ldr r3, [r7, #4] - 8005f84: 6bdb ldr r3, [r3, #60] ; 0x3c - 8005f86: f043 0202 orr.w r2, r3, #2 - 8005f8a: 687b ldr r3, [r7, #4] - 8005f8c: 63da str r2, [r3, #60] ; 0x3c + 8005f86: 687b ldr r3, [r7, #4] + 8005f88: 6bdb ldr r3, [r3, #60] ; 0x3c + 8005f8a: f043 0202 orr.w r2, r3, #2 + 8005f8e: 687b ldr r3, [r7, #4] + 8005f90: 63da str r2, [r3, #60] ; 0x3c } if ((isrflags & DMA2D_FLAG_TE) != 0U) - 8005f8e: 68fb ldr r3, [r7, #12] - 8005f90: f003 0301 and.w r3, r3, #1 - 8005f94: 2b00 cmp r3, #0 - 8005f96: d005 beq.n 8005fa4 + 8005f92: 68fb ldr r3, [r7, #12] + 8005f94: f003 0301 and.w r3, r3, #1 + 8005f98: 2b00 cmp r3, #0 + 8005f9a: d005 beq.n 8005fa8 { hdma2d->ErrorCode |= HAL_DMA2D_ERROR_TE; - 8005f98: 687b ldr r3, [r7, #4] - 8005f9a: 6bdb ldr r3, [r3, #60] ; 0x3c - 8005f9c: f043 0201 orr.w r2, r3, #1 - 8005fa0: 687b ldr r3, [r7, #4] - 8005fa2: 63da str r2, [r3, #60] ; 0x3c + 8005f9c: 687b ldr r3, [r7, #4] + 8005f9e: 6bdb ldr r3, [r3, #60] ; 0x3c + 8005fa0: f043 0201 orr.w r2, r3, #1 + 8005fa4: 687b ldr r3, [r7, #4] + 8005fa6: 63da str r2, [r3, #60] ; 0x3c } /* Clear the transfer and configuration error flags */ __HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_CE | DMA2D_FLAG_TE); - 8005fa4: 687b ldr r3, [r7, #4] - 8005fa6: 681b ldr r3, [r3, #0] - 8005fa8: 2221 movs r2, #33 ; 0x21 - 8005faa: 609a str r2, [r3, #8] + 8005fa8: 687b ldr r3, [r7, #4] + 8005faa: 681b ldr r3, [r3, #0] + 8005fac: 2221 movs r2, #33 ; 0x21 + 8005fae: 609a str r2, [r3, #8] /* Change DMA2D state */ hdma2d->State = HAL_DMA2D_STATE_ERROR; - 8005fac: 687b ldr r3, [r7, #4] - 8005fae: 2204 movs r2, #4 - 8005fb0: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 8005fb0: 687b ldr r3, [r7, #4] + 8005fb2: 2204 movs r2, #4 + 8005fb4: f883 2039 strb.w r2, [r3, #57] ; 0x39 /* Process unlocked */ __HAL_UNLOCK(hdma2d); - 8005fb4: 687b ldr r3, [r7, #4] - 8005fb6: 2200 movs r2, #0 - 8005fb8: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 8005fb8: 687b ldr r3, [r7, #4] + 8005fba: 2200 movs r2, #0 + 8005fbc: f883 2038 strb.w r2, [r3, #56] ; 0x38 return HAL_ERROR; - 8005fbc: 2301 movs r3, #1 - 8005fbe: e0a5 b.n 800610c + 8005fc0: 2301 movs r3, #1 + 8005fc2: e0a5 b.n 8006110 } /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) - 8005fc0: 683b ldr r3, [r7, #0] - 8005fc2: f1b3 3fff cmp.w r3, #4294967295 - 8005fc6: d01a beq.n 8005ffe + 8005fc4: 683b ldr r3, [r7, #0] + 8005fc6: f1b3 3fff cmp.w r3, #4294967295 + 8005fca: d01a beq.n 8006002 { if(((HAL_GetTick() - tickstart ) > Timeout)||(Timeout == 0U)) - 8005fc8: f7fe ff7a bl 8004ec0 - 8005fcc: 4602 mov r2, r0 - 8005fce: 697b ldr r3, [r7, #20] - 8005fd0: 1ad3 subs r3, r2, r3 - 8005fd2: 683a ldr r2, [r7, #0] - 8005fd4: 429a cmp r2, r3 - 8005fd6: d302 bcc.n 8005fde - 8005fd8: 683b ldr r3, [r7, #0] - 8005fda: 2b00 cmp r3, #0 - 8005fdc: d10f bne.n 8005ffe + 8005fcc: f7fe ff7a bl 8004ec4 + 8005fd0: 4602 mov r2, r0 + 8005fd2: 697b ldr r3, [r7, #20] + 8005fd4: 1ad3 subs r3, r2, r3 + 8005fd6: 683a ldr r2, [r7, #0] + 8005fd8: 429a cmp r2, r3 + 8005fda: d302 bcc.n 8005fe2 + 8005fdc: 683b ldr r3, [r7, #0] + 8005fde: 2b00 cmp r3, #0 + 8005fe0: d10f bne.n 8006002 { /* Update error code */ hdma2d->ErrorCode |= HAL_DMA2D_ERROR_TIMEOUT; - 8005fde: 687b ldr r3, [r7, #4] - 8005fe0: 6bdb ldr r3, [r3, #60] ; 0x3c - 8005fe2: f043 0220 orr.w r2, r3, #32 - 8005fe6: 687b ldr r3, [r7, #4] - 8005fe8: 63da str r2, [r3, #60] ; 0x3c + 8005fe2: 687b ldr r3, [r7, #4] + 8005fe4: 6bdb ldr r3, [r3, #60] ; 0x3c + 8005fe6: f043 0220 orr.w r2, r3, #32 + 8005fea: 687b ldr r3, [r7, #4] + 8005fec: 63da str r2, [r3, #60] ; 0x3c /* Change the DMA2D state */ hdma2d->State = HAL_DMA2D_STATE_TIMEOUT; - 8005fea: 687b ldr r3, [r7, #4] - 8005fec: 2203 movs r2, #3 - 8005fee: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 8005fee: 687b ldr r3, [r7, #4] + 8005ff0: 2203 movs r2, #3 + 8005ff2: f883 2039 strb.w r2, [r3, #57] ; 0x39 /* Process unlocked */ __HAL_UNLOCK(hdma2d); - 8005ff2: 687b ldr r3, [r7, #4] - 8005ff4: 2200 movs r2, #0 - 8005ff6: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 8005ff6: 687b ldr r3, [r7, #4] + 8005ff8: 2200 movs r2, #0 + 8005ffa: f883 2038 strb.w r2, [r3, #56] ; 0x38 return HAL_TIMEOUT; - 8005ffa: 2303 movs r3, #3 - 8005ffc: e086 b.n 800610c + 8005ffe: 2303 movs r3, #3 + 8006000: e086 b.n 8006110 while(__HAL_DMA2D_GET_FLAG(hdma2d, DMA2D_FLAG_TC) == 0U) - 8005ffe: 687b ldr r3, [r7, #4] - 8006000: 681b ldr r3, [r3, #0] - 8006002: 685b ldr r3, [r3, #4] - 8006004: f003 0302 and.w r3, r3, #2 - 8006008: 2b00 cmp r3, #0 - 800600a: d0ac beq.n 8005f66 + 8006002: 687b ldr r3, [r7, #4] + 8006004: 681b ldr r3, [r3, #0] + 8006006: 685b ldr r3, [r3, #4] + 8006008: f003 0302 and.w r3, r3, #2 + 800600c: 2b00 cmp r3, #0 + 800600e: d0ac beq.n 8005f6a } } } } /* Polling for CLUT loading (foreground or background) */ layer_start = hdma2d->Instance->FGPFCCR & DMA2D_FGPFCCR_START; - 800600c: 687b ldr r3, [r7, #4] - 800600e: 681b ldr r3, [r3, #0] - 8006010: 69db ldr r3, [r3, #28] - 8006012: f003 0320 and.w r3, r3, #32 - 8006016: 613b str r3, [r7, #16] + 8006010: 687b ldr r3, [r7, #4] + 8006012: 681b ldr r3, [r3, #0] + 8006014: 69db ldr r3, [r3, #28] + 8006016: f003 0320 and.w r3, r3, #32 + 800601a: 613b str r3, [r7, #16] layer_start |= hdma2d->Instance->BGPFCCR & DMA2D_BGPFCCR_START; - 8006018: 687b ldr r3, [r7, #4] - 800601a: 681b ldr r3, [r3, #0] - 800601c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800601e: f003 0320 and.w r3, r3, #32 - 8006022: 693a ldr r2, [r7, #16] - 8006024: 4313 orrs r3, r2 - 8006026: 613b str r3, [r7, #16] + 800601c: 687b ldr r3, [r7, #4] + 800601e: 681b ldr r3, [r3, #0] + 8006020: 6a5b ldr r3, [r3, #36] ; 0x24 + 8006022: f003 0320 and.w r3, r3, #32 + 8006026: 693a ldr r2, [r7, #16] + 8006028: 4313 orrs r3, r2 + 800602a: 613b str r3, [r7, #16] if (layer_start != 0U) - 8006028: 693b ldr r3, [r7, #16] - 800602a: 2b00 cmp r3, #0 - 800602c: d061 beq.n 80060f2 + 800602c: 693b ldr r3, [r7, #16] + 800602e: 2b00 cmp r3, #0 + 8006030: d061 beq.n 80060f6 { /* Get tick */ tickstart = HAL_GetTick(); - 800602e: f7fe ff47 bl 8004ec0 - 8006032: 6178 str r0, [r7, #20] + 8006032: f7fe ff47 bl 8004ec4 + 8006036: 6178 str r0, [r7, #20] while(__HAL_DMA2D_GET_FLAG(hdma2d, DMA2D_FLAG_CTC) == 0U) - 8006034: e056 b.n 80060e4 + 8006038: e056 b.n 80060e8 { isrflags = READ_REG(hdma2d->Instance->ISR); - 8006036: 687b ldr r3, [r7, #4] - 8006038: 681b ldr r3, [r3, #0] - 800603a: 685b ldr r3, [r3, #4] - 800603c: 60fb str r3, [r7, #12] + 800603a: 687b ldr r3, [r7, #4] + 800603c: 681b ldr r3, [r3, #0] + 800603e: 685b ldr r3, [r3, #4] + 8006040: 60fb str r3, [r7, #12] if ((isrflags & (DMA2D_FLAG_CAE|DMA2D_FLAG_CE|DMA2D_FLAG_TE)) != 0U) - 800603e: 68fb ldr r3, [r7, #12] - 8006040: f003 0329 and.w r3, r3, #41 ; 0x29 - 8006044: 2b00 cmp r3, #0 - 8006046: d02e beq.n 80060a6 + 8006042: 68fb ldr r3, [r7, #12] + 8006044: f003 0329 and.w r3, r3, #41 ; 0x29 + 8006048: 2b00 cmp r3, #0 + 800604a: d02e beq.n 80060aa { if ((isrflags & DMA2D_FLAG_CAE) != 0U) - 8006048: 68fb ldr r3, [r7, #12] - 800604a: f003 0308 and.w r3, r3, #8 - 800604e: 2b00 cmp r3, #0 - 8006050: d005 beq.n 800605e + 800604c: 68fb ldr r3, [r7, #12] + 800604e: f003 0308 and.w r3, r3, #8 + 8006052: 2b00 cmp r3, #0 + 8006054: d005 beq.n 8006062 { hdma2d->ErrorCode |= HAL_DMA2D_ERROR_CAE; - 8006052: 687b ldr r3, [r7, #4] - 8006054: 6bdb ldr r3, [r3, #60] ; 0x3c - 8006056: f043 0204 orr.w r2, r3, #4 - 800605a: 687b ldr r3, [r7, #4] - 800605c: 63da str r2, [r3, #60] ; 0x3c + 8006056: 687b ldr r3, [r7, #4] + 8006058: 6bdb ldr r3, [r3, #60] ; 0x3c + 800605a: f043 0204 orr.w r2, r3, #4 + 800605e: 687b ldr r3, [r7, #4] + 8006060: 63da str r2, [r3, #60] ; 0x3c } if ((isrflags & DMA2D_FLAG_CE) != 0U) - 800605e: 68fb ldr r3, [r7, #12] - 8006060: f003 0320 and.w r3, r3, #32 - 8006064: 2b00 cmp r3, #0 - 8006066: d005 beq.n 8006074 + 8006062: 68fb ldr r3, [r7, #12] + 8006064: f003 0320 and.w r3, r3, #32 + 8006068: 2b00 cmp r3, #0 + 800606a: d005 beq.n 8006078 { hdma2d->ErrorCode |= HAL_DMA2D_ERROR_CE; - 8006068: 687b ldr r3, [r7, #4] - 800606a: 6bdb ldr r3, [r3, #60] ; 0x3c - 800606c: f043 0202 orr.w r2, r3, #2 - 8006070: 687b ldr r3, [r7, #4] - 8006072: 63da str r2, [r3, #60] ; 0x3c + 800606c: 687b ldr r3, [r7, #4] + 800606e: 6bdb ldr r3, [r3, #60] ; 0x3c + 8006070: f043 0202 orr.w r2, r3, #2 + 8006074: 687b ldr r3, [r7, #4] + 8006076: 63da str r2, [r3, #60] ; 0x3c } if ((isrflags & DMA2D_FLAG_TE) != 0U) - 8006074: 68fb ldr r3, [r7, #12] - 8006076: f003 0301 and.w r3, r3, #1 - 800607a: 2b00 cmp r3, #0 - 800607c: d005 beq.n 800608a + 8006078: 68fb ldr r3, [r7, #12] + 800607a: f003 0301 and.w r3, r3, #1 + 800607e: 2b00 cmp r3, #0 + 8006080: d005 beq.n 800608e { hdma2d->ErrorCode |= HAL_DMA2D_ERROR_TE; - 800607e: 687b ldr r3, [r7, #4] - 8006080: 6bdb ldr r3, [r3, #60] ; 0x3c - 8006082: f043 0201 orr.w r2, r3, #1 - 8006086: 687b ldr r3, [r7, #4] - 8006088: 63da str r2, [r3, #60] ; 0x3c + 8006082: 687b ldr r3, [r7, #4] + 8006084: 6bdb ldr r3, [r3, #60] ; 0x3c + 8006086: f043 0201 orr.w r2, r3, #1 + 800608a: 687b ldr r3, [r7, #4] + 800608c: 63da str r2, [r3, #60] ; 0x3c } /* Clear the CLUT Access Error, Configuration Error and Transfer Error flags */ __HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_CAE | DMA2D_FLAG_CE | DMA2D_FLAG_TE); - 800608a: 687b ldr r3, [r7, #4] - 800608c: 681b ldr r3, [r3, #0] - 800608e: 2229 movs r2, #41 ; 0x29 - 8006090: 609a str r2, [r3, #8] + 800608e: 687b ldr r3, [r7, #4] + 8006090: 681b ldr r3, [r3, #0] + 8006092: 2229 movs r2, #41 ; 0x29 + 8006094: 609a str r2, [r3, #8] /* Change DMA2D state */ hdma2d->State= HAL_DMA2D_STATE_ERROR; - 8006092: 687b ldr r3, [r7, #4] - 8006094: 2204 movs r2, #4 - 8006096: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 8006096: 687b ldr r3, [r7, #4] + 8006098: 2204 movs r2, #4 + 800609a: f883 2039 strb.w r2, [r3, #57] ; 0x39 /* Process unlocked */ __HAL_UNLOCK(hdma2d); - 800609a: 687b ldr r3, [r7, #4] - 800609c: 2200 movs r2, #0 - 800609e: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 800609e: 687b ldr r3, [r7, #4] + 80060a0: 2200 movs r2, #0 + 80060a2: f883 2038 strb.w r2, [r3, #56] ; 0x38 return HAL_ERROR; - 80060a2: 2301 movs r3, #1 - 80060a4: e032 b.n 800610c + 80060a6: 2301 movs r3, #1 + 80060a8: e032 b.n 8006110 } /* Check for the Timeout */ if(Timeout != HAL_MAX_DELAY) - 80060a6: 683b ldr r3, [r7, #0] - 80060a8: f1b3 3fff cmp.w r3, #4294967295 - 80060ac: d01a beq.n 80060e4 + 80060aa: 683b ldr r3, [r7, #0] + 80060ac: f1b3 3fff cmp.w r3, #4294967295 + 80060b0: d01a beq.n 80060e8 { if(((HAL_GetTick() - tickstart ) > Timeout)||(Timeout == 0U)) - 80060ae: f7fe ff07 bl 8004ec0 - 80060b2: 4602 mov r2, r0 - 80060b4: 697b ldr r3, [r7, #20] - 80060b6: 1ad3 subs r3, r2, r3 - 80060b8: 683a ldr r2, [r7, #0] - 80060ba: 429a cmp r2, r3 - 80060bc: d302 bcc.n 80060c4 - 80060be: 683b ldr r3, [r7, #0] - 80060c0: 2b00 cmp r3, #0 - 80060c2: d10f bne.n 80060e4 + 80060b2: f7fe ff07 bl 8004ec4 + 80060b6: 4602 mov r2, r0 + 80060b8: 697b ldr r3, [r7, #20] + 80060ba: 1ad3 subs r3, r2, r3 + 80060bc: 683a ldr r2, [r7, #0] + 80060be: 429a cmp r2, r3 + 80060c0: d302 bcc.n 80060c8 + 80060c2: 683b ldr r3, [r7, #0] + 80060c4: 2b00 cmp r3, #0 + 80060c6: d10f bne.n 80060e8 { /* Update error code */ hdma2d->ErrorCode |= HAL_DMA2D_ERROR_TIMEOUT; - 80060c4: 687b ldr r3, [r7, #4] - 80060c6: 6bdb ldr r3, [r3, #60] ; 0x3c - 80060c8: f043 0220 orr.w r2, r3, #32 - 80060cc: 687b ldr r3, [r7, #4] - 80060ce: 63da str r2, [r3, #60] ; 0x3c + 80060c8: 687b ldr r3, [r7, #4] + 80060ca: 6bdb ldr r3, [r3, #60] ; 0x3c + 80060cc: f043 0220 orr.w r2, r3, #32 + 80060d0: 687b ldr r3, [r7, #4] + 80060d2: 63da str r2, [r3, #60] ; 0x3c /* Change the DMA2D state */ hdma2d->State= HAL_DMA2D_STATE_TIMEOUT; - 80060d0: 687b ldr r3, [r7, #4] - 80060d2: 2203 movs r2, #3 - 80060d4: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 80060d4: 687b ldr r3, [r7, #4] + 80060d6: 2203 movs r2, #3 + 80060d8: f883 2039 strb.w r2, [r3, #57] ; 0x39 /* Process unlocked */ __HAL_UNLOCK(hdma2d); - 80060d8: 687b ldr r3, [r7, #4] - 80060da: 2200 movs r2, #0 - 80060dc: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 80060dc: 687b ldr r3, [r7, #4] + 80060de: 2200 movs r2, #0 + 80060e0: f883 2038 strb.w r2, [r3, #56] ; 0x38 return HAL_TIMEOUT; - 80060e0: 2303 movs r3, #3 - 80060e2: e013 b.n 800610c + 80060e4: 2303 movs r3, #3 + 80060e6: e013 b.n 8006110 while(__HAL_DMA2D_GET_FLAG(hdma2d, DMA2D_FLAG_CTC) == 0U) - 80060e4: 687b ldr r3, [r7, #4] - 80060e6: 681b ldr r3, [r3, #0] - 80060e8: 685b ldr r3, [r3, #4] - 80060ea: f003 0310 and.w r3, r3, #16 - 80060ee: 2b00 cmp r3, #0 - 80060f0: d0a1 beq.n 8006036 + 80060e8: 687b ldr r3, [r7, #4] + 80060ea: 681b ldr r3, [r3, #0] + 80060ec: 685b ldr r3, [r3, #4] + 80060ee: f003 0310 and.w r3, r3, #16 + 80060f2: 2b00 cmp r3, #0 + 80060f4: d0a1 beq.n 800603a } } } /* Clear the transfer complete and CLUT loading flags */ __HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_TC|DMA2D_FLAG_CTC); - 80060f2: 687b ldr r3, [r7, #4] - 80060f4: 681b ldr r3, [r3, #0] - 80060f6: 2212 movs r2, #18 - 80060f8: 609a str r2, [r3, #8] + 80060f6: 687b ldr r3, [r7, #4] + 80060f8: 681b ldr r3, [r3, #0] + 80060fa: 2212 movs r2, #18 + 80060fc: 609a str r2, [r3, #8] /* Change DMA2D state */ hdma2d->State = HAL_DMA2D_STATE_READY; - 80060fa: 687b ldr r3, [r7, #4] - 80060fc: 2201 movs r2, #1 - 80060fe: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 80060fe: 687b ldr r3, [r7, #4] + 8006100: 2201 movs r2, #1 + 8006102: f883 2039 strb.w r2, [r3, #57] ; 0x39 /* Process unlocked */ __HAL_UNLOCK(hdma2d); - 8006102: 687b ldr r3, [r7, #4] - 8006104: 2200 movs r2, #0 - 8006106: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 8006106: 687b ldr r3, [r7, #4] + 8006108: 2200 movs r2, #0 + 800610a: f883 2038 strb.w r2, [r3, #56] ; 0x38 return HAL_OK; - 800610a: 2300 movs r3, #0 + 800610e: 2300 movs r3, #0 } - 800610c: 4618 mov r0, r3 - 800610e: 3718 adds r7, #24 - 8006110: 46bd mov sp, r7 - 8006112: bd80 pop {r7, pc} + 8006110: 4618 mov r0, r3 + 8006112: 3718 adds r7, #24 + 8006114: 46bd mov sp, r7 + 8006116: bd80 pop {r7, pc} -08006114 : +08006118 : * This parameter can be one of the following values: * DMA2D_BACKGROUND_LAYER(0) / DMA2D_FOREGROUND_LAYER(1) * @retval HAL status */ HAL_StatusTypeDef HAL_DMA2D_ConfigLayer(DMA2D_HandleTypeDef *hdma2d, uint32_t LayerIdx) { - 8006114: b480 push {r7} - 8006116: b087 sub sp, #28 - 8006118: af00 add r7, sp, #0 - 800611a: 6078 str r0, [r7, #4] - 800611c: 6039 str r1, [r7, #0] + 8006118: b480 push {r7} + 800611a: b087 sub sp, #28 + 800611c: af00 add r7, sp, #0 + 800611e: 6078 str r0, [r7, #4] + 8006120: 6039 str r1, [r7, #0] uint32_t regMask, regValue; /* Check the parameters */ assert_param(IS_DMA2D_LAYER(LayerIdx)); assert_param(IS_DMA2D_OFFSET(hdma2d->LayerCfg[LayerIdx].InputOffset)); if(hdma2d->Init.Mode != DMA2D_R2M) - 800611e: 687b ldr r3, [r7, #4] - 8006120: 685b ldr r3, [r3, #4] - 8006122: f5b3 3f40 cmp.w r3, #196608 ; 0x30000 + 8006122: 687b ldr r3, [r7, #4] + 8006124: 685b ldr r3, [r3, #4] + 8006126: f5b3 3f40 cmp.w r3, #196608 ; 0x30000 assert_param(IS_DMA2D_ALPHA_INVERTED(hdma2d->LayerCfg[LayerIdx].AlphaInverted)); assert_param(IS_DMA2D_RB_SWAP(hdma2d->LayerCfg[LayerIdx].RedBlueSwap)); #endif /* DMA2D_ALPHA_INV_RB_SWAP_SUPPORT */ /* Process locked */ __HAL_LOCK(hdma2d); - 8006126: 687b ldr r3, [r7, #4] - 8006128: f893 3038 ldrb.w r3, [r3, #56] ; 0x38 - 800612c: 2b01 cmp r3, #1 - 800612e: d101 bne.n 8006134 - 8006130: 2302 movs r3, #2 - 8006132: e079 b.n 8006228 - 8006134: 687b ldr r3, [r7, #4] - 8006136: 2201 movs r2, #1 - 8006138: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 800612a: 687b ldr r3, [r7, #4] + 800612c: f893 3038 ldrb.w r3, [r3, #56] ; 0x38 + 8006130: 2b01 cmp r3, #1 + 8006132: d101 bne.n 8006138 + 8006134: 2302 movs r3, #2 + 8006136: e079 b.n 800622c + 8006138: 687b ldr r3, [r7, #4] + 800613a: 2201 movs r2, #1 + 800613c: f883 2038 strb.w r2, [r3, #56] ; 0x38 /* Change DMA2D peripheral state */ hdma2d->State = HAL_DMA2D_STATE_BUSY; - 800613c: 687b ldr r3, [r7, #4] - 800613e: 2202 movs r2, #2 - 8006140: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 8006140: 687b ldr r3, [r7, #4] + 8006142: 2202 movs r2, #2 + 8006144: f883 2039 strb.w r2, [r3, #57] ; 0x39 pLayerCfg = &hdma2d->LayerCfg[LayerIdx]; - 8006144: 683b ldr r3, [r7, #0] - 8006146: 011b lsls r3, r3, #4 - 8006148: 3318 adds r3, #24 - 800614a: 687a ldr r2, [r7, #4] - 800614c: 4413 add r3, r2 - 800614e: 613b str r3, [r7, #16] + 8006148: 683b ldr r3, [r7, #0] + 800614a: 011b lsls r3, r3, #4 + 800614c: 3318 adds r3, #24 + 800614e: 687a ldr r2, [r7, #4] + 8006150: 4413 add r3, r2 + 8006152: 613b str r3, [r7, #16] #if defined (DMA2D_ALPHA_INV_RB_SWAP_SUPPORT) regValue = pLayerCfg->InputColorMode | (pLayerCfg->AlphaMode << DMA2D_BGPFCCR_AM_Pos) |\ (pLayerCfg->AlphaInverted << DMA2D_BGPFCCR_AI_Pos) | (pLayerCfg->RedBlueSwap << DMA2D_BGPFCCR_RBS_Pos); regMask = (DMA2D_BGPFCCR_CM | DMA2D_BGPFCCR_AM | DMA2D_BGPFCCR_ALPHA | DMA2D_BGPFCCR_AI | DMA2D_BGPFCCR_RBS); #else regValue = pLayerCfg->InputColorMode | (pLayerCfg->AlphaMode << DMA2D_BGPFCCR_AM_Pos); - 8006150: 693b ldr r3, [r7, #16] - 8006152: 685a ldr r2, [r3, #4] 8006154: 693b ldr r3, [r7, #16] - 8006156: 689b ldr r3, [r3, #8] - 8006158: 041b lsls r3, r3, #16 - 800615a: 4313 orrs r3, r2 - 800615c: 617b str r3, [r7, #20] + 8006156: 685a ldr r2, [r3, #4] + 8006158: 693b ldr r3, [r7, #16] + 800615a: 689b ldr r3, [r3, #8] + 800615c: 041b lsls r3, r3, #16 + 800615e: 4313 orrs r3, r2 + 8006160: 617b str r3, [r7, #20] regMask = DMA2D_BGPFCCR_CM | DMA2D_BGPFCCR_AM | DMA2D_BGPFCCR_ALPHA; - 800615e: 4b35 ldr r3, [pc, #212] ; (8006234 ) - 8006160: 60fb str r3, [r7, #12] + 8006162: 4b35 ldr r3, [pc, #212] ; (8006238 ) + 8006164: 60fb str r3, [r7, #12] #endif /* DMA2D_ALPHA_INV_RB_SWAP_SUPPORT */ if ((pLayerCfg->InputColorMode == DMA2D_INPUT_A4) || (pLayerCfg->InputColorMode == DMA2D_INPUT_A8)) - 8006162: 693b ldr r3, [r7, #16] - 8006164: 685b ldr r3, [r3, #4] - 8006166: 2b0a cmp r3, #10 - 8006168: d003 beq.n 8006172 - 800616a: 693b ldr r3, [r7, #16] - 800616c: 685b ldr r3, [r3, #4] - 800616e: 2b09 cmp r3, #9 - 8006170: d107 bne.n 8006182 + 8006166: 693b ldr r3, [r7, #16] + 8006168: 685b ldr r3, [r3, #4] + 800616a: 2b0a cmp r3, #10 + 800616c: d003 beq.n 8006176 + 800616e: 693b ldr r3, [r7, #16] + 8006170: 685b ldr r3, [r3, #4] + 8006172: 2b09 cmp r3, #9 + 8006174: d107 bne.n 8006186 { regValue |= (pLayerCfg->InputAlpha & DMA2D_BGPFCCR_ALPHA); - 8006172: 693b ldr r3, [r7, #16] - 8006174: 68db ldr r3, [r3, #12] - 8006176: f003 437f and.w r3, r3, #4278190080 ; 0xff000000 - 800617a: 697a ldr r2, [r7, #20] - 800617c: 4313 orrs r3, r2 - 800617e: 617b str r3, [r7, #20] - 8006180: e005 b.n 800618e + 8006176: 693b ldr r3, [r7, #16] + 8006178: 68db ldr r3, [r3, #12] + 800617a: f003 437f and.w r3, r3, #4278190080 ; 0xff000000 + 800617e: 697a ldr r2, [r7, #20] + 8006180: 4313 orrs r3, r2 + 8006182: 617b str r3, [r7, #20] + 8006184: e005 b.n 8006192 } else { regValue |= (pLayerCfg->InputAlpha << DMA2D_BGPFCCR_ALPHA_Pos); - 8006182: 693b ldr r3, [r7, #16] - 8006184: 68db ldr r3, [r3, #12] - 8006186: 061b lsls r3, r3, #24 - 8006188: 697a ldr r2, [r7, #20] - 800618a: 4313 orrs r3, r2 - 800618c: 617b str r3, [r7, #20] + 8006186: 693b ldr r3, [r7, #16] + 8006188: 68db ldr r3, [r3, #12] + 800618a: 061b lsls r3, r3, #24 + 800618c: 697a ldr r2, [r7, #20] + 800618e: 4313 orrs r3, r2 + 8006190: 617b str r3, [r7, #20] } /* Configure the background DMA2D layer */ if(LayerIdx == DMA2D_BACKGROUND_LAYER) - 800618e: 683b ldr r3, [r7, #0] - 8006190: 2b00 cmp r3, #0 - 8006192: d120 bne.n 80061d6 + 8006192: 683b ldr r3, [r7, #0] + 8006194: 2b00 cmp r3, #0 + 8006196: d120 bne.n 80061da { /* Write DMA2D BGPFCCR register */ MODIFY_REG(hdma2d->Instance->BGPFCCR, regMask, regValue); - 8006194: 687b ldr r3, [r7, #4] - 8006196: 681b ldr r3, [r3, #0] - 8006198: 6a5a ldr r2, [r3, #36] ; 0x24 - 800619a: 68fb ldr r3, [r7, #12] - 800619c: 43db mvns r3, r3 - 800619e: ea02 0103 and.w r1, r2, r3 - 80061a2: 687b ldr r3, [r7, #4] - 80061a4: 681b ldr r3, [r3, #0] - 80061a6: 697a ldr r2, [r7, #20] - 80061a8: 430a orrs r2, r1 - 80061aa: 625a str r2, [r3, #36] ; 0x24 + 8006198: 687b ldr r3, [r7, #4] + 800619a: 681b ldr r3, [r3, #0] + 800619c: 6a5a ldr r2, [r3, #36] ; 0x24 + 800619e: 68fb ldr r3, [r7, #12] + 80061a0: 43db mvns r3, r3 + 80061a2: ea02 0103 and.w r1, r2, r3 + 80061a6: 687b ldr r3, [r7, #4] + 80061a8: 681b ldr r3, [r3, #0] + 80061aa: 697a ldr r2, [r7, #20] + 80061ac: 430a orrs r2, r1 + 80061ae: 625a str r2, [r3, #36] ; 0x24 /* DMA2D BGOR register configuration -------------------------------------*/ WRITE_REG(hdma2d->Instance->BGOR, pLayerCfg->InputOffset); - 80061ac: 687b ldr r3, [r7, #4] - 80061ae: 681b ldr r3, [r3, #0] - 80061b0: 693a ldr r2, [r7, #16] - 80061b2: 6812 ldr r2, [r2, #0] - 80061b4: 619a str r2, [r3, #24] + 80061b0: 687b ldr r3, [r7, #4] + 80061b2: 681b ldr r3, [r3, #0] + 80061b4: 693a ldr r2, [r7, #16] + 80061b6: 6812 ldr r2, [r2, #0] + 80061b8: 619a str r2, [r3, #24] /* DMA2D BGCOLR register configuration -------------------------------------*/ if ((pLayerCfg->InputColorMode == DMA2D_INPUT_A4) || (pLayerCfg->InputColorMode == DMA2D_INPUT_A8)) - 80061b6: 693b ldr r3, [r7, #16] - 80061b8: 685b ldr r3, [r3, #4] - 80061ba: 2b0a cmp r3, #10 - 80061bc: d003 beq.n 80061c6 - 80061be: 693b ldr r3, [r7, #16] - 80061c0: 685b ldr r3, [r3, #4] - 80061c2: 2b09 cmp r3, #9 - 80061c4: d127 bne.n 8006216 + 80061ba: 693b ldr r3, [r7, #16] + 80061bc: 685b ldr r3, [r3, #4] + 80061be: 2b0a cmp r3, #10 + 80061c0: d003 beq.n 80061ca + 80061c2: 693b ldr r3, [r7, #16] + 80061c4: 685b ldr r3, [r3, #4] + 80061c6: 2b09 cmp r3, #9 + 80061c8: d127 bne.n 800621a { WRITE_REG(hdma2d->Instance->BGCOLR, pLayerCfg->InputAlpha & (DMA2D_BGCOLR_BLUE|DMA2D_BGCOLR_GREEN|DMA2D_BGCOLR_RED)); - 80061c6: 693b ldr r3, [r7, #16] - 80061c8: 68da ldr r2, [r3, #12] - 80061ca: 687b ldr r3, [r7, #4] - 80061cc: 681b ldr r3, [r3, #0] - 80061ce: f022 427f bic.w r2, r2, #4278190080 ; 0xff000000 - 80061d2: 629a str r2, [r3, #40] ; 0x28 - 80061d4: e01f b.n 8006216 + 80061ca: 693b ldr r3, [r7, #16] + 80061cc: 68da ldr r2, [r3, #12] + 80061ce: 687b ldr r3, [r7, #4] + 80061d0: 681b ldr r3, [r3, #0] + 80061d2: f022 427f bic.w r2, r2, #4278190080 ; 0xff000000 + 80061d6: 629a str r2, [r3, #40] ; 0x28 + 80061d8: e01f b.n 800621a else { /* Write DMA2D FGPFCCR register */ MODIFY_REG(hdma2d->Instance->FGPFCCR, regMask, regValue); - 80061d6: 687b ldr r3, [r7, #4] - 80061d8: 681b ldr r3, [r3, #0] - 80061da: 69da ldr r2, [r3, #28] - 80061dc: 68fb ldr r3, [r7, #12] - 80061de: 43db mvns r3, r3 - 80061e0: ea02 0103 and.w r1, r2, r3 - 80061e4: 687b ldr r3, [r7, #4] - 80061e6: 681b ldr r3, [r3, #0] - 80061e8: 697a ldr r2, [r7, #20] - 80061ea: 430a orrs r2, r1 - 80061ec: 61da str r2, [r3, #28] + 80061da: 687b ldr r3, [r7, #4] + 80061dc: 681b ldr r3, [r3, #0] + 80061de: 69da ldr r2, [r3, #28] + 80061e0: 68fb ldr r3, [r7, #12] + 80061e2: 43db mvns r3, r3 + 80061e4: ea02 0103 and.w r1, r2, r3 + 80061e8: 687b ldr r3, [r7, #4] + 80061ea: 681b ldr r3, [r3, #0] + 80061ec: 697a ldr r2, [r7, #20] + 80061ee: 430a orrs r2, r1 + 80061f0: 61da str r2, [r3, #28] /* DMA2D FGOR register configuration -------------------------------------*/ WRITE_REG(hdma2d->Instance->FGOR, pLayerCfg->InputOffset); - 80061ee: 687b ldr r3, [r7, #4] - 80061f0: 681b ldr r3, [r3, #0] - 80061f2: 693a ldr r2, [r7, #16] - 80061f4: 6812 ldr r2, [r2, #0] - 80061f6: 611a str r2, [r3, #16] + 80061f2: 687b ldr r3, [r7, #4] + 80061f4: 681b ldr r3, [r3, #0] + 80061f6: 693a ldr r2, [r7, #16] + 80061f8: 6812 ldr r2, [r2, #0] + 80061fa: 611a str r2, [r3, #16] /* DMA2D FGCOLR register configuration -------------------------------------*/ if ((pLayerCfg->InputColorMode == DMA2D_INPUT_A4) || (pLayerCfg->InputColorMode == DMA2D_INPUT_A8)) - 80061f8: 693b ldr r3, [r7, #16] - 80061fa: 685b ldr r3, [r3, #4] - 80061fc: 2b0a cmp r3, #10 - 80061fe: d003 beq.n 8006208 - 8006200: 693b ldr r3, [r7, #16] - 8006202: 685b ldr r3, [r3, #4] - 8006204: 2b09 cmp r3, #9 - 8006206: d106 bne.n 8006216 + 80061fc: 693b ldr r3, [r7, #16] + 80061fe: 685b ldr r3, [r3, #4] + 8006200: 2b0a cmp r3, #10 + 8006202: d003 beq.n 800620c + 8006204: 693b ldr r3, [r7, #16] + 8006206: 685b ldr r3, [r3, #4] + 8006208: 2b09 cmp r3, #9 + 800620a: d106 bne.n 800621a { WRITE_REG(hdma2d->Instance->FGCOLR, pLayerCfg->InputAlpha & (DMA2D_FGCOLR_BLUE|DMA2D_FGCOLR_GREEN|DMA2D_FGCOLR_RED)); - 8006208: 693b ldr r3, [r7, #16] - 800620a: 68da ldr r2, [r3, #12] - 800620c: 687b ldr r3, [r7, #4] - 800620e: 681b ldr r3, [r3, #0] - 8006210: f022 427f bic.w r2, r2, #4278190080 ; 0xff000000 - 8006214: 621a str r2, [r3, #32] + 800620c: 693b ldr r3, [r7, #16] + 800620e: 68da ldr r2, [r3, #12] + 8006210: 687b ldr r3, [r7, #4] + 8006212: 681b ldr r3, [r3, #0] + 8006214: f022 427f bic.w r2, r2, #4278190080 ; 0xff000000 + 8006218: 621a str r2, [r3, #32] } } /* Initialize the DMA2D state*/ hdma2d->State = HAL_DMA2D_STATE_READY; - 8006216: 687b ldr r3, [r7, #4] - 8006218: 2201 movs r2, #1 - 800621a: f883 2039 strb.w r2, [r3, #57] ; 0x39 + 800621a: 687b ldr r3, [r7, #4] + 800621c: 2201 movs r2, #1 + 800621e: f883 2039 strb.w r2, [r3, #57] ; 0x39 /* Process unlocked */ __HAL_UNLOCK(hdma2d); - 800621e: 687b ldr r3, [r7, #4] - 8006220: 2200 movs r2, #0 - 8006222: f883 2038 strb.w r2, [r3, #56] ; 0x38 + 8006222: 687b ldr r3, [r7, #4] + 8006224: 2200 movs r2, #0 + 8006226: f883 2038 strb.w r2, [r3, #56] ; 0x38 return HAL_OK; - 8006226: 2300 movs r3, #0 + 800622a: 2300 movs r3, #0 } - 8006228: 4618 mov r0, r3 - 800622a: 371c adds r7, #28 - 800622c: 46bd mov sp, r7 - 800622e: f85d 7b04 ldr.w r7, [sp], #4 - 8006232: 4770 bx lr - 8006234: ff03000f .word 0xff03000f + 800622c: 4618 mov r0, r3 + 800622e: 371c adds r7, #28 + 8006230: 46bd mov sp, r7 + 8006232: f85d 7b04 ldr.w r7, [sp], #4 + 8006236: 4770 bx lr + 8006238: ff03000f .word 0xff03000f -08006238 : +0800623c : * @param Width The width of data to be transferred from source to destination. * @param Height The height of data to be transferred from source to destination. * @retval HAL status */ static void DMA2D_SetConfig(DMA2D_HandleTypeDef *hdma2d, uint32_t pdata, uint32_t DstAddress, uint32_t Width, uint32_t Height) { - 8006238: b480 push {r7} - 800623a: b08b sub sp, #44 ; 0x2c - 800623c: af00 add r7, sp, #0 - 800623e: 60f8 str r0, [r7, #12] - 8006240: 60b9 str r1, [r7, #8] - 8006242: 607a str r2, [r7, #4] - 8006244: 603b str r3, [r7, #0] + 800623c: b480 push {r7} + 800623e: b08b sub sp, #44 ; 0x2c + 8006240: af00 add r7, sp, #0 + 8006242: 60f8 str r0, [r7, #12] + 8006244: 60b9 str r1, [r7, #8] + 8006246: 607a str r2, [r7, #4] + 8006248: 603b str r3, [r7, #0] uint32_t tmp2; uint32_t tmp3; uint32_t tmp4; /* Configure DMA2D data size */ MODIFY_REG(hdma2d->Instance->NLR, (DMA2D_NLR_NL|DMA2D_NLR_PL), (Height| (Width << DMA2D_NLR_PL_Pos))); - 8006246: 68fb ldr r3, [r7, #12] - 8006248: 681b ldr r3, [r3, #0] - 800624a: 6c5b ldr r3, [r3, #68] ; 0x44 - 800624c: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 - 8006250: 683b ldr r3, [r7, #0] - 8006252: 041a lsls r2, r3, #16 - 8006254: 6b3b ldr r3, [r7, #48] ; 0x30 - 8006256: 431a orrs r2, r3 - 8006258: 68fb ldr r3, [r7, #12] - 800625a: 681b ldr r3, [r3, #0] - 800625c: 430a orrs r2, r1 - 800625e: 645a str r2, [r3, #68] ; 0x44 + 800624a: 68fb ldr r3, [r7, #12] + 800624c: 681b ldr r3, [r3, #0] + 800624e: 6c5b ldr r3, [r3, #68] ; 0x44 + 8006250: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 + 8006254: 683b ldr r3, [r7, #0] + 8006256: 041a lsls r2, r3, #16 + 8006258: 6b3b ldr r3, [r7, #48] ; 0x30 + 800625a: 431a orrs r2, r3 + 800625c: 68fb ldr r3, [r7, #12] + 800625e: 681b ldr r3, [r3, #0] + 8006260: 430a orrs r2, r1 + 8006262: 645a str r2, [r3, #68] ; 0x44 /* Configure DMA2D destination address */ WRITE_REG(hdma2d->Instance->OMAR, DstAddress); - 8006260: 68fb ldr r3, [r7, #12] - 8006262: 681b ldr r3, [r3, #0] - 8006264: 687a ldr r2, [r7, #4] - 8006266: 63da str r2, [r3, #60] ; 0x3c + 8006264: 68fb ldr r3, [r7, #12] + 8006266: 681b ldr r3, [r3, #0] + 8006268: 687a ldr r2, [r7, #4] + 800626a: 63da str r2, [r3, #60] ; 0x3c /* Register to memory DMA2D mode selected */ if (hdma2d->Init.Mode == DMA2D_R2M) - 8006268: 68fb ldr r3, [r7, #12] - 800626a: 685b ldr r3, [r3, #4] - 800626c: f5b3 3f40 cmp.w r3, #196608 ; 0x30000 - 8006270: d174 bne.n 800635c + 800626c: 68fb ldr r3, [r7, #12] + 800626e: 685b ldr r3, [r3, #4] + 8006270: f5b3 3f40 cmp.w r3, #196608 ; 0x30000 + 8006274: d174 bne.n 8006360 { tmp1 = pdata & DMA2D_OCOLR_ALPHA_1; - 8006272: 68bb ldr r3, [r7, #8] - 8006274: f003 437f and.w r3, r3, #4278190080 ; 0xff000000 - 8006278: 623b str r3, [r7, #32] + 8006276: 68bb ldr r3, [r7, #8] + 8006278: f003 437f and.w r3, r3, #4278190080 ; 0xff000000 + 800627c: 623b str r3, [r7, #32] tmp2 = pdata & DMA2D_OCOLR_RED_1; - 800627a: 68bb ldr r3, [r7, #8] - 800627c: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 8006280: 61fb str r3, [r7, #28] + 800627e: 68bb ldr r3, [r7, #8] + 8006280: f403 037f and.w r3, r3, #16711680 ; 0xff0000 + 8006284: 61fb str r3, [r7, #28] tmp3 = pdata & DMA2D_OCOLR_GREEN_1; - 8006282: 68bb ldr r3, [r7, #8] - 8006284: f403 437f and.w r3, r3, #65280 ; 0xff00 - 8006288: 61bb str r3, [r7, #24] + 8006286: 68bb ldr r3, [r7, #8] + 8006288: f403 437f and.w r3, r3, #65280 ; 0xff00 + 800628c: 61bb str r3, [r7, #24] tmp4 = pdata & DMA2D_OCOLR_BLUE_1; - 800628a: 68bb ldr r3, [r7, #8] - 800628c: b2db uxtb r3, r3 - 800628e: 617b str r3, [r7, #20] + 800628e: 68bb ldr r3, [r7, #8] + 8006290: b2db uxtb r3, r3 + 8006292: 617b str r3, [r7, #20] /* Prepare the value to be written to the OCOLR register according to the color mode */ if (hdma2d->Init.ColorMode == DMA2D_OUTPUT_ARGB8888) - 8006290: 68fb ldr r3, [r7, #12] - 8006292: 689b ldr r3, [r3, #8] - 8006294: 2b00 cmp r3, #0 - 8006296: d108 bne.n 80062aa + 8006294: 68fb ldr r3, [r7, #12] + 8006296: 689b ldr r3, [r3, #8] + 8006298: 2b00 cmp r3, #0 + 800629a: d108 bne.n 80062ae { tmp = (tmp3 | tmp2 | tmp1| tmp4); - 8006298: 69ba ldr r2, [r7, #24] - 800629a: 69fb ldr r3, [r7, #28] - 800629c: 431a orrs r2, r3 - 800629e: 6a3b ldr r3, [r7, #32] - 80062a0: 4313 orrs r3, r2 - 80062a2: 697a ldr r2, [r7, #20] + 800629c: 69ba ldr r2, [r7, #24] + 800629e: 69fb ldr r3, [r7, #28] + 80062a0: 431a orrs r2, r3 + 80062a2: 6a3b ldr r3, [r7, #32] 80062a4: 4313 orrs r3, r2 - 80062a6: 627b str r3, [r7, #36] ; 0x24 - 80062a8: e053 b.n 8006352 + 80062a6: 697a ldr r2, [r7, #20] + 80062a8: 4313 orrs r3, r2 + 80062aa: 627b str r3, [r7, #36] ; 0x24 + 80062ac: e053 b.n 8006356 } else if (hdma2d->Init.ColorMode == DMA2D_OUTPUT_RGB888) - 80062aa: 68fb ldr r3, [r7, #12] - 80062ac: 689b ldr r3, [r3, #8] - 80062ae: 2b01 cmp r3, #1 - 80062b0: d106 bne.n 80062c0 + 80062ae: 68fb ldr r3, [r7, #12] + 80062b0: 689b ldr r3, [r3, #8] + 80062b2: 2b01 cmp r3, #1 + 80062b4: d106 bne.n 80062c4 { tmp = (tmp3 | tmp2 | tmp4); - 80062b2: 69ba ldr r2, [r7, #24] - 80062b4: 69fb ldr r3, [r7, #28] - 80062b6: 4313 orrs r3, r2 - 80062b8: 697a ldr r2, [r7, #20] + 80062b6: 69ba ldr r2, [r7, #24] + 80062b8: 69fb ldr r3, [r7, #28] 80062ba: 4313 orrs r3, r2 - 80062bc: 627b str r3, [r7, #36] ; 0x24 - 80062be: e048 b.n 8006352 + 80062bc: 697a ldr r2, [r7, #20] + 80062be: 4313 orrs r3, r2 + 80062c0: 627b str r3, [r7, #36] ; 0x24 + 80062c2: e048 b.n 8006356 } else if (hdma2d->Init.ColorMode == DMA2D_OUTPUT_RGB565) - 80062c0: 68fb ldr r3, [r7, #12] - 80062c2: 689b ldr r3, [r3, #8] - 80062c4: 2b02 cmp r3, #2 - 80062c6: d111 bne.n 80062ec + 80062c4: 68fb ldr r3, [r7, #12] + 80062c6: 689b ldr r3, [r3, #8] + 80062c8: 2b02 cmp r3, #2 + 80062ca: d111 bne.n 80062f0 { tmp2 = (tmp2 >> 19U); - 80062c8: 69fb ldr r3, [r7, #28] - 80062ca: 0cdb lsrs r3, r3, #19 - 80062cc: 61fb str r3, [r7, #28] + 80062cc: 69fb ldr r3, [r7, #28] + 80062ce: 0cdb lsrs r3, r3, #19 + 80062d0: 61fb str r3, [r7, #28] tmp3 = (tmp3 >> 10U); - 80062ce: 69bb ldr r3, [r7, #24] - 80062d0: 0a9b lsrs r3, r3, #10 - 80062d2: 61bb str r3, [r7, #24] + 80062d2: 69bb ldr r3, [r7, #24] + 80062d4: 0a9b lsrs r3, r3, #10 + 80062d6: 61bb str r3, [r7, #24] tmp4 = (tmp4 >> 3U ); - 80062d4: 697b ldr r3, [r7, #20] - 80062d6: 08db lsrs r3, r3, #3 - 80062d8: 617b str r3, [r7, #20] + 80062d8: 697b ldr r3, [r7, #20] + 80062da: 08db lsrs r3, r3, #3 + 80062dc: 617b str r3, [r7, #20] tmp = ((tmp3 << 5U) | (tmp2 << 11U) | tmp4); - 80062da: 69bb ldr r3, [r7, #24] - 80062dc: 015a lsls r2, r3, #5 - 80062de: 69fb ldr r3, [r7, #28] - 80062e0: 02db lsls r3, r3, #11 - 80062e2: 4313 orrs r3, r2 - 80062e4: 697a ldr r2, [r7, #20] + 80062de: 69bb ldr r3, [r7, #24] + 80062e0: 015a lsls r2, r3, #5 + 80062e2: 69fb ldr r3, [r7, #28] + 80062e4: 02db lsls r3, r3, #11 80062e6: 4313 orrs r3, r2 - 80062e8: 627b str r3, [r7, #36] ; 0x24 - 80062ea: e032 b.n 8006352 + 80062e8: 697a ldr r2, [r7, #20] + 80062ea: 4313 orrs r3, r2 + 80062ec: 627b str r3, [r7, #36] ; 0x24 + 80062ee: e032 b.n 8006356 } else if (hdma2d->Init.ColorMode == DMA2D_OUTPUT_ARGB1555) - 80062ec: 68fb ldr r3, [r7, #12] - 80062ee: 689b ldr r3, [r3, #8] - 80062f0: 2b03 cmp r3, #3 - 80062f2: d117 bne.n 8006324 + 80062f0: 68fb ldr r3, [r7, #12] + 80062f2: 689b ldr r3, [r3, #8] + 80062f4: 2b03 cmp r3, #3 + 80062f6: d117 bne.n 8006328 { tmp1 = (tmp1 >> 31U); - 80062f4: 6a3b ldr r3, [r7, #32] - 80062f6: 0fdb lsrs r3, r3, #31 - 80062f8: 623b str r3, [r7, #32] + 80062f8: 6a3b ldr r3, [r7, #32] + 80062fa: 0fdb lsrs r3, r3, #31 + 80062fc: 623b str r3, [r7, #32] tmp2 = (tmp2 >> 19U); - 80062fa: 69fb ldr r3, [r7, #28] - 80062fc: 0cdb lsrs r3, r3, #19 - 80062fe: 61fb str r3, [r7, #28] + 80062fe: 69fb ldr r3, [r7, #28] + 8006300: 0cdb lsrs r3, r3, #19 + 8006302: 61fb str r3, [r7, #28] tmp3 = (tmp3 >> 11U); - 8006300: 69bb ldr r3, [r7, #24] - 8006302: 0adb lsrs r3, r3, #11 - 8006304: 61bb str r3, [r7, #24] + 8006304: 69bb ldr r3, [r7, #24] + 8006306: 0adb lsrs r3, r3, #11 + 8006308: 61bb str r3, [r7, #24] tmp4 = (tmp4 >> 3U ); - 8006306: 697b ldr r3, [r7, #20] - 8006308: 08db lsrs r3, r3, #3 - 800630a: 617b str r3, [r7, #20] + 800630a: 697b ldr r3, [r7, #20] + 800630c: 08db lsrs r3, r3, #3 + 800630e: 617b str r3, [r7, #20] tmp = ((tmp3 << 5U) | (tmp2 << 10U) | (tmp1 << 15U) | tmp4); - 800630c: 69bb ldr r3, [r7, #24] - 800630e: 015a lsls r2, r3, #5 - 8006310: 69fb ldr r3, [r7, #28] - 8006312: 029b lsls r3, r3, #10 - 8006314: 431a orrs r2, r3 - 8006316: 6a3b ldr r3, [r7, #32] - 8006318: 03db lsls r3, r3, #15 - 800631a: 4313 orrs r3, r2 - 800631c: 697a ldr r2, [r7, #20] + 8006310: 69bb ldr r3, [r7, #24] + 8006312: 015a lsls r2, r3, #5 + 8006314: 69fb ldr r3, [r7, #28] + 8006316: 029b lsls r3, r3, #10 + 8006318: 431a orrs r2, r3 + 800631a: 6a3b ldr r3, [r7, #32] + 800631c: 03db lsls r3, r3, #15 800631e: 4313 orrs r3, r2 - 8006320: 627b str r3, [r7, #36] ; 0x24 - 8006322: e016 b.n 8006352 + 8006320: 697a ldr r2, [r7, #20] + 8006322: 4313 orrs r3, r2 + 8006324: 627b str r3, [r7, #36] ; 0x24 + 8006326: e016 b.n 8006356 } else /* Dhdma2d->Init.ColorMode = DMA2D_OUTPUT_ARGB4444 */ { tmp1 = (tmp1 >> 28U); - 8006324: 6a3b ldr r3, [r7, #32] - 8006326: 0f1b lsrs r3, r3, #28 - 8006328: 623b str r3, [r7, #32] + 8006328: 6a3b ldr r3, [r7, #32] + 800632a: 0f1b lsrs r3, r3, #28 + 800632c: 623b str r3, [r7, #32] tmp2 = (tmp2 >> 20U); - 800632a: 69fb ldr r3, [r7, #28] - 800632c: 0d1b lsrs r3, r3, #20 - 800632e: 61fb str r3, [r7, #28] + 800632e: 69fb ldr r3, [r7, #28] + 8006330: 0d1b lsrs r3, r3, #20 + 8006332: 61fb str r3, [r7, #28] tmp3 = (tmp3 >> 12U); - 8006330: 69bb ldr r3, [r7, #24] - 8006332: 0b1b lsrs r3, r3, #12 - 8006334: 61bb str r3, [r7, #24] + 8006334: 69bb ldr r3, [r7, #24] + 8006336: 0b1b lsrs r3, r3, #12 + 8006338: 61bb str r3, [r7, #24] tmp4 = (tmp4 >> 4U ); - 8006336: 697b ldr r3, [r7, #20] - 8006338: 091b lsrs r3, r3, #4 - 800633a: 617b str r3, [r7, #20] + 800633a: 697b ldr r3, [r7, #20] + 800633c: 091b lsrs r3, r3, #4 + 800633e: 617b str r3, [r7, #20] tmp = ((tmp3 << 4U) | (tmp2 << 8U) | (tmp1 << 12U) | tmp4); - 800633c: 69bb ldr r3, [r7, #24] - 800633e: 011a lsls r2, r3, #4 - 8006340: 69fb ldr r3, [r7, #28] - 8006342: 021b lsls r3, r3, #8 - 8006344: 431a orrs r2, r3 - 8006346: 6a3b ldr r3, [r7, #32] - 8006348: 031b lsls r3, r3, #12 - 800634a: 4313 orrs r3, r2 - 800634c: 697a ldr r2, [r7, #20] + 8006340: 69bb ldr r3, [r7, #24] + 8006342: 011a lsls r2, r3, #4 + 8006344: 69fb ldr r3, [r7, #28] + 8006346: 021b lsls r3, r3, #8 + 8006348: 431a orrs r2, r3 + 800634a: 6a3b ldr r3, [r7, #32] + 800634c: 031b lsls r3, r3, #12 800634e: 4313 orrs r3, r2 - 8006350: 627b str r3, [r7, #36] ; 0x24 + 8006350: 697a ldr r2, [r7, #20] + 8006352: 4313 orrs r3, r2 + 8006354: 627b str r3, [r7, #36] ; 0x24 } /* Write to DMA2D OCOLR register */ WRITE_REG(hdma2d->Instance->OCOLR, tmp); - 8006352: 68fb ldr r3, [r7, #12] - 8006354: 681b ldr r3, [r3, #0] - 8006356: 6a7a ldr r2, [r7, #36] ; 0x24 - 8006358: 639a str r2, [r3, #56] ; 0x38 + 8006356: 68fb ldr r3, [r7, #12] + 8006358: 681b ldr r3, [r3, #0] + 800635a: 6a7a ldr r2, [r7, #36] ; 0x24 + 800635c: 639a str r2, [r3, #56] ; 0x38 else /* M2M, M2M_PFC or M2M_Blending DMA2D Mode */ { /* Configure DMA2D source address */ WRITE_REG(hdma2d->Instance->FGMAR, pdata); } } - 800635a: e003 b.n 8006364 + 800635e: e003 b.n 8006368 WRITE_REG(hdma2d->Instance->FGMAR, pdata); - 800635c: 68fb ldr r3, [r7, #12] - 800635e: 681b ldr r3, [r3, #0] - 8006360: 68ba ldr r2, [r7, #8] - 8006362: 60da str r2, [r3, #12] -} - 8006364: bf00 nop - 8006366: 372c adds r7, #44 ; 0x2c - 8006368: 46bd mov sp, r7 - 800636a: f85d 7b04 ldr.w r7, [sp], #4 - 800636e: 4770 bx lr - -08006370 : + 8006360: 68fb ldr r3, [r7, #12] + 8006362: 681b ldr r3, [r3, #0] + 8006364: 68ba ldr r2, [r7, #8] + 8006366: 60da str r2, [r3, #12] +} + 8006368: bf00 nop + 800636a: 372c adds r7, #44 ; 0x2c + 800636c: 46bd mov sp, r7 + 800636e: f85d 7b04 ldr.w r7, [sp], #4 + 8006372: 4770 bx lr + +08006374 : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_Init(ETH_HandleTypeDef *heth) { - 8006370: b580 push {r7, lr} - 8006372: b088 sub sp, #32 - 8006374: af00 add r7, sp, #0 - 8006376: 6078 str r0, [r7, #4] + 8006374: b580 push {r7, lr} + 8006376: b088 sub sp, #32 + 8006378: af00 add r7, sp, #0 + 800637a: 6078 str r0, [r7, #4] uint32_t tempreg = 0, phyreg = 0; - 8006378: 2300 movs r3, #0 - 800637a: 61fb str r3, [r7, #28] 800637c: 2300 movs r3, #0 - 800637e: 60fb str r3, [r7, #12] + 800637e: 61fb str r3, [r7, #28] + 8006380: 2300 movs r3, #0 + 8006382: 60fb str r3, [r7, #12] uint32_t hclk = 60000000; - 8006380: 4ba9 ldr r3, [pc, #676] ; (8006628 ) - 8006382: 61bb str r3, [r7, #24] + 8006384: 4ba9 ldr r3, [pc, #676] ; (800662c ) + 8006386: 61bb str r3, [r7, #24] uint32_t tickstart = 0; - 8006384: 2300 movs r3, #0 - 8006386: 617b str r3, [r7, #20] - uint32_t err = ETH_SUCCESS; 8006388: 2300 movs r3, #0 - 800638a: 613b str r3, [r7, #16] + 800638a: 617b str r3, [r7, #20] + uint32_t err = ETH_SUCCESS; + 800638c: 2300 movs r3, #0 + 800638e: 613b str r3, [r7, #16] /* Check the ETH peripheral state */ if(heth == NULL) - 800638c: 687b ldr r3, [r7, #4] - 800638e: 2b00 cmp r3, #0 - 8006390: d101 bne.n 8006396 + 8006390: 687b ldr r3, [r7, #4] + 8006392: 2b00 cmp r3, #0 + 8006394: d101 bne.n 800639a { return HAL_ERROR; - 8006392: 2301 movs r3, #1 - 8006394: e183 b.n 800669e + 8006396: 2301 movs r3, #1 + 8006398: e183 b.n 80066a2 assert_param(IS_ETH_AUTONEGOTIATION(heth->Init.AutoNegotiation)); assert_param(IS_ETH_RX_MODE(heth->Init.RxMode)); assert_param(IS_ETH_CHECKSUM_MODE(heth->Init.ChecksumMode)); assert_param(IS_ETH_MEDIA_INTERFACE(heth->Init.MediaInterface)); if(heth->State == HAL_ETH_STATE_RESET) - 8006396: 687b ldr r3, [r7, #4] - 8006398: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 800639c: b2db uxtb r3, r3 - 800639e: 2b00 cmp r3, #0 - 80063a0: d106 bne.n 80063b0 + 800639a: 687b ldr r3, [r7, #4] + 800639c: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 + 80063a0: b2db uxtb r3, r3 + 80063a2: 2b00 cmp r3, #0 + 80063a4: d106 bne.n 80063b4 { /* Allocate lock resource and initialize it */ heth->Lock = HAL_UNLOCKED; - 80063a2: 687b ldr r3, [r7, #4] - 80063a4: 2200 movs r2, #0 - 80063a6: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 80063a6: 687b ldr r3, [r7, #4] + 80063a8: 2200 movs r2, #0 + 80063aa: f883 2045 strb.w r2, [r3, #69] ; 0x45 } heth->MspInitCallback(heth); #else /* Init the low level hardware : GPIO, CLOCK, NVIC. */ HAL_ETH_MspInit(heth); - 80063aa: 6878 ldr r0, [r7, #4] - 80063ac: f006 fa70 bl 800c890 + 80063ae: 6878 ldr r0, [r7, #4] + 80063b0: f006 fa70 bl 800c894 #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ } /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 80063b0: 4b9e ldr r3, [pc, #632] ; (800662c ) - 80063b2: 6c5b ldr r3, [r3, #68] ; 0x44 - 80063b4: 4a9d ldr r2, [pc, #628] ; (800662c ) - 80063b6: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 80063ba: 6453 str r3, [r2, #68] ; 0x44 - 80063bc: 4b9b ldr r3, [pc, #620] ; (800662c ) - 80063be: 6c5b ldr r3, [r3, #68] ; 0x44 - 80063c0: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 80063c4: 60bb str r3, [r7, #8] - 80063c6: 68bb ldr r3, [r7, #8] + 80063b4: 4b9e ldr r3, [pc, #632] ; (8006630 ) + 80063b6: 6c5b ldr r3, [r3, #68] ; 0x44 + 80063b8: 4a9d ldr r2, [pc, #628] ; (8006630 ) + 80063ba: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 80063be: 6453 str r3, [r2, #68] ; 0x44 + 80063c0: 4b9b ldr r3, [pc, #620] ; (8006630 ) + 80063c2: 6c5b ldr r3, [r3, #68] ; 0x44 + 80063c4: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 80063c8: 60bb str r3, [r7, #8] + 80063ca: 68bb ldr r3, [r7, #8] /* Select MII or RMII Mode*/ SYSCFG->PMC &= ~(SYSCFG_PMC_MII_RMII_SEL); - 80063c8: 4b99 ldr r3, [pc, #612] ; (8006630 ) - 80063ca: 685b ldr r3, [r3, #4] - 80063cc: 4a98 ldr r2, [pc, #608] ; (8006630 ) - 80063ce: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 - 80063d2: 6053 str r3, [r2, #4] + 80063cc: 4b99 ldr r3, [pc, #612] ; (8006634 ) + 80063ce: 685b ldr r3, [r3, #4] + 80063d0: 4a98 ldr r2, [pc, #608] ; (8006634 ) + 80063d2: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 + 80063d6: 6053 str r3, [r2, #4] SYSCFG->PMC |= (uint32_t)heth->Init.MediaInterface; - 80063d4: 4b96 ldr r3, [pc, #600] ; (8006630 ) - 80063d6: 685a ldr r2, [r3, #4] - 80063d8: 687b ldr r3, [r7, #4] - 80063da: 6a1b ldr r3, [r3, #32] - 80063dc: 4994 ldr r1, [pc, #592] ; (8006630 ) - 80063de: 4313 orrs r3, r2 - 80063e0: 604b str r3, [r1, #4] + 80063d8: 4b96 ldr r3, [pc, #600] ; (8006634 ) + 80063da: 685a ldr r2, [r3, #4] + 80063dc: 687b ldr r3, [r7, #4] + 80063de: 6a1b ldr r3, [r3, #32] + 80063e0: 4994 ldr r1, [pc, #592] ; (8006634 ) + 80063e2: 4313 orrs r3, r2 + 80063e4: 604b str r3, [r1, #4] /* Ethernet Software reset */ /* Set the SWR bit: resets all MAC subsystem internal registers and logic */ /* After reset all the registers holds their respective reset values */ (heth->Instance)->DMABMR |= ETH_DMABMR_SR; - 80063e2: 687b ldr r3, [r7, #4] - 80063e4: 681b ldr r3, [r3, #0] - 80063e6: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80063ea: 681a ldr r2, [r3, #0] - 80063ec: 687b ldr r3, [r7, #4] - 80063ee: 681b ldr r3, [r3, #0] - 80063f0: f042 0201 orr.w r2, r2, #1 - 80063f4: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80063f8: 601a str r2, [r3, #0] + 80063e6: 687b ldr r3, [r7, #4] + 80063e8: 681b ldr r3, [r3, #0] + 80063ea: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80063ee: 681a ldr r2, [r3, #0] + 80063f0: 687b ldr r3, [r7, #4] + 80063f2: 681b ldr r3, [r3, #0] + 80063f4: f042 0201 orr.w r2, r2, #1 + 80063f8: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80063fc: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 80063fa: f7fe fd61 bl 8004ec0 - 80063fe: 6178 str r0, [r7, #20] + 80063fe: f7fe fd61 bl 8004ec4 + 8006402: 6178 str r0, [r7, #20] /* Wait for software reset */ while (((heth->Instance)->DMABMR & ETH_DMABMR_SR) != (uint32_t)RESET) - 8006400: e011 b.n 8006426 + 8006404: e011 b.n 800642a { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > ETH_TIMEOUT_SWRESET) - 8006402: f7fe fd5d bl 8004ec0 - 8006406: 4602 mov r2, r0 - 8006408: 697b ldr r3, [r7, #20] - 800640a: 1ad3 subs r3, r2, r3 - 800640c: f5b3 7ffa cmp.w r3, #500 ; 0x1f4 - 8006410: d909 bls.n 8006426 + 8006406: f7fe fd5d bl 8004ec4 + 800640a: 4602 mov r2, r0 + 800640c: 697b ldr r3, [r7, #20] + 800640e: 1ad3 subs r3, r2, r3 + 8006410: f5b3 7ffa cmp.w r3, #500 ; 0x1f4 + 8006414: d909 bls.n 800642a { heth->State= HAL_ETH_STATE_TIMEOUT; - 8006412: 687b ldr r3, [r7, #4] - 8006414: 2203 movs r2, #3 - 8006416: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006416: 687b ldr r3, [r7, #4] + 8006418: 2203 movs r2, #3 + 800641a: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 800641a: 687b ldr r3, [r7, #4] - 800641c: 2200 movs r2, #0 - 800641e: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800641e: 687b ldr r3, [r7, #4] + 8006420: 2200 movs r2, #0 + 8006422: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Note: The SWR is not performed if the ETH_RX_CLK or the ETH_TX_CLK are not available, please check your external PHY or the IO configuration */ return HAL_TIMEOUT; - 8006422: 2303 movs r3, #3 - 8006424: e13b b.n 800669e + 8006426: 2303 movs r3, #3 + 8006428: e13b b.n 80066a2 while (((heth->Instance)->DMABMR & ETH_DMABMR_SR) != (uint32_t)RESET) - 8006426: 687b ldr r3, [r7, #4] - 8006428: 681b ldr r3, [r3, #0] - 800642a: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 800642e: 681b ldr r3, [r3, #0] - 8006430: f003 0301 and.w r3, r3, #1 - 8006434: 2b00 cmp r3, #0 - 8006436: d1e4 bne.n 8006402 + 800642a: 687b ldr r3, [r7, #4] + 800642c: 681b ldr r3, [r3, #0] + 800642e: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 8006432: 681b ldr r3, [r3, #0] + 8006434: f003 0301 and.w r3, r3, #1 + 8006438: 2b00 cmp r3, #0 + 800643a: d1e4 bne.n 8006406 } } /*-------------------------------- MAC Initialization ----------------------*/ /* Get the ETHERNET MACMIIAR value */ tempreg = (heth->Instance)->MACMIIAR; - 8006438: 687b ldr r3, [r7, #4] - 800643a: 681b ldr r3, [r3, #0] - 800643c: 691b ldr r3, [r3, #16] - 800643e: 61fb str r3, [r7, #28] + 800643c: 687b ldr r3, [r7, #4] + 800643e: 681b ldr r3, [r3, #0] + 8006440: 691b ldr r3, [r3, #16] + 8006442: 61fb str r3, [r7, #28] /* Clear CSR Clock Range CR[2:0] bits */ tempreg &= ETH_MACMIIAR_CR_MASK; - 8006440: 69fb ldr r3, [r7, #28] - 8006442: f023 031c bic.w r3, r3, #28 - 8006446: 61fb str r3, [r7, #28] + 8006444: 69fb ldr r3, [r7, #28] + 8006446: f023 031c bic.w r3, r3, #28 + 800644a: 61fb str r3, [r7, #28] /* Get hclk frequency value */ hclk = HAL_RCC_GetHCLKFreq(); - 8006448: f003 f9c8 bl 80097dc - 800644c: 61b8 str r0, [r7, #24] + 800644c: f003 f9c8 bl 80097e0 + 8006450: 61b8 str r0, [r7, #24] /* Set CR bits depending on hclk value */ if((hclk >= 20000000)&&(hclk < 35000000)) - 800644e: 69bb ldr r3, [r7, #24] - 8006450: 4a78 ldr r2, [pc, #480] ; (8006634 ) - 8006452: 4293 cmp r3, r2 - 8006454: d908 bls.n 8006468 - 8006456: 69bb ldr r3, [r7, #24] - 8006458: 4a77 ldr r2, [pc, #476] ; (8006638 ) - 800645a: 4293 cmp r3, r2 - 800645c: d804 bhi.n 8006468 + 8006452: 69bb ldr r3, [r7, #24] + 8006454: 4a78 ldr r2, [pc, #480] ; (8006638 ) + 8006456: 4293 cmp r3, r2 + 8006458: d908 bls.n 800646c + 800645a: 69bb ldr r3, [r7, #24] + 800645c: 4a77 ldr r2, [pc, #476] ; (800663c ) + 800645e: 4293 cmp r3, r2 + 8006460: d804 bhi.n 800646c { /* CSR Clock Range between 20-35 MHz */ tempreg |= (uint32_t)ETH_MACMIIAR_CR_Div16; - 800645e: 69fb ldr r3, [r7, #28] - 8006460: f043 0308 orr.w r3, r3, #8 - 8006464: 61fb str r3, [r7, #28] - 8006466: e027 b.n 80064b8 + 8006462: 69fb ldr r3, [r7, #28] + 8006464: f043 0308 orr.w r3, r3, #8 + 8006468: 61fb str r3, [r7, #28] + 800646a: e027 b.n 80064bc } else if((hclk >= 35000000)&&(hclk < 60000000)) - 8006468: 69bb ldr r3, [r7, #24] - 800646a: 4a73 ldr r2, [pc, #460] ; (8006638 ) - 800646c: 4293 cmp r3, r2 - 800646e: d908 bls.n 8006482 - 8006470: 69bb ldr r3, [r7, #24] - 8006472: 4a72 ldr r2, [pc, #456] ; (800663c ) - 8006474: 4293 cmp r3, r2 - 8006476: d804 bhi.n 8006482 + 800646c: 69bb ldr r3, [r7, #24] + 800646e: 4a73 ldr r2, [pc, #460] ; (800663c ) + 8006470: 4293 cmp r3, r2 + 8006472: d908 bls.n 8006486 + 8006474: 69bb ldr r3, [r7, #24] + 8006476: 4a72 ldr r2, [pc, #456] ; (8006640 ) + 8006478: 4293 cmp r3, r2 + 800647a: d804 bhi.n 8006486 { /* CSR Clock Range between 35-60 MHz */ tempreg |= (uint32_t)ETH_MACMIIAR_CR_Div26; - 8006478: 69fb ldr r3, [r7, #28] - 800647a: f043 030c orr.w r3, r3, #12 - 800647e: 61fb str r3, [r7, #28] - 8006480: e01a b.n 80064b8 + 800647c: 69fb ldr r3, [r7, #28] + 800647e: f043 030c orr.w r3, r3, #12 + 8006482: 61fb str r3, [r7, #28] + 8006484: e01a b.n 80064bc } else if((hclk >= 60000000)&&(hclk < 100000000)) - 8006482: 69bb ldr r3, [r7, #24] - 8006484: 4a6d ldr r2, [pc, #436] ; (800663c ) - 8006486: 4293 cmp r3, r2 - 8006488: d903 bls.n 8006492 - 800648a: 69bb ldr r3, [r7, #24] - 800648c: 4a6c ldr r2, [pc, #432] ; (8006640 ) - 800648e: 4293 cmp r3, r2 - 8006490: d911 bls.n 80064b6 + 8006486: 69bb ldr r3, [r7, #24] + 8006488: 4a6d ldr r2, [pc, #436] ; (8006640 ) + 800648a: 4293 cmp r3, r2 + 800648c: d903 bls.n 8006496 + 800648e: 69bb ldr r3, [r7, #24] + 8006490: 4a6c ldr r2, [pc, #432] ; (8006644 ) + 8006492: 4293 cmp r3, r2 + 8006494: d911 bls.n 80064ba { /* CSR Clock Range between 60-100 MHz */ tempreg |= (uint32_t)ETH_MACMIIAR_CR_Div42; } else if((hclk >= 100000000)&&(hclk < 150000000)) - 8006492: 69bb ldr r3, [r7, #24] - 8006494: 4a6a ldr r2, [pc, #424] ; (8006640 ) - 8006496: 4293 cmp r3, r2 - 8006498: d908 bls.n 80064ac - 800649a: 69bb ldr r3, [r7, #24] - 800649c: 4a69 ldr r2, [pc, #420] ; (8006644 ) - 800649e: 4293 cmp r3, r2 - 80064a0: d804 bhi.n 80064ac + 8006496: 69bb ldr r3, [r7, #24] + 8006498: 4a6a ldr r2, [pc, #424] ; (8006644 ) + 800649a: 4293 cmp r3, r2 + 800649c: d908 bls.n 80064b0 + 800649e: 69bb ldr r3, [r7, #24] + 80064a0: 4a69 ldr r2, [pc, #420] ; (8006648 ) + 80064a2: 4293 cmp r3, r2 + 80064a4: d804 bhi.n 80064b0 { /* CSR Clock Range between 100-150 MHz */ tempreg |= (uint32_t)ETH_MACMIIAR_CR_Div62; - 80064a2: 69fb ldr r3, [r7, #28] - 80064a4: f043 0304 orr.w r3, r3, #4 - 80064a8: 61fb str r3, [r7, #28] - 80064aa: e005 b.n 80064b8 + 80064a6: 69fb ldr r3, [r7, #28] + 80064a8: f043 0304 orr.w r3, r3, #4 + 80064ac: 61fb str r3, [r7, #28] + 80064ae: e005 b.n 80064bc } else /* ((hclk >= 150000000)&&(hclk <= 216000000)) */ { /* CSR Clock Range between 150-216 MHz */ tempreg |= (uint32_t)ETH_MACMIIAR_CR_Div102; - 80064ac: 69fb ldr r3, [r7, #28] - 80064ae: f043 0310 orr.w r3, r3, #16 - 80064b2: 61fb str r3, [r7, #28] - 80064b4: e000 b.n 80064b8 + 80064b0: 69fb ldr r3, [r7, #28] + 80064b2: f043 0310 orr.w r3, r3, #16 + 80064b6: 61fb str r3, [r7, #28] + 80064b8: e000 b.n 80064bc tempreg |= (uint32_t)ETH_MACMIIAR_CR_Div42; - 80064b6: bf00 nop + 80064ba: bf00 nop } /* Write to ETHERNET MAC MIIAR: Configure the ETHERNET CSR Clock Range */ (heth->Instance)->MACMIIAR = (uint32_t)tempreg; - 80064b8: 687b ldr r3, [r7, #4] - 80064ba: 681b ldr r3, [r3, #0] - 80064bc: 69fa ldr r2, [r7, #28] - 80064be: 611a str r2, [r3, #16] + 80064bc: 687b ldr r3, [r7, #4] + 80064be: 681b ldr r3, [r3, #0] + 80064c0: 69fa ldr r2, [r7, #28] + 80064c2: 611a str r2, [r3, #16] /*-------------------- PHY initialization and configuration ----------------*/ /* Put the PHY in reset mode */ if((HAL_ETH_WritePHYRegister(heth, PHY_BCR, PHY_RESET)) != HAL_OK) - 80064c0: f44f 4200 mov.w r2, #32768 ; 0x8000 - 80064c4: 2100 movs r1, #0 - 80064c6: 6878 ldr r0, [r7, #4] - 80064c8: f000 fc19 bl 8006cfe - 80064cc: 4603 mov r3, r0 - 80064ce: 2b00 cmp r3, #0 - 80064d0: d00b beq.n 80064ea + 80064c4: f44f 4200 mov.w r2, #32768 ; 0x8000 + 80064c8: 2100 movs r1, #0 + 80064ca: 6878 ldr r0, [r7, #4] + 80064cc: f000 fc19 bl 8006d02 + 80064d0: 4603 mov r3, r0 + 80064d2: 2b00 cmp r3, #0 + 80064d4: d00b beq.n 80064ee { /* In case of write timeout */ err = ETH_ERROR; - 80064d2: 2301 movs r3, #1 - 80064d4: 613b str r3, [r7, #16] + 80064d6: 2301 movs r3, #1 + 80064d8: 613b str r3, [r7, #16] /* Config MAC and DMA */ ETH_MACDMAConfig(heth, err); - 80064d6: 6939 ldr r1, [r7, #16] - 80064d8: 6878 ldr r0, [r7, #4] - 80064da: f000 fdcf bl 800707c + 80064da: 6939 ldr r1, [r7, #16] + 80064dc: 6878 ldr r0, [r7, #4] + 80064de: f000 fdcf bl 8007080 /* Set the ETH peripheral state to READY */ heth->State = HAL_ETH_STATE_READY; - 80064de: 687b ldr r3, [r7, #4] - 80064e0: 2201 movs r2, #1 - 80064e2: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 80064e2: 687b ldr r3, [r7, #4] + 80064e4: 2201 movs r2, #1 + 80064e6: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Return HAL_ERROR */ return HAL_ERROR; - 80064e6: 2301 movs r3, #1 - 80064e8: e0d9 b.n 800669e + 80064ea: 2301 movs r3, #1 + 80064ec: e0d9 b.n 80066a2 } /* Delay to assure PHY reset */ HAL_Delay(PHY_RESET_DELAY); - 80064ea: 20ff movs r0, #255 ; 0xff - 80064ec: f7fe fcf4 bl 8004ed8 + 80064ee: 20ff movs r0, #255 ; 0xff + 80064f0: f7fe fcf4 bl 8004edc if((heth->Init).AutoNegotiation != ETH_AUTONEGOTIATION_DISABLE) - 80064f0: 687b ldr r3, [r7, #4] - 80064f2: 685b ldr r3, [r3, #4] - 80064f4: 2b00 cmp r3, #0 - 80064f6: f000 80a7 beq.w 8006648 + 80064f4: 687b ldr r3, [r7, #4] + 80064f6: 685b ldr r3, [r3, #4] + 80064f8: 2b00 cmp r3, #0 + 80064fa: f000 80a7 beq.w 800664c { /* Get tick */ tickstart = HAL_GetTick(); - 80064fa: f7fe fce1 bl 8004ec0 - 80064fe: 6178 str r0, [r7, #20] + 80064fe: f7fe fce1 bl 8004ec4 + 8006502: 6178 str r0, [r7, #20] /* We wait for linked status */ do { HAL_ETH_ReadPHYRegister(heth, PHY_BSR, &phyreg); - 8006500: f107 030c add.w r3, r7, #12 - 8006504: 461a mov r2, r3 - 8006506: 2101 movs r1, #1 - 8006508: 6878 ldr r0, [r7, #4] - 800650a: f000 fb90 bl 8006c2e + 8006504: f107 030c add.w r3, r7, #12 + 8006508: 461a mov r2, r3 + 800650a: 2101 movs r1, #1 + 800650c: 6878 ldr r0, [r7, #4] + 800650e: f000 fb90 bl 8006c32 /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > ETH_TIMEOUT_LINKED_STATE) - 800650e: f7fe fcd7 bl 8004ec0 - 8006512: 4602 mov r2, r0 - 8006514: 697b ldr r3, [r7, #20] - 8006516: 1ad3 subs r3, r2, r3 - 8006518: f241 3288 movw r2, #5000 ; 0x1388 - 800651c: 4293 cmp r3, r2 - 800651e: d90f bls.n 8006540 + 8006512: f7fe fcd7 bl 8004ec4 + 8006516: 4602 mov r2, r0 + 8006518: 697b ldr r3, [r7, #20] + 800651a: 1ad3 subs r3, r2, r3 + 800651c: f241 3288 movw r2, #5000 ; 0x1388 + 8006520: 4293 cmp r3, r2 + 8006522: d90f bls.n 8006544 { /* In case of write timeout */ err = ETH_ERROR; - 8006520: 2301 movs r3, #1 - 8006522: 613b str r3, [r7, #16] + 8006524: 2301 movs r3, #1 + 8006526: 613b str r3, [r7, #16] /* Config MAC and DMA */ ETH_MACDMAConfig(heth, err); - 8006524: 6939 ldr r1, [r7, #16] - 8006526: 6878 ldr r0, [r7, #4] - 8006528: f000 fda8 bl 800707c + 8006528: 6939 ldr r1, [r7, #16] + 800652a: 6878 ldr r0, [r7, #4] + 800652c: f000 fda8 bl 8007080 heth->State= HAL_ETH_STATE_READY; - 800652c: 687b ldr r3, [r7, #4] - 800652e: 2201 movs r2, #1 - 8006530: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006530: 687b ldr r3, [r7, #4] + 8006532: 2201 movs r2, #1 + 8006534: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006534: 687b ldr r3, [r7, #4] - 8006536: 2200 movs r2, #0 - 8006538: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006538: 687b ldr r3, [r7, #4] + 800653a: 2200 movs r2, #0 + 800653c: f883 2045 strb.w r2, [r3, #69] ; 0x45 return HAL_TIMEOUT; - 800653c: 2303 movs r3, #3 - 800653e: e0ae b.n 800669e + 8006540: 2303 movs r3, #3 + 8006542: e0ae b.n 80066a2 } } while (((phyreg & PHY_LINKED_STATUS) != PHY_LINKED_STATUS)); - 8006540: 68fb ldr r3, [r7, #12] - 8006542: f003 0304 and.w r3, r3, #4 - 8006546: 2b00 cmp r3, #0 - 8006548: d0da beq.n 8006500 + 8006544: 68fb ldr r3, [r7, #12] + 8006546: f003 0304 and.w r3, r3, #4 + 800654a: 2b00 cmp r3, #0 + 800654c: d0da beq.n 8006504 /* Enable Auto-Negotiation */ if((HAL_ETH_WritePHYRegister(heth, PHY_BCR, PHY_AUTONEGOTIATION)) != HAL_OK) - 800654a: f44f 5280 mov.w r2, #4096 ; 0x1000 - 800654e: 2100 movs r1, #0 - 8006550: 6878 ldr r0, [r7, #4] - 8006552: f000 fbd4 bl 8006cfe - 8006556: 4603 mov r3, r0 - 8006558: 2b00 cmp r3, #0 - 800655a: d00b beq.n 8006574 + 800654e: f44f 5280 mov.w r2, #4096 ; 0x1000 + 8006552: 2100 movs r1, #0 + 8006554: 6878 ldr r0, [r7, #4] + 8006556: f000 fbd4 bl 8006d02 + 800655a: 4603 mov r3, r0 + 800655c: 2b00 cmp r3, #0 + 800655e: d00b beq.n 8006578 { /* In case of write timeout */ err = ETH_ERROR; - 800655c: 2301 movs r3, #1 - 800655e: 613b str r3, [r7, #16] + 8006560: 2301 movs r3, #1 + 8006562: 613b str r3, [r7, #16] /* Config MAC and DMA */ ETH_MACDMAConfig(heth, err); - 8006560: 6939 ldr r1, [r7, #16] - 8006562: 6878 ldr r0, [r7, #4] - 8006564: f000 fd8a bl 800707c + 8006564: 6939 ldr r1, [r7, #16] + 8006566: 6878 ldr r0, [r7, #4] + 8006568: f000 fd8a bl 8007080 /* Set the ETH peripheral state to READY */ heth->State = HAL_ETH_STATE_READY; - 8006568: 687b ldr r3, [r7, #4] - 800656a: 2201 movs r2, #1 - 800656c: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800656c: 687b ldr r3, [r7, #4] + 800656e: 2201 movs r2, #1 + 8006570: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Return HAL_ERROR */ return HAL_ERROR; - 8006570: 2301 movs r3, #1 - 8006572: e094 b.n 800669e + 8006574: 2301 movs r3, #1 + 8006576: e094 b.n 80066a2 } /* Get tick */ tickstart = HAL_GetTick(); - 8006574: f7fe fca4 bl 8004ec0 - 8006578: 6178 str r0, [r7, #20] + 8006578: f7fe fca4 bl 8004ec4 + 800657c: 6178 str r0, [r7, #20] /* Wait until the auto-negotiation will be completed */ do { HAL_ETH_ReadPHYRegister(heth, PHY_BSR, &phyreg); - 800657a: f107 030c add.w r3, r7, #12 - 800657e: 461a mov r2, r3 - 8006580: 2101 movs r1, #1 - 8006582: 6878 ldr r0, [r7, #4] - 8006584: f000 fb53 bl 8006c2e + 800657e: f107 030c add.w r3, r7, #12 + 8006582: 461a mov r2, r3 + 8006584: 2101 movs r1, #1 + 8006586: 6878 ldr r0, [r7, #4] + 8006588: f000 fb53 bl 8006c32 /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > ETH_TIMEOUT_AUTONEGO_COMPLETED) - 8006588: f7fe fc9a bl 8004ec0 - 800658c: 4602 mov r2, r0 - 800658e: 697b ldr r3, [r7, #20] - 8006590: 1ad3 subs r3, r2, r3 - 8006592: f241 3288 movw r2, #5000 ; 0x1388 - 8006596: 4293 cmp r3, r2 - 8006598: d90f bls.n 80065ba + 800658c: f7fe fc9a bl 8004ec4 + 8006590: 4602 mov r2, r0 + 8006592: 697b ldr r3, [r7, #20] + 8006594: 1ad3 subs r3, r2, r3 + 8006596: f241 3288 movw r2, #5000 ; 0x1388 + 800659a: 4293 cmp r3, r2 + 800659c: d90f bls.n 80065be { /* In case of write timeout */ err = ETH_ERROR; - 800659a: 2301 movs r3, #1 - 800659c: 613b str r3, [r7, #16] + 800659e: 2301 movs r3, #1 + 80065a0: 613b str r3, [r7, #16] /* Config MAC and DMA */ ETH_MACDMAConfig(heth, err); - 800659e: 6939 ldr r1, [r7, #16] - 80065a0: 6878 ldr r0, [r7, #4] - 80065a2: f000 fd6b bl 800707c + 80065a2: 6939 ldr r1, [r7, #16] + 80065a4: 6878 ldr r0, [r7, #4] + 80065a6: f000 fd6b bl 8007080 heth->State= HAL_ETH_STATE_READY; - 80065a6: 687b ldr r3, [r7, #4] - 80065a8: 2201 movs r2, #1 - 80065aa: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 80065aa: 687b ldr r3, [r7, #4] + 80065ac: 2201 movs r2, #1 + 80065ae: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 80065ae: 687b ldr r3, [r7, #4] - 80065b0: 2200 movs r2, #0 - 80065b2: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 80065b2: 687b ldr r3, [r7, #4] + 80065b4: 2200 movs r2, #0 + 80065b6: f883 2045 strb.w r2, [r3, #69] ; 0x45 return HAL_TIMEOUT; - 80065b6: 2303 movs r3, #3 - 80065b8: e071 b.n 800669e + 80065ba: 2303 movs r3, #3 + 80065bc: e071 b.n 80066a2 } } while (((phyreg & PHY_AUTONEGO_COMPLETE) != PHY_AUTONEGO_COMPLETE)); - 80065ba: 68fb ldr r3, [r7, #12] - 80065bc: f003 0320 and.w r3, r3, #32 - 80065c0: 2b00 cmp r3, #0 - 80065c2: d0da beq.n 800657a + 80065be: 68fb ldr r3, [r7, #12] + 80065c0: f003 0320 and.w r3, r3, #32 + 80065c4: 2b00 cmp r3, #0 + 80065c6: d0da beq.n 800657e /* Read the result of the auto-negotiation */ if((HAL_ETH_ReadPHYRegister(heth, PHY_SR, &phyreg)) != HAL_OK) - 80065c4: f107 030c add.w r3, r7, #12 - 80065c8: 461a mov r2, r3 - 80065ca: 211f movs r1, #31 - 80065cc: 6878 ldr r0, [r7, #4] - 80065ce: f000 fb2e bl 8006c2e - 80065d2: 4603 mov r3, r0 - 80065d4: 2b00 cmp r3, #0 - 80065d6: d00b beq.n 80065f0 + 80065c8: f107 030c add.w r3, r7, #12 + 80065cc: 461a mov r2, r3 + 80065ce: 211f movs r1, #31 + 80065d0: 6878 ldr r0, [r7, #4] + 80065d2: f000 fb2e bl 8006c32 + 80065d6: 4603 mov r3, r0 + 80065d8: 2b00 cmp r3, #0 + 80065da: d00b beq.n 80065f4 { /* In case of write timeout */ err = ETH_ERROR; - 80065d8: 2301 movs r3, #1 - 80065da: 613b str r3, [r7, #16] + 80065dc: 2301 movs r3, #1 + 80065de: 613b str r3, [r7, #16] /* Config MAC and DMA */ ETH_MACDMAConfig(heth, err); - 80065dc: 6939 ldr r1, [r7, #16] - 80065de: 6878 ldr r0, [r7, #4] - 80065e0: f000 fd4c bl 800707c + 80065e0: 6939 ldr r1, [r7, #16] + 80065e2: 6878 ldr r0, [r7, #4] + 80065e4: f000 fd4c bl 8007080 /* Set the ETH peripheral state to READY */ heth->State = HAL_ETH_STATE_READY; - 80065e4: 687b ldr r3, [r7, #4] - 80065e6: 2201 movs r2, #1 - 80065e8: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 80065e8: 687b ldr r3, [r7, #4] + 80065ea: 2201 movs r2, #1 + 80065ec: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Return HAL_ERROR */ return HAL_ERROR; - 80065ec: 2301 movs r3, #1 - 80065ee: e056 b.n 800669e + 80065f0: 2301 movs r3, #1 + 80065f2: e056 b.n 80066a2 } /* Configure the MAC with the Duplex Mode fixed by the auto-negotiation process */ if((phyreg & PHY_DUPLEX_STATUS) != (uint32_t)RESET) - 80065f0: 68fb ldr r3, [r7, #12] - 80065f2: f003 0310 and.w r3, r3, #16 - 80065f6: 2b00 cmp r3, #0 - 80065f8: d004 beq.n 8006604 + 80065f4: 68fb ldr r3, [r7, #12] + 80065f6: f003 0310 and.w r3, r3, #16 + 80065fa: 2b00 cmp r3, #0 + 80065fc: d004 beq.n 8006608 { /* Set Ethernet duplex mode to Full-duplex following the auto-negotiation */ (heth->Init).DuplexMode = ETH_MODE_FULLDUPLEX; - 80065fa: 687b ldr r3, [r7, #4] - 80065fc: f44f 6200 mov.w r2, #2048 ; 0x800 - 8006600: 60da str r2, [r3, #12] - 8006602: e002 b.n 800660a + 80065fe: 687b ldr r3, [r7, #4] + 8006600: f44f 6200 mov.w r2, #2048 ; 0x800 + 8006604: 60da str r2, [r3, #12] + 8006606: e002 b.n 800660e } else { /* Set Ethernet duplex mode to Half-duplex following the auto-negotiation */ (heth->Init).DuplexMode = ETH_MODE_HALFDUPLEX; - 8006604: 687b ldr r3, [r7, #4] - 8006606: 2200 movs r2, #0 - 8006608: 60da str r2, [r3, #12] + 8006608: 687b ldr r3, [r7, #4] + 800660a: 2200 movs r2, #0 + 800660c: 60da str r2, [r3, #12] } /* Configure the MAC with the speed fixed by the auto-negotiation process */ if((phyreg & PHY_SPEED_STATUS) == PHY_SPEED_STATUS) - 800660a: 68fb ldr r3, [r7, #12] - 800660c: f003 0304 and.w r3, r3, #4 - 8006610: 2b00 cmp r3, #0 - 8006612: d003 beq.n 800661c + 800660e: 68fb ldr r3, [r7, #12] + 8006610: f003 0304 and.w r3, r3, #4 + 8006614: 2b00 cmp r3, #0 + 8006616: d003 beq.n 8006620 { /* Set Ethernet speed to 10M following the auto-negotiation */ (heth->Init).Speed = ETH_SPEED_10M; - 8006614: 687b ldr r3, [r7, #4] - 8006616: 2200 movs r2, #0 - 8006618: 609a str r2, [r3, #8] - 800661a: e037 b.n 800668c + 8006618: 687b ldr r3, [r7, #4] + 800661a: 2200 movs r2, #0 + 800661c: 609a str r2, [r3, #8] + 800661e: e037 b.n 8006690 } else { /* Set Ethernet speed to 100M following the auto-negotiation */ (heth->Init).Speed = ETH_SPEED_100M; - 800661c: 687b ldr r3, [r7, #4] - 800661e: f44f 4280 mov.w r2, #16384 ; 0x4000 - 8006622: 609a str r2, [r3, #8] - 8006624: e032 b.n 800668c - 8006626: bf00 nop - 8006628: 03938700 .word 0x03938700 - 800662c: 40023800 .word 0x40023800 - 8006630: 40013800 .word 0x40013800 - 8006634: 01312cff .word 0x01312cff - 8006638: 02160ebf .word 0x02160ebf - 800663c: 039386ff .word 0x039386ff - 8006640: 05f5e0ff .word 0x05f5e0ff - 8006644: 08f0d17f .word 0x08f0d17f + 8006620: 687b ldr r3, [r7, #4] + 8006622: f44f 4280 mov.w r2, #16384 ; 0x4000 + 8006626: 609a str r2, [r3, #8] + 8006628: e032 b.n 8006690 + 800662a: bf00 nop + 800662c: 03938700 .word 0x03938700 + 8006630: 40023800 .word 0x40023800 + 8006634: 40013800 .word 0x40013800 + 8006638: 01312cff .word 0x01312cff + 800663c: 02160ebf .word 0x02160ebf + 8006640: 039386ff .word 0x039386ff + 8006644: 05f5e0ff .word 0x05f5e0ff + 8006648: 08f0d17f .word 0x08f0d17f /* Check parameters */ assert_param(IS_ETH_SPEED(heth->Init.Speed)); assert_param(IS_ETH_DUPLEX_MODE(heth->Init.DuplexMode)); /* Set MAC Speed and Duplex Mode */ if(HAL_ETH_WritePHYRegister(heth, PHY_BCR, ((uint16_t)((heth->Init).DuplexMode >> 3) | - 8006648: 687b ldr r3, [r7, #4] - 800664a: 68db ldr r3, [r3, #12] - 800664c: 08db lsrs r3, r3, #3 - 800664e: b29a uxth r2, r3 + 800664c: 687b ldr r3, [r7, #4] + 800664e: 68db ldr r3, [r3, #12] + 8006650: 08db lsrs r3, r3, #3 + 8006652: b29a uxth r2, r3 (uint16_t)((heth->Init).Speed >> 1))) != HAL_OK) - 8006650: 687b ldr r3, [r7, #4] - 8006652: 689b ldr r3, [r3, #8] - 8006654: 085b lsrs r3, r3, #1 - 8006656: b29b uxth r3, r3 - if(HAL_ETH_WritePHYRegister(heth, PHY_BCR, ((uint16_t)((heth->Init).DuplexMode >> 3) | - 8006658: 4313 orrs r3, r2 + 8006654: 687b ldr r3, [r7, #4] + 8006656: 689b ldr r3, [r3, #8] + 8006658: 085b lsrs r3, r3, #1 800665a: b29b uxth r3, r3 - 800665c: 461a mov r2, r3 - 800665e: 2100 movs r1, #0 - 8006660: 6878 ldr r0, [r7, #4] - 8006662: f000 fb4c bl 8006cfe - 8006666: 4603 mov r3, r0 - 8006668: 2b00 cmp r3, #0 - 800666a: d00b beq.n 8006684 + if(HAL_ETH_WritePHYRegister(heth, PHY_BCR, ((uint16_t)((heth->Init).DuplexMode >> 3) | + 800665c: 4313 orrs r3, r2 + 800665e: b29b uxth r3, r3 + 8006660: 461a mov r2, r3 + 8006662: 2100 movs r1, #0 + 8006664: 6878 ldr r0, [r7, #4] + 8006666: f000 fb4c bl 8006d02 + 800666a: 4603 mov r3, r0 + 800666c: 2b00 cmp r3, #0 + 800666e: d00b beq.n 8006688 { /* In case of write timeout */ err = ETH_ERROR; - 800666c: 2301 movs r3, #1 - 800666e: 613b str r3, [r7, #16] + 8006670: 2301 movs r3, #1 + 8006672: 613b str r3, [r7, #16] /* Config MAC and DMA */ ETH_MACDMAConfig(heth, err); - 8006670: 6939 ldr r1, [r7, #16] - 8006672: 6878 ldr r0, [r7, #4] - 8006674: f000 fd02 bl 800707c + 8006674: 6939 ldr r1, [r7, #16] + 8006676: 6878 ldr r0, [r7, #4] + 8006678: f000 fd02 bl 8007080 /* Set the ETH peripheral state to READY */ heth->State = HAL_ETH_STATE_READY; - 8006678: 687b ldr r3, [r7, #4] - 800667a: 2201 movs r2, #1 - 800667c: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800667c: 687b ldr r3, [r7, #4] + 800667e: 2201 movs r2, #1 + 8006680: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Return HAL_ERROR */ return HAL_ERROR; - 8006680: 2301 movs r3, #1 - 8006682: e00c b.n 800669e + 8006684: 2301 movs r3, #1 + 8006686: e00c b.n 80066a2 } /* Delay to assure PHY configuration */ HAL_Delay(PHY_CONFIG_DELAY); - 8006684: f640 70ff movw r0, #4095 ; 0xfff - 8006688: f7fe fc26 bl 8004ed8 + 8006688: f640 70ff movw r0, #4095 ; 0xfff + 800668c: f7fe fc26 bl 8004edc } /* Config MAC and DMA */ ETH_MACDMAConfig(heth, err); - 800668c: 6939 ldr r1, [r7, #16] - 800668e: 6878 ldr r0, [r7, #4] - 8006690: f000 fcf4 bl 800707c + 8006690: 6939 ldr r1, [r7, #16] + 8006692: 6878 ldr r0, [r7, #4] + 8006694: f000 fcf4 bl 8007080 /* Set ETH HAL State to Ready */ heth->State= HAL_ETH_STATE_READY; - 8006694: 687b ldr r3, [r7, #4] - 8006696: 2201 movs r2, #1 - 8006698: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006698: 687b ldr r3, [r7, #4] + 800669a: 2201 movs r2, #1 + 800669c: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Return function status */ return HAL_OK; - 800669c: 2300 movs r3, #0 + 80066a0: 2300 movs r3, #0 } - 800669e: 4618 mov r0, r3 - 80066a0: 3720 adds r7, #32 - 80066a2: 46bd mov sp, r7 - 80066a4: bd80 pop {r7, pc} - 80066a6: bf00 nop + 80066a2: 4618 mov r0, r3 + 80066a4: 3720 adds r7, #32 + 80066a6: 46bd mov sp, r7 + 80066a8: bd80 pop {r7, pc} + 80066aa: bf00 nop -080066a8 : +080066ac : * @param TxBuff Pointer to the first TxBuffer list * @param TxBuffCount Number of the used Tx desc in the list * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_DMATxDescListInit(ETH_HandleTypeDef *heth, ETH_DMADescTypeDef *DMATxDescTab, uint8_t *TxBuff, uint32_t TxBuffCount) { - 80066a8: b480 push {r7} - 80066aa: b087 sub sp, #28 - 80066ac: af00 add r7, sp, #0 - 80066ae: 60f8 str r0, [r7, #12] - 80066b0: 60b9 str r1, [r7, #8] - 80066b2: 607a str r2, [r7, #4] - 80066b4: 603b str r3, [r7, #0] + 80066ac: b480 push {r7} + 80066ae: b087 sub sp, #28 + 80066b0: af00 add r7, sp, #0 + 80066b2: 60f8 str r0, [r7, #12] + 80066b4: 60b9 str r1, [r7, #8] + 80066b6: 607a str r2, [r7, #4] + 80066b8: 603b str r3, [r7, #0] uint32_t i = 0; - 80066b6: 2300 movs r3, #0 - 80066b8: 617b str r3, [r7, #20] + 80066ba: 2300 movs r3, #0 + 80066bc: 617b str r3, [r7, #20] ETH_DMADescTypeDef *dmatxdesc; /* Process Locked */ __HAL_LOCK(heth); - 80066ba: 68fb ldr r3, [r7, #12] - 80066bc: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 80066c0: 2b01 cmp r3, #1 - 80066c2: d101 bne.n 80066c8 - 80066c4: 2302 movs r3, #2 - 80066c6: e052 b.n 800676e - 80066c8: 68fb ldr r3, [r7, #12] - 80066ca: 2201 movs r2, #1 - 80066cc: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 80066be: 68fb ldr r3, [r7, #12] + 80066c0: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 80066c4: 2b01 cmp r3, #1 + 80066c6: d101 bne.n 80066cc + 80066c8: 2302 movs r3, #2 + 80066ca: e052 b.n 8006772 + 80066cc: 68fb ldr r3, [r7, #12] + 80066ce: 2201 movs r2, #1 + 80066d0: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Set the ETH peripheral state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; - 80066d0: 68fb ldr r3, [r7, #12] - 80066d2: 2202 movs r2, #2 - 80066d4: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 80066d4: 68fb ldr r3, [r7, #12] + 80066d6: 2202 movs r2, #2 + 80066d8: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Set the DMATxDescToSet pointer with the first one of the DMATxDescTab list */ heth->TxDesc = DMATxDescTab; - 80066d8: 68fb ldr r3, [r7, #12] - 80066da: 68ba ldr r2, [r7, #8] - 80066dc: 62da str r2, [r3, #44] ; 0x2c + 80066dc: 68fb ldr r3, [r7, #12] + 80066de: 68ba ldr r2, [r7, #8] + 80066e0: 62da str r2, [r3, #44] ; 0x2c /* Fill each DMATxDesc descriptor with the right values */ for(i=0; i < TxBuffCount; i++) - 80066de: 2300 movs r3, #0 - 80066e0: 617b str r3, [r7, #20] - 80066e2: e030 b.n 8006746 + 80066e2: 2300 movs r3, #0 + 80066e4: 617b str r3, [r7, #20] + 80066e6: e030 b.n 800674a { /* Get the pointer on the ith member of the Tx Desc list */ dmatxdesc = DMATxDescTab + i; - 80066e4: 697b ldr r3, [r7, #20] - 80066e6: 015b lsls r3, r3, #5 - 80066e8: 68ba ldr r2, [r7, #8] - 80066ea: 4413 add r3, r2 - 80066ec: 613b str r3, [r7, #16] + 80066e8: 697b ldr r3, [r7, #20] + 80066ea: 015b lsls r3, r3, #5 + 80066ec: 68ba ldr r2, [r7, #8] + 80066ee: 4413 add r3, r2 + 80066f0: 613b str r3, [r7, #16] /* Set Second Address Chained bit */ dmatxdesc->Status = ETH_DMATXDESC_TCH; - 80066ee: 693b ldr r3, [r7, #16] - 80066f0: f44f 1280 mov.w r2, #1048576 ; 0x100000 - 80066f4: 601a str r2, [r3, #0] + 80066f2: 693b ldr r3, [r7, #16] + 80066f4: f44f 1280 mov.w r2, #1048576 ; 0x100000 + 80066f8: 601a str r2, [r3, #0] /* Set Buffer1 address pointer */ dmatxdesc->Buffer1Addr = (uint32_t)(&TxBuff[i*ETH_TX_BUF_SIZE]); - 80066f6: 697b ldr r3, [r7, #20] - 80066f8: f240 52f4 movw r2, #1524 ; 0x5f4 - 80066fc: fb02 f303 mul.w r3, r2, r3 - 8006700: 687a ldr r2, [r7, #4] - 8006702: 4413 add r3, r2 - 8006704: 461a mov r2, r3 - 8006706: 693b ldr r3, [r7, #16] - 8006708: 609a str r2, [r3, #8] + 80066fa: 697b ldr r3, [r7, #20] + 80066fc: f240 52f4 movw r2, #1524 ; 0x5f4 + 8006700: fb02 f303 mul.w r3, r2, r3 + 8006704: 687a ldr r2, [r7, #4] + 8006706: 4413 add r3, r2 + 8006708: 461a mov r2, r3 + 800670a: 693b ldr r3, [r7, #16] + 800670c: 609a str r2, [r3, #8] if ((heth->Init).ChecksumMode == ETH_CHECKSUM_BY_HARDWARE) - 800670a: 68fb ldr r3, [r7, #12] - 800670c: 69db ldr r3, [r3, #28] - 800670e: 2b00 cmp r3, #0 - 8006710: d105 bne.n 800671e + 800670e: 68fb ldr r3, [r7, #12] + 8006710: 69db ldr r3, [r3, #28] + 8006712: 2b00 cmp r3, #0 + 8006714: d105 bne.n 8006722 { /* Set the DMA Tx descriptors checksum insertion */ dmatxdesc->Status |= ETH_DMATXDESC_CHECKSUMTCPUDPICMPFULL; - 8006712: 693b ldr r3, [r7, #16] - 8006714: 681b ldr r3, [r3, #0] - 8006716: f443 0240 orr.w r2, r3, #12582912 ; 0xc00000 - 800671a: 693b ldr r3, [r7, #16] - 800671c: 601a str r2, [r3, #0] + 8006716: 693b ldr r3, [r7, #16] + 8006718: 681b ldr r3, [r3, #0] + 800671a: f443 0240 orr.w r2, r3, #12582912 ; 0xc00000 + 800671e: 693b ldr r3, [r7, #16] + 8006720: 601a str r2, [r3, #0] } /* Initialize the next descriptor with the Next Descriptor Polling Enable */ if(i < (TxBuffCount-1)) - 800671e: 683b ldr r3, [r7, #0] - 8006720: 3b01 subs r3, #1 - 8006722: 697a ldr r2, [r7, #20] - 8006724: 429a cmp r2, r3 - 8006726: d208 bcs.n 800673a + 8006722: 683b ldr r3, [r7, #0] + 8006724: 3b01 subs r3, #1 + 8006726: 697a ldr r2, [r7, #20] + 8006728: 429a cmp r2, r3 + 800672a: d208 bcs.n 800673e { /* Set next descriptor address register with next descriptor base address */ dmatxdesc->Buffer2NextDescAddr = (uint32_t)(DMATxDescTab+i+1); - 8006728: 697b ldr r3, [r7, #20] - 800672a: 3301 adds r3, #1 - 800672c: 015b lsls r3, r3, #5 - 800672e: 68ba ldr r2, [r7, #8] - 8006730: 4413 add r3, r2 - 8006732: 461a mov r2, r3 - 8006734: 693b ldr r3, [r7, #16] - 8006736: 60da str r2, [r3, #12] - 8006738: e002 b.n 8006740 + 800672c: 697b ldr r3, [r7, #20] + 800672e: 3301 adds r3, #1 + 8006730: 015b lsls r3, r3, #5 + 8006732: 68ba ldr r2, [r7, #8] + 8006734: 4413 add r3, r2 + 8006736: 461a mov r2, r3 + 8006738: 693b ldr r3, [r7, #16] + 800673a: 60da str r2, [r3, #12] + 800673c: e002 b.n 8006744 } else { /* For last descriptor, set next descriptor address register equal to the first descriptor base address */ dmatxdesc->Buffer2NextDescAddr = (uint32_t) DMATxDescTab; - 800673a: 68ba ldr r2, [r7, #8] - 800673c: 693b ldr r3, [r7, #16] - 800673e: 60da str r2, [r3, #12] + 800673e: 68ba ldr r2, [r7, #8] + 8006740: 693b ldr r3, [r7, #16] + 8006742: 60da str r2, [r3, #12] for(i=0; i < TxBuffCount; i++) - 8006740: 697b ldr r3, [r7, #20] - 8006742: 3301 adds r3, #1 - 8006744: 617b str r3, [r7, #20] - 8006746: 697a ldr r2, [r7, #20] - 8006748: 683b ldr r3, [r7, #0] - 800674a: 429a cmp r2, r3 - 800674c: d3ca bcc.n 80066e4 + 8006744: 697b ldr r3, [r7, #20] + 8006746: 3301 adds r3, #1 + 8006748: 617b str r3, [r7, #20] + 800674a: 697a ldr r2, [r7, #20] + 800674c: 683b ldr r3, [r7, #0] + 800674e: 429a cmp r2, r3 + 8006750: d3ca bcc.n 80066e8 } } /* Set Transmit Descriptor List Address Register */ (heth->Instance)->DMATDLAR = (uint32_t) DMATxDescTab; - 800674e: 68fb ldr r3, [r7, #12] - 8006750: 6819 ldr r1, [r3, #0] - 8006752: 68ba ldr r2, [r7, #8] - 8006754: f241 0310 movw r3, #4112 ; 0x1010 - 8006758: 440b add r3, r1 - 800675a: 601a str r2, [r3, #0] + 8006752: 68fb ldr r3, [r7, #12] + 8006754: 6819 ldr r1, [r3, #0] + 8006756: 68ba ldr r2, [r7, #8] + 8006758: f241 0310 movw r3, #4112 ; 0x1010 + 800675c: 440b add r3, r1 + 800675e: 601a str r2, [r3, #0] /* Set ETH HAL State to Ready */ heth->State= HAL_ETH_STATE_READY; - 800675c: 68fb ldr r3, [r7, #12] - 800675e: 2201 movs r2, #1 - 8006760: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006760: 68fb ldr r3, [r7, #12] + 8006762: 2201 movs r2, #1 + 8006764: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006764: 68fb ldr r3, [r7, #12] - 8006766: 2200 movs r2, #0 - 8006768: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006768: 68fb ldr r3, [r7, #12] + 800676a: 2200 movs r2, #0 + 800676c: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Return function status */ return HAL_OK; - 800676c: 2300 movs r3, #0 + 8006770: 2300 movs r3, #0 } - 800676e: 4618 mov r0, r3 - 8006770: 371c adds r7, #28 - 8006772: 46bd mov sp, r7 - 8006774: f85d 7b04 ldr.w r7, [sp], #4 - 8006778: 4770 bx lr + 8006772: 4618 mov r0, r3 + 8006774: 371c adds r7, #28 + 8006776: 46bd mov sp, r7 + 8006778: f85d 7b04 ldr.w r7, [sp], #4 + 800677c: 4770 bx lr -0800677a : +0800677e : * @param RxBuff Pointer to the first RxBuffer list * @param RxBuffCount Number of the used Rx desc in the list * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_DMARxDescListInit(ETH_HandleTypeDef *heth, ETH_DMADescTypeDef *DMARxDescTab, uint8_t *RxBuff, uint32_t RxBuffCount) { - 800677a: b480 push {r7} - 800677c: b087 sub sp, #28 - 800677e: af00 add r7, sp, #0 - 8006780: 60f8 str r0, [r7, #12] - 8006782: 60b9 str r1, [r7, #8] - 8006784: 607a str r2, [r7, #4] - 8006786: 603b str r3, [r7, #0] + 800677e: b480 push {r7} + 8006780: b087 sub sp, #28 + 8006782: af00 add r7, sp, #0 + 8006784: 60f8 str r0, [r7, #12] + 8006786: 60b9 str r1, [r7, #8] + 8006788: 607a str r2, [r7, #4] + 800678a: 603b str r3, [r7, #0] uint32_t i = 0; - 8006788: 2300 movs r3, #0 - 800678a: 617b str r3, [r7, #20] + 800678c: 2300 movs r3, #0 + 800678e: 617b str r3, [r7, #20] ETH_DMADescTypeDef *DMARxDesc; /* Process Locked */ __HAL_LOCK(heth); - 800678c: 68fb ldr r3, [r7, #12] - 800678e: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8006792: 2b01 cmp r3, #1 - 8006794: d101 bne.n 800679a - 8006796: 2302 movs r3, #2 - 8006798: e056 b.n 8006848 - 800679a: 68fb ldr r3, [r7, #12] - 800679c: 2201 movs r2, #1 - 800679e: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006790: 68fb ldr r3, [r7, #12] + 8006792: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 8006796: 2b01 cmp r3, #1 + 8006798: d101 bne.n 800679e + 800679a: 2302 movs r3, #2 + 800679c: e056 b.n 800684c + 800679e: 68fb ldr r3, [r7, #12] + 80067a0: 2201 movs r2, #1 + 80067a2: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Set the ETH peripheral state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; - 80067a2: 68fb ldr r3, [r7, #12] - 80067a4: 2202 movs r2, #2 - 80067a6: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 80067a6: 68fb ldr r3, [r7, #12] + 80067a8: 2202 movs r2, #2 + 80067aa: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Set the Ethernet RxDesc pointer with the first one of the DMARxDescTab list */ heth->RxDesc = DMARxDescTab; - 80067aa: 68fb ldr r3, [r7, #12] - 80067ac: 68ba ldr r2, [r7, #8] - 80067ae: 629a str r2, [r3, #40] ; 0x28 + 80067ae: 68fb ldr r3, [r7, #12] + 80067b0: 68ba ldr r2, [r7, #8] + 80067b2: 629a str r2, [r3, #40] ; 0x28 /* Fill each DMARxDesc descriptor with the right values */ for(i=0; i < RxBuffCount; i++) - 80067b0: 2300 movs r3, #0 - 80067b2: 617b str r3, [r7, #20] - 80067b4: e034 b.n 8006820 + 80067b4: 2300 movs r3, #0 + 80067b6: 617b str r3, [r7, #20] + 80067b8: e034 b.n 8006824 { /* Get the pointer on the ith member of the Rx Desc list */ DMARxDesc = DMARxDescTab+i; - 80067b6: 697b ldr r3, [r7, #20] - 80067b8: 015b lsls r3, r3, #5 - 80067ba: 68ba ldr r2, [r7, #8] - 80067bc: 4413 add r3, r2 - 80067be: 613b str r3, [r7, #16] + 80067ba: 697b ldr r3, [r7, #20] + 80067bc: 015b lsls r3, r3, #5 + 80067be: 68ba ldr r2, [r7, #8] + 80067c0: 4413 add r3, r2 + 80067c2: 613b str r3, [r7, #16] /* Set Own bit of the Rx descriptor Status */ DMARxDesc->Status = ETH_DMARXDESC_OWN; - 80067c0: 693b ldr r3, [r7, #16] - 80067c2: f04f 4200 mov.w r2, #2147483648 ; 0x80000000 - 80067c6: 601a str r2, [r3, #0] + 80067c4: 693b ldr r3, [r7, #16] + 80067c6: f04f 4200 mov.w r2, #2147483648 ; 0x80000000 + 80067ca: 601a str r2, [r3, #0] /* Set Buffer1 size and Second Address Chained bit */ DMARxDesc->ControlBufferSize = ETH_DMARXDESC_RCH | ETH_RX_BUF_SIZE; - 80067c8: 693b ldr r3, [r7, #16] - 80067ca: f244 52f4 movw r2, #17908 ; 0x45f4 - 80067ce: 605a str r2, [r3, #4] + 80067cc: 693b ldr r3, [r7, #16] + 80067ce: f244 52f4 movw r2, #17908 ; 0x45f4 + 80067d2: 605a str r2, [r3, #4] /* Set Buffer1 address pointer */ DMARxDesc->Buffer1Addr = (uint32_t)(&RxBuff[i*ETH_RX_BUF_SIZE]); - 80067d0: 697b ldr r3, [r7, #20] - 80067d2: f240 52f4 movw r2, #1524 ; 0x5f4 - 80067d6: fb02 f303 mul.w r3, r2, r3 - 80067da: 687a ldr r2, [r7, #4] - 80067dc: 4413 add r3, r2 - 80067de: 461a mov r2, r3 - 80067e0: 693b ldr r3, [r7, #16] - 80067e2: 609a str r2, [r3, #8] + 80067d4: 697b ldr r3, [r7, #20] + 80067d6: f240 52f4 movw r2, #1524 ; 0x5f4 + 80067da: fb02 f303 mul.w r3, r2, r3 + 80067de: 687a ldr r2, [r7, #4] + 80067e0: 4413 add r3, r2 + 80067e2: 461a mov r2, r3 + 80067e4: 693b ldr r3, [r7, #16] + 80067e6: 609a str r2, [r3, #8] if((heth->Init).RxMode == ETH_RXINTERRUPT_MODE) - 80067e4: 68fb ldr r3, [r7, #12] - 80067e6: 699b ldr r3, [r3, #24] - 80067e8: 2b01 cmp r3, #1 - 80067ea: d105 bne.n 80067f8 + 80067e8: 68fb ldr r3, [r7, #12] + 80067ea: 699b ldr r3, [r3, #24] + 80067ec: 2b01 cmp r3, #1 + 80067ee: d105 bne.n 80067fc { /* Enable Ethernet DMA Rx Descriptor interrupt */ DMARxDesc->ControlBufferSize &= ~ETH_DMARXDESC_DIC; - 80067ec: 693b ldr r3, [r7, #16] - 80067ee: 685b ldr r3, [r3, #4] - 80067f0: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 - 80067f4: 693b ldr r3, [r7, #16] - 80067f6: 605a str r2, [r3, #4] + 80067f0: 693b ldr r3, [r7, #16] + 80067f2: 685b ldr r3, [r3, #4] + 80067f4: f023 4200 bic.w r2, r3, #2147483648 ; 0x80000000 + 80067f8: 693b ldr r3, [r7, #16] + 80067fa: 605a str r2, [r3, #4] } /* Initialize the next descriptor with the Next Descriptor Polling Enable */ if(i < (RxBuffCount-1)) - 80067f8: 683b ldr r3, [r7, #0] - 80067fa: 3b01 subs r3, #1 - 80067fc: 697a ldr r2, [r7, #20] - 80067fe: 429a cmp r2, r3 - 8006800: d208 bcs.n 8006814 + 80067fc: 683b ldr r3, [r7, #0] + 80067fe: 3b01 subs r3, #1 + 8006800: 697a ldr r2, [r7, #20] + 8006802: 429a cmp r2, r3 + 8006804: d208 bcs.n 8006818 { /* Set next descriptor address register with next descriptor base address */ DMARxDesc->Buffer2NextDescAddr = (uint32_t)(DMARxDescTab+i+1); - 8006802: 697b ldr r3, [r7, #20] - 8006804: 3301 adds r3, #1 - 8006806: 015b lsls r3, r3, #5 - 8006808: 68ba ldr r2, [r7, #8] - 800680a: 4413 add r3, r2 - 800680c: 461a mov r2, r3 - 800680e: 693b ldr r3, [r7, #16] - 8006810: 60da str r2, [r3, #12] - 8006812: e002 b.n 800681a + 8006806: 697b ldr r3, [r7, #20] + 8006808: 3301 adds r3, #1 + 800680a: 015b lsls r3, r3, #5 + 800680c: 68ba ldr r2, [r7, #8] + 800680e: 4413 add r3, r2 + 8006810: 461a mov r2, r3 + 8006812: 693b ldr r3, [r7, #16] + 8006814: 60da str r2, [r3, #12] + 8006816: e002 b.n 800681e } else { /* For last descriptor, set next descriptor address register equal to the first descriptor base address */ DMARxDesc->Buffer2NextDescAddr = (uint32_t)(DMARxDescTab); - 8006814: 68ba ldr r2, [r7, #8] - 8006816: 693b ldr r3, [r7, #16] - 8006818: 60da str r2, [r3, #12] + 8006818: 68ba ldr r2, [r7, #8] + 800681a: 693b ldr r3, [r7, #16] + 800681c: 60da str r2, [r3, #12] for(i=0; i < RxBuffCount; i++) - 800681a: 697b ldr r3, [r7, #20] - 800681c: 3301 adds r3, #1 - 800681e: 617b str r3, [r7, #20] - 8006820: 697a ldr r2, [r7, #20] - 8006822: 683b ldr r3, [r7, #0] - 8006824: 429a cmp r2, r3 - 8006826: d3c6 bcc.n 80067b6 + 800681e: 697b ldr r3, [r7, #20] + 8006820: 3301 adds r3, #1 + 8006822: 617b str r3, [r7, #20] + 8006824: 697a ldr r2, [r7, #20] + 8006826: 683b ldr r3, [r7, #0] + 8006828: 429a cmp r2, r3 + 800682a: d3c6 bcc.n 80067ba } } /* Set Receive Descriptor List Address Register */ (heth->Instance)->DMARDLAR = (uint32_t) DMARxDescTab; - 8006828: 68fb ldr r3, [r7, #12] - 800682a: 6819 ldr r1, [r3, #0] - 800682c: 68ba ldr r2, [r7, #8] - 800682e: f241 030c movw r3, #4108 ; 0x100c - 8006832: 440b add r3, r1 - 8006834: 601a str r2, [r3, #0] + 800682c: 68fb ldr r3, [r7, #12] + 800682e: 6819 ldr r1, [r3, #0] + 8006830: 68ba ldr r2, [r7, #8] + 8006832: f241 030c movw r3, #4108 ; 0x100c + 8006836: 440b add r3, r1 + 8006838: 601a str r2, [r3, #0] /* Set ETH HAL State to Ready */ heth->State= HAL_ETH_STATE_READY; - 8006836: 68fb ldr r3, [r7, #12] - 8006838: 2201 movs r2, #1 - 800683a: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800683a: 68fb ldr r3, [r7, #12] + 800683c: 2201 movs r2, #1 + 800683e: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 800683e: 68fb ldr r3, [r7, #12] - 8006840: 2200 movs r2, #0 - 8006842: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006842: 68fb ldr r3, [r7, #12] + 8006844: 2200 movs r2, #0 + 8006846: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Return function status */ return HAL_OK; - 8006846: 2300 movs r3, #0 + 800684a: 2300 movs r3, #0 } - 8006848: 4618 mov r0, r3 - 800684a: 371c adds r7, #28 - 800684c: 46bd mov sp, r7 - 800684e: f85d 7b04 ldr.w r7, [sp], #4 - 8006852: 4770 bx lr + 800684c: 4618 mov r0, r3 + 800684e: 371c adds r7, #28 + 8006850: 46bd mov sp, r7 + 8006852: f85d 7b04 ldr.w r7, [sp], #4 + 8006856: 4770 bx lr -08006854 : +08006858 : * the configuration information for ETHERNET module * @param FrameLength Amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameLength) { - 8006854: b480 push {r7} - 8006856: b087 sub sp, #28 - 8006858: af00 add r7, sp, #0 - 800685a: 6078 str r0, [r7, #4] - 800685c: 6039 str r1, [r7, #0] + 8006858: b480 push {r7} + 800685a: b087 sub sp, #28 + 800685c: af00 add r7, sp, #0 + 800685e: 6078 str r0, [r7, #4] + 8006860: 6039 str r1, [r7, #0] uint32_t bufcount = 0, size = 0, i = 0; - 800685e: 2300 movs r3, #0 - 8006860: 617b str r3, [r7, #20] 8006862: 2300 movs r3, #0 - 8006864: 60fb str r3, [r7, #12] + 8006864: 617b str r3, [r7, #20] 8006866: 2300 movs r3, #0 - 8006868: 613b str r3, [r7, #16] + 8006868: 60fb str r3, [r7, #12] + 800686a: 2300 movs r3, #0 + 800686c: 613b str r3, [r7, #16] /* Process Locked */ __HAL_LOCK(heth); - 800686a: 687b ldr r3, [r7, #4] - 800686c: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8006870: 2b01 cmp r3, #1 - 8006872: d101 bne.n 8006878 - 8006874: 2302 movs r3, #2 - 8006876: e0cd b.n 8006a14 - 8006878: 687b ldr r3, [r7, #4] - 800687a: 2201 movs r2, #1 - 800687c: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800686e: 687b ldr r3, [r7, #4] + 8006870: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 8006874: 2b01 cmp r3, #1 + 8006876: d101 bne.n 800687c + 8006878: 2302 movs r3, #2 + 800687a: e0cd b.n 8006a18 + 800687c: 687b ldr r3, [r7, #4] + 800687e: 2201 movs r2, #1 + 8006880: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Set the ETH peripheral state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; - 8006880: 687b ldr r3, [r7, #4] - 8006882: 2202 movs r2, #2 - 8006884: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006884: 687b ldr r3, [r7, #4] + 8006886: 2202 movs r2, #2 + 8006888: f883 2044 strb.w r2, [r3, #68] ; 0x44 if (FrameLength == 0) - 8006888: 683b ldr r3, [r7, #0] - 800688a: 2b00 cmp r3, #0 - 800688c: d109 bne.n 80068a2 + 800688c: 683b ldr r3, [r7, #0] + 800688e: 2b00 cmp r3, #0 + 8006890: d109 bne.n 80068a6 { /* Set ETH HAL state to READY */ heth->State = HAL_ETH_STATE_READY; - 800688e: 687b ldr r3, [r7, #4] - 8006890: 2201 movs r2, #1 - 8006892: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006892: 687b ldr r3, [r7, #4] + 8006894: 2201 movs r2, #1 + 8006896: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006896: 687b ldr r3, [r7, #4] - 8006898: 2200 movs r2, #0 - 800689a: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800689a: 687b ldr r3, [r7, #4] + 800689c: 2200 movs r2, #0 + 800689e: f883 2045 strb.w r2, [r3, #69] ; 0x45 return HAL_ERROR; - 800689e: 2301 movs r3, #1 - 80068a0: e0b8 b.n 8006a14 + 80068a2: 2301 movs r3, #1 + 80068a4: e0b8 b.n 8006a18 } /* Check if the descriptor is owned by the ETHERNET DMA (when set) or CPU (when reset) */ if(((heth->TxDesc)->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) - 80068a2: 687b ldr r3, [r7, #4] - 80068a4: 6adb ldr r3, [r3, #44] ; 0x2c - 80068a6: 681b ldr r3, [r3, #0] - 80068a8: 2b00 cmp r3, #0 - 80068aa: da09 bge.n 80068c0 + 80068a6: 687b ldr r3, [r7, #4] + 80068a8: 6adb ldr r3, [r3, #44] ; 0x2c + 80068aa: 681b ldr r3, [r3, #0] + 80068ac: 2b00 cmp r3, #0 + 80068ae: da09 bge.n 80068c4 { /* OWN bit set */ heth->State = HAL_ETH_STATE_BUSY_TX; - 80068ac: 687b ldr r3, [r7, #4] - 80068ae: 2212 movs r2, #18 - 80068b0: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 80068b0: 687b ldr r3, [r7, #4] + 80068b2: 2212 movs r2, #18 + 80068b4: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 80068b4: 687b ldr r3, [r7, #4] - 80068b6: 2200 movs r2, #0 - 80068b8: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 80068b8: 687b ldr r3, [r7, #4] + 80068ba: 2200 movs r2, #0 + 80068bc: f883 2045 strb.w r2, [r3, #69] ; 0x45 return HAL_ERROR; - 80068bc: 2301 movs r3, #1 - 80068be: e0a9 b.n 8006a14 + 80068c0: 2301 movs r3, #1 + 80068c2: e0a9 b.n 8006a18 } /* Get the number of needed Tx buffers for the current frame */ if (FrameLength > ETH_TX_BUF_SIZE) - 80068c0: 683b ldr r3, [r7, #0] - 80068c2: f240 52f4 movw r2, #1524 ; 0x5f4 - 80068c6: 4293 cmp r3, r2 - 80068c8: d915 bls.n 80068f6 + 80068c4: 683b ldr r3, [r7, #0] + 80068c6: f240 52f4 movw r2, #1524 ; 0x5f4 + 80068ca: 4293 cmp r3, r2 + 80068cc: d915 bls.n 80068fa { bufcount = FrameLength/ETH_TX_BUF_SIZE; - 80068ca: 683b ldr r3, [r7, #0] - 80068cc: 4a54 ldr r2, [pc, #336] ; (8006a20 ) - 80068ce: fba2 2303 umull r2, r3, r2, r3 - 80068d2: 0a9b lsrs r3, r3, #10 - 80068d4: 617b str r3, [r7, #20] + 80068ce: 683b ldr r3, [r7, #0] + 80068d0: 4a54 ldr r2, [pc, #336] ; (8006a24 ) + 80068d2: fba2 2303 umull r2, r3, r2, r3 + 80068d6: 0a9b lsrs r3, r3, #10 + 80068d8: 617b str r3, [r7, #20] if (FrameLength % ETH_TX_BUF_SIZE) - 80068d6: 683a ldr r2, [r7, #0] - 80068d8: 4b51 ldr r3, [pc, #324] ; (8006a20 ) - 80068da: fba3 1302 umull r1, r3, r3, r2 - 80068de: 0a9b lsrs r3, r3, #10 - 80068e0: f240 51f4 movw r1, #1524 ; 0x5f4 - 80068e4: fb01 f303 mul.w r3, r1, r3 - 80068e8: 1ad3 subs r3, r2, r3 - 80068ea: 2b00 cmp r3, #0 - 80068ec: d005 beq.n 80068fa + 80068da: 683a ldr r2, [r7, #0] + 80068dc: 4b51 ldr r3, [pc, #324] ; (8006a24 ) + 80068de: fba3 1302 umull r1, r3, r3, r2 + 80068e2: 0a9b lsrs r3, r3, #10 + 80068e4: f240 51f4 movw r1, #1524 ; 0x5f4 + 80068e8: fb01 f303 mul.w r3, r1, r3 + 80068ec: 1ad3 subs r3, r2, r3 + 80068ee: 2b00 cmp r3, #0 + 80068f0: d005 beq.n 80068fe { bufcount++; - 80068ee: 697b ldr r3, [r7, #20] - 80068f0: 3301 adds r3, #1 - 80068f2: 617b str r3, [r7, #20] - 80068f4: e001 b.n 80068fa + 80068f2: 697b ldr r3, [r7, #20] + 80068f4: 3301 adds r3, #1 + 80068f6: 617b str r3, [r7, #20] + 80068f8: e001 b.n 80068fe } } else { bufcount = 1; - 80068f6: 2301 movs r3, #1 - 80068f8: 617b str r3, [r7, #20] + 80068fa: 2301 movs r3, #1 + 80068fc: 617b str r3, [r7, #20] } if (bufcount == 1) - 80068fa: 697b ldr r3, [r7, #20] - 80068fc: 2b01 cmp r3, #1 - 80068fe: d11c bne.n 800693a + 80068fe: 697b ldr r3, [r7, #20] + 8006900: 2b01 cmp r3, #1 + 8006902: d11c bne.n 800693e { /* Set LAST and FIRST segment */ heth->TxDesc->Status |=ETH_DMATXDESC_FS|ETH_DMATXDESC_LS; - 8006900: 687b ldr r3, [r7, #4] - 8006902: 6adb ldr r3, [r3, #44] ; 0x2c - 8006904: 681a ldr r2, [r3, #0] - 8006906: 687b ldr r3, [r7, #4] - 8006908: 6adb ldr r3, [r3, #44] ; 0x2c - 800690a: f042 5240 orr.w r2, r2, #805306368 ; 0x30000000 - 800690e: 601a str r2, [r3, #0] + 8006904: 687b ldr r3, [r7, #4] + 8006906: 6adb ldr r3, [r3, #44] ; 0x2c + 8006908: 681a ldr r2, [r3, #0] + 800690a: 687b ldr r3, [r7, #4] + 800690c: 6adb ldr r3, [r3, #44] ; 0x2c + 800690e: f042 5240 orr.w r2, r2, #805306368 ; 0x30000000 + 8006912: 601a str r2, [r3, #0] /* Set frame size */ heth->TxDesc->ControlBufferSize = (FrameLength & ETH_DMATXDESC_TBS1); - 8006910: 687b ldr r3, [r7, #4] - 8006912: 6adb ldr r3, [r3, #44] ; 0x2c - 8006914: 683a ldr r2, [r7, #0] - 8006916: f3c2 020c ubfx r2, r2, #0, #13 - 800691a: 605a str r2, [r3, #4] + 8006914: 687b ldr r3, [r7, #4] + 8006916: 6adb ldr r3, [r3, #44] ; 0x2c + 8006918: 683a ldr r2, [r7, #0] + 800691a: f3c2 020c ubfx r2, r2, #0, #13 + 800691e: 605a str r2, [r3, #4] /* Set Own bit of the Tx descriptor Status: gives the buffer back to ETHERNET DMA */ heth->TxDesc->Status |= ETH_DMATXDESC_OWN; - 800691c: 687b ldr r3, [r7, #4] - 800691e: 6adb ldr r3, [r3, #44] ; 0x2c - 8006920: 681a ldr r2, [r3, #0] - 8006922: 687b ldr r3, [r7, #4] - 8006924: 6adb ldr r3, [r3, #44] ; 0x2c - 8006926: f042 4200 orr.w r2, r2, #2147483648 ; 0x80000000 - 800692a: 601a str r2, [r3, #0] + 8006920: 687b ldr r3, [r7, #4] + 8006922: 6adb ldr r3, [r3, #44] ; 0x2c + 8006924: 681a ldr r2, [r3, #0] + 8006926: 687b ldr r3, [r7, #4] + 8006928: 6adb ldr r3, [r3, #44] ; 0x2c + 800692a: f042 4200 orr.w r2, r2, #2147483648 ; 0x80000000 + 800692e: 601a str r2, [r3, #0] /* Point to next descriptor */ heth->TxDesc= (ETH_DMADescTypeDef *)(heth->TxDesc->Buffer2NextDescAddr); - 800692c: 687b ldr r3, [r7, #4] - 800692e: 6adb ldr r3, [r3, #44] ; 0x2c - 8006930: 68db ldr r3, [r3, #12] - 8006932: 461a mov r2, r3 - 8006934: 687b ldr r3, [r7, #4] - 8006936: 62da str r2, [r3, #44] ; 0x2c - 8006938: e04b b.n 80069d2 + 8006930: 687b ldr r3, [r7, #4] + 8006932: 6adb ldr r3, [r3, #44] ; 0x2c + 8006934: 68db ldr r3, [r3, #12] + 8006936: 461a mov r2, r3 + 8006938: 687b ldr r3, [r7, #4] + 800693a: 62da str r2, [r3, #44] ; 0x2c + 800693c: e04b b.n 80069d6 } else { for (i=0; i< bufcount; i++) - 800693a: 2300 movs r3, #0 - 800693c: 613b str r3, [r7, #16] - 800693e: e044 b.n 80069ca + 800693e: 2300 movs r3, #0 + 8006940: 613b str r3, [r7, #16] + 8006942: e044 b.n 80069ce { /* Clear FIRST and LAST segment bits */ heth->TxDesc->Status &= ~(ETH_DMATXDESC_FS | ETH_DMATXDESC_LS); - 8006940: 687b ldr r3, [r7, #4] - 8006942: 6adb ldr r3, [r3, #44] ; 0x2c - 8006944: 681a ldr r2, [r3, #0] - 8006946: 687b ldr r3, [r7, #4] - 8006948: 6adb ldr r3, [r3, #44] ; 0x2c - 800694a: f022 5240 bic.w r2, r2, #805306368 ; 0x30000000 - 800694e: 601a str r2, [r3, #0] + 8006944: 687b ldr r3, [r7, #4] + 8006946: 6adb ldr r3, [r3, #44] ; 0x2c + 8006948: 681a ldr r2, [r3, #0] + 800694a: 687b ldr r3, [r7, #4] + 800694c: 6adb ldr r3, [r3, #44] ; 0x2c + 800694e: f022 5240 bic.w r2, r2, #805306368 ; 0x30000000 + 8006952: 601a str r2, [r3, #0] if (i == 0) - 8006950: 693b ldr r3, [r7, #16] - 8006952: 2b00 cmp r3, #0 - 8006954: d107 bne.n 8006966 + 8006954: 693b ldr r3, [r7, #16] + 8006956: 2b00 cmp r3, #0 + 8006958: d107 bne.n 800696a { /* Setting the first segment bit */ heth->TxDesc->Status |= ETH_DMATXDESC_FS; - 8006956: 687b ldr r3, [r7, #4] - 8006958: 6adb ldr r3, [r3, #44] ; 0x2c - 800695a: 681a ldr r2, [r3, #0] - 800695c: 687b ldr r3, [r7, #4] - 800695e: 6adb ldr r3, [r3, #44] ; 0x2c - 8006960: f042 5280 orr.w r2, r2, #268435456 ; 0x10000000 - 8006964: 601a str r2, [r3, #0] + 800695a: 687b ldr r3, [r7, #4] + 800695c: 6adb ldr r3, [r3, #44] ; 0x2c + 800695e: 681a ldr r2, [r3, #0] + 8006960: 687b ldr r3, [r7, #4] + 8006962: 6adb ldr r3, [r3, #44] ; 0x2c + 8006964: f042 5280 orr.w r2, r2, #268435456 ; 0x10000000 + 8006968: 601a str r2, [r3, #0] } /* Program size */ heth->TxDesc->ControlBufferSize = (ETH_TX_BUF_SIZE & ETH_DMATXDESC_TBS1); - 8006966: 687b ldr r3, [r7, #4] - 8006968: 6adb ldr r3, [r3, #44] ; 0x2c - 800696a: f240 52f4 movw r2, #1524 ; 0x5f4 - 800696e: 605a str r2, [r3, #4] + 800696a: 687b ldr r3, [r7, #4] + 800696c: 6adb ldr r3, [r3, #44] ; 0x2c + 800696e: f240 52f4 movw r2, #1524 ; 0x5f4 + 8006972: 605a str r2, [r3, #4] if (i == (bufcount-1)) - 8006970: 697b ldr r3, [r7, #20] - 8006972: 3b01 subs r3, #1 - 8006974: 693a ldr r2, [r7, #16] - 8006976: 429a cmp r2, r3 - 8006978: d116 bne.n 80069a8 + 8006974: 697b ldr r3, [r7, #20] + 8006976: 3b01 subs r3, #1 + 8006978: 693a ldr r2, [r7, #16] + 800697a: 429a cmp r2, r3 + 800697c: d116 bne.n 80069ac { /* Setting the last segment bit */ heth->TxDesc->Status |= ETH_DMATXDESC_LS; - 800697a: 687b ldr r3, [r7, #4] - 800697c: 6adb ldr r3, [r3, #44] ; 0x2c - 800697e: 681a ldr r2, [r3, #0] - 8006980: 687b ldr r3, [r7, #4] - 8006982: 6adb ldr r3, [r3, #44] ; 0x2c - 8006984: f042 5200 orr.w r2, r2, #536870912 ; 0x20000000 - 8006988: 601a str r2, [r3, #0] + 800697e: 687b ldr r3, [r7, #4] + 8006980: 6adb ldr r3, [r3, #44] ; 0x2c + 8006982: 681a ldr r2, [r3, #0] + 8006984: 687b ldr r3, [r7, #4] + 8006986: 6adb ldr r3, [r3, #44] ; 0x2c + 8006988: f042 5200 orr.w r2, r2, #536870912 ; 0x20000000 + 800698c: 601a str r2, [r3, #0] size = FrameLength - (bufcount-1)*ETH_TX_BUF_SIZE; - 800698a: 697b ldr r3, [r7, #20] - 800698c: 4a25 ldr r2, [pc, #148] ; (8006a24 ) - 800698e: fb02 f203 mul.w r2, r2, r3 - 8006992: 683b ldr r3, [r7, #0] - 8006994: 4413 add r3, r2 - 8006996: f203 53f4 addw r3, r3, #1524 ; 0x5f4 - 800699a: 60fb str r3, [r7, #12] + 800698e: 697b ldr r3, [r7, #20] + 8006990: 4a25 ldr r2, [pc, #148] ; (8006a28 ) + 8006992: fb02 f203 mul.w r2, r2, r3 + 8006996: 683b ldr r3, [r7, #0] + 8006998: 4413 add r3, r2 + 800699a: f203 53f4 addw r3, r3, #1524 ; 0x5f4 + 800699e: 60fb str r3, [r7, #12] heth->TxDesc->ControlBufferSize = (size & ETH_DMATXDESC_TBS1); - 800699c: 687b ldr r3, [r7, #4] - 800699e: 6adb ldr r3, [r3, #44] ; 0x2c - 80069a0: 68fa ldr r2, [r7, #12] - 80069a2: f3c2 020c ubfx r2, r2, #0, #13 - 80069a6: 605a str r2, [r3, #4] + 80069a0: 687b ldr r3, [r7, #4] + 80069a2: 6adb ldr r3, [r3, #44] ; 0x2c + 80069a4: 68fa ldr r2, [r7, #12] + 80069a6: f3c2 020c ubfx r2, r2, #0, #13 + 80069aa: 605a str r2, [r3, #4] } /* Set Own bit of the Tx descriptor Status: gives the buffer back to ETHERNET DMA */ heth->TxDesc->Status |= ETH_DMATXDESC_OWN; - 80069a8: 687b ldr r3, [r7, #4] - 80069aa: 6adb ldr r3, [r3, #44] ; 0x2c - 80069ac: 681a ldr r2, [r3, #0] - 80069ae: 687b ldr r3, [r7, #4] - 80069b0: 6adb ldr r3, [r3, #44] ; 0x2c - 80069b2: f042 4200 orr.w r2, r2, #2147483648 ; 0x80000000 - 80069b6: 601a str r2, [r3, #0] + 80069ac: 687b ldr r3, [r7, #4] + 80069ae: 6adb ldr r3, [r3, #44] ; 0x2c + 80069b0: 681a ldr r2, [r3, #0] + 80069b2: 687b ldr r3, [r7, #4] + 80069b4: 6adb ldr r3, [r3, #44] ; 0x2c + 80069b6: f042 4200 orr.w r2, r2, #2147483648 ; 0x80000000 + 80069ba: 601a str r2, [r3, #0] /* point to next descriptor */ heth->TxDesc = (ETH_DMADescTypeDef *)(heth->TxDesc->Buffer2NextDescAddr); - 80069b8: 687b ldr r3, [r7, #4] - 80069ba: 6adb ldr r3, [r3, #44] ; 0x2c - 80069bc: 68db ldr r3, [r3, #12] - 80069be: 461a mov r2, r3 - 80069c0: 687b ldr r3, [r7, #4] - 80069c2: 62da str r2, [r3, #44] ; 0x2c + 80069bc: 687b ldr r3, [r7, #4] + 80069be: 6adb ldr r3, [r3, #44] ; 0x2c + 80069c0: 68db ldr r3, [r3, #12] + 80069c2: 461a mov r2, r3 + 80069c4: 687b ldr r3, [r7, #4] + 80069c6: 62da str r2, [r3, #44] ; 0x2c for (i=0; i< bufcount; i++) - 80069c4: 693b ldr r3, [r7, #16] - 80069c6: 3301 adds r3, #1 - 80069c8: 613b str r3, [r7, #16] - 80069ca: 693a ldr r2, [r7, #16] - 80069cc: 697b ldr r3, [r7, #20] - 80069ce: 429a cmp r2, r3 - 80069d0: d3b6 bcc.n 8006940 + 80069c8: 693b ldr r3, [r7, #16] + 80069ca: 3301 adds r3, #1 + 80069cc: 613b str r3, [r7, #16] + 80069ce: 693a ldr r2, [r7, #16] + 80069d0: 697b ldr r3, [r7, #20] + 80069d2: 429a cmp r2, r3 + 80069d4: d3b6 bcc.n 8006944 } } /* When Tx Buffer unavailable flag is set: clear it and resume transmission */ if (((heth->Instance)->DMASR & ETH_DMASR_TBUS) != (uint32_t)RESET) - 80069d2: 687b ldr r3, [r7, #4] - 80069d4: 681a ldr r2, [r3, #0] - 80069d6: f241 0314 movw r3, #4116 ; 0x1014 - 80069da: 4413 add r3, r2 - 80069dc: 681b ldr r3, [r3, #0] - 80069de: f003 0304 and.w r3, r3, #4 - 80069e2: 2b00 cmp r3, #0 - 80069e4: d00d beq.n 8006a02 + 80069d6: 687b ldr r3, [r7, #4] + 80069d8: 681a ldr r2, [r3, #0] + 80069da: f241 0314 movw r3, #4116 ; 0x1014 + 80069de: 4413 add r3, r2 + 80069e0: 681b ldr r3, [r3, #0] + 80069e2: f003 0304 and.w r3, r3, #4 + 80069e6: 2b00 cmp r3, #0 + 80069e8: d00d beq.n 8006a06 { /* Clear TBUS ETHERNET DMA flag */ (heth->Instance)->DMASR = ETH_DMASR_TBUS; - 80069e6: 687b ldr r3, [r7, #4] - 80069e8: 681a ldr r2, [r3, #0] - 80069ea: f241 0314 movw r3, #4116 ; 0x1014 - 80069ee: 4413 add r3, r2 - 80069f0: 2204 movs r2, #4 - 80069f2: 601a str r2, [r3, #0] + 80069ea: 687b ldr r3, [r7, #4] + 80069ec: 681a ldr r2, [r3, #0] + 80069ee: f241 0314 movw r3, #4116 ; 0x1014 + 80069f2: 4413 add r3, r2 + 80069f4: 2204 movs r2, #4 + 80069f6: 601a str r2, [r3, #0] /* Resume DMA transmission*/ (heth->Instance)->DMATPDR = 0; - 80069f4: 687b ldr r3, [r7, #4] - 80069f6: 681a ldr r2, [r3, #0] - 80069f8: f241 0304 movw r3, #4100 ; 0x1004 - 80069fc: 4413 add r3, r2 - 80069fe: 2200 movs r2, #0 - 8006a00: 601a str r2, [r3, #0] + 80069f8: 687b ldr r3, [r7, #4] + 80069fa: 681a ldr r2, [r3, #0] + 80069fc: f241 0304 movw r3, #4100 ; 0x1004 + 8006a00: 4413 add r3, r2 + 8006a02: 2200 movs r2, #0 + 8006a04: 601a str r2, [r3, #0] } /* Set ETH HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - 8006a02: 687b ldr r3, [r7, #4] - 8006a04: 2201 movs r2, #1 - 8006a06: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006a06: 687b ldr r3, [r7, #4] + 8006a08: 2201 movs r2, #1 + 8006a0a: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006a0a: 687b ldr r3, [r7, #4] - 8006a0c: 2200 movs r2, #0 - 8006a0e: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006a0e: 687b ldr r3, [r7, #4] + 8006a10: 2200 movs r2, #0 + 8006a12: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Return function status */ return HAL_OK; - 8006a12: 2300 movs r3, #0 + 8006a16: 2300 movs r3, #0 } - 8006a14: 4618 mov r0, r3 - 8006a16: 371c adds r7, #28 - 8006a18: 46bd mov sp, r7 - 8006a1a: f85d 7b04 ldr.w r7, [sp], #4 - 8006a1e: 4770 bx lr - 8006a20: ac02b00b .word 0xac02b00b - 8006a24: fffffa0c .word 0xfffffa0c + 8006a18: 4618 mov r0, r3 + 8006a1a: 371c adds r7, #28 + 8006a1c: 46bd mov sp, r7 + 8006a1e: f85d 7b04 ldr.w r7, [sp], #4 + 8006a22: 4770 bx lr + 8006a24: ac02b00b .word 0xac02b00b + 8006a28: fffffa0c .word 0xfffffa0c -08006a28 : +08006a2c : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) { - 8006a28: b480 push {r7} - 8006a2a: b085 sub sp, #20 - 8006a2c: af00 add r7, sp, #0 - 8006a2e: 6078 str r0, [r7, #4] + 8006a2c: b480 push {r7} + 8006a2e: b085 sub sp, #20 + 8006a30: af00 add r7, sp, #0 + 8006a32: 6078 str r0, [r7, #4] uint32_t descriptorscancounter = 0; - 8006a30: 2300 movs r3, #0 - 8006a32: 60fb str r3, [r7, #12] + 8006a34: 2300 movs r3, #0 + 8006a36: 60fb str r3, [r7, #12] /* Process Locked */ __HAL_LOCK(heth); - 8006a34: 687b ldr r3, [r7, #4] - 8006a36: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8006a3a: 2b01 cmp r3, #1 - 8006a3c: d101 bne.n 8006a42 - 8006a3e: 2302 movs r3, #2 - 8006a40: e074 b.n 8006b2c - 8006a42: 687b ldr r3, [r7, #4] - 8006a44: 2201 movs r2, #1 - 8006a46: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006a38: 687b ldr r3, [r7, #4] + 8006a3a: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 8006a3e: 2b01 cmp r3, #1 + 8006a40: d101 bne.n 8006a46 + 8006a42: 2302 movs r3, #2 + 8006a44: e074 b.n 8006b30 + 8006a46: 687b ldr r3, [r7, #4] + 8006a48: 2201 movs r2, #1 + 8006a4a: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Set ETH HAL State to BUSY */ heth->State = HAL_ETH_STATE_BUSY; - 8006a4a: 687b ldr r3, [r7, #4] - 8006a4c: 2202 movs r2, #2 - 8006a4e: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006a4e: 687b ldr r3, [r7, #4] + 8006a50: 2202 movs r2, #2 + 8006a52: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Scan descriptors owned by CPU */ while (((heth->RxDesc->Status & ETH_DMARXDESC_OWN) == (uint32_t)RESET) && (descriptorscancounter < ETH_RXBUFNB)) - 8006a52: e05a b.n 8006b0a + 8006a56: e05a b.n 8006b0e { /* Just for security */ descriptorscancounter++; - 8006a54: 68fb ldr r3, [r7, #12] - 8006a56: 3301 adds r3, #1 - 8006a58: 60fb str r3, [r7, #12] + 8006a58: 68fb ldr r3, [r7, #12] + 8006a5a: 3301 adds r3, #1 + 8006a5c: 60fb str r3, [r7, #12] /* Check if first segment in frame */ /* ((heth->RxDesc->Status & ETH_DMARXDESC_FS) != (uint32_t)RESET) && ((heth->RxDesc->Status & ETH_DMARXDESC_LS) == (uint32_t)RESET)) */ if((heth->RxDesc->Status & (ETH_DMARXDESC_FS | ETH_DMARXDESC_LS)) == (uint32_t)ETH_DMARXDESC_FS) - 8006a5a: 687b ldr r3, [r7, #4] - 8006a5c: 6a9b ldr r3, [r3, #40] ; 0x28 - 8006a5e: 681b ldr r3, [r3, #0] - 8006a60: f403 7340 and.w r3, r3, #768 ; 0x300 - 8006a64: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 8006a68: d10d bne.n 8006a86 + 8006a5e: 687b ldr r3, [r7, #4] + 8006a60: 6a9b ldr r3, [r3, #40] ; 0x28 + 8006a62: 681b ldr r3, [r3, #0] + 8006a64: f403 7340 and.w r3, r3, #768 ; 0x300 + 8006a68: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 8006a6c: d10d bne.n 8006a8a { heth->RxFrameInfos.FSRxDesc = heth->RxDesc; - 8006a6a: 687b ldr r3, [r7, #4] - 8006a6c: 6a9a ldr r2, [r3, #40] ; 0x28 8006a6e: 687b ldr r3, [r7, #4] - 8006a70: 631a str r2, [r3, #48] ; 0x30 - heth->RxFrameInfos.SegCount = 1; + 8006a70: 6a9a ldr r2, [r3, #40] ; 0x28 8006a72: 687b ldr r3, [r7, #4] - 8006a74: 2201 movs r2, #1 - 8006a76: 639a str r2, [r3, #56] ; 0x38 + 8006a74: 631a str r2, [r3, #48] ; 0x30 + heth->RxFrameInfos.SegCount = 1; + 8006a76: 687b ldr r3, [r7, #4] + 8006a78: 2201 movs r2, #1 + 8006a7a: 639a str r2, [r3, #56] ; 0x38 /* Point to next descriptor */ heth->RxDesc = (ETH_DMADescTypeDef*) (heth->RxDesc->Buffer2NextDescAddr); - 8006a78: 687b ldr r3, [r7, #4] - 8006a7a: 6a9b ldr r3, [r3, #40] ; 0x28 - 8006a7c: 68db ldr r3, [r3, #12] - 8006a7e: 461a mov r2, r3 - 8006a80: 687b ldr r3, [r7, #4] - 8006a82: 629a str r2, [r3, #40] ; 0x28 - 8006a84: e041 b.n 8006b0a + 8006a7c: 687b ldr r3, [r7, #4] + 8006a7e: 6a9b ldr r3, [r3, #40] ; 0x28 + 8006a80: 68db ldr r3, [r3, #12] + 8006a82: 461a mov r2, r3 + 8006a84: 687b ldr r3, [r7, #4] + 8006a86: 629a str r2, [r3, #40] ; 0x28 + 8006a88: e041 b.n 8006b0e } /* Check if intermediate segment */ /* ((heth->RxDesc->Status & ETH_DMARXDESC_LS) == (uint32_t)RESET)&& ((heth->RxDesc->Status & ETH_DMARXDESC_FS) == (uint32_t)RESET)) */ else if ((heth->RxDesc->Status & (ETH_DMARXDESC_LS | ETH_DMARXDESC_FS)) == (uint32_t)RESET) - 8006a86: 687b ldr r3, [r7, #4] - 8006a88: 6a9b ldr r3, [r3, #40] ; 0x28 - 8006a8a: 681b ldr r3, [r3, #0] - 8006a8c: f403 7340 and.w r3, r3, #768 ; 0x300 - 8006a90: 2b00 cmp r3, #0 - 8006a92: d10b bne.n 8006aac + 8006a8a: 687b ldr r3, [r7, #4] + 8006a8c: 6a9b ldr r3, [r3, #40] ; 0x28 + 8006a8e: 681b ldr r3, [r3, #0] + 8006a90: f403 7340 and.w r3, r3, #768 ; 0x300 + 8006a94: 2b00 cmp r3, #0 + 8006a96: d10b bne.n 8006ab0 { /* Increment segment count */ (heth->RxFrameInfos.SegCount)++; - 8006a94: 687b ldr r3, [r7, #4] - 8006a96: 6b9b ldr r3, [r3, #56] ; 0x38 - 8006a98: 1c5a adds r2, r3, #1 - 8006a9a: 687b ldr r3, [r7, #4] - 8006a9c: 639a str r2, [r3, #56] ; 0x38 + 8006a98: 687b ldr r3, [r7, #4] + 8006a9a: 6b9b ldr r3, [r3, #56] ; 0x38 + 8006a9c: 1c5a adds r2, r3, #1 + 8006a9e: 687b ldr r3, [r7, #4] + 8006aa0: 639a str r2, [r3, #56] ; 0x38 /* Point to next descriptor */ heth->RxDesc = (ETH_DMADescTypeDef*)(heth->RxDesc->Buffer2NextDescAddr); - 8006a9e: 687b ldr r3, [r7, #4] - 8006aa0: 6a9b ldr r3, [r3, #40] ; 0x28 - 8006aa2: 68db ldr r3, [r3, #12] - 8006aa4: 461a mov r2, r3 - 8006aa6: 687b ldr r3, [r7, #4] - 8006aa8: 629a str r2, [r3, #40] ; 0x28 - 8006aaa: e02e b.n 8006b0a + 8006aa2: 687b ldr r3, [r7, #4] + 8006aa4: 6a9b ldr r3, [r3, #40] ; 0x28 + 8006aa6: 68db ldr r3, [r3, #12] + 8006aa8: 461a mov r2, r3 + 8006aaa: 687b ldr r3, [r7, #4] + 8006aac: 629a str r2, [r3, #40] ; 0x28 + 8006aae: e02e b.n 8006b0e } /* Should be last segment */ else { /* Last segment */ heth->RxFrameInfos.LSRxDesc = heth->RxDesc; - 8006aac: 687b ldr r3, [r7, #4] - 8006aae: 6a9a ldr r2, [r3, #40] ; 0x28 8006ab0: 687b ldr r3, [r7, #4] - 8006ab2: 635a str r2, [r3, #52] ; 0x34 + 8006ab2: 6a9a ldr r2, [r3, #40] ; 0x28 + 8006ab4: 687b ldr r3, [r7, #4] + 8006ab6: 635a str r2, [r3, #52] ; 0x34 /* Increment segment count */ (heth->RxFrameInfos.SegCount)++; - 8006ab4: 687b ldr r3, [r7, #4] - 8006ab6: 6b9b ldr r3, [r3, #56] ; 0x38 - 8006ab8: 1c5a adds r2, r3, #1 - 8006aba: 687b ldr r3, [r7, #4] - 8006abc: 639a str r2, [r3, #56] ; 0x38 + 8006ab8: 687b ldr r3, [r7, #4] + 8006aba: 6b9b ldr r3, [r3, #56] ; 0x38 + 8006abc: 1c5a adds r2, r3, #1 + 8006abe: 687b ldr r3, [r7, #4] + 8006ac0: 639a str r2, [r3, #56] ; 0x38 /* Check if last segment is first segment: one segment contains the frame */ if ((heth->RxFrameInfos.SegCount) == 1) - 8006abe: 687b ldr r3, [r7, #4] - 8006ac0: 6b9b ldr r3, [r3, #56] ; 0x38 - 8006ac2: 2b01 cmp r3, #1 - 8006ac4: d103 bne.n 8006ace + 8006ac2: 687b ldr r3, [r7, #4] + 8006ac4: 6b9b ldr r3, [r3, #56] ; 0x38 + 8006ac6: 2b01 cmp r3, #1 + 8006ac8: d103 bne.n 8006ad2 { heth->RxFrameInfos.FSRxDesc = heth->RxDesc; - 8006ac6: 687b ldr r3, [r7, #4] - 8006ac8: 6a9a ldr r2, [r3, #40] ; 0x28 8006aca: 687b ldr r3, [r7, #4] - 8006acc: 631a str r2, [r3, #48] ; 0x30 + 8006acc: 6a9a ldr r2, [r3, #40] ; 0x28 + 8006ace: 687b ldr r3, [r7, #4] + 8006ad0: 631a str r2, [r3, #48] ; 0x30 } /* Get the Frame Length of the received packet: substruct 4 bytes of the CRC */ heth->RxFrameInfos.length = (((heth->RxDesc)->Status & ETH_DMARXDESC_FL) >> ETH_DMARXDESC_FRAMELENGTHSHIFT) - 4; - 8006ace: 687b ldr r3, [r7, #4] - 8006ad0: 6a9b ldr r3, [r3, #40] ; 0x28 - 8006ad2: 681b ldr r3, [r3, #0] - 8006ad4: 0c1b lsrs r3, r3, #16 - 8006ad6: f3c3 030d ubfx r3, r3, #0, #14 - 8006ada: 1f1a subs r2, r3, #4 - 8006adc: 687b ldr r3, [r7, #4] - 8006ade: 63da str r2, [r3, #60] ; 0x3c + 8006ad2: 687b ldr r3, [r7, #4] + 8006ad4: 6a9b ldr r3, [r3, #40] ; 0x28 + 8006ad6: 681b ldr r3, [r3, #0] + 8006ad8: 0c1b lsrs r3, r3, #16 + 8006ada: f3c3 030d ubfx r3, r3, #0, #14 + 8006ade: 1f1a subs r2, r3, #4 + 8006ae0: 687b ldr r3, [r7, #4] + 8006ae2: 63da str r2, [r3, #60] ; 0x3c /* Get the address of the buffer start address */ heth->RxFrameInfos.buffer =((heth->RxFrameInfos).FSRxDesc)->Buffer1Addr; - 8006ae0: 687b ldr r3, [r7, #4] - 8006ae2: 6b1b ldr r3, [r3, #48] ; 0x30 - 8006ae4: 689a ldr r2, [r3, #8] - 8006ae6: 687b ldr r3, [r7, #4] - 8006ae8: 641a str r2, [r3, #64] ; 0x40 + 8006ae4: 687b ldr r3, [r7, #4] + 8006ae6: 6b1b ldr r3, [r3, #48] ; 0x30 + 8006ae8: 689a ldr r2, [r3, #8] + 8006aea: 687b ldr r3, [r7, #4] + 8006aec: 641a str r2, [r3, #64] ; 0x40 /* Point to next descriptor */ heth->RxDesc = (ETH_DMADescTypeDef*) (heth->RxDesc->Buffer2NextDescAddr); - 8006aea: 687b ldr r3, [r7, #4] - 8006aec: 6a9b ldr r3, [r3, #40] ; 0x28 - 8006aee: 68db ldr r3, [r3, #12] - 8006af0: 461a mov r2, r3 - 8006af2: 687b ldr r3, [r7, #4] - 8006af4: 629a str r2, [r3, #40] ; 0x28 + 8006aee: 687b ldr r3, [r7, #4] + 8006af0: 6a9b ldr r3, [r3, #40] ; 0x28 + 8006af2: 68db ldr r3, [r3, #12] + 8006af4: 461a mov r2, r3 + 8006af6: 687b ldr r3, [r7, #4] + 8006af8: 629a str r2, [r3, #40] ; 0x28 /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - 8006af6: 687b ldr r3, [r7, #4] - 8006af8: 2201 movs r2, #1 - 8006afa: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006afa: 687b ldr r3, [r7, #4] + 8006afc: 2201 movs r2, #1 + 8006afe: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006afe: 687b ldr r3, [r7, #4] - 8006b00: 2200 movs r2, #0 - 8006b02: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006b02: 687b ldr r3, [r7, #4] + 8006b04: 2200 movs r2, #0 + 8006b06: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Return function status */ return HAL_OK; - 8006b06: 2300 movs r3, #0 - 8006b08: e010 b.n 8006b2c + 8006b0a: 2300 movs r3, #0 + 8006b0c: e010 b.n 8006b30 while (((heth->RxDesc->Status & ETH_DMARXDESC_OWN) == (uint32_t)RESET) && (descriptorscancounter < ETH_RXBUFNB)) - 8006b0a: 687b ldr r3, [r7, #4] - 8006b0c: 6a9b ldr r3, [r3, #40] ; 0x28 - 8006b0e: 681b ldr r3, [r3, #0] - 8006b10: 2b00 cmp r3, #0 - 8006b12: db02 blt.n 8006b1a - 8006b14: 68fb ldr r3, [r7, #12] - 8006b16: 2b03 cmp r3, #3 - 8006b18: d99c bls.n 8006a54 + 8006b0e: 687b ldr r3, [r7, #4] + 8006b10: 6a9b ldr r3, [r3, #40] ; 0x28 + 8006b12: 681b ldr r3, [r3, #0] + 8006b14: 2b00 cmp r3, #0 + 8006b16: db02 blt.n 8006b1e + 8006b18: 68fb ldr r3, [r7, #12] + 8006b1a: 2b03 cmp r3, #3 + 8006b1c: d99c bls.n 8006a58 } } /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - 8006b1a: 687b ldr r3, [r7, #4] - 8006b1c: 2201 movs r2, #1 - 8006b1e: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006b1e: 687b ldr r3, [r7, #4] + 8006b20: 2201 movs r2, #1 + 8006b22: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006b22: 687b ldr r3, [r7, #4] - 8006b24: 2200 movs r2, #0 - 8006b26: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006b26: 687b ldr r3, [r7, #4] + 8006b28: 2200 movs r2, #0 + 8006b2a: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Return function status */ return HAL_ERROR; - 8006b2a: 2301 movs r3, #1 + 8006b2e: 2301 movs r3, #1 } - 8006b2c: 4618 mov r0, r3 - 8006b2e: 3714 adds r7, #20 - 8006b30: 46bd mov sp, r7 - 8006b32: f85d 7b04 ldr.w r7, [sp], #4 - 8006b36: 4770 bx lr + 8006b30: 4618 mov r0, r3 + 8006b32: 3714 adds r7, #20 + 8006b34: 46bd mov sp, r7 + 8006b36: f85d 7b04 ldr.w r7, [sp], #4 + 8006b3a: 4770 bx lr -08006b38 : +08006b3c : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ void HAL_ETH_IRQHandler(ETH_HandleTypeDef *heth) { - 8006b38: b580 push {r7, lr} - 8006b3a: b082 sub sp, #8 - 8006b3c: af00 add r7, sp, #0 - 8006b3e: 6078 str r0, [r7, #4] + 8006b3c: b580 push {r7, lr} + 8006b3e: b082 sub sp, #8 + 8006b40: af00 add r7, sp, #0 + 8006b42: 6078 str r0, [r7, #4] /* Frame received */ if (__HAL_ETH_DMA_GET_FLAG(heth, ETH_DMA_FLAG_R)) - 8006b40: 687b ldr r3, [r7, #4] - 8006b42: 681a ldr r2, [r3, #0] - 8006b44: f241 0314 movw r3, #4116 ; 0x1014 - 8006b48: 4413 add r3, r2 - 8006b4a: 681b ldr r3, [r3, #0] - 8006b4c: f003 0340 and.w r3, r3, #64 ; 0x40 - 8006b50: 2b40 cmp r3, #64 ; 0x40 - 8006b52: d112 bne.n 8006b7a + 8006b44: 687b ldr r3, [r7, #4] + 8006b46: 681a ldr r2, [r3, #0] + 8006b48: f241 0314 movw r3, #4116 ; 0x1014 + 8006b4c: 4413 add r3, r2 + 8006b4e: 681b ldr r3, [r3, #0] + 8006b50: f003 0340 and.w r3, r3, #64 ; 0x40 + 8006b54: 2b40 cmp r3, #64 ; 0x40 + 8006b56: d112 bne.n 8006b7e #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) /*Call registered Receive complete callback*/ heth->RxCpltCallback(heth); #else /* Receive complete callback */ HAL_ETH_RxCpltCallback(heth); - 8006b54: 6878 ldr r0, [r7, #4] - 8006b56: f005 ff3d bl 800c9d4 + 8006b58: 6878 ldr r0, [r7, #4] + 8006b5a: f005 ff3d bl 800c9d8 #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ /* Clear the Eth DMA Rx IT pending bits */ __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMA_IT_R); - 8006b5a: 687b ldr r3, [r7, #4] - 8006b5c: 681a ldr r2, [r3, #0] - 8006b5e: f241 0314 movw r3, #4116 ; 0x1014 - 8006b62: 4413 add r3, r2 - 8006b64: 2240 movs r2, #64 ; 0x40 - 8006b66: 601a str r2, [r3, #0] + 8006b5e: 687b ldr r3, [r7, #4] + 8006b60: 681a ldr r2, [r3, #0] + 8006b62: f241 0314 movw r3, #4116 ; 0x1014 + 8006b66: 4413 add r3, r2 + 8006b68: 2240 movs r2, #64 ; 0x40 + 8006b6a: 601a str r2, [r3, #0] /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - 8006b68: 687b ldr r3, [r7, #4] - 8006b6a: 2201 movs r2, #1 - 8006b6c: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006b6c: 687b ldr r3, [r7, #4] + 8006b6e: 2201 movs r2, #1 + 8006b70: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006b70: 687b ldr r3, [r7, #4] - 8006b72: 2200 movs r2, #0 - 8006b74: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 8006b78: e01b b.n 8006bb2 + 8006b74: 687b ldr r3, [r7, #4] + 8006b76: 2200 movs r2, #0 + 8006b78: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006b7c: e01b b.n 8006bb6 } /* Frame transmitted */ else if (__HAL_ETH_DMA_GET_FLAG(heth, ETH_DMA_FLAG_T)) - 8006b7a: 687b ldr r3, [r7, #4] - 8006b7c: 681a ldr r2, [r3, #0] - 8006b7e: f241 0314 movw r3, #4116 ; 0x1014 - 8006b82: 4413 add r3, r2 - 8006b84: 681b ldr r3, [r3, #0] - 8006b86: f003 0301 and.w r3, r3, #1 - 8006b8a: 2b01 cmp r3, #1 - 8006b8c: d111 bne.n 8006bb2 + 8006b7e: 687b ldr r3, [r7, #4] + 8006b80: 681a ldr r2, [r3, #0] + 8006b82: f241 0314 movw r3, #4116 ; 0x1014 + 8006b86: 4413 add r3, r2 + 8006b88: 681b ldr r3, [r3, #0] + 8006b8a: f003 0301 and.w r3, r3, #1 + 8006b8e: 2b01 cmp r3, #1 + 8006b90: d111 bne.n 8006bb6 #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) /* Call resgistered Transfer complete callback*/ heth->TxCpltCallback(heth); #else /* Transfer complete callback */ HAL_ETH_TxCpltCallback(heth); - 8006b8e: 6878 ldr r0, [r7, #4] - 8006b90: f000 f839 bl 8006c06 + 8006b92: 6878 ldr r0, [r7, #4] + 8006b94: f000 f839 bl 8006c0a #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ /* Clear the Eth DMA Tx IT pending bits */ __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMA_IT_T); - 8006b94: 687b ldr r3, [r7, #4] - 8006b96: 681a ldr r2, [r3, #0] - 8006b98: f241 0314 movw r3, #4116 ; 0x1014 - 8006b9c: 4413 add r3, r2 - 8006b9e: 2201 movs r2, #1 - 8006ba0: 601a str r2, [r3, #0] + 8006b98: 687b ldr r3, [r7, #4] + 8006b9a: 681a ldr r2, [r3, #0] + 8006b9c: f241 0314 movw r3, #4116 ; 0x1014 + 8006ba0: 4413 add r3, r2 + 8006ba2: 2201 movs r2, #1 + 8006ba4: 601a str r2, [r3, #0] /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - 8006ba2: 687b ldr r3, [r7, #4] - 8006ba4: 2201 movs r2, #1 - 8006ba6: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006ba6: 687b ldr r3, [r7, #4] + 8006ba8: 2201 movs r2, #1 + 8006baa: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006baa: 687b ldr r3, [r7, #4] - 8006bac: 2200 movs r2, #0 - 8006bae: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006bae: 687b ldr r3, [r7, #4] + 8006bb0: 2200 movs r2, #0 + 8006bb2: f883 2045 strb.w r2, [r3, #69] ; 0x45 } /* Clear the interrupt flags */ __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMA_IT_NIS); - 8006bb2: 687b ldr r3, [r7, #4] - 8006bb4: 681a ldr r2, [r3, #0] - 8006bb6: f241 0314 movw r3, #4116 ; 0x1014 - 8006bba: 4413 add r3, r2 - 8006bbc: f44f 3280 mov.w r2, #65536 ; 0x10000 - 8006bc0: 601a str r2, [r3, #0] + 8006bb6: 687b ldr r3, [r7, #4] + 8006bb8: 681a ldr r2, [r3, #0] + 8006bba: f241 0314 movw r3, #4116 ; 0x1014 + 8006bbe: 4413 add r3, r2 + 8006bc0: f44f 3280 mov.w r2, #65536 ; 0x10000 + 8006bc4: 601a str r2, [r3, #0] /* ETH DMA Error */ if(__HAL_ETH_DMA_GET_FLAG(heth, ETH_DMA_FLAG_AIS)) - 8006bc2: 687b ldr r3, [r7, #4] - 8006bc4: 681a ldr r2, [r3, #0] - 8006bc6: f241 0314 movw r3, #4116 ; 0x1014 - 8006bca: 4413 add r3, r2 - 8006bcc: 681b ldr r3, [r3, #0] - 8006bce: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 8006bd2: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 8006bd6: d112 bne.n 8006bfe + 8006bc6: 687b ldr r3, [r7, #4] + 8006bc8: 681a ldr r2, [r3, #0] + 8006bca: f241 0314 movw r3, #4116 ; 0x1014 + 8006bce: 4413 add r3, r2 + 8006bd0: 681b ldr r3, [r3, #0] + 8006bd2: f403 4300 and.w r3, r3, #32768 ; 0x8000 + 8006bd6: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 8006bda: d112 bne.n 8006c02 { #if (USE_HAL_ETH_REGISTER_CALLBACKS == 1) heth->DMAErrorCallback(heth); #else /* Ethernet Error callback */ HAL_ETH_ErrorCallback(heth); - 8006bd8: 6878 ldr r0, [r7, #4] - 8006bda: f000 f81e bl 8006c1a + 8006bdc: 6878 ldr r0, [r7, #4] + 8006bde: f000 f81e bl 8006c1e #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ /* Clear the interrupt flags */ __HAL_ETH_DMA_CLEAR_IT(heth, ETH_DMA_FLAG_AIS); - 8006bde: 687b ldr r3, [r7, #4] - 8006be0: 681a ldr r2, [r3, #0] - 8006be2: f241 0314 movw r3, #4116 ; 0x1014 - 8006be6: 4413 add r3, r2 - 8006be8: f44f 4200 mov.w r2, #32768 ; 0x8000 - 8006bec: 601a str r2, [r3, #0] + 8006be2: 687b ldr r3, [r7, #4] + 8006be4: 681a ldr r2, [r3, #0] + 8006be6: f241 0314 movw r3, #4116 ; 0x1014 + 8006bea: 4413 add r3, r2 + 8006bec: f44f 4200 mov.w r2, #32768 ; 0x8000 + 8006bf0: 601a str r2, [r3, #0] /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - 8006bee: 687b ldr r3, [r7, #4] - 8006bf0: 2201 movs r2, #1 - 8006bf2: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006bf2: 687b ldr r3, [r7, #4] + 8006bf4: 2201 movs r2, #1 + 8006bf6: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006bf6: 687b ldr r3, [r7, #4] - 8006bf8: 2200 movs r2, #0 - 8006bfa: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006bfa: 687b ldr r3, [r7, #4] + 8006bfc: 2200 movs r2, #0 + 8006bfe: f883 2045 strb.w r2, [r3, #69] ; 0x45 } } - 8006bfe: bf00 nop - 8006c00: 3708 adds r7, #8 - 8006c02: 46bd mov sp, r7 - 8006c04: bd80 pop {r7, pc} + 8006c02: bf00 nop + 8006c04: 3708 adds r7, #8 + 8006c06: 46bd mov sp, r7 + 8006c08: bd80 pop {r7, pc} -08006c06 : +08006c0a : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ __weak void HAL_ETH_TxCpltCallback(ETH_HandleTypeDef *heth) { - 8006c06: b480 push {r7} - 8006c08: b083 sub sp, #12 - 8006c0a: af00 add r7, sp, #0 - 8006c0c: 6078 str r0, [r7, #4] + 8006c0a: b480 push {r7} + 8006c0c: b083 sub sp, #12 + 8006c0e: af00 add r7, sp, #0 + 8006c10: 6078 str r0, [r7, #4] UNUSED(heth); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ETH_TxCpltCallback could be implemented in the user file */ } - 8006c0e: bf00 nop - 8006c10: 370c adds r7, #12 - 8006c12: 46bd mov sp, r7 - 8006c14: f85d 7b04 ldr.w r7, [sp], #4 - 8006c18: 4770 bx lr + 8006c12: bf00 nop + 8006c14: 370c adds r7, #12 + 8006c16: 46bd mov sp, r7 + 8006c18: f85d 7b04 ldr.w r7, [sp], #4 + 8006c1c: 4770 bx lr -08006c1a : +08006c1e : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ __weak void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *heth) { - 8006c1a: b480 push {r7} - 8006c1c: b083 sub sp, #12 - 8006c1e: af00 add r7, sp, #0 - 8006c20: 6078 str r0, [r7, #4] + 8006c1e: b480 push {r7} + 8006c20: b083 sub sp, #12 + 8006c22: af00 add r7, sp, #0 + 8006c24: 6078 str r0, [r7, #4] UNUSED(heth); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_ETH_ErrorCallback could be implemented in the user file */ } - 8006c22: bf00 nop - 8006c24: 370c adds r7, #12 - 8006c26: 46bd mov sp, r7 - 8006c28: f85d 7b04 ldr.w r7, [sp], #4 - 8006c2c: 4770 bx lr + 8006c26: bf00 nop + 8006c28: 370c adds r7, #12 + 8006c2a: 46bd mov sp, r7 + 8006c2c: f85d 7b04 ldr.w r7, [sp], #4 + 8006c30: 4770 bx lr -08006c2e : +08006c32 : * More PHY register could be read depending on the used PHY * @param RegValue PHY register value * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_ReadPHYRegister(ETH_HandleTypeDef *heth, uint16_t PHYReg, uint32_t *RegValue) { - 8006c2e: b580 push {r7, lr} - 8006c30: b086 sub sp, #24 - 8006c32: af00 add r7, sp, #0 - 8006c34: 60f8 str r0, [r7, #12] - 8006c36: 460b mov r3, r1 - 8006c38: 607a str r2, [r7, #4] - 8006c3a: 817b strh r3, [r7, #10] + 8006c32: b580 push {r7, lr} + 8006c34: b086 sub sp, #24 + 8006c36: af00 add r7, sp, #0 + 8006c38: 60f8 str r0, [r7, #12] + 8006c3a: 460b mov r3, r1 + 8006c3c: 607a str r2, [r7, #4] + 8006c3e: 817b strh r3, [r7, #10] uint32_t tmpreg = 0; - 8006c3c: 2300 movs r3, #0 - 8006c3e: 617b str r3, [r7, #20] - uint32_t tickstart = 0; 8006c40: 2300 movs r3, #0 - 8006c42: 613b str r3, [r7, #16] + 8006c42: 617b str r3, [r7, #20] + uint32_t tickstart = 0; + 8006c44: 2300 movs r3, #0 + 8006c46: 613b str r3, [r7, #16] /* Check parameters */ assert_param(IS_ETH_PHY_ADDRESS(heth->Init.PhyAddress)); /* Check the ETH peripheral state */ if(heth->State == HAL_ETH_STATE_BUSY_RD) - 8006c44: 68fb ldr r3, [r7, #12] - 8006c46: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 8006c4a: b2db uxtb r3, r3 - 8006c4c: 2b82 cmp r3, #130 ; 0x82 - 8006c4e: d101 bne.n 8006c54 + 8006c48: 68fb ldr r3, [r7, #12] + 8006c4a: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 + 8006c4e: b2db uxtb r3, r3 + 8006c50: 2b82 cmp r3, #130 ; 0x82 + 8006c52: d101 bne.n 8006c58 { return HAL_BUSY; - 8006c50: 2302 movs r3, #2 - 8006c52: e050 b.n 8006cf6 + 8006c54: 2302 movs r3, #2 + 8006c56: e050 b.n 8006cfa } /* Set ETH HAL State to BUSY_RD */ heth->State = HAL_ETH_STATE_BUSY_RD; - 8006c54: 68fb ldr r3, [r7, #12] - 8006c56: 2282 movs r2, #130 ; 0x82 - 8006c58: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006c58: 68fb ldr r3, [r7, #12] + 8006c5a: 2282 movs r2, #130 ; 0x82 + 8006c5c: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Get the ETHERNET MACMIIAR value */ tmpreg = heth->Instance->MACMIIAR; - 8006c5c: 68fb ldr r3, [r7, #12] - 8006c5e: 681b ldr r3, [r3, #0] - 8006c60: 691b ldr r3, [r3, #16] - 8006c62: 617b str r3, [r7, #20] + 8006c60: 68fb ldr r3, [r7, #12] + 8006c62: 681b ldr r3, [r3, #0] + 8006c64: 691b ldr r3, [r3, #16] + 8006c66: 617b str r3, [r7, #20] /* Keep only the CSR Clock Range CR[2:0] bits value */ tmpreg &= ~ETH_MACMIIAR_CR_MASK; - 8006c64: 697b ldr r3, [r7, #20] - 8006c66: f003 031c and.w r3, r3, #28 - 8006c6a: 617b str r3, [r7, #20] + 8006c68: 697b ldr r3, [r7, #20] + 8006c6a: f003 031c and.w r3, r3, #28 + 8006c6e: 617b str r3, [r7, #20] /* Prepare the MII address register value */ tmpreg |=(((uint32_t)heth->Init.PhyAddress << 11) & ETH_MACMIIAR_PA); /* Set the PHY device address */ - 8006c6c: 68fb ldr r3, [r7, #12] - 8006c6e: 8a1b ldrh r3, [r3, #16] - 8006c70: 02db lsls r3, r3, #11 - 8006c72: b29b uxth r3, r3 - 8006c74: 697a ldr r2, [r7, #20] - 8006c76: 4313 orrs r3, r2 - 8006c78: 617b str r3, [r7, #20] + 8006c70: 68fb ldr r3, [r7, #12] + 8006c72: 8a1b ldrh r3, [r3, #16] + 8006c74: 02db lsls r3, r3, #11 + 8006c76: b29b uxth r3, r3 + 8006c78: 697a ldr r2, [r7, #20] + 8006c7a: 4313 orrs r3, r2 + 8006c7c: 617b str r3, [r7, #20] tmpreg |=(((uint32_t)PHYReg<<6) & ETH_MACMIIAR_MR); /* Set the PHY register address */ - 8006c7a: 897b ldrh r3, [r7, #10] - 8006c7c: 019b lsls r3, r3, #6 - 8006c7e: f403 63f8 and.w r3, r3, #1984 ; 0x7c0 - 8006c82: 697a ldr r2, [r7, #20] - 8006c84: 4313 orrs r3, r2 - 8006c86: 617b str r3, [r7, #20] + 8006c7e: 897b ldrh r3, [r7, #10] + 8006c80: 019b lsls r3, r3, #6 + 8006c82: f403 63f8 and.w r3, r3, #1984 ; 0x7c0 + 8006c86: 697a ldr r2, [r7, #20] + 8006c88: 4313 orrs r3, r2 + 8006c8a: 617b str r3, [r7, #20] tmpreg &= ~ETH_MACMIIAR_MW; /* Set the read mode */ - 8006c88: 697b ldr r3, [r7, #20] - 8006c8a: f023 0302 bic.w r3, r3, #2 - 8006c8e: 617b str r3, [r7, #20] + 8006c8c: 697b ldr r3, [r7, #20] + 8006c8e: f023 0302 bic.w r3, r3, #2 + 8006c92: 617b str r3, [r7, #20] tmpreg |= ETH_MACMIIAR_MB; /* Set the MII Busy bit */ - 8006c90: 697b ldr r3, [r7, #20] - 8006c92: f043 0301 orr.w r3, r3, #1 - 8006c96: 617b str r3, [r7, #20] + 8006c94: 697b ldr r3, [r7, #20] + 8006c96: f043 0301 orr.w r3, r3, #1 + 8006c9a: 617b str r3, [r7, #20] /* Write the result value into the MII Address register */ heth->Instance->MACMIIAR = tmpreg; - 8006c98: 68fb ldr r3, [r7, #12] - 8006c9a: 681b ldr r3, [r3, #0] - 8006c9c: 697a ldr r2, [r7, #20] - 8006c9e: 611a str r2, [r3, #16] + 8006c9c: 68fb ldr r3, [r7, #12] + 8006c9e: 681b ldr r3, [r3, #0] + 8006ca0: 697a ldr r2, [r7, #20] + 8006ca2: 611a str r2, [r3, #16] /* Get tick */ tickstart = HAL_GetTick(); - 8006ca0: f7fe f90e bl 8004ec0 - 8006ca4: 6138 str r0, [r7, #16] + 8006ca4: f7fe f90e bl 8004ec4 + 8006ca8: 6138 str r0, [r7, #16] /* Check for the Busy flag */ while((tmpreg & ETH_MACMIIAR_MB) == ETH_MACMIIAR_MB) - 8006ca6: e015 b.n 8006cd4 + 8006caa: e015 b.n 8006cd8 { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > PHY_READ_TO) - 8006ca8: f7fe f90a bl 8004ec0 - 8006cac: 4602 mov r2, r0 - 8006cae: 693b ldr r3, [r7, #16] - 8006cb0: 1ad3 subs r3, r2, r3 - 8006cb2: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8006cb6: d309 bcc.n 8006ccc + 8006cac: f7fe f90a bl 8004ec4 + 8006cb0: 4602 mov r2, r0 + 8006cb2: 693b ldr r3, [r7, #16] + 8006cb4: 1ad3 subs r3, r2, r3 + 8006cb6: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8006cba: d309 bcc.n 8006cd0 { heth->State= HAL_ETH_STATE_READY; - 8006cb8: 68fb ldr r3, [r7, #12] - 8006cba: 2201 movs r2, #1 - 8006cbc: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006cbc: 68fb ldr r3, [r7, #12] + 8006cbe: 2201 movs r2, #1 + 8006cc0: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006cc0: 68fb ldr r3, [r7, #12] - 8006cc2: 2200 movs r2, #0 - 8006cc4: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006cc4: 68fb ldr r3, [r7, #12] + 8006cc6: 2200 movs r2, #0 + 8006cc8: f883 2045 strb.w r2, [r3, #69] ; 0x45 return HAL_TIMEOUT; - 8006cc8: 2303 movs r3, #3 - 8006cca: e014 b.n 8006cf6 + 8006ccc: 2303 movs r3, #3 + 8006cce: e014 b.n 8006cfa } tmpreg = heth->Instance->MACMIIAR; - 8006ccc: 68fb ldr r3, [r7, #12] - 8006cce: 681b ldr r3, [r3, #0] - 8006cd0: 691b ldr r3, [r3, #16] - 8006cd2: 617b str r3, [r7, #20] + 8006cd0: 68fb ldr r3, [r7, #12] + 8006cd2: 681b ldr r3, [r3, #0] + 8006cd4: 691b ldr r3, [r3, #16] + 8006cd6: 617b str r3, [r7, #20] while((tmpreg & ETH_MACMIIAR_MB) == ETH_MACMIIAR_MB) - 8006cd4: 697b ldr r3, [r7, #20] - 8006cd6: f003 0301 and.w r3, r3, #1 - 8006cda: 2b00 cmp r3, #0 - 8006cdc: d1e4 bne.n 8006ca8 + 8006cd8: 697b ldr r3, [r7, #20] + 8006cda: f003 0301 and.w r3, r3, #1 + 8006cde: 2b00 cmp r3, #0 + 8006ce0: d1e4 bne.n 8006cac } /* Get MACMIIDR value */ *RegValue = (uint16_t)(heth->Instance->MACMIIDR); - 8006cde: 68fb ldr r3, [r7, #12] - 8006ce0: 681b ldr r3, [r3, #0] - 8006ce2: 695b ldr r3, [r3, #20] - 8006ce4: b29b uxth r3, r3 - 8006ce6: 461a mov r2, r3 - 8006ce8: 687b ldr r3, [r7, #4] - 8006cea: 601a str r2, [r3, #0] + 8006ce2: 68fb ldr r3, [r7, #12] + 8006ce4: 681b ldr r3, [r3, #0] + 8006ce6: 695b ldr r3, [r3, #20] + 8006ce8: b29b uxth r3, r3 + 8006cea: 461a mov r2, r3 + 8006cec: 687b ldr r3, [r7, #4] + 8006cee: 601a str r2, [r3, #0] /* Set ETH HAL State to READY */ heth->State = HAL_ETH_STATE_READY; - 8006cec: 68fb ldr r3, [r7, #12] - 8006cee: 2201 movs r2, #1 - 8006cf0: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006cf0: 68fb ldr r3, [r7, #12] + 8006cf2: 2201 movs r2, #1 + 8006cf4: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Return function status */ return HAL_OK; - 8006cf4: 2300 movs r3, #0 + 8006cf8: 2300 movs r3, #0 } - 8006cf6: 4618 mov r0, r3 - 8006cf8: 3718 adds r7, #24 - 8006cfa: 46bd mov sp, r7 - 8006cfc: bd80 pop {r7, pc} + 8006cfa: 4618 mov r0, r3 + 8006cfc: 3718 adds r7, #24 + 8006cfe: 46bd mov sp, r7 + 8006d00: bd80 pop {r7, pc} -08006cfe : +08006d02 : * More PHY register could be written depending on the used PHY * @param RegValue the value to write * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_WritePHYRegister(ETH_HandleTypeDef *heth, uint16_t PHYReg, uint32_t RegValue) { - 8006cfe: b580 push {r7, lr} - 8006d00: b086 sub sp, #24 - 8006d02: af00 add r7, sp, #0 - 8006d04: 60f8 str r0, [r7, #12] - 8006d06: 460b mov r3, r1 - 8006d08: 607a str r2, [r7, #4] - 8006d0a: 817b strh r3, [r7, #10] + 8006d02: b580 push {r7, lr} + 8006d04: b086 sub sp, #24 + 8006d06: af00 add r7, sp, #0 + 8006d08: 60f8 str r0, [r7, #12] + 8006d0a: 460b mov r3, r1 + 8006d0c: 607a str r2, [r7, #4] + 8006d0e: 817b strh r3, [r7, #10] uint32_t tmpreg = 0; - 8006d0c: 2300 movs r3, #0 - 8006d0e: 617b str r3, [r7, #20] - uint32_t tickstart = 0; 8006d10: 2300 movs r3, #0 - 8006d12: 613b str r3, [r7, #16] + 8006d12: 617b str r3, [r7, #20] + uint32_t tickstart = 0; + 8006d14: 2300 movs r3, #0 + 8006d16: 613b str r3, [r7, #16] /* Check parameters */ assert_param(IS_ETH_PHY_ADDRESS(heth->Init.PhyAddress)); /* Check the ETH peripheral state */ if(heth->State == HAL_ETH_STATE_BUSY_WR) - 8006d14: 68fb ldr r3, [r7, #12] - 8006d16: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 8006d1a: b2db uxtb r3, r3 - 8006d1c: 2b42 cmp r3, #66 ; 0x42 - 8006d1e: d101 bne.n 8006d24 + 8006d18: 68fb ldr r3, [r7, #12] + 8006d1a: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 + 8006d1e: b2db uxtb r3, r3 + 8006d20: 2b42 cmp r3, #66 ; 0x42 + 8006d22: d101 bne.n 8006d28 { return HAL_BUSY; - 8006d20: 2302 movs r3, #2 - 8006d22: e04e b.n 8006dc2 + 8006d24: 2302 movs r3, #2 + 8006d26: e04e b.n 8006dc6 } /* Set ETH HAL State to BUSY_WR */ heth->State = HAL_ETH_STATE_BUSY_WR; - 8006d24: 68fb ldr r3, [r7, #12] - 8006d26: 2242 movs r2, #66 ; 0x42 - 8006d28: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006d28: 68fb ldr r3, [r7, #12] + 8006d2a: 2242 movs r2, #66 ; 0x42 + 8006d2c: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Get the ETHERNET MACMIIAR value */ tmpreg = heth->Instance->MACMIIAR; - 8006d2c: 68fb ldr r3, [r7, #12] - 8006d2e: 681b ldr r3, [r3, #0] - 8006d30: 691b ldr r3, [r3, #16] - 8006d32: 617b str r3, [r7, #20] + 8006d30: 68fb ldr r3, [r7, #12] + 8006d32: 681b ldr r3, [r3, #0] + 8006d34: 691b ldr r3, [r3, #16] + 8006d36: 617b str r3, [r7, #20] /* Keep only the CSR Clock Range CR[2:0] bits value */ tmpreg &= ~ETH_MACMIIAR_CR_MASK; - 8006d34: 697b ldr r3, [r7, #20] - 8006d36: f003 031c and.w r3, r3, #28 - 8006d3a: 617b str r3, [r7, #20] + 8006d38: 697b ldr r3, [r7, #20] + 8006d3a: f003 031c and.w r3, r3, #28 + 8006d3e: 617b str r3, [r7, #20] /* Prepare the MII register address value */ tmpreg |=(((uint32_t)heth->Init.PhyAddress<<11) & ETH_MACMIIAR_PA); /* Set the PHY device address */ - 8006d3c: 68fb ldr r3, [r7, #12] - 8006d3e: 8a1b ldrh r3, [r3, #16] - 8006d40: 02db lsls r3, r3, #11 - 8006d42: b29b uxth r3, r3 - 8006d44: 697a ldr r2, [r7, #20] - 8006d46: 4313 orrs r3, r2 - 8006d48: 617b str r3, [r7, #20] + 8006d40: 68fb ldr r3, [r7, #12] + 8006d42: 8a1b ldrh r3, [r3, #16] + 8006d44: 02db lsls r3, r3, #11 + 8006d46: b29b uxth r3, r3 + 8006d48: 697a ldr r2, [r7, #20] + 8006d4a: 4313 orrs r3, r2 + 8006d4c: 617b str r3, [r7, #20] tmpreg |=(((uint32_t)PHYReg<<6) & ETH_MACMIIAR_MR); /* Set the PHY register address */ - 8006d4a: 897b ldrh r3, [r7, #10] - 8006d4c: 019b lsls r3, r3, #6 - 8006d4e: f403 63f8 and.w r3, r3, #1984 ; 0x7c0 - 8006d52: 697a ldr r2, [r7, #20] - 8006d54: 4313 orrs r3, r2 - 8006d56: 617b str r3, [r7, #20] + 8006d4e: 897b ldrh r3, [r7, #10] + 8006d50: 019b lsls r3, r3, #6 + 8006d52: f403 63f8 and.w r3, r3, #1984 ; 0x7c0 + 8006d56: 697a ldr r2, [r7, #20] + 8006d58: 4313 orrs r3, r2 + 8006d5a: 617b str r3, [r7, #20] tmpreg |= ETH_MACMIIAR_MW; /* Set the write mode */ - 8006d58: 697b ldr r3, [r7, #20] - 8006d5a: f043 0302 orr.w r3, r3, #2 - 8006d5e: 617b str r3, [r7, #20] + 8006d5c: 697b ldr r3, [r7, #20] + 8006d5e: f043 0302 orr.w r3, r3, #2 + 8006d62: 617b str r3, [r7, #20] tmpreg |= ETH_MACMIIAR_MB; /* Set the MII Busy bit */ - 8006d60: 697b ldr r3, [r7, #20] - 8006d62: f043 0301 orr.w r3, r3, #1 - 8006d66: 617b str r3, [r7, #20] + 8006d64: 697b ldr r3, [r7, #20] + 8006d66: f043 0301 orr.w r3, r3, #1 + 8006d6a: 617b str r3, [r7, #20] /* Give the value to the MII data register */ heth->Instance->MACMIIDR = (uint16_t)RegValue; - 8006d68: 687b ldr r3, [r7, #4] - 8006d6a: b29a uxth r2, r3 - 8006d6c: 68fb ldr r3, [r7, #12] - 8006d6e: 681b ldr r3, [r3, #0] - 8006d70: 615a str r2, [r3, #20] + 8006d6c: 687b ldr r3, [r7, #4] + 8006d6e: b29a uxth r2, r3 + 8006d70: 68fb ldr r3, [r7, #12] + 8006d72: 681b ldr r3, [r3, #0] + 8006d74: 615a str r2, [r3, #20] /* Write the result value into the MII Address register */ heth->Instance->MACMIIAR = tmpreg; - 8006d72: 68fb ldr r3, [r7, #12] - 8006d74: 681b ldr r3, [r3, #0] - 8006d76: 697a ldr r2, [r7, #20] - 8006d78: 611a str r2, [r3, #16] + 8006d76: 68fb ldr r3, [r7, #12] + 8006d78: 681b ldr r3, [r3, #0] + 8006d7a: 697a ldr r2, [r7, #20] + 8006d7c: 611a str r2, [r3, #16] /* Get tick */ tickstart = HAL_GetTick(); - 8006d7a: f7fe f8a1 bl 8004ec0 - 8006d7e: 6138 str r0, [r7, #16] + 8006d7e: f7fe f8a1 bl 8004ec4 + 8006d82: 6138 str r0, [r7, #16] /* Check for the Busy flag */ while((tmpreg & ETH_MACMIIAR_MB) == ETH_MACMIIAR_MB) - 8006d80: e015 b.n 8006dae + 8006d84: e015 b.n 8006db2 { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > PHY_WRITE_TO) - 8006d82: f7fe f89d bl 8004ec0 - 8006d86: 4602 mov r2, r0 - 8006d88: 693b ldr r3, [r7, #16] - 8006d8a: 1ad3 subs r3, r2, r3 - 8006d8c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8006d90: d309 bcc.n 8006da6 + 8006d86: f7fe f89d bl 8004ec4 + 8006d8a: 4602 mov r2, r0 + 8006d8c: 693b ldr r3, [r7, #16] + 8006d8e: 1ad3 subs r3, r2, r3 + 8006d90: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8006d94: d309 bcc.n 8006daa { heth->State= HAL_ETH_STATE_READY; - 8006d92: 68fb ldr r3, [r7, #12] - 8006d94: 2201 movs r2, #1 - 8006d96: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006d96: 68fb ldr r3, [r7, #12] + 8006d98: 2201 movs r2, #1 + 8006d9a: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006d9a: 68fb ldr r3, [r7, #12] - 8006d9c: 2200 movs r2, #0 - 8006d9e: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006d9e: 68fb ldr r3, [r7, #12] + 8006da0: 2200 movs r2, #0 + 8006da2: f883 2045 strb.w r2, [r3, #69] ; 0x45 return HAL_TIMEOUT; - 8006da2: 2303 movs r3, #3 - 8006da4: e00d b.n 8006dc2 + 8006da6: 2303 movs r3, #3 + 8006da8: e00d b.n 8006dc6 } tmpreg = heth->Instance->MACMIIAR; - 8006da6: 68fb ldr r3, [r7, #12] - 8006da8: 681b ldr r3, [r3, #0] - 8006daa: 691b ldr r3, [r3, #16] - 8006dac: 617b str r3, [r7, #20] + 8006daa: 68fb ldr r3, [r7, #12] + 8006dac: 681b ldr r3, [r3, #0] + 8006dae: 691b ldr r3, [r3, #16] + 8006db0: 617b str r3, [r7, #20] while((tmpreg & ETH_MACMIIAR_MB) == ETH_MACMIIAR_MB) - 8006dae: 697b ldr r3, [r7, #20] - 8006db0: f003 0301 and.w r3, r3, #1 - 8006db4: 2b00 cmp r3, #0 - 8006db6: d1e4 bne.n 8006d82 + 8006db2: 697b ldr r3, [r7, #20] + 8006db4: f003 0301 and.w r3, r3, #1 + 8006db8: 2b00 cmp r3, #0 + 8006dba: d1e4 bne.n 8006d86 } /* Set ETH HAL State to READY */ heth->State = HAL_ETH_STATE_READY; - 8006db8: 68fb ldr r3, [r7, #12] - 8006dba: 2201 movs r2, #1 - 8006dbc: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006dbc: 68fb ldr r3, [r7, #12] + 8006dbe: 2201 movs r2, #1 + 8006dc0: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Return function status */ return HAL_OK; - 8006dc0: 2300 movs r3, #0 + 8006dc4: 2300 movs r3, #0 } - 8006dc2: 4618 mov r0, r3 - 8006dc4: 3718 adds r7, #24 - 8006dc6: 46bd mov sp, r7 - 8006dc8: bd80 pop {r7, pc} + 8006dc6: 4618 mov r0, r3 + 8006dc8: 3718 adds r7, #24 + 8006dca: 46bd mov sp, r7 + 8006dcc: bd80 pop {r7, pc} -08006dca : +08006dce : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_Start(ETH_HandleTypeDef *heth) { - 8006dca: b580 push {r7, lr} - 8006dcc: b082 sub sp, #8 - 8006dce: af00 add r7, sp, #0 - 8006dd0: 6078 str r0, [r7, #4] + 8006dce: b580 push {r7, lr} + 8006dd0: b082 sub sp, #8 + 8006dd2: af00 add r7, sp, #0 + 8006dd4: 6078 str r0, [r7, #4] /* Process Locked */ __HAL_LOCK(heth); - 8006dd2: 687b ldr r3, [r7, #4] - 8006dd4: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8006dd8: 2b01 cmp r3, #1 - 8006dda: d101 bne.n 8006de0 - 8006ddc: 2302 movs r3, #2 - 8006dde: e01f b.n 8006e20 - 8006de0: 687b ldr r3, [r7, #4] - 8006de2: 2201 movs r2, #1 - 8006de4: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006dd6: 687b ldr r3, [r7, #4] + 8006dd8: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 8006ddc: 2b01 cmp r3, #1 + 8006dde: d101 bne.n 8006de4 + 8006de0: 2302 movs r3, #2 + 8006de2: e01f b.n 8006e24 + 8006de4: 687b ldr r3, [r7, #4] + 8006de6: 2201 movs r2, #1 + 8006de8: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Set the ETH peripheral state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; - 8006de8: 687b ldr r3, [r7, #4] - 8006dea: 2202 movs r2, #2 - 8006dec: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006dec: 687b ldr r3, [r7, #4] + 8006dee: 2202 movs r2, #2 + 8006df0: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Enable transmit state machine of the MAC for transmission on the MII */ ETH_MACTransmissionEnable(heth); - 8006df0: 6878 ldr r0, [r7, #4] - 8006df2: f000 fb45 bl 8007480 + 8006df4: 6878 ldr r0, [r7, #4] + 8006df6: f000 fb45 bl 8007484 /* Enable receive state machine of the MAC for reception from the MII */ ETH_MACReceptionEnable(heth); - 8006df6: 6878 ldr r0, [r7, #4] - 8006df8: f000 fb7c bl 80074f4 + 8006dfa: 6878 ldr r0, [r7, #4] + 8006dfc: f000 fb7c bl 80074f8 /* Flush Transmit FIFO */ ETH_FlushTransmitFIFO(heth); - 8006dfc: 6878 ldr r0, [r7, #4] - 8006dfe: f000 fc13 bl 8007628 + 8006e00: 6878 ldr r0, [r7, #4] + 8006e02: f000 fc13 bl 800762c /* Start DMA transmission */ ETH_DMATransmissionEnable(heth); - 8006e02: 6878 ldr r0, [r7, #4] - 8006e04: f000 fbb0 bl 8007568 + 8006e06: 6878 ldr r0, [r7, #4] + 8006e08: f000 fbb0 bl 800756c /* Start DMA reception */ ETH_DMAReceptionEnable(heth); - 8006e08: 6878 ldr r0, [r7, #4] - 8006e0a: f000 fbdd bl 80075c8 + 8006e0c: 6878 ldr r0, [r7, #4] + 8006e0e: f000 fbdd bl 80075cc /* Set the ETH state to READY*/ heth->State= HAL_ETH_STATE_READY; - 8006e0e: 687b ldr r3, [r7, #4] - 8006e10: 2201 movs r2, #1 - 8006e12: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006e12: 687b ldr r3, [r7, #4] + 8006e14: 2201 movs r2, #1 + 8006e16: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006e16: 687b ldr r3, [r7, #4] - 8006e18: 2200 movs r2, #0 - 8006e1a: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006e1a: 687b ldr r3, [r7, #4] + 8006e1c: 2200 movs r2, #0 + 8006e1e: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Return function status */ return HAL_OK; - 8006e1e: 2300 movs r3, #0 + 8006e22: 2300 movs r3, #0 } - 8006e20: 4618 mov r0, r3 - 8006e22: 3708 adds r7, #8 - 8006e24: 46bd mov sp, r7 - 8006e26: bd80 pop {r7, pc} + 8006e24: 4618 mov r0, r3 + 8006e26: 3708 adds r7, #8 + 8006e28: 46bd mov sp, r7 + 8006e2a: bd80 pop {r7, pc} -08006e28 : +08006e2c : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_Stop(ETH_HandleTypeDef *heth) { - 8006e28: b580 push {r7, lr} - 8006e2a: b082 sub sp, #8 - 8006e2c: af00 add r7, sp, #0 - 8006e2e: 6078 str r0, [r7, #4] + 8006e2c: b580 push {r7, lr} + 8006e2e: b082 sub sp, #8 + 8006e30: af00 add r7, sp, #0 + 8006e32: 6078 str r0, [r7, #4] /* Process Locked */ __HAL_LOCK(heth); - 8006e30: 687b ldr r3, [r7, #4] - 8006e32: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8006e36: 2b01 cmp r3, #1 - 8006e38: d101 bne.n 8006e3e - 8006e3a: 2302 movs r3, #2 - 8006e3c: e01f b.n 8006e7e - 8006e3e: 687b ldr r3, [r7, #4] - 8006e40: 2201 movs r2, #1 - 8006e42: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006e34: 687b ldr r3, [r7, #4] + 8006e36: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 8006e3a: 2b01 cmp r3, #1 + 8006e3c: d101 bne.n 8006e42 + 8006e3e: 2302 movs r3, #2 + 8006e40: e01f b.n 8006e82 + 8006e42: 687b ldr r3, [r7, #4] + 8006e44: 2201 movs r2, #1 + 8006e46: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Set the ETH peripheral state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; - 8006e46: 687b ldr r3, [r7, #4] - 8006e48: 2202 movs r2, #2 - 8006e4a: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006e4a: 687b ldr r3, [r7, #4] + 8006e4c: 2202 movs r2, #2 + 8006e4e: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Stop DMA transmission */ ETH_DMATransmissionDisable(heth); - 8006e4e: 6878 ldr r0, [r7, #4] - 8006e50: f000 fba2 bl 8007598 + 8006e52: 6878 ldr r0, [r7, #4] + 8006e54: f000 fba2 bl 800759c /* Stop DMA reception */ ETH_DMAReceptionDisable(heth); - 8006e54: 6878 ldr r0, [r7, #4] - 8006e56: f000 fbcf bl 80075f8 + 8006e58: 6878 ldr r0, [r7, #4] + 8006e5a: f000 fbcf bl 80075fc /* Disable receive state machine of the MAC for reception from the MII */ ETH_MACReceptionDisable(heth); - 8006e5a: 6878 ldr r0, [r7, #4] - 8006e5c: f000 fb67 bl 800752e + 8006e5e: 6878 ldr r0, [r7, #4] + 8006e60: f000 fb67 bl 8007532 /* Flush Transmit FIFO */ ETH_FlushTransmitFIFO(heth); - 8006e60: 6878 ldr r0, [r7, #4] - 8006e62: f000 fbe1 bl 8007628 + 8006e64: 6878 ldr r0, [r7, #4] + 8006e66: f000 fbe1 bl 800762c /* Disable transmit state machine of the MAC for transmission on the MII */ ETH_MACTransmissionDisable(heth); - 8006e66: 6878 ldr r0, [r7, #4] - 8006e68: f000 fb27 bl 80074ba + 8006e6a: 6878 ldr r0, [r7, #4] + 8006e6c: f000 fb27 bl 80074be /* Set the ETH state*/ heth->State = HAL_ETH_STATE_READY; - 8006e6c: 687b ldr r3, [r7, #4] - 8006e6e: 2201 movs r2, #1 - 8006e70: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006e70: 687b ldr r3, [r7, #4] + 8006e72: 2201 movs r2, #1 + 8006e74: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8006e74: 687b ldr r3, [r7, #4] - 8006e76: 2200 movs r2, #0 - 8006e78: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006e78: 687b ldr r3, [r7, #4] + 8006e7a: 2200 movs r2, #0 + 8006e7c: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Return function status */ return HAL_OK; - 8006e7c: 2300 movs r3, #0 + 8006e80: 2300 movs r3, #0 } - 8006e7e: 4618 mov r0, r3 - 8006e80: 3708 adds r7, #8 - 8006e82: 46bd mov sp, r7 - 8006e84: bd80 pop {r7, pc} + 8006e82: 4618 mov r0, r3 + 8006e84: 3708 adds r7, #8 + 8006e86: 46bd mov sp, r7 + 8006e88: bd80 pop {r7, pc} ... -08006e88 : +08006e8c : * the configuration information for ETHERNET module * @param macconf MAC Configuration structure * @retval HAL status */ HAL_StatusTypeDef HAL_ETH_ConfigMAC(ETH_HandleTypeDef *heth, ETH_MACInitTypeDef *macconf) { - 8006e88: b580 push {r7, lr} - 8006e8a: b084 sub sp, #16 - 8006e8c: af00 add r7, sp, #0 - 8006e8e: 6078 str r0, [r7, #4] - 8006e90: 6039 str r1, [r7, #0] + 8006e8c: b580 push {r7, lr} + 8006e8e: b084 sub sp, #16 + 8006e90: af00 add r7, sp, #0 + 8006e92: 6078 str r0, [r7, #4] + 8006e94: 6039 str r1, [r7, #0] uint32_t tmpreg = 0; - 8006e92: 2300 movs r3, #0 - 8006e94: 60fb str r3, [r7, #12] + 8006e96: 2300 movs r3, #0 + 8006e98: 60fb str r3, [r7, #12] /* Process Locked */ __HAL_LOCK(heth); - 8006e96: 687b ldr r3, [r7, #4] - 8006e98: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 8006e9c: 2b01 cmp r3, #1 - 8006e9e: d101 bne.n 8006ea4 - 8006ea0: 2302 movs r3, #2 - 8006ea2: e0e4 b.n 800706e - 8006ea4: 687b ldr r3, [r7, #4] - 8006ea6: 2201 movs r2, #1 - 8006ea8: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8006e9a: 687b ldr r3, [r7, #4] + 8006e9c: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 8006ea0: 2b01 cmp r3, #1 + 8006ea2: d101 bne.n 8006ea8 + 8006ea4: 2302 movs r3, #2 + 8006ea6: e0e4 b.n 8007072 + 8006ea8: 687b ldr r3, [r7, #4] + 8006eaa: 2201 movs r2, #1 + 8006eac: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Set the ETH peripheral state to BUSY */ heth->State= HAL_ETH_STATE_BUSY; - 8006eac: 687b ldr r3, [r7, #4] - 8006eae: 2202 movs r2, #2 - 8006eb0: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8006eb0: 687b ldr r3, [r7, #4] + 8006eb2: 2202 movs r2, #2 + 8006eb4: f883 2044 strb.w r2, [r3, #68] ; 0x44 assert_param(IS_ETH_SPEED(heth->Init.Speed)); assert_param(IS_ETH_DUPLEX_MODE(heth->Init.DuplexMode)); if (macconf != NULL) - 8006eb4: 683b ldr r3, [r7, #0] - 8006eb6: 2b00 cmp r3, #0 - 8006eb8: f000 80b1 beq.w 800701e + 8006eb8: 683b ldr r3, [r7, #0] + 8006eba: 2b00 cmp r3, #0 + 8006ebc: f000 80b1 beq.w 8007022 assert_param(IS_ETH_VLAN_TAG_COMPARISON(macconf->VLANTagComparison)); assert_param(IS_ETH_VLAN_TAG_IDENTIFIER(macconf->VLANTagIdentifier)); /*------------------------ ETHERNET MACCR Configuration --------------------*/ /* Get the ETHERNET MACCR value */ tmpreg = (heth->Instance)->MACCR; - 8006ebc: 687b ldr r3, [r7, #4] - 8006ebe: 681b ldr r3, [r3, #0] - 8006ec0: 681b ldr r3, [r3, #0] - 8006ec2: 60fb str r3, [r7, #12] + 8006ec0: 687b ldr r3, [r7, #4] + 8006ec2: 681b ldr r3, [r3, #0] + 8006ec4: 681b ldr r3, [r3, #0] + 8006ec6: 60fb str r3, [r7, #12] /* Clear WD, PCE, PS, TE and RE bits */ tmpreg &= ETH_MACCR_CLEAR_MASK; - 8006ec4: 68fa ldr r2, [r7, #12] - 8006ec6: 4b6c ldr r3, [pc, #432] ; (8007078 ) - 8006ec8: 4013 ands r3, r2 - 8006eca: 60fb str r3, [r7, #12] + 8006ec8: 68fa ldr r2, [r7, #12] + 8006eca: 4b6c ldr r3, [pc, #432] ; (800707c ) + 8006ecc: 4013 ands r3, r2 + 8006ece: 60fb str r3, [r7, #12] tmpreg |= (uint32_t)(macconf->Watchdog | - 8006ecc: 683b ldr r3, [r7, #0] - 8006ece: 681a ldr r2, [r3, #0] - macconf->Jabber | 8006ed0: 683b ldr r3, [r7, #0] - 8006ed2: 685b ldr r3, [r3, #4] + 8006ed2: 681a ldr r2, [r3, #0] + macconf->Jabber | + 8006ed4: 683b ldr r3, [r7, #0] + 8006ed6: 685b ldr r3, [r3, #4] tmpreg |= (uint32_t)(macconf->Watchdog | - 8006ed4: 431a orrs r2, r3 + 8006ed8: 431a orrs r2, r3 macconf->InterFrameGap | - 8006ed6: 683b ldr r3, [r7, #0] - 8006ed8: 689b ldr r3, [r3, #8] + 8006eda: 683b ldr r3, [r7, #0] + 8006edc: 689b ldr r3, [r3, #8] macconf->Jabber | - 8006eda: 431a orrs r2, r3 + 8006ede: 431a orrs r2, r3 macconf->CarrierSense | - 8006edc: 683b ldr r3, [r7, #0] - 8006ede: 68db ldr r3, [r3, #12] + 8006ee0: 683b ldr r3, [r7, #0] + 8006ee2: 68db ldr r3, [r3, #12] macconf->InterFrameGap | - 8006ee0: 431a orrs r2, r3 + 8006ee4: 431a orrs r2, r3 (heth->Init).Speed | - 8006ee2: 687b ldr r3, [r7, #4] - 8006ee4: 689b ldr r3, [r3, #8] + 8006ee6: 687b ldr r3, [r7, #4] + 8006ee8: 689b ldr r3, [r3, #8] macconf->CarrierSense | - 8006ee6: 431a orrs r2, r3 + 8006eea: 431a orrs r2, r3 macconf->ReceiveOwn | - 8006ee8: 683b ldr r3, [r7, #0] - 8006eea: 691b ldr r3, [r3, #16] + 8006eec: 683b ldr r3, [r7, #0] + 8006eee: 691b ldr r3, [r3, #16] (heth->Init).Speed | - 8006eec: 431a orrs r2, r3 + 8006ef0: 431a orrs r2, r3 macconf->LoopbackMode | - 8006eee: 683b ldr r3, [r7, #0] - 8006ef0: 695b ldr r3, [r3, #20] + 8006ef2: 683b ldr r3, [r7, #0] + 8006ef4: 695b ldr r3, [r3, #20] macconf->ReceiveOwn | - 8006ef2: 431a orrs r2, r3 + 8006ef6: 431a orrs r2, r3 (heth->Init).DuplexMode | - 8006ef4: 687b ldr r3, [r7, #4] - 8006ef6: 68db ldr r3, [r3, #12] + 8006ef8: 687b ldr r3, [r7, #4] + 8006efa: 68db ldr r3, [r3, #12] macconf->LoopbackMode | - 8006ef8: 431a orrs r2, r3 + 8006efc: 431a orrs r2, r3 macconf->ChecksumOffload | - 8006efa: 683b ldr r3, [r7, #0] - 8006efc: 699b ldr r3, [r3, #24] + 8006efe: 683b ldr r3, [r7, #0] + 8006f00: 699b ldr r3, [r3, #24] (heth->Init).DuplexMode | - 8006efe: 431a orrs r2, r3 + 8006f02: 431a orrs r2, r3 macconf->RetryTransmission | - 8006f00: 683b ldr r3, [r7, #0] - 8006f02: 69db ldr r3, [r3, #28] + 8006f04: 683b ldr r3, [r7, #0] + 8006f06: 69db ldr r3, [r3, #28] macconf->ChecksumOffload | - 8006f04: 431a orrs r2, r3 + 8006f08: 431a orrs r2, r3 macconf->AutomaticPadCRCStrip | - 8006f06: 683b ldr r3, [r7, #0] - 8006f08: 6a1b ldr r3, [r3, #32] + 8006f0a: 683b ldr r3, [r7, #0] + 8006f0c: 6a1b ldr r3, [r3, #32] macconf->RetryTransmission | - 8006f0a: 431a orrs r2, r3 + 8006f0e: 431a orrs r2, r3 macconf->BackOffLimit | - 8006f0c: 683b ldr r3, [r7, #0] - 8006f0e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8006f10: 683b ldr r3, [r7, #0] + 8006f12: 6a5b ldr r3, [r3, #36] ; 0x24 macconf->AutomaticPadCRCStrip | - 8006f10: 431a orrs r2, r3 + 8006f14: 431a orrs r2, r3 macconf->DeferralCheck); - 8006f12: 683b ldr r3, [r7, #0] - 8006f14: 6a9b ldr r3, [r3, #40] ; 0x28 + 8006f16: 683b ldr r3, [r7, #0] + 8006f18: 6a9b ldr r3, [r3, #40] ; 0x28 macconf->BackOffLimit | - 8006f16: 4313 orrs r3, r2 - tmpreg |= (uint32_t)(macconf->Watchdog | - 8006f18: 68fa ldr r2, [r7, #12] 8006f1a: 4313 orrs r3, r2 - 8006f1c: 60fb str r3, [r7, #12] + tmpreg |= (uint32_t)(macconf->Watchdog | + 8006f1c: 68fa ldr r2, [r7, #12] + 8006f1e: 4313 orrs r3, r2 + 8006f20: 60fb str r3, [r7, #12] /* Write to ETHERNET MACCR */ (heth->Instance)->MACCR = (uint32_t)tmpreg; - 8006f1e: 687b ldr r3, [r7, #4] - 8006f20: 681b ldr r3, [r3, #0] - 8006f22: 68fa ldr r2, [r7, #12] - 8006f24: 601a str r2, [r3, #0] + 8006f22: 687b ldr r3, [r7, #4] + 8006f24: 681b ldr r3, [r3, #0] + 8006f26: 68fa ldr r2, [r7, #12] + 8006f28: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACCR; - 8006f26: 687b ldr r3, [r7, #4] - 8006f28: 681b ldr r3, [r3, #0] - 8006f2a: 681b ldr r3, [r3, #0] - 8006f2c: 60fb str r3, [r7, #12] + 8006f2a: 687b ldr r3, [r7, #4] + 8006f2c: 681b ldr r3, [r3, #0] + 8006f2e: 681b ldr r3, [r3, #0] + 8006f30: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8006f2e: 2001 movs r0, #1 - 8006f30: f7fd ffd2 bl 8004ed8 + 8006f32: 2001 movs r0, #1 + 8006f34: f7fd ffd2 bl 8004edc (heth->Instance)->MACCR = tmpreg; - 8006f34: 687b ldr r3, [r7, #4] - 8006f36: 681b ldr r3, [r3, #0] - 8006f38: 68fa ldr r2, [r7, #12] - 8006f3a: 601a str r2, [r3, #0] + 8006f38: 687b ldr r3, [r7, #4] + 8006f3a: 681b ldr r3, [r3, #0] + 8006f3c: 68fa ldr r2, [r7, #12] + 8006f3e: 601a str r2, [r3, #0] /*----------------------- ETHERNET MACFFR Configuration --------------------*/ /* Write to ETHERNET MACFFR */ (heth->Instance)->MACFFR = (uint32_t)(macconf->ReceiveAll | - 8006f3c: 683b ldr r3, [r7, #0] - 8006f3e: 6ada ldr r2, [r3, #44] ; 0x2c - macconf->SourceAddrFilter | 8006f40: 683b ldr r3, [r7, #0] - 8006f42: 6b1b ldr r3, [r3, #48] ; 0x30 + 8006f42: 6ada ldr r2, [r3, #44] ; 0x2c + macconf->SourceAddrFilter | + 8006f44: 683b ldr r3, [r7, #0] + 8006f46: 6b1b ldr r3, [r3, #48] ; 0x30 (heth->Instance)->MACFFR = (uint32_t)(macconf->ReceiveAll | - 8006f44: 431a orrs r2, r3 + 8006f48: 431a orrs r2, r3 macconf->PassControlFrames | - 8006f46: 683b ldr r3, [r7, #0] - 8006f48: 6b5b ldr r3, [r3, #52] ; 0x34 + 8006f4a: 683b ldr r3, [r7, #0] + 8006f4c: 6b5b ldr r3, [r3, #52] ; 0x34 macconf->SourceAddrFilter | - 8006f4a: 431a orrs r2, r3 + 8006f4e: 431a orrs r2, r3 macconf->BroadcastFramesReception | - 8006f4c: 683b ldr r3, [r7, #0] - 8006f4e: 6b9b ldr r3, [r3, #56] ; 0x38 + 8006f50: 683b ldr r3, [r7, #0] + 8006f52: 6b9b ldr r3, [r3, #56] ; 0x38 macconf->PassControlFrames | - 8006f50: 431a orrs r2, r3 + 8006f54: 431a orrs r2, r3 macconf->DestinationAddrFilter | - 8006f52: 683b ldr r3, [r7, #0] - 8006f54: 6bdb ldr r3, [r3, #60] ; 0x3c + 8006f56: 683b ldr r3, [r7, #0] + 8006f58: 6bdb ldr r3, [r3, #60] ; 0x3c macconf->BroadcastFramesReception | - 8006f56: 431a orrs r2, r3 + 8006f5a: 431a orrs r2, r3 macconf->PromiscuousMode | - 8006f58: 683b ldr r3, [r7, #0] - 8006f5a: 6c1b ldr r3, [r3, #64] ; 0x40 + 8006f5c: 683b ldr r3, [r7, #0] + 8006f5e: 6c1b ldr r3, [r3, #64] ; 0x40 macconf->DestinationAddrFilter | - 8006f5c: 431a orrs r2, r3 + 8006f60: 431a orrs r2, r3 macconf->MulticastFramesFilter | - 8006f5e: 683b ldr r3, [r7, #0] - 8006f60: 6c5b ldr r3, [r3, #68] ; 0x44 + 8006f62: 683b ldr r3, [r7, #0] + 8006f64: 6c5b ldr r3, [r3, #68] ; 0x44 macconf->PromiscuousMode | - 8006f62: ea42 0103 orr.w r1, r2, r3 + 8006f66: ea42 0103 orr.w r1, r2, r3 macconf->UnicastFramesFilter); - 8006f66: 683b ldr r3, [r7, #0] - 8006f68: 6c9a ldr r2, [r3, #72] ; 0x48 + 8006f6a: 683b ldr r3, [r7, #0] + 8006f6c: 6c9a ldr r2, [r3, #72] ; 0x48 (heth->Instance)->MACFFR = (uint32_t)(macconf->ReceiveAll | - 8006f6a: 687b ldr r3, [r7, #4] - 8006f6c: 681b ldr r3, [r3, #0] + 8006f6e: 687b ldr r3, [r7, #4] + 8006f70: 681b ldr r3, [r3, #0] macconf->MulticastFramesFilter | - 8006f6e: 430a orrs r2, r1 + 8006f72: 430a orrs r2, r1 (heth->Instance)->MACFFR = (uint32_t)(macconf->ReceiveAll | - 8006f70: 605a str r2, [r3, #4] + 8006f74: 605a str r2, [r3, #4] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACFFR; - 8006f72: 687b ldr r3, [r7, #4] - 8006f74: 681b ldr r3, [r3, #0] - 8006f76: 685b ldr r3, [r3, #4] - 8006f78: 60fb str r3, [r7, #12] + 8006f76: 687b ldr r3, [r7, #4] + 8006f78: 681b ldr r3, [r3, #0] + 8006f7a: 685b ldr r3, [r3, #4] + 8006f7c: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8006f7a: 2001 movs r0, #1 - 8006f7c: f7fd ffac bl 8004ed8 + 8006f7e: 2001 movs r0, #1 + 8006f80: f7fd ffac bl 8004edc (heth->Instance)->MACFFR = tmpreg; - 8006f80: 687b ldr r3, [r7, #4] - 8006f82: 681b ldr r3, [r3, #0] - 8006f84: 68fa ldr r2, [r7, #12] - 8006f86: 605a str r2, [r3, #4] + 8006f84: 687b ldr r3, [r7, #4] + 8006f86: 681b ldr r3, [r3, #0] + 8006f88: 68fa ldr r2, [r7, #12] + 8006f8a: 605a str r2, [r3, #4] /*--------------- ETHERNET MACHTHR and MACHTLR Configuration ---------------*/ /* Write to ETHERNET MACHTHR */ (heth->Instance)->MACHTHR = (uint32_t)macconf->HashTableHigh; - 8006f88: 687b ldr r3, [r7, #4] - 8006f8a: 681b ldr r3, [r3, #0] - 8006f8c: 683a ldr r2, [r7, #0] - 8006f8e: 6cd2 ldr r2, [r2, #76] ; 0x4c - 8006f90: 609a str r2, [r3, #8] + 8006f8c: 687b ldr r3, [r7, #4] + 8006f8e: 681b ldr r3, [r3, #0] + 8006f90: 683a ldr r2, [r7, #0] + 8006f92: 6cd2 ldr r2, [r2, #76] ; 0x4c + 8006f94: 609a str r2, [r3, #8] /* Write to ETHERNET MACHTLR */ (heth->Instance)->MACHTLR = (uint32_t)macconf->HashTableLow; - 8006f92: 687b ldr r3, [r7, #4] - 8006f94: 681b ldr r3, [r3, #0] - 8006f96: 683a ldr r2, [r7, #0] - 8006f98: 6d12 ldr r2, [r2, #80] ; 0x50 - 8006f9a: 60da str r2, [r3, #12] + 8006f96: 687b ldr r3, [r7, #4] + 8006f98: 681b ldr r3, [r3, #0] + 8006f9a: 683a ldr r2, [r7, #0] + 8006f9c: 6d12 ldr r2, [r2, #80] ; 0x50 + 8006f9e: 60da str r2, [r3, #12] /*----------------------- ETHERNET MACFCR Configuration --------------------*/ /* Get the ETHERNET MACFCR value */ tmpreg = (heth->Instance)->MACFCR; - 8006f9c: 687b ldr r3, [r7, #4] - 8006f9e: 681b ldr r3, [r3, #0] - 8006fa0: 699b ldr r3, [r3, #24] - 8006fa2: 60fb str r3, [r7, #12] + 8006fa0: 687b ldr r3, [r7, #4] + 8006fa2: 681b ldr r3, [r3, #0] + 8006fa4: 699b ldr r3, [r3, #24] + 8006fa6: 60fb str r3, [r7, #12] /* Clear xx bits */ tmpreg &= ETH_MACFCR_CLEAR_MASK; - 8006fa4: 68fa ldr r2, [r7, #12] - 8006fa6: f64f 7341 movw r3, #65345 ; 0xff41 - 8006faa: 4013 ands r3, r2 - 8006fac: 60fb str r3, [r7, #12] + 8006fa8: 68fa ldr r2, [r7, #12] + 8006faa: f64f 7341 movw r3, #65345 ; 0xff41 + 8006fae: 4013 ands r3, r2 + 8006fb0: 60fb str r3, [r7, #12] tmpreg |= (uint32_t)((macconf->PauseTime << 16) | - 8006fae: 683b ldr r3, [r7, #0] - 8006fb0: 6d5b ldr r3, [r3, #84] ; 0x54 - 8006fb2: 041a lsls r2, r3, #16 + 8006fb2: 683b ldr r3, [r7, #0] + 8006fb4: 6d5b ldr r3, [r3, #84] ; 0x54 + 8006fb6: 041a lsls r2, r3, #16 macconf->ZeroQuantaPause | - 8006fb4: 683b ldr r3, [r7, #0] - 8006fb6: 6d9b ldr r3, [r3, #88] ; 0x58 + 8006fb8: 683b ldr r3, [r7, #0] + 8006fba: 6d9b ldr r3, [r3, #88] ; 0x58 tmpreg |= (uint32_t)((macconf->PauseTime << 16) | - 8006fb8: 431a orrs r2, r3 + 8006fbc: 431a orrs r2, r3 macconf->PauseLowThreshold | - 8006fba: 683b ldr r3, [r7, #0] - 8006fbc: 6ddb ldr r3, [r3, #92] ; 0x5c + 8006fbe: 683b ldr r3, [r7, #0] + 8006fc0: 6ddb ldr r3, [r3, #92] ; 0x5c macconf->ZeroQuantaPause | - 8006fbe: 431a orrs r2, r3 + 8006fc2: 431a orrs r2, r3 macconf->UnicastPauseFrameDetect | - 8006fc0: 683b ldr r3, [r7, #0] - 8006fc2: 6e1b ldr r3, [r3, #96] ; 0x60 + 8006fc4: 683b ldr r3, [r7, #0] + 8006fc6: 6e1b ldr r3, [r3, #96] ; 0x60 macconf->PauseLowThreshold | - 8006fc4: 431a orrs r2, r3 + 8006fc8: 431a orrs r2, r3 macconf->ReceiveFlowControl | - 8006fc6: 683b ldr r3, [r7, #0] - 8006fc8: 6e5b ldr r3, [r3, #100] ; 0x64 + 8006fca: 683b ldr r3, [r7, #0] + 8006fcc: 6e5b ldr r3, [r3, #100] ; 0x64 macconf->UnicastPauseFrameDetect | - 8006fca: 431a orrs r2, r3 + 8006fce: 431a orrs r2, r3 macconf->TransmitFlowControl); - 8006fcc: 683b ldr r3, [r7, #0] - 8006fce: 6e9b ldr r3, [r3, #104] ; 0x68 + 8006fd0: 683b ldr r3, [r7, #0] + 8006fd2: 6e9b ldr r3, [r3, #104] ; 0x68 macconf->ReceiveFlowControl | - 8006fd0: 4313 orrs r3, r2 - tmpreg |= (uint32_t)((macconf->PauseTime << 16) | - 8006fd2: 68fa ldr r2, [r7, #12] 8006fd4: 4313 orrs r3, r2 - 8006fd6: 60fb str r3, [r7, #12] + tmpreg |= (uint32_t)((macconf->PauseTime << 16) | + 8006fd6: 68fa ldr r2, [r7, #12] + 8006fd8: 4313 orrs r3, r2 + 8006fda: 60fb str r3, [r7, #12] /* Write to ETHERNET MACFCR */ (heth->Instance)->MACFCR = (uint32_t)tmpreg; - 8006fd8: 687b ldr r3, [r7, #4] - 8006fda: 681b ldr r3, [r3, #0] - 8006fdc: 68fa ldr r2, [r7, #12] - 8006fde: 619a str r2, [r3, #24] + 8006fdc: 687b ldr r3, [r7, #4] + 8006fde: 681b ldr r3, [r3, #0] + 8006fe0: 68fa ldr r2, [r7, #12] + 8006fe2: 619a str r2, [r3, #24] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACFCR; - 8006fe0: 687b ldr r3, [r7, #4] - 8006fe2: 681b ldr r3, [r3, #0] - 8006fe4: 699b ldr r3, [r3, #24] - 8006fe6: 60fb str r3, [r7, #12] + 8006fe4: 687b ldr r3, [r7, #4] + 8006fe6: 681b ldr r3, [r3, #0] + 8006fe8: 699b ldr r3, [r3, #24] + 8006fea: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8006fe8: 2001 movs r0, #1 - 8006fea: f7fd ff75 bl 8004ed8 + 8006fec: 2001 movs r0, #1 + 8006fee: f7fd ff75 bl 8004edc (heth->Instance)->MACFCR = tmpreg; - 8006fee: 687b ldr r3, [r7, #4] - 8006ff0: 681b ldr r3, [r3, #0] - 8006ff2: 68fa ldr r2, [r7, #12] - 8006ff4: 619a str r2, [r3, #24] + 8006ff2: 687b ldr r3, [r7, #4] + 8006ff4: 681b ldr r3, [r3, #0] + 8006ff6: 68fa ldr r2, [r7, #12] + 8006ff8: 619a str r2, [r3, #24] /*----------------------- ETHERNET MACVLANTR Configuration -----------------*/ (heth->Instance)->MACVLANTR = (uint32_t)(macconf->VLANTagComparison | - 8006ff6: 683b ldr r3, [r7, #0] - 8006ff8: 6ed9 ldr r1, [r3, #108] ; 0x6c - macconf->VLANTagIdentifier); 8006ffa: 683b ldr r3, [r7, #0] - 8006ffc: 6f1a ldr r2, [r3, #112] ; 0x70 + 8006ffc: 6ed9 ldr r1, [r3, #108] ; 0x6c + macconf->VLANTagIdentifier); + 8006ffe: 683b ldr r3, [r7, #0] + 8007000: 6f1a ldr r2, [r3, #112] ; 0x70 (heth->Instance)->MACVLANTR = (uint32_t)(macconf->VLANTagComparison | - 8006ffe: 687b ldr r3, [r7, #4] - 8007000: 681b ldr r3, [r3, #0] - 8007002: 430a orrs r2, r1 - 8007004: 61da str r2, [r3, #28] + 8007002: 687b ldr r3, [r7, #4] + 8007004: 681b ldr r3, [r3, #0] + 8007006: 430a orrs r2, r1 + 8007008: 61da str r2, [r3, #28] /* Wait until the write operation will be taken into account : at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACVLANTR; - 8007006: 687b ldr r3, [r7, #4] - 8007008: 681b ldr r3, [r3, #0] - 800700a: 69db ldr r3, [r3, #28] - 800700c: 60fb str r3, [r7, #12] + 800700a: 687b ldr r3, [r7, #4] + 800700c: 681b ldr r3, [r3, #0] + 800700e: 69db ldr r3, [r3, #28] + 8007010: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 800700e: 2001 movs r0, #1 - 8007010: f7fd ff62 bl 8004ed8 + 8007012: 2001 movs r0, #1 + 8007014: f7fd ff62 bl 8004edc (heth->Instance)->MACVLANTR = tmpreg; - 8007014: 687b ldr r3, [r7, #4] - 8007016: 681b ldr r3, [r3, #0] - 8007018: 68fa ldr r2, [r7, #12] - 800701a: 61da str r2, [r3, #28] - 800701c: e01e b.n 800705c + 8007018: 687b ldr r3, [r7, #4] + 800701a: 681b ldr r3, [r3, #0] + 800701c: 68fa ldr r2, [r7, #12] + 800701e: 61da str r2, [r3, #28] + 8007020: e01e b.n 8007060 } else /* macconf == NULL : here we just configure Speed and Duplex mode */ { /*------------------------ ETHERNET MACCR Configuration --------------------*/ /* Get the ETHERNET MACCR value */ tmpreg = (heth->Instance)->MACCR; - 800701e: 687b ldr r3, [r7, #4] - 8007020: 681b ldr r3, [r3, #0] - 8007022: 681b ldr r3, [r3, #0] - 8007024: 60fb str r3, [r7, #12] + 8007022: 687b ldr r3, [r7, #4] + 8007024: 681b ldr r3, [r3, #0] + 8007026: 681b ldr r3, [r3, #0] + 8007028: 60fb str r3, [r7, #12] /* Clear FES and DM bits */ tmpreg &= ~((uint32_t)0x00004800); - 8007026: 68fb ldr r3, [r7, #12] - 8007028: f423 4390 bic.w r3, r3, #18432 ; 0x4800 - 800702c: 60fb str r3, [r7, #12] + 800702a: 68fb ldr r3, [r7, #12] + 800702c: f423 4390 bic.w r3, r3, #18432 ; 0x4800 + 8007030: 60fb str r3, [r7, #12] tmpreg |= (uint32_t)(heth->Init.Speed | heth->Init.DuplexMode); - 800702e: 687b ldr r3, [r7, #4] - 8007030: 689a ldr r2, [r3, #8] 8007032: 687b ldr r3, [r7, #4] - 8007034: 68db ldr r3, [r3, #12] - 8007036: 4313 orrs r3, r2 - 8007038: 68fa ldr r2, [r7, #12] + 8007034: 689a ldr r2, [r3, #8] + 8007036: 687b ldr r3, [r7, #4] + 8007038: 68db ldr r3, [r3, #12] 800703a: 4313 orrs r3, r2 - 800703c: 60fb str r3, [r7, #12] + 800703c: 68fa ldr r2, [r7, #12] + 800703e: 4313 orrs r3, r2 + 8007040: 60fb str r3, [r7, #12] /* Write to ETHERNET MACCR */ (heth->Instance)->MACCR = (uint32_t)tmpreg; - 800703e: 687b ldr r3, [r7, #4] - 8007040: 681b ldr r3, [r3, #0] - 8007042: 68fa ldr r2, [r7, #12] - 8007044: 601a str r2, [r3, #0] + 8007042: 687b ldr r3, [r7, #4] + 8007044: 681b ldr r3, [r3, #0] + 8007046: 68fa ldr r2, [r7, #12] + 8007048: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACCR; - 8007046: 687b ldr r3, [r7, #4] - 8007048: 681b ldr r3, [r3, #0] - 800704a: 681b ldr r3, [r3, #0] - 800704c: 60fb str r3, [r7, #12] + 800704a: 687b ldr r3, [r7, #4] + 800704c: 681b ldr r3, [r3, #0] + 800704e: 681b ldr r3, [r3, #0] + 8007050: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 800704e: 2001 movs r0, #1 - 8007050: f7fd ff42 bl 8004ed8 + 8007052: 2001 movs r0, #1 + 8007054: f7fd ff42 bl 8004edc (heth->Instance)->MACCR = tmpreg; - 8007054: 687b ldr r3, [r7, #4] - 8007056: 681b ldr r3, [r3, #0] - 8007058: 68fa ldr r2, [r7, #12] - 800705a: 601a str r2, [r3, #0] + 8007058: 687b ldr r3, [r7, #4] + 800705a: 681b ldr r3, [r3, #0] + 800705c: 68fa ldr r2, [r7, #12] + 800705e: 601a str r2, [r3, #0] } /* Set the ETH state to Ready */ heth->State= HAL_ETH_STATE_READY; - 800705c: 687b ldr r3, [r7, #4] - 800705e: 2201 movs r2, #1 - 8007060: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 8007060: 687b ldr r3, [r7, #4] + 8007062: 2201 movs r2, #1 + 8007064: f883 2044 strb.w r2, [r3, #68] ; 0x44 /* Process Unlocked */ __HAL_UNLOCK(heth); - 8007064: 687b ldr r3, [r7, #4] - 8007066: 2200 movs r2, #0 - 8007068: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 8007068: 687b ldr r3, [r7, #4] + 800706a: 2200 movs r2, #0 + 800706c: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Return function status */ return HAL_OK; - 800706c: 2300 movs r3, #0 + 8007070: 2300 movs r3, #0 } - 800706e: 4618 mov r0, r3 - 8007070: 3710 adds r7, #16 - 8007072: 46bd mov sp, r7 - 8007074: bd80 pop {r7, pc} - 8007076: bf00 nop - 8007078: ff20810f .word 0xff20810f + 8007072: 4618 mov r0, r3 + 8007074: 3710 adds r7, #16 + 8007076: 46bd mov sp, r7 + 8007078: bd80 pop {r7, pc} + 800707a: bf00 nop + 800707c: ff20810f .word 0xff20810f -0800707c : +08007080 : * the configuration information for ETHERNET module * @param err Ethernet Init error * @retval HAL status */ static void ETH_MACDMAConfig(ETH_HandleTypeDef *heth, uint32_t err) { - 800707c: b580 push {r7, lr} - 800707e: b0b0 sub sp, #192 ; 0xc0 - 8007080: af00 add r7, sp, #0 - 8007082: 6078 str r0, [r7, #4] - 8007084: 6039 str r1, [r7, #0] + 8007080: b580 push {r7, lr} + 8007082: b0b0 sub sp, #192 ; 0xc0 + 8007084: af00 add r7, sp, #0 + 8007086: 6078 str r0, [r7, #4] + 8007088: 6039 str r1, [r7, #0] ETH_MACInitTypeDef macinit; ETH_DMAInitTypeDef dmainit; uint32_t tmpreg = 0; - 8007086: 2300 movs r3, #0 - 8007088: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 800708a: 2300 movs r3, #0 + 800708c: f8c7 30bc str.w r3, [r7, #188] ; 0xbc if (err != ETH_SUCCESS) /* Auto-negotiation failed */ - 800708c: 683b ldr r3, [r7, #0] - 800708e: 2b00 cmp r3, #0 - 8007090: d007 beq.n 80070a2 + 8007090: 683b ldr r3, [r7, #0] + 8007092: 2b00 cmp r3, #0 + 8007094: d007 beq.n 80070a6 { /* Set Ethernet duplex mode to Full-duplex */ (heth->Init).DuplexMode = ETH_MODE_FULLDUPLEX; - 8007092: 687b ldr r3, [r7, #4] - 8007094: f44f 6200 mov.w r2, #2048 ; 0x800 - 8007098: 60da str r2, [r3, #12] + 8007096: 687b ldr r3, [r7, #4] + 8007098: f44f 6200 mov.w r2, #2048 ; 0x800 + 800709c: 60da str r2, [r3, #12] /* Set Ethernet speed to 100M */ (heth->Init).Speed = ETH_SPEED_100M; - 800709a: 687b ldr r3, [r7, #4] - 800709c: f44f 4280 mov.w r2, #16384 ; 0x4000 - 80070a0: 609a str r2, [r3, #8] + 800709e: 687b ldr r3, [r7, #4] + 80070a0: f44f 4280 mov.w r2, #16384 ; 0x4000 + 80070a4: 609a str r2, [r3, #8] } /* Ethernet MAC default initialization **************************************/ macinit.Watchdog = ETH_WATCHDOG_ENABLE; - 80070a2: 2300 movs r3, #0 - 80070a4: 64bb str r3, [r7, #72] ; 0x48 - macinit.Jabber = ETH_JABBER_ENABLE; 80070a6: 2300 movs r3, #0 - 80070a8: 64fb str r3, [r7, #76] ; 0x4c - macinit.InterFrameGap = ETH_INTERFRAMEGAP_96BIT; + 80070a8: 64bb str r3, [r7, #72] ; 0x48 + macinit.Jabber = ETH_JABBER_ENABLE; 80070aa: 2300 movs r3, #0 - 80070ac: 653b str r3, [r7, #80] ; 0x50 - macinit.CarrierSense = ETH_CARRIERSENCE_ENABLE; + 80070ac: 64fb str r3, [r7, #76] ; 0x4c + macinit.InterFrameGap = ETH_INTERFRAMEGAP_96BIT; 80070ae: 2300 movs r3, #0 - 80070b0: 657b str r3, [r7, #84] ; 0x54 - macinit.ReceiveOwn = ETH_RECEIVEOWN_ENABLE; + 80070b0: 653b str r3, [r7, #80] ; 0x50 + macinit.CarrierSense = ETH_CARRIERSENCE_ENABLE; 80070b2: 2300 movs r3, #0 - 80070b4: 65bb str r3, [r7, #88] ; 0x58 - macinit.LoopbackMode = ETH_LOOPBACKMODE_DISABLE; + 80070b4: 657b str r3, [r7, #84] ; 0x54 + macinit.ReceiveOwn = ETH_RECEIVEOWN_ENABLE; 80070b6: 2300 movs r3, #0 - 80070b8: 65fb str r3, [r7, #92] ; 0x5c + 80070b8: 65bb str r3, [r7, #88] ; 0x58 + macinit.LoopbackMode = ETH_LOOPBACKMODE_DISABLE; + 80070ba: 2300 movs r3, #0 + 80070bc: 65fb str r3, [r7, #92] ; 0x5c if(heth->Init.ChecksumMode == ETH_CHECKSUM_BY_HARDWARE) - 80070ba: 687b ldr r3, [r7, #4] - 80070bc: 69db ldr r3, [r3, #28] - 80070be: 2b00 cmp r3, #0 - 80070c0: d103 bne.n 80070ca + 80070be: 687b ldr r3, [r7, #4] + 80070c0: 69db ldr r3, [r3, #28] + 80070c2: 2b00 cmp r3, #0 + 80070c4: d103 bne.n 80070ce { macinit.ChecksumOffload = ETH_CHECKSUMOFFLAOD_ENABLE; - 80070c2: f44f 6380 mov.w r3, #1024 ; 0x400 - 80070c6: 663b str r3, [r7, #96] ; 0x60 - 80070c8: e001 b.n 80070ce + 80070c6: f44f 6380 mov.w r3, #1024 ; 0x400 + 80070ca: 663b str r3, [r7, #96] ; 0x60 + 80070cc: e001 b.n 80070d2 } else { macinit.ChecksumOffload = ETH_CHECKSUMOFFLAOD_DISABLE; - 80070ca: 2300 movs r3, #0 - 80070cc: 663b str r3, [r7, #96] ; 0x60 + 80070ce: 2300 movs r3, #0 + 80070d0: 663b str r3, [r7, #96] ; 0x60 } macinit.RetryTransmission = ETH_RETRYTRANSMISSION_DISABLE; - 80070ce: f44f 7300 mov.w r3, #512 ; 0x200 - 80070d2: 667b str r3, [r7, #100] ; 0x64 + 80070d2: f44f 7300 mov.w r3, #512 ; 0x200 + 80070d6: 667b str r3, [r7, #100] ; 0x64 macinit.AutomaticPadCRCStrip = ETH_AUTOMATICPADCRCSTRIP_DISABLE; - 80070d4: 2300 movs r3, #0 - 80070d6: 66bb str r3, [r7, #104] ; 0x68 - macinit.BackOffLimit = ETH_BACKOFFLIMIT_10; 80070d8: 2300 movs r3, #0 - 80070da: 66fb str r3, [r7, #108] ; 0x6c - macinit.DeferralCheck = ETH_DEFFERRALCHECK_DISABLE; + 80070da: 66bb str r3, [r7, #104] ; 0x68 + macinit.BackOffLimit = ETH_BACKOFFLIMIT_10; 80070dc: 2300 movs r3, #0 - 80070de: 673b str r3, [r7, #112] ; 0x70 - macinit.ReceiveAll = ETH_RECEIVEAll_DISABLE; + 80070de: 66fb str r3, [r7, #108] ; 0x6c + macinit.DeferralCheck = ETH_DEFFERRALCHECK_DISABLE; 80070e0: 2300 movs r3, #0 - 80070e2: 677b str r3, [r7, #116] ; 0x74 - macinit.SourceAddrFilter = ETH_SOURCEADDRFILTER_DISABLE; + 80070e2: 673b str r3, [r7, #112] ; 0x70 + macinit.ReceiveAll = ETH_RECEIVEAll_DISABLE; 80070e4: 2300 movs r3, #0 - 80070e6: 67bb str r3, [r7, #120] ; 0x78 + 80070e6: 677b str r3, [r7, #116] ; 0x74 + macinit.SourceAddrFilter = ETH_SOURCEADDRFILTER_DISABLE; + 80070e8: 2300 movs r3, #0 + 80070ea: 67bb str r3, [r7, #120] ; 0x78 macinit.PassControlFrames = ETH_PASSCONTROLFRAMES_BLOCKALL; - 80070e8: 2340 movs r3, #64 ; 0x40 - 80070ea: 67fb str r3, [r7, #124] ; 0x7c + 80070ec: 2340 movs r3, #64 ; 0x40 + 80070ee: 67fb str r3, [r7, #124] ; 0x7c macinit.BroadcastFramesReception = ETH_BROADCASTFRAMESRECEPTION_ENABLE; - 80070ec: 2300 movs r3, #0 - 80070ee: f8c7 3080 str.w r3, [r7, #128] ; 0x80 + 80070f0: 2300 movs r3, #0 + 80070f2: f8c7 3080 str.w r3, [r7, #128] ; 0x80 macinit.DestinationAddrFilter = ETH_DESTINATIONADDRFILTER_NORMAL; - 80070f2: 2300 movs r3, #0 - 80070f4: f8c7 3084 str.w r3, [r7, #132] ; 0x84 + 80070f6: 2300 movs r3, #0 + 80070f8: f8c7 3084 str.w r3, [r7, #132] ; 0x84 macinit.PromiscuousMode = ETH_PROMISCUOUS_MODE_DISABLE; - 80070f8: 2300 movs r3, #0 - 80070fa: f8c7 3088 str.w r3, [r7, #136] ; 0x88 + 80070fc: 2300 movs r3, #0 + 80070fe: f8c7 3088 str.w r3, [r7, #136] ; 0x88 macinit.MulticastFramesFilter = ETH_MULTICASTFRAMESFILTER_PERFECT; - 80070fe: 2300 movs r3, #0 - 8007100: f8c7 308c str.w r3, [r7, #140] ; 0x8c + 8007102: 2300 movs r3, #0 + 8007104: f8c7 308c str.w r3, [r7, #140] ; 0x8c macinit.UnicastFramesFilter = ETH_UNICASTFRAMESFILTER_PERFECT; - 8007104: 2300 movs r3, #0 - 8007106: f8c7 3090 str.w r3, [r7, #144] ; 0x90 + 8007108: 2300 movs r3, #0 + 800710a: f8c7 3090 str.w r3, [r7, #144] ; 0x90 macinit.HashTableHigh = 0x0; - 800710a: 2300 movs r3, #0 - 800710c: f8c7 3094 str.w r3, [r7, #148] ; 0x94 + 800710e: 2300 movs r3, #0 + 8007110: f8c7 3094 str.w r3, [r7, #148] ; 0x94 macinit.HashTableLow = 0x0; - 8007110: 2300 movs r3, #0 - 8007112: f8c7 3098 str.w r3, [r7, #152] ; 0x98 + 8007114: 2300 movs r3, #0 + 8007116: f8c7 3098 str.w r3, [r7, #152] ; 0x98 macinit.PauseTime = 0x0; - 8007116: 2300 movs r3, #0 - 8007118: f8c7 309c str.w r3, [r7, #156] ; 0x9c + 800711a: 2300 movs r3, #0 + 800711c: f8c7 309c str.w r3, [r7, #156] ; 0x9c macinit.ZeroQuantaPause = ETH_ZEROQUANTAPAUSE_DISABLE; - 800711c: 2380 movs r3, #128 ; 0x80 - 800711e: f8c7 30a0 str.w r3, [r7, #160] ; 0xa0 + 8007120: 2380 movs r3, #128 ; 0x80 + 8007122: f8c7 30a0 str.w r3, [r7, #160] ; 0xa0 macinit.PauseLowThreshold = ETH_PAUSELOWTHRESHOLD_MINUS4; - 8007122: 2300 movs r3, #0 - 8007124: f8c7 30a4 str.w r3, [r7, #164] ; 0xa4 + 8007126: 2300 movs r3, #0 + 8007128: f8c7 30a4 str.w r3, [r7, #164] ; 0xa4 macinit.UnicastPauseFrameDetect = ETH_UNICASTPAUSEFRAMEDETECT_DISABLE; - 8007128: 2300 movs r3, #0 - 800712a: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 + 800712c: 2300 movs r3, #0 + 800712e: f8c7 30a8 str.w r3, [r7, #168] ; 0xa8 macinit.ReceiveFlowControl = ETH_RECEIVEFLOWCONTROL_DISABLE; - 800712e: 2300 movs r3, #0 - 8007130: f8c7 30ac str.w r3, [r7, #172] ; 0xac + 8007132: 2300 movs r3, #0 + 8007134: f8c7 30ac str.w r3, [r7, #172] ; 0xac macinit.TransmitFlowControl = ETH_TRANSMITFLOWCONTROL_DISABLE; - 8007134: 2300 movs r3, #0 - 8007136: f8c7 30b0 str.w r3, [r7, #176] ; 0xb0 + 8007138: 2300 movs r3, #0 + 800713a: f8c7 30b0 str.w r3, [r7, #176] ; 0xb0 macinit.VLANTagComparison = ETH_VLANTAGCOMPARISON_16BIT; - 800713a: 2300 movs r3, #0 - 800713c: f8c7 30b4 str.w r3, [r7, #180] ; 0xb4 + 800713e: 2300 movs r3, #0 + 8007140: f8c7 30b4 str.w r3, [r7, #180] ; 0xb4 macinit.VLANTagIdentifier = 0x0; - 8007140: 2300 movs r3, #0 - 8007142: f8c7 30b8 str.w r3, [r7, #184] ; 0xb8 + 8007144: 2300 movs r3, #0 + 8007146: f8c7 30b8 str.w r3, [r7, #184] ; 0xb8 /*------------------------ ETHERNET MACCR Configuration --------------------*/ /* Get the ETHERNET MACCR value */ tmpreg = (heth->Instance)->MACCR; - 8007146: 687b ldr r3, [r7, #4] - 8007148: 681b ldr r3, [r3, #0] - 800714a: 681b ldr r3, [r3, #0] - 800714c: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 800714a: 687b ldr r3, [r7, #4] + 800714c: 681b ldr r3, [r3, #0] + 800714e: 681b ldr r3, [r3, #0] + 8007150: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Clear WD, PCE, PS, TE and RE bits */ tmpreg &= ETH_MACCR_CLEAR_MASK; - 8007150: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 8007154: 4bab ldr r3, [pc, #684] ; (8007404 ) - 8007156: 4013 ands r3, r2 - 8007158: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 8007154: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 8007158: 4bab ldr r3, [pc, #684] ; (8007408 ) + 800715a: 4013 ands r3, r2 + 800715c: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Set the IPCO bit according to ETH ChecksumOffload value */ /* Set the DR bit according to ETH RetryTransmission value */ /* Set the ACS bit according to ETH AutomaticPadCRCStrip value */ /* Set the BL bit according to ETH BackOffLimit value */ /* Set the DC bit according to ETH DeferralCheck value */ tmpreg |= (uint32_t)(macinit.Watchdog | - 800715c: 6cba ldr r2, [r7, #72] ; 0x48 + 8007160: 6cba ldr r2, [r7, #72] ; 0x48 macinit.Jabber | - 800715e: 6cfb ldr r3, [r7, #76] ; 0x4c + 8007162: 6cfb ldr r3, [r7, #76] ; 0x4c tmpreg |= (uint32_t)(macinit.Watchdog | - 8007160: 431a orrs r2, r3 + 8007164: 431a orrs r2, r3 macinit.InterFrameGap | - 8007162: 6d3b ldr r3, [r7, #80] ; 0x50 + 8007166: 6d3b ldr r3, [r7, #80] ; 0x50 macinit.Jabber | - 8007164: 431a orrs r2, r3 + 8007168: 431a orrs r2, r3 macinit.CarrierSense | - 8007166: 6d7b ldr r3, [r7, #84] ; 0x54 + 800716a: 6d7b ldr r3, [r7, #84] ; 0x54 macinit.InterFrameGap | - 8007168: 431a orrs r2, r3 + 800716c: 431a orrs r2, r3 (heth->Init).Speed | - 800716a: 687b ldr r3, [r7, #4] - 800716c: 689b ldr r3, [r3, #8] + 800716e: 687b ldr r3, [r7, #4] + 8007170: 689b ldr r3, [r3, #8] macinit.CarrierSense | - 800716e: 431a orrs r2, r3 + 8007172: 431a orrs r2, r3 macinit.ReceiveOwn | - 8007170: 6dbb ldr r3, [r7, #88] ; 0x58 + 8007174: 6dbb ldr r3, [r7, #88] ; 0x58 (heth->Init).Speed | - 8007172: 431a orrs r2, r3 + 8007176: 431a orrs r2, r3 macinit.LoopbackMode | - 8007174: 6dfb ldr r3, [r7, #92] ; 0x5c + 8007178: 6dfb ldr r3, [r7, #92] ; 0x5c macinit.ReceiveOwn | - 8007176: 431a orrs r2, r3 + 800717a: 431a orrs r2, r3 (heth->Init).DuplexMode | - 8007178: 687b ldr r3, [r7, #4] - 800717a: 68db ldr r3, [r3, #12] + 800717c: 687b ldr r3, [r7, #4] + 800717e: 68db ldr r3, [r3, #12] macinit.LoopbackMode | - 800717c: 431a orrs r2, r3 + 8007180: 431a orrs r2, r3 macinit.ChecksumOffload | - 800717e: 6e3b ldr r3, [r7, #96] ; 0x60 + 8007182: 6e3b ldr r3, [r7, #96] ; 0x60 (heth->Init).DuplexMode | - 8007180: 431a orrs r2, r3 + 8007184: 431a orrs r2, r3 macinit.RetryTransmission | - 8007182: 6e7b ldr r3, [r7, #100] ; 0x64 + 8007186: 6e7b ldr r3, [r7, #100] ; 0x64 macinit.ChecksumOffload | - 8007184: 431a orrs r2, r3 + 8007188: 431a orrs r2, r3 macinit.AutomaticPadCRCStrip | - 8007186: 6ebb ldr r3, [r7, #104] ; 0x68 + 800718a: 6ebb ldr r3, [r7, #104] ; 0x68 macinit.RetryTransmission | - 8007188: 431a orrs r2, r3 + 800718c: 431a orrs r2, r3 macinit.BackOffLimit | - 800718a: 6efb ldr r3, [r7, #108] ; 0x6c + 800718e: 6efb ldr r3, [r7, #108] ; 0x6c macinit.AutomaticPadCRCStrip | - 800718c: 431a orrs r2, r3 + 8007190: 431a orrs r2, r3 macinit.DeferralCheck); - 800718e: 6f3b ldr r3, [r7, #112] ; 0x70 + 8007192: 6f3b ldr r3, [r7, #112] ; 0x70 macinit.BackOffLimit | - 8007190: 4313 orrs r3, r2 + 8007194: 4313 orrs r3, r2 tmpreg |= (uint32_t)(macinit.Watchdog | - 8007192: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 8007196: 4313 orrs r3, r2 - 8007198: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 8007196: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 800719a: 4313 orrs r3, r2 + 800719c: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Write to ETHERNET MACCR */ (heth->Instance)->MACCR = (uint32_t)tmpreg; - 800719c: 687b ldr r3, [r7, #4] - 800719e: 681b ldr r3, [r3, #0] - 80071a0: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 80071a4: 601a str r2, [r3, #0] + 80071a0: 687b ldr r3, [r7, #4] + 80071a2: 681b ldr r3, [r3, #0] + 80071a4: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 80071a8: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACCR; - 80071a6: 687b ldr r3, [r7, #4] - 80071a8: 681b ldr r3, [r3, #0] - 80071aa: 681b ldr r3, [r3, #0] - 80071ac: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 80071aa: 687b ldr r3, [r7, #4] + 80071ac: 681b ldr r3, [r3, #0] + 80071ae: 681b ldr r3, [r3, #0] + 80071b0: f8c7 30bc str.w r3, [r7, #188] ; 0xbc HAL_Delay(ETH_REG_WRITE_DELAY); - 80071b0: 2001 movs r0, #1 - 80071b2: f7fd fe91 bl 8004ed8 + 80071b4: 2001 movs r0, #1 + 80071b6: f7fd fe91 bl 8004edc (heth->Instance)->MACCR = tmpreg; - 80071b6: 687b ldr r3, [r7, #4] - 80071b8: 681b ldr r3, [r3, #0] - 80071ba: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 80071be: 601a str r2, [r3, #0] + 80071ba: 687b ldr r3, [r7, #4] + 80071bc: 681b ldr r3, [r3, #0] + 80071be: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 80071c2: 601a str r2, [r3, #0] /* Set the DAIF bit according to ETH DestinationAddrFilter value */ /* Set the PR bit according to ETH PromiscuousMode value */ /* Set the PM, HMC and HPF bits according to ETH MulticastFramesFilter value */ /* Set the HUC and HPF bits according to ETH UnicastFramesFilter value */ /* Write to ETHERNET MACFFR */ (heth->Instance)->MACFFR = (uint32_t)(macinit.ReceiveAll | - 80071c0: 6f7a ldr r2, [r7, #116] ; 0x74 + 80071c4: 6f7a ldr r2, [r7, #116] ; 0x74 macinit.SourceAddrFilter | - 80071c2: 6fbb ldr r3, [r7, #120] ; 0x78 + 80071c6: 6fbb ldr r3, [r7, #120] ; 0x78 (heth->Instance)->MACFFR = (uint32_t)(macinit.ReceiveAll | - 80071c4: 431a orrs r2, r3 + 80071c8: 431a orrs r2, r3 macinit.PassControlFrames | - 80071c6: 6ffb ldr r3, [r7, #124] ; 0x7c + 80071ca: 6ffb ldr r3, [r7, #124] ; 0x7c macinit.SourceAddrFilter | - 80071c8: 431a orrs r2, r3 + 80071cc: 431a orrs r2, r3 macinit.BroadcastFramesReception | - 80071ca: f8d7 3080 ldr.w r3, [r7, #128] ; 0x80 + 80071ce: f8d7 3080 ldr.w r3, [r7, #128] ; 0x80 macinit.PassControlFrames | - 80071ce: 431a orrs r2, r3 + 80071d2: 431a orrs r2, r3 macinit.DestinationAddrFilter | - 80071d0: f8d7 3084 ldr.w r3, [r7, #132] ; 0x84 + 80071d4: f8d7 3084 ldr.w r3, [r7, #132] ; 0x84 macinit.BroadcastFramesReception | - 80071d4: 431a orrs r2, r3 + 80071d8: 431a orrs r2, r3 macinit.PromiscuousMode | - 80071d6: f8d7 3088 ldr.w r3, [r7, #136] ; 0x88 + 80071da: f8d7 3088 ldr.w r3, [r7, #136] ; 0x88 macinit.DestinationAddrFilter | - 80071da: 431a orrs r2, r3 + 80071de: 431a orrs r2, r3 macinit.MulticastFramesFilter | - 80071dc: f8d7 308c ldr.w r3, [r7, #140] ; 0x8c + 80071e0: f8d7 308c ldr.w r3, [r7, #140] ; 0x8c macinit.PromiscuousMode | - 80071e0: ea42 0103 orr.w r1, r2, r3 + 80071e4: ea42 0103 orr.w r1, r2, r3 macinit.UnicastFramesFilter); - 80071e4: f8d7 2090 ldr.w r2, [r7, #144] ; 0x90 + 80071e8: f8d7 2090 ldr.w r2, [r7, #144] ; 0x90 (heth->Instance)->MACFFR = (uint32_t)(macinit.ReceiveAll | - 80071e8: 687b ldr r3, [r7, #4] - 80071ea: 681b ldr r3, [r3, #0] + 80071ec: 687b ldr r3, [r7, #4] + 80071ee: 681b ldr r3, [r3, #0] macinit.MulticastFramesFilter | - 80071ec: 430a orrs r2, r1 + 80071f0: 430a orrs r2, r1 (heth->Instance)->MACFFR = (uint32_t)(macinit.ReceiveAll | - 80071ee: 605a str r2, [r3, #4] + 80071f2: 605a str r2, [r3, #4] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACFFR; - 80071f0: 687b ldr r3, [r7, #4] - 80071f2: 681b ldr r3, [r3, #0] - 80071f4: 685b ldr r3, [r3, #4] - 80071f6: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 80071f4: 687b ldr r3, [r7, #4] + 80071f6: 681b ldr r3, [r3, #0] + 80071f8: 685b ldr r3, [r3, #4] + 80071fa: f8c7 30bc str.w r3, [r7, #188] ; 0xbc HAL_Delay(ETH_REG_WRITE_DELAY); - 80071fa: 2001 movs r0, #1 - 80071fc: f7fd fe6c bl 8004ed8 + 80071fe: 2001 movs r0, #1 + 8007200: f7fd fe6c bl 8004edc (heth->Instance)->MACFFR = tmpreg; - 8007200: 687b ldr r3, [r7, #4] - 8007202: 681b ldr r3, [r3, #0] - 8007204: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 8007208: 605a str r2, [r3, #4] + 8007204: 687b ldr r3, [r7, #4] + 8007206: 681b ldr r3, [r3, #0] + 8007208: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 800720c: 605a str r2, [r3, #4] /*--------------- ETHERNET MACHTHR and MACHTLR Configuration --------------*/ /* Write to ETHERNET MACHTHR */ (heth->Instance)->MACHTHR = (uint32_t)macinit.HashTableHigh; - 800720a: 687b ldr r3, [r7, #4] - 800720c: 681b ldr r3, [r3, #0] - 800720e: f8d7 2094 ldr.w r2, [r7, #148] ; 0x94 - 8007212: 609a str r2, [r3, #8] + 800720e: 687b ldr r3, [r7, #4] + 8007210: 681b ldr r3, [r3, #0] + 8007212: f8d7 2094 ldr.w r2, [r7, #148] ; 0x94 + 8007216: 609a str r2, [r3, #8] /* Write to ETHERNET MACHTLR */ (heth->Instance)->MACHTLR = (uint32_t)macinit.HashTableLow; - 8007214: 687b ldr r3, [r7, #4] - 8007216: 681b ldr r3, [r3, #0] - 8007218: f8d7 2098 ldr.w r2, [r7, #152] ; 0x98 - 800721c: 60da str r2, [r3, #12] + 8007218: 687b ldr r3, [r7, #4] + 800721a: 681b ldr r3, [r3, #0] + 800721c: f8d7 2098 ldr.w r2, [r7, #152] ; 0x98 + 8007220: 60da str r2, [r3, #12] /*----------------------- ETHERNET MACFCR Configuration -------------------*/ /* Get the ETHERNET MACFCR value */ tmpreg = (heth->Instance)->MACFCR; - 800721e: 687b ldr r3, [r7, #4] - 8007220: 681b ldr r3, [r3, #0] - 8007222: 699b ldr r3, [r3, #24] - 8007224: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 8007222: 687b ldr r3, [r7, #4] + 8007224: 681b ldr r3, [r3, #0] + 8007226: 699b ldr r3, [r3, #24] + 8007228: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Clear xx bits */ tmpreg &= ETH_MACFCR_CLEAR_MASK; - 8007228: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 800722c: f64f 7341 movw r3, #65345 ; 0xff41 - 8007230: 4013 ands r3, r2 - 8007232: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 800722c: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 8007230: f64f 7341 movw r3, #65345 ; 0xff41 + 8007234: 4013 ands r3, r2 + 8007236: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Set the DZPQ bit according to ETH ZeroQuantaPause value */ /* Set the PLT bit according to ETH PauseLowThreshold value */ /* Set the UP bit according to ETH UnicastPauseFrameDetect value */ /* Set the RFE bit according to ETH ReceiveFlowControl value */ /* Set the TFE bit according to ETH TransmitFlowControl value */ tmpreg |= (uint32_t)((macinit.PauseTime << 16) | - 8007236: f8d7 309c ldr.w r3, [r7, #156] ; 0x9c - 800723a: 041a lsls r2, r3, #16 + 800723a: f8d7 309c ldr.w r3, [r7, #156] ; 0x9c + 800723e: 041a lsls r2, r3, #16 macinit.ZeroQuantaPause | - 800723c: f8d7 30a0 ldr.w r3, [r7, #160] ; 0xa0 + 8007240: f8d7 30a0 ldr.w r3, [r7, #160] ; 0xa0 tmpreg |= (uint32_t)((macinit.PauseTime << 16) | - 8007240: 431a orrs r2, r3 + 8007244: 431a orrs r2, r3 macinit.PauseLowThreshold | - 8007242: f8d7 30a4 ldr.w r3, [r7, #164] ; 0xa4 + 8007246: f8d7 30a4 ldr.w r3, [r7, #164] ; 0xa4 macinit.ZeroQuantaPause | - 8007246: 431a orrs r2, r3 + 800724a: 431a orrs r2, r3 macinit.UnicastPauseFrameDetect | - 8007248: f8d7 30a8 ldr.w r3, [r7, #168] ; 0xa8 + 800724c: f8d7 30a8 ldr.w r3, [r7, #168] ; 0xa8 macinit.PauseLowThreshold | - 800724c: 431a orrs r2, r3 + 8007250: 431a orrs r2, r3 macinit.ReceiveFlowControl | - 800724e: f8d7 30ac ldr.w r3, [r7, #172] ; 0xac + 8007252: f8d7 30ac ldr.w r3, [r7, #172] ; 0xac macinit.UnicastPauseFrameDetect | - 8007252: 431a orrs r2, r3 + 8007256: 431a orrs r2, r3 macinit.TransmitFlowControl); - 8007254: f8d7 30b0 ldr.w r3, [r7, #176] ; 0xb0 + 8007258: f8d7 30b0 ldr.w r3, [r7, #176] ; 0xb0 macinit.ReceiveFlowControl | - 8007258: 4313 orrs r3, r2 + 800725c: 4313 orrs r3, r2 tmpreg |= (uint32_t)((macinit.PauseTime << 16) | - 800725a: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 800725e: 4313 orrs r3, r2 - 8007260: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 800725e: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 8007262: 4313 orrs r3, r2 + 8007264: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Write to ETHERNET MACFCR */ (heth->Instance)->MACFCR = (uint32_t)tmpreg; - 8007264: 687b ldr r3, [r7, #4] - 8007266: 681b ldr r3, [r3, #0] - 8007268: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 800726c: 619a str r2, [r3, #24] + 8007268: 687b ldr r3, [r7, #4] + 800726a: 681b ldr r3, [r3, #0] + 800726c: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 8007270: 619a str r2, [r3, #24] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACFCR; - 800726e: 687b ldr r3, [r7, #4] - 8007270: 681b ldr r3, [r3, #0] - 8007272: 699b ldr r3, [r3, #24] - 8007274: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 8007272: 687b ldr r3, [r7, #4] + 8007274: 681b ldr r3, [r3, #0] + 8007276: 699b ldr r3, [r3, #24] + 8007278: f8c7 30bc str.w r3, [r7, #188] ; 0xbc HAL_Delay(ETH_REG_WRITE_DELAY); - 8007278: 2001 movs r0, #1 - 800727a: f7fd fe2d bl 8004ed8 + 800727c: 2001 movs r0, #1 + 800727e: f7fd fe2d bl 8004edc (heth->Instance)->MACFCR = tmpreg; - 800727e: 687b ldr r3, [r7, #4] - 8007280: 681b ldr r3, [r3, #0] - 8007282: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 8007286: 619a str r2, [r3, #24] + 8007282: 687b ldr r3, [r7, #4] + 8007284: 681b ldr r3, [r3, #0] + 8007286: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 800728a: 619a str r2, [r3, #24] /*----------------------- ETHERNET MACVLANTR Configuration ----------------*/ /* Set the ETV bit according to ETH VLANTagComparison value */ /* Set the VL bit according to ETH VLANTagIdentifier value */ (heth->Instance)->MACVLANTR = (uint32_t)(macinit.VLANTagComparison | - 8007288: f8d7 10b4 ldr.w r1, [r7, #180] ; 0xb4 + 800728c: f8d7 10b4 ldr.w r1, [r7, #180] ; 0xb4 macinit.VLANTagIdentifier); - 800728c: f8d7 20b8 ldr.w r2, [r7, #184] ; 0xb8 + 8007290: f8d7 20b8 ldr.w r2, [r7, #184] ; 0xb8 (heth->Instance)->MACVLANTR = (uint32_t)(macinit.VLANTagComparison | - 8007290: 687b ldr r3, [r7, #4] - 8007292: 681b ldr r3, [r3, #0] - 8007294: 430a orrs r2, r1 - 8007296: 61da str r2, [r3, #28] + 8007294: 687b ldr r3, [r7, #4] + 8007296: 681b ldr r3, [r3, #0] + 8007298: 430a orrs r2, r1 + 800729a: 61da str r2, [r3, #28] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACVLANTR; - 8007298: 687b ldr r3, [r7, #4] - 800729a: 681b ldr r3, [r3, #0] - 800729c: 69db ldr r3, [r3, #28] - 800729e: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 800729c: 687b ldr r3, [r7, #4] + 800729e: 681b ldr r3, [r3, #0] + 80072a0: 69db ldr r3, [r3, #28] + 80072a2: f8c7 30bc str.w r3, [r7, #188] ; 0xbc HAL_Delay(ETH_REG_WRITE_DELAY); - 80072a2: 2001 movs r0, #1 - 80072a4: f7fd fe18 bl 8004ed8 + 80072a6: 2001 movs r0, #1 + 80072a8: f7fd fe18 bl 8004edc (heth->Instance)->MACVLANTR = tmpreg; - 80072a8: 687b ldr r3, [r7, #4] - 80072aa: 681b ldr r3, [r3, #0] - 80072ac: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 80072b0: 61da str r2, [r3, #28] + 80072ac: 687b ldr r3, [r7, #4] + 80072ae: 681b ldr r3, [r3, #0] + 80072b0: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 80072b4: 61da str r2, [r3, #28] /* Ethernet DMA default initialization ************************************/ dmainit.DropTCPIPChecksumErrorFrame = ETH_DROPTCPIPCHECKSUMERRORFRAME_ENABLE; - 80072b2: 2300 movs r3, #0 - 80072b4: 60bb str r3, [r7, #8] + 80072b6: 2300 movs r3, #0 + 80072b8: 60bb str r3, [r7, #8] dmainit.ReceiveStoreForward = ETH_RECEIVESTOREFORWARD_ENABLE; - 80072b6: f04f 7300 mov.w r3, #33554432 ; 0x2000000 - 80072ba: 60fb str r3, [r7, #12] + 80072ba: f04f 7300 mov.w r3, #33554432 ; 0x2000000 + 80072be: 60fb str r3, [r7, #12] dmainit.FlushReceivedFrame = ETH_FLUSHRECEIVEDFRAME_ENABLE; - 80072bc: 2300 movs r3, #0 - 80072be: 613b str r3, [r7, #16] + 80072c0: 2300 movs r3, #0 + 80072c2: 613b str r3, [r7, #16] dmainit.TransmitStoreForward = ETH_TRANSMITSTOREFORWARD_ENABLE; - 80072c0: f44f 1300 mov.w r3, #2097152 ; 0x200000 - 80072c4: 617b str r3, [r7, #20] + 80072c4: f44f 1300 mov.w r3, #2097152 ; 0x200000 + 80072c8: 617b str r3, [r7, #20] dmainit.TransmitThresholdControl = ETH_TRANSMITTHRESHOLDCONTROL_64BYTES; - 80072c6: 2300 movs r3, #0 - 80072c8: 61bb str r3, [r7, #24] - dmainit.ForwardErrorFrames = ETH_FORWARDERRORFRAMES_DISABLE; 80072ca: 2300 movs r3, #0 - 80072cc: 61fb str r3, [r7, #28] - dmainit.ForwardUndersizedGoodFrames = ETH_FORWARDUNDERSIZEDGOODFRAMES_DISABLE; + 80072cc: 61bb str r3, [r7, #24] + dmainit.ForwardErrorFrames = ETH_FORWARDERRORFRAMES_DISABLE; 80072ce: 2300 movs r3, #0 - 80072d0: 623b str r3, [r7, #32] - dmainit.ReceiveThresholdControl = ETH_RECEIVEDTHRESHOLDCONTROL_64BYTES; + 80072d0: 61fb str r3, [r7, #28] + dmainit.ForwardUndersizedGoodFrames = ETH_FORWARDUNDERSIZEDGOODFRAMES_DISABLE; 80072d2: 2300 movs r3, #0 - 80072d4: 627b str r3, [r7, #36] ; 0x24 + 80072d4: 623b str r3, [r7, #32] + dmainit.ReceiveThresholdControl = ETH_RECEIVEDTHRESHOLDCONTROL_64BYTES; + 80072d6: 2300 movs r3, #0 + 80072d8: 627b str r3, [r7, #36] ; 0x24 dmainit.SecondFrameOperate = ETH_SECONDFRAMEOPERARTE_ENABLE; - 80072d6: 2304 movs r3, #4 - 80072d8: 62bb str r3, [r7, #40] ; 0x28 + 80072da: 2304 movs r3, #4 + 80072dc: 62bb str r3, [r7, #40] ; 0x28 dmainit.AddressAlignedBeats = ETH_ADDRESSALIGNEDBEATS_ENABLE; - 80072da: f04f 7300 mov.w r3, #33554432 ; 0x2000000 - 80072de: 62fb str r3, [r7, #44] ; 0x2c + 80072de: f04f 7300 mov.w r3, #33554432 ; 0x2000000 + 80072e2: 62fb str r3, [r7, #44] ; 0x2c dmainit.FixedBurst = ETH_FIXEDBURST_ENABLE; - 80072e0: f44f 3380 mov.w r3, #65536 ; 0x10000 - 80072e4: 633b str r3, [r7, #48] ; 0x30 + 80072e4: f44f 3380 mov.w r3, #65536 ; 0x10000 + 80072e8: 633b str r3, [r7, #48] ; 0x30 dmainit.RxDMABurstLength = ETH_RXDMABURSTLENGTH_32BEAT; - 80072e6: f44f 0380 mov.w r3, #4194304 ; 0x400000 - 80072ea: 637b str r3, [r7, #52] ; 0x34 + 80072ea: f44f 0380 mov.w r3, #4194304 ; 0x400000 + 80072ee: 637b str r3, [r7, #52] ; 0x34 dmainit.TxDMABurstLength = ETH_TXDMABURSTLENGTH_32BEAT; - 80072ec: f44f 5300 mov.w r3, #8192 ; 0x2000 - 80072f0: 63bb str r3, [r7, #56] ; 0x38 + 80072f0: f44f 5300 mov.w r3, #8192 ; 0x2000 + 80072f4: 63bb str r3, [r7, #56] ; 0x38 dmainit.EnhancedDescriptorFormat = ETH_DMAENHANCEDDESCRIPTOR_ENABLE; - 80072f2: 2380 movs r3, #128 ; 0x80 - 80072f4: 63fb str r3, [r7, #60] ; 0x3c + 80072f6: 2380 movs r3, #128 ; 0x80 + 80072f8: 63fb str r3, [r7, #60] ; 0x3c dmainit.DescriptorSkipLength = 0x0; - 80072f6: 2300 movs r3, #0 - 80072f8: 643b str r3, [r7, #64] ; 0x40 - dmainit.DMAArbitration = ETH_DMAARBITRATION_ROUNDROBIN_RXTX_1_1; 80072fa: 2300 movs r3, #0 - 80072fc: 647b str r3, [r7, #68] ; 0x44 + 80072fc: 643b str r3, [r7, #64] ; 0x40 + dmainit.DMAArbitration = ETH_DMAARBITRATION_ROUNDROBIN_RXTX_1_1; + 80072fe: 2300 movs r3, #0 + 8007300: 647b str r3, [r7, #68] ; 0x44 /* Get the ETHERNET DMAOMR value */ tmpreg = (heth->Instance)->DMAOMR; - 80072fe: 687b ldr r3, [r7, #4] - 8007300: 681a ldr r2, [r3, #0] - 8007302: f241 0318 movw r3, #4120 ; 0x1018 - 8007306: 4413 add r3, r2 - 8007308: 681b ldr r3, [r3, #0] - 800730a: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 8007302: 687b ldr r3, [r7, #4] + 8007304: 681a ldr r2, [r3, #0] + 8007306: f241 0318 movw r3, #4120 ; 0x1018 + 800730a: 4413 add r3, r2 + 800730c: 681b ldr r3, [r3, #0] + 800730e: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Clear xx bits */ tmpreg &= ETH_DMAOMR_CLEAR_MASK; - 800730e: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 8007312: 4b3d ldr r3, [pc, #244] ; (8007408 ) - 8007314: 4013 ands r3, r2 - 8007316: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 8007312: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 8007316: 4b3d ldr r3, [pc, #244] ; (800740c ) + 8007318: 4013 ands r3, r2 + 800731a: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Set the TTC bit according to ETH TransmitThresholdControl value */ /* Set the FEF bit according to ETH ForwardErrorFrames value */ /* Set the FUF bit according to ETH ForwardUndersizedGoodFrames value */ /* Set the RTC bit according to ETH ReceiveThresholdControl value */ /* Set the OSF bit according to ETH SecondFrameOperate value */ tmpreg |= (uint32_t)(dmainit.DropTCPIPChecksumErrorFrame | - 800731a: 68ba ldr r2, [r7, #8] + 800731e: 68ba ldr r2, [r7, #8] dmainit.ReceiveStoreForward | - 800731c: 68fb ldr r3, [r7, #12] + 8007320: 68fb ldr r3, [r7, #12] tmpreg |= (uint32_t)(dmainit.DropTCPIPChecksumErrorFrame | - 800731e: 431a orrs r2, r3 + 8007322: 431a orrs r2, r3 dmainit.FlushReceivedFrame | - 8007320: 693b ldr r3, [r7, #16] + 8007324: 693b ldr r3, [r7, #16] dmainit.ReceiveStoreForward | - 8007322: 431a orrs r2, r3 + 8007326: 431a orrs r2, r3 dmainit.TransmitStoreForward | - 8007324: 697b ldr r3, [r7, #20] + 8007328: 697b ldr r3, [r7, #20] dmainit.FlushReceivedFrame | - 8007326: 431a orrs r2, r3 + 800732a: 431a orrs r2, r3 dmainit.TransmitThresholdControl | - 8007328: 69bb ldr r3, [r7, #24] + 800732c: 69bb ldr r3, [r7, #24] dmainit.TransmitStoreForward | - 800732a: 431a orrs r2, r3 + 800732e: 431a orrs r2, r3 dmainit.ForwardErrorFrames | - 800732c: 69fb ldr r3, [r7, #28] + 8007330: 69fb ldr r3, [r7, #28] dmainit.TransmitThresholdControl | - 800732e: 431a orrs r2, r3 + 8007332: 431a orrs r2, r3 dmainit.ForwardUndersizedGoodFrames | - 8007330: 6a3b ldr r3, [r7, #32] + 8007334: 6a3b ldr r3, [r7, #32] dmainit.ForwardErrorFrames | - 8007332: 431a orrs r2, r3 + 8007336: 431a orrs r2, r3 dmainit.ReceiveThresholdControl | - 8007334: 6a7b ldr r3, [r7, #36] ; 0x24 + 8007338: 6a7b ldr r3, [r7, #36] ; 0x24 dmainit.ForwardUndersizedGoodFrames | - 8007336: 431a orrs r2, r3 + 800733a: 431a orrs r2, r3 dmainit.SecondFrameOperate); - 8007338: 6abb ldr r3, [r7, #40] ; 0x28 + 800733c: 6abb ldr r3, [r7, #40] ; 0x28 dmainit.ReceiveThresholdControl | - 800733a: 4313 orrs r3, r2 + 800733e: 4313 orrs r3, r2 tmpreg |= (uint32_t)(dmainit.DropTCPIPChecksumErrorFrame | - 800733c: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 8007340: 4313 orrs r3, r2 - 8007342: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 8007340: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 8007344: 4313 orrs r3, r2 + 8007346: f8c7 30bc str.w r3, [r7, #188] ; 0xbc /* Write to ETHERNET DMAOMR */ (heth->Instance)->DMAOMR = (uint32_t)tmpreg; - 8007346: 687b ldr r3, [r7, #4] - 8007348: 681a ldr r2, [r3, #0] - 800734a: f241 0318 movw r3, #4120 ; 0x1018 - 800734e: 4413 add r3, r2 - 8007350: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 8007354: 601a str r2, [r3, #0] + 800734a: 687b ldr r3, [r7, #4] + 800734c: 681a ldr r2, [r3, #0] + 800734e: f241 0318 movw r3, #4120 ; 0x1018 + 8007352: 4413 add r3, r2 + 8007354: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 8007358: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->DMAOMR; - 8007356: 687b ldr r3, [r7, #4] - 8007358: 681a ldr r2, [r3, #0] - 800735a: f241 0318 movw r3, #4120 ; 0x1018 - 800735e: 4413 add r3, r2 - 8007360: 681b ldr r3, [r3, #0] - 8007362: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 800735a: 687b ldr r3, [r7, #4] + 800735c: 681a ldr r2, [r3, #0] + 800735e: f241 0318 movw r3, #4120 ; 0x1018 + 8007362: 4413 add r3, r2 + 8007364: 681b ldr r3, [r3, #0] + 8007366: f8c7 30bc str.w r3, [r7, #188] ; 0xbc HAL_Delay(ETH_REG_WRITE_DELAY); - 8007366: 2001 movs r0, #1 - 8007368: f7fd fdb6 bl 8004ed8 + 800736a: 2001 movs r0, #1 + 800736c: f7fd fdb6 bl 8004edc (heth->Instance)->DMAOMR = tmpreg; - 800736c: 687b ldr r3, [r7, #4] - 800736e: 681a ldr r2, [r3, #0] - 8007370: f241 0318 movw r3, #4120 ; 0x1018 - 8007374: 4413 add r3, r2 - 8007376: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 800737a: 601a str r2, [r3, #0] + 8007370: 687b ldr r3, [r7, #4] + 8007372: 681a ldr r2, [r3, #0] + 8007374: f241 0318 movw r3, #4120 ; 0x1018 + 8007378: 4413 add r3, r2 + 800737a: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 800737e: 601a str r2, [r3, #0] /* Set the RPBL and 4*PBL bits according to ETH RxDMABurstLength value */ /* Set the PBL and 4*PBL bits according to ETH TxDMABurstLength value */ /* Set the Enhanced DMA descriptors bit according to ETH EnhancedDescriptorFormat value*/ /* Set the DSL bit according to ETH DesciptorSkipLength value */ /* Set the PR and DA bits according to ETH DMAArbitration value */ (heth->Instance)->DMABMR = (uint32_t)(dmainit.AddressAlignedBeats | - 800737c: 6afa ldr r2, [r7, #44] ; 0x2c + 8007380: 6afa ldr r2, [r7, #44] ; 0x2c dmainit.FixedBurst | - 800737e: 6b3b ldr r3, [r7, #48] ; 0x30 + 8007382: 6b3b ldr r3, [r7, #48] ; 0x30 (heth->Instance)->DMABMR = (uint32_t)(dmainit.AddressAlignedBeats | - 8007380: 431a orrs r2, r3 + 8007384: 431a orrs r2, r3 dmainit.RxDMABurstLength | /* !! if 4xPBL is selected for Tx or Rx it is applied for the other */ - 8007382: 6b7b ldr r3, [r7, #52] ; 0x34 + 8007386: 6b7b ldr r3, [r7, #52] ; 0x34 dmainit.FixedBurst | - 8007384: 431a orrs r2, r3 + 8007388: 431a orrs r2, r3 dmainit.TxDMABurstLength | - 8007386: 6bbb ldr r3, [r7, #56] ; 0x38 + 800738a: 6bbb ldr r3, [r7, #56] ; 0x38 dmainit.RxDMABurstLength | /* !! if 4xPBL is selected for Tx or Rx it is applied for the other */ - 8007388: 431a orrs r2, r3 + 800738c: 431a orrs r2, r3 dmainit.EnhancedDescriptorFormat | - 800738a: 6bfb ldr r3, [r7, #60] ; 0x3c + 800738e: 6bfb ldr r3, [r7, #60] ; 0x3c dmainit.TxDMABurstLength | - 800738c: 431a orrs r2, r3 + 8007390: 431a orrs r2, r3 (dmainit.DescriptorSkipLength << 2) | - 800738e: 6c3b ldr r3, [r7, #64] ; 0x40 - 8007390: 009b lsls r3, r3, #2 + 8007392: 6c3b ldr r3, [r7, #64] ; 0x40 + 8007394: 009b lsls r3, r3, #2 dmainit.EnhancedDescriptorFormat | - 8007392: 431a orrs r2, r3 + 8007396: 431a orrs r2, r3 dmainit.DMAArbitration | - 8007394: 6c7b ldr r3, [r7, #68] ; 0x44 + 8007398: 6c7b ldr r3, [r7, #68] ; 0x44 (dmainit.DescriptorSkipLength << 2) | - 8007396: 431a orrs r2, r3 + 800739a: 431a orrs r2, r3 (heth->Instance)->DMABMR = (uint32_t)(dmainit.AddressAlignedBeats | - 8007398: 687b ldr r3, [r7, #4] - 800739a: 681b ldr r3, [r3, #0] - 800739c: f442 0200 orr.w r2, r2, #8388608 ; 0x800000 - 80073a0: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80073a4: 601a str r2, [r3, #0] + 800739c: 687b ldr r3, [r7, #4] + 800739e: 681b ldr r3, [r3, #0] + 80073a0: f442 0200 orr.w r2, r2, #8388608 ; 0x800000 + 80073a4: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80073a8: 601a str r2, [r3, #0] ETH_DMABMR_USP); /* Enable use of separate PBL for Rx and Tx */ /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->DMABMR; - 80073a6: 687b ldr r3, [r7, #4] - 80073a8: 681b ldr r3, [r3, #0] - 80073aa: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80073ae: 681b ldr r3, [r3, #0] - 80073b0: f8c7 30bc str.w r3, [r7, #188] ; 0xbc + 80073aa: 687b ldr r3, [r7, #4] + 80073ac: 681b ldr r3, [r3, #0] + 80073ae: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80073b2: 681b ldr r3, [r3, #0] + 80073b4: f8c7 30bc str.w r3, [r7, #188] ; 0xbc HAL_Delay(ETH_REG_WRITE_DELAY); - 80073b4: 2001 movs r0, #1 - 80073b6: f7fd fd8f bl 8004ed8 + 80073b8: 2001 movs r0, #1 + 80073ba: f7fd fd8f bl 8004edc (heth->Instance)->DMABMR = tmpreg; - 80073ba: 687b ldr r3, [r7, #4] - 80073bc: 681b ldr r3, [r3, #0] - 80073be: f503 5380 add.w r3, r3, #4096 ; 0x1000 - 80073c2: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc - 80073c6: 601a str r2, [r3, #0] + 80073be: 687b ldr r3, [r7, #4] + 80073c0: 681b ldr r3, [r3, #0] + 80073c2: f503 5380 add.w r3, r3, #4096 ; 0x1000 + 80073c6: f8d7 20bc ldr.w r2, [r7, #188] ; 0xbc + 80073ca: 601a str r2, [r3, #0] if((heth->Init).RxMode == ETH_RXINTERRUPT_MODE) - 80073c8: 687b ldr r3, [r7, #4] - 80073ca: 699b ldr r3, [r3, #24] - 80073cc: 2b01 cmp r3, #1 - 80073ce: d10d bne.n 80073ec + 80073cc: 687b ldr r3, [r7, #4] + 80073ce: 699b ldr r3, [r3, #24] + 80073d0: 2b01 cmp r3, #1 + 80073d2: d10d bne.n 80073f0 { /* Enable the Ethernet Rx Interrupt */ __HAL_ETH_DMA_ENABLE_IT((heth), ETH_DMA_IT_NIS | ETH_DMA_IT_R); - 80073d0: 687b ldr r3, [r7, #4] - 80073d2: 681a ldr r2, [r3, #0] - 80073d4: f241 031c movw r3, #4124 ; 0x101c - 80073d8: 4413 add r3, r2 - 80073da: 681b ldr r3, [r3, #0] - 80073dc: 687a ldr r2, [r7, #4] - 80073de: 6811 ldr r1, [r2, #0] - 80073e0: 4a0a ldr r2, [pc, #40] ; (800740c ) - 80073e2: 431a orrs r2, r3 - 80073e4: f241 031c movw r3, #4124 ; 0x101c - 80073e8: 440b add r3, r1 - 80073ea: 601a str r2, [r3, #0] + 80073d4: 687b ldr r3, [r7, #4] + 80073d6: 681a ldr r2, [r3, #0] + 80073d8: f241 031c movw r3, #4124 ; 0x101c + 80073dc: 4413 add r3, r2 + 80073de: 681b ldr r3, [r3, #0] + 80073e0: 687a ldr r2, [r7, #4] + 80073e2: 6811 ldr r1, [r2, #0] + 80073e4: 4a0a ldr r2, [pc, #40] ; (8007410 ) + 80073e6: 431a orrs r2, r3 + 80073e8: f241 031c movw r3, #4124 ; 0x101c + 80073ec: 440b add r3, r1 + 80073ee: 601a str r2, [r3, #0] } /* Initialize MAC address in ethernet MAC */ ETH_MACAddressConfig(heth, ETH_MAC_ADDRESS0, heth->Init.MACAddr); - 80073ec: 687b ldr r3, [r7, #4] - 80073ee: 695b ldr r3, [r3, #20] - 80073f0: 461a mov r2, r3 - 80073f2: 2100 movs r1, #0 - 80073f4: 6878 ldr r0, [r7, #4] - 80073f6: f000 f80b bl 8007410 -} - 80073fa: bf00 nop - 80073fc: 37c0 adds r7, #192 ; 0xc0 - 80073fe: 46bd mov sp, r7 - 8007400: bd80 pop {r7, pc} - 8007402: bf00 nop - 8007404: ff20810f .word 0xff20810f - 8007408: f8de3f23 .word 0xf8de3f23 - 800740c: 00010040 .word 0x00010040 - -08007410 : + 80073f0: 687b ldr r3, [r7, #4] + 80073f2: 695b ldr r3, [r3, #20] + 80073f4: 461a mov r2, r3 + 80073f6: 2100 movs r1, #0 + 80073f8: 6878 ldr r0, [r7, #4] + 80073fa: f000 f80b bl 8007414 +} + 80073fe: bf00 nop + 8007400: 37c0 adds r7, #192 ; 0xc0 + 8007402: 46bd mov sp, r7 + 8007404: bd80 pop {r7, pc} + 8007406: bf00 nop + 8007408: ff20810f .word 0xff20810f + 800740c: f8de3f23 .word 0xf8de3f23 + 8007410: 00010040 .word 0x00010040 + +08007414 : * @arg ETH_MAC_Address3: MAC Address3 * @param Addr Pointer to MAC address buffer data (6 bytes) * @retval HAL status */ static void ETH_MACAddressConfig(ETH_HandleTypeDef *heth, uint32_t MacAddr, uint8_t *Addr) { - 8007410: b480 push {r7} - 8007412: b087 sub sp, #28 - 8007414: af00 add r7, sp, #0 - 8007416: 60f8 str r0, [r7, #12] - 8007418: 60b9 str r1, [r7, #8] - 800741a: 607a str r2, [r7, #4] + 8007414: b480 push {r7} + 8007416: b087 sub sp, #28 + 8007418: af00 add r7, sp, #0 + 800741a: 60f8 str r0, [r7, #12] + 800741c: 60b9 str r1, [r7, #8] + 800741e: 607a str r2, [r7, #4] /* Check the parameters */ assert_param(IS_ETH_MAC_ADDRESS0123(MacAddr)); /* Calculate the selected MAC address high register */ tmpreg = ((uint32_t)Addr[5] << 8) | (uint32_t)Addr[4]; - 800741c: 687b ldr r3, [r7, #4] - 800741e: 3305 adds r3, #5 - 8007420: 781b ldrb r3, [r3, #0] - 8007422: 021b lsls r3, r3, #8 - 8007424: 687a ldr r2, [r7, #4] - 8007426: 3204 adds r2, #4 - 8007428: 7812 ldrb r2, [r2, #0] - 800742a: 4313 orrs r3, r2 - 800742c: 617b str r3, [r7, #20] + 8007420: 687b ldr r3, [r7, #4] + 8007422: 3305 adds r3, #5 + 8007424: 781b ldrb r3, [r3, #0] + 8007426: 021b lsls r3, r3, #8 + 8007428: 687a ldr r2, [r7, #4] + 800742a: 3204 adds r2, #4 + 800742c: 7812 ldrb r2, [r2, #0] + 800742e: 4313 orrs r3, r2 + 8007430: 617b str r3, [r7, #20] /* Load the selected MAC address high register */ (*(__IO uint32_t *)((uint32_t)(ETH_MAC_ADDR_HBASE + MacAddr))) = tmpreg; - 800742e: 68ba ldr r2, [r7, #8] - 8007430: 4b11 ldr r3, [pc, #68] ; (8007478 ) - 8007432: 4413 add r3, r2 - 8007434: 461a mov r2, r3 - 8007436: 697b ldr r3, [r7, #20] - 8007438: 6013 str r3, [r2, #0] + 8007432: 68ba ldr r2, [r7, #8] + 8007434: 4b11 ldr r3, [pc, #68] ; (800747c ) + 8007436: 4413 add r3, r2 + 8007438: 461a mov r2, r3 + 800743a: 697b ldr r3, [r7, #20] + 800743c: 6013 str r3, [r2, #0] /* Calculate the selected MAC address low register */ tmpreg = ((uint32_t)Addr[3] << 24) | ((uint32_t)Addr[2] << 16) | ((uint32_t)Addr[1] << 8) | Addr[0]; - 800743a: 687b ldr r3, [r7, #4] - 800743c: 3303 adds r3, #3 - 800743e: 781b ldrb r3, [r3, #0] - 8007440: 061a lsls r2, r3, #24 - 8007442: 687b ldr r3, [r7, #4] - 8007444: 3302 adds r3, #2 - 8007446: 781b ldrb r3, [r3, #0] - 8007448: 041b lsls r3, r3, #16 - 800744a: 431a orrs r2, r3 - 800744c: 687b ldr r3, [r7, #4] - 800744e: 3301 adds r3, #1 - 8007450: 781b ldrb r3, [r3, #0] - 8007452: 021b lsls r3, r3, #8 - 8007454: 4313 orrs r3, r2 - 8007456: 687a ldr r2, [r7, #4] - 8007458: 7812 ldrb r2, [r2, #0] - 800745a: 4313 orrs r3, r2 - 800745c: 617b str r3, [r7, #20] + 800743e: 687b ldr r3, [r7, #4] + 8007440: 3303 adds r3, #3 + 8007442: 781b ldrb r3, [r3, #0] + 8007444: 061a lsls r2, r3, #24 + 8007446: 687b ldr r3, [r7, #4] + 8007448: 3302 adds r3, #2 + 800744a: 781b ldrb r3, [r3, #0] + 800744c: 041b lsls r3, r3, #16 + 800744e: 431a orrs r2, r3 + 8007450: 687b ldr r3, [r7, #4] + 8007452: 3301 adds r3, #1 + 8007454: 781b ldrb r3, [r3, #0] + 8007456: 021b lsls r3, r3, #8 + 8007458: 4313 orrs r3, r2 + 800745a: 687a ldr r2, [r7, #4] + 800745c: 7812 ldrb r2, [r2, #0] + 800745e: 4313 orrs r3, r2 + 8007460: 617b str r3, [r7, #20] /* Load the selected MAC address low register */ (*(__IO uint32_t *)((uint32_t)(ETH_MAC_ADDR_LBASE + MacAddr))) = tmpreg; - 800745e: 68ba ldr r2, [r7, #8] - 8007460: 4b06 ldr r3, [pc, #24] ; (800747c ) - 8007462: 4413 add r3, r2 - 8007464: 461a mov r2, r3 - 8007466: 697b ldr r3, [r7, #20] - 8007468: 6013 str r3, [r2, #0] -} - 800746a: bf00 nop - 800746c: 371c adds r7, #28 - 800746e: 46bd mov sp, r7 - 8007470: f85d 7b04 ldr.w r7, [sp], #4 - 8007474: 4770 bx lr - 8007476: bf00 nop - 8007478: 40028040 .word 0x40028040 - 800747c: 40028044 .word 0x40028044 - -08007480 : + 8007462: 68ba ldr r2, [r7, #8] + 8007464: 4b06 ldr r3, [pc, #24] ; (8007480 ) + 8007466: 4413 add r3, r2 + 8007468: 461a mov r2, r3 + 800746a: 697b ldr r3, [r7, #20] + 800746c: 6013 str r3, [r2, #0] +} + 800746e: bf00 nop + 8007470: 371c adds r7, #28 + 8007472: 46bd mov sp, r7 + 8007474: f85d 7b04 ldr.w r7, [sp], #4 + 8007478: 4770 bx lr + 800747a: bf00 nop + 800747c: 40028040 .word 0x40028040 + 8007480: 40028044 .word 0x40028044 + +08007484 : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_MACTransmissionEnable(ETH_HandleTypeDef *heth) { - 8007480: b580 push {r7, lr} - 8007482: b084 sub sp, #16 - 8007484: af00 add r7, sp, #0 - 8007486: 6078 str r0, [r7, #4] + 8007484: b580 push {r7, lr} + 8007486: b084 sub sp, #16 + 8007488: af00 add r7, sp, #0 + 800748a: 6078 str r0, [r7, #4] __IO uint32_t tmpreg = 0; - 8007488: 2300 movs r3, #0 - 800748a: 60fb str r3, [r7, #12] + 800748c: 2300 movs r3, #0 + 800748e: 60fb str r3, [r7, #12] /* Enable the MAC transmission */ (heth->Instance)->MACCR |= ETH_MACCR_TE; - 800748c: 687b ldr r3, [r7, #4] - 800748e: 681b ldr r3, [r3, #0] - 8007490: 681a ldr r2, [r3, #0] - 8007492: 687b ldr r3, [r7, #4] - 8007494: 681b ldr r3, [r3, #0] - 8007496: f042 0208 orr.w r2, r2, #8 - 800749a: 601a str r2, [r3, #0] + 8007490: 687b ldr r3, [r7, #4] + 8007492: 681b ldr r3, [r3, #0] + 8007494: 681a ldr r2, [r3, #0] + 8007496: 687b ldr r3, [r7, #4] + 8007498: 681b ldr r3, [r3, #0] + 800749a: f042 0208 orr.w r2, r2, #8 + 800749e: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACCR; - 800749c: 687b ldr r3, [r7, #4] - 800749e: 681b ldr r3, [r3, #0] - 80074a0: 681b ldr r3, [r3, #0] - 80074a2: 60fb str r3, [r7, #12] + 80074a0: 687b ldr r3, [r7, #4] + 80074a2: 681b ldr r3, [r3, #0] + 80074a4: 681b ldr r3, [r3, #0] + 80074a6: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 80074a4: 2001 movs r0, #1 - 80074a6: f7fd fd17 bl 8004ed8 + 80074a8: 2001 movs r0, #1 + 80074aa: f7fd fd17 bl 8004edc (heth->Instance)->MACCR = tmpreg; - 80074aa: 687b ldr r3, [r7, #4] - 80074ac: 681b ldr r3, [r3, #0] - 80074ae: 68fa ldr r2, [r7, #12] - 80074b0: 601a str r2, [r3, #0] + 80074ae: 687b ldr r3, [r7, #4] + 80074b0: 681b ldr r3, [r3, #0] + 80074b2: 68fa ldr r2, [r7, #12] + 80074b4: 601a str r2, [r3, #0] } - 80074b2: bf00 nop - 80074b4: 3710 adds r7, #16 - 80074b6: 46bd mov sp, r7 - 80074b8: bd80 pop {r7, pc} + 80074b6: bf00 nop + 80074b8: 3710 adds r7, #16 + 80074ba: 46bd mov sp, r7 + 80074bc: bd80 pop {r7, pc} -080074ba : +080074be : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_MACTransmissionDisable(ETH_HandleTypeDef *heth) { - 80074ba: b580 push {r7, lr} - 80074bc: b084 sub sp, #16 - 80074be: af00 add r7, sp, #0 - 80074c0: 6078 str r0, [r7, #4] + 80074be: b580 push {r7, lr} + 80074c0: b084 sub sp, #16 + 80074c2: af00 add r7, sp, #0 + 80074c4: 6078 str r0, [r7, #4] __IO uint32_t tmpreg = 0; - 80074c2: 2300 movs r3, #0 - 80074c4: 60fb str r3, [r7, #12] + 80074c6: 2300 movs r3, #0 + 80074c8: 60fb str r3, [r7, #12] /* Disable the MAC transmission */ (heth->Instance)->MACCR &= ~ETH_MACCR_TE; - 80074c6: 687b ldr r3, [r7, #4] - 80074c8: 681b ldr r3, [r3, #0] - 80074ca: 681a ldr r2, [r3, #0] - 80074cc: 687b ldr r3, [r7, #4] - 80074ce: 681b ldr r3, [r3, #0] - 80074d0: f022 0208 bic.w r2, r2, #8 - 80074d4: 601a str r2, [r3, #0] + 80074ca: 687b ldr r3, [r7, #4] + 80074cc: 681b ldr r3, [r3, #0] + 80074ce: 681a ldr r2, [r3, #0] + 80074d0: 687b ldr r3, [r7, #4] + 80074d2: 681b ldr r3, [r3, #0] + 80074d4: f022 0208 bic.w r2, r2, #8 + 80074d8: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACCR; - 80074d6: 687b ldr r3, [r7, #4] - 80074d8: 681b ldr r3, [r3, #0] - 80074da: 681b ldr r3, [r3, #0] - 80074dc: 60fb str r3, [r7, #12] + 80074da: 687b ldr r3, [r7, #4] + 80074dc: 681b ldr r3, [r3, #0] + 80074de: 681b ldr r3, [r3, #0] + 80074e0: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 80074de: 2001 movs r0, #1 - 80074e0: f7fd fcfa bl 8004ed8 + 80074e2: 2001 movs r0, #1 + 80074e4: f7fd fcfa bl 8004edc (heth->Instance)->MACCR = tmpreg; - 80074e4: 687b ldr r3, [r7, #4] - 80074e6: 681b ldr r3, [r3, #0] - 80074e8: 68fa ldr r2, [r7, #12] - 80074ea: 601a str r2, [r3, #0] + 80074e8: 687b ldr r3, [r7, #4] + 80074ea: 681b ldr r3, [r3, #0] + 80074ec: 68fa ldr r2, [r7, #12] + 80074ee: 601a str r2, [r3, #0] } - 80074ec: bf00 nop - 80074ee: 3710 adds r7, #16 - 80074f0: 46bd mov sp, r7 - 80074f2: bd80 pop {r7, pc} + 80074f0: bf00 nop + 80074f2: 3710 adds r7, #16 + 80074f4: 46bd mov sp, r7 + 80074f6: bd80 pop {r7, pc} -080074f4 : +080074f8 : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_MACReceptionEnable(ETH_HandleTypeDef *heth) { - 80074f4: b580 push {r7, lr} - 80074f6: b084 sub sp, #16 - 80074f8: af00 add r7, sp, #0 - 80074fa: 6078 str r0, [r7, #4] + 80074f8: b580 push {r7, lr} + 80074fa: b084 sub sp, #16 + 80074fc: af00 add r7, sp, #0 + 80074fe: 6078 str r0, [r7, #4] __IO uint32_t tmpreg = 0; - 80074fc: 2300 movs r3, #0 - 80074fe: 60fb str r3, [r7, #12] + 8007500: 2300 movs r3, #0 + 8007502: 60fb str r3, [r7, #12] /* Enable the MAC reception */ (heth->Instance)->MACCR |= ETH_MACCR_RE; - 8007500: 687b ldr r3, [r7, #4] - 8007502: 681b ldr r3, [r3, #0] - 8007504: 681a ldr r2, [r3, #0] - 8007506: 687b ldr r3, [r7, #4] - 8007508: 681b ldr r3, [r3, #0] - 800750a: f042 0204 orr.w r2, r2, #4 - 800750e: 601a str r2, [r3, #0] + 8007504: 687b ldr r3, [r7, #4] + 8007506: 681b ldr r3, [r3, #0] + 8007508: 681a ldr r2, [r3, #0] + 800750a: 687b ldr r3, [r7, #4] + 800750c: 681b ldr r3, [r3, #0] + 800750e: f042 0204 orr.w r2, r2, #4 + 8007512: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACCR; - 8007510: 687b ldr r3, [r7, #4] - 8007512: 681b ldr r3, [r3, #0] - 8007514: 681b ldr r3, [r3, #0] - 8007516: 60fb str r3, [r7, #12] + 8007514: 687b ldr r3, [r7, #4] + 8007516: 681b ldr r3, [r3, #0] + 8007518: 681b ldr r3, [r3, #0] + 800751a: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8007518: 2001 movs r0, #1 - 800751a: f7fd fcdd bl 8004ed8 + 800751c: 2001 movs r0, #1 + 800751e: f7fd fcdd bl 8004edc (heth->Instance)->MACCR = tmpreg; - 800751e: 687b ldr r3, [r7, #4] - 8007520: 681b ldr r3, [r3, #0] - 8007522: 68fa ldr r2, [r7, #12] - 8007524: 601a str r2, [r3, #0] + 8007522: 687b ldr r3, [r7, #4] + 8007524: 681b ldr r3, [r3, #0] + 8007526: 68fa ldr r2, [r7, #12] + 8007528: 601a str r2, [r3, #0] } - 8007526: bf00 nop - 8007528: 3710 adds r7, #16 - 800752a: 46bd mov sp, r7 - 800752c: bd80 pop {r7, pc} + 800752a: bf00 nop + 800752c: 3710 adds r7, #16 + 800752e: 46bd mov sp, r7 + 8007530: bd80 pop {r7, pc} -0800752e : +08007532 : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_MACReceptionDisable(ETH_HandleTypeDef *heth) { - 800752e: b580 push {r7, lr} - 8007530: b084 sub sp, #16 - 8007532: af00 add r7, sp, #0 - 8007534: 6078 str r0, [r7, #4] + 8007532: b580 push {r7, lr} + 8007534: b084 sub sp, #16 + 8007536: af00 add r7, sp, #0 + 8007538: 6078 str r0, [r7, #4] __IO uint32_t tmpreg = 0; - 8007536: 2300 movs r3, #0 - 8007538: 60fb str r3, [r7, #12] + 800753a: 2300 movs r3, #0 + 800753c: 60fb str r3, [r7, #12] /* Disable the MAC reception */ (heth->Instance)->MACCR &= ~ETH_MACCR_RE; - 800753a: 687b ldr r3, [r7, #4] - 800753c: 681b ldr r3, [r3, #0] - 800753e: 681a ldr r2, [r3, #0] - 8007540: 687b ldr r3, [r7, #4] - 8007542: 681b ldr r3, [r3, #0] - 8007544: f022 0204 bic.w r2, r2, #4 - 8007548: 601a str r2, [r3, #0] + 800753e: 687b ldr r3, [r7, #4] + 8007540: 681b ldr r3, [r3, #0] + 8007542: 681a ldr r2, [r3, #0] + 8007544: 687b ldr r3, [r7, #4] + 8007546: 681b ldr r3, [r3, #0] + 8007548: f022 0204 bic.w r2, r2, #4 + 800754c: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->MACCR; - 800754a: 687b ldr r3, [r7, #4] - 800754c: 681b ldr r3, [r3, #0] - 800754e: 681b ldr r3, [r3, #0] - 8007550: 60fb str r3, [r7, #12] + 800754e: 687b ldr r3, [r7, #4] + 8007550: 681b ldr r3, [r3, #0] + 8007552: 681b ldr r3, [r3, #0] + 8007554: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 8007552: 2001 movs r0, #1 - 8007554: f7fd fcc0 bl 8004ed8 + 8007556: 2001 movs r0, #1 + 8007558: f7fd fcc0 bl 8004edc (heth->Instance)->MACCR = tmpreg; - 8007558: 687b ldr r3, [r7, #4] - 800755a: 681b ldr r3, [r3, #0] - 800755c: 68fa ldr r2, [r7, #12] - 800755e: 601a str r2, [r3, #0] + 800755c: 687b ldr r3, [r7, #4] + 800755e: 681b ldr r3, [r3, #0] + 8007560: 68fa ldr r2, [r7, #12] + 8007562: 601a str r2, [r3, #0] } - 8007560: bf00 nop - 8007562: 3710 adds r7, #16 - 8007564: 46bd mov sp, r7 - 8007566: bd80 pop {r7, pc} + 8007564: bf00 nop + 8007566: 3710 adds r7, #16 + 8007568: 46bd mov sp, r7 + 800756a: bd80 pop {r7, pc} -08007568 : +0800756c : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_DMATransmissionEnable(ETH_HandleTypeDef *heth) { - 8007568: b480 push {r7} - 800756a: b083 sub sp, #12 - 800756c: af00 add r7, sp, #0 - 800756e: 6078 str r0, [r7, #4] + 800756c: b480 push {r7} + 800756e: b083 sub sp, #12 + 8007570: af00 add r7, sp, #0 + 8007572: 6078 str r0, [r7, #4] /* Enable the DMA transmission */ (heth->Instance)->DMAOMR |= ETH_DMAOMR_ST; - 8007570: 687b ldr r3, [r7, #4] - 8007572: 681a ldr r2, [r3, #0] - 8007574: f241 0318 movw r3, #4120 ; 0x1018 - 8007578: 4413 add r3, r2 - 800757a: 681b ldr r3, [r3, #0] - 800757c: 687a ldr r2, [r7, #4] - 800757e: 6811 ldr r1, [r2, #0] - 8007580: f443 5200 orr.w r2, r3, #8192 ; 0x2000 - 8007584: f241 0318 movw r3, #4120 ; 0x1018 - 8007588: 440b add r3, r1 - 800758a: 601a str r2, [r3, #0] -} - 800758c: bf00 nop - 800758e: 370c adds r7, #12 - 8007590: 46bd mov sp, r7 - 8007592: f85d 7b04 ldr.w r7, [sp], #4 - 8007596: 4770 bx lr - -08007598 : + 8007574: 687b ldr r3, [r7, #4] + 8007576: 681a ldr r2, [r3, #0] + 8007578: f241 0318 movw r3, #4120 ; 0x1018 + 800757c: 4413 add r3, r2 + 800757e: 681b ldr r3, [r3, #0] + 8007580: 687a ldr r2, [r7, #4] + 8007582: 6811 ldr r1, [r2, #0] + 8007584: f443 5200 orr.w r2, r3, #8192 ; 0x2000 + 8007588: f241 0318 movw r3, #4120 ; 0x1018 + 800758c: 440b add r3, r1 + 800758e: 601a str r2, [r3, #0] +} + 8007590: bf00 nop + 8007592: 370c adds r7, #12 + 8007594: 46bd mov sp, r7 + 8007596: f85d 7b04 ldr.w r7, [sp], #4 + 800759a: 4770 bx lr + +0800759c : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_DMATransmissionDisable(ETH_HandleTypeDef *heth) { - 8007598: b480 push {r7} - 800759a: b083 sub sp, #12 - 800759c: af00 add r7, sp, #0 - 800759e: 6078 str r0, [r7, #4] + 800759c: b480 push {r7} + 800759e: b083 sub sp, #12 + 80075a0: af00 add r7, sp, #0 + 80075a2: 6078 str r0, [r7, #4] /* Disable the DMA transmission */ (heth->Instance)->DMAOMR &= ~ETH_DMAOMR_ST; - 80075a0: 687b ldr r3, [r7, #4] - 80075a2: 681a ldr r2, [r3, #0] - 80075a4: f241 0318 movw r3, #4120 ; 0x1018 - 80075a8: 4413 add r3, r2 - 80075aa: 681b ldr r3, [r3, #0] - 80075ac: 687a ldr r2, [r7, #4] - 80075ae: 6811 ldr r1, [r2, #0] - 80075b0: f423 5200 bic.w r2, r3, #8192 ; 0x2000 - 80075b4: f241 0318 movw r3, #4120 ; 0x1018 - 80075b8: 440b add r3, r1 - 80075ba: 601a str r2, [r3, #0] -} - 80075bc: bf00 nop - 80075be: 370c adds r7, #12 - 80075c0: 46bd mov sp, r7 - 80075c2: f85d 7b04 ldr.w r7, [sp], #4 - 80075c6: 4770 bx lr - -080075c8 : + 80075a4: 687b ldr r3, [r7, #4] + 80075a6: 681a ldr r2, [r3, #0] + 80075a8: f241 0318 movw r3, #4120 ; 0x1018 + 80075ac: 4413 add r3, r2 + 80075ae: 681b ldr r3, [r3, #0] + 80075b0: 687a ldr r2, [r7, #4] + 80075b2: 6811 ldr r1, [r2, #0] + 80075b4: f423 5200 bic.w r2, r3, #8192 ; 0x2000 + 80075b8: f241 0318 movw r3, #4120 ; 0x1018 + 80075bc: 440b add r3, r1 + 80075be: 601a str r2, [r3, #0] +} + 80075c0: bf00 nop + 80075c2: 370c adds r7, #12 + 80075c4: 46bd mov sp, r7 + 80075c6: f85d 7b04 ldr.w r7, [sp], #4 + 80075ca: 4770 bx lr + +080075cc : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_DMAReceptionEnable(ETH_HandleTypeDef *heth) { - 80075c8: b480 push {r7} - 80075ca: b083 sub sp, #12 - 80075cc: af00 add r7, sp, #0 - 80075ce: 6078 str r0, [r7, #4] + 80075cc: b480 push {r7} + 80075ce: b083 sub sp, #12 + 80075d0: af00 add r7, sp, #0 + 80075d2: 6078 str r0, [r7, #4] /* Enable the DMA reception */ (heth->Instance)->DMAOMR |= ETH_DMAOMR_SR; - 80075d0: 687b ldr r3, [r7, #4] - 80075d2: 681a ldr r2, [r3, #0] - 80075d4: f241 0318 movw r3, #4120 ; 0x1018 - 80075d8: 4413 add r3, r2 - 80075da: 681b ldr r3, [r3, #0] - 80075dc: 687a ldr r2, [r7, #4] - 80075de: 6811 ldr r1, [r2, #0] - 80075e0: f043 0202 orr.w r2, r3, #2 - 80075e4: f241 0318 movw r3, #4120 ; 0x1018 - 80075e8: 440b add r3, r1 - 80075ea: 601a str r2, [r3, #0] -} - 80075ec: bf00 nop - 80075ee: 370c adds r7, #12 - 80075f0: 46bd mov sp, r7 - 80075f2: f85d 7b04 ldr.w r7, [sp], #4 - 80075f6: 4770 bx lr - -080075f8 : + 80075d4: 687b ldr r3, [r7, #4] + 80075d6: 681a ldr r2, [r3, #0] + 80075d8: f241 0318 movw r3, #4120 ; 0x1018 + 80075dc: 4413 add r3, r2 + 80075de: 681b ldr r3, [r3, #0] + 80075e0: 687a ldr r2, [r7, #4] + 80075e2: 6811 ldr r1, [r2, #0] + 80075e4: f043 0202 orr.w r2, r3, #2 + 80075e8: f241 0318 movw r3, #4120 ; 0x1018 + 80075ec: 440b add r3, r1 + 80075ee: 601a str r2, [r3, #0] +} + 80075f0: bf00 nop + 80075f2: 370c adds r7, #12 + 80075f4: 46bd mov sp, r7 + 80075f6: f85d 7b04 ldr.w r7, [sp], #4 + 80075fa: 4770 bx lr + +080075fc : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_DMAReceptionDisable(ETH_HandleTypeDef *heth) { - 80075f8: b480 push {r7} - 80075fa: b083 sub sp, #12 - 80075fc: af00 add r7, sp, #0 - 80075fe: 6078 str r0, [r7, #4] + 80075fc: b480 push {r7} + 80075fe: b083 sub sp, #12 + 8007600: af00 add r7, sp, #0 + 8007602: 6078 str r0, [r7, #4] /* Disable the DMA reception */ (heth->Instance)->DMAOMR &= ~ETH_DMAOMR_SR; - 8007600: 687b ldr r3, [r7, #4] - 8007602: 681a ldr r2, [r3, #0] - 8007604: f241 0318 movw r3, #4120 ; 0x1018 - 8007608: 4413 add r3, r2 - 800760a: 681b ldr r3, [r3, #0] - 800760c: 687a ldr r2, [r7, #4] - 800760e: 6811 ldr r1, [r2, #0] - 8007610: f023 0202 bic.w r2, r3, #2 - 8007614: f241 0318 movw r3, #4120 ; 0x1018 - 8007618: 440b add r3, r1 - 800761a: 601a str r2, [r3, #0] -} - 800761c: bf00 nop - 800761e: 370c adds r7, #12 - 8007620: 46bd mov sp, r7 - 8007622: f85d 7b04 ldr.w r7, [sp], #4 - 8007626: 4770 bx lr - -08007628 : + 8007604: 687b ldr r3, [r7, #4] + 8007606: 681a ldr r2, [r3, #0] + 8007608: f241 0318 movw r3, #4120 ; 0x1018 + 800760c: 4413 add r3, r2 + 800760e: 681b ldr r3, [r3, #0] + 8007610: 687a ldr r2, [r7, #4] + 8007612: 6811 ldr r1, [r2, #0] + 8007614: f023 0202 bic.w r2, r3, #2 + 8007618: f241 0318 movw r3, #4120 ; 0x1018 + 800761c: 440b add r3, r1 + 800761e: 601a str r2, [r3, #0] +} + 8007620: bf00 nop + 8007622: 370c adds r7, #12 + 8007624: 46bd mov sp, r7 + 8007626: f85d 7b04 ldr.w r7, [sp], #4 + 800762a: 4770 bx lr + +0800762c : * @param heth pointer to a ETH_HandleTypeDef structure that contains * the configuration information for ETHERNET module * @retval None */ static void ETH_FlushTransmitFIFO(ETH_HandleTypeDef *heth) { - 8007628: b580 push {r7, lr} - 800762a: b084 sub sp, #16 - 800762c: af00 add r7, sp, #0 - 800762e: 6078 str r0, [r7, #4] + 800762c: b580 push {r7, lr} + 800762e: b084 sub sp, #16 + 8007630: af00 add r7, sp, #0 + 8007632: 6078 str r0, [r7, #4] __IO uint32_t tmpreg = 0; - 8007630: 2300 movs r3, #0 - 8007632: 60fb str r3, [r7, #12] + 8007634: 2300 movs r3, #0 + 8007636: 60fb str r3, [r7, #12] /* Set the Flush Transmit FIFO bit */ (heth->Instance)->DMAOMR |= ETH_DMAOMR_FTF; - 8007634: 687b ldr r3, [r7, #4] - 8007636: 681a ldr r2, [r3, #0] - 8007638: f241 0318 movw r3, #4120 ; 0x1018 - 800763c: 4413 add r3, r2 - 800763e: 681b ldr r3, [r3, #0] - 8007640: 687a ldr r2, [r7, #4] - 8007642: 6811 ldr r1, [r2, #0] - 8007644: f443 1280 orr.w r2, r3, #1048576 ; 0x100000 - 8007648: f241 0318 movw r3, #4120 ; 0x1018 - 800764c: 440b add r3, r1 - 800764e: 601a str r2, [r3, #0] + 8007638: 687b ldr r3, [r7, #4] + 800763a: 681a ldr r2, [r3, #0] + 800763c: f241 0318 movw r3, #4120 ; 0x1018 + 8007640: 4413 add r3, r2 + 8007642: 681b ldr r3, [r3, #0] + 8007644: 687a ldr r2, [r7, #4] + 8007646: 6811 ldr r1, [r2, #0] + 8007648: f443 1280 orr.w r2, r3, #1048576 ; 0x100000 + 800764c: f241 0318 movw r3, #4120 ; 0x1018 + 8007650: 440b add r3, r1 + 8007652: 601a str r2, [r3, #0] /* Wait until the write operation will be taken into account: at least four TX_CLK/RX_CLK clock cycles */ tmpreg = (heth->Instance)->DMAOMR; - 8007650: 687b ldr r3, [r7, #4] - 8007652: 681a ldr r2, [r3, #0] - 8007654: f241 0318 movw r3, #4120 ; 0x1018 - 8007658: 4413 add r3, r2 - 800765a: 681b ldr r3, [r3, #0] - 800765c: 60fb str r3, [r7, #12] + 8007654: 687b ldr r3, [r7, #4] + 8007656: 681a ldr r2, [r3, #0] + 8007658: f241 0318 movw r3, #4120 ; 0x1018 + 800765c: 4413 add r3, r2 + 800765e: 681b ldr r3, [r3, #0] + 8007660: 60fb str r3, [r7, #12] HAL_Delay(ETH_REG_WRITE_DELAY); - 800765e: 2001 movs r0, #1 - 8007660: f7fd fc3a bl 8004ed8 + 8007662: 2001 movs r0, #1 + 8007664: f7fd fc3a bl 8004edc (heth->Instance)->DMAOMR = tmpreg; - 8007664: 687b ldr r3, [r7, #4] - 8007666: 6819 ldr r1, [r3, #0] - 8007668: 68fa ldr r2, [r7, #12] - 800766a: f241 0318 movw r3, #4120 ; 0x1018 - 800766e: 440b add r3, r1 - 8007670: 601a str r2, [r3, #0] -} - 8007672: bf00 nop - 8007674: 3710 adds r7, #16 - 8007676: 46bd mov sp, r7 - 8007678: bd80 pop {r7, pc} + 8007668: 687b ldr r3, [r7, #4] + 800766a: 6819 ldr r1, [r3, #0] + 800766c: 68fa ldr r2, [r7, #12] + 800766e: f241 0318 movw r3, #4120 ; 0x1018 + 8007672: 440b add r3, r1 + 8007674: 601a str r2, [r3, #0] +} + 8007676: bf00 nop + 8007678: 3710 adds r7, #16 + 800767a: 46bd mov sp, r7 + 800767c: bd80 pop {r7, pc} ... -0800767c : +08007680 : * @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) { - 800767c: b480 push {r7} - 800767e: b089 sub sp, #36 ; 0x24 - 8007680: af00 add r7, sp, #0 - 8007682: 6078 str r0, [r7, #4] - 8007684: 6039 str r1, [r7, #0] + 8007680: b480 push {r7} + 8007682: b089 sub sp, #36 ; 0x24 + 8007684: af00 add r7, sp, #0 + 8007686: 6078 str r0, [r7, #4] + 8007688: 6039 str r1, [r7, #0] uint32_t position = 0x00; - 8007686: 2300 movs r3, #0 - 8007688: 61fb str r3, [r7, #28] - uint32_t ioposition = 0x00; 800768a: 2300 movs r3, #0 - 800768c: 617b str r3, [r7, #20] - uint32_t iocurrent = 0x00; + 800768c: 61fb str r3, [r7, #28] + uint32_t ioposition = 0x00; 800768e: 2300 movs r3, #0 - 8007690: 613b str r3, [r7, #16] - uint32_t temp = 0x00; + 8007690: 617b str r3, [r7, #20] + uint32_t iocurrent = 0x00; 8007692: 2300 movs r3, #0 - 8007694: 61bb str r3, [r7, #24] + 8007694: 613b str r3, [r7, #16] + uint32_t temp = 0x00; + 8007696: 2300 movs r3, #0 + 8007698: 61bb str r3, [r7, #24] assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); /* Configure the port pins */ for(position = 0; position < GPIO_NUMBER; position++) - 8007696: 2300 movs r3, #0 - 8007698: 61fb str r3, [r7, #28] - 800769a: e175 b.n 8007988 + 800769a: 2300 movs r3, #0 + 800769c: 61fb str r3, [r7, #28] + 800769e: e175 b.n 800798c { /* Get the IO position */ ioposition = ((uint32_t)0x01) << position; - 800769c: 2201 movs r2, #1 - 800769e: 69fb ldr r3, [r7, #28] - 80076a0: fa02 f303 lsl.w r3, r2, r3 - 80076a4: 617b str r3, [r7, #20] + 80076a0: 2201 movs r2, #1 + 80076a2: 69fb ldr r3, [r7, #28] + 80076a4: fa02 f303 lsl.w r3, r2, r3 + 80076a8: 617b str r3, [r7, #20] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 80076a6: 683b ldr r3, [r7, #0] - 80076a8: 681b ldr r3, [r3, #0] - 80076aa: 697a ldr r2, [r7, #20] - 80076ac: 4013 ands r3, r2 - 80076ae: 613b str r3, [r7, #16] + 80076aa: 683b ldr r3, [r7, #0] + 80076ac: 681b ldr r3, [r3, #0] + 80076ae: 697a ldr r2, [r7, #20] + 80076b0: 4013 ands r3, r2 + 80076b2: 613b str r3, [r7, #16] if(iocurrent == ioposition) - 80076b0: 693a ldr r2, [r7, #16] - 80076b2: 697b ldr r3, [r7, #20] - 80076b4: 429a cmp r2, r3 - 80076b6: f040 8164 bne.w 8007982 + 80076b4: 693a ldr r2, [r7, #16] + 80076b6: 697b ldr r3, [r7, #20] + 80076b8: 429a cmp r2, r3 + 80076ba: f040 8164 bne.w 8007986 { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) || - 80076ba: 683b ldr r3, [r7, #0] - 80076bc: 685b ldr r3, [r3, #4] - 80076be: 2b01 cmp r3, #1 - 80076c0: d00b beq.n 80076da - 80076c2: 683b ldr r3, [r7, #0] - 80076c4: 685b ldr r3, [r3, #4] - 80076c6: 2b02 cmp r3, #2 - 80076c8: d007 beq.n 80076da + 80076be: 683b ldr r3, [r7, #0] + 80076c0: 685b ldr r3, [r3, #4] + 80076c2: 2b01 cmp r3, #1 + 80076c4: d00b beq.n 80076de + 80076c6: 683b ldr r3, [r7, #0] + 80076c8: 685b ldr r3, [r3, #4] + 80076ca: 2b02 cmp r3, #2 + 80076cc: d007 beq.n 80076de (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 80076ca: 683b ldr r3, [r7, #0] - 80076cc: 685b ldr r3, [r3, #4] + 80076ce: 683b ldr r3, [r7, #0] + 80076d0: 685b ldr r3, [r3, #4] if((GPIO_Init->Mode == GPIO_MODE_OUTPUT_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_PP) || - 80076ce: 2b11 cmp r3, #17 - 80076d0: d003 beq.n 80076da + 80076d2: 2b11 cmp r3, #17 + 80076d4: d003 beq.n 80076de (GPIO_Init->Mode == GPIO_MODE_OUTPUT_OD) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 80076d2: 683b ldr r3, [r7, #0] - 80076d4: 685b ldr r3, [r3, #4] - 80076d6: 2b12 cmp r3, #18 - 80076d8: d130 bne.n 800773c + 80076d6: 683b ldr r3, [r7, #0] + 80076d8: 685b ldr r3, [r3, #4] + 80076da: 2b12 cmp r3, #18 + 80076dc: d130 bne.n 8007740 { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; - 80076da: 687b ldr r3, [r7, #4] - 80076dc: 689b ldr r3, [r3, #8] - 80076de: 61bb str r3, [r7, #24] + 80076de: 687b ldr r3, [r7, #4] + 80076e0: 689b ldr r3, [r3, #8] + 80076e2: 61bb str r3, [r7, #24] temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2)); - 80076e0: 69fb ldr r3, [r7, #28] - 80076e2: 005b lsls r3, r3, #1 - 80076e4: 2203 movs r2, #3 - 80076e6: fa02 f303 lsl.w r3, r2, r3 - 80076ea: 43db mvns r3, r3 - 80076ec: 69ba ldr r2, [r7, #24] - 80076ee: 4013 ands r3, r2 - 80076f0: 61bb str r3, [r7, #24] + 80076e4: 69fb ldr r3, [r7, #28] + 80076e6: 005b lsls r3, r3, #1 + 80076e8: 2203 movs r2, #3 + 80076ea: fa02 f303 lsl.w r3, r2, r3 + 80076ee: 43db mvns r3, r3 + 80076f0: 69ba ldr r2, [r7, #24] + 80076f2: 4013 ands r3, r2 + 80076f4: 61bb str r3, [r7, #24] temp |= (GPIO_Init->Speed << (position * 2)); - 80076f2: 683b ldr r3, [r7, #0] - 80076f4: 68da ldr r2, [r3, #12] - 80076f6: 69fb ldr r3, [r7, #28] - 80076f8: 005b lsls r3, r3, #1 - 80076fa: fa02 f303 lsl.w r3, r2, r3 - 80076fe: 69ba ldr r2, [r7, #24] - 8007700: 4313 orrs r3, r2 - 8007702: 61bb str r3, [r7, #24] + 80076f6: 683b ldr r3, [r7, #0] + 80076f8: 68da ldr r2, [r3, #12] + 80076fa: 69fb ldr r3, [r7, #28] + 80076fc: 005b lsls r3, r3, #1 + 80076fe: fa02 f303 lsl.w r3, r2, r3 + 8007702: 69ba ldr r2, [r7, #24] + 8007704: 4313 orrs r3, r2 + 8007706: 61bb str r3, [r7, #24] GPIOx->OSPEEDR = temp; - 8007704: 687b ldr r3, [r7, #4] - 8007706: 69ba ldr r2, [r7, #24] - 8007708: 609a str r2, [r3, #8] + 8007708: 687b ldr r3, [r7, #4] + 800770a: 69ba ldr r2, [r7, #24] + 800770c: 609a str r2, [r3, #8] /* Configure the IO Output Type */ temp = GPIOx->OTYPER; - 800770a: 687b ldr r3, [r7, #4] - 800770c: 685b ldr r3, [r3, #4] - 800770e: 61bb str r3, [r7, #24] + 800770e: 687b ldr r3, [r7, #4] + 8007710: 685b ldr r3, [r3, #4] + 8007712: 61bb str r3, [r7, #24] temp &= ~(GPIO_OTYPER_OT_0 << position) ; - 8007710: 2201 movs r2, #1 - 8007712: 69fb ldr r3, [r7, #28] - 8007714: fa02 f303 lsl.w r3, r2, r3 - 8007718: 43db mvns r3, r3 - 800771a: 69ba ldr r2, [r7, #24] - 800771c: 4013 ands r3, r2 - 800771e: 61bb str r3, [r7, #24] + 8007714: 2201 movs r2, #1 + 8007716: 69fb ldr r3, [r7, #28] + 8007718: fa02 f303 lsl.w r3, r2, r3 + 800771c: 43db mvns r3, r3 + 800771e: 69ba ldr r2, [r7, #24] + 8007720: 4013 ands r3, r2 + 8007722: 61bb str r3, [r7, #24] temp |= (((GPIO_Init->Mode & GPIO_OUTPUT_TYPE) >> 4) << position); - 8007720: 683b ldr r3, [r7, #0] - 8007722: 685b ldr r3, [r3, #4] - 8007724: 091b lsrs r3, r3, #4 - 8007726: f003 0201 and.w r2, r3, #1 - 800772a: 69fb ldr r3, [r7, #28] - 800772c: fa02 f303 lsl.w r3, r2, r3 - 8007730: 69ba ldr r2, [r7, #24] - 8007732: 4313 orrs r3, r2 - 8007734: 61bb str r3, [r7, #24] + 8007724: 683b ldr r3, [r7, #0] + 8007726: 685b ldr r3, [r3, #4] + 8007728: 091b lsrs r3, r3, #4 + 800772a: f003 0201 and.w r2, r3, #1 + 800772e: 69fb ldr r3, [r7, #28] + 8007730: fa02 f303 lsl.w r3, r2, r3 + 8007734: 69ba ldr r2, [r7, #24] + 8007736: 4313 orrs r3, r2 + 8007738: 61bb str r3, [r7, #24] GPIOx->OTYPER = temp; - 8007736: 687b ldr r3, [r7, #4] - 8007738: 69ba ldr r2, [r7, #24] - 800773a: 605a str r2, [r3, #4] + 800773a: 687b ldr r3, [r7, #4] + 800773c: 69ba ldr r2, [r7, #24] + 800773e: 605a str r2, [r3, #4] } /* Activate the Pull-up or Pull down resistor for the current IO */ temp = GPIOx->PUPDR; - 800773c: 687b ldr r3, [r7, #4] - 800773e: 68db ldr r3, [r3, #12] - 8007740: 61bb str r3, [r7, #24] + 8007740: 687b ldr r3, [r7, #4] + 8007742: 68db ldr r3, [r3, #12] + 8007744: 61bb str r3, [r7, #24] temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2)); - 8007742: 69fb ldr r3, [r7, #28] - 8007744: 005b lsls r3, r3, #1 - 8007746: 2203 movs r2, #3 - 8007748: fa02 f303 lsl.w r3, r2, r3 - 800774c: 43db mvns r3, r3 - 800774e: 69ba ldr r2, [r7, #24] - 8007750: 4013 ands r3, r2 - 8007752: 61bb str r3, [r7, #24] + 8007746: 69fb ldr r3, [r7, #28] + 8007748: 005b lsls r3, r3, #1 + 800774a: 2203 movs r2, #3 + 800774c: fa02 f303 lsl.w r3, r2, r3 + 8007750: 43db mvns r3, r3 + 8007752: 69ba ldr r2, [r7, #24] + 8007754: 4013 ands r3, r2 + 8007756: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Pull) << (position * 2)); - 8007754: 683b ldr r3, [r7, #0] - 8007756: 689a ldr r2, [r3, #8] - 8007758: 69fb ldr r3, [r7, #28] - 800775a: 005b lsls r3, r3, #1 - 800775c: fa02 f303 lsl.w r3, r2, r3 - 8007760: 69ba ldr r2, [r7, #24] - 8007762: 4313 orrs r3, r2 - 8007764: 61bb str r3, [r7, #24] + 8007758: 683b ldr r3, [r7, #0] + 800775a: 689a ldr r2, [r3, #8] + 800775c: 69fb ldr r3, [r7, #28] + 800775e: 005b lsls r3, r3, #1 + 8007760: fa02 f303 lsl.w r3, r2, r3 + 8007764: 69ba ldr r2, [r7, #24] + 8007766: 4313 orrs r3, r2 + 8007768: 61bb str r3, [r7, #24] GPIOx->PUPDR = temp; - 8007766: 687b ldr r3, [r7, #4] - 8007768: 69ba ldr r2, [r7, #24] - 800776a: 60da str r2, [r3, #12] + 800776a: 687b ldr r3, [r7, #4] + 800776c: 69ba ldr r2, [r7, #24] + 800776e: 60da str r2, [r3, #12] /* In case of Alternate function mode selection */ if((GPIO_Init->Mode == GPIO_MODE_AF_PP) || (GPIO_Init->Mode == GPIO_MODE_AF_OD)) - 800776c: 683b ldr r3, [r7, #0] - 800776e: 685b ldr r3, [r3, #4] - 8007770: 2b02 cmp r3, #2 - 8007772: d003 beq.n 800777c - 8007774: 683b ldr r3, [r7, #0] - 8007776: 685b ldr r3, [r3, #4] - 8007778: 2b12 cmp r3, #18 - 800777a: d123 bne.n 80077c4 + 8007770: 683b ldr r3, [r7, #0] + 8007772: 685b ldr r3, [r3, #4] + 8007774: 2b02 cmp r3, #2 + 8007776: d003 beq.n 8007780 + 8007778: 683b ldr r3, [r7, #0] + 800777a: 685b ldr r3, [r3, #4] + 800777c: 2b12 cmp r3, #18 + 800777e: d123 bne.n 80077c8 { /* Check the Alternate function parameter */ assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); /* Configure Alternate function mapped with the current IO */ temp = GPIOx->AFR[position >> 3]; - 800777c: 69fb ldr r3, [r7, #28] - 800777e: 08da lsrs r2, r3, #3 - 8007780: 687b ldr r3, [r7, #4] - 8007782: 3208 adds r2, #8 - 8007784: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8007788: 61bb str r3, [r7, #24] + 8007780: 69fb ldr r3, [r7, #28] + 8007782: 08da lsrs r2, r3, #3 + 8007784: 687b ldr r3, [r7, #4] + 8007786: 3208 adds r2, #8 + 8007788: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800778c: 61bb str r3, [r7, #24] temp &= ~((uint32_t)0xF << ((uint32_t)(position & (uint32_t)0x07) * 4)) ; - 800778a: 69fb ldr r3, [r7, #28] - 800778c: f003 0307 and.w r3, r3, #7 - 8007790: 009b lsls r3, r3, #2 - 8007792: 220f movs r2, #15 - 8007794: fa02 f303 lsl.w r3, r2, r3 - 8007798: 43db mvns r3, r3 - 800779a: 69ba ldr r2, [r7, #24] - 800779c: 4013 ands r3, r2 - 800779e: 61bb str r3, [r7, #24] + 800778e: 69fb ldr r3, [r7, #28] + 8007790: f003 0307 and.w r3, r3, #7 + 8007794: 009b lsls r3, r3, #2 + 8007796: 220f movs r2, #15 + 8007798: fa02 f303 lsl.w r3, r2, r3 + 800779c: 43db mvns r3, r3 + 800779e: 69ba ldr r2, [r7, #24] + 80077a0: 4013 ands r3, r2 + 80077a2: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & (uint32_t)0x07) * 4)); - 80077a0: 683b ldr r3, [r7, #0] - 80077a2: 691a ldr r2, [r3, #16] - 80077a4: 69fb ldr r3, [r7, #28] - 80077a6: f003 0307 and.w r3, r3, #7 - 80077aa: 009b lsls r3, r3, #2 - 80077ac: fa02 f303 lsl.w r3, r2, r3 - 80077b0: 69ba ldr r2, [r7, #24] - 80077b2: 4313 orrs r3, r2 - 80077b4: 61bb str r3, [r7, #24] + 80077a4: 683b ldr r3, [r7, #0] + 80077a6: 691a ldr r2, [r3, #16] + 80077a8: 69fb ldr r3, [r7, #28] + 80077aa: f003 0307 and.w r3, r3, #7 + 80077ae: 009b lsls r3, r3, #2 + 80077b0: fa02 f303 lsl.w r3, r2, r3 + 80077b4: 69ba ldr r2, [r7, #24] + 80077b6: 4313 orrs r3, r2 + 80077b8: 61bb str r3, [r7, #24] GPIOx->AFR[position >> 3] = temp; - 80077b6: 69fb ldr r3, [r7, #28] - 80077b8: 08da lsrs r2, r3, #3 - 80077ba: 687b ldr r3, [r7, #4] - 80077bc: 3208 adds r2, #8 - 80077be: 69b9 ldr r1, [r7, #24] - 80077c0: f843 1022 str.w r1, [r3, r2, lsl #2] + 80077ba: 69fb ldr r3, [r7, #28] + 80077bc: 08da lsrs r2, r3, #3 + 80077be: 687b ldr r3, [r7, #4] + 80077c0: 3208 adds r2, #8 + 80077c2: 69b9 ldr r1, [r7, #24] + 80077c4: f843 1022 str.w r1, [r3, r2, lsl #2] } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; - 80077c4: 687b ldr r3, [r7, #4] - 80077c6: 681b ldr r3, [r3, #0] - 80077c8: 61bb str r3, [r7, #24] + 80077c8: 687b ldr r3, [r7, #4] + 80077ca: 681b ldr r3, [r3, #0] + 80077cc: 61bb str r3, [r7, #24] temp &= ~(GPIO_MODER_MODER0 << (position * 2)); - 80077ca: 69fb ldr r3, [r7, #28] - 80077cc: 005b lsls r3, r3, #1 - 80077ce: 2203 movs r2, #3 - 80077d0: fa02 f303 lsl.w r3, r2, r3 - 80077d4: 43db mvns r3, r3 - 80077d6: 69ba ldr r2, [r7, #24] - 80077d8: 4013 ands r3, r2 - 80077da: 61bb str r3, [r7, #24] + 80077ce: 69fb ldr r3, [r7, #28] + 80077d0: 005b lsls r3, r3, #1 + 80077d2: 2203 movs r2, #3 + 80077d4: fa02 f303 lsl.w r3, r2, r3 + 80077d8: 43db mvns r3, r3 + 80077da: 69ba ldr r2, [r7, #24] + 80077dc: 4013 ands r3, r2 + 80077de: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2)); - 80077dc: 683b ldr r3, [r7, #0] - 80077de: 685b ldr r3, [r3, #4] - 80077e0: f003 0203 and.w r2, r3, #3 - 80077e4: 69fb ldr r3, [r7, #28] - 80077e6: 005b lsls r3, r3, #1 - 80077e8: fa02 f303 lsl.w r3, r2, r3 - 80077ec: 69ba ldr r2, [r7, #24] - 80077ee: 4313 orrs r3, r2 - 80077f0: 61bb str r3, [r7, #24] + 80077e0: 683b ldr r3, [r7, #0] + 80077e2: 685b ldr r3, [r3, #4] + 80077e4: f003 0203 and.w r2, r3, #3 + 80077e8: 69fb ldr r3, [r7, #28] + 80077ea: 005b lsls r3, r3, #1 + 80077ec: fa02 f303 lsl.w r3, r2, r3 + 80077f0: 69ba ldr r2, [r7, #24] + 80077f2: 4313 orrs r3, r2 + 80077f4: 61bb str r3, [r7, #24] GPIOx->MODER = temp; - 80077f2: 687b ldr r3, [r7, #4] - 80077f4: 69ba ldr r2, [r7, #24] - 80077f6: 601a str r2, [r3, #0] + 80077f6: 687b ldr r3, [r7, #4] + 80077f8: 69ba ldr r2, [r7, #24] + 80077fa: 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) - 80077f8: 683b ldr r3, [r7, #0] - 80077fa: 685b ldr r3, [r3, #4] - 80077fc: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8007800: 2b00 cmp r3, #0 - 8007802: f000 80be beq.w 8007982 + 80077fc: 683b ldr r3, [r7, #0] + 80077fe: 685b ldr r3, [r3, #4] + 8007800: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8007804: 2b00 cmp r3, #0 + 8007806: f000 80be beq.w 8007986 { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8007806: 4b65 ldr r3, [pc, #404] ; (800799c ) - 8007808: 6c5b ldr r3, [r3, #68] ; 0x44 - 800780a: 4a64 ldr r2, [pc, #400] ; (800799c ) - 800780c: f443 4380 orr.w r3, r3, #16384 ; 0x4000 - 8007810: 6453 str r3, [r2, #68] ; 0x44 - 8007812: 4b62 ldr r3, [pc, #392] ; (800799c ) - 8007814: 6c5b ldr r3, [r3, #68] ; 0x44 - 8007816: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 800781a: 60fb str r3, [r7, #12] - 800781c: 68fb ldr r3, [r7, #12] + 800780a: 4b65 ldr r3, [pc, #404] ; (80079a0 ) + 800780c: 6c5b ldr r3, [r3, #68] ; 0x44 + 800780e: 4a64 ldr r2, [pc, #400] ; (80079a0 ) + 8007810: f443 4380 orr.w r3, r3, #16384 ; 0x4000 + 8007814: 6453 str r3, [r2, #68] ; 0x44 + 8007816: 4b62 ldr r3, [pc, #392] ; (80079a0 ) + 8007818: 6c5b ldr r3, [r3, #68] ; 0x44 + 800781a: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 800781e: 60fb str r3, [r7, #12] + 8007820: 68fb ldr r3, [r7, #12] temp = SYSCFG->EXTICR[position >> 2]; - 800781e: 4a60 ldr r2, [pc, #384] ; (80079a0 ) - 8007820: 69fb ldr r3, [r7, #28] - 8007822: 089b lsrs r3, r3, #2 - 8007824: 3302 adds r3, #2 - 8007826: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 800782a: 61bb str r3, [r7, #24] + 8007822: 4a60 ldr r2, [pc, #384] ; (80079a4 ) + 8007824: 69fb ldr r3, [r7, #28] + 8007826: 089b lsrs r3, r3, #2 + 8007828: 3302 adds r3, #2 + 800782a: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 800782e: 61bb str r3, [r7, #24] temp &= ~(((uint32_t)0x0F) << (4 * (position & 0x03))); - 800782c: 69fb ldr r3, [r7, #28] - 800782e: f003 0303 and.w r3, r3, #3 - 8007832: 009b lsls r3, r3, #2 - 8007834: 220f movs r2, #15 - 8007836: fa02 f303 lsl.w r3, r2, r3 - 800783a: 43db mvns r3, r3 - 800783c: 69ba ldr r2, [r7, #24] - 800783e: 4013 ands r3, r2 - 8007840: 61bb str r3, [r7, #24] + 8007830: 69fb ldr r3, [r7, #28] + 8007832: f003 0303 and.w r3, r3, #3 + 8007836: 009b lsls r3, r3, #2 + 8007838: 220f movs r2, #15 + 800783a: fa02 f303 lsl.w r3, r2, r3 + 800783e: 43db mvns r3, r3 + 8007840: 69ba ldr r2, [r7, #24] + 8007842: 4013 ands r3, r2 + 8007844: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03))); - 8007842: 687b ldr r3, [r7, #4] - 8007844: 4a57 ldr r2, [pc, #348] ; (80079a4 ) - 8007846: 4293 cmp r3, r2 - 8007848: d037 beq.n 80078ba - 800784a: 687b ldr r3, [r7, #4] - 800784c: 4a56 ldr r2, [pc, #344] ; (80079a8 ) - 800784e: 4293 cmp r3, r2 - 8007850: d031 beq.n 80078b6 - 8007852: 687b ldr r3, [r7, #4] - 8007854: 4a55 ldr r2, [pc, #340] ; (80079ac ) - 8007856: 4293 cmp r3, r2 - 8007858: d02b beq.n 80078b2 - 800785a: 687b ldr r3, [r7, #4] - 800785c: 4a54 ldr r2, [pc, #336] ; (80079b0 ) - 800785e: 4293 cmp r3, r2 - 8007860: d025 beq.n 80078ae - 8007862: 687b ldr r3, [r7, #4] - 8007864: 4a53 ldr r2, [pc, #332] ; (80079b4 ) - 8007866: 4293 cmp r3, r2 - 8007868: d01f beq.n 80078aa - 800786a: 687b ldr r3, [r7, #4] - 800786c: 4a52 ldr r2, [pc, #328] ; (80079b8 ) - 800786e: 4293 cmp r3, r2 - 8007870: d019 beq.n 80078a6 - 8007872: 687b ldr r3, [r7, #4] - 8007874: 4a51 ldr r2, [pc, #324] ; (80079bc ) - 8007876: 4293 cmp r3, r2 - 8007878: d013 beq.n 80078a2 - 800787a: 687b ldr r3, [r7, #4] - 800787c: 4a50 ldr r2, [pc, #320] ; (80079c0 ) - 800787e: 4293 cmp r3, r2 - 8007880: d00d beq.n 800789e - 8007882: 687b ldr r3, [r7, #4] - 8007884: 4a4f ldr r2, [pc, #316] ; (80079c4 ) - 8007886: 4293 cmp r3, r2 - 8007888: d007 beq.n 800789a - 800788a: 687b ldr r3, [r7, #4] - 800788c: 4a4e ldr r2, [pc, #312] ; (80079c8 ) - 800788e: 4293 cmp r3, r2 - 8007890: d101 bne.n 8007896 - 8007892: 2309 movs r3, #9 - 8007894: e012 b.n 80078bc - 8007896: 230a movs r3, #10 - 8007898: e010 b.n 80078bc - 800789a: 2308 movs r3, #8 - 800789c: e00e b.n 80078bc - 800789e: 2307 movs r3, #7 - 80078a0: e00c b.n 80078bc - 80078a2: 2306 movs r3, #6 - 80078a4: e00a b.n 80078bc - 80078a6: 2305 movs r3, #5 - 80078a8: e008 b.n 80078bc - 80078aa: 2304 movs r3, #4 - 80078ac: e006 b.n 80078bc - 80078ae: 2303 movs r3, #3 - 80078b0: e004 b.n 80078bc - 80078b2: 2302 movs r3, #2 - 80078b4: e002 b.n 80078bc - 80078b6: 2301 movs r3, #1 - 80078b8: e000 b.n 80078bc - 80078ba: 2300 movs r3, #0 - 80078bc: 69fa ldr r2, [r7, #28] - 80078be: f002 0203 and.w r2, r2, #3 - 80078c2: 0092 lsls r2, r2, #2 - 80078c4: 4093 lsls r3, r2 - 80078c6: 69ba ldr r2, [r7, #24] - 80078c8: 4313 orrs r3, r2 - 80078ca: 61bb str r3, [r7, #24] + 8007846: 687b ldr r3, [r7, #4] + 8007848: 4a57 ldr r2, [pc, #348] ; (80079a8 ) + 800784a: 4293 cmp r3, r2 + 800784c: d037 beq.n 80078be + 800784e: 687b ldr r3, [r7, #4] + 8007850: 4a56 ldr r2, [pc, #344] ; (80079ac ) + 8007852: 4293 cmp r3, r2 + 8007854: d031 beq.n 80078ba + 8007856: 687b ldr r3, [r7, #4] + 8007858: 4a55 ldr r2, [pc, #340] ; (80079b0 ) + 800785a: 4293 cmp r3, r2 + 800785c: d02b beq.n 80078b6 + 800785e: 687b ldr r3, [r7, #4] + 8007860: 4a54 ldr r2, [pc, #336] ; (80079b4 ) + 8007862: 4293 cmp r3, r2 + 8007864: d025 beq.n 80078b2 + 8007866: 687b ldr r3, [r7, #4] + 8007868: 4a53 ldr r2, [pc, #332] ; (80079b8 ) + 800786a: 4293 cmp r3, r2 + 800786c: d01f beq.n 80078ae + 800786e: 687b ldr r3, [r7, #4] + 8007870: 4a52 ldr r2, [pc, #328] ; (80079bc ) + 8007872: 4293 cmp r3, r2 + 8007874: d019 beq.n 80078aa + 8007876: 687b ldr r3, [r7, #4] + 8007878: 4a51 ldr r2, [pc, #324] ; (80079c0 ) + 800787a: 4293 cmp r3, r2 + 800787c: d013 beq.n 80078a6 + 800787e: 687b ldr r3, [r7, #4] + 8007880: 4a50 ldr r2, [pc, #320] ; (80079c4 ) + 8007882: 4293 cmp r3, r2 + 8007884: d00d beq.n 80078a2 + 8007886: 687b ldr r3, [r7, #4] + 8007888: 4a4f ldr r2, [pc, #316] ; (80079c8 ) + 800788a: 4293 cmp r3, r2 + 800788c: d007 beq.n 800789e + 800788e: 687b ldr r3, [r7, #4] + 8007890: 4a4e ldr r2, [pc, #312] ; (80079cc ) + 8007892: 4293 cmp r3, r2 + 8007894: d101 bne.n 800789a + 8007896: 2309 movs r3, #9 + 8007898: e012 b.n 80078c0 + 800789a: 230a movs r3, #10 + 800789c: e010 b.n 80078c0 + 800789e: 2308 movs r3, #8 + 80078a0: e00e b.n 80078c0 + 80078a2: 2307 movs r3, #7 + 80078a4: e00c b.n 80078c0 + 80078a6: 2306 movs r3, #6 + 80078a8: e00a b.n 80078c0 + 80078aa: 2305 movs r3, #5 + 80078ac: e008 b.n 80078c0 + 80078ae: 2304 movs r3, #4 + 80078b0: e006 b.n 80078c0 + 80078b2: 2303 movs r3, #3 + 80078b4: e004 b.n 80078c0 + 80078b6: 2302 movs r3, #2 + 80078b8: e002 b.n 80078c0 + 80078ba: 2301 movs r3, #1 + 80078bc: e000 b.n 80078c0 + 80078be: 2300 movs r3, #0 + 80078c0: 69fa ldr r2, [r7, #28] + 80078c2: f002 0203 and.w r2, r2, #3 + 80078c6: 0092 lsls r2, r2, #2 + 80078c8: 4093 lsls r3, r2 + 80078ca: 69ba ldr r2, [r7, #24] + 80078cc: 4313 orrs r3, r2 + 80078ce: 61bb str r3, [r7, #24] SYSCFG->EXTICR[position >> 2] = temp; - 80078cc: 4934 ldr r1, [pc, #208] ; (80079a0 ) - 80078ce: 69fb ldr r3, [r7, #28] - 80078d0: 089b lsrs r3, r3, #2 - 80078d2: 3302 adds r3, #2 - 80078d4: 69ba ldr r2, [r7, #24] - 80078d6: f841 2023 str.w r2, [r1, r3, lsl #2] + 80078d0: 4934 ldr r1, [pc, #208] ; (80079a4 ) + 80078d2: 69fb ldr r3, [r7, #28] + 80078d4: 089b lsrs r3, r3, #2 + 80078d6: 3302 adds r3, #2 + 80078d8: 69ba ldr r2, [r7, #24] + 80078da: f841 2023 str.w r2, [r1, r3, lsl #2] /* Clear EXTI line configuration */ temp = EXTI->IMR; - 80078da: 4b3c ldr r3, [pc, #240] ; (80079cc ) - 80078dc: 681b ldr r3, [r3, #0] - 80078de: 61bb str r3, [r7, #24] + 80078de: 4b3c ldr r3, [pc, #240] ; (80079d0 ) + 80078e0: 681b ldr r3, [r3, #0] + 80078e2: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 80078e0: 693b ldr r3, [r7, #16] - 80078e2: 43db mvns r3, r3 - 80078e4: 69ba ldr r2, [r7, #24] - 80078e6: 4013 ands r3, r2 - 80078e8: 61bb str r3, [r7, #24] + 80078e4: 693b ldr r3, [r7, #16] + 80078e6: 43db mvns r3, r3 + 80078e8: 69ba ldr r2, [r7, #24] + 80078ea: 4013 ands r3, r2 + 80078ec: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) - 80078ea: 683b ldr r3, [r7, #0] - 80078ec: 685b ldr r3, [r3, #4] - 80078ee: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 80078f2: 2b00 cmp r3, #0 - 80078f4: d003 beq.n 80078fe + 80078ee: 683b ldr r3, [r7, #0] + 80078f0: 685b ldr r3, [r3, #4] + 80078f2: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 80078f6: 2b00 cmp r3, #0 + 80078f8: d003 beq.n 8007902 { temp |= iocurrent; - 80078f6: 69ba ldr r2, [r7, #24] - 80078f8: 693b ldr r3, [r7, #16] - 80078fa: 4313 orrs r3, r2 - 80078fc: 61bb str r3, [r7, #24] + 80078fa: 69ba ldr r2, [r7, #24] + 80078fc: 693b ldr r3, [r7, #16] + 80078fe: 4313 orrs r3, r2 + 8007900: 61bb str r3, [r7, #24] } EXTI->IMR = temp; - 80078fe: 4a33 ldr r2, [pc, #204] ; (80079cc ) - 8007900: 69bb ldr r3, [r7, #24] - 8007902: 6013 str r3, [r2, #0] + 8007902: 4a33 ldr r2, [pc, #204] ; (80079d0 ) + 8007904: 69bb ldr r3, [r7, #24] + 8007906: 6013 str r3, [r2, #0] temp = EXTI->EMR; - 8007904: 4b31 ldr r3, [pc, #196] ; (80079cc ) - 8007906: 685b ldr r3, [r3, #4] - 8007908: 61bb str r3, [r7, #24] + 8007908: 4b31 ldr r3, [pc, #196] ; (80079d0 ) + 800790a: 685b ldr r3, [r3, #4] + 800790c: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 800790a: 693b ldr r3, [r7, #16] - 800790c: 43db mvns r3, r3 - 800790e: 69ba ldr r2, [r7, #24] - 8007910: 4013 ands r3, r2 - 8007912: 61bb str r3, [r7, #24] + 800790e: 693b ldr r3, [r7, #16] + 8007910: 43db mvns r3, r3 + 8007912: 69ba ldr r2, [r7, #24] + 8007914: 4013 ands r3, r2 + 8007916: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) - 8007914: 683b ldr r3, [r7, #0] - 8007916: 685b ldr r3, [r3, #4] - 8007918: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 800791c: 2b00 cmp r3, #0 - 800791e: d003 beq.n 8007928 + 8007918: 683b ldr r3, [r7, #0] + 800791a: 685b ldr r3, [r3, #4] + 800791c: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8007920: 2b00 cmp r3, #0 + 8007922: d003 beq.n 800792c { temp |= iocurrent; - 8007920: 69ba ldr r2, [r7, #24] - 8007922: 693b ldr r3, [r7, #16] - 8007924: 4313 orrs r3, r2 - 8007926: 61bb str r3, [r7, #24] + 8007924: 69ba ldr r2, [r7, #24] + 8007926: 693b ldr r3, [r7, #16] + 8007928: 4313 orrs r3, r2 + 800792a: 61bb str r3, [r7, #24] } EXTI->EMR = temp; - 8007928: 4a28 ldr r2, [pc, #160] ; (80079cc ) - 800792a: 69bb ldr r3, [r7, #24] - 800792c: 6053 str r3, [r2, #4] + 800792c: 4a28 ldr r2, [pc, #160] ; (80079d0 ) + 800792e: 69bb ldr r3, [r7, #24] + 8007930: 6053 str r3, [r2, #4] /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR; - 800792e: 4b27 ldr r3, [pc, #156] ; (80079cc ) - 8007930: 689b ldr r3, [r3, #8] - 8007932: 61bb str r3, [r7, #24] + 8007932: 4b27 ldr r3, [pc, #156] ; (80079d0 ) + 8007934: 689b ldr r3, [r3, #8] + 8007936: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8007934: 693b ldr r3, [r7, #16] - 8007936: 43db mvns r3, r3 - 8007938: 69ba ldr r2, [r7, #24] - 800793a: 4013 ands r3, r2 - 800793c: 61bb str r3, [r7, #24] + 8007938: 693b ldr r3, [r7, #16] + 800793a: 43db mvns r3, r3 + 800793c: 69ba ldr r2, [r7, #24] + 800793e: 4013 ands r3, r2 + 8007940: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) - 800793e: 683b ldr r3, [r7, #0] - 8007940: 685b ldr r3, [r3, #4] - 8007942: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 8007946: 2b00 cmp r3, #0 - 8007948: d003 beq.n 8007952 + 8007942: 683b ldr r3, [r7, #0] + 8007944: 685b ldr r3, [r3, #4] + 8007946: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 800794a: 2b00 cmp r3, #0 + 800794c: d003 beq.n 8007956 { temp |= iocurrent; - 800794a: 69ba ldr r2, [r7, #24] - 800794c: 693b ldr r3, [r7, #16] - 800794e: 4313 orrs r3, r2 - 8007950: 61bb str r3, [r7, #24] + 800794e: 69ba ldr r2, [r7, #24] + 8007950: 693b ldr r3, [r7, #16] + 8007952: 4313 orrs r3, r2 + 8007954: 61bb str r3, [r7, #24] } EXTI->RTSR = temp; - 8007952: 4a1e ldr r2, [pc, #120] ; (80079cc ) - 8007954: 69bb ldr r3, [r7, #24] - 8007956: 6093 str r3, [r2, #8] + 8007956: 4a1e ldr r2, [pc, #120] ; (80079d0 ) + 8007958: 69bb ldr r3, [r7, #24] + 800795a: 6093 str r3, [r2, #8] temp = EXTI->FTSR; - 8007958: 4b1c ldr r3, [pc, #112] ; (80079cc ) - 800795a: 68db ldr r3, [r3, #12] - 800795c: 61bb str r3, [r7, #24] + 800795c: 4b1c ldr r3, [pc, #112] ; (80079d0 ) + 800795e: 68db ldr r3, [r3, #12] + 8007960: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 800795e: 693b ldr r3, [r7, #16] - 8007960: 43db mvns r3, r3 - 8007962: 69ba ldr r2, [r7, #24] - 8007964: 4013 ands r3, r2 - 8007966: 61bb str r3, [r7, #24] + 8007962: 693b ldr r3, [r7, #16] + 8007964: 43db mvns r3, r3 + 8007966: 69ba ldr r2, [r7, #24] + 8007968: 4013 ands r3, r2 + 800796a: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) - 8007968: 683b ldr r3, [r7, #0] - 800796a: 685b ldr r3, [r3, #4] - 800796c: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8007970: 2b00 cmp r3, #0 - 8007972: d003 beq.n 800797c + 800796c: 683b ldr r3, [r7, #0] + 800796e: 685b ldr r3, [r3, #4] + 8007970: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8007974: 2b00 cmp r3, #0 + 8007976: d003 beq.n 8007980 { temp |= iocurrent; - 8007974: 69ba ldr r2, [r7, #24] - 8007976: 693b ldr r3, [r7, #16] - 8007978: 4313 orrs r3, r2 - 800797a: 61bb str r3, [r7, #24] + 8007978: 69ba ldr r2, [r7, #24] + 800797a: 693b ldr r3, [r7, #16] + 800797c: 4313 orrs r3, r2 + 800797e: 61bb str r3, [r7, #24] } EXTI->FTSR = temp; - 800797c: 4a13 ldr r2, [pc, #76] ; (80079cc ) - 800797e: 69bb ldr r3, [r7, #24] - 8007980: 60d3 str r3, [r2, #12] + 8007980: 4a13 ldr r2, [pc, #76] ; (80079d0 ) + 8007982: 69bb ldr r3, [r7, #24] + 8007984: 60d3 str r3, [r2, #12] for(position = 0; position < GPIO_NUMBER; position++) - 8007982: 69fb ldr r3, [r7, #28] - 8007984: 3301 adds r3, #1 - 8007986: 61fb str r3, [r7, #28] - 8007988: 69fb ldr r3, [r7, #28] - 800798a: 2b0f cmp r3, #15 - 800798c: f67f ae86 bls.w 800769c + 8007986: 69fb ldr r3, [r7, #28] + 8007988: 3301 adds r3, #1 + 800798a: 61fb str r3, [r7, #28] + 800798c: 69fb ldr r3, [r7, #28] + 800798e: 2b0f cmp r3, #15 + 8007990: f67f ae86 bls.w 80076a0 } } } } - 8007990: bf00 nop - 8007992: 3724 adds r7, #36 ; 0x24 - 8007994: 46bd mov sp, r7 - 8007996: f85d 7b04 ldr.w r7, [sp], #4 - 800799a: 4770 bx lr - 800799c: 40023800 .word 0x40023800 - 80079a0: 40013800 .word 0x40013800 - 80079a4: 40020000 .word 0x40020000 - 80079a8: 40020400 .word 0x40020400 - 80079ac: 40020800 .word 0x40020800 - 80079b0: 40020c00 .word 0x40020c00 - 80079b4: 40021000 .word 0x40021000 - 80079b8: 40021400 .word 0x40021400 - 80079bc: 40021800 .word 0x40021800 - 80079c0: 40021c00 .word 0x40021c00 - 80079c4: 40022000 .word 0x40022000 - 80079c8: 40022400 .word 0x40022400 - 80079cc: 40013c00 .word 0x40013c00 - -080079d0 : + 8007994: bf00 nop + 8007996: 3724 adds r7, #36 ; 0x24 + 8007998: 46bd mov sp, r7 + 800799a: f85d 7b04 ldr.w r7, [sp], #4 + 800799e: 4770 bx lr + 80079a0: 40023800 .word 0x40023800 + 80079a4: 40013800 .word 0x40013800 + 80079a8: 40020000 .word 0x40020000 + 80079ac: 40020400 .word 0x40020400 + 80079b0: 40020800 .word 0x40020800 + 80079b4: 40020c00 .word 0x40020c00 + 80079b8: 40021000 .word 0x40021000 + 80079bc: 40021400 .word 0x40021400 + 80079c0: 40021800 .word 0x40021800 + 80079c4: 40021c00 .word 0x40021c00 + 80079c8: 40022000 .word 0x40022000 + 80079cc: 40022400 .word 0x40022400 + 80079d0: 40013c00 .word 0x40013c00 + +080079d4 : * @param GPIO_Pin specifies the port bit to be written. * This parameter can be one of GPIO_PIN_x where x can be (0..15). * @retval None */ void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin) { - 80079d0: b480 push {r7} - 80079d2: b087 sub sp, #28 - 80079d4: af00 add r7, sp, #0 - 80079d6: 6078 str r0, [r7, #4] - 80079d8: 6039 str r1, [r7, #0] + 80079d4: b480 push {r7} + 80079d6: b087 sub sp, #28 + 80079d8: af00 add r7, sp, #0 + 80079da: 6078 str r0, [r7, #4] + 80079dc: 6039 str r1, [r7, #0] uint32_t position; uint32_t ioposition = 0x00; - 80079da: 2300 movs r3, #0 - 80079dc: 613b str r3, [r7, #16] - uint32_t iocurrent = 0x00; 80079de: 2300 movs r3, #0 - 80079e0: 60fb str r3, [r7, #12] - uint32_t tmp = 0x00; + 80079e0: 613b str r3, [r7, #16] + uint32_t iocurrent = 0x00; 80079e2: 2300 movs r3, #0 - 80079e4: 60bb str r3, [r7, #8] + 80079e4: 60fb str r3, [r7, #12] + uint32_t tmp = 0x00; + 80079e6: 2300 movs r3, #0 + 80079e8: 60bb str r3, [r7, #8] /* Check the parameters */ assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); /* Configure the port pins */ for(position = 0; position < GPIO_NUMBER; position++) - 80079e6: 2300 movs r3, #0 - 80079e8: 617b str r3, [r7, #20] - 80079ea: e0d9 b.n 8007ba0 + 80079ea: 2300 movs r3, #0 + 80079ec: 617b str r3, [r7, #20] + 80079ee: e0d9 b.n 8007ba4 { /* Get the IO position */ ioposition = ((uint32_t)0x01) << position; - 80079ec: 2201 movs r2, #1 - 80079ee: 697b ldr r3, [r7, #20] - 80079f0: fa02 f303 lsl.w r3, r2, r3 - 80079f4: 613b str r3, [r7, #16] + 80079f0: 2201 movs r2, #1 + 80079f2: 697b ldr r3, [r7, #20] + 80079f4: fa02 f303 lsl.w r3, r2, r3 + 80079f8: 613b str r3, [r7, #16] /* Get the current IO position */ iocurrent = (GPIO_Pin) & ioposition; - 80079f6: 683a ldr r2, [r7, #0] - 80079f8: 693b ldr r3, [r7, #16] - 80079fa: 4013 ands r3, r2 - 80079fc: 60fb str r3, [r7, #12] + 80079fa: 683a ldr r2, [r7, #0] + 80079fc: 693b ldr r3, [r7, #16] + 80079fe: 4013 ands r3, r2 + 8007a00: 60fb str r3, [r7, #12] if(iocurrent == ioposition) - 80079fe: 68fa ldr r2, [r7, #12] - 8007a00: 693b ldr r3, [r7, #16] - 8007a02: 429a cmp r2, r3 - 8007a04: f040 80c9 bne.w 8007b9a + 8007a02: 68fa ldr r2, [r7, #12] + 8007a04: 693b ldr r3, [r7, #16] + 8007a06: 429a cmp r2, r3 + 8007a08: f040 80c9 bne.w 8007b9e { /*------------------------- EXTI Mode Configuration --------------------*/ tmp = SYSCFG->EXTICR[position >> 2]; - 8007a08: 4a6a ldr r2, [pc, #424] ; (8007bb4 ) - 8007a0a: 697b ldr r3, [r7, #20] - 8007a0c: 089b lsrs r3, r3, #2 - 8007a0e: 3302 adds r3, #2 - 8007a10: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8007a14: 60bb str r3, [r7, #8] + 8007a0c: 4a6a ldr r2, [pc, #424] ; (8007bb8 ) + 8007a0e: 697b ldr r3, [r7, #20] + 8007a10: 089b lsrs r3, r3, #2 + 8007a12: 3302 adds r3, #2 + 8007a14: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8007a18: 60bb str r3, [r7, #8] tmp &= (((uint32_t)0x0F) << (4 * (position & 0x03))); - 8007a16: 697b ldr r3, [r7, #20] - 8007a18: f003 0303 and.w r3, r3, #3 - 8007a1c: 009b lsls r3, r3, #2 - 8007a1e: 220f movs r2, #15 - 8007a20: fa02 f303 lsl.w r3, r2, r3 - 8007a24: 68ba ldr r2, [r7, #8] - 8007a26: 4013 ands r3, r2 - 8007a28: 60bb str r3, [r7, #8] + 8007a1a: 697b ldr r3, [r7, #20] + 8007a1c: f003 0303 and.w r3, r3, #3 + 8007a20: 009b lsls r3, r3, #2 + 8007a22: 220f movs r2, #15 + 8007a24: fa02 f303 lsl.w r3, r2, r3 + 8007a28: 68ba ldr r2, [r7, #8] + 8007a2a: 4013 ands r3, r2 + 8007a2c: 60bb str r3, [r7, #8] if(tmp == ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03)))) - 8007a2a: 687b ldr r3, [r7, #4] - 8007a2c: 4a62 ldr r2, [pc, #392] ; (8007bb8 ) - 8007a2e: 4293 cmp r3, r2 - 8007a30: d037 beq.n 8007aa2 - 8007a32: 687b ldr r3, [r7, #4] - 8007a34: 4a61 ldr r2, [pc, #388] ; (8007bbc ) - 8007a36: 4293 cmp r3, r2 - 8007a38: d031 beq.n 8007a9e - 8007a3a: 687b ldr r3, [r7, #4] - 8007a3c: 4a60 ldr r2, [pc, #384] ; (8007bc0 ) - 8007a3e: 4293 cmp r3, r2 - 8007a40: d02b beq.n 8007a9a - 8007a42: 687b ldr r3, [r7, #4] - 8007a44: 4a5f ldr r2, [pc, #380] ; (8007bc4 ) - 8007a46: 4293 cmp r3, r2 - 8007a48: d025 beq.n 8007a96 - 8007a4a: 687b ldr r3, [r7, #4] - 8007a4c: 4a5e ldr r2, [pc, #376] ; (8007bc8 ) - 8007a4e: 4293 cmp r3, r2 - 8007a50: d01f beq.n 8007a92 - 8007a52: 687b ldr r3, [r7, #4] - 8007a54: 4a5d ldr r2, [pc, #372] ; (8007bcc ) - 8007a56: 4293 cmp r3, r2 - 8007a58: d019 beq.n 8007a8e - 8007a5a: 687b ldr r3, [r7, #4] - 8007a5c: 4a5c ldr r2, [pc, #368] ; (8007bd0 ) - 8007a5e: 4293 cmp r3, r2 - 8007a60: d013 beq.n 8007a8a - 8007a62: 687b ldr r3, [r7, #4] - 8007a64: 4a5b ldr r2, [pc, #364] ; (8007bd4 ) - 8007a66: 4293 cmp r3, r2 - 8007a68: d00d beq.n 8007a86 - 8007a6a: 687b ldr r3, [r7, #4] - 8007a6c: 4a5a ldr r2, [pc, #360] ; (8007bd8 ) - 8007a6e: 4293 cmp r3, r2 - 8007a70: d007 beq.n 8007a82 - 8007a72: 687b ldr r3, [r7, #4] - 8007a74: 4a59 ldr r2, [pc, #356] ; (8007bdc ) - 8007a76: 4293 cmp r3, r2 - 8007a78: d101 bne.n 8007a7e - 8007a7a: 2309 movs r3, #9 - 8007a7c: e012 b.n 8007aa4 - 8007a7e: 230a movs r3, #10 - 8007a80: e010 b.n 8007aa4 - 8007a82: 2308 movs r3, #8 - 8007a84: e00e b.n 8007aa4 - 8007a86: 2307 movs r3, #7 - 8007a88: e00c b.n 8007aa4 - 8007a8a: 2306 movs r3, #6 - 8007a8c: e00a b.n 8007aa4 - 8007a8e: 2305 movs r3, #5 - 8007a90: e008 b.n 8007aa4 - 8007a92: 2304 movs r3, #4 - 8007a94: e006 b.n 8007aa4 - 8007a96: 2303 movs r3, #3 - 8007a98: e004 b.n 8007aa4 - 8007a9a: 2302 movs r3, #2 - 8007a9c: e002 b.n 8007aa4 - 8007a9e: 2301 movs r3, #1 - 8007aa0: e000 b.n 8007aa4 - 8007aa2: 2300 movs r3, #0 - 8007aa4: 697a ldr r2, [r7, #20] - 8007aa6: f002 0203 and.w r2, r2, #3 - 8007aaa: 0092 lsls r2, r2, #2 - 8007aac: 4093 lsls r3, r2 - 8007aae: 68ba ldr r2, [r7, #8] - 8007ab0: 429a cmp r2, r3 - 8007ab2: d132 bne.n 8007b1a + 8007a2e: 687b ldr r3, [r7, #4] + 8007a30: 4a62 ldr r2, [pc, #392] ; (8007bbc ) + 8007a32: 4293 cmp r3, r2 + 8007a34: d037 beq.n 8007aa6 + 8007a36: 687b ldr r3, [r7, #4] + 8007a38: 4a61 ldr r2, [pc, #388] ; (8007bc0 ) + 8007a3a: 4293 cmp r3, r2 + 8007a3c: d031 beq.n 8007aa2 + 8007a3e: 687b ldr r3, [r7, #4] + 8007a40: 4a60 ldr r2, [pc, #384] ; (8007bc4 ) + 8007a42: 4293 cmp r3, r2 + 8007a44: d02b beq.n 8007a9e + 8007a46: 687b ldr r3, [r7, #4] + 8007a48: 4a5f ldr r2, [pc, #380] ; (8007bc8 ) + 8007a4a: 4293 cmp r3, r2 + 8007a4c: d025 beq.n 8007a9a + 8007a4e: 687b ldr r3, [r7, #4] + 8007a50: 4a5e ldr r2, [pc, #376] ; (8007bcc ) + 8007a52: 4293 cmp r3, r2 + 8007a54: d01f beq.n 8007a96 + 8007a56: 687b ldr r3, [r7, #4] + 8007a58: 4a5d ldr r2, [pc, #372] ; (8007bd0 ) + 8007a5a: 4293 cmp r3, r2 + 8007a5c: d019 beq.n 8007a92 + 8007a5e: 687b ldr r3, [r7, #4] + 8007a60: 4a5c ldr r2, [pc, #368] ; (8007bd4 ) + 8007a62: 4293 cmp r3, r2 + 8007a64: d013 beq.n 8007a8e + 8007a66: 687b ldr r3, [r7, #4] + 8007a68: 4a5b ldr r2, [pc, #364] ; (8007bd8 ) + 8007a6a: 4293 cmp r3, r2 + 8007a6c: d00d beq.n 8007a8a + 8007a6e: 687b ldr r3, [r7, #4] + 8007a70: 4a5a ldr r2, [pc, #360] ; (8007bdc ) + 8007a72: 4293 cmp r3, r2 + 8007a74: d007 beq.n 8007a86 + 8007a76: 687b ldr r3, [r7, #4] + 8007a78: 4a59 ldr r2, [pc, #356] ; (8007be0 ) + 8007a7a: 4293 cmp r3, r2 + 8007a7c: d101 bne.n 8007a82 + 8007a7e: 2309 movs r3, #9 + 8007a80: e012 b.n 8007aa8 + 8007a82: 230a movs r3, #10 + 8007a84: e010 b.n 8007aa8 + 8007a86: 2308 movs r3, #8 + 8007a88: e00e b.n 8007aa8 + 8007a8a: 2307 movs r3, #7 + 8007a8c: e00c b.n 8007aa8 + 8007a8e: 2306 movs r3, #6 + 8007a90: e00a b.n 8007aa8 + 8007a92: 2305 movs r3, #5 + 8007a94: e008 b.n 8007aa8 + 8007a96: 2304 movs r3, #4 + 8007a98: e006 b.n 8007aa8 + 8007a9a: 2303 movs r3, #3 + 8007a9c: e004 b.n 8007aa8 + 8007a9e: 2302 movs r3, #2 + 8007aa0: e002 b.n 8007aa8 + 8007aa2: 2301 movs r3, #1 + 8007aa4: e000 b.n 8007aa8 + 8007aa6: 2300 movs r3, #0 + 8007aa8: 697a ldr r2, [r7, #20] + 8007aaa: f002 0203 and.w r2, r2, #3 + 8007aae: 0092 lsls r2, r2, #2 + 8007ab0: 4093 lsls r3, r2 + 8007ab2: 68ba ldr r2, [r7, #8] + 8007ab4: 429a cmp r2, r3 + 8007ab6: d132 bne.n 8007b1e { /* Clear EXTI line configuration */ EXTI->IMR &= ~((uint32_t)iocurrent); - 8007ab4: 4b4a ldr r3, [pc, #296] ; (8007be0 ) - 8007ab6: 681a ldr r2, [r3, #0] - 8007ab8: 68fb ldr r3, [r7, #12] - 8007aba: 43db mvns r3, r3 - 8007abc: 4948 ldr r1, [pc, #288] ; (8007be0 ) - 8007abe: 4013 ands r3, r2 - 8007ac0: 600b str r3, [r1, #0] + 8007ab8: 4b4a ldr r3, [pc, #296] ; (8007be4 ) + 8007aba: 681a ldr r2, [r3, #0] + 8007abc: 68fb ldr r3, [r7, #12] + 8007abe: 43db mvns r3, r3 + 8007ac0: 4948 ldr r1, [pc, #288] ; (8007be4 ) + 8007ac2: 4013 ands r3, r2 + 8007ac4: 600b str r3, [r1, #0] EXTI->EMR &= ~((uint32_t)iocurrent); - 8007ac2: 4b47 ldr r3, [pc, #284] ; (8007be0 ) - 8007ac4: 685a ldr r2, [r3, #4] - 8007ac6: 68fb ldr r3, [r7, #12] - 8007ac8: 43db mvns r3, r3 - 8007aca: 4945 ldr r1, [pc, #276] ; (8007be0 ) - 8007acc: 4013 ands r3, r2 - 8007ace: 604b str r3, [r1, #4] + 8007ac6: 4b47 ldr r3, [pc, #284] ; (8007be4 ) + 8007ac8: 685a ldr r2, [r3, #4] + 8007aca: 68fb ldr r3, [r7, #12] + 8007acc: 43db mvns r3, r3 + 8007ace: 4945 ldr r1, [pc, #276] ; (8007be4 ) + 8007ad0: 4013 ands r3, r2 + 8007ad2: 604b str r3, [r1, #4] /* Clear Rising Falling edge configuration */ EXTI->RTSR &= ~((uint32_t)iocurrent); - 8007ad0: 4b43 ldr r3, [pc, #268] ; (8007be0 ) - 8007ad2: 689a ldr r2, [r3, #8] - 8007ad4: 68fb ldr r3, [r7, #12] - 8007ad6: 43db mvns r3, r3 - 8007ad8: 4941 ldr r1, [pc, #260] ; (8007be0 ) - 8007ada: 4013 ands r3, r2 - 8007adc: 608b str r3, [r1, #8] + 8007ad4: 4b43 ldr r3, [pc, #268] ; (8007be4 ) + 8007ad6: 689a ldr r2, [r3, #8] + 8007ad8: 68fb ldr r3, [r7, #12] + 8007ada: 43db mvns r3, r3 + 8007adc: 4941 ldr r1, [pc, #260] ; (8007be4 ) + 8007ade: 4013 ands r3, r2 + 8007ae0: 608b str r3, [r1, #8] EXTI->FTSR &= ~((uint32_t)iocurrent); - 8007ade: 4b40 ldr r3, [pc, #256] ; (8007be0 ) - 8007ae0: 68da ldr r2, [r3, #12] - 8007ae2: 68fb ldr r3, [r7, #12] - 8007ae4: 43db mvns r3, r3 - 8007ae6: 493e ldr r1, [pc, #248] ; (8007be0 ) - 8007ae8: 4013 ands r3, r2 - 8007aea: 60cb str r3, [r1, #12] + 8007ae2: 4b40 ldr r3, [pc, #256] ; (8007be4 ) + 8007ae4: 68da ldr r2, [r3, #12] + 8007ae6: 68fb ldr r3, [r7, #12] + 8007ae8: 43db mvns r3, r3 + 8007aea: 493e ldr r1, [pc, #248] ; (8007be4 ) + 8007aec: 4013 ands r3, r2 + 8007aee: 60cb str r3, [r1, #12] /* Configure the External Interrupt or event for the current IO */ tmp = ((uint32_t)0x0F) << (4 * (position & 0x03)); - 8007aec: 697b ldr r3, [r7, #20] - 8007aee: f003 0303 and.w r3, r3, #3 - 8007af2: 009b lsls r3, r3, #2 - 8007af4: 220f movs r2, #15 - 8007af6: fa02 f303 lsl.w r3, r2, r3 - 8007afa: 60bb str r3, [r7, #8] + 8007af0: 697b ldr r3, [r7, #20] + 8007af2: f003 0303 and.w r3, r3, #3 + 8007af6: 009b lsls r3, r3, #2 + 8007af8: 220f movs r2, #15 + 8007afa: fa02 f303 lsl.w r3, r2, r3 + 8007afe: 60bb str r3, [r7, #8] SYSCFG->EXTICR[position >> 2] &= ~tmp; - 8007afc: 4a2d ldr r2, [pc, #180] ; (8007bb4 ) - 8007afe: 697b ldr r3, [r7, #20] - 8007b00: 089b lsrs r3, r3, #2 - 8007b02: 3302 adds r3, #2 - 8007b04: f852 1023 ldr.w r1, [r2, r3, lsl #2] - 8007b08: 68bb ldr r3, [r7, #8] - 8007b0a: 43da mvns r2, r3 - 8007b0c: 4829 ldr r0, [pc, #164] ; (8007bb4 ) - 8007b0e: 697b ldr r3, [r7, #20] - 8007b10: 089b lsrs r3, r3, #2 - 8007b12: 400a ands r2, r1 - 8007b14: 3302 adds r3, #2 - 8007b16: f840 2023 str.w r2, [r0, r3, lsl #2] + 8007b00: 4a2d ldr r2, [pc, #180] ; (8007bb8 ) + 8007b02: 697b ldr r3, [r7, #20] + 8007b04: 089b lsrs r3, r3, #2 + 8007b06: 3302 adds r3, #2 + 8007b08: f852 1023 ldr.w r1, [r2, r3, lsl #2] + 8007b0c: 68bb ldr r3, [r7, #8] + 8007b0e: 43da mvns r2, r3 + 8007b10: 4829 ldr r0, [pc, #164] ; (8007bb8 ) + 8007b12: 697b ldr r3, [r7, #20] + 8007b14: 089b lsrs r3, r3, #2 + 8007b16: 400a ands r2, r1 + 8007b18: 3302 adds r3, #2 + 8007b1a: f840 2023 str.w r2, [r0, r3, lsl #2] } /*------------------------- GPIO Mode Configuration --------------------*/ /* Configure IO Direction in Input Floating Mode */ GPIOx->MODER &= ~(GPIO_MODER_MODER0 << (position * 2)); - 8007b1a: 687b ldr r3, [r7, #4] - 8007b1c: 681a ldr r2, [r3, #0] - 8007b1e: 697b ldr r3, [r7, #20] - 8007b20: 005b lsls r3, r3, #1 - 8007b22: 2103 movs r1, #3 - 8007b24: fa01 f303 lsl.w r3, r1, r3 - 8007b28: 43db mvns r3, r3 - 8007b2a: 401a ands r2, r3 - 8007b2c: 687b ldr r3, [r7, #4] - 8007b2e: 601a str r2, [r3, #0] + 8007b1e: 687b ldr r3, [r7, #4] + 8007b20: 681a ldr r2, [r3, #0] + 8007b22: 697b ldr r3, [r7, #20] + 8007b24: 005b lsls r3, r3, #1 + 8007b26: 2103 movs r1, #3 + 8007b28: fa01 f303 lsl.w r3, r1, r3 + 8007b2c: 43db mvns r3, r3 + 8007b2e: 401a ands r2, r3 + 8007b30: 687b ldr r3, [r7, #4] + 8007b32: 601a str r2, [r3, #0] /* Configure the default Alternate Function in current IO */ GPIOx->AFR[position >> 3] &= ~((uint32_t)0xF << ((uint32_t)(position & (uint32_t)0x07) * 4)) ; - 8007b30: 697b ldr r3, [r7, #20] - 8007b32: 08da lsrs r2, r3, #3 - 8007b34: 687b ldr r3, [r7, #4] - 8007b36: 3208 adds r2, #8 - 8007b38: f853 1022 ldr.w r1, [r3, r2, lsl #2] - 8007b3c: 697b ldr r3, [r7, #20] - 8007b3e: f003 0307 and.w r3, r3, #7 - 8007b42: 009b lsls r3, r3, #2 - 8007b44: 220f movs r2, #15 - 8007b46: fa02 f303 lsl.w r3, r2, r3 - 8007b4a: 43db mvns r3, r3 - 8007b4c: 697a ldr r2, [r7, #20] - 8007b4e: 08d2 lsrs r2, r2, #3 - 8007b50: 4019 ands r1, r3 - 8007b52: 687b ldr r3, [r7, #4] - 8007b54: 3208 adds r2, #8 - 8007b56: f843 1022 str.w r1, [r3, r2, lsl #2] + 8007b34: 697b ldr r3, [r7, #20] + 8007b36: 08da lsrs r2, r3, #3 + 8007b38: 687b ldr r3, [r7, #4] + 8007b3a: 3208 adds r2, #8 + 8007b3c: f853 1022 ldr.w r1, [r3, r2, lsl #2] + 8007b40: 697b ldr r3, [r7, #20] + 8007b42: f003 0307 and.w r3, r3, #7 + 8007b46: 009b lsls r3, r3, #2 + 8007b48: 220f movs r2, #15 + 8007b4a: fa02 f303 lsl.w r3, r2, r3 + 8007b4e: 43db mvns r3, r3 + 8007b50: 697a ldr r2, [r7, #20] + 8007b52: 08d2 lsrs r2, r2, #3 + 8007b54: 4019 ands r1, r3 + 8007b56: 687b ldr r3, [r7, #4] + 8007b58: 3208 adds r2, #8 + 8007b5a: f843 1022 str.w r1, [r3, r2, lsl #2] /* Deactivate the Pull-up and Pull-down resistor for the current IO */ GPIOx->PUPDR &= ~(GPIO_PUPDR_PUPDR0 << (position * 2)); - 8007b5a: 687b ldr r3, [r7, #4] - 8007b5c: 68da ldr r2, [r3, #12] - 8007b5e: 697b ldr r3, [r7, #20] - 8007b60: 005b lsls r3, r3, #1 - 8007b62: 2103 movs r1, #3 - 8007b64: fa01 f303 lsl.w r3, r1, r3 - 8007b68: 43db mvns r3, r3 - 8007b6a: 401a ands r2, r3 - 8007b6c: 687b ldr r3, [r7, #4] - 8007b6e: 60da str r2, [r3, #12] + 8007b5e: 687b ldr r3, [r7, #4] + 8007b60: 68da ldr r2, [r3, #12] + 8007b62: 697b ldr r3, [r7, #20] + 8007b64: 005b lsls r3, r3, #1 + 8007b66: 2103 movs r1, #3 + 8007b68: fa01 f303 lsl.w r3, r1, r3 + 8007b6c: 43db mvns r3, r3 + 8007b6e: 401a ands r2, r3 + 8007b70: 687b ldr r3, [r7, #4] + 8007b72: 60da str r2, [r3, #12] /* Configure the default value IO Output Type */ GPIOx->OTYPER &= ~(GPIO_OTYPER_OT_0 << position) ; - 8007b70: 687b ldr r3, [r7, #4] - 8007b72: 685a ldr r2, [r3, #4] - 8007b74: 2101 movs r1, #1 - 8007b76: 697b ldr r3, [r7, #20] - 8007b78: fa01 f303 lsl.w r3, r1, r3 - 8007b7c: 43db mvns r3, r3 - 8007b7e: 401a ands r2, r3 - 8007b80: 687b ldr r3, [r7, #4] - 8007b82: 605a str r2, [r3, #4] + 8007b74: 687b ldr r3, [r7, #4] + 8007b76: 685a ldr r2, [r3, #4] + 8007b78: 2101 movs r1, #1 + 8007b7a: 697b ldr r3, [r7, #20] + 8007b7c: fa01 f303 lsl.w r3, r1, r3 + 8007b80: 43db mvns r3, r3 + 8007b82: 401a ands r2, r3 + 8007b84: 687b ldr r3, [r7, #4] + 8007b86: 605a str r2, [r3, #4] /* Configure the default value for IO Speed */ GPIOx->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2)); - 8007b84: 687b ldr r3, [r7, #4] - 8007b86: 689a ldr r2, [r3, #8] - 8007b88: 697b ldr r3, [r7, #20] - 8007b8a: 005b lsls r3, r3, #1 - 8007b8c: 2103 movs r1, #3 - 8007b8e: fa01 f303 lsl.w r3, r1, r3 - 8007b92: 43db mvns r3, r3 - 8007b94: 401a ands r2, r3 - 8007b96: 687b ldr r3, [r7, #4] - 8007b98: 609a str r2, [r3, #8] + 8007b88: 687b ldr r3, [r7, #4] + 8007b8a: 689a ldr r2, [r3, #8] + 8007b8c: 697b ldr r3, [r7, #20] + 8007b8e: 005b lsls r3, r3, #1 + 8007b90: 2103 movs r1, #3 + 8007b92: fa01 f303 lsl.w r3, r1, r3 + 8007b96: 43db mvns r3, r3 + 8007b98: 401a ands r2, r3 + 8007b9a: 687b ldr r3, [r7, #4] + 8007b9c: 609a str r2, [r3, #8] for(position = 0; position < GPIO_NUMBER; position++) - 8007b9a: 697b ldr r3, [r7, #20] - 8007b9c: 3301 adds r3, #1 - 8007b9e: 617b str r3, [r7, #20] - 8007ba0: 697b ldr r3, [r7, #20] - 8007ba2: 2b0f cmp r3, #15 - 8007ba4: f67f af22 bls.w 80079ec + 8007b9e: 697b ldr r3, [r7, #20] + 8007ba0: 3301 adds r3, #1 + 8007ba2: 617b str r3, [r7, #20] + 8007ba4: 697b ldr r3, [r7, #20] + 8007ba6: 2b0f cmp r3, #15 + 8007ba8: f67f af22 bls.w 80079f0 } } } - 8007ba8: bf00 nop - 8007baa: 371c adds r7, #28 - 8007bac: 46bd mov sp, r7 - 8007bae: f85d 7b04 ldr.w r7, [sp], #4 - 8007bb2: 4770 bx lr - 8007bb4: 40013800 .word 0x40013800 - 8007bb8: 40020000 .word 0x40020000 - 8007bbc: 40020400 .word 0x40020400 - 8007bc0: 40020800 .word 0x40020800 - 8007bc4: 40020c00 .word 0x40020c00 - 8007bc8: 40021000 .word 0x40021000 - 8007bcc: 40021400 .word 0x40021400 - 8007bd0: 40021800 .word 0x40021800 - 8007bd4: 40021c00 .word 0x40021c00 - 8007bd8: 40022000 .word 0x40022000 - 8007bdc: 40022400 .word 0x40022400 - 8007be0: 40013c00 .word 0x40013c00 - -08007be4 : + 8007bac: bf00 nop + 8007bae: 371c adds r7, #28 + 8007bb0: 46bd mov sp, r7 + 8007bb2: f85d 7b04 ldr.w r7, [sp], #4 + 8007bb6: 4770 bx lr + 8007bb8: 40013800 .word 0x40013800 + 8007bbc: 40020000 .word 0x40020000 + 8007bc0: 40020400 .word 0x40020400 + 8007bc4: 40020800 .word 0x40020800 + 8007bc8: 40020c00 .word 0x40020c00 + 8007bcc: 40021000 .word 0x40021000 + 8007bd0: 40021400 .word 0x40021400 + 8007bd4: 40021800 .word 0x40021800 + 8007bd8: 40021c00 .word 0x40021c00 + 8007bdc: 40022000 .word 0x40022000 + 8007be0: 40022400 .word 0x40022400 + 8007be4: 40013c00 .word 0x40013c00 + +08007be8 : * @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) { - 8007be4: b480 push {r7} - 8007be6: b085 sub sp, #20 - 8007be8: af00 add r7, sp, #0 - 8007bea: 6078 str r0, [r7, #4] - 8007bec: 460b mov r3, r1 - 8007bee: 807b strh r3, [r7, #2] + 8007be8: b480 push {r7} + 8007bea: b085 sub sp, #20 + 8007bec: af00 add r7, sp, #0 + 8007bee: 6078 str r0, [r7, #4] + 8007bf0: 460b mov r3, r1 + 8007bf2: 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) - 8007bf0: 687b ldr r3, [r7, #4] - 8007bf2: 691a ldr r2, [r3, #16] - 8007bf4: 887b ldrh r3, [r7, #2] - 8007bf6: 4013 ands r3, r2 - 8007bf8: 2b00 cmp r3, #0 - 8007bfa: d002 beq.n 8007c02 + 8007bf4: 687b ldr r3, [r7, #4] + 8007bf6: 691a ldr r2, [r3, #16] + 8007bf8: 887b ldrh r3, [r7, #2] + 8007bfa: 4013 ands r3, r2 + 8007bfc: 2b00 cmp r3, #0 + 8007bfe: d002 beq.n 8007c06 { bitstatus = GPIO_PIN_SET; - 8007bfc: 2301 movs r3, #1 - 8007bfe: 73fb strb r3, [r7, #15] - 8007c00: e001 b.n 8007c06 + 8007c00: 2301 movs r3, #1 + 8007c02: 73fb strb r3, [r7, #15] + 8007c04: e001 b.n 8007c0a } else { bitstatus = GPIO_PIN_RESET; - 8007c02: 2300 movs r3, #0 - 8007c04: 73fb strb r3, [r7, #15] + 8007c06: 2300 movs r3, #0 + 8007c08: 73fb strb r3, [r7, #15] } return bitstatus; - 8007c06: 7bfb ldrb r3, [r7, #15] + 8007c0a: 7bfb ldrb r3, [r7, #15] } - 8007c08: 4618 mov r0, r3 - 8007c0a: 3714 adds r7, #20 - 8007c0c: 46bd mov sp, r7 - 8007c0e: f85d 7b04 ldr.w r7, [sp], #4 - 8007c12: 4770 bx lr + 8007c0c: 4618 mov r0, r3 + 8007c0e: 3714 adds r7, #20 + 8007c10: 46bd mov sp, r7 + 8007c12: f85d 7b04 ldr.w r7, [sp], #4 + 8007c16: 4770 bx lr -08007c14 : +08007c18 : * @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) { - 8007c14: b480 push {r7} - 8007c16: b083 sub sp, #12 - 8007c18: af00 add r7, sp, #0 - 8007c1a: 6078 str r0, [r7, #4] - 8007c1c: 460b mov r3, r1 - 8007c1e: 807b strh r3, [r7, #2] - 8007c20: 4613 mov r3, r2 - 8007c22: 707b strb r3, [r7, #1] + 8007c18: b480 push {r7} + 8007c1a: b083 sub sp, #12 + 8007c1c: af00 add r7, sp, #0 + 8007c1e: 6078 str r0, [r7, #4] + 8007c20: 460b mov r3, r1 + 8007c22: 807b strh r3, [r7, #2] + 8007c24: 4613 mov r3, r2 + 8007c26: 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) - 8007c24: 787b ldrb r3, [r7, #1] - 8007c26: 2b00 cmp r3, #0 - 8007c28: d003 beq.n 8007c32 + 8007c28: 787b ldrb r3, [r7, #1] + 8007c2a: 2b00 cmp r3, #0 + 8007c2c: d003 beq.n 8007c36 { GPIOx->BSRR = GPIO_Pin; - 8007c2a: 887a ldrh r2, [r7, #2] - 8007c2c: 687b ldr r3, [r7, #4] - 8007c2e: 619a str r2, [r3, #24] + 8007c2e: 887a ldrh r2, [r7, #2] + 8007c30: 687b ldr r3, [r7, #4] + 8007c32: 619a str r2, [r3, #24] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16; } } - 8007c30: e003 b.n 8007c3a + 8007c34: e003 b.n 8007c3e GPIOx->BSRR = (uint32_t)GPIO_Pin << 16; - 8007c32: 887b ldrh r3, [r7, #2] - 8007c34: 041a lsls r2, r3, #16 - 8007c36: 687b ldr r3, [r7, #4] - 8007c38: 619a str r2, [r3, #24] -} - 8007c3a: bf00 nop - 8007c3c: 370c adds r7, #12 - 8007c3e: 46bd mov sp, r7 - 8007c40: f85d 7b04 ldr.w r7, [sp], #4 - 8007c44: 4770 bx lr + 8007c36: 887b ldrh r3, [r7, #2] + 8007c38: 041a lsls r2, r3, #16 + 8007c3a: 687b ldr r3, [r7, #4] + 8007c3c: 619a str r2, [r3, #24] +} + 8007c3e: bf00 nop + 8007c40: 370c adds r7, #12 + 8007c42: 46bd mov sp, r7 + 8007c44: f85d 7b04 ldr.w r7, [sp], #4 + 8007c48: 4770 bx lr ... -08007c48 : +08007c4c : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) { - 8007c48: b580 push {r7, lr} - 8007c4a: b082 sub sp, #8 - 8007c4c: af00 add r7, sp, #0 - 8007c4e: 6078 str r0, [r7, #4] + 8007c4c: b580 push {r7, lr} + 8007c4e: b082 sub sp, #8 + 8007c50: af00 add r7, sp, #0 + 8007c52: 6078 str r0, [r7, #4] /* Check the I2C handle allocation */ if (hi2c == NULL) - 8007c50: 687b ldr r3, [r7, #4] - 8007c52: 2b00 cmp r3, #0 - 8007c54: d101 bne.n 8007c5a + 8007c54: 687b ldr r3, [r7, #4] + 8007c56: 2b00 cmp r3, #0 + 8007c58: d101 bne.n 8007c5e { return HAL_ERROR; - 8007c56: 2301 movs r3, #1 - 8007c58: e07f b.n 8007d5a + 8007c5a: 2301 movs r3, #1 + 8007c5c: e07f b.n 8007d5e assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); assert_param(IS_I2C_OWN_ADDRESS2_MASK(hi2c->Init.OwnAddress2Masks)); assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); if (hi2c->State == HAL_I2C_STATE_RESET) - 8007c5a: 687b ldr r3, [r7, #4] - 8007c5c: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 8007c60: b2db uxtb r3, r3 - 8007c62: 2b00 cmp r3, #0 - 8007c64: d106 bne.n 8007c74 + 8007c5e: 687b ldr r3, [r7, #4] + 8007c60: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 8007c64: b2db uxtb r3, r3 + 8007c66: 2b00 cmp r3, #0 + 8007c68: d106 bne.n 8007c78 { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; - 8007c66: 687b ldr r3, [r7, #4] - 8007c68: 2200 movs r2, #0 - 8007c6a: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8007c6a: 687b ldr r3, [r7, #4] + 8007c6c: 2200 movs r2, #0 + 8007c6e: f883 2040 strb.w r2, [r3, #64] ; 0x40 /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ hi2c->MspInitCallback(hi2c); #else /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */ HAL_I2C_MspInit(hi2c); - 8007c6e: 6878 ldr r0, [r7, #4] - 8007c70: f7fc fb3c bl 80042ec + 8007c72: 6878 ldr r0, [r7, #4] + 8007c74: f7fc fb3c bl 80042f0 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; - 8007c74: 687b ldr r3, [r7, #4] - 8007c76: 2224 movs r2, #36 ; 0x24 - 8007c78: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8007c78: 687b ldr r3, [r7, #4] + 8007c7a: 2224 movs r2, #36 ; 0x24 + 8007c7c: f883 2041 strb.w r2, [r3, #65] ; 0x41 /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 8007c7c: 687b ldr r3, [r7, #4] - 8007c7e: 681b ldr r3, [r3, #0] - 8007c80: 681a ldr r2, [r3, #0] - 8007c82: 687b ldr r3, [r7, #4] - 8007c84: 681b ldr r3, [r3, #0] - 8007c86: f022 0201 bic.w r2, r2, #1 - 8007c8a: 601a str r2, [r3, #0] + 8007c80: 687b ldr r3, [r7, #4] + 8007c82: 681b ldr r3, [r3, #0] + 8007c84: 681a ldr r2, [r3, #0] + 8007c86: 687b ldr r3, [r7, #4] + 8007c88: 681b ldr r3, [r3, #0] + 8007c8a: f022 0201 bic.w r2, r2, #1 + 8007c8e: 601a str r2, [r3, #0] /*---------------------------- I2Cx TIMINGR Configuration ------------------*/ /* Configure I2Cx: Frequency range */ hi2c->Instance->TIMINGR = hi2c->Init.Timing & TIMING_CLEAR_MASK; - 8007c8c: 687b ldr r3, [r7, #4] - 8007c8e: 685a ldr r2, [r3, #4] 8007c90: 687b ldr r3, [r7, #4] - 8007c92: 681b ldr r3, [r3, #0] - 8007c94: f022 6270 bic.w r2, r2, #251658240 ; 0xf000000 - 8007c98: 611a str r2, [r3, #16] + 8007c92: 685a ldr r2, [r3, #4] + 8007c94: 687b ldr r3, [r7, #4] + 8007c96: 681b ldr r3, [r3, #0] + 8007c98: f022 6270 bic.w r2, r2, #251658240 ; 0xf000000 + 8007c9c: 611a str r2, [r3, #16] /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ /* Disable Own Address1 before set the Own Address1 configuration */ hi2c->Instance->OAR1 &= ~I2C_OAR1_OA1EN; - 8007c9a: 687b ldr r3, [r7, #4] - 8007c9c: 681b ldr r3, [r3, #0] - 8007c9e: 689a ldr r2, [r3, #8] - 8007ca0: 687b ldr r3, [r7, #4] - 8007ca2: 681b ldr r3, [r3, #0] - 8007ca4: f422 4200 bic.w r2, r2, #32768 ; 0x8000 - 8007ca8: 609a str r2, [r3, #8] + 8007c9e: 687b ldr r3, [r7, #4] + 8007ca0: 681b ldr r3, [r3, #0] + 8007ca2: 689a ldr r2, [r3, #8] + 8007ca4: 687b ldr r3, [r7, #4] + 8007ca6: 681b ldr r3, [r3, #0] + 8007ca8: f422 4200 bic.w r2, r2, #32768 ; 0x8000 + 8007cac: 609a str r2, [r3, #8] /* Configure I2Cx: Own Address1 and ack own address1 mode */ if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_7BIT) - 8007caa: 687b ldr r3, [r7, #4] - 8007cac: 68db ldr r3, [r3, #12] - 8007cae: 2b01 cmp r3, #1 - 8007cb0: d107 bne.n 8007cc2 + 8007cae: 687b ldr r3, [r7, #4] + 8007cb0: 68db ldr r3, [r3, #12] + 8007cb2: 2b01 cmp r3, #1 + 8007cb4: d107 bne.n 8007cc6 { hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | hi2c->Init.OwnAddress1); - 8007cb2: 687b ldr r3, [r7, #4] - 8007cb4: 689a ldr r2, [r3, #8] 8007cb6: 687b ldr r3, [r7, #4] - 8007cb8: 681b ldr r3, [r3, #0] - 8007cba: f442 4200 orr.w r2, r2, #32768 ; 0x8000 - 8007cbe: 609a str r2, [r3, #8] - 8007cc0: e006 b.n 8007cd0 + 8007cb8: 689a ldr r2, [r3, #8] + 8007cba: 687b ldr r3, [r7, #4] + 8007cbc: 681b ldr r3, [r3, #0] + 8007cbe: f442 4200 orr.w r2, r2, #32768 ; 0x8000 + 8007cc2: 609a str r2, [r3, #8] + 8007cc4: e006 b.n 8007cd4 } else /* I2C_ADDRESSINGMODE_10BIT */ { hi2c->Instance->OAR1 = (I2C_OAR1_OA1EN | I2C_OAR1_OA1MODE | hi2c->Init.OwnAddress1); - 8007cc2: 687b ldr r3, [r7, #4] - 8007cc4: 689a ldr r2, [r3, #8] 8007cc6: 687b ldr r3, [r7, #4] - 8007cc8: 681b ldr r3, [r3, #0] - 8007cca: f442 4204 orr.w r2, r2, #33792 ; 0x8400 - 8007cce: 609a str r2, [r3, #8] + 8007cc8: 689a ldr r2, [r3, #8] + 8007cca: 687b ldr r3, [r7, #4] + 8007ccc: 681b ldr r3, [r3, #0] + 8007cce: f442 4204 orr.w r2, r2, #33792 ; 0x8400 + 8007cd2: 609a str r2, [r3, #8] } /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Addressing Master mode */ if (hi2c->Init.AddressingMode == I2C_ADDRESSINGMODE_10BIT) - 8007cd0: 687b ldr r3, [r7, #4] - 8007cd2: 68db ldr r3, [r3, #12] - 8007cd4: 2b02 cmp r3, #2 - 8007cd6: d104 bne.n 8007ce2 + 8007cd4: 687b ldr r3, [r7, #4] + 8007cd6: 68db ldr r3, [r3, #12] + 8007cd8: 2b02 cmp r3, #2 + 8007cda: d104 bne.n 8007ce6 { hi2c->Instance->CR2 = (I2C_CR2_ADD10); - 8007cd8: 687b ldr r3, [r7, #4] - 8007cda: 681b ldr r3, [r3, #0] - 8007cdc: f44f 6200 mov.w r2, #2048 ; 0x800 - 8007ce0: 605a str r2, [r3, #4] + 8007cdc: 687b ldr r3, [r7, #4] + 8007cde: 681b ldr r3, [r3, #0] + 8007ce0: f44f 6200 mov.w r2, #2048 ; 0x800 + 8007ce4: 605a str r2, [r3, #4] } /* Enable the AUTOEND by default, and enable NACK (should be disable only during Slave process */ hi2c->Instance->CR2 |= (I2C_CR2_AUTOEND | I2C_CR2_NACK); - 8007ce2: 687b ldr r3, [r7, #4] - 8007ce4: 681b ldr r3, [r3, #0] - 8007ce6: 6859 ldr r1, [r3, #4] - 8007ce8: 687b ldr r3, [r7, #4] - 8007cea: 681a ldr r2, [r3, #0] - 8007cec: 4b1d ldr r3, [pc, #116] ; (8007d64 ) - 8007cee: 430b orrs r3, r1 - 8007cf0: 6053 str r3, [r2, #4] + 8007ce6: 687b ldr r3, [r7, #4] + 8007ce8: 681b ldr r3, [r3, #0] + 8007cea: 6859 ldr r1, [r3, #4] + 8007cec: 687b ldr r3, [r7, #4] + 8007cee: 681a ldr r2, [r3, #0] + 8007cf0: 4b1d ldr r3, [pc, #116] ; (8007d68 ) + 8007cf2: 430b orrs r3, r1 + 8007cf4: 6053 str r3, [r2, #4] /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ /* Disable Own Address2 before set the Own Address2 configuration */ hi2c->Instance->OAR2 &= ~I2C_DUALADDRESS_ENABLE; - 8007cf2: 687b ldr r3, [r7, #4] - 8007cf4: 681b ldr r3, [r3, #0] - 8007cf6: 68da ldr r2, [r3, #12] - 8007cf8: 687b ldr r3, [r7, #4] - 8007cfa: 681b ldr r3, [r3, #0] - 8007cfc: f422 4200 bic.w r2, r2, #32768 ; 0x8000 - 8007d00: 60da str r2, [r3, #12] + 8007cf6: 687b ldr r3, [r7, #4] + 8007cf8: 681b ldr r3, [r3, #0] + 8007cfa: 68da ldr r2, [r3, #12] + 8007cfc: 687b ldr r3, [r7, #4] + 8007cfe: 681b ldr r3, [r3, #0] + 8007d00: f422 4200 bic.w r2, r2, #32768 ; 0x8000 + 8007d04: 60da str r2, [r3, #12] /* Configure I2Cx: Dual mode and Own Address2 */ hi2c->Instance->OAR2 = (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2 | (hi2c->Init.OwnAddress2Masks << 8)); - 8007d02: 687b ldr r3, [r7, #4] - 8007d04: 691a ldr r2, [r3, #16] 8007d06: 687b ldr r3, [r7, #4] - 8007d08: 695b ldr r3, [r3, #20] - 8007d0a: ea42 0103 orr.w r1, r2, r3 - 8007d0e: 687b ldr r3, [r7, #4] - 8007d10: 699b ldr r3, [r3, #24] - 8007d12: 021a lsls r2, r3, #8 - 8007d14: 687b ldr r3, [r7, #4] - 8007d16: 681b ldr r3, [r3, #0] - 8007d18: 430a orrs r2, r1 - 8007d1a: 60da str r2, [r3, #12] + 8007d08: 691a ldr r2, [r3, #16] + 8007d0a: 687b ldr r3, [r7, #4] + 8007d0c: 695b ldr r3, [r3, #20] + 8007d0e: ea42 0103 orr.w r1, r2, r3 + 8007d12: 687b ldr r3, [r7, #4] + 8007d14: 699b ldr r3, [r3, #24] + 8007d16: 021a lsls r2, r3, #8 + 8007d18: 687b ldr r3, [r7, #4] + 8007d1a: 681b ldr r3, [r3, #0] + 8007d1c: 430a orrs r2, r1 + 8007d1e: 60da str r2, [r3, #12] /*---------------------------- I2Cx CR1 Configuration ----------------------*/ /* Configure I2Cx: Generalcall and NoStretch mode */ hi2c->Instance->CR1 = (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode); - 8007d1c: 687b ldr r3, [r7, #4] - 8007d1e: 69d9 ldr r1, [r3, #28] 8007d20: 687b ldr r3, [r7, #4] - 8007d22: 6a1a ldr r2, [r3, #32] + 8007d22: 69d9 ldr r1, [r3, #28] 8007d24: 687b ldr r3, [r7, #4] - 8007d26: 681b ldr r3, [r3, #0] - 8007d28: 430a orrs r2, r1 - 8007d2a: 601a str r2, [r3, #0] + 8007d26: 6a1a ldr r2, [r3, #32] + 8007d28: 687b ldr r3, [r7, #4] + 8007d2a: 681b ldr r3, [r3, #0] + 8007d2c: 430a orrs r2, r1 + 8007d2e: 601a str r2, [r3, #0] /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 8007d2c: 687b ldr r3, [r7, #4] - 8007d2e: 681b ldr r3, [r3, #0] - 8007d30: 681a ldr r2, [r3, #0] - 8007d32: 687b ldr r3, [r7, #4] - 8007d34: 681b ldr r3, [r3, #0] - 8007d36: f042 0201 orr.w r2, r2, #1 - 8007d3a: 601a str r2, [r3, #0] + 8007d30: 687b ldr r3, [r7, #4] + 8007d32: 681b ldr r3, [r3, #0] + 8007d34: 681a ldr r2, [r3, #0] + 8007d36: 687b ldr r3, [r7, #4] + 8007d38: 681b ldr r3, [r3, #0] + 8007d3a: f042 0201 orr.w r2, r2, #1 + 8007d3e: 601a str r2, [r3, #0] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8007d3c: 687b ldr r3, [r7, #4] - 8007d3e: 2200 movs r2, #0 - 8007d40: 645a str r2, [r3, #68] ; 0x44 + 8007d40: 687b ldr r3, [r7, #4] + 8007d42: 2200 movs r2, #0 + 8007d44: 645a str r2, [r3, #68] ; 0x44 hi2c->State = HAL_I2C_STATE_READY; - 8007d42: 687b ldr r3, [r7, #4] - 8007d44: 2220 movs r2, #32 - 8007d46: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8007d46: 687b ldr r3, [r7, #4] + 8007d48: 2220 movs r2, #32 + 8007d4a: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->PreviousState = I2C_STATE_NONE; - 8007d4a: 687b ldr r3, [r7, #4] - 8007d4c: 2200 movs r2, #0 - 8007d4e: 631a str r2, [r3, #48] ; 0x30 + 8007d4e: 687b ldr r3, [r7, #4] + 8007d50: 2200 movs r2, #0 + 8007d52: 631a str r2, [r3, #48] ; 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; - 8007d50: 687b ldr r3, [r7, #4] - 8007d52: 2200 movs r2, #0 - 8007d54: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8007d54: 687b ldr r3, [r7, #4] + 8007d56: 2200 movs r2, #0 + 8007d58: f883 2042 strb.w r2, [r3, #66] ; 0x42 return HAL_OK; - 8007d58: 2300 movs r3, #0 + 8007d5c: 2300 movs r3, #0 } - 8007d5a: 4618 mov r0, r3 - 8007d5c: 3708 adds r7, #8 - 8007d5e: 46bd mov sp, r7 - 8007d60: bd80 pop {r7, pc} - 8007d62: bf00 nop - 8007d64: 02008000 .word 0x02008000 + 8007d5e: 4618 mov r0, r3 + 8007d60: 3708 adds r7, #8 + 8007d62: 46bd mov sp, r7 + 8007d64: bd80 pop {r7, pc} + 8007d66: bf00 nop + 8007d68: 02008000 .word 0x02008000 -08007d68 : +08007d6c : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_DeInit(I2C_HandleTypeDef *hi2c) { - 8007d68: b580 push {r7, lr} - 8007d6a: b082 sub sp, #8 - 8007d6c: af00 add r7, sp, #0 - 8007d6e: 6078 str r0, [r7, #4] + 8007d6c: b580 push {r7, lr} + 8007d6e: b082 sub sp, #8 + 8007d70: af00 add r7, sp, #0 + 8007d72: 6078 str r0, [r7, #4] /* Check the I2C handle allocation */ if (hi2c == NULL) - 8007d70: 687b ldr r3, [r7, #4] - 8007d72: 2b00 cmp r3, #0 - 8007d74: d101 bne.n 8007d7a + 8007d74: 687b ldr r3, [r7, #4] + 8007d76: 2b00 cmp r3, #0 + 8007d78: d101 bne.n 8007d7e { return HAL_ERROR; - 8007d76: 2301 movs r3, #1 - 8007d78: e021 b.n 8007dbe + 8007d7a: 2301 movs r3, #1 + 8007d7c: e021 b.n 8007dc2 } /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); hi2c->State = HAL_I2C_STATE_BUSY; - 8007d7a: 687b ldr r3, [r7, #4] - 8007d7c: 2224 movs r2, #36 ; 0x24 - 8007d7e: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8007d7e: 687b ldr r3, [r7, #4] + 8007d80: 2224 movs r2, #36 ; 0x24 + 8007d82: f883 2041 strb.w r2, [r3, #65] ; 0x41 /* Disable the I2C Peripheral Clock */ __HAL_I2C_DISABLE(hi2c); - 8007d82: 687b ldr r3, [r7, #4] - 8007d84: 681b ldr r3, [r3, #0] - 8007d86: 681a ldr r2, [r3, #0] - 8007d88: 687b ldr r3, [r7, #4] - 8007d8a: 681b ldr r3, [r3, #0] - 8007d8c: f022 0201 bic.w r2, r2, #1 - 8007d90: 601a str r2, [r3, #0] + 8007d86: 687b ldr r3, [r7, #4] + 8007d88: 681b ldr r3, [r3, #0] + 8007d8a: 681a ldr r2, [r3, #0] + 8007d8c: 687b ldr r3, [r7, #4] + 8007d8e: 681b ldr r3, [r3, #0] + 8007d90: f022 0201 bic.w r2, r2, #1 + 8007d94: 601a str r2, [r3, #0] /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ hi2c->MspDeInitCallback(hi2c); #else /* DeInit the low level hardware: GPIO, CLOCK, NVIC */ HAL_I2C_MspDeInit(hi2c); - 8007d92: 6878 ldr r0, [r7, #4] - 8007d94: f7fc fb22 bl 80043dc + 8007d96: 6878 ldr r0, [r7, #4] + 8007d98: f7fc fb22 bl 80043e0 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8007d98: 687b ldr r3, [r7, #4] - 8007d9a: 2200 movs r2, #0 - 8007d9c: 645a str r2, [r3, #68] ; 0x44 + 8007d9c: 687b ldr r3, [r7, #4] + 8007d9e: 2200 movs r2, #0 + 8007da0: 645a str r2, [r3, #68] ; 0x44 hi2c->State = HAL_I2C_STATE_RESET; - 8007d9e: 687b ldr r3, [r7, #4] - 8007da0: 2200 movs r2, #0 - 8007da2: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8007da2: 687b ldr r3, [r7, #4] + 8007da4: 2200 movs r2, #0 + 8007da6: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->PreviousState = I2C_STATE_NONE; - 8007da6: 687b ldr r3, [r7, #4] - 8007da8: 2200 movs r2, #0 - 8007daa: 631a str r2, [r3, #48] ; 0x30 + 8007daa: 687b ldr r3, [r7, #4] + 8007dac: 2200 movs r2, #0 + 8007dae: 631a str r2, [r3, #48] ; 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; - 8007dac: 687b ldr r3, [r7, #4] - 8007dae: 2200 movs r2, #0 - 8007db0: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8007db0: 687b ldr r3, [r7, #4] + 8007db2: 2200 movs r2, #0 + 8007db4: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Release Lock */ __HAL_UNLOCK(hi2c); - 8007db4: 687b ldr r3, [r7, #4] - 8007db6: 2200 movs r2, #0 - 8007db8: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8007db8: 687b ldr r3, [r7, #4] + 8007dba: 2200 movs r2, #0 + 8007dbc: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_OK; - 8007dbc: 2300 movs r3, #0 + 8007dc0: 2300 movs r3, #0 } - 8007dbe: 4618 mov r0, r3 - 8007dc0: 3708 adds r7, #8 - 8007dc2: 46bd mov sp, r7 - 8007dc4: bd80 pop {r7, pc} + 8007dc2: 4618 mov r0, r3 + 8007dc4: 3708 adds r7, #8 + 8007dc6: 46bd mov sp, r7 + 8007dc8: bd80 pop {r7, pc} ... -08007dc8 : +08007dcc : * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8007dc8: b580 push {r7, lr} - 8007dca: b088 sub sp, #32 - 8007dcc: af02 add r7, sp, #8 - 8007dce: 60f8 str r0, [r7, #12] - 8007dd0: 4608 mov r0, r1 - 8007dd2: 4611 mov r1, r2 - 8007dd4: 461a mov r2, r3 - 8007dd6: 4603 mov r3, r0 - 8007dd8: 817b strh r3, [r7, #10] - 8007dda: 460b mov r3, r1 - 8007ddc: 813b strh r3, [r7, #8] - 8007dde: 4613 mov r3, r2 - 8007de0: 80fb strh r3, [r7, #6] + 8007dcc: b580 push {r7, lr} + 8007dce: b088 sub sp, #32 + 8007dd0: af02 add r7, sp, #8 + 8007dd2: 60f8 str r0, [r7, #12] + 8007dd4: 4608 mov r0, r1 + 8007dd6: 4611 mov r1, r2 + 8007dd8: 461a mov r2, r3 + 8007dda: 4603 mov r3, r0 + 8007ddc: 817b strh r3, [r7, #10] + 8007dde: 460b mov r3, r1 + 8007de0: 813b strh r3, [r7, #8] + 8007de2: 4613 mov r3, r2 + 8007de4: 80fb strh r3, [r7, #6] uint32_t tickstart; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) - 8007de2: 68fb ldr r3, [r7, #12] - 8007de4: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 8007de8: b2db uxtb r3, r3 - 8007dea: 2b20 cmp r3, #32 - 8007dec: f040 80f9 bne.w 8007fe2 + 8007de6: 68fb ldr r3, [r7, #12] + 8007de8: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 8007dec: b2db uxtb r3, r3 + 8007dee: 2b20 cmp r3, #32 + 8007df0: f040 80f9 bne.w 8007fe6 { if ((pData == NULL) || (Size == 0U)) - 8007df0: 6a3b ldr r3, [r7, #32] - 8007df2: 2b00 cmp r3, #0 - 8007df4: d002 beq.n 8007dfc - 8007df6: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8007df8: 2b00 cmp r3, #0 - 8007dfa: d105 bne.n 8007e08 + 8007df4: 6a3b ldr r3, [r7, #32] + 8007df6: 2b00 cmp r3, #0 + 8007df8: d002 beq.n 8007e00 + 8007dfa: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8007dfc: 2b00 cmp r3, #0 + 8007dfe: d105 bne.n 8007e0c { hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - 8007dfc: 68fb ldr r3, [r7, #12] - 8007dfe: f44f 7200 mov.w r2, #512 ; 0x200 - 8007e02: 645a str r2, [r3, #68] ; 0x44 + 8007e00: 68fb ldr r3, [r7, #12] + 8007e02: f44f 7200 mov.w r2, #512 ; 0x200 + 8007e06: 645a str r2, [r3, #68] ; 0x44 return HAL_ERROR; - 8007e04: 2301 movs r3, #1 - 8007e06: e0ed b.n 8007fe4 + 8007e08: 2301 movs r3, #1 + 8007e0a: e0ed b.n 8007fe8 } /* Process Locked */ __HAL_LOCK(hi2c); - 8007e08: 68fb ldr r3, [r7, #12] - 8007e0a: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 - 8007e0e: 2b01 cmp r3, #1 - 8007e10: d101 bne.n 8007e16 - 8007e12: 2302 movs r3, #2 - 8007e14: e0e6 b.n 8007fe4 - 8007e16: 68fb ldr r3, [r7, #12] - 8007e18: 2201 movs r2, #1 - 8007e1a: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8007e0c: 68fb ldr r3, [r7, #12] + 8007e0e: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 + 8007e12: 2b01 cmp r3, #1 + 8007e14: d101 bne.n 8007e1a + 8007e16: 2302 movs r3, #2 + 8007e18: e0e6 b.n 8007fe8 + 8007e1a: 68fb ldr r3, [r7, #12] + 8007e1c: 2201 movs r2, #1 + 8007e1e: f883 2040 strb.w r2, [r3, #64] ; 0x40 /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); - 8007e1e: f7fd f84f bl 8004ec0 - 8007e22: 6178 str r0, [r7, #20] + 8007e22: f7fd f84f bl 8004ec4 + 8007e26: 6178 str r0, [r7, #20] if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) - 8007e24: 697b ldr r3, [r7, #20] - 8007e26: 9300 str r3, [sp, #0] - 8007e28: 2319 movs r3, #25 - 8007e2a: 2201 movs r2, #1 - 8007e2c: f44f 4100 mov.w r1, #32768 ; 0x8000 - 8007e30: 68f8 ldr r0, [r7, #12] - 8007e32: f000 fad1 bl 80083d8 - 8007e36: 4603 mov r3, r0 - 8007e38: 2b00 cmp r3, #0 - 8007e3a: d001 beq.n 8007e40 + 8007e28: 697b ldr r3, [r7, #20] + 8007e2a: 9300 str r3, [sp, #0] + 8007e2c: 2319 movs r3, #25 + 8007e2e: 2201 movs r2, #1 + 8007e30: f44f 4100 mov.w r1, #32768 ; 0x8000 + 8007e34: 68f8 ldr r0, [r7, #12] + 8007e36: f000 fad1 bl 80083dc + 8007e3a: 4603 mov r3, r0 + 8007e3c: 2b00 cmp r3, #0 + 8007e3e: d001 beq.n 8007e44 { return HAL_ERROR; - 8007e3c: 2301 movs r3, #1 - 8007e3e: e0d1 b.n 8007fe4 + 8007e40: 2301 movs r3, #1 + 8007e42: e0d1 b.n 8007fe8 } hi2c->State = HAL_I2C_STATE_BUSY_TX; - 8007e40: 68fb ldr r3, [r7, #12] - 8007e42: 2221 movs r2, #33 ; 0x21 - 8007e44: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8007e44: 68fb ldr r3, [r7, #12] + 8007e46: 2221 movs r2, #33 ; 0x21 + 8007e48: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_MEM; - 8007e48: 68fb ldr r3, [r7, #12] - 8007e4a: 2240 movs r2, #64 ; 0x40 - 8007e4c: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8007e4c: 68fb ldr r3, [r7, #12] + 8007e4e: 2240 movs r2, #64 ; 0x40 + 8007e50: f883 2042 strb.w r2, [r3, #66] ; 0x42 hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8007e50: 68fb ldr r3, [r7, #12] - 8007e52: 2200 movs r2, #0 - 8007e54: 645a str r2, [r3, #68] ; 0x44 + 8007e54: 68fb ldr r3, [r7, #12] + 8007e56: 2200 movs r2, #0 + 8007e58: 645a str r2, [r3, #68] ; 0x44 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; - 8007e56: 68fb ldr r3, [r7, #12] - 8007e58: 6a3a ldr r2, [r7, #32] - 8007e5a: 625a str r2, [r3, #36] ; 0x24 + 8007e5a: 68fb ldr r3, [r7, #12] + 8007e5c: 6a3a ldr r2, [r7, #32] + 8007e5e: 625a str r2, [r3, #36] ; 0x24 hi2c->XferCount = Size; - 8007e5c: 68fb ldr r3, [r7, #12] - 8007e5e: 8cba ldrh r2, [r7, #36] ; 0x24 - 8007e60: 855a strh r2, [r3, #42] ; 0x2a + 8007e60: 68fb ldr r3, [r7, #12] + 8007e62: 8cba ldrh r2, [r7, #36] ; 0x24 + 8007e64: 855a strh r2, [r3, #42] ; 0x2a hi2c->XferISR = NULL; - 8007e62: 68fb ldr r3, [r7, #12] - 8007e64: 2200 movs r2, #0 - 8007e66: 635a str r2, [r3, #52] ; 0x34 + 8007e66: 68fb ldr r3, [r7, #12] + 8007e68: 2200 movs r2, #0 + 8007e6a: 635a str r2, [r3, #52] ; 0x34 /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) - 8007e68: 88f8 ldrh r0, [r7, #6] - 8007e6a: 893a ldrh r2, [r7, #8] - 8007e6c: 8979 ldrh r1, [r7, #10] - 8007e6e: 697b ldr r3, [r7, #20] - 8007e70: 9301 str r3, [sp, #4] - 8007e72: 6abb ldr r3, [r7, #40] ; 0x28 - 8007e74: 9300 str r3, [sp, #0] - 8007e76: 4603 mov r3, r0 - 8007e78: 68f8 ldr r0, [r7, #12] - 8007e7a: f000 f9e1 bl 8008240 - 8007e7e: 4603 mov r3, r0 - 8007e80: 2b00 cmp r3, #0 - 8007e82: d005 beq.n 8007e90 + 8007e6c: 88f8 ldrh r0, [r7, #6] + 8007e6e: 893a ldrh r2, [r7, #8] + 8007e70: 8979 ldrh r1, [r7, #10] + 8007e72: 697b ldr r3, [r7, #20] + 8007e74: 9301 str r3, [sp, #4] + 8007e76: 6abb ldr r3, [r7, #40] ; 0x28 + 8007e78: 9300 str r3, [sp, #0] + 8007e7a: 4603 mov r3, r0 + 8007e7c: 68f8 ldr r0, [r7, #12] + 8007e7e: f000 f9e1 bl 8008244 + 8007e82: 4603 mov r3, r0 + 8007e84: 2b00 cmp r3, #0 + 8007e86: d005 beq.n 8007e94 { /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8007e84: 68fb ldr r3, [r7, #12] - 8007e86: 2200 movs r2, #0 - 8007e88: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8007e88: 68fb ldr r3, [r7, #12] + 8007e8a: 2200 movs r2, #0 + 8007e8c: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_ERROR; - 8007e8c: 2301 movs r3, #1 - 8007e8e: e0a9 b.n 8007fe4 + 8007e90: 2301 movs r3, #1 + 8007e92: e0a9 b.n 8007fe8 } /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE */ if (hi2c->XferCount > MAX_NBYTE_SIZE) - 8007e90: 68fb ldr r3, [r7, #12] - 8007e92: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8007e94: b29b uxth r3, r3 - 8007e96: 2bff cmp r3, #255 ; 0xff - 8007e98: d90e bls.n 8007eb8 + 8007e94: 68fb ldr r3, [r7, #12] + 8007e96: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8007e98: b29b uxth r3, r3 + 8007e9a: 2bff cmp r3, #255 ; 0xff + 8007e9c: d90e bls.n 8007ebc { hi2c->XferSize = MAX_NBYTE_SIZE; - 8007e9a: 68fb ldr r3, [r7, #12] - 8007e9c: 22ff movs r2, #255 ; 0xff - 8007e9e: 851a strh r2, [r3, #40] ; 0x28 + 8007e9e: 68fb ldr r3, [r7, #12] + 8007ea0: 22ff movs r2, #255 ; 0xff + 8007ea2: 851a strh r2, [r3, #40] ; 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 8007ea0: 68fb ldr r3, [r7, #12] - 8007ea2: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8007ea4: b2da uxtb r2, r3 - 8007ea6: 8979 ldrh r1, [r7, #10] - 8007ea8: 2300 movs r3, #0 - 8007eaa: 9300 str r3, [sp, #0] - 8007eac: f04f 7380 mov.w r3, #16777216 ; 0x1000000 - 8007eb0: 68f8 ldr r0, [r7, #12] - 8007eb2: f000 fbb3 bl 800861c - 8007eb6: e00f b.n 8007ed8 + 8007ea4: 68fb ldr r3, [r7, #12] + 8007ea6: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8007ea8: b2da uxtb r2, r3 + 8007eaa: 8979 ldrh r1, [r7, #10] + 8007eac: 2300 movs r3, #0 + 8007eae: 9300 str r3, [sp, #0] + 8007eb0: f04f 7380 mov.w r3, #16777216 ; 0x1000000 + 8007eb4: 68f8 ldr r0, [r7, #12] + 8007eb6: f000 fbb3 bl 8008620 + 8007eba: e00f b.n 8007edc } else { hi2c->XferSize = hi2c->XferCount; - 8007eb8: 68fb ldr r3, [r7, #12] - 8007eba: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8007ebc: b29a uxth r2, r3 - 8007ebe: 68fb ldr r3, [r7, #12] - 8007ec0: 851a strh r2, [r3, #40] ; 0x28 - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); + 8007ebc: 68fb ldr r3, [r7, #12] + 8007ebe: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8007ec0: b29a uxth r2, r3 8007ec2: 68fb ldr r3, [r7, #12] - 8007ec4: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8007ec6: b2da uxtb r2, r3 - 8007ec8: 8979 ldrh r1, [r7, #10] - 8007eca: 2300 movs r3, #0 - 8007ecc: 9300 str r3, [sp, #0] - 8007ece: f04f 7300 mov.w r3, #33554432 ; 0x2000000 - 8007ed2: 68f8 ldr r0, [r7, #12] - 8007ed4: f000 fba2 bl 800861c + 8007ec4: 851a strh r2, [r3, #40] ; 0x28 + I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); + 8007ec6: 68fb ldr r3, [r7, #12] + 8007ec8: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8007eca: b2da uxtb r2, r3 + 8007ecc: 8979 ldrh r1, [r7, #10] + 8007ece: 2300 movs r3, #0 + 8007ed0: 9300 str r3, [sp, #0] + 8007ed2: f04f 7300 mov.w r3, #33554432 ; 0x2000000 + 8007ed6: 68f8 ldr r0, [r7, #12] + 8007ed8: f000 fba2 bl 8008620 } do { /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8007ed8: 697a ldr r2, [r7, #20] - 8007eda: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8007edc: 68f8 ldr r0, [r7, #12] - 8007ede: f000 fabb bl 8008458 - 8007ee2: 4603 mov r3, r0 - 8007ee4: 2b00 cmp r3, #0 - 8007ee6: d001 beq.n 8007eec + 8007edc: 697a ldr r2, [r7, #20] + 8007ede: 6ab9 ldr r1, [r7, #40] ; 0x28 + 8007ee0: 68f8 ldr r0, [r7, #12] + 8007ee2: f000 fabb bl 800845c + 8007ee6: 4603 mov r3, r0 + 8007ee8: 2b00 cmp r3, #0 + 8007eea: d001 beq.n 8007ef0 { return HAL_ERROR; - 8007ee8: 2301 movs r3, #1 - 8007eea: e07b b.n 8007fe4 + 8007eec: 2301 movs r3, #1 + 8007eee: e07b b.n 8007fe8 } /* Write data to TXDR */ hi2c->Instance->TXDR = *hi2c->pBuffPtr; - 8007eec: 68fb ldr r3, [r7, #12] - 8007eee: 6a5b ldr r3, [r3, #36] ; 0x24 - 8007ef0: 781a ldrb r2, [r3, #0] - 8007ef2: 68fb ldr r3, [r7, #12] - 8007ef4: 681b ldr r3, [r3, #0] - 8007ef6: 629a str r2, [r3, #40] ; 0x28 + 8007ef0: 68fb ldr r3, [r7, #12] + 8007ef2: 6a5b ldr r3, [r3, #36] ; 0x24 + 8007ef4: 781a ldrb r2, [r3, #0] + 8007ef6: 68fb ldr r3, [r7, #12] + 8007ef8: 681b ldr r3, [r3, #0] + 8007efa: 629a str r2, [r3, #40] ; 0x28 /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8007ef8: 68fb ldr r3, [r7, #12] - 8007efa: 6a5b ldr r3, [r3, #36] ; 0x24 - 8007efc: 1c5a adds r2, r3, #1 - 8007efe: 68fb ldr r3, [r7, #12] - 8007f00: 625a str r2, [r3, #36] ; 0x24 + 8007efc: 68fb ldr r3, [r7, #12] + 8007efe: 6a5b ldr r3, [r3, #36] ; 0x24 + 8007f00: 1c5a adds r2, r3, #1 + 8007f02: 68fb ldr r3, [r7, #12] + 8007f04: 625a str r2, [r3, #36] ; 0x24 hi2c->XferCount--; - 8007f02: 68fb ldr r3, [r7, #12] - 8007f04: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8007f06: b29b uxth r3, r3 - 8007f08: 3b01 subs r3, #1 - 8007f0a: b29a uxth r2, r3 - 8007f0c: 68fb ldr r3, [r7, #12] - 8007f0e: 855a strh r2, [r3, #42] ; 0x2a - hi2c->XferSize--; + 8007f06: 68fb ldr r3, [r7, #12] + 8007f08: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8007f0a: b29b uxth r3, r3 + 8007f0c: 3b01 subs r3, #1 + 8007f0e: b29a uxth r2, r3 8007f10: 68fb ldr r3, [r7, #12] - 8007f12: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8007f14: 3b01 subs r3, #1 - 8007f16: b29a uxth r2, r3 - 8007f18: 68fb ldr r3, [r7, #12] - 8007f1a: 851a strh r2, [r3, #40] ; 0x28 + 8007f12: 855a strh r2, [r3, #42] ; 0x2a + hi2c->XferSize--; + 8007f14: 68fb ldr r3, [r7, #12] + 8007f16: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8007f18: 3b01 subs r3, #1 + 8007f1a: b29a uxth r2, r3 + 8007f1c: 68fb ldr r3, [r7, #12] + 8007f1e: 851a strh r2, [r3, #40] ; 0x28 if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - 8007f1c: 68fb ldr r3, [r7, #12] - 8007f1e: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8007f20: b29b uxth r3, r3 - 8007f22: 2b00 cmp r3, #0 - 8007f24: d034 beq.n 8007f90 - 8007f26: 68fb ldr r3, [r7, #12] - 8007f28: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8007f2a: 2b00 cmp r3, #0 - 8007f2c: d130 bne.n 8007f90 + 8007f20: 68fb ldr r3, [r7, #12] + 8007f22: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8007f24: b29b uxth r3, r3 + 8007f26: 2b00 cmp r3, #0 + 8007f28: d034 beq.n 8007f94 + 8007f2a: 68fb ldr r3, [r7, #12] + 8007f2c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8007f2e: 2b00 cmp r3, #0 + 8007f30: d130 bne.n 8007f94 { /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - 8007f2e: 697b ldr r3, [r7, #20] - 8007f30: 9300 str r3, [sp, #0] - 8007f32: 6abb ldr r3, [r7, #40] ; 0x28 - 8007f34: 2200 movs r2, #0 - 8007f36: 2180 movs r1, #128 ; 0x80 - 8007f38: 68f8 ldr r0, [r7, #12] - 8007f3a: f000 fa4d bl 80083d8 - 8007f3e: 4603 mov r3, r0 - 8007f40: 2b00 cmp r3, #0 - 8007f42: d001 beq.n 8007f48 + 8007f32: 697b ldr r3, [r7, #20] + 8007f34: 9300 str r3, [sp, #0] + 8007f36: 6abb ldr r3, [r7, #40] ; 0x28 + 8007f38: 2200 movs r2, #0 + 8007f3a: 2180 movs r1, #128 ; 0x80 + 8007f3c: 68f8 ldr r0, [r7, #12] + 8007f3e: f000 fa4d bl 80083dc + 8007f42: 4603 mov r3, r0 + 8007f44: 2b00 cmp r3, #0 + 8007f46: d001 beq.n 8007f4c { return HAL_ERROR; - 8007f44: 2301 movs r3, #1 - 8007f46: e04d b.n 8007fe4 + 8007f48: 2301 movs r3, #1 + 8007f4a: e04d b.n 8007fe8 } if (hi2c->XferCount > MAX_NBYTE_SIZE) - 8007f48: 68fb ldr r3, [r7, #12] - 8007f4a: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8007f4c: b29b uxth r3, r3 - 8007f4e: 2bff cmp r3, #255 ; 0xff - 8007f50: d90e bls.n 8007f70 + 8007f4c: 68fb ldr r3, [r7, #12] + 8007f4e: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8007f50: b29b uxth r3, r3 + 8007f52: 2bff cmp r3, #255 ; 0xff + 8007f54: d90e bls.n 8007f74 { hi2c->XferSize = MAX_NBYTE_SIZE; - 8007f52: 68fb ldr r3, [r7, #12] - 8007f54: 22ff movs r2, #255 ; 0xff - 8007f56: 851a strh r2, [r3, #40] ; 0x28 + 8007f56: 68fb ldr r3, [r7, #12] + 8007f58: 22ff movs r2, #255 ; 0xff + 8007f5a: 851a strh r2, [r3, #40] ; 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 8007f58: 68fb ldr r3, [r7, #12] - 8007f5a: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8007f5c: b2da uxtb r2, r3 - 8007f5e: 8979 ldrh r1, [r7, #10] - 8007f60: 2300 movs r3, #0 - 8007f62: 9300 str r3, [sp, #0] - 8007f64: f04f 7380 mov.w r3, #16777216 ; 0x1000000 - 8007f68: 68f8 ldr r0, [r7, #12] - 8007f6a: f000 fb57 bl 800861c - 8007f6e: e00f b.n 8007f90 + 8007f5c: 68fb ldr r3, [r7, #12] + 8007f5e: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8007f60: b2da uxtb r2, r3 + 8007f62: 8979 ldrh r1, [r7, #10] + 8007f64: 2300 movs r3, #0 + 8007f66: 9300 str r3, [sp, #0] + 8007f68: f04f 7380 mov.w r3, #16777216 ; 0x1000000 + 8007f6c: 68f8 ldr r0, [r7, #12] + 8007f6e: f000 fb57 bl 8008620 + 8007f72: e00f b.n 8007f94 } else { hi2c->XferSize = hi2c->XferCount; - 8007f70: 68fb ldr r3, [r7, #12] - 8007f72: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8007f74: b29a uxth r2, r3 - 8007f76: 68fb ldr r3, [r7, #12] - 8007f78: 851a strh r2, [r3, #40] ; 0x28 - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); + 8007f74: 68fb ldr r3, [r7, #12] + 8007f76: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8007f78: b29a uxth r2, r3 8007f7a: 68fb ldr r3, [r7, #12] - 8007f7c: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8007f7e: b2da uxtb r2, r3 - 8007f80: 8979 ldrh r1, [r7, #10] - 8007f82: 2300 movs r3, #0 - 8007f84: 9300 str r3, [sp, #0] - 8007f86: f04f 7300 mov.w r3, #33554432 ; 0x2000000 - 8007f8a: 68f8 ldr r0, [r7, #12] - 8007f8c: f000 fb46 bl 800861c + 8007f7c: 851a strh r2, [r3, #40] ; 0x28 + I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); + 8007f7e: 68fb ldr r3, [r7, #12] + 8007f80: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8007f82: b2da uxtb r2, r3 + 8007f84: 8979 ldrh r1, [r7, #10] + 8007f86: 2300 movs r3, #0 + 8007f88: 9300 str r3, [sp, #0] + 8007f8a: f04f 7300 mov.w r3, #33554432 ; 0x2000000 + 8007f8e: 68f8 ldr r0, [r7, #12] + 8007f90: f000 fb46 bl 8008620 } } } while (hi2c->XferCount > 0U); - 8007f90: 68fb ldr r3, [r7, #12] - 8007f92: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8007f94: b29b uxth r3, r3 - 8007f96: 2b00 cmp r3, #0 - 8007f98: d19e bne.n 8007ed8 + 8007f94: 68fb ldr r3, [r7, #12] + 8007f96: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8007f98: b29b uxth r3, r3 + 8007f9a: 2b00 cmp r3, #0 + 8007f9c: d19e bne.n 8007edc /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ /* Wait until STOPF flag is reset */ if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 8007f9a: 697a ldr r2, [r7, #20] - 8007f9c: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8007f9e: 68f8 ldr r0, [r7, #12] - 8007fa0: f000 fa9a bl 80084d8 - 8007fa4: 4603 mov r3, r0 - 8007fa6: 2b00 cmp r3, #0 - 8007fa8: d001 beq.n 8007fae + 8007f9e: 697a ldr r2, [r7, #20] + 8007fa0: 6ab9 ldr r1, [r7, #40] ; 0x28 + 8007fa2: 68f8 ldr r0, [r7, #12] + 8007fa4: f000 fa9a bl 80084dc + 8007fa8: 4603 mov r3, r0 + 8007faa: 2b00 cmp r3, #0 + 8007fac: d001 beq.n 8007fb2 { return HAL_ERROR; - 8007faa: 2301 movs r3, #1 - 8007fac: e01a b.n 8007fe4 + 8007fae: 2301 movs r3, #1 + 8007fb0: e01a b.n 8007fe8 } /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 8007fae: 68fb ldr r3, [r7, #12] - 8007fb0: 681b ldr r3, [r3, #0] - 8007fb2: 2220 movs r2, #32 - 8007fb4: 61da str r2, [r3, #28] + 8007fb2: 68fb ldr r3, [r7, #12] + 8007fb4: 681b ldr r3, [r3, #0] + 8007fb6: 2220 movs r2, #32 + 8007fb8: 61da str r2, [r3, #28] /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); - 8007fb6: 68fb ldr r3, [r7, #12] - 8007fb8: 681b ldr r3, [r3, #0] - 8007fba: 6859 ldr r1, [r3, #4] - 8007fbc: 68fb ldr r3, [r7, #12] - 8007fbe: 681a ldr r2, [r3, #0] - 8007fc0: 4b0a ldr r3, [pc, #40] ; (8007fec ) - 8007fc2: 400b ands r3, r1 - 8007fc4: 6053 str r3, [r2, #4] + 8007fba: 68fb ldr r3, [r7, #12] + 8007fbc: 681b ldr r3, [r3, #0] + 8007fbe: 6859 ldr r1, [r3, #4] + 8007fc0: 68fb ldr r3, [r7, #12] + 8007fc2: 681a ldr r2, [r3, #0] + 8007fc4: 4b0a ldr r3, [pc, #40] ; (8007ff0 ) + 8007fc6: 400b ands r3, r1 + 8007fc8: 6053 str r3, [r2, #4] hi2c->State = HAL_I2C_STATE_READY; - 8007fc6: 68fb ldr r3, [r7, #12] - 8007fc8: 2220 movs r2, #32 - 8007fca: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8007fca: 68fb ldr r3, [r7, #12] + 8007fcc: 2220 movs r2, #32 + 8007fce: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_NONE; - 8007fce: 68fb ldr r3, [r7, #12] - 8007fd0: 2200 movs r2, #0 - 8007fd2: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8007fd2: 68fb ldr r3, [r7, #12] + 8007fd4: 2200 movs r2, #0 + 8007fd6: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8007fd6: 68fb ldr r3, [r7, #12] - 8007fd8: 2200 movs r2, #0 - 8007fda: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8007fda: 68fb ldr r3, [r7, #12] + 8007fdc: 2200 movs r2, #0 + 8007fde: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_OK; - 8007fde: 2300 movs r3, #0 - 8007fe0: e000 b.n 8007fe4 + 8007fe2: 2300 movs r3, #0 + 8007fe4: e000 b.n 8007fe8 } else { return HAL_BUSY; - 8007fe2: 2302 movs r3, #2 + 8007fe6: 2302 movs r3, #2 } } - 8007fe4: 4618 mov r0, r3 - 8007fe6: 3718 adds r7, #24 - 8007fe8: 46bd mov sp, r7 - 8007fea: bd80 pop {r7, pc} - 8007fec: fe00e800 .word 0xfe00e800 + 8007fe8: 4618 mov r0, r3 + 8007fea: 3718 adds r7, #24 + 8007fec: 46bd mov sp, r7 + 8007fee: bd80 pop {r7, pc} + 8007ff0: fe00e800 .word 0xfe00e800 -08007ff0 : +08007ff4 : * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { - 8007ff0: b580 push {r7, lr} - 8007ff2: b088 sub sp, #32 - 8007ff4: af02 add r7, sp, #8 - 8007ff6: 60f8 str r0, [r7, #12] - 8007ff8: 4608 mov r0, r1 - 8007ffa: 4611 mov r1, r2 - 8007ffc: 461a mov r2, r3 - 8007ffe: 4603 mov r3, r0 - 8008000: 817b strh r3, [r7, #10] - 8008002: 460b mov r3, r1 - 8008004: 813b strh r3, [r7, #8] - 8008006: 4613 mov r3, r2 - 8008008: 80fb strh r3, [r7, #6] + 8007ff4: b580 push {r7, lr} + 8007ff6: b088 sub sp, #32 + 8007ff8: af02 add r7, sp, #8 + 8007ffa: 60f8 str r0, [r7, #12] + 8007ffc: 4608 mov r0, r1 + 8007ffe: 4611 mov r1, r2 + 8008000: 461a mov r2, r3 + 8008002: 4603 mov r3, r0 + 8008004: 817b strh r3, [r7, #10] + 8008006: 460b mov r3, r1 + 8008008: 813b strh r3, [r7, #8] + 800800a: 4613 mov r3, r2 + 800800c: 80fb strh r3, [r7, #6] uint32_t tickstart; /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) - 800800a: 68fb ldr r3, [r7, #12] - 800800c: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 8008010: b2db uxtb r3, r3 - 8008012: 2b20 cmp r3, #32 - 8008014: f040 80fd bne.w 8008212 + 800800e: 68fb ldr r3, [r7, #12] + 8008010: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 8008014: b2db uxtb r3, r3 + 8008016: 2b20 cmp r3, #32 + 8008018: f040 80fd bne.w 8008216 { if ((pData == NULL) || (Size == 0U)) - 8008018: 6a3b ldr r3, [r7, #32] - 800801a: 2b00 cmp r3, #0 - 800801c: d002 beq.n 8008024 - 800801e: 8cbb ldrh r3, [r7, #36] ; 0x24 - 8008020: 2b00 cmp r3, #0 - 8008022: d105 bne.n 8008030 + 800801c: 6a3b ldr r3, [r7, #32] + 800801e: 2b00 cmp r3, #0 + 8008020: d002 beq.n 8008028 + 8008022: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8008024: 2b00 cmp r3, #0 + 8008026: d105 bne.n 8008034 { hi2c->ErrorCode = HAL_I2C_ERROR_INVALID_PARAM; - 8008024: 68fb ldr r3, [r7, #12] - 8008026: f44f 7200 mov.w r2, #512 ; 0x200 - 800802a: 645a str r2, [r3, #68] ; 0x44 + 8008028: 68fb ldr r3, [r7, #12] + 800802a: f44f 7200 mov.w r2, #512 ; 0x200 + 800802e: 645a str r2, [r3, #68] ; 0x44 return HAL_ERROR; - 800802c: 2301 movs r3, #1 - 800802e: e0f1 b.n 8008214 + 8008030: 2301 movs r3, #1 + 8008032: e0f1 b.n 8008218 } /* Process Locked */ __HAL_LOCK(hi2c); - 8008030: 68fb ldr r3, [r7, #12] - 8008032: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 - 8008036: 2b01 cmp r3, #1 - 8008038: d101 bne.n 800803e - 800803a: 2302 movs r3, #2 - 800803c: e0ea b.n 8008214 - 800803e: 68fb ldr r3, [r7, #12] - 8008040: 2201 movs r2, #1 - 8008042: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8008034: 68fb ldr r3, [r7, #12] + 8008036: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 + 800803a: 2b01 cmp r3, #1 + 800803c: d101 bne.n 8008042 + 800803e: 2302 movs r3, #2 + 8008040: e0ea b.n 8008218 + 8008042: 68fb ldr r3, [r7, #12] + 8008044: 2201 movs r2, #1 + 8008046: f883 2040 strb.w r2, [r3, #64] ; 0x40 /* Init tickstart for timeout management*/ tickstart = HAL_GetTick(); - 8008046: f7fc ff3b bl 8004ec0 - 800804a: 6178 str r0, [r7, #20] + 800804a: f7fc ff3b bl 8004ec4 + 800804e: 6178 str r0, [r7, #20] if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY, tickstart) != HAL_OK) - 800804c: 697b ldr r3, [r7, #20] - 800804e: 9300 str r3, [sp, #0] - 8008050: 2319 movs r3, #25 - 8008052: 2201 movs r2, #1 - 8008054: f44f 4100 mov.w r1, #32768 ; 0x8000 - 8008058: 68f8 ldr r0, [r7, #12] - 800805a: f000 f9bd bl 80083d8 - 800805e: 4603 mov r3, r0 - 8008060: 2b00 cmp r3, #0 - 8008062: d001 beq.n 8008068 + 8008050: 697b ldr r3, [r7, #20] + 8008052: 9300 str r3, [sp, #0] + 8008054: 2319 movs r3, #25 + 8008056: 2201 movs r2, #1 + 8008058: f44f 4100 mov.w r1, #32768 ; 0x8000 + 800805c: 68f8 ldr r0, [r7, #12] + 800805e: f000 f9bd bl 80083dc + 8008062: 4603 mov r3, r0 + 8008064: 2b00 cmp r3, #0 + 8008066: d001 beq.n 800806c { return HAL_ERROR; - 8008064: 2301 movs r3, #1 - 8008066: e0d5 b.n 8008214 + 8008068: 2301 movs r3, #1 + 800806a: e0d5 b.n 8008218 } hi2c->State = HAL_I2C_STATE_BUSY_RX; - 8008068: 68fb ldr r3, [r7, #12] - 800806a: 2222 movs r2, #34 ; 0x22 - 800806c: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 800806c: 68fb ldr r3, [r7, #12] + 800806e: 2222 movs r2, #34 ; 0x22 + 8008070: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_MEM; - 8008070: 68fb ldr r3, [r7, #12] - 8008072: 2240 movs r2, #64 ; 0x40 - 8008074: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8008074: 68fb ldr r3, [r7, #12] + 8008076: 2240 movs r2, #64 ; 0x40 + 8008078: f883 2042 strb.w r2, [r3, #66] ; 0x42 hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8008078: 68fb ldr r3, [r7, #12] - 800807a: 2200 movs r2, #0 - 800807c: 645a str r2, [r3, #68] ; 0x44 + 800807c: 68fb ldr r3, [r7, #12] + 800807e: 2200 movs r2, #0 + 8008080: 645a str r2, [r3, #68] ; 0x44 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; - 800807e: 68fb ldr r3, [r7, #12] - 8008080: 6a3a ldr r2, [r7, #32] - 8008082: 625a str r2, [r3, #36] ; 0x24 + 8008082: 68fb ldr r3, [r7, #12] + 8008084: 6a3a ldr r2, [r7, #32] + 8008086: 625a str r2, [r3, #36] ; 0x24 hi2c->XferCount = Size; - 8008084: 68fb ldr r3, [r7, #12] - 8008086: 8cba ldrh r2, [r7, #36] ; 0x24 - 8008088: 855a strh r2, [r3, #42] ; 0x2a + 8008088: 68fb ldr r3, [r7, #12] + 800808a: 8cba ldrh r2, [r7, #36] ; 0x24 + 800808c: 855a strh r2, [r3, #42] ; 0x2a hi2c->XferISR = NULL; - 800808a: 68fb ldr r3, [r7, #12] - 800808c: 2200 movs r2, #0 - 800808e: 635a str r2, [r3, #52] ; 0x34 + 800808e: 68fb ldr r3, [r7, #12] + 8008090: 2200 movs r2, #0 + 8008092: 635a str r2, [r3, #52] ; 0x34 /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) - 8008090: 88f8 ldrh r0, [r7, #6] - 8008092: 893a ldrh r2, [r7, #8] - 8008094: 8979 ldrh r1, [r7, #10] - 8008096: 697b ldr r3, [r7, #20] - 8008098: 9301 str r3, [sp, #4] - 800809a: 6abb ldr r3, [r7, #40] ; 0x28 - 800809c: 9300 str r3, [sp, #0] - 800809e: 4603 mov r3, r0 - 80080a0: 68f8 ldr r0, [r7, #12] - 80080a2: f000 f921 bl 80082e8 - 80080a6: 4603 mov r3, r0 - 80080a8: 2b00 cmp r3, #0 - 80080aa: d005 beq.n 80080b8 + 8008094: 88f8 ldrh r0, [r7, #6] + 8008096: 893a ldrh r2, [r7, #8] + 8008098: 8979 ldrh r1, [r7, #10] + 800809a: 697b ldr r3, [r7, #20] + 800809c: 9301 str r3, [sp, #4] + 800809e: 6abb ldr r3, [r7, #40] ; 0x28 + 80080a0: 9300 str r3, [sp, #0] + 80080a2: 4603 mov r3, r0 + 80080a4: 68f8 ldr r0, [r7, #12] + 80080a6: f000 f921 bl 80082ec + 80080aa: 4603 mov r3, r0 + 80080ac: 2b00 cmp r3, #0 + 80080ae: d005 beq.n 80080bc { /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80080ac: 68fb ldr r3, [r7, #12] - 80080ae: 2200 movs r2, #0 - 80080b0: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 80080b0: 68fb ldr r3, [r7, #12] + 80080b2: 2200 movs r2, #0 + 80080b4: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_ERROR; - 80080b4: 2301 movs r3, #1 - 80080b6: e0ad b.n 8008214 + 80080b8: 2301 movs r3, #1 + 80080ba: e0ad b.n 8008218 } /* Send Slave Address */ /* Set NBYTES to write and reload if hi2c->XferCount > MAX_NBYTE_SIZE and generate RESTART */ if (hi2c->XferCount > MAX_NBYTE_SIZE) - 80080b8: 68fb ldr r3, [r7, #12] - 80080ba: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80080bc: b29b uxth r3, r3 - 80080be: 2bff cmp r3, #255 ; 0xff - 80080c0: d90e bls.n 80080e0 + 80080bc: 68fb ldr r3, [r7, #12] + 80080be: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80080c0: b29b uxth r3, r3 + 80080c2: 2bff cmp r3, #255 ; 0xff + 80080c4: d90e bls.n 80080e4 { hi2c->XferSize = MAX_NBYTE_SIZE; - 80080c2: 68fb ldr r3, [r7, #12] - 80080c4: 22ff movs r2, #255 ; 0xff - 80080c6: 851a strh r2, [r3, #40] ; 0x28 + 80080c6: 68fb ldr r3, [r7, #12] + 80080c8: 22ff movs r2, #255 ; 0xff + 80080ca: 851a strh r2, [r3, #40] ; 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_RELOAD_MODE, I2C_GENERATE_START_READ); - 80080c8: 68fb ldr r3, [r7, #12] - 80080ca: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80080cc: b2da uxtb r2, r3 - 80080ce: 8979 ldrh r1, [r7, #10] - 80080d0: 4b52 ldr r3, [pc, #328] ; (800821c ) - 80080d2: 9300 str r3, [sp, #0] - 80080d4: f04f 7380 mov.w r3, #16777216 ; 0x1000000 - 80080d8: 68f8 ldr r0, [r7, #12] - 80080da: f000 fa9f bl 800861c - 80080de: e00f b.n 8008100 + 80080cc: 68fb ldr r3, [r7, #12] + 80080ce: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80080d0: b2da uxtb r2, r3 + 80080d2: 8979 ldrh r1, [r7, #10] + 80080d4: 4b52 ldr r3, [pc, #328] ; (8008220 ) + 80080d6: 9300 str r3, [sp, #0] + 80080d8: f04f 7380 mov.w r3, #16777216 ; 0x1000000 + 80080dc: 68f8 ldr r0, [r7, #12] + 80080de: f000 fa9f bl 8008620 + 80080e2: e00f b.n 8008104 } else { hi2c->XferSize = hi2c->XferCount; - 80080e0: 68fb ldr r3, [r7, #12] - 80080e2: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80080e4: b29a uxth r2, r3 - 80080e6: 68fb ldr r3, [r7, #12] - 80080e8: 851a strh r2, [r3, #40] ; 0x28 - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_READ); + 80080e4: 68fb ldr r3, [r7, #12] + 80080e6: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80080e8: b29a uxth r2, r3 80080ea: 68fb ldr r3, [r7, #12] - 80080ec: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80080ee: b2da uxtb r2, r3 - 80080f0: 8979 ldrh r1, [r7, #10] - 80080f2: 4b4a ldr r3, [pc, #296] ; (800821c ) - 80080f4: 9300 str r3, [sp, #0] - 80080f6: f04f 7300 mov.w r3, #33554432 ; 0x2000000 - 80080fa: 68f8 ldr r0, [r7, #12] - 80080fc: f000 fa8e bl 800861c + 80080ec: 851a strh r2, [r3, #40] ; 0x28 + I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_GENERATE_START_READ); + 80080ee: 68fb ldr r3, [r7, #12] + 80080f0: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80080f2: b2da uxtb r2, r3 + 80080f4: 8979 ldrh r1, [r7, #10] + 80080f6: 4b4a ldr r3, [pc, #296] ; (8008220 ) + 80080f8: 9300 str r3, [sp, #0] + 80080fa: f04f 7300 mov.w r3, #33554432 ; 0x2000000 + 80080fe: 68f8 ldr r0, [r7, #12] + 8008100: f000 fa8e bl 8008620 } do { /* Wait until RXNE flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_RXNE, RESET, Timeout, tickstart) != HAL_OK) - 8008100: 697b ldr r3, [r7, #20] - 8008102: 9300 str r3, [sp, #0] - 8008104: 6abb ldr r3, [r7, #40] ; 0x28 - 8008106: 2200 movs r2, #0 - 8008108: 2104 movs r1, #4 - 800810a: 68f8 ldr r0, [r7, #12] - 800810c: f000 f964 bl 80083d8 - 8008110: 4603 mov r3, r0 - 8008112: 2b00 cmp r3, #0 - 8008114: d001 beq.n 800811a + 8008104: 697b ldr r3, [r7, #20] + 8008106: 9300 str r3, [sp, #0] + 8008108: 6abb ldr r3, [r7, #40] ; 0x28 + 800810a: 2200 movs r2, #0 + 800810c: 2104 movs r1, #4 + 800810e: 68f8 ldr r0, [r7, #12] + 8008110: f000 f964 bl 80083dc + 8008114: 4603 mov r3, r0 + 8008116: 2b00 cmp r3, #0 + 8008118: d001 beq.n 800811e { return HAL_ERROR; - 8008116: 2301 movs r3, #1 - 8008118: e07c b.n 8008214 + 800811a: 2301 movs r3, #1 + 800811c: e07c b.n 8008218 } /* Read data from RXDR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->RXDR; - 800811a: 68fb ldr r3, [r7, #12] - 800811c: 681b ldr r3, [r3, #0] - 800811e: 6a5a ldr r2, [r3, #36] ; 0x24 - 8008120: 68fb ldr r3, [r7, #12] - 8008122: 6a5b ldr r3, [r3, #36] ; 0x24 - 8008124: b2d2 uxtb r2, r2 - 8008126: 701a strb r2, [r3, #0] + 800811e: 68fb ldr r3, [r7, #12] + 8008120: 681b ldr r3, [r3, #0] + 8008122: 6a5a ldr r2, [r3, #36] ; 0x24 + 8008124: 68fb ldr r3, [r7, #12] + 8008126: 6a5b ldr r3, [r3, #36] ; 0x24 + 8008128: b2d2 uxtb r2, r2 + 800812a: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; - 8008128: 68fb ldr r3, [r7, #12] - 800812a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800812c: 1c5a adds r2, r3, #1 - 800812e: 68fb ldr r3, [r7, #12] - 8008130: 625a str r2, [r3, #36] ; 0x24 + 800812c: 68fb ldr r3, [r7, #12] + 800812e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8008130: 1c5a adds r2, r3, #1 + 8008132: 68fb ldr r3, [r7, #12] + 8008134: 625a str r2, [r3, #36] ; 0x24 hi2c->XferSize--; - 8008132: 68fb ldr r3, [r7, #12] - 8008134: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8008136: 3b01 subs r3, #1 - 8008138: b29a uxth r2, r3 - 800813a: 68fb ldr r3, [r7, #12] - 800813c: 851a strh r2, [r3, #40] ; 0x28 - hi2c->XferCount--; + 8008136: 68fb ldr r3, [r7, #12] + 8008138: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800813a: 3b01 subs r3, #1 + 800813c: b29a uxth r2, r3 800813e: 68fb ldr r3, [r7, #12] - 8008140: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8008142: b29b uxth r3, r3 - 8008144: 3b01 subs r3, #1 - 8008146: b29a uxth r2, r3 - 8008148: 68fb ldr r3, [r7, #12] - 800814a: 855a strh r2, [r3, #42] ; 0x2a + 8008140: 851a strh r2, [r3, #40] ; 0x28 + hi2c->XferCount--; + 8008142: 68fb ldr r3, [r7, #12] + 8008144: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8008146: b29b uxth r3, r3 + 8008148: 3b01 subs r3, #1 + 800814a: b29a uxth r2, r3 + 800814c: 68fb ldr r3, [r7, #12] + 800814e: 855a strh r2, [r3, #42] ; 0x2a if ((hi2c->XferCount != 0U) && (hi2c->XferSize == 0U)) - 800814c: 68fb ldr r3, [r7, #12] - 800814e: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8008150: b29b uxth r3, r3 - 8008152: 2b00 cmp r3, #0 - 8008154: d034 beq.n 80081c0 - 8008156: 68fb ldr r3, [r7, #12] - 8008158: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800815a: 2b00 cmp r3, #0 - 800815c: d130 bne.n 80081c0 + 8008150: 68fb ldr r3, [r7, #12] + 8008152: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8008154: b29b uxth r3, r3 + 8008156: 2b00 cmp r3, #0 + 8008158: d034 beq.n 80081c4 + 800815a: 68fb ldr r3, [r7, #12] + 800815c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 800815e: 2b00 cmp r3, #0 + 8008160: d130 bne.n 80081c4 { /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, tickstart) != HAL_OK) - 800815e: 697b ldr r3, [r7, #20] - 8008160: 9300 str r3, [sp, #0] - 8008162: 6abb ldr r3, [r7, #40] ; 0x28 - 8008164: 2200 movs r2, #0 - 8008166: 2180 movs r1, #128 ; 0x80 - 8008168: 68f8 ldr r0, [r7, #12] - 800816a: f000 f935 bl 80083d8 - 800816e: 4603 mov r3, r0 - 8008170: 2b00 cmp r3, #0 - 8008172: d001 beq.n 8008178 + 8008162: 697b ldr r3, [r7, #20] + 8008164: 9300 str r3, [sp, #0] + 8008166: 6abb ldr r3, [r7, #40] ; 0x28 + 8008168: 2200 movs r2, #0 + 800816a: 2180 movs r1, #128 ; 0x80 + 800816c: 68f8 ldr r0, [r7, #12] + 800816e: f000 f935 bl 80083dc + 8008172: 4603 mov r3, r0 + 8008174: 2b00 cmp r3, #0 + 8008176: d001 beq.n 800817c { return HAL_ERROR; - 8008174: 2301 movs r3, #1 - 8008176: e04d b.n 8008214 + 8008178: 2301 movs r3, #1 + 800817a: e04d b.n 8008218 } if (hi2c->XferCount > MAX_NBYTE_SIZE) - 8008178: 68fb ldr r3, [r7, #12] - 800817a: 8d5b ldrh r3, [r3, #42] ; 0x2a - 800817c: b29b uxth r3, r3 - 800817e: 2bff cmp r3, #255 ; 0xff - 8008180: d90e bls.n 80081a0 + 800817c: 68fb ldr r3, [r7, #12] + 800817e: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8008180: b29b uxth r3, r3 + 8008182: 2bff cmp r3, #255 ; 0xff + 8008184: d90e bls.n 80081a4 { hi2c->XferSize = MAX_NBYTE_SIZE; - 8008182: 68fb ldr r3, [r7, #12] - 8008184: 22ff movs r2, #255 ; 0xff - 8008186: 851a strh r2, [r3, #40] ; 0x28 + 8008186: 68fb ldr r3, [r7, #12] + 8008188: 22ff movs r2, #255 ; 0xff + 800818a: 851a strh r2, [r3, #40] ; 0x28 I2C_TransferConfig(hi2c, DevAddress, (uint8_t) hi2c->XferSize, I2C_RELOAD_MODE, I2C_NO_STARTSTOP); - 8008188: 68fb ldr r3, [r7, #12] - 800818a: 8d1b ldrh r3, [r3, #40] ; 0x28 - 800818c: b2da uxtb r2, r3 - 800818e: 8979 ldrh r1, [r7, #10] - 8008190: 2300 movs r3, #0 - 8008192: 9300 str r3, [sp, #0] - 8008194: f04f 7380 mov.w r3, #16777216 ; 0x1000000 - 8008198: 68f8 ldr r0, [r7, #12] - 800819a: f000 fa3f bl 800861c - 800819e: e00f b.n 80081c0 + 800818c: 68fb ldr r3, [r7, #12] + 800818e: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8008190: b2da uxtb r2, r3 + 8008192: 8979 ldrh r1, [r7, #10] + 8008194: 2300 movs r3, #0 + 8008196: 9300 str r3, [sp, #0] + 8008198: f04f 7380 mov.w r3, #16777216 ; 0x1000000 + 800819c: 68f8 ldr r0, [r7, #12] + 800819e: f000 fa3f bl 8008620 + 80081a2: e00f b.n 80081c4 } else { hi2c->XferSize = hi2c->XferCount; - 80081a0: 68fb ldr r3, [r7, #12] - 80081a2: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80081a4: b29a uxth r2, r3 - 80081a6: 68fb ldr r3, [r7, #12] - 80081a8: 851a strh r2, [r3, #40] ; 0x28 - I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); + 80081a4: 68fb ldr r3, [r7, #12] + 80081a6: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80081a8: b29a uxth r2, r3 80081aa: 68fb ldr r3, [r7, #12] - 80081ac: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80081ae: b2da uxtb r2, r3 - 80081b0: 8979 ldrh r1, [r7, #10] - 80081b2: 2300 movs r3, #0 - 80081b4: 9300 str r3, [sp, #0] - 80081b6: f04f 7300 mov.w r3, #33554432 ; 0x2000000 - 80081ba: 68f8 ldr r0, [r7, #12] - 80081bc: f000 fa2e bl 800861c + 80081ac: 851a strh r2, [r3, #40] ; 0x28 + I2C_TransferConfig(hi2c, DevAddress, (uint8_t)hi2c->XferSize, I2C_AUTOEND_MODE, I2C_NO_STARTSTOP); + 80081ae: 68fb ldr r3, [r7, #12] + 80081b0: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80081b2: b2da uxtb r2, r3 + 80081b4: 8979 ldrh r1, [r7, #10] + 80081b6: 2300 movs r3, #0 + 80081b8: 9300 str r3, [sp, #0] + 80081ba: f04f 7300 mov.w r3, #33554432 ; 0x2000000 + 80081be: 68f8 ldr r0, [r7, #12] + 80081c0: f000 fa2e bl 8008620 } } } while (hi2c->XferCount > 0U); - 80081c0: 68fb ldr r3, [r7, #12] - 80081c2: 8d5b ldrh r3, [r3, #42] ; 0x2a - 80081c4: b29b uxth r3, r3 - 80081c6: 2b00 cmp r3, #0 - 80081c8: d19a bne.n 8008100 + 80081c4: 68fb ldr r3, [r7, #12] + 80081c6: 8d5b ldrh r3, [r3, #42] ; 0x2a + 80081c8: b29b uxth r3, r3 + 80081ca: 2b00 cmp r3, #0 + 80081cc: d19a bne.n 8008104 /* No need to Check TC flag, with AUTOEND mode the stop is automatically generated */ /* Wait until STOPF flag is reset */ if (I2C_WaitOnSTOPFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) - 80081ca: 697a ldr r2, [r7, #20] - 80081cc: 6ab9 ldr r1, [r7, #40] ; 0x28 - 80081ce: 68f8 ldr r0, [r7, #12] - 80081d0: f000 f982 bl 80084d8 - 80081d4: 4603 mov r3, r0 - 80081d6: 2b00 cmp r3, #0 - 80081d8: d001 beq.n 80081de + 80081ce: 697a ldr r2, [r7, #20] + 80081d0: 6ab9 ldr r1, [r7, #40] ; 0x28 + 80081d2: 68f8 ldr r0, [r7, #12] + 80081d4: f000 f982 bl 80084dc + 80081d8: 4603 mov r3, r0 + 80081da: 2b00 cmp r3, #0 + 80081dc: d001 beq.n 80081e2 { return HAL_ERROR; - 80081da: 2301 movs r3, #1 - 80081dc: e01a b.n 8008214 + 80081de: 2301 movs r3, #1 + 80081e0: e01a b.n 8008218 } /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 80081de: 68fb ldr r3, [r7, #12] - 80081e0: 681b ldr r3, [r3, #0] - 80081e2: 2220 movs r2, #32 - 80081e4: 61da str r2, [r3, #28] + 80081e2: 68fb ldr r3, [r7, #12] + 80081e4: 681b ldr r3, [r3, #0] + 80081e6: 2220 movs r2, #32 + 80081e8: 61da str r2, [r3, #28] /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); - 80081e6: 68fb ldr r3, [r7, #12] - 80081e8: 681b ldr r3, [r3, #0] - 80081ea: 6859 ldr r1, [r3, #4] - 80081ec: 68fb ldr r3, [r7, #12] - 80081ee: 681a ldr r2, [r3, #0] - 80081f0: 4b0b ldr r3, [pc, #44] ; (8008220 ) - 80081f2: 400b ands r3, r1 - 80081f4: 6053 str r3, [r2, #4] + 80081ea: 68fb ldr r3, [r7, #12] + 80081ec: 681b ldr r3, [r3, #0] + 80081ee: 6859 ldr r1, [r3, #4] + 80081f0: 68fb ldr r3, [r7, #12] + 80081f2: 681a ldr r2, [r3, #0] + 80081f4: 4b0b ldr r3, [pc, #44] ; (8008224 ) + 80081f6: 400b ands r3, r1 + 80081f8: 6053 str r3, [r2, #4] hi2c->State = HAL_I2C_STATE_READY; - 80081f6: 68fb ldr r3, [r7, #12] - 80081f8: 2220 movs r2, #32 - 80081fa: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 80081fa: 68fb ldr r3, [r7, #12] + 80081fc: 2220 movs r2, #32 + 80081fe: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_NONE; - 80081fe: 68fb ldr r3, [r7, #12] - 8008200: 2200 movs r2, #0 - 8008202: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8008202: 68fb ldr r3, [r7, #12] + 8008204: 2200 movs r2, #0 + 8008206: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8008206: 68fb ldr r3, [r7, #12] - 8008208: 2200 movs r2, #0 - 800820a: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 800820a: 68fb ldr r3, [r7, #12] + 800820c: 2200 movs r2, #0 + 800820e: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_OK; - 800820e: 2300 movs r3, #0 - 8008210: e000 b.n 8008214 + 8008212: 2300 movs r3, #0 + 8008214: e000 b.n 8008218 } else { return HAL_BUSY; - 8008212: 2302 movs r3, #2 + 8008216: 2302 movs r3, #2 } } - 8008214: 4618 mov r0, r3 - 8008216: 3718 adds r7, #24 - 8008218: 46bd mov sp, r7 - 800821a: bd80 pop {r7, pc} - 800821c: 80002400 .word 0x80002400 - 8008220: fe00e800 .word 0xfe00e800 + 8008218: 4618 mov r0, r3 + 800821a: 3718 adds r7, #24 + 800821c: 46bd mov sp, r7 + 800821e: bd80 pop {r7, pc} + 8008220: 80002400 .word 0x80002400 + 8008224: fe00e800 .word 0xfe00e800 -08008224 : +08008228 : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL state */ HAL_I2C_StateTypeDef HAL_I2C_GetState(I2C_HandleTypeDef *hi2c) { - 8008224: b480 push {r7} - 8008226: b083 sub sp, #12 - 8008228: af00 add r7, sp, #0 - 800822a: 6078 str r0, [r7, #4] + 8008228: b480 push {r7} + 800822a: b083 sub sp, #12 + 800822c: af00 add r7, sp, #0 + 800822e: 6078 str r0, [r7, #4] /* Return I2C handle state */ return hi2c->State; - 800822c: 687b ldr r3, [r7, #4] - 800822e: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 8008232: b2db uxtb r3, r3 + 8008230: 687b ldr r3, [r7, #4] + 8008232: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 8008236: b2db uxtb r3, r3 } - 8008234: 4618 mov r0, r3 - 8008236: 370c adds r7, #12 - 8008238: 46bd mov sp, r7 - 800823a: f85d 7b04 ldr.w r7, [sp], #4 - 800823e: 4770 bx lr + 8008238: 4618 mov r0, r3 + 800823a: 370c adds r7, #12 + 800823c: 46bd mov sp, r7 + 800823e: f85d 7b04 ldr.w r7, [sp], #4 + 8008242: 4770 bx lr -08008240 : +08008244 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { - 8008240: b580 push {r7, lr} - 8008242: b086 sub sp, #24 - 8008244: af02 add r7, sp, #8 - 8008246: 60f8 str r0, [r7, #12] - 8008248: 4608 mov r0, r1 - 800824a: 4611 mov r1, r2 - 800824c: 461a mov r2, r3 - 800824e: 4603 mov r3, r0 - 8008250: 817b strh r3, [r7, #10] - 8008252: 460b mov r3, r1 - 8008254: 813b strh r3, [r7, #8] - 8008256: 4613 mov r3, r2 - 8008258: 80fb strh r3, [r7, #6] + 8008244: b580 push {r7, lr} + 8008246: b086 sub sp, #24 + 8008248: af02 add r7, sp, #8 + 800824a: 60f8 str r0, [r7, #12] + 800824c: 4608 mov r0, r1 + 800824e: 4611 mov r1, r2 + 8008250: 461a mov r2, r3 + 8008252: 4603 mov r3, r0 + 8008254: 817b strh r3, [r7, #10] + 8008256: 460b mov r3, r1 + 8008258: 813b strh r3, [r7, #8] + 800825a: 4613 mov r3, r2 + 800825c: 80fb strh r3, [r7, #6] I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_RELOAD_MODE, I2C_GENERATE_START_WRITE); - 800825a: 88fb ldrh r3, [r7, #6] - 800825c: b2da uxtb r2, r3 - 800825e: 8979 ldrh r1, [r7, #10] - 8008260: 4b20 ldr r3, [pc, #128] ; (80082e4 ) - 8008262: 9300 str r3, [sp, #0] - 8008264: f04f 7380 mov.w r3, #16777216 ; 0x1000000 - 8008268: 68f8 ldr r0, [r7, #12] - 800826a: f000 f9d7 bl 800861c + 800825e: 88fb ldrh r3, [r7, #6] + 8008260: b2da uxtb r2, r3 + 8008262: 8979 ldrh r1, [r7, #10] + 8008264: 4b20 ldr r3, [pc, #128] ; (80082e8 ) + 8008266: 9300 str r3, [sp, #0] + 8008268: f04f 7380 mov.w r3, #16777216 ; 0x1000000 + 800826c: 68f8 ldr r0, [r7, #12] + 800826e: f000 f9d7 bl 8008620 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 800826e: 69fa ldr r2, [r7, #28] - 8008270: 69b9 ldr r1, [r7, #24] - 8008272: 68f8 ldr r0, [r7, #12] - 8008274: f000 f8f0 bl 8008458 - 8008278: 4603 mov r3, r0 - 800827a: 2b00 cmp r3, #0 - 800827c: d001 beq.n 8008282 + 8008272: 69fa ldr r2, [r7, #28] + 8008274: 69b9 ldr r1, [r7, #24] + 8008276: 68f8 ldr r0, [r7, #12] + 8008278: f000 f8f0 bl 800845c + 800827c: 4603 mov r3, r0 + 800827e: 2b00 cmp r3, #0 + 8008280: d001 beq.n 8008286 { return HAL_ERROR; - 800827e: 2301 movs r3, #1 - 8008280: e02c b.n 80082dc + 8008282: 2301 movs r3, #1 + 8008284: e02c b.n 80082e0 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - 8008282: 88fb ldrh r3, [r7, #6] - 8008284: 2b01 cmp r3, #1 - 8008286: d105 bne.n 8008294 + 8008286: 88fb ldrh r3, [r7, #6] + 8008288: 2b01 cmp r3, #1 + 800828a: d105 bne.n 8008298 { /* Send Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - 8008288: 893b ldrh r3, [r7, #8] - 800828a: b2da uxtb r2, r3 - 800828c: 68fb ldr r3, [r7, #12] - 800828e: 681b ldr r3, [r3, #0] - 8008290: 629a str r2, [r3, #40] ; 0x28 - 8008292: e015 b.n 80082c0 + 800828c: 893b ldrh r3, [r7, #8] + 800828e: b2da uxtb r2, r3 + 8008290: 68fb ldr r3, [r7, #12] + 8008292: 681b ldr r3, [r3, #0] + 8008294: 629a str r2, [r3, #40] ; 0x28 + 8008296: e015 b.n 80082c4 } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - 8008294: 893b ldrh r3, [r7, #8] - 8008296: 0a1b lsrs r3, r3, #8 - 8008298: b29b uxth r3, r3 - 800829a: b2da uxtb r2, r3 - 800829c: 68fb ldr r3, [r7, #12] - 800829e: 681b ldr r3, [r3, #0] - 80082a0: 629a str r2, [r3, #40] ; 0x28 + 8008298: 893b ldrh r3, [r7, #8] + 800829a: 0a1b lsrs r3, r3, #8 + 800829c: b29b uxth r3, r3 + 800829e: b2da uxtb r2, r3 + 80082a0: 68fb ldr r3, [r7, #12] + 80082a2: 681b ldr r3, [r3, #0] + 80082a4: 629a str r2, [r3, #40] ; 0x28 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 80082a2: 69fa ldr r2, [r7, #28] - 80082a4: 69b9 ldr r1, [r7, #24] - 80082a6: 68f8 ldr r0, [r7, #12] - 80082a8: f000 f8d6 bl 8008458 - 80082ac: 4603 mov r3, r0 - 80082ae: 2b00 cmp r3, #0 - 80082b0: d001 beq.n 80082b6 + 80082a6: 69fa ldr r2, [r7, #28] + 80082a8: 69b9 ldr r1, [r7, #24] + 80082aa: 68f8 ldr r0, [r7, #12] + 80082ac: f000 f8d6 bl 800845c + 80082b0: 4603 mov r3, r0 + 80082b2: 2b00 cmp r3, #0 + 80082b4: d001 beq.n 80082ba { return HAL_ERROR; - 80082b2: 2301 movs r3, #1 - 80082b4: e012 b.n 80082dc + 80082b6: 2301 movs r3, #1 + 80082b8: e012 b.n 80082e0 } /* Send LSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - 80082b6: 893b ldrh r3, [r7, #8] - 80082b8: b2da uxtb r2, r3 - 80082ba: 68fb ldr r3, [r7, #12] - 80082bc: 681b ldr r3, [r3, #0] - 80082be: 629a str r2, [r3, #40] ; 0x28 + 80082ba: 893b ldrh r3, [r7, #8] + 80082bc: b2da uxtb r2, r3 + 80082be: 68fb ldr r3, [r7, #12] + 80082c0: 681b ldr r3, [r3, #0] + 80082c2: 629a str r2, [r3, #40] ; 0x28 } /* Wait until TCR flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TCR, RESET, Timeout, Tickstart) != HAL_OK) - 80082c0: 69fb ldr r3, [r7, #28] - 80082c2: 9300 str r3, [sp, #0] - 80082c4: 69bb ldr r3, [r7, #24] - 80082c6: 2200 movs r2, #0 - 80082c8: 2180 movs r1, #128 ; 0x80 - 80082ca: 68f8 ldr r0, [r7, #12] - 80082cc: f000 f884 bl 80083d8 - 80082d0: 4603 mov r3, r0 - 80082d2: 2b00 cmp r3, #0 - 80082d4: d001 beq.n 80082da + 80082c4: 69fb ldr r3, [r7, #28] + 80082c6: 9300 str r3, [sp, #0] + 80082c8: 69bb ldr r3, [r7, #24] + 80082ca: 2200 movs r2, #0 + 80082cc: 2180 movs r1, #128 ; 0x80 + 80082ce: 68f8 ldr r0, [r7, #12] + 80082d0: f000 f884 bl 80083dc + 80082d4: 4603 mov r3, r0 + 80082d6: 2b00 cmp r3, #0 + 80082d8: d001 beq.n 80082de { return HAL_ERROR; - 80082d6: 2301 movs r3, #1 - 80082d8: e000 b.n 80082dc + 80082da: 2301 movs r3, #1 + 80082dc: e000 b.n 80082e0 } return HAL_OK; - 80082da: 2300 movs r3, #0 + 80082de: 2300 movs r3, #0 } - 80082dc: 4618 mov r0, r3 - 80082de: 3710 adds r7, #16 - 80082e0: 46bd mov sp, r7 - 80082e2: bd80 pop {r7, pc} - 80082e4: 80002000 .word 0x80002000 + 80082e0: 4618 mov r0, r3 + 80082e2: 3710 adds r7, #16 + 80082e4: 46bd mov sp, r7 + 80082e6: bd80 pop {r7, pc} + 80082e8: 80002000 .word 0x80002000 -080082e8 : +080082ec : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { - 80082e8: b580 push {r7, lr} - 80082ea: b086 sub sp, #24 - 80082ec: af02 add r7, sp, #8 - 80082ee: 60f8 str r0, [r7, #12] - 80082f0: 4608 mov r0, r1 - 80082f2: 4611 mov r1, r2 - 80082f4: 461a mov r2, r3 - 80082f6: 4603 mov r3, r0 - 80082f8: 817b strh r3, [r7, #10] - 80082fa: 460b mov r3, r1 - 80082fc: 813b strh r3, [r7, #8] - 80082fe: 4613 mov r3, r2 - 8008300: 80fb strh r3, [r7, #6] + 80082ec: b580 push {r7, lr} + 80082ee: b086 sub sp, #24 + 80082f0: af02 add r7, sp, #8 + 80082f2: 60f8 str r0, [r7, #12] + 80082f4: 4608 mov r0, r1 + 80082f6: 4611 mov r1, r2 + 80082f8: 461a mov r2, r3 + 80082fa: 4603 mov r3, r0 + 80082fc: 817b strh r3, [r7, #10] + 80082fe: 460b mov r3, r1 + 8008300: 813b strh r3, [r7, #8] + 8008302: 4613 mov r3, r2 + 8008304: 80fb strh r3, [r7, #6] I2C_TransferConfig(hi2c, DevAddress, (uint8_t)MemAddSize, I2C_SOFTEND_MODE, I2C_GENERATE_START_WRITE); - 8008302: 88fb ldrh r3, [r7, #6] - 8008304: b2da uxtb r2, r3 - 8008306: 8979 ldrh r1, [r7, #10] - 8008308: 4b20 ldr r3, [pc, #128] ; (800838c ) - 800830a: 9300 str r3, [sp, #0] - 800830c: 2300 movs r3, #0 - 800830e: 68f8 ldr r0, [r7, #12] - 8008310: f000 f984 bl 800861c + 8008306: 88fb ldrh r3, [r7, #6] + 8008308: b2da uxtb r2, r3 + 800830a: 8979 ldrh r1, [r7, #10] + 800830c: 4b20 ldr r3, [pc, #128] ; (8008390 ) + 800830e: 9300 str r3, [sp, #0] + 8008310: 2300 movs r3, #0 + 8008312: 68f8 ldr r0, [r7, #12] + 8008314: f000 f984 bl 8008620 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8008314: 69fa ldr r2, [r7, #28] - 8008316: 69b9 ldr r1, [r7, #24] - 8008318: 68f8 ldr r0, [r7, #12] - 800831a: f000 f89d bl 8008458 - 800831e: 4603 mov r3, r0 - 8008320: 2b00 cmp r3, #0 - 8008322: d001 beq.n 8008328 + 8008318: 69fa ldr r2, [r7, #28] + 800831a: 69b9 ldr r1, [r7, #24] + 800831c: 68f8 ldr r0, [r7, #12] + 800831e: f000 f89d bl 800845c + 8008322: 4603 mov r3, r0 + 8008324: 2b00 cmp r3, #0 + 8008326: d001 beq.n 800832c { return HAL_ERROR; - 8008324: 2301 movs r3, #1 - 8008326: e02c b.n 8008382 + 8008328: 2301 movs r3, #1 + 800832a: e02c b.n 8008386 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) - 8008328: 88fb ldrh r3, [r7, #6] - 800832a: 2b01 cmp r3, #1 - 800832c: d105 bne.n 800833a + 800832c: 88fb ldrh r3, [r7, #6] + 800832e: 2b01 cmp r3, #1 + 8008330: d105 bne.n 800833e { /* Send Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - 800832e: 893b ldrh r3, [r7, #8] - 8008330: b2da uxtb r2, r3 - 8008332: 68fb ldr r3, [r7, #12] - 8008334: 681b ldr r3, [r3, #0] - 8008336: 629a str r2, [r3, #40] ; 0x28 - 8008338: e015 b.n 8008366 + 8008332: 893b ldrh r3, [r7, #8] + 8008334: b2da uxtb r2, r3 + 8008336: 68fb ldr r3, [r7, #12] + 8008338: 681b ldr r3, [r3, #0] + 800833a: 629a str r2, [r3, #40] ; 0x28 + 800833c: e015 b.n 800836a } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_MSB(MemAddress); - 800833a: 893b ldrh r3, [r7, #8] - 800833c: 0a1b lsrs r3, r3, #8 - 800833e: b29b uxth r3, r3 - 8008340: b2da uxtb r2, r3 - 8008342: 68fb ldr r3, [r7, #12] - 8008344: 681b ldr r3, [r3, #0] - 8008346: 629a str r2, [r3, #40] ; 0x28 + 800833e: 893b ldrh r3, [r7, #8] + 8008340: 0a1b lsrs r3, r3, #8 + 8008342: b29b uxth r3, r3 + 8008344: b2da uxtb r2, r3 + 8008346: 68fb ldr r3, [r7, #12] + 8008348: 681b ldr r3, [r3, #0] + 800834a: 629a str r2, [r3, #40] ; 0x28 /* Wait until TXIS flag is set */ if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) - 8008348: 69fa ldr r2, [r7, #28] - 800834a: 69b9 ldr r1, [r7, #24] - 800834c: 68f8 ldr r0, [r7, #12] - 800834e: f000 f883 bl 8008458 - 8008352: 4603 mov r3, r0 - 8008354: 2b00 cmp r3, #0 - 8008356: d001 beq.n 800835c + 800834c: 69fa ldr r2, [r7, #28] + 800834e: 69b9 ldr r1, [r7, #24] + 8008350: 68f8 ldr r0, [r7, #12] + 8008352: f000 f883 bl 800845c + 8008356: 4603 mov r3, r0 + 8008358: 2b00 cmp r3, #0 + 800835a: d001 beq.n 8008360 { return HAL_ERROR; - 8008358: 2301 movs r3, #1 - 800835a: e012 b.n 8008382 + 800835c: 2301 movs r3, #1 + 800835e: e012 b.n 8008386 } /* Send LSB of Memory Address */ hi2c->Instance->TXDR = I2C_MEM_ADD_LSB(MemAddress); - 800835c: 893b ldrh r3, [r7, #8] - 800835e: b2da uxtb r2, r3 - 8008360: 68fb ldr r3, [r7, #12] - 8008362: 681b ldr r3, [r3, #0] - 8008364: 629a str r2, [r3, #40] ; 0x28 + 8008360: 893b ldrh r3, [r7, #8] + 8008362: b2da uxtb r2, r3 + 8008364: 68fb ldr r3, [r7, #12] + 8008366: 681b ldr r3, [r3, #0] + 8008368: 629a str r2, [r3, #40] ; 0x28 } /* Wait until TC flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_TC, RESET, Timeout, Tickstart) != HAL_OK) - 8008366: 69fb ldr r3, [r7, #28] - 8008368: 9300 str r3, [sp, #0] - 800836a: 69bb ldr r3, [r7, #24] - 800836c: 2200 movs r2, #0 - 800836e: 2140 movs r1, #64 ; 0x40 - 8008370: 68f8 ldr r0, [r7, #12] - 8008372: f000 f831 bl 80083d8 - 8008376: 4603 mov r3, r0 - 8008378: 2b00 cmp r3, #0 - 800837a: d001 beq.n 8008380 + 800836a: 69fb ldr r3, [r7, #28] + 800836c: 9300 str r3, [sp, #0] + 800836e: 69bb ldr r3, [r7, #24] + 8008370: 2200 movs r2, #0 + 8008372: 2140 movs r1, #64 ; 0x40 + 8008374: 68f8 ldr r0, [r7, #12] + 8008376: f000 f831 bl 80083dc + 800837a: 4603 mov r3, r0 + 800837c: 2b00 cmp r3, #0 + 800837e: d001 beq.n 8008384 { return HAL_ERROR; - 800837c: 2301 movs r3, #1 - 800837e: e000 b.n 8008382 + 8008380: 2301 movs r3, #1 + 8008382: e000 b.n 8008386 } return HAL_OK; - 8008380: 2300 movs r3, #0 + 8008384: 2300 movs r3, #0 } - 8008382: 4618 mov r0, r3 - 8008384: 3710 adds r7, #16 - 8008386: 46bd mov sp, r7 - 8008388: bd80 pop {r7, pc} - 800838a: bf00 nop - 800838c: 80002000 .word 0x80002000 + 8008386: 4618 mov r0, r3 + 8008388: 3710 adds r7, #16 + 800838a: 46bd mov sp, r7 + 800838c: bd80 pop {r7, pc} + 800838e: bf00 nop + 8008390: 80002000 .word 0x80002000 -08008390 : +08008394 : * @brief I2C Tx data register flush process. * @param hi2c I2C handle. * @retval None */ static void I2C_Flush_TXDR(I2C_HandleTypeDef *hi2c) { - 8008390: b480 push {r7} - 8008392: b083 sub sp, #12 - 8008394: af00 add r7, sp, #0 - 8008396: 6078 str r0, [r7, #4] + 8008394: b480 push {r7} + 8008396: b083 sub sp, #12 + 8008398: af00 add r7, sp, #0 + 800839a: 6078 str r0, [r7, #4] /* If a pending TXIS flag is set */ /* Write a dummy data in TXDR to clear it */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) != RESET) - 8008398: 687b ldr r3, [r7, #4] - 800839a: 681b ldr r3, [r3, #0] - 800839c: 699b ldr r3, [r3, #24] - 800839e: f003 0302 and.w r3, r3, #2 - 80083a2: 2b02 cmp r3, #2 - 80083a4: d103 bne.n 80083ae + 800839c: 687b ldr r3, [r7, #4] + 800839e: 681b ldr r3, [r3, #0] + 80083a0: 699b ldr r3, [r3, #24] + 80083a2: f003 0302 and.w r3, r3, #2 + 80083a6: 2b02 cmp r3, #2 + 80083a8: d103 bne.n 80083b2 { hi2c->Instance->TXDR = 0x00U; - 80083a6: 687b ldr r3, [r7, #4] - 80083a8: 681b ldr r3, [r3, #0] - 80083aa: 2200 movs r2, #0 - 80083ac: 629a str r2, [r3, #40] ; 0x28 + 80083aa: 687b ldr r3, [r7, #4] + 80083ac: 681b ldr r3, [r3, #0] + 80083ae: 2200 movs r2, #0 + 80083b0: 629a str r2, [r3, #40] ; 0x28 } /* Flush TX register if not empty */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) - 80083ae: 687b ldr r3, [r7, #4] - 80083b0: 681b ldr r3, [r3, #0] - 80083b2: 699b ldr r3, [r3, #24] - 80083b4: f003 0301 and.w r3, r3, #1 - 80083b8: 2b01 cmp r3, #1 - 80083ba: d007 beq.n 80083cc + 80083b2: 687b ldr r3, [r7, #4] + 80083b4: 681b ldr r3, [r3, #0] + 80083b6: 699b ldr r3, [r3, #24] + 80083b8: f003 0301 and.w r3, r3, #1 + 80083bc: 2b01 cmp r3, #1 + 80083be: d007 beq.n 80083d0 { __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_TXE); - 80083bc: 687b ldr r3, [r7, #4] - 80083be: 681b ldr r3, [r3, #0] - 80083c0: 699a ldr r2, [r3, #24] - 80083c2: 687b ldr r3, [r7, #4] - 80083c4: 681b ldr r3, [r3, #0] - 80083c6: f042 0201 orr.w r2, r2, #1 - 80083ca: 619a str r2, [r3, #24] - } -} - 80083cc: bf00 nop - 80083ce: 370c adds r7, #12 - 80083d0: 46bd mov sp, r7 - 80083d2: f85d 7b04 ldr.w r7, [sp], #4 - 80083d6: 4770 bx lr - -080083d8 : + 80083c0: 687b ldr r3, [r7, #4] + 80083c2: 681b ldr r3, [r3, #0] + 80083c4: 699a ldr r2, [r3, #24] + 80083c6: 687b ldr r3, [r7, #4] + 80083c8: 681b ldr r3, [r3, #0] + 80083ca: f042 0201 orr.w r2, r2, #1 + 80083ce: 619a str r2, [r3, #24] + } +} + 80083d0: bf00 nop + 80083d2: 370c adds r7, #12 + 80083d4: 46bd mov sp, r7 + 80083d6: f85d 7b04 ldr.w r7, [sp], #4 + 80083da: 4770 bx lr + +080083dc : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) { - 80083d8: b580 push {r7, lr} - 80083da: b084 sub sp, #16 - 80083dc: af00 add r7, sp, #0 - 80083de: 60f8 str r0, [r7, #12] - 80083e0: 60b9 str r1, [r7, #8] - 80083e2: 603b str r3, [r7, #0] - 80083e4: 4613 mov r3, r2 - 80083e6: 71fb strb r3, [r7, #7] + 80083dc: b580 push {r7, lr} + 80083de: b084 sub sp, #16 + 80083e0: af00 add r7, sp, #0 + 80083e2: 60f8 str r0, [r7, #12] + 80083e4: 60b9 str r1, [r7, #8] + 80083e6: 603b str r3, [r7, #0] + 80083e8: 4613 mov r3, r2 + 80083ea: 71fb strb r3, [r7, #7] while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 80083e8: e022 b.n 8008430 + 80083ec: e022 b.n 8008434 { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 80083ea: 683b ldr r3, [r7, #0] - 80083ec: f1b3 3fff cmp.w r3, #4294967295 - 80083f0: d01e beq.n 8008430 + 80083ee: 683b ldr r3, [r7, #0] + 80083f0: f1b3 3fff cmp.w r3, #4294967295 + 80083f4: d01e beq.n 8008434 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 80083f2: f7fc fd65 bl 8004ec0 - 80083f6: 4602 mov r2, r0 - 80083f8: 69bb ldr r3, [r7, #24] - 80083fa: 1ad3 subs r3, r2, r3 - 80083fc: 683a ldr r2, [r7, #0] - 80083fe: 429a cmp r2, r3 - 8008400: d302 bcc.n 8008408 - 8008402: 683b ldr r3, [r7, #0] - 8008404: 2b00 cmp r3, #0 - 8008406: d113 bne.n 8008430 + 80083f6: f7fc fd65 bl 8004ec4 + 80083fa: 4602 mov r2, r0 + 80083fc: 69bb ldr r3, [r7, #24] + 80083fe: 1ad3 subs r3, r2, r3 + 8008400: 683a ldr r2, [r7, #0] + 8008402: 429a cmp r2, r3 + 8008404: d302 bcc.n 800840c + 8008406: 683b ldr r3, [r7, #0] + 8008408: 2b00 cmp r3, #0 + 800840a: d113 bne.n 8008434 { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8008408: 68fb ldr r3, [r7, #12] - 800840a: 6c5b ldr r3, [r3, #68] ; 0x44 - 800840c: f043 0220 orr.w r2, r3, #32 - 8008410: 68fb ldr r3, [r7, #12] - 8008412: 645a str r2, [r3, #68] ; 0x44 - hi2c->State = HAL_I2C_STATE_READY; + 800840c: 68fb ldr r3, [r7, #12] + 800840e: 6c5b ldr r3, [r3, #68] ; 0x44 + 8008410: f043 0220 orr.w r2, r3, #32 8008414: 68fb ldr r3, [r7, #12] - 8008416: 2220 movs r2, #32 - 8008418: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8008416: 645a str r2, [r3, #68] ; 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 8008418: 68fb ldr r3, [r7, #12] + 800841a: 2220 movs r2, #32 + 800841c: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_NONE; - 800841c: 68fb ldr r3, [r7, #12] - 800841e: 2200 movs r2, #0 - 8008420: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8008420: 68fb ldr r3, [r7, #12] + 8008422: 2200 movs r2, #0 + 8008424: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8008424: 68fb ldr r3, [r7, #12] - 8008426: 2200 movs r2, #0 - 8008428: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8008428: 68fb ldr r3, [r7, #12] + 800842a: 2200 movs r2, #0 + 800842c: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_ERROR; - 800842c: 2301 movs r3, #1 - 800842e: e00f b.n 8008450 + 8008430: 2301 movs r3, #1 + 8008432: e00f b.n 8008454 while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) - 8008430: 68fb ldr r3, [r7, #12] - 8008432: 681b ldr r3, [r3, #0] - 8008434: 699a ldr r2, [r3, #24] - 8008436: 68bb ldr r3, [r7, #8] - 8008438: 4013 ands r3, r2 - 800843a: 68ba ldr r2, [r7, #8] - 800843c: 429a cmp r2, r3 - 800843e: bf0c ite eq - 8008440: 2301 moveq r3, #1 - 8008442: 2300 movne r3, #0 - 8008444: b2db uxtb r3, r3 - 8008446: 461a mov r2, r3 - 8008448: 79fb ldrb r3, [r7, #7] - 800844a: 429a cmp r2, r3 - 800844c: d0cd beq.n 80083ea + 8008434: 68fb ldr r3, [r7, #12] + 8008436: 681b ldr r3, [r3, #0] + 8008438: 699a ldr r2, [r3, #24] + 800843a: 68bb ldr r3, [r7, #8] + 800843c: 4013 ands r3, r2 + 800843e: 68ba ldr r2, [r7, #8] + 8008440: 429a cmp r2, r3 + 8008442: bf0c ite eq + 8008444: 2301 moveq r3, #1 + 8008446: 2300 movne r3, #0 + 8008448: b2db uxtb r3, r3 + 800844a: 461a mov r2, r3 + 800844c: 79fb ldrb r3, [r7, #7] + 800844e: 429a cmp r2, r3 + 8008450: d0cd beq.n 80083ee } } } return HAL_OK; - 800844e: 2300 movs r3, #0 + 8008452: 2300 movs r3, #0 } - 8008450: 4618 mov r0, r3 - 8008452: 3710 adds r7, #16 - 8008454: 46bd mov sp, r7 - 8008456: bd80 pop {r7, pc} + 8008454: 4618 mov r0, r3 + 8008456: 3710 adds r7, #16 + 8008458: 46bd mov sp, r7 + 800845a: bd80 pop {r7, pc} -08008458 : +0800845c : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnTXISFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 8008458: b580 push {r7, lr} - 800845a: b084 sub sp, #16 - 800845c: af00 add r7, sp, #0 - 800845e: 60f8 str r0, [r7, #12] - 8008460: 60b9 str r1, [r7, #8] - 8008462: 607a str r2, [r7, #4] + 800845c: b580 push {r7, lr} + 800845e: b084 sub sp, #16 + 8008460: af00 add r7, sp, #0 + 8008462: 60f8 str r0, [r7, #12] + 8008464: 60b9 str r1, [r7, #8] + 8008466: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) - 8008464: e02c b.n 80084c0 + 8008468: e02c b.n 80084c4 { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c, Timeout, Tickstart) != HAL_OK) - 8008466: 687a ldr r2, [r7, #4] - 8008468: 68b9 ldr r1, [r7, #8] - 800846a: 68f8 ldr r0, [r7, #12] - 800846c: f000 f870 bl 8008550 - 8008470: 4603 mov r3, r0 - 8008472: 2b00 cmp r3, #0 - 8008474: d001 beq.n 800847a + 800846a: 687a ldr r2, [r7, #4] + 800846c: 68b9 ldr r1, [r7, #8] + 800846e: 68f8 ldr r0, [r7, #12] + 8008470: f000 f870 bl 8008554 + 8008474: 4603 mov r3, r0 + 8008476: 2b00 cmp r3, #0 + 8008478: d001 beq.n 800847e { return HAL_ERROR; - 8008476: 2301 movs r3, #1 - 8008478: e02a b.n 80084d0 + 800847a: 2301 movs r3, #1 + 800847c: e02a b.n 80084d4 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 800847a: 68bb ldr r3, [r7, #8] - 800847c: f1b3 3fff cmp.w r3, #4294967295 - 8008480: d01e beq.n 80084c0 + 800847e: 68bb ldr r3, [r7, #8] + 8008480: f1b3 3fff cmp.w r3, #4294967295 + 8008484: d01e beq.n 80084c4 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8008482: f7fc fd1d bl 8004ec0 - 8008486: 4602 mov r2, r0 - 8008488: 687b ldr r3, [r7, #4] - 800848a: 1ad3 subs r3, r2, r3 - 800848c: 68ba ldr r2, [r7, #8] - 800848e: 429a cmp r2, r3 - 8008490: d302 bcc.n 8008498 - 8008492: 68bb ldr r3, [r7, #8] - 8008494: 2b00 cmp r3, #0 - 8008496: d113 bne.n 80084c0 + 8008486: f7fc fd1d bl 8004ec4 + 800848a: 4602 mov r2, r0 + 800848c: 687b ldr r3, [r7, #4] + 800848e: 1ad3 subs r3, r2, r3 + 8008490: 68ba ldr r2, [r7, #8] + 8008492: 429a cmp r2, r3 + 8008494: d302 bcc.n 800849c + 8008496: 68bb ldr r3, [r7, #8] + 8008498: 2b00 cmp r3, #0 + 800849a: d113 bne.n 80084c4 { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8008498: 68fb ldr r3, [r7, #12] - 800849a: 6c5b ldr r3, [r3, #68] ; 0x44 - 800849c: f043 0220 orr.w r2, r3, #32 - 80084a0: 68fb ldr r3, [r7, #12] - 80084a2: 645a str r2, [r3, #68] ; 0x44 - hi2c->State = HAL_I2C_STATE_READY; + 800849c: 68fb ldr r3, [r7, #12] + 800849e: 6c5b ldr r3, [r3, #68] ; 0x44 + 80084a0: f043 0220 orr.w r2, r3, #32 80084a4: 68fb ldr r3, [r7, #12] - 80084a6: 2220 movs r2, #32 - 80084a8: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 80084a6: 645a str r2, [r3, #68] ; 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 80084a8: 68fb ldr r3, [r7, #12] + 80084aa: 2220 movs r2, #32 + 80084ac: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_NONE; - 80084ac: 68fb ldr r3, [r7, #12] - 80084ae: 2200 movs r2, #0 - 80084b0: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 80084b0: 68fb ldr r3, [r7, #12] + 80084b2: 2200 movs r2, #0 + 80084b4: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80084b4: 68fb ldr r3, [r7, #12] - 80084b6: 2200 movs r2, #0 - 80084b8: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 80084b8: 68fb ldr r3, [r7, #12] + 80084ba: 2200 movs r2, #0 + 80084bc: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_ERROR; - 80084bc: 2301 movs r3, #1 - 80084be: e007 b.n 80084d0 + 80084c0: 2301 movs r3, #1 + 80084c2: e007 b.n 80084d4 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXIS) == RESET) - 80084c0: 68fb ldr r3, [r7, #12] - 80084c2: 681b ldr r3, [r3, #0] - 80084c4: 699b ldr r3, [r3, #24] - 80084c6: f003 0302 and.w r3, r3, #2 - 80084ca: 2b02 cmp r3, #2 - 80084cc: d1cb bne.n 8008466 + 80084c4: 68fb ldr r3, [r7, #12] + 80084c6: 681b ldr r3, [r3, #0] + 80084c8: 699b ldr r3, [r3, #24] + 80084ca: f003 0302 and.w r3, r3, #2 + 80084ce: 2b02 cmp r3, #2 + 80084d0: d1cb bne.n 800846a } } } return HAL_OK; - 80084ce: 2300 movs r3, #0 + 80084d2: 2300 movs r3, #0 } - 80084d0: 4618 mov r0, r3 - 80084d2: 3710 adds r7, #16 - 80084d4: 46bd mov sp, r7 - 80084d6: bd80 pop {r7, pc} + 80084d4: 4618 mov r0, r3 + 80084d6: 3710 adds r7, #16 + 80084d8: 46bd mov sp, r7 + 80084da: bd80 pop {r7, pc} -080084d8 : +080084dc : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnSTOPFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 80084d8: b580 push {r7, lr} - 80084da: b084 sub sp, #16 - 80084dc: af00 add r7, sp, #0 - 80084de: 60f8 str r0, [r7, #12] - 80084e0: 60b9 str r1, [r7, #8] - 80084e2: 607a str r2, [r7, #4] + 80084dc: b580 push {r7, lr} + 80084de: b084 sub sp, #16 + 80084e0: af00 add r7, sp, #0 + 80084e2: 60f8 str r0, [r7, #12] + 80084e4: 60b9 str r1, [r7, #8] + 80084e6: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 80084e4: e028 b.n 8008538 + 80084e8: e028 b.n 800853c { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c, Timeout, Tickstart) != HAL_OK) - 80084e6: 687a ldr r2, [r7, #4] - 80084e8: 68b9 ldr r1, [r7, #8] - 80084ea: 68f8 ldr r0, [r7, #12] - 80084ec: f000 f830 bl 8008550 - 80084f0: 4603 mov r3, r0 - 80084f2: 2b00 cmp r3, #0 - 80084f4: d001 beq.n 80084fa + 80084ea: 687a ldr r2, [r7, #4] + 80084ec: 68b9 ldr r1, [r7, #8] + 80084ee: 68f8 ldr r0, [r7, #12] + 80084f0: f000 f830 bl 8008554 + 80084f4: 4603 mov r3, r0 + 80084f6: 2b00 cmp r3, #0 + 80084f8: d001 beq.n 80084fe { return HAL_ERROR; - 80084f6: 2301 movs r3, #1 - 80084f8: e026 b.n 8008548 + 80084fa: 2301 movs r3, #1 + 80084fc: e026 b.n 800854c } /* Check for the Timeout */ if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 80084fa: f7fc fce1 bl 8004ec0 - 80084fe: 4602 mov r2, r0 - 8008500: 687b ldr r3, [r7, #4] - 8008502: 1ad3 subs r3, r2, r3 - 8008504: 68ba ldr r2, [r7, #8] - 8008506: 429a cmp r2, r3 - 8008508: d302 bcc.n 8008510 - 800850a: 68bb ldr r3, [r7, #8] - 800850c: 2b00 cmp r3, #0 - 800850e: d113 bne.n 8008538 + 80084fe: f7fc fce1 bl 8004ec4 + 8008502: 4602 mov r2, r0 + 8008504: 687b ldr r3, [r7, #4] + 8008506: 1ad3 subs r3, r2, r3 + 8008508: 68ba ldr r2, [r7, #8] + 800850a: 429a cmp r2, r3 + 800850c: d302 bcc.n 8008514 + 800850e: 68bb ldr r3, [r7, #8] + 8008510: 2b00 cmp r3, #0 + 8008512: d113 bne.n 800853c { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 8008510: 68fb ldr r3, [r7, #12] - 8008512: 6c5b ldr r3, [r3, #68] ; 0x44 - 8008514: f043 0220 orr.w r2, r3, #32 - 8008518: 68fb ldr r3, [r7, #12] - 800851a: 645a str r2, [r3, #68] ; 0x44 - hi2c->State = HAL_I2C_STATE_READY; + 8008514: 68fb ldr r3, [r7, #12] + 8008516: 6c5b ldr r3, [r3, #68] ; 0x44 + 8008518: f043 0220 orr.w r2, r3, #32 800851c: 68fb ldr r3, [r7, #12] - 800851e: 2220 movs r2, #32 - 8008520: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 800851e: 645a str r2, [r3, #68] ; 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 8008520: 68fb ldr r3, [r7, #12] + 8008522: 2220 movs r2, #32 + 8008524: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_NONE; - 8008524: 68fb ldr r3, [r7, #12] - 8008526: 2200 movs r2, #0 - 8008528: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8008528: 68fb ldr r3, [r7, #12] + 800852a: 2200 movs r2, #0 + 800852c: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 800852c: 68fb ldr r3, [r7, #12] - 800852e: 2200 movs r2, #0 - 8008530: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8008530: 68fb ldr r3, [r7, #12] + 8008532: 2200 movs r2, #0 + 8008534: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_ERROR; - 8008534: 2301 movs r3, #1 - 8008536: e007 b.n 8008548 + 8008538: 2301 movs r3, #1 + 800853a: e007 b.n 800854c while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 8008538: 68fb ldr r3, [r7, #12] - 800853a: 681b ldr r3, [r3, #0] - 800853c: 699b ldr r3, [r3, #24] - 800853e: f003 0320 and.w r3, r3, #32 - 8008542: 2b20 cmp r3, #32 - 8008544: d1cf bne.n 80084e6 + 800853c: 68fb ldr r3, [r7, #12] + 800853e: 681b ldr r3, [r3, #0] + 8008540: 699b ldr r3, [r3, #24] + 8008542: f003 0320 and.w r3, r3, #32 + 8008546: 2b20 cmp r3, #32 + 8008548: d1cf bne.n 80084ea } } return HAL_OK; - 8008546: 2300 movs r3, #0 + 800854a: 2300 movs r3, #0 } - 8008548: 4618 mov r0, r3 - 800854a: 3710 adds r7, #16 - 800854c: 46bd mov sp, r7 - 800854e: bd80 pop {r7, pc} + 800854c: 4618 mov r0, r3 + 800854e: 3710 adds r7, #16 + 8008550: 46bd mov sp, r7 + 8008552: bd80 pop {r7, pc} -08008550 : +08008554 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { - 8008550: b580 push {r7, lr} - 8008552: b084 sub sp, #16 - 8008554: af00 add r7, sp, #0 - 8008556: 60f8 str r0, [r7, #12] - 8008558: 60b9 str r1, [r7, #8] - 800855a: 607a str r2, [r7, #4] + 8008554: b580 push {r7, lr} + 8008556: b084 sub sp, #16 + 8008558: af00 add r7, sp, #0 + 800855a: 60f8 str r0, [r7, #12] + 800855c: 60b9 str r1, [r7, #8] + 800855e: 607a str r2, [r7, #4] if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) - 800855c: 68fb ldr r3, [r7, #12] - 800855e: 681b ldr r3, [r3, #0] - 8008560: 699b ldr r3, [r3, #24] - 8008562: f003 0310 and.w r3, r3, #16 - 8008566: 2b10 cmp r3, #16 - 8008568: d151 bne.n 800860e + 8008560: 68fb ldr r3, [r7, #12] + 8008562: 681b ldr r3, [r3, #0] + 8008564: 699b ldr r3, [r3, #24] + 8008566: f003 0310 and.w r3, r3, #16 + 800856a: 2b10 cmp r3, #16 + 800856c: d151 bne.n 8008612 { /* Wait until STOP Flag is reset */ /* AutoEnd should be initiate after AF */ while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 800856a: e022 b.n 80085b2 + 800856e: e022 b.n 80085b6 { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 800856c: 68bb ldr r3, [r7, #8] - 800856e: f1b3 3fff cmp.w r3, #4294967295 - 8008572: d01e beq.n 80085b2 + 8008570: 68bb ldr r3, [r7, #8] + 8008572: f1b3 3fff cmp.w r3, #4294967295 + 8008576: d01e beq.n 80085b6 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 8008574: f7fc fca4 bl 8004ec0 - 8008578: 4602 mov r2, r0 - 800857a: 687b ldr r3, [r7, #4] - 800857c: 1ad3 subs r3, r2, r3 - 800857e: 68ba ldr r2, [r7, #8] - 8008580: 429a cmp r2, r3 - 8008582: d302 bcc.n 800858a - 8008584: 68bb ldr r3, [r7, #8] - 8008586: 2b00 cmp r3, #0 - 8008588: d113 bne.n 80085b2 + 8008578: f7fc fca4 bl 8004ec4 + 800857c: 4602 mov r2, r0 + 800857e: 687b ldr r3, [r7, #4] + 8008580: 1ad3 subs r3, r2, r3 + 8008582: 68ba ldr r2, [r7, #8] + 8008584: 429a cmp r2, r3 + 8008586: d302 bcc.n 800858e + 8008588: 68bb ldr r3, [r7, #8] + 800858a: 2b00 cmp r3, #0 + 800858c: d113 bne.n 80085b6 { hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; - 800858a: 68fb ldr r3, [r7, #12] - 800858c: 6c5b ldr r3, [r3, #68] ; 0x44 - 800858e: f043 0220 orr.w r2, r3, #32 - 8008592: 68fb ldr r3, [r7, #12] - 8008594: 645a str r2, [r3, #68] ; 0x44 - hi2c->State = HAL_I2C_STATE_READY; + 800858e: 68fb ldr r3, [r7, #12] + 8008590: 6c5b ldr r3, [r3, #68] ; 0x44 + 8008592: f043 0220 orr.w r2, r3, #32 8008596: 68fb ldr r3, [r7, #12] - 8008598: 2220 movs r2, #32 - 800859a: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8008598: 645a str r2, [r3, #68] ; 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 800859a: 68fb ldr r3, [r7, #12] + 800859c: 2220 movs r2, #32 + 800859e: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_NONE; - 800859e: 68fb ldr r3, [r7, #12] - 80085a0: 2200 movs r2, #0 - 80085a2: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 80085a2: 68fb ldr r3, [r7, #12] + 80085a4: 2200 movs r2, #0 + 80085a6: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80085a6: 68fb ldr r3, [r7, #12] - 80085a8: 2200 movs r2, #0 - 80085aa: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 80085aa: 68fb ldr r3, [r7, #12] + 80085ac: 2200 movs r2, #0 + 80085ae: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_ERROR; - 80085ae: 2301 movs r3, #1 - 80085b0: e02e b.n 8008610 + 80085b2: 2301 movs r3, #1 + 80085b4: e02e b.n 8008614 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == RESET) - 80085b2: 68fb ldr r3, [r7, #12] - 80085b4: 681b ldr r3, [r3, #0] - 80085b6: 699b ldr r3, [r3, #24] - 80085b8: f003 0320 and.w r3, r3, #32 - 80085bc: 2b20 cmp r3, #32 - 80085be: d1d5 bne.n 800856c + 80085b6: 68fb ldr r3, [r7, #12] + 80085b8: 681b ldr r3, [r3, #0] + 80085ba: 699b ldr r3, [r3, #24] + 80085bc: f003 0320 and.w r3, r3, #32 + 80085c0: 2b20 cmp r3, #32 + 80085c2: d1d5 bne.n 8008570 } } } /* Clear NACKF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); - 80085c0: 68fb ldr r3, [r7, #12] - 80085c2: 681b ldr r3, [r3, #0] - 80085c4: 2210 movs r2, #16 - 80085c6: 61da str r2, [r3, #28] + 80085c4: 68fb ldr r3, [r7, #12] + 80085c6: 681b ldr r3, [r3, #0] + 80085c8: 2210 movs r2, #16 + 80085ca: 61da str r2, [r3, #28] /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); - 80085c8: 68fb ldr r3, [r7, #12] - 80085ca: 681b ldr r3, [r3, #0] - 80085cc: 2220 movs r2, #32 - 80085ce: 61da str r2, [r3, #28] + 80085cc: 68fb ldr r3, [r7, #12] + 80085ce: 681b ldr r3, [r3, #0] + 80085d0: 2220 movs r2, #32 + 80085d2: 61da str r2, [r3, #28] /* Flush TX register */ I2C_Flush_TXDR(hi2c); - 80085d0: 68f8 ldr r0, [r7, #12] - 80085d2: f7ff fedd bl 8008390 + 80085d4: 68f8 ldr r0, [r7, #12] + 80085d6: f7ff fedd bl 8008394 /* Clear Configuration Register 2 */ I2C_RESET_CR2(hi2c); - 80085d6: 68fb ldr r3, [r7, #12] - 80085d8: 681b ldr r3, [r3, #0] - 80085da: 6859 ldr r1, [r3, #4] - 80085dc: 68fb ldr r3, [r7, #12] - 80085de: 681a ldr r2, [r3, #0] - 80085e0: 4b0d ldr r3, [pc, #52] ; (8008618 ) - 80085e2: 400b ands r3, r1 - 80085e4: 6053 str r3, [r2, #4] + 80085da: 68fb ldr r3, [r7, #12] + 80085dc: 681b ldr r3, [r3, #0] + 80085de: 6859 ldr r1, [r3, #4] + 80085e0: 68fb ldr r3, [r7, #12] + 80085e2: 681a ldr r2, [r3, #0] + 80085e4: 4b0d ldr r3, [pc, #52] ; (800861c ) + 80085e6: 400b ands r3, r1 + 80085e8: 6053 str r3, [r2, #4] hi2c->ErrorCode |= HAL_I2C_ERROR_AF; - 80085e6: 68fb ldr r3, [r7, #12] - 80085e8: 6c5b ldr r3, [r3, #68] ; 0x44 - 80085ea: f043 0204 orr.w r2, r3, #4 - 80085ee: 68fb ldr r3, [r7, #12] - 80085f0: 645a str r2, [r3, #68] ; 0x44 - hi2c->State = HAL_I2C_STATE_READY; + 80085ea: 68fb ldr r3, [r7, #12] + 80085ec: 6c5b ldr r3, [r3, #68] ; 0x44 + 80085ee: f043 0204 orr.w r2, r3, #4 80085f2: 68fb ldr r3, [r7, #12] - 80085f4: 2220 movs r2, #32 - 80085f6: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 80085f4: 645a str r2, [r3, #68] ; 0x44 + hi2c->State = HAL_I2C_STATE_READY; + 80085f6: 68fb ldr r3, [r7, #12] + 80085f8: 2220 movs r2, #32 + 80085fa: f883 2041 strb.w r2, [r3, #65] ; 0x41 hi2c->Mode = HAL_I2C_MODE_NONE; - 80085fa: 68fb ldr r3, [r7, #12] - 80085fc: 2200 movs r2, #0 - 80085fe: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 80085fe: 68fb ldr r3, [r7, #12] + 8008600: 2200 movs r2, #0 + 8008602: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 8008602: 68fb ldr r3, [r7, #12] - 8008604: 2200 movs r2, #0 - 8008606: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8008606: 68fb ldr r3, [r7, #12] + 8008608: 2200 movs r2, #0 + 800860a: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_ERROR; - 800860a: 2301 movs r3, #1 - 800860c: e000 b.n 8008610 + 800860e: 2301 movs r3, #1 + 8008610: e000 b.n 8008614 } return HAL_OK; - 800860e: 2300 movs r3, #0 + 8008612: 2300 movs r3, #0 } - 8008610: 4618 mov r0, r3 - 8008612: 3710 adds r7, #16 - 8008614: 46bd mov sp, r7 - 8008616: bd80 pop {r7, pc} - 8008618: fe00e800 .word 0xfe00e800 + 8008614: 4618 mov r0, r3 + 8008616: 3710 adds r7, #16 + 8008618: 46bd mov sp, r7 + 800861a: bd80 pop {r7, pc} + 800861c: fe00e800 .word 0xfe00e800 -0800861c : +08008620 : * @arg @ref I2C_GENERATE_START_READ Generate Restart for read request. * @arg @ref I2C_GENERATE_START_WRITE Generate Restart for write request. * @retval None */ static void I2C_TransferConfig(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t Size, uint32_t Mode, uint32_t Request) { - 800861c: b480 push {r7} - 800861e: b085 sub sp, #20 - 8008620: af00 add r7, sp, #0 - 8008622: 60f8 str r0, [r7, #12] - 8008624: 607b str r3, [r7, #4] - 8008626: 460b mov r3, r1 - 8008628: 817b strh r3, [r7, #10] - 800862a: 4613 mov r3, r2 - 800862c: 727b strb r3, [r7, #9] + 8008620: b480 push {r7} + 8008622: b085 sub sp, #20 + 8008624: af00 add r7, sp, #0 + 8008626: 60f8 str r0, [r7, #12] + 8008628: 607b str r3, [r7, #4] + 800862a: 460b mov r3, r1 + 800862c: 817b strh r3, [r7, #10] + 800862e: 4613 mov r3, r2 + 8008630: 727b strb r3, [r7, #9] assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_TRANSFER_MODE(Mode)); assert_param(IS_TRANSFER_REQUEST(Request)); /* update CR2 register */ MODIFY_REG(hi2c->Instance->CR2, ((I2C_CR2_SADD | I2C_CR2_NBYTES | I2C_CR2_RELOAD | I2C_CR2_AUTOEND | (I2C_CR2_RD_WRN & (uint32_t)(Request >> (31U - I2C_CR2_RD_WRN_Pos))) | I2C_CR2_START | I2C_CR2_STOP)), \ - 800862e: 68fb ldr r3, [r7, #12] - 8008630: 681b ldr r3, [r3, #0] - 8008632: 685a ldr r2, [r3, #4] - 8008634: 69bb ldr r3, [r7, #24] - 8008636: 0d5b lsrs r3, r3, #21 - 8008638: f403 6180 and.w r1, r3, #1024 ; 0x400 - 800863c: 4b0d ldr r3, [pc, #52] ; (8008674 ) - 800863e: 430b orrs r3, r1 - 8008640: 43db mvns r3, r3 - 8008642: ea02 0103 and.w r1, r2, r3 - 8008646: 897b ldrh r3, [r7, #10] - 8008648: f3c3 0209 ubfx r2, r3, #0, #10 - 800864c: 7a7b ldrb r3, [r7, #9] - 800864e: 041b lsls r3, r3, #16 - 8008650: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 8008654: 431a orrs r2, r3 - 8008656: 687b ldr r3, [r7, #4] + 8008632: 68fb ldr r3, [r7, #12] + 8008634: 681b ldr r3, [r3, #0] + 8008636: 685a ldr r2, [r3, #4] + 8008638: 69bb ldr r3, [r7, #24] + 800863a: 0d5b lsrs r3, r3, #21 + 800863c: f403 6180 and.w r1, r3, #1024 ; 0x400 + 8008640: 4b0d ldr r3, [pc, #52] ; (8008678 ) + 8008642: 430b orrs r3, r1 + 8008644: 43db mvns r3, r3 + 8008646: ea02 0103 and.w r1, r2, r3 + 800864a: 897b ldrh r3, [r7, #10] + 800864c: f3c3 0209 ubfx r2, r3, #0, #10 + 8008650: 7a7b ldrb r3, [r7, #9] + 8008652: 041b lsls r3, r3, #16 + 8008654: f403 037f and.w r3, r3, #16711680 ; 0xff0000 8008658: 431a orrs r2, r3 - 800865a: 69bb ldr r3, [r7, #24] + 800865a: 687b ldr r3, [r7, #4] 800865c: 431a orrs r2, r3 - 800865e: 68fb ldr r3, [r7, #12] - 8008660: 681b ldr r3, [r3, #0] - 8008662: 430a orrs r2, r1 - 8008664: 605a str r2, [r3, #4] + 800865e: 69bb ldr r3, [r7, #24] + 8008660: 431a orrs r2, r3 + 8008662: 68fb ldr r3, [r7, #12] + 8008664: 681b ldr r3, [r3, #0] + 8008666: 430a orrs r2, r1 + 8008668: 605a str r2, [r3, #4] (uint32_t)(((uint32_t)DevAddress & I2C_CR2_SADD) | (((uint32_t)Size << I2C_CR2_NBYTES_Pos) & I2C_CR2_NBYTES) | (uint32_t)Mode | (uint32_t)Request)); } - 8008666: bf00 nop - 8008668: 3714 adds r7, #20 - 800866a: 46bd mov sp, r7 - 800866c: f85d 7b04 ldr.w r7, [sp], #4 - 8008670: 4770 bx lr - 8008672: bf00 nop - 8008674: 03ff63ff .word 0x03ff63ff + 800866a: bf00 nop + 800866c: 3714 adds r7, #20 + 800866e: 46bd mov sp, r7 + 8008670: f85d 7b04 ldr.w r7, [sp], #4 + 8008674: 4770 bx lr + 8008676: bf00 nop + 8008678: 03ff63ff .word 0x03ff63ff -08008678 : +0800867c : * the configuration information for the specified I2Cx peripheral. * @param AnalogFilter New state of the Analog filter. * @retval HAL status */ HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter) { - 8008678: b480 push {r7} - 800867a: b083 sub sp, #12 - 800867c: af00 add r7, sp, #0 - 800867e: 6078 str r0, [r7, #4] - 8008680: 6039 str r1, [r7, #0] + 800867c: b480 push {r7} + 800867e: b083 sub sp, #12 + 8008680: af00 add r7, sp, #0 + 8008682: 6078 str r0, [r7, #4] + 8008684: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_ANALOG_FILTER(AnalogFilter)); if (hi2c->State == HAL_I2C_STATE_READY) - 8008682: 687b ldr r3, [r7, #4] - 8008684: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 8008688: b2db uxtb r3, r3 - 800868a: 2b20 cmp r3, #32 - 800868c: d138 bne.n 8008700 + 8008686: 687b ldr r3, [r7, #4] + 8008688: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 800868c: b2db uxtb r3, r3 + 800868e: 2b20 cmp r3, #32 + 8008690: d138 bne.n 8008704 { /* Process Locked */ __HAL_LOCK(hi2c); - 800868e: 687b ldr r3, [r7, #4] - 8008690: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 - 8008694: 2b01 cmp r3, #1 - 8008696: d101 bne.n 800869c - 8008698: 2302 movs r3, #2 - 800869a: e032 b.n 8008702 - 800869c: 687b ldr r3, [r7, #4] - 800869e: 2201 movs r2, #1 - 80086a0: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8008692: 687b ldr r3, [r7, #4] + 8008694: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 + 8008698: 2b01 cmp r3, #1 + 800869a: d101 bne.n 80086a0 + 800869c: 2302 movs r3, #2 + 800869e: e032 b.n 8008706 + 80086a0: 687b ldr r3, [r7, #4] + 80086a2: 2201 movs r2, #1 + 80086a4: f883 2040 strb.w r2, [r3, #64] ; 0x40 hi2c->State = HAL_I2C_STATE_BUSY; - 80086a4: 687b ldr r3, [r7, #4] - 80086a6: 2224 movs r2, #36 ; 0x24 - 80086a8: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 80086a8: 687b ldr r3, [r7, #4] + 80086aa: 2224 movs r2, #36 ; 0x24 + 80086ac: f883 2041 strb.w r2, [r3, #65] ; 0x41 /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 80086ac: 687b ldr r3, [r7, #4] - 80086ae: 681b ldr r3, [r3, #0] - 80086b0: 681a ldr r2, [r3, #0] - 80086b2: 687b ldr r3, [r7, #4] - 80086b4: 681b ldr r3, [r3, #0] - 80086b6: f022 0201 bic.w r2, r2, #1 - 80086ba: 601a str r2, [r3, #0] + 80086b0: 687b ldr r3, [r7, #4] + 80086b2: 681b ldr r3, [r3, #0] + 80086b4: 681a ldr r2, [r3, #0] + 80086b6: 687b ldr r3, [r7, #4] + 80086b8: 681b ldr r3, [r3, #0] + 80086ba: f022 0201 bic.w r2, r2, #1 + 80086be: 601a str r2, [r3, #0] /* Reset I2Cx ANOFF bit */ hi2c->Instance->CR1 &= ~(I2C_CR1_ANFOFF); - 80086bc: 687b ldr r3, [r7, #4] - 80086be: 681b ldr r3, [r3, #0] - 80086c0: 681a ldr r2, [r3, #0] - 80086c2: 687b ldr r3, [r7, #4] - 80086c4: 681b ldr r3, [r3, #0] - 80086c6: f422 5280 bic.w r2, r2, #4096 ; 0x1000 - 80086ca: 601a str r2, [r3, #0] + 80086c0: 687b ldr r3, [r7, #4] + 80086c2: 681b ldr r3, [r3, #0] + 80086c4: 681a ldr r2, [r3, #0] + 80086c6: 687b ldr r3, [r7, #4] + 80086c8: 681b ldr r3, [r3, #0] + 80086ca: f422 5280 bic.w r2, r2, #4096 ; 0x1000 + 80086ce: 601a str r2, [r3, #0] /* Set analog filter bit*/ hi2c->Instance->CR1 |= AnalogFilter; - 80086cc: 687b ldr r3, [r7, #4] - 80086ce: 681b ldr r3, [r3, #0] - 80086d0: 6819 ldr r1, [r3, #0] - 80086d2: 687b ldr r3, [r7, #4] - 80086d4: 681b ldr r3, [r3, #0] - 80086d6: 683a ldr r2, [r7, #0] - 80086d8: 430a orrs r2, r1 - 80086da: 601a str r2, [r3, #0] + 80086d0: 687b ldr r3, [r7, #4] + 80086d2: 681b ldr r3, [r3, #0] + 80086d4: 6819 ldr r1, [r3, #0] + 80086d6: 687b ldr r3, [r7, #4] + 80086d8: 681b ldr r3, [r3, #0] + 80086da: 683a ldr r2, [r7, #0] + 80086dc: 430a orrs r2, r1 + 80086de: 601a str r2, [r3, #0] __HAL_I2C_ENABLE(hi2c); - 80086dc: 687b ldr r3, [r7, #4] - 80086de: 681b ldr r3, [r3, #0] - 80086e0: 681a ldr r2, [r3, #0] - 80086e2: 687b ldr r3, [r7, #4] - 80086e4: 681b ldr r3, [r3, #0] - 80086e6: f042 0201 orr.w r2, r2, #1 - 80086ea: 601a str r2, [r3, #0] + 80086e0: 687b ldr r3, [r7, #4] + 80086e2: 681b ldr r3, [r3, #0] + 80086e4: 681a ldr r2, [r3, #0] + 80086e6: 687b ldr r3, [r7, #4] + 80086e8: 681b ldr r3, [r3, #0] + 80086ea: f042 0201 orr.w r2, r2, #1 + 80086ee: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; - 80086ec: 687b ldr r3, [r7, #4] - 80086ee: 2220 movs r2, #32 - 80086f0: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 80086f0: 687b ldr r3, [r7, #4] + 80086f2: 2220 movs r2, #32 + 80086f4: f883 2041 strb.w r2, [r3, #65] ; 0x41 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 80086f4: 687b ldr r3, [r7, #4] - 80086f6: 2200 movs r2, #0 - 80086f8: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 80086f8: 687b ldr r3, [r7, #4] + 80086fa: 2200 movs r2, #0 + 80086fc: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_OK; - 80086fc: 2300 movs r3, #0 - 80086fe: e000 b.n 8008702 + 8008700: 2300 movs r3, #0 + 8008702: e000 b.n 8008706 } else { return HAL_BUSY; - 8008700: 2302 movs r3, #2 + 8008704: 2302 movs r3, #2 } } - 8008702: 4618 mov r0, r3 - 8008704: 370c adds r7, #12 - 8008706: 46bd mov sp, r7 - 8008708: f85d 7b04 ldr.w r7, [sp], #4 - 800870c: 4770 bx lr + 8008706: 4618 mov r0, r3 + 8008708: 370c adds r7, #12 + 800870a: 46bd mov sp, r7 + 800870c: f85d 7b04 ldr.w r7, [sp], #4 + 8008710: 4770 bx lr -0800870e : +08008712 : * the configuration information for the specified I2Cx peripheral. * @param DigitalFilter Coefficient of digital noise filter between Min_Data=0x00 and Max_Data=0x0F. * @retval HAL status */ HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter) { - 800870e: b480 push {r7} - 8008710: b085 sub sp, #20 - 8008712: af00 add r7, sp, #0 - 8008714: 6078 str r0, [r7, #4] - 8008716: 6039 str r1, [r7, #0] + 8008712: b480 push {r7} + 8008714: b085 sub sp, #20 + 8008716: af00 add r7, sp, #0 + 8008718: 6078 str r0, [r7, #4] + 800871a: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance)); assert_param(IS_I2C_DIGITAL_FILTER(DigitalFilter)); if (hi2c->State == HAL_I2C_STATE_READY) - 8008718: 687b ldr r3, [r7, #4] - 800871a: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 - 800871e: b2db uxtb r3, r3 - 8008720: 2b20 cmp r3, #32 - 8008722: d139 bne.n 8008798 + 800871c: 687b ldr r3, [r7, #4] + 800871e: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 + 8008722: b2db uxtb r3, r3 + 8008724: 2b20 cmp r3, #32 + 8008726: d139 bne.n 800879c { /* Process Locked */ __HAL_LOCK(hi2c); - 8008724: 687b ldr r3, [r7, #4] - 8008726: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 - 800872a: 2b01 cmp r3, #1 - 800872c: d101 bne.n 8008732 - 800872e: 2302 movs r3, #2 - 8008730: e033 b.n 800879a - 8008732: 687b ldr r3, [r7, #4] - 8008734: 2201 movs r2, #1 - 8008736: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8008728: 687b ldr r3, [r7, #4] + 800872a: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 + 800872e: 2b01 cmp r3, #1 + 8008730: d101 bne.n 8008736 + 8008732: 2302 movs r3, #2 + 8008734: e033 b.n 800879e + 8008736: 687b ldr r3, [r7, #4] + 8008738: 2201 movs r2, #1 + 800873a: f883 2040 strb.w r2, [r3, #64] ; 0x40 hi2c->State = HAL_I2C_STATE_BUSY; - 800873a: 687b ldr r3, [r7, #4] - 800873c: 2224 movs r2, #36 ; 0x24 - 800873e: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 800873e: 687b ldr r3, [r7, #4] + 8008740: 2224 movs r2, #36 ; 0x24 + 8008742: f883 2041 strb.w r2, [r3, #65] ; 0x41 /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 8008742: 687b ldr r3, [r7, #4] - 8008744: 681b ldr r3, [r3, #0] - 8008746: 681a ldr r2, [r3, #0] - 8008748: 687b ldr r3, [r7, #4] - 800874a: 681b ldr r3, [r3, #0] - 800874c: f022 0201 bic.w r2, r2, #1 - 8008750: 601a str r2, [r3, #0] + 8008746: 687b ldr r3, [r7, #4] + 8008748: 681b ldr r3, [r3, #0] + 800874a: 681a ldr r2, [r3, #0] + 800874c: 687b ldr r3, [r7, #4] + 800874e: 681b ldr r3, [r3, #0] + 8008750: f022 0201 bic.w r2, r2, #1 + 8008754: 601a str r2, [r3, #0] /* Get the old register value */ tmpreg = hi2c->Instance->CR1; - 8008752: 687b ldr r3, [r7, #4] - 8008754: 681b ldr r3, [r3, #0] - 8008756: 681b ldr r3, [r3, #0] - 8008758: 60fb str r3, [r7, #12] + 8008756: 687b ldr r3, [r7, #4] + 8008758: 681b ldr r3, [r3, #0] + 800875a: 681b ldr r3, [r3, #0] + 800875c: 60fb str r3, [r7, #12] /* Reset I2Cx DNF bits [11:8] */ tmpreg &= ~(I2C_CR1_DNF); - 800875a: 68fb ldr r3, [r7, #12] - 800875c: f423 6370 bic.w r3, r3, #3840 ; 0xf00 - 8008760: 60fb str r3, [r7, #12] + 800875e: 68fb ldr r3, [r7, #12] + 8008760: f423 6370 bic.w r3, r3, #3840 ; 0xf00 + 8008764: 60fb str r3, [r7, #12] /* Set I2Cx DNF coefficient */ tmpreg |= DigitalFilter << 8U; - 8008762: 683b ldr r3, [r7, #0] - 8008764: 021b lsls r3, r3, #8 - 8008766: 68fa ldr r2, [r7, #12] - 8008768: 4313 orrs r3, r2 - 800876a: 60fb str r3, [r7, #12] + 8008766: 683b ldr r3, [r7, #0] + 8008768: 021b lsls r3, r3, #8 + 800876a: 68fa ldr r2, [r7, #12] + 800876c: 4313 orrs r3, r2 + 800876e: 60fb str r3, [r7, #12] /* Store the new register value */ hi2c->Instance->CR1 = tmpreg; - 800876c: 687b ldr r3, [r7, #4] - 800876e: 681b ldr r3, [r3, #0] - 8008770: 68fa ldr r2, [r7, #12] - 8008772: 601a str r2, [r3, #0] + 8008770: 687b ldr r3, [r7, #4] + 8008772: 681b ldr r3, [r3, #0] + 8008774: 68fa ldr r2, [r7, #12] + 8008776: 601a str r2, [r3, #0] __HAL_I2C_ENABLE(hi2c); - 8008774: 687b ldr r3, [r7, #4] - 8008776: 681b ldr r3, [r3, #0] - 8008778: 681a ldr r2, [r3, #0] - 800877a: 687b ldr r3, [r7, #4] - 800877c: 681b ldr r3, [r3, #0] - 800877e: f042 0201 orr.w r2, r2, #1 - 8008782: 601a str r2, [r3, #0] + 8008778: 687b ldr r3, [r7, #4] + 800877a: 681b ldr r3, [r3, #0] + 800877c: 681a ldr r2, [r3, #0] + 800877e: 687b ldr r3, [r7, #4] + 8008780: 681b ldr r3, [r3, #0] + 8008782: f042 0201 orr.w r2, r2, #1 + 8008786: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; - 8008784: 687b ldr r3, [r7, #4] - 8008786: 2220 movs r2, #32 - 8008788: f883 2041 strb.w r2, [r3, #65] ; 0x41 + 8008788: 687b ldr r3, [r7, #4] + 800878a: 2220 movs r2, #32 + 800878c: f883 2041 strb.w r2, [r3, #65] ; 0x41 /* Process Unlocked */ __HAL_UNLOCK(hi2c); - 800878c: 687b ldr r3, [r7, #4] - 800878e: 2200 movs r2, #0 - 8008790: f883 2040 strb.w r2, [r3, #64] ; 0x40 + 8008790: 687b ldr r3, [r7, #4] + 8008792: 2200 movs r2, #0 + 8008794: f883 2040 strb.w r2, [r3, #64] ; 0x40 return HAL_OK; - 8008794: 2300 movs r3, #0 - 8008796: e000 b.n 800879a + 8008798: 2300 movs r3, #0 + 800879a: e000 b.n 800879e } else { return HAL_BUSY; - 8008798: 2302 movs r3, #2 + 800879c: 2302 movs r3, #2 } } - 800879a: 4618 mov r0, r3 - 800879c: 3714 adds r7, #20 - 800879e: 46bd mov sp, r7 - 80087a0: f85d 7b04 ldr.w r7, [sp], #4 - 80087a4: 4770 bx lr + 800879e: 4618 mov r0, r3 + 80087a0: 3714 adds r7, #20 + 80087a2: 46bd mov sp, r7 + 80087a4: f85d 7b04 ldr.w r7, [sp], #4 + 80087a8: 4770 bx lr ... -080087a8 : +080087ac : * @param hltdc pointer to a LTDC_HandleTypeDef structure that contains * the configuration information for the LTDC. * @retval HAL status */ HAL_StatusTypeDef HAL_LTDC_Init(LTDC_HandleTypeDef *hltdc) { - 80087a8: b580 push {r7, lr} - 80087aa: b084 sub sp, #16 - 80087ac: af00 add r7, sp, #0 - 80087ae: 6078 str r0, [r7, #4] + 80087ac: b580 push {r7, lr} + 80087ae: b084 sub sp, #16 + 80087b0: af00 add r7, sp, #0 + 80087b2: 6078 str r0, [r7, #4] uint32_t tmp, tmp1; /* Check the LTDC peripheral state */ if (hltdc == NULL) - 80087b0: 687b ldr r3, [r7, #4] - 80087b2: 2b00 cmp r3, #0 - 80087b4: d101 bne.n 80087ba + 80087b4: 687b ldr r3, [r7, #4] + 80087b6: 2b00 cmp r3, #0 + 80087b8: d101 bne.n 80087be { return HAL_ERROR; - 80087b6: 2301 movs r3, #1 - 80087b8: e0bf b.n 800893a + 80087ba: 2301 movs r3, #1 + 80087bc: e0bf b.n 800893e } /* Init the low level hardware */ hltdc->MspInitCallback(hltdc); } #else if (hltdc->State == HAL_LTDC_STATE_RESET) - 80087ba: 687b ldr r3, [r7, #4] - 80087bc: f893 30a1 ldrb.w r3, [r3, #161] ; 0xa1 - 80087c0: b2db uxtb r3, r3 - 80087c2: 2b00 cmp r3, #0 - 80087c4: d106 bne.n 80087d4 + 80087be: 687b ldr r3, [r7, #4] + 80087c0: f893 30a1 ldrb.w r3, [r3, #161] ; 0xa1 + 80087c4: b2db uxtb r3, r3 + 80087c6: 2b00 cmp r3, #0 + 80087c8: d106 bne.n 80087d8 { /* Allocate lock resource and initialize it */ hltdc->Lock = HAL_UNLOCKED; - 80087c6: 687b ldr r3, [r7, #4] - 80087c8: 2200 movs r2, #0 - 80087ca: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 + 80087ca: 687b ldr r3, [r7, #4] + 80087cc: 2200 movs r2, #0 + 80087ce: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 /* Init the low level hardware */ HAL_LTDC_MspInit(hltdc); - 80087ce: 6878 ldr r0, [r7, #4] - 80087d0: f7fb fe40 bl 8004454 + 80087d2: 6878 ldr r0, [r7, #4] + 80087d4: f7fb fe40 bl 8004458 } #endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */ /* Change LTDC peripheral state */ hltdc->State = HAL_LTDC_STATE_BUSY; - 80087d4: 687b ldr r3, [r7, #4] - 80087d6: 2202 movs r2, #2 - 80087d8: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 + 80087d8: 687b ldr r3, [r7, #4] + 80087da: 2202 movs r2, #2 + 80087dc: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 /* Configure the HS, VS, DE and PC polarity */ hltdc->Instance->GCR &= ~(LTDC_GCR_HSPOL | LTDC_GCR_VSPOL | LTDC_GCR_DEPOL | LTDC_GCR_PCPOL); - 80087dc: 687b ldr r3, [r7, #4] - 80087de: 681b ldr r3, [r3, #0] - 80087e0: 699a ldr r2, [r3, #24] - 80087e2: 687b ldr r3, [r7, #4] - 80087e4: 681b ldr r3, [r3, #0] - 80087e6: f022 4270 bic.w r2, r2, #4026531840 ; 0xf0000000 - 80087ea: 619a str r2, [r3, #24] + 80087e0: 687b ldr r3, [r7, #4] + 80087e2: 681b ldr r3, [r3, #0] + 80087e4: 699a ldr r2, [r3, #24] + 80087e6: 687b ldr r3, [r7, #4] + 80087e8: 681b ldr r3, [r3, #0] + 80087ea: f022 4270 bic.w r2, r2, #4026531840 ; 0xf0000000 + 80087ee: 619a str r2, [r3, #24] hltdc->Instance->GCR |= (uint32_t)(hltdc->Init.HSPolarity | hltdc->Init.VSPolarity | \ - 80087ec: 687b ldr r3, [r7, #4] - 80087ee: 681b ldr r3, [r3, #0] - 80087f0: 6999 ldr r1, [r3, #24] - 80087f2: 687b ldr r3, [r7, #4] - 80087f4: 685a ldr r2, [r3, #4] + 80087f0: 687b ldr r3, [r7, #4] + 80087f2: 681b ldr r3, [r3, #0] + 80087f4: 6999 ldr r1, [r3, #24] 80087f6: 687b ldr r3, [r7, #4] - 80087f8: 689b ldr r3, [r3, #8] - 80087fa: 431a orrs r2, r3 + 80087f8: 685a ldr r2, [r3, #4] + 80087fa: 687b ldr r3, [r7, #4] + 80087fc: 689b ldr r3, [r3, #8] + 80087fe: 431a orrs r2, r3 hltdc->Init.DEPolarity | hltdc->Init.PCPolarity); - 80087fc: 687b ldr r3, [r7, #4] - 80087fe: 68db ldr r3, [r3, #12] + 8008800: 687b ldr r3, [r7, #4] + 8008802: 68db ldr r3, [r3, #12] hltdc->Instance->GCR |= (uint32_t)(hltdc->Init.HSPolarity | hltdc->Init.VSPolarity | \ - 8008800: 431a orrs r2, r3 + 8008804: 431a orrs r2, r3 hltdc->Init.DEPolarity | hltdc->Init.PCPolarity); - 8008802: 687b ldr r3, [r7, #4] - 8008804: 691b ldr r3, [r3, #16] - 8008806: 431a orrs r2, r3 + 8008806: 687b ldr r3, [r7, #4] + 8008808: 691b ldr r3, [r3, #16] + 800880a: 431a orrs r2, r3 hltdc->Instance->GCR |= (uint32_t)(hltdc->Init.HSPolarity | hltdc->Init.VSPolarity | \ - 8008808: 687b ldr r3, [r7, #4] - 800880a: 681b ldr r3, [r3, #0] - 800880c: 430a orrs r2, r1 - 800880e: 619a str r2, [r3, #24] + 800880c: 687b ldr r3, [r7, #4] + 800880e: 681b ldr r3, [r3, #0] + 8008810: 430a orrs r2, r1 + 8008812: 619a str r2, [r3, #24] /* Set Synchronization size */ hltdc->Instance->SSCR &= ~(LTDC_SSCR_VSH | LTDC_SSCR_HSW); - 8008810: 687b ldr r3, [r7, #4] - 8008812: 681b ldr r3, [r3, #0] - 8008814: 6899 ldr r1, [r3, #8] - 8008816: 687b ldr r3, [r7, #4] - 8008818: 681a ldr r2, [r3, #0] - 800881a: 4b4a ldr r3, [pc, #296] ; (8008944 ) - 800881c: 400b ands r3, r1 - 800881e: 6093 str r3, [r2, #8] + 8008814: 687b ldr r3, [r7, #4] + 8008816: 681b ldr r3, [r3, #0] + 8008818: 6899 ldr r1, [r3, #8] + 800881a: 687b ldr r3, [r7, #4] + 800881c: 681a ldr r2, [r3, #0] + 800881e: 4b4a ldr r3, [pc, #296] ; (8008948 ) + 8008820: 400b ands r3, r1 + 8008822: 6093 str r3, [r2, #8] tmp = (hltdc->Init.HorizontalSync << 16U); - 8008820: 687b ldr r3, [r7, #4] - 8008822: 695b ldr r3, [r3, #20] - 8008824: 041b lsls r3, r3, #16 - 8008826: 60fb str r3, [r7, #12] + 8008824: 687b ldr r3, [r7, #4] + 8008826: 695b ldr r3, [r3, #20] + 8008828: 041b lsls r3, r3, #16 + 800882a: 60fb str r3, [r7, #12] hltdc->Instance->SSCR |= (tmp | hltdc->Init.VerticalSync); - 8008828: 687b ldr r3, [r7, #4] - 800882a: 681b ldr r3, [r3, #0] - 800882c: 6899 ldr r1, [r3, #8] - 800882e: 687b ldr r3, [r7, #4] - 8008830: 699a ldr r2, [r3, #24] - 8008832: 68fb ldr r3, [r7, #12] - 8008834: 431a orrs r2, r3 - 8008836: 687b ldr r3, [r7, #4] - 8008838: 681b ldr r3, [r3, #0] - 800883a: 430a orrs r2, r1 - 800883c: 609a str r2, [r3, #8] + 800882c: 687b ldr r3, [r7, #4] + 800882e: 681b ldr r3, [r3, #0] + 8008830: 6899 ldr r1, [r3, #8] + 8008832: 687b ldr r3, [r7, #4] + 8008834: 699a ldr r2, [r3, #24] + 8008836: 68fb ldr r3, [r7, #12] + 8008838: 431a orrs r2, r3 + 800883a: 687b ldr r3, [r7, #4] + 800883c: 681b ldr r3, [r3, #0] + 800883e: 430a orrs r2, r1 + 8008840: 609a str r2, [r3, #8] /* Set Accumulated Back porch */ hltdc->Instance->BPCR &= ~(LTDC_BPCR_AVBP | LTDC_BPCR_AHBP); - 800883e: 687b ldr r3, [r7, #4] - 8008840: 681b ldr r3, [r3, #0] - 8008842: 68d9 ldr r1, [r3, #12] - 8008844: 687b ldr r3, [r7, #4] - 8008846: 681a ldr r2, [r3, #0] - 8008848: 4b3e ldr r3, [pc, #248] ; (8008944 ) - 800884a: 400b ands r3, r1 - 800884c: 60d3 str r3, [r2, #12] + 8008842: 687b ldr r3, [r7, #4] + 8008844: 681b ldr r3, [r3, #0] + 8008846: 68d9 ldr r1, [r3, #12] + 8008848: 687b ldr r3, [r7, #4] + 800884a: 681a ldr r2, [r3, #0] + 800884c: 4b3e ldr r3, [pc, #248] ; (8008948 ) + 800884e: 400b ands r3, r1 + 8008850: 60d3 str r3, [r2, #12] tmp = (hltdc->Init.AccumulatedHBP << 16U); - 800884e: 687b ldr r3, [r7, #4] - 8008850: 69db ldr r3, [r3, #28] - 8008852: 041b lsls r3, r3, #16 - 8008854: 60fb str r3, [r7, #12] + 8008852: 687b ldr r3, [r7, #4] + 8008854: 69db ldr r3, [r3, #28] + 8008856: 041b lsls r3, r3, #16 + 8008858: 60fb str r3, [r7, #12] hltdc->Instance->BPCR |= (tmp | hltdc->Init.AccumulatedVBP); - 8008856: 687b ldr r3, [r7, #4] - 8008858: 681b ldr r3, [r3, #0] - 800885a: 68d9 ldr r1, [r3, #12] - 800885c: 687b ldr r3, [r7, #4] - 800885e: 6a1a ldr r2, [r3, #32] - 8008860: 68fb ldr r3, [r7, #12] - 8008862: 431a orrs r2, r3 - 8008864: 687b ldr r3, [r7, #4] - 8008866: 681b ldr r3, [r3, #0] - 8008868: 430a orrs r2, r1 - 800886a: 60da str r2, [r3, #12] + 800885a: 687b ldr r3, [r7, #4] + 800885c: 681b ldr r3, [r3, #0] + 800885e: 68d9 ldr r1, [r3, #12] + 8008860: 687b ldr r3, [r7, #4] + 8008862: 6a1a ldr r2, [r3, #32] + 8008864: 68fb ldr r3, [r7, #12] + 8008866: 431a orrs r2, r3 + 8008868: 687b ldr r3, [r7, #4] + 800886a: 681b ldr r3, [r3, #0] + 800886c: 430a orrs r2, r1 + 800886e: 60da str r2, [r3, #12] /* Set Accumulated Active Width */ hltdc->Instance->AWCR &= ~(LTDC_AWCR_AAH | LTDC_AWCR_AAW); - 800886c: 687b ldr r3, [r7, #4] - 800886e: 681b ldr r3, [r3, #0] - 8008870: 6919 ldr r1, [r3, #16] - 8008872: 687b ldr r3, [r7, #4] - 8008874: 681a ldr r2, [r3, #0] - 8008876: 4b33 ldr r3, [pc, #204] ; (8008944 ) - 8008878: 400b ands r3, r1 - 800887a: 6113 str r3, [r2, #16] + 8008870: 687b ldr r3, [r7, #4] + 8008872: 681b ldr r3, [r3, #0] + 8008874: 6919 ldr r1, [r3, #16] + 8008876: 687b ldr r3, [r7, #4] + 8008878: 681a ldr r2, [r3, #0] + 800887a: 4b33 ldr r3, [pc, #204] ; (8008948 ) + 800887c: 400b ands r3, r1 + 800887e: 6113 str r3, [r2, #16] tmp = (hltdc->Init.AccumulatedActiveW << 16U); - 800887c: 687b ldr r3, [r7, #4] - 800887e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8008880: 041b lsls r3, r3, #16 - 8008882: 60fb str r3, [r7, #12] + 8008880: 687b ldr r3, [r7, #4] + 8008882: 6a5b ldr r3, [r3, #36] ; 0x24 + 8008884: 041b lsls r3, r3, #16 + 8008886: 60fb str r3, [r7, #12] hltdc->Instance->AWCR |= (tmp | hltdc->Init.AccumulatedActiveH); - 8008884: 687b ldr r3, [r7, #4] - 8008886: 681b ldr r3, [r3, #0] - 8008888: 6919 ldr r1, [r3, #16] - 800888a: 687b ldr r3, [r7, #4] - 800888c: 6a9a ldr r2, [r3, #40] ; 0x28 - 800888e: 68fb ldr r3, [r7, #12] - 8008890: 431a orrs r2, r3 - 8008892: 687b ldr r3, [r7, #4] - 8008894: 681b ldr r3, [r3, #0] - 8008896: 430a orrs r2, r1 - 8008898: 611a str r2, [r3, #16] + 8008888: 687b ldr r3, [r7, #4] + 800888a: 681b ldr r3, [r3, #0] + 800888c: 6919 ldr r1, [r3, #16] + 800888e: 687b ldr r3, [r7, #4] + 8008890: 6a9a ldr r2, [r3, #40] ; 0x28 + 8008892: 68fb ldr r3, [r7, #12] + 8008894: 431a orrs r2, r3 + 8008896: 687b ldr r3, [r7, #4] + 8008898: 681b ldr r3, [r3, #0] + 800889a: 430a orrs r2, r1 + 800889c: 611a str r2, [r3, #16] /* Set Total Width */ hltdc->Instance->TWCR &= ~(LTDC_TWCR_TOTALH | LTDC_TWCR_TOTALW); - 800889a: 687b ldr r3, [r7, #4] - 800889c: 681b ldr r3, [r3, #0] - 800889e: 6959 ldr r1, [r3, #20] - 80088a0: 687b ldr r3, [r7, #4] - 80088a2: 681a ldr r2, [r3, #0] - 80088a4: 4b27 ldr r3, [pc, #156] ; (8008944 ) - 80088a6: 400b ands r3, r1 - 80088a8: 6153 str r3, [r2, #20] + 800889e: 687b ldr r3, [r7, #4] + 80088a0: 681b ldr r3, [r3, #0] + 80088a2: 6959 ldr r1, [r3, #20] + 80088a4: 687b ldr r3, [r7, #4] + 80088a6: 681a ldr r2, [r3, #0] + 80088a8: 4b27 ldr r3, [pc, #156] ; (8008948 ) + 80088aa: 400b ands r3, r1 + 80088ac: 6153 str r3, [r2, #20] tmp = (hltdc->Init.TotalWidth << 16U); - 80088aa: 687b ldr r3, [r7, #4] - 80088ac: 6adb ldr r3, [r3, #44] ; 0x2c - 80088ae: 041b lsls r3, r3, #16 - 80088b0: 60fb str r3, [r7, #12] + 80088ae: 687b ldr r3, [r7, #4] + 80088b0: 6adb ldr r3, [r3, #44] ; 0x2c + 80088b2: 041b lsls r3, r3, #16 + 80088b4: 60fb str r3, [r7, #12] hltdc->Instance->TWCR |= (tmp | hltdc->Init.TotalHeigh); - 80088b2: 687b ldr r3, [r7, #4] - 80088b4: 681b ldr r3, [r3, #0] - 80088b6: 6959 ldr r1, [r3, #20] - 80088b8: 687b ldr r3, [r7, #4] - 80088ba: 6b1a ldr r2, [r3, #48] ; 0x30 - 80088bc: 68fb ldr r3, [r7, #12] - 80088be: 431a orrs r2, r3 - 80088c0: 687b ldr r3, [r7, #4] - 80088c2: 681b ldr r3, [r3, #0] - 80088c4: 430a orrs r2, r1 - 80088c6: 615a str r2, [r3, #20] + 80088b6: 687b ldr r3, [r7, #4] + 80088b8: 681b ldr r3, [r3, #0] + 80088ba: 6959 ldr r1, [r3, #20] + 80088bc: 687b ldr r3, [r7, #4] + 80088be: 6b1a ldr r2, [r3, #48] ; 0x30 + 80088c0: 68fb ldr r3, [r7, #12] + 80088c2: 431a orrs r2, r3 + 80088c4: 687b ldr r3, [r7, #4] + 80088c6: 681b ldr r3, [r3, #0] + 80088c8: 430a orrs r2, r1 + 80088ca: 615a str r2, [r3, #20] /* Set the background color value */ tmp = ((uint32_t)(hltdc->Init.Backcolor.Green) << 8U); - 80088c8: 687b ldr r3, [r7, #4] - 80088ca: f893 3035 ldrb.w r3, [r3, #53] ; 0x35 - 80088ce: 021b lsls r3, r3, #8 - 80088d0: 60fb str r3, [r7, #12] + 80088cc: 687b ldr r3, [r7, #4] + 80088ce: f893 3035 ldrb.w r3, [r3, #53] ; 0x35 + 80088d2: 021b lsls r3, r3, #8 + 80088d4: 60fb str r3, [r7, #12] tmp1 = ((uint32_t)(hltdc->Init.Backcolor.Red) << 16U); - 80088d2: 687b ldr r3, [r7, #4] - 80088d4: f893 3036 ldrb.w r3, [r3, #54] ; 0x36 - 80088d8: 041b lsls r3, r3, #16 - 80088da: 60bb str r3, [r7, #8] + 80088d6: 687b ldr r3, [r7, #4] + 80088d8: f893 3036 ldrb.w r3, [r3, #54] ; 0x36 + 80088dc: 041b lsls r3, r3, #16 + 80088de: 60bb str r3, [r7, #8] hltdc->Instance->BCCR &= ~(LTDC_BCCR_BCBLUE | LTDC_BCCR_BCGREEN | LTDC_BCCR_BCRED); - 80088dc: 687b ldr r3, [r7, #4] - 80088de: 681b ldr r3, [r3, #0] - 80088e0: 6ada ldr r2, [r3, #44] ; 0x2c - 80088e2: 687b ldr r3, [r7, #4] - 80088e4: 681b ldr r3, [r3, #0] - 80088e6: f002 427f and.w r2, r2, #4278190080 ; 0xff000000 - 80088ea: 62da str r2, [r3, #44] ; 0x2c + 80088e0: 687b ldr r3, [r7, #4] + 80088e2: 681b ldr r3, [r3, #0] + 80088e4: 6ada ldr r2, [r3, #44] ; 0x2c + 80088e6: 687b ldr r3, [r7, #4] + 80088e8: 681b ldr r3, [r3, #0] + 80088ea: f002 427f and.w r2, r2, #4278190080 ; 0xff000000 + 80088ee: 62da str r2, [r3, #44] ; 0x2c hltdc->Instance->BCCR |= (tmp1 | tmp | hltdc->Init.Backcolor.Blue); - 80088ec: 687b ldr r3, [r7, #4] - 80088ee: 681b ldr r3, [r3, #0] - 80088f0: 6ad9 ldr r1, [r3, #44] ; 0x2c - 80088f2: 68ba ldr r2, [r7, #8] - 80088f4: 68fb ldr r3, [r7, #12] - 80088f6: 4313 orrs r3, r2 - 80088f8: 687a ldr r2, [r7, #4] - 80088fa: f892 2034 ldrb.w r2, [r2, #52] ; 0x34 - 80088fe: 431a orrs r2, r3 - 8008900: 687b ldr r3, [r7, #4] - 8008902: 681b ldr r3, [r3, #0] - 8008904: 430a orrs r2, r1 - 8008906: 62da str r2, [r3, #44] ; 0x2c + 80088f0: 687b ldr r3, [r7, #4] + 80088f2: 681b ldr r3, [r3, #0] + 80088f4: 6ad9 ldr r1, [r3, #44] ; 0x2c + 80088f6: 68ba ldr r2, [r7, #8] + 80088f8: 68fb ldr r3, [r7, #12] + 80088fa: 4313 orrs r3, r2 + 80088fc: 687a ldr r2, [r7, #4] + 80088fe: f892 2034 ldrb.w r2, [r2, #52] ; 0x34 + 8008902: 431a orrs r2, r3 + 8008904: 687b ldr r3, [r7, #4] + 8008906: 681b ldr r3, [r3, #0] + 8008908: 430a orrs r2, r1 + 800890a: 62da str r2, [r3, #44] ; 0x2c /* Enable the Transfer Error and FIFO underrun interrupts */ __HAL_LTDC_ENABLE_IT(hltdc, LTDC_IT_TE | LTDC_IT_FU); - 8008908: 687b ldr r3, [r7, #4] - 800890a: 681b ldr r3, [r3, #0] - 800890c: 6b5a ldr r2, [r3, #52] ; 0x34 - 800890e: 687b ldr r3, [r7, #4] - 8008910: 681b ldr r3, [r3, #0] - 8008912: f042 0206 orr.w r2, r2, #6 - 8008916: 635a str r2, [r3, #52] ; 0x34 + 800890c: 687b ldr r3, [r7, #4] + 800890e: 681b ldr r3, [r3, #0] + 8008910: 6b5a ldr r2, [r3, #52] ; 0x34 + 8008912: 687b ldr r3, [r7, #4] + 8008914: 681b ldr r3, [r3, #0] + 8008916: f042 0206 orr.w r2, r2, #6 + 800891a: 635a str r2, [r3, #52] ; 0x34 /* Enable LTDC by setting LTDCEN bit */ __HAL_LTDC_ENABLE(hltdc); - 8008918: 687b ldr r3, [r7, #4] - 800891a: 681b ldr r3, [r3, #0] - 800891c: 699a ldr r2, [r3, #24] - 800891e: 687b ldr r3, [r7, #4] - 8008920: 681b ldr r3, [r3, #0] - 8008922: f042 0201 orr.w r2, r2, #1 - 8008926: 619a str r2, [r3, #24] + 800891c: 687b ldr r3, [r7, #4] + 800891e: 681b ldr r3, [r3, #0] + 8008920: 699a ldr r2, [r3, #24] + 8008922: 687b ldr r3, [r7, #4] + 8008924: 681b ldr r3, [r3, #0] + 8008926: f042 0201 orr.w r2, r2, #1 + 800892a: 619a str r2, [r3, #24] /* Initialize the error code */ hltdc->ErrorCode = HAL_LTDC_ERROR_NONE; - 8008928: 687b ldr r3, [r7, #4] - 800892a: 2200 movs r2, #0 - 800892c: f8c3 20a4 str.w r2, [r3, #164] ; 0xa4 + 800892c: 687b ldr r3, [r7, #4] + 800892e: 2200 movs r2, #0 + 8008930: f8c3 20a4 str.w r2, [r3, #164] ; 0xa4 /* Initialize the LTDC state*/ hltdc->State = HAL_LTDC_STATE_READY; - 8008930: 687b ldr r3, [r7, #4] - 8008932: 2201 movs r2, #1 - 8008934: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 + 8008934: 687b ldr r3, [r7, #4] + 8008936: 2201 movs r2, #1 + 8008938: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 return HAL_OK; - 8008938: 2300 movs r3, #0 + 800893c: 2300 movs r3, #0 } - 800893a: 4618 mov r0, r3 - 800893c: 3710 adds r7, #16 - 800893e: 46bd mov sp, r7 - 8008940: bd80 pop {r7, pc} - 8008942: bf00 nop - 8008944: f000f800 .word 0xf000f800 + 800893e: 4618 mov r0, r3 + 8008940: 3710 adds r7, #16 + 8008942: 46bd mov sp, r7 + 8008944: bd80 pop {r7, pc} + 8008946: bf00 nop + 8008948: f000f800 .word 0xf000f800 -08008948 : +0800894c : * @param hltdc pointer to a LTDC_HandleTypeDef structure that contains * the configuration information for the LTDC. * @retval HAL status */ void HAL_LTDC_IRQHandler(LTDC_HandleTypeDef *hltdc) { - 8008948: b580 push {r7, lr} - 800894a: b084 sub sp, #16 - 800894c: af00 add r7, sp, #0 - 800894e: 6078 str r0, [r7, #4] + 800894c: b580 push {r7, lr} + 800894e: b084 sub sp, #16 + 8008950: af00 add r7, sp, #0 + 8008952: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(hltdc->Instance->ISR); - 8008950: 687b ldr r3, [r7, #4] - 8008952: 681b ldr r3, [r3, #0] - 8008954: 6b9b ldr r3, [r3, #56] ; 0x38 - 8008956: 60fb str r3, [r7, #12] + 8008954: 687b ldr r3, [r7, #4] + 8008956: 681b ldr r3, [r3, #0] + 8008958: 6b9b ldr r3, [r3, #56] ; 0x38 + 800895a: 60fb str r3, [r7, #12] uint32_t itsources = READ_REG(hltdc->Instance->IER); - 8008958: 687b ldr r3, [r7, #4] - 800895a: 681b ldr r3, [r3, #0] - 800895c: 6b5b ldr r3, [r3, #52] ; 0x34 - 800895e: 60bb str r3, [r7, #8] + 800895c: 687b ldr r3, [r7, #4] + 800895e: 681b ldr r3, [r3, #0] + 8008960: 6b5b ldr r3, [r3, #52] ; 0x34 + 8008962: 60bb str r3, [r7, #8] /* Transfer Error Interrupt management ***************************************/ if (((isrflags & LTDC_ISR_TERRIF) != 0U) && ((itsources & LTDC_IER_TERRIE) != 0U)) - 8008960: 68fb ldr r3, [r7, #12] - 8008962: f003 0304 and.w r3, r3, #4 - 8008966: 2b00 cmp r3, #0 - 8008968: d023 beq.n 80089b2 - 800896a: 68bb ldr r3, [r7, #8] - 800896c: f003 0304 and.w r3, r3, #4 - 8008970: 2b00 cmp r3, #0 - 8008972: d01e beq.n 80089b2 + 8008964: 68fb ldr r3, [r7, #12] + 8008966: f003 0304 and.w r3, r3, #4 + 800896a: 2b00 cmp r3, #0 + 800896c: d023 beq.n 80089b6 + 800896e: 68bb ldr r3, [r7, #8] + 8008970: f003 0304 and.w r3, r3, #4 + 8008974: 2b00 cmp r3, #0 + 8008976: d01e beq.n 80089b6 { /* Disable the transfer Error interrupt */ __HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_TE); - 8008974: 687b ldr r3, [r7, #4] - 8008976: 681b ldr r3, [r3, #0] - 8008978: 6b5a ldr r2, [r3, #52] ; 0x34 - 800897a: 687b ldr r3, [r7, #4] - 800897c: 681b ldr r3, [r3, #0] - 800897e: f022 0204 bic.w r2, r2, #4 - 8008982: 635a str r2, [r3, #52] ; 0x34 + 8008978: 687b ldr r3, [r7, #4] + 800897a: 681b ldr r3, [r3, #0] + 800897c: 6b5a ldr r2, [r3, #52] ; 0x34 + 800897e: 687b ldr r3, [r7, #4] + 8008980: 681b ldr r3, [r3, #0] + 8008982: f022 0204 bic.w r2, r2, #4 + 8008986: 635a str r2, [r3, #52] ; 0x34 /* Clear the transfer error flag */ __HAL_LTDC_CLEAR_FLAG(hltdc, LTDC_FLAG_TE); - 8008984: 687b ldr r3, [r7, #4] - 8008986: 681b ldr r3, [r3, #0] - 8008988: 2204 movs r2, #4 - 800898a: 63da str r2, [r3, #60] ; 0x3c + 8008988: 687b ldr r3, [r7, #4] + 800898a: 681b ldr r3, [r3, #0] + 800898c: 2204 movs r2, #4 + 800898e: 63da str r2, [r3, #60] ; 0x3c /* Update error code */ hltdc->ErrorCode |= HAL_LTDC_ERROR_TE; - 800898c: 687b ldr r3, [r7, #4] - 800898e: f8d3 30a4 ldr.w r3, [r3, #164] ; 0xa4 - 8008992: f043 0201 orr.w r2, r3, #1 - 8008996: 687b ldr r3, [r7, #4] - 8008998: f8c3 20a4 str.w r2, [r3, #164] ; 0xa4 + 8008990: 687b ldr r3, [r7, #4] + 8008992: f8d3 30a4 ldr.w r3, [r3, #164] ; 0xa4 + 8008996: f043 0201 orr.w r2, r3, #1 + 800899a: 687b ldr r3, [r7, #4] + 800899c: f8c3 20a4 str.w r2, [r3, #164] ; 0xa4 /* Change LTDC state */ hltdc->State = HAL_LTDC_STATE_ERROR; - 800899c: 687b ldr r3, [r7, #4] - 800899e: 2204 movs r2, #4 - 80089a0: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 + 80089a0: 687b ldr r3, [r7, #4] + 80089a2: 2204 movs r2, #4 + 80089a4: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 /* Process unlocked */ __HAL_UNLOCK(hltdc); - 80089a4: 687b ldr r3, [r7, #4] - 80089a6: 2200 movs r2, #0 - 80089a8: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 + 80089a8: 687b ldr r3, [r7, #4] + 80089aa: 2200 movs r2, #0 + 80089ac: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 #if (USE_HAL_LTDC_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ hltdc->ErrorCallback(hltdc); #else /* Call legacy error callback*/ HAL_LTDC_ErrorCallback(hltdc); - 80089ac: 6878 ldr r0, [r7, #4] - 80089ae: f000 f86f bl 8008a90 + 80089b0: 6878 ldr r0, [r7, #4] + 80089b2: f000 f86f bl 8008a94 #endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */ } /* FIFO underrun Interrupt management ***************************************/ if (((isrflags & LTDC_ISR_FUIF) != 0U) && ((itsources & LTDC_IER_FUIE) != 0U)) - 80089b2: 68fb ldr r3, [r7, #12] - 80089b4: f003 0302 and.w r3, r3, #2 - 80089b8: 2b00 cmp r3, #0 - 80089ba: d023 beq.n 8008a04 - 80089bc: 68bb ldr r3, [r7, #8] - 80089be: f003 0302 and.w r3, r3, #2 - 80089c2: 2b00 cmp r3, #0 - 80089c4: d01e beq.n 8008a04 + 80089b6: 68fb ldr r3, [r7, #12] + 80089b8: f003 0302 and.w r3, r3, #2 + 80089bc: 2b00 cmp r3, #0 + 80089be: d023 beq.n 8008a08 + 80089c0: 68bb ldr r3, [r7, #8] + 80089c2: f003 0302 and.w r3, r3, #2 + 80089c6: 2b00 cmp r3, #0 + 80089c8: d01e beq.n 8008a08 { /* Disable the FIFO underrun interrupt */ __HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_FU); - 80089c6: 687b ldr r3, [r7, #4] - 80089c8: 681b ldr r3, [r3, #0] - 80089ca: 6b5a ldr r2, [r3, #52] ; 0x34 - 80089cc: 687b ldr r3, [r7, #4] - 80089ce: 681b ldr r3, [r3, #0] - 80089d0: f022 0202 bic.w r2, r2, #2 - 80089d4: 635a str r2, [r3, #52] ; 0x34 + 80089ca: 687b ldr r3, [r7, #4] + 80089cc: 681b ldr r3, [r3, #0] + 80089ce: 6b5a ldr r2, [r3, #52] ; 0x34 + 80089d0: 687b ldr r3, [r7, #4] + 80089d2: 681b ldr r3, [r3, #0] + 80089d4: f022 0202 bic.w r2, r2, #2 + 80089d8: 635a str r2, [r3, #52] ; 0x34 /* Clear the FIFO underrun flag */ __HAL_LTDC_CLEAR_FLAG(hltdc, LTDC_FLAG_FU); - 80089d6: 687b ldr r3, [r7, #4] - 80089d8: 681b ldr r3, [r3, #0] - 80089da: 2202 movs r2, #2 - 80089dc: 63da str r2, [r3, #60] ; 0x3c + 80089da: 687b ldr r3, [r7, #4] + 80089dc: 681b ldr r3, [r3, #0] + 80089de: 2202 movs r2, #2 + 80089e0: 63da str r2, [r3, #60] ; 0x3c /* Update error code */ hltdc->ErrorCode |= HAL_LTDC_ERROR_FU; - 80089de: 687b ldr r3, [r7, #4] - 80089e0: f8d3 30a4 ldr.w r3, [r3, #164] ; 0xa4 - 80089e4: f043 0202 orr.w r2, r3, #2 - 80089e8: 687b ldr r3, [r7, #4] - 80089ea: f8c3 20a4 str.w r2, [r3, #164] ; 0xa4 + 80089e2: 687b ldr r3, [r7, #4] + 80089e4: f8d3 30a4 ldr.w r3, [r3, #164] ; 0xa4 + 80089e8: f043 0202 orr.w r2, r3, #2 + 80089ec: 687b ldr r3, [r7, #4] + 80089ee: f8c3 20a4 str.w r2, [r3, #164] ; 0xa4 /* Change LTDC state */ hltdc->State = HAL_LTDC_STATE_ERROR; - 80089ee: 687b ldr r3, [r7, #4] - 80089f0: 2204 movs r2, #4 - 80089f2: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 + 80089f2: 687b ldr r3, [r7, #4] + 80089f4: 2204 movs r2, #4 + 80089f6: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 /* Process unlocked */ __HAL_UNLOCK(hltdc); - 80089f6: 687b ldr r3, [r7, #4] - 80089f8: 2200 movs r2, #0 - 80089fa: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 + 80089fa: 687b ldr r3, [r7, #4] + 80089fc: 2200 movs r2, #0 + 80089fe: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 #if (USE_HAL_LTDC_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ hltdc->ErrorCallback(hltdc); #else /* Call legacy error callback*/ HAL_LTDC_ErrorCallback(hltdc); - 80089fe: 6878 ldr r0, [r7, #4] - 8008a00: f000 f846 bl 8008a90 + 8008a02: 6878 ldr r0, [r7, #4] + 8008a04: f000 f846 bl 8008a94 #endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */ } /* Line Interrupt management ************************************************/ if (((isrflags & LTDC_ISR_LIF) != 0U) && ((itsources & LTDC_IER_LIE) != 0U)) - 8008a04: 68fb ldr r3, [r7, #12] - 8008a06: f003 0301 and.w r3, r3, #1 - 8008a0a: 2b00 cmp r3, #0 - 8008a0c: d01b beq.n 8008a46 - 8008a0e: 68bb ldr r3, [r7, #8] - 8008a10: f003 0301 and.w r3, r3, #1 - 8008a14: 2b00 cmp r3, #0 - 8008a16: d016 beq.n 8008a46 + 8008a08: 68fb ldr r3, [r7, #12] + 8008a0a: f003 0301 and.w r3, r3, #1 + 8008a0e: 2b00 cmp r3, #0 + 8008a10: d01b beq.n 8008a4a + 8008a12: 68bb ldr r3, [r7, #8] + 8008a14: f003 0301 and.w r3, r3, #1 + 8008a18: 2b00 cmp r3, #0 + 8008a1a: d016 beq.n 8008a4a { /* Disable the Line interrupt */ __HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_LI); - 8008a18: 687b ldr r3, [r7, #4] - 8008a1a: 681b ldr r3, [r3, #0] - 8008a1c: 6b5a ldr r2, [r3, #52] ; 0x34 - 8008a1e: 687b ldr r3, [r7, #4] - 8008a20: 681b ldr r3, [r3, #0] - 8008a22: f022 0201 bic.w r2, r2, #1 - 8008a26: 635a str r2, [r3, #52] ; 0x34 + 8008a1c: 687b ldr r3, [r7, #4] + 8008a1e: 681b ldr r3, [r3, #0] + 8008a20: 6b5a ldr r2, [r3, #52] ; 0x34 + 8008a22: 687b ldr r3, [r7, #4] + 8008a24: 681b ldr r3, [r3, #0] + 8008a26: f022 0201 bic.w r2, r2, #1 + 8008a2a: 635a str r2, [r3, #52] ; 0x34 /* Clear the Line interrupt flag */ __HAL_LTDC_CLEAR_FLAG(hltdc, LTDC_FLAG_LI); - 8008a28: 687b ldr r3, [r7, #4] - 8008a2a: 681b ldr r3, [r3, #0] - 8008a2c: 2201 movs r2, #1 - 8008a2e: 63da str r2, [r3, #60] ; 0x3c + 8008a2c: 687b ldr r3, [r7, #4] + 8008a2e: 681b ldr r3, [r3, #0] + 8008a30: 2201 movs r2, #1 + 8008a32: 63da str r2, [r3, #60] ; 0x3c /* Change LTDC state */ hltdc->State = HAL_LTDC_STATE_READY; - 8008a30: 687b ldr r3, [r7, #4] - 8008a32: 2201 movs r2, #1 - 8008a34: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 + 8008a34: 687b ldr r3, [r7, #4] + 8008a36: 2201 movs r2, #1 + 8008a38: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 /* Process unlocked */ __HAL_UNLOCK(hltdc); - 8008a38: 687b ldr r3, [r7, #4] - 8008a3a: 2200 movs r2, #0 - 8008a3c: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 + 8008a3c: 687b ldr r3, [r7, #4] + 8008a3e: 2200 movs r2, #0 + 8008a40: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 #if (USE_HAL_LTDC_REGISTER_CALLBACKS == 1) /*Call registered Line Event callback */ hltdc->LineEventCallback(hltdc); #else /*Call Legacy Line Event callback */ HAL_LTDC_LineEventCallback(hltdc); - 8008a40: 6878 ldr r0, [r7, #4] - 8008a42: f000 f82f bl 8008aa4 + 8008a44: 6878 ldr r0, [r7, #4] + 8008a46: f000 f82f bl 8008aa8 #endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */ } /* Register reload Interrupt management ***************************************/ if (((isrflags & LTDC_ISR_RRIF) != 0U) && ((itsources & LTDC_IER_RRIE) != 0U)) - 8008a46: 68fb ldr r3, [r7, #12] - 8008a48: f003 0308 and.w r3, r3, #8 - 8008a4c: 2b00 cmp r3, #0 - 8008a4e: d01b beq.n 8008a88 - 8008a50: 68bb ldr r3, [r7, #8] - 8008a52: f003 0308 and.w r3, r3, #8 - 8008a56: 2b00 cmp r3, #0 - 8008a58: d016 beq.n 8008a88 + 8008a4a: 68fb ldr r3, [r7, #12] + 8008a4c: f003 0308 and.w r3, r3, #8 + 8008a50: 2b00 cmp r3, #0 + 8008a52: d01b beq.n 8008a8c + 8008a54: 68bb ldr r3, [r7, #8] + 8008a56: f003 0308 and.w r3, r3, #8 + 8008a5a: 2b00 cmp r3, #0 + 8008a5c: d016 beq.n 8008a8c { /* Disable the register reload interrupt */ __HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_RR); - 8008a5a: 687b ldr r3, [r7, #4] - 8008a5c: 681b ldr r3, [r3, #0] - 8008a5e: 6b5a ldr r2, [r3, #52] ; 0x34 - 8008a60: 687b ldr r3, [r7, #4] - 8008a62: 681b ldr r3, [r3, #0] - 8008a64: f022 0208 bic.w r2, r2, #8 - 8008a68: 635a str r2, [r3, #52] ; 0x34 + 8008a5e: 687b ldr r3, [r7, #4] + 8008a60: 681b ldr r3, [r3, #0] + 8008a62: 6b5a ldr r2, [r3, #52] ; 0x34 + 8008a64: 687b ldr r3, [r7, #4] + 8008a66: 681b ldr r3, [r3, #0] + 8008a68: f022 0208 bic.w r2, r2, #8 + 8008a6c: 635a str r2, [r3, #52] ; 0x34 /* Clear the register reload flag */ __HAL_LTDC_CLEAR_FLAG(hltdc, LTDC_FLAG_RR); - 8008a6a: 687b ldr r3, [r7, #4] - 8008a6c: 681b ldr r3, [r3, #0] - 8008a6e: 2208 movs r2, #8 - 8008a70: 63da str r2, [r3, #60] ; 0x3c + 8008a6e: 687b ldr r3, [r7, #4] + 8008a70: 681b ldr r3, [r3, #0] + 8008a72: 2208 movs r2, #8 + 8008a74: 63da str r2, [r3, #60] ; 0x3c /* Change LTDC state */ hltdc->State = HAL_LTDC_STATE_READY; - 8008a72: 687b ldr r3, [r7, #4] - 8008a74: 2201 movs r2, #1 - 8008a76: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 + 8008a76: 687b ldr r3, [r7, #4] + 8008a78: 2201 movs r2, #1 + 8008a7a: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 /* Process unlocked */ __HAL_UNLOCK(hltdc); - 8008a7a: 687b ldr r3, [r7, #4] - 8008a7c: 2200 movs r2, #0 - 8008a7e: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 + 8008a7e: 687b ldr r3, [r7, #4] + 8008a80: 2200 movs r2, #0 + 8008a82: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 #if (USE_HAL_LTDC_REGISTER_CALLBACKS == 1) /*Call registered reload Event callback */ hltdc->ReloadEventCallback(hltdc); #else /*Call Legacy Reload Event callback */ HAL_LTDC_ReloadEventCallback(hltdc); - 8008a82: 6878 ldr r0, [r7, #4] - 8008a84: f000 f818 bl 8008ab8 + 8008a86: 6878 ldr r0, [r7, #4] + 8008a88: f000 f818 bl 8008abc #endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */ } } - 8008a88: bf00 nop - 8008a8a: 3710 adds r7, #16 - 8008a8c: 46bd mov sp, r7 - 8008a8e: bd80 pop {r7, pc} + 8008a8c: bf00 nop + 8008a8e: 3710 adds r7, #16 + 8008a90: 46bd mov sp, r7 + 8008a92: bd80 pop {r7, pc} -08008a90 : +08008a94 : * @param hltdc pointer to a LTDC_HandleTypeDef structure that contains * the configuration information for the LTDC. * @retval None */ __weak void HAL_LTDC_ErrorCallback(LTDC_HandleTypeDef *hltdc) { - 8008a90: b480 push {r7} - 8008a92: b083 sub sp, #12 - 8008a94: af00 add r7, sp, #0 - 8008a96: 6078 str r0, [r7, #4] + 8008a94: b480 push {r7} + 8008a96: b083 sub sp, #12 + 8008a98: af00 add r7, sp, #0 + 8008a9a: 6078 str r0, [r7, #4] UNUSED(hltdc); /* NOTE : This function should not be modified, when the callback is needed, the HAL_LTDC_ErrorCallback could be implemented in the user file */ } - 8008a98: bf00 nop - 8008a9a: 370c adds r7, #12 - 8008a9c: 46bd mov sp, r7 - 8008a9e: f85d 7b04 ldr.w r7, [sp], #4 - 8008aa2: 4770 bx lr + 8008a9c: bf00 nop + 8008a9e: 370c adds r7, #12 + 8008aa0: 46bd mov sp, r7 + 8008aa2: f85d 7b04 ldr.w r7, [sp], #4 + 8008aa6: 4770 bx lr -08008aa4 : +08008aa8 : * @param hltdc pointer to a LTDC_HandleTypeDef structure that contains * the configuration information for the LTDC. * @retval None */ __weak void HAL_LTDC_LineEventCallback(LTDC_HandleTypeDef *hltdc) { - 8008aa4: b480 push {r7} - 8008aa6: b083 sub sp, #12 - 8008aa8: af00 add r7, sp, #0 - 8008aaa: 6078 str r0, [r7, #4] + 8008aa8: b480 push {r7} + 8008aaa: b083 sub sp, #12 + 8008aac: af00 add r7, sp, #0 + 8008aae: 6078 str r0, [r7, #4] UNUSED(hltdc); /* NOTE : This function should not be modified, when the callback is needed, the HAL_LTDC_LineEventCallback could be implemented in the user file */ } - 8008aac: bf00 nop - 8008aae: 370c adds r7, #12 - 8008ab0: 46bd mov sp, r7 - 8008ab2: f85d 7b04 ldr.w r7, [sp], #4 - 8008ab6: 4770 bx lr + 8008ab0: bf00 nop + 8008ab2: 370c adds r7, #12 + 8008ab4: 46bd mov sp, r7 + 8008ab6: f85d 7b04 ldr.w r7, [sp], #4 + 8008aba: 4770 bx lr -08008ab8 : +08008abc : * @param hltdc pointer to a LTDC_HandleTypeDef structure that contains * the configuration information for the LTDC. * @retval None */ __weak void HAL_LTDC_ReloadEventCallback(LTDC_HandleTypeDef *hltdc) { - 8008ab8: b480 push {r7} - 8008aba: b083 sub sp, #12 - 8008abc: af00 add r7, sp, #0 - 8008abe: 6078 str r0, [r7, #4] + 8008abc: b480 push {r7} + 8008abe: b083 sub sp, #12 + 8008ac0: af00 add r7, sp, #0 + 8008ac2: 6078 str r0, [r7, #4] UNUSED(hltdc); /* NOTE : This function should not be modified, when the callback is needed, the HAL_LTDC_ReloadEvenCallback could be implemented in the user file */ } - 8008ac0: bf00 nop - 8008ac2: 370c adds r7, #12 - 8008ac4: 46bd mov sp, r7 - 8008ac6: f85d 7b04 ldr.w r7, [sp], #4 - 8008aca: 4770 bx lr + 8008ac4: bf00 nop + 8008ac6: 370c adds r7, #12 + 8008ac8: 46bd mov sp, r7 + 8008aca: f85d 7b04 ldr.w r7, [sp], #4 + 8008ace: 4770 bx lr -08008acc : +08008ad0 : * This parameter can be one of the following values: * LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1) * @retval HAL status */ HAL_StatusTypeDef HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx) { - 8008acc: b5b0 push {r4, r5, r7, lr} - 8008ace: b084 sub sp, #16 - 8008ad0: af00 add r7, sp, #0 - 8008ad2: 60f8 str r0, [r7, #12] - 8008ad4: 60b9 str r1, [r7, #8] - 8008ad6: 607a str r2, [r7, #4] + 8008ad0: b5b0 push {r4, r5, r7, lr} + 8008ad2: b084 sub sp, #16 + 8008ad4: af00 add r7, sp, #0 + 8008ad6: 60f8 str r0, [r7, #12] + 8008ad8: 60b9 str r1, [r7, #8] + 8008ada: 607a str r2, [r7, #4] assert_param(IS_LTDC_BLENDING_FACTOR2(pLayerCfg->BlendingFactor2)); assert_param(IS_LTDC_CFBLL(pLayerCfg->ImageWidth)); assert_param(IS_LTDC_CFBLNBR(pLayerCfg->ImageHeight)); /* Process locked */ __HAL_LOCK(hltdc); - 8008ad8: 68fb ldr r3, [r7, #12] - 8008ada: f893 30a0 ldrb.w r3, [r3, #160] ; 0xa0 - 8008ade: 2b01 cmp r3, #1 - 8008ae0: d101 bne.n 8008ae6 - 8008ae2: 2302 movs r3, #2 - 8008ae4: e02c b.n 8008b40 - 8008ae6: 68fb ldr r3, [r7, #12] - 8008ae8: 2201 movs r2, #1 - 8008aea: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 + 8008adc: 68fb ldr r3, [r7, #12] + 8008ade: f893 30a0 ldrb.w r3, [r3, #160] ; 0xa0 + 8008ae2: 2b01 cmp r3, #1 + 8008ae4: d101 bne.n 8008aea + 8008ae6: 2302 movs r3, #2 + 8008ae8: e02c b.n 8008b44 + 8008aea: 68fb ldr r3, [r7, #12] + 8008aec: 2201 movs r2, #1 + 8008aee: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 /* Change LTDC peripheral state */ hltdc->State = HAL_LTDC_STATE_BUSY; - 8008aee: 68fb ldr r3, [r7, #12] - 8008af0: 2202 movs r2, #2 - 8008af2: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 + 8008af2: 68fb ldr r3, [r7, #12] + 8008af4: 2202 movs r2, #2 + 8008af6: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 /* Copy new layer configuration into handle structure */ hltdc->LayerCfg[LayerIdx] = *pLayerCfg; - 8008af6: 68fa ldr r2, [r7, #12] - 8008af8: 687b ldr r3, [r7, #4] - 8008afa: 2134 movs r1, #52 ; 0x34 - 8008afc: fb01 f303 mul.w r3, r1, r3 - 8008b00: 4413 add r3, r2 - 8008b02: f103 0238 add.w r2, r3, #56 ; 0x38 - 8008b06: 68bb ldr r3, [r7, #8] - 8008b08: 4614 mov r4, r2 - 8008b0a: 461d mov r5, r3 - 8008b0c: cd0f ldmia r5!, {r0, r1, r2, r3} - 8008b0e: c40f stmia r4!, {r0, r1, r2, r3} + 8008afa: 68fa ldr r2, [r7, #12] + 8008afc: 687b ldr r3, [r7, #4] + 8008afe: 2134 movs r1, #52 ; 0x34 + 8008b00: fb01 f303 mul.w r3, r1, r3 + 8008b04: 4413 add r3, r2 + 8008b06: f103 0238 add.w r2, r3, #56 ; 0x38 + 8008b0a: 68bb ldr r3, [r7, #8] + 8008b0c: 4614 mov r4, r2 + 8008b0e: 461d mov r5, r3 8008b10: cd0f ldmia r5!, {r0, r1, r2, r3} 8008b12: c40f stmia r4!, {r0, r1, r2, r3} 8008b14: cd0f ldmia r5!, {r0, r1, r2, r3} 8008b16: c40f stmia r4!, {r0, r1, r2, r3} - 8008b18: 682b ldr r3, [r5, #0] - 8008b1a: 6023 str r3, [r4, #0] + 8008b18: cd0f ldmia r5!, {r0, r1, r2, r3} + 8008b1a: c40f stmia r4!, {r0, r1, r2, r3} + 8008b1c: 682b ldr r3, [r5, #0] + 8008b1e: 6023 str r3, [r4, #0] /* Configure the LTDC Layer */ LTDC_SetConfig(hltdc, pLayerCfg, LayerIdx); - 8008b1c: 687a ldr r2, [r7, #4] - 8008b1e: 68b9 ldr r1, [r7, #8] - 8008b20: 68f8 ldr r0, [r7, #12] - 8008b22: f000 f81f bl 8008b64 + 8008b20: 687a ldr r2, [r7, #4] + 8008b22: 68b9 ldr r1, [r7, #8] + 8008b24: 68f8 ldr r0, [r7, #12] + 8008b26: f000 f81f bl 8008b68 /* Set the Immediate Reload type */ hltdc->Instance->SRCR = LTDC_SRCR_IMR; - 8008b26: 68fb ldr r3, [r7, #12] - 8008b28: 681b ldr r3, [r3, #0] - 8008b2a: 2201 movs r2, #1 - 8008b2c: 625a str r2, [r3, #36] ; 0x24 + 8008b2a: 68fb ldr r3, [r7, #12] + 8008b2c: 681b ldr r3, [r3, #0] + 8008b2e: 2201 movs r2, #1 + 8008b30: 625a str r2, [r3, #36] ; 0x24 /* Initialize the LTDC state*/ hltdc->State = HAL_LTDC_STATE_READY; - 8008b2e: 68fb ldr r3, [r7, #12] - 8008b30: 2201 movs r2, #1 - 8008b32: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 + 8008b32: 68fb ldr r3, [r7, #12] + 8008b34: 2201 movs r2, #1 + 8008b36: f883 20a1 strb.w r2, [r3, #161] ; 0xa1 /* Process unlocked */ __HAL_UNLOCK(hltdc); - 8008b36: 68fb ldr r3, [r7, #12] - 8008b38: 2200 movs r2, #0 - 8008b3a: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 + 8008b3a: 68fb ldr r3, [r7, #12] + 8008b3c: 2200 movs r2, #0 + 8008b3e: f883 20a0 strb.w r2, [r3, #160] ; 0xa0 return HAL_OK; - 8008b3e: 2300 movs r3, #0 + 8008b42: 2300 movs r3, #0 } - 8008b40: 4618 mov r0, r3 - 8008b42: 3710 adds r7, #16 - 8008b44: 46bd mov sp, r7 - 8008b46: bdb0 pop {r4, r5, r7, pc} + 8008b44: 4618 mov r0, r3 + 8008b46: 3710 adds r7, #16 + 8008b48: 46bd mov sp, r7 + 8008b4a: bdb0 pop {r4, r5, r7, pc} -08008b48 : +08008b4c : * @param hltdc pointer to a LTDC_HandleTypeDef structure that contains * the configuration information for the LTDC. * @retval HAL state */ HAL_LTDC_StateTypeDef HAL_LTDC_GetState(LTDC_HandleTypeDef *hltdc) { - 8008b48: b480 push {r7} - 8008b4a: b083 sub sp, #12 - 8008b4c: af00 add r7, sp, #0 - 8008b4e: 6078 str r0, [r7, #4] + 8008b4c: b480 push {r7} + 8008b4e: b083 sub sp, #12 + 8008b50: af00 add r7, sp, #0 + 8008b52: 6078 str r0, [r7, #4] return hltdc->State; - 8008b50: 687b ldr r3, [r7, #4] - 8008b52: f893 30a1 ldrb.w r3, [r3, #161] ; 0xa1 - 8008b56: b2db uxtb r3, r3 + 8008b54: 687b ldr r3, [r7, #4] + 8008b56: f893 30a1 ldrb.w r3, [r3, #161] ; 0xa1 + 8008b5a: b2db uxtb r3, r3 } - 8008b58: 4618 mov r0, r3 - 8008b5a: 370c adds r7, #12 - 8008b5c: 46bd mov sp, r7 - 8008b5e: f85d 7b04 ldr.w r7, [sp], #4 - 8008b62: 4770 bx lr + 8008b5c: 4618 mov r0, r3 + 8008b5e: 370c adds r7, #12 + 8008b60: 46bd mov sp, r7 + 8008b62: f85d 7b04 ldr.w r7, [sp], #4 + 8008b66: 4770 bx lr -08008b64 : +08008b68 : * @param LayerIdx LTDC Layer index. * This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1) * @retval None */ static void LTDC_SetConfig(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx) { - 8008b64: b480 push {r7} - 8008b66: b089 sub sp, #36 ; 0x24 - 8008b68: af00 add r7, sp, #0 - 8008b6a: 60f8 str r0, [r7, #12] - 8008b6c: 60b9 str r1, [r7, #8] - 8008b6e: 607a str r2, [r7, #4] + 8008b68: b480 push {r7} + 8008b6a: b089 sub sp, #36 ; 0x24 + 8008b6c: af00 add r7, sp, #0 + 8008b6e: 60f8 str r0, [r7, #12] + 8008b70: 60b9 str r1, [r7, #8] + 8008b72: 607a str r2, [r7, #4] uint32_t tmp; uint32_t tmp1; uint32_t tmp2; /* Configure the horizontal start and stop position */ tmp = ((pLayerCfg->WindowX1 + ((hltdc->Instance->BPCR & LTDC_BPCR_AHBP) >> 16U)) << 16U); - 8008b70: 68bb ldr r3, [r7, #8] - 8008b72: 685a ldr r2, [r3, #4] - 8008b74: 68fb ldr r3, [r7, #12] - 8008b76: 681b ldr r3, [r3, #0] - 8008b78: 68db ldr r3, [r3, #12] - 8008b7a: 0c1b lsrs r3, r3, #16 - 8008b7c: f3c3 030b ubfx r3, r3, #0, #12 - 8008b80: 4413 add r3, r2 - 8008b82: 041b lsls r3, r3, #16 - 8008b84: 61fb str r3, [r7, #28] + 8008b74: 68bb ldr r3, [r7, #8] + 8008b76: 685a ldr r2, [r3, #4] + 8008b78: 68fb ldr r3, [r7, #12] + 8008b7a: 681b ldr r3, [r3, #0] + 8008b7c: 68db ldr r3, [r3, #12] + 8008b7e: 0c1b lsrs r3, r3, #16 + 8008b80: f3c3 030b ubfx r3, r3, #0, #12 + 8008b84: 4413 add r3, r2 + 8008b86: 041b lsls r3, r3, #16 + 8008b88: 61fb str r3, [r7, #28] LTDC_LAYER(hltdc, LayerIdx)->WHPCR &= ~(LTDC_LxWHPCR_WHSTPOS | LTDC_LxWHPCR_WHSPPOS); - 8008b86: 68fb ldr r3, [r7, #12] - 8008b88: 681b ldr r3, [r3, #0] - 8008b8a: 461a mov r2, r3 - 8008b8c: 687b ldr r3, [r7, #4] - 8008b8e: 01db lsls r3, r3, #7 - 8008b90: 4413 add r3, r2 - 8008b92: 3384 adds r3, #132 ; 0x84 - 8008b94: 685b ldr r3, [r3, #4] - 8008b96: 68fa ldr r2, [r7, #12] - 8008b98: 6812 ldr r2, [r2, #0] - 8008b9a: 4611 mov r1, r2 - 8008b9c: 687a ldr r2, [r7, #4] - 8008b9e: 01d2 lsls r2, r2, #7 - 8008ba0: 440a add r2, r1 - 8008ba2: 3284 adds r2, #132 ; 0x84 - 8008ba4: f403 4370 and.w r3, r3, #61440 ; 0xf000 - 8008ba8: 6053 str r3, [r2, #4] + 8008b8a: 68fb ldr r3, [r7, #12] + 8008b8c: 681b ldr r3, [r3, #0] + 8008b8e: 461a mov r2, r3 + 8008b90: 687b ldr r3, [r7, #4] + 8008b92: 01db lsls r3, r3, #7 + 8008b94: 4413 add r3, r2 + 8008b96: 3384 adds r3, #132 ; 0x84 + 8008b98: 685b ldr r3, [r3, #4] + 8008b9a: 68fa ldr r2, [r7, #12] + 8008b9c: 6812 ldr r2, [r2, #0] + 8008b9e: 4611 mov r1, r2 + 8008ba0: 687a ldr r2, [r7, #4] + 8008ba2: 01d2 lsls r2, r2, #7 + 8008ba4: 440a add r2, r1 + 8008ba6: 3284 adds r2, #132 ; 0x84 + 8008ba8: f403 4370 and.w r3, r3, #61440 ; 0xf000 + 8008bac: 6053 str r3, [r2, #4] LTDC_LAYER(hltdc, LayerIdx)->WHPCR = ((pLayerCfg->WindowX0 + ((hltdc->Instance->BPCR & LTDC_BPCR_AHBP) >> 16U) + 1U) | tmp); - 8008baa: 68bb ldr r3, [r7, #8] - 8008bac: 681a ldr r2, [r3, #0] - 8008bae: 68fb ldr r3, [r7, #12] - 8008bb0: 681b ldr r3, [r3, #0] - 8008bb2: 68db ldr r3, [r3, #12] - 8008bb4: 0c1b lsrs r3, r3, #16 - 8008bb6: f3c3 030b ubfx r3, r3, #0, #12 - 8008bba: 4413 add r3, r2 - 8008bbc: 1c5a adds r2, r3, #1 - 8008bbe: 68fb ldr r3, [r7, #12] - 8008bc0: 681b ldr r3, [r3, #0] - 8008bc2: 4619 mov r1, r3 - 8008bc4: 687b ldr r3, [r7, #4] - 8008bc6: 01db lsls r3, r3, #7 - 8008bc8: 440b add r3, r1 - 8008bca: 3384 adds r3, #132 ; 0x84 - 8008bcc: 4619 mov r1, r3 - 8008bce: 69fb ldr r3, [r7, #28] - 8008bd0: 4313 orrs r3, r2 - 8008bd2: 604b str r3, [r1, #4] + 8008bae: 68bb ldr r3, [r7, #8] + 8008bb0: 681a ldr r2, [r3, #0] + 8008bb2: 68fb ldr r3, [r7, #12] + 8008bb4: 681b ldr r3, [r3, #0] + 8008bb6: 68db ldr r3, [r3, #12] + 8008bb8: 0c1b lsrs r3, r3, #16 + 8008bba: f3c3 030b ubfx r3, r3, #0, #12 + 8008bbe: 4413 add r3, r2 + 8008bc0: 1c5a adds r2, r3, #1 + 8008bc2: 68fb ldr r3, [r7, #12] + 8008bc4: 681b ldr r3, [r3, #0] + 8008bc6: 4619 mov r1, r3 + 8008bc8: 687b ldr r3, [r7, #4] + 8008bca: 01db lsls r3, r3, #7 + 8008bcc: 440b add r3, r1 + 8008bce: 3384 adds r3, #132 ; 0x84 + 8008bd0: 4619 mov r1, r3 + 8008bd2: 69fb ldr r3, [r7, #28] + 8008bd4: 4313 orrs r3, r2 + 8008bd6: 604b str r3, [r1, #4] /* Configure the vertical start and stop position */ tmp = ((pLayerCfg->WindowY1 + (hltdc->Instance->BPCR & LTDC_BPCR_AVBP)) << 16U); - 8008bd4: 68bb ldr r3, [r7, #8] - 8008bd6: 68da ldr r2, [r3, #12] - 8008bd8: 68fb ldr r3, [r7, #12] - 8008bda: 681b ldr r3, [r3, #0] - 8008bdc: 68db ldr r3, [r3, #12] - 8008bde: f3c3 030a ubfx r3, r3, #0, #11 - 8008be2: 4413 add r3, r2 - 8008be4: 041b lsls r3, r3, #16 - 8008be6: 61fb str r3, [r7, #28] + 8008bd8: 68bb ldr r3, [r7, #8] + 8008bda: 68da ldr r2, [r3, #12] + 8008bdc: 68fb ldr r3, [r7, #12] + 8008bde: 681b ldr r3, [r3, #0] + 8008be0: 68db ldr r3, [r3, #12] + 8008be2: f3c3 030a ubfx r3, r3, #0, #11 + 8008be6: 4413 add r3, r2 + 8008be8: 041b lsls r3, r3, #16 + 8008bea: 61fb str r3, [r7, #28] LTDC_LAYER(hltdc, LayerIdx)->WVPCR &= ~(LTDC_LxWVPCR_WVSTPOS | LTDC_LxWVPCR_WVSPPOS); - 8008be8: 68fb ldr r3, [r7, #12] - 8008bea: 681b ldr r3, [r3, #0] - 8008bec: 461a mov r2, r3 - 8008bee: 687b ldr r3, [r7, #4] - 8008bf0: 01db lsls r3, r3, #7 - 8008bf2: 4413 add r3, r2 - 8008bf4: 3384 adds r3, #132 ; 0x84 - 8008bf6: 689b ldr r3, [r3, #8] - 8008bf8: 68fa ldr r2, [r7, #12] - 8008bfa: 6812 ldr r2, [r2, #0] - 8008bfc: 4611 mov r1, r2 - 8008bfe: 687a ldr r2, [r7, #4] - 8008c00: 01d2 lsls r2, r2, #7 - 8008c02: 440a add r2, r1 - 8008c04: 3284 adds r2, #132 ; 0x84 - 8008c06: f403 4370 and.w r3, r3, #61440 ; 0xf000 - 8008c0a: 6093 str r3, [r2, #8] + 8008bec: 68fb ldr r3, [r7, #12] + 8008bee: 681b ldr r3, [r3, #0] + 8008bf0: 461a mov r2, r3 + 8008bf2: 687b ldr r3, [r7, #4] + 8008bf4: 01db lsls r3, r3, #7 + 8008bf6: 4413 add r3, r2 + 8008bf8: 3384 adds r3, #132 ; 0x84 + 8008bfa: 689b ldr r3, [r3, #8] + 8008bfc: 68fa ldr r2, [r7, #12] + 8008bfe: 6812 ldr r2, [r2, #0] + 8008c00: 4611 mov r1, r2 + 8008c02: 687a ldr r2, [r7, #4] + 8008c04: 01d2 lsls r2, r2, #7 + 8008c06: 440a add r2, r1 + 8008c08: 3284 adds r2, #132 ; 0x84 + 8008c0a: f403 4370 and.w r3, r3, #61440 ; 0xf000 + 8008c0e: 6093 str r3, [r2, #8] LTDC_LAYER(hltdc, LayerIdx)->WVPCR = ((pLayerCfg->WindowY0 + (hltdc->Instance->BPCR & LTDC_BPCR_AVBP) + 1U) | tmp); - 8008c0c: 68bb ldr r3, [r7, #8] - 8008c0e: 689a ldr r2, [r3, #8] - 8008c10: 68fb ldr r3, [r7, #12] - 8008c12: 681b ldr r3, [r3, #0] - 8008c14: 68db ldr r3, [r3, #12] - 8008c16: f3c3 030a ubfx r3, r3, #0, #11 - 8008c1a: 4413 add r3, r2 - 8008c1c: 1c5a adds r2, r3, #1 - 8008c1e: 68fb ldr r3, [r7, #12] - 8008c20: 681b ldr r3, [r3, #0] - 8008c22: 4619 mov r1, r3 - 8008c24: 687b ldr r3, [r7, #4] - 8008c26: 01db lsls r3, r3, #7 - 8008c28: 440b add r3, r1 - 8008c2a: 3384 adds r3, #132 ; 0x84 - 8008c2c: 4619 mov r1, r3 - 8008c2e: 69fb ldr r3, [r7, #28] - 8008c30: 4313 orrs r3, r2 - 8008c32: 608b str r3, [r1, #8] + 8008c10: 68bb ldr r3, [r7, #8] + 8008c12: 689a ldr r2, [r3, #8] + 8008c14: 68fb ldr r3, [r7, #12] + 8008c16: 681b ldr r3, [r3, #0] + 8008c18: 68db ldr r3, [r3, #12] + 8008c1a: f3c3 030a ubfx r3, r3, #0, #11 + 8008c1e: 4413 add r3, r2 + 8008c20: 1c5a adds r2, r3, #1 + 8008c22: 68fb ldr r3, [r7, #12] + 8008c24: 681b ldr r3, [r3, #0] + 8008c26: 4619 mov r1, r3 + 8008c28: 687b ldr r3, [r7, #4] + 8008c2a: 01db lsls r3, r3, #7 + 8008c2c: 440b add r3, r1 + 8008c2e: 3384 adds r3, #132 ; 0x84 + 8008c30: 4619 mov r1, r3 + 8008c32: 69fb ldr r3, [r7, #28] + 8008c34: 4313 orrs r3, r2 + 8008c36: 608b str r3, [r1, #8] /* Specifies the pixel format */ LTDC_LAYER(hltdc, LayerIdx)->PFCR &= ~(LTDC_LxPFCR_PF); - 8008c34: 68fb ldr r3, [r7, #12] - 8008c36: 681b ldr r3, [r3, #0] - 8008c38: 461a mov r2, r3 - 8008c3a: 687b ldr r3, [r7, #4] - 8008c3c: 01db lsls r3, r3, #7 - 8008c3e: 4413 add r3, r2 - 8008c40: 3384 adds r3, #132 ; 0x84 - 8008c42: 691b ldr r3, [r3, #16] - 8008c44: 68fa ldr r2, [r7, #12] - 8008c46: 6812 ldr r2, [r2, #0] - 8008c48: 4611 mov r1, r2 - 8008c4a: 687a ldr r2, [r7, #4] - 8008c4c: 01d2 lsls r2, r2, #7 - 8008c4e: 440a add r2, r1 - 8008c50: 3284 adds r2, #132 ; 0x84 - 8008c52: f023 0307 bic.w r3, r3, #7 - 8008c56: 6113 str r3, [r2, #16] + 8008c38: 68fb ldr r3, [r7, #12] + 8008c3a: 681b ldr r3, [r3, #0] + 8008c3c: 461a mov r2, r3 + 8008c3e: 687b ldr r3, [r7, #4] + 8008c40: 01db lsls r3, r3, #7 + 8008c42: 4413 add r3, r2 + 8008c44: 3384 adds r3, #132 ; 0x84 + 8008c46: 691b ldr r3, [r3, #16] + 8008c48: 68fa ldr r2, [r7, #12] + 8008c4a: 6812 ldr r2, [r2, #0] + 8008c4c: 4611 mov r1, r2 + 8008c4e: 687a ldr r2, [r7, #4] + 8008c50: 01d2 lsls r2, r2, #7 + 8008c52: 440a add r2, r1 + 8008c54: 3284 adds r2, #132 ; 0x84 + 8008c56: f023 0307 bic.w r3, r3, #7 + 8008c5a: 6113 str r3, [r2, #16] LTDC_LAYER(hltdc, LayerIdx)->PFCR = (pLayerCfg->PixelFormat); - 8008c58: 68fb ldr r3, [r7, #12] - 8008c5a: 681b ldr r3, [r3, #0] - 8008c5c: 461a mov r2, r3 - 8008c5e: 687b ldr r3, [r7, #4] - 8008c60: 01db lsls r3, r3, #7 - 8008c62: 4413 add r3, r2 - 8008c64: 3384 adds r3, #132 ; 0x84 - 8008c66: 461a mov r2, r3 - 8008c68: 68bb ldr r3, [r7, #8] - 8008c6a: 691b ldr r3, [r3, #16] - 8008c6c: 6113 str r3, [r2, #16] + 8008c5c: 68fb ldr r3, [r7, #12] + 8008c5e: 681b ldr r3, [r3, #0] + 8008c60: 461a mov r2, r3 + 8008c62: 687b ldr r3, [r7, #4] + 8008c64: 01db lsls r3, r3, #7 + 8008c66: 4413 add r3, r2 + 8008c68: 3384 adds r3, #132 ; 0x84 + 8008c6a: 461a mov r2, r3 + 8008c6c: 68bb ldr r3, [r7, #8] + 8008c6e: 691b ldr r3, [r3, #16] + 8008c70: 6113 str r3, [r2, #16] /* Configure the default color values */ tmp = ((uint32_t)(pLayerCfg->Backcolor.Green) << 8U); - 8008c6e: 68bb ldr r3, [r7, #8] - 8008c70: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8008c74: 021b lsls r3, r3, #8 - 8008c76: 61fb str r3, [r7, #28] + 8008c72: 68bb ldr r3, [r7, #8] + 8008c74: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8008c78: 021b lsls r3, r3, #8 + 8008c7a: 61fb str r3, [r7, #28] tmp1 = ((uint32_t)(pLayerCfg->Backcolor.Red) << 16U); - 8008c78: 68bb ldr r3, [r7, #8] - 8008c7a: f893 3032 ldrb.w r3, [r3, #50] ; 0x32 - 8008c7e: 041b lsls r3, r3, #16 - 8008c80: 61bb str r3, [r7, #24] + 8008c7c: 68bb ldr r3, [r7, #8] + 8008c7e: f893 3032 ldrb.w r3, [r3, #50] ; 0x32 + 8008c82: 041b lsls r3, r3, #16 + 8008c84: 61bb str r3, [r7, #24] tmp2 = (pLayerCfg->Alpha0 << 24U); - 8008c82: 68bb ldr r3, [r7, #8] - 8008c84: 699b ldr r3, [r3, #24] - 8008c86: 061b lsls r3, r3, #24 - 8008c88: 617b str r3, [r7, #20] + 8008c86: 68bb ldr r3, [r7, #8] + 8008c88: 699b ldr r3, [r3, #24] + 8008c8a: 061b lsls r3, r3, #24 + 8008c8c: 617b str r3, [r7, #20] LTDC_LAYER(hltdc, LayerIdx)->DCCR &= ~(LTDC_LxDCCR_DCBLUE | LTDC_LxDCCR_DCGREEN | LTDC_LxDCCR_DCRED | LTDC_LxDCCR_DCALPHA); - 8008c8a: 68fb ldr r3, [r7, #12] - 8008c8c: 681b ldr r3, [r3, #0] - 8008c8e: 461a mov r2, r3 - 8008c90: 687b ldr r3, [r7, #4] - 8008c92: 01db lsls r3, r3, #7 - 8008c94: 4413 add r3, r2 - 8008c96: 3384 adds r3, #132 ; 0x84 - 8008c98: 699b ldr r3, [r3, #24] - 8008c9a: 68fb ldr r3, [r7, #12] - 8008c9c: 681b ldr r3, [r3, #0] - 8008c9e: 461a mov r2, r3 - 8008ca0: 687b ldr r3, [r7, #4] - 8008ca2: 01db lsls r3, r3, #7 - 8008ca4: 4413 add r3, r2 - 8008ca6: 3384 adds r3, #132 ; 0x84 - 8008ca8: 461a mov r2, r3 - 8008caa: 2300 movs r3, #0 - 8008cac: 6193 str r3, [r2, #24] + 8008c8e: 68fb ldr r3, [r7, #12] + 8008c90: 681b ldr r3, [r3, #0] + 8008c92: 461a mov r2, r3 + 8008c94: 687b ldr r3, [r7, #4] + 8008c96: 01db lsls r3, r3, #7 + 8008c98: 4413 add r3, r2 + 8008c9a: 3384 adds r3, #132 ; 0x84 + 8008c9c: 699b ldr r3, [r3, #24] + 8008c9e: 68fb ldr r3, [r7, #12] + 8008ca0: 681b ldr r3, [r3, #0] + 8008ca2: 461a mov r2, r3 + 8008ca4: 687b ldr r3, [r7, #4] + 8008ca6: 01db lsls r3, r3, #7 + 8008ca8: 4413 add r3, r2 + 8008caa: 3384 adds r3, #132 ; 0x84 + 8008cac: 461a mov r2, r3 + 8008cae: 2300 movs r3, #0 + 8008cb0: 6193 str r3, [r2, #24] LTDC_LAYER(hltdc, LayerIdx)->DCCR = (pLayerCfg->Backcolor.Blue | tmp | tmp1 | tmp2); - 8008cae: 68bb ldr r3, [r7, #8] - 8008cb0: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 8008cb4: 461a mov r2, r3 - 8008cb6: 69fb ldr r3, [r7, #28] - 8008cb8: 431a orrs r2, r3 - 8008cba: 69bb ldr r3, [r7, #24] + 8008cb2: 68bb ldr r3, [r7, #8] + 8008cb4: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 8008cb8: 461a mov r2, r3 + 8008cba: 69fb ldr r3, [r7, #28] 8008cbc: 431a orrs r2, r3 - 8008cbe: 68fb ldr r3, [r7, #12] - 8008cc0: 681b ldr r3, [r3, #0] - 8008cc2: 4619 mov r1, r3 - 8008cc4: 687b ldr r3, [r7, #4] - 8008cc6: 01db lsls r3, r3, #7 - 8008cc8: 440b add r3, r1 - 8008cca: 3384 adds r3, #132 ; 0x84 - 8008ccc: 4619 mov r1, r3 - 8008cce: 697b ldr r3, [r7, #20] - 8008cd0: 4313 orrs r3, r2 - 8008cd2: 618b str r3, [r1, #24] + 8008cbe: 69bb ldr r3, [r7, #24] + 8008cc0: 431a orrs r2, r3 + 8008cc2: 68fb ldr r3, [r7, #12] + 8008cc4: 681b ldr r3, [r3, #0] + 8008cc6: 4619 mov r1, r3 + 8008cc8: 687b ldr r3, [r7, #4] + 8008cca: 01db lsls r3, r3, #7 + 8008ccc: 440b add r3, r1 + 8008cce: 3384 adds r3, #132 ; 0x84 + 8008cd0: 4619 mov r1, r3 + 8008cd2: 697b ldr r3, [r7, #20] + 8008cd4: 4313 orrs r3, r2 + 8008cd6: 618b str r3, [r1, #24] /* Specifies the constant alpha value */ LTDC_LAYER(hltdc, LayerIdx)->CACR &= ~(LTDC_LxCACR_CONSTA); - 8008cd4: 68fb ldr r3, [r7, #12] - 8008cd6: 681b ldr r3, [r3, #0] - 8008cd8: 461a mov r2, r3 - 8008cda: 687b ldr r3, [r7, #4] - 8008cdc: 01db lsls r3, r3, #7 - 8008cde: 4413 add r3, r2 - 8008ce0: 3384 adds r3, #132 ; 0x84 - 8008ce2: 695b ldr r3, [r3, #20] - 8008ce4: 68fa ldr r2, [r7, #12] - 8008ce6: 6812 ldr r2, [r2, #0] - 8008ce8: 4611 mov r1, r2 - 8008cea: 687a ldr r2, [r7, #4] - 8008cec: 01d2 lsls r2, r2, #7 - 8008cee: 440a add r2, r1 - 8008cf0: 3284 adds r2, #132 ; 0x84 - 8008cf2: f023 03ff bic.w r3, r3, #255 ; 0xff - 8008cf6: 6153 str r3, [r2, #20] + 8008cd8: 68fb ldr r3, [r7, #12] + 8008cda: 681b ldr r3, [r3, #0] + 8008cdc: 461a mov r2, r3 + 8008cde: 687b ldr r3, [r7, #4] + 8008ce0: 01db lsls r3, r3, #7 + 8008ce2: 4413 add r3, r2 + 8008ce4: 3384 adds r3, #132 ; 0x84 + 8008ce6: 695b ldr r3, [r3, #20] + 8008ce8: 68fa ldr r2, [r7, #12] + 8008cea: 6812 ldr r2, [r2, #0] + 8008cec: 4611 mov r1, r2 + 8008cee: 687a ldr r2, [r7, #4] + 8008cf0: 01d2 lsls r2, r2, #7 + 8008cf2: 440a add r2, r1 + 8008cf4: 3284 adds r2, #132 ; 0x84 + 8008cf6: f023 03ff bic.w r3, r3, #255 ; 0xff + 8008cfa: 6153 str r3, [r2, #20] LTDC_LAYER(hltdc, LayerIdx)->CACR = (pLayerCfg->Alpha); - 8008cf8: 68fb ldr r3, [r7, #12] - 8008cfa: 681b ldr r3, [r3, #0] - 8008cfc: 461a mov r2, r3 - 8008cfe: 687b ldr r3, [r7, #4] - 8008d00: 01db lsls r3, r3, #7 - 8008d02: 4413 add r3, r2 - 8008d04: 3384 adds r3, #132 ; 0x84 - 8008d06: 461a mov r2, r3 - 8008d08: 68bb ldr r3, [r7, #8] - 8008d0a: 695b ldr r3, [r3, #20] - 8008d0c: 6153 str r3, [r2, #20] + 8008cfc: 68fb ldr r3, [r7, #12] + 8008cfe: 681b ldr r3, [r3, #0] + 8008d00: 461a mov r2, r3 + 8008d02: 687b ldr r3, [r7, #4] + 8008d04: 01db lsls r3, r3, #7 + 8008d06: 4413 add r3, r2 + 8008d08: 3384 adds r3, #132 ; 0x84 + 8008d0a: 461a mov r2, r3 + 8008d0c: 68bb ldr r3, [r7, #8] + 8008d0e: 695b ldr r3, [r3, #20] + 8008d10: 6153 str r3, [r2, #20] /* Specifies the blending factors */ LTDC_LAYER(hltdc, LayerIdx)->BFCR &= ~(LTDC_LxBFCR_BF2 | LTDC_LxBFCR_BF1); - 8008d0e: 68fb ldr r3, [r7, #12] - 8008d10: 681b ldr r3, [r3, #0] - 8008d12: 461a mov r2, r3 - 8008d14: 687b ldr r3, [r7, #4] - 8008d16: 01db lsls r3, r3, #7 - 8008d18: 4413 add r3, r2 - 8008d1a: 3384 adds r3, #132 ; 0x84 - 8008d1c: 69da ldr r2, [r3, #28] - 8008d1e: 68fb ldr r3, [r7, #12] - 8008d20: 681b ldr r3, [r3, #0] - 8008d22: 4619 mov r1, r3 - 8008d24: 687b ldr r3, [r7, #4] - 8008d26: 01db lsls r3, r3, #7 - 8008d28: 440b add r3, r1 - 8008d2a: 3384 adds r3, #132 ; 0x84 - 8008d2c: 4619 mov r1, r3 - 8008d2e: 4b58 ldr r3, [pc, #352] ; (8008e90 ) - 8008d30: 4013 ands r3, r2 - 8008d32: 61cb str r3, [r1, #28] + 8008d12: 68fb ldr r3, [r7, #12] + 8008d14: 681b ldr r3, [r3, #0] + 8008d16: 461a mov r2, r3 + 8008d18: 687b ldr r3, [r7, #4] + 8008d1a: 01db lsls r3, r3, #7 + 8008d1c: 4413 add r3, r2 + 8008d1e: 3384 adds r3, #132 ; 0x84 + 8008d20: 69da ldr r2, [r3, #28] + 8008d22: 68fb ldr r3, [r7, #12] + 8008d24: 681b ldr r3, [r3, #0] + 8008d26: 4619 mov r1, r3 + 8008d28: 687b ldr r3, [r7, #4] + 8008d2a: 01db lsls r3, r3, #7 + 8008d2c: 440b add r3, r1 + 8008d2e: 3384 adds r3, #132 ; 0x84 + 8008d30: 4619 mov r1, r3 + 8008d32: 4b58 ldr r3, [pc, #352] ; (8008e94 ) + 8008d34: 4013 ands r3, r2 + 8008d36: 61cb str r3, [r1, #28] LTDC_LAYER(hltdc, LayerIdx)->BFCR = (pLayerCfg->BlendingFactor1 | pLayerCfg->BlendingFactor2); - 8008d34: 68bb ldr r3, [r7, #8] - 8008d36: 69da ldr r2, [r3, #28] 8008d38: 68bb ldr r3, [r7, #8] - 8008d3a: 6a1b ldr r3, [r3, #32] - 8008d3c: 68f9 ldr r1, [r7, #12] - 8008d3e: 6809 ldr r1, [r1, #0] - 8008d40: 4608 mov r0, r1 - 8008d42: 6879 ldr r1, [r7, #4] - 8008d44: 01c9 lsls r1, r1, #7 - 8008d46: 4401 add r1, r0 - 8008d48: 3184 adds r1, #132 ; 0x84 - 8008d4a: 4313 orrs r3, r2 - 8008d4c: 61cb str r3, [r1, #28] + 8008d3a: 69da ldr r2, [r3, #28] + 8008d3c: 68bb ldr r3, [r7, #8] + 8008d3e: 6a1b ldr r3, [r3, #32] + 8008d40: 68f9 ldr r1, [r7, #12] + 8008d42: 6809 ldr r1, [r1, #0] + 8008d44: 4608 mov r0, r1 + 8008d46: 6879 ldr r1, [r7, #4] + 8008d48: 01c9 lsls r1, r1, #7 + 8008d4a: 4401 add r1, r0 + 8008d4c: 3184 adds r1, #132 ; 0x84 + 8008d4e: 4313 orrs r3, r2 + 8008d50: 61cb str r3, [r1, #28] /* Configure the color frame buffer start address */ LTDC_LAYER(hltdc, LayerIdx)->CFBAR &= ~(LTDC_LxCFBAR_CFBADD); - 8008d4e: 68fb ldr r3, [r7, #12] - 8008d50: 681b ldr r3, [r3, #0] - 8008d52: 461a mov r2, r3 - 8008d54: 687b ldr r3, [r7, #4] - 8008d56: 01db lsls r3, r3, #7 - 8008d58: 4413 add r3, r2 - 8008d5a: 3384 adds r3, #132 ; 0x84 - 8008d5c: 6a9b ldr r3, [r3, #40] ; 0x28 - 8008d5e: 68fb ldr r3, [r7, #12] - 8008d60: 681b ldr r3, [r3, #0] - 8008d62: 461a mov r2, r3 - 8008d64: 687b ldr r3, [r7, #4] - 8008d66: 01db lsls r3, r3, #7 - 8008d68: 4413 add r3, r2 - 8008d6a: 3384 adds r3, #132 ; 0x84 - 8008d6c: 461a mov r2, r3 - 8008d6e: 2300 movs r3, #0 - 8008d70: 6293 str r3, [r2, #40] ; 0x28 + 8008d52: 68fb ldr r3, [r7, #12] + 8008d54: 681b ldr r3, [r3, #0] + 8008d56: 461a mov r2, r3 + 8008d58: 687b ldr r3, [r7, #4] + 8008d5a: 01db lsls r3, r3, #7 + 8008d5c: 4413 add r3, r2 + 8008d5e: 3384 adds r3, #132 ; 0x84 + 8008d60: 6a9b ldr r3, [r3, #40] ; 0x28 + 8008d62: 68fb ldr r3, [r7, #12] + 8008d64: 681b ldr r3, [r3, #0] + 8008d66: 461a mov r2, r3 + 8008d68: 687b ldr r3, [r7, #4] + 8008d6a: 01db lsls r3, r3, #7 + 8008d6c: 4413 add r3, r2 + 8008d6e: 3384 adds r3, #132 ; 0x84 + 8008d70: 461a mov r2, r3 + 8008d72: 2300 movs r3, #0 + 8008d74: 6293 str r3, [r2, #40] ; 0x28 LTDC_LAYER(hltdc, LayerIdx)->CFBAR = (pLayerCfg->FBStartAdress); - 8008d72: 68fb ldr r3, [r7, #12] - 8008d74: 681b ldr r3, [r3, #0] - 8008d76: 461a mov r2, r3 - 8008d78: 687b ldr r3, [r7, #4] - 8008d7a: 01db lsls r3, r3, #7 - 8008d7c: 4413 add r3, r2 - 8008d7e: 3384 adds r3, #132 ; 0x84 - 8008d80: 461a mov r2, r3 - 8008d82: 68bb ldr r3, [r7, #8] - 8008d84: 6a5b ldr r3, [r3, #36] ; 0x24 - 8008d86: 6293 str r3, [r2, #40] ; 0x28 + 8008d76: 68fb ldr r3, [r7, #12] + 8008d78: 681b ldr r3, [r3, #0] + 8008d7a: 461a mov r2, r3 + 8008d7c: 687b ldr r3, [r7, #4] + 8008d7e: 01db lsls r3, r3, #7 + 8008d80: 4413 add r3, r2 + 8008d82: 3384 adds r3, #132 ; 0x84 + 8008d84: 461a mov r2, r3 + 8008d86: 68bb ldr r3, [r7, #8] + 8008d88: 6a5b ldr r3, [r3, #36] ; 0x24 + 8008d8a: 6293 str r3, [r2, #40] ; 0x28 if (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB8888) - 8008d88: 68bb ldr r3, [r7, #8] - 8008d8a: 691b ldr r3, [r3, #16] - 8008d8c: 2b00 cmp r3, #0 - 8008d8e: d102 bne.n 8008d96 + 8008d8c: 68bb ldr r3, [r7, #8] + 8008d8e: 691b ldr r3, [r3, #16] + 8008d90: 2b00 cmp r3, #0 + 8008d92: d102 bne.n 8008d9a { tmp = 4U; - 8008d90: 2304 movs r3, #4 - 8008d92: 61fb str r3, [r7, #28] - 8008d94: e01b b.n 8008dce + 8008d94: 2304 movs r3, #4 + 8008d96: 61fb str r3, [r7, #28] + 8008d98: e01b b.n 8008dd2 } else if (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_RGB888) - 8008d96: 68bb ldr r3, [r7, #8] - 8008d98: 691b ldr r3, [r3, #16] - 8008d9a: 2b01 cmp r3, #1 - 8008d9c: d102 bne.n 8008da4 + 8008d9a: 68bb ldr r3, [r7, #8] + 8008d9c: 691b ldr r3, [r3, #16] + 8008d9e: 2b01 cmp r3, #1 + 8008da0: d102 bne.n 8008da8 { tmp = 3U; - 8008d9e: 2303 movs r3, #3 - 8008da0: 61fb str r3, [r7, #28] - 8008da2: e014 b.n 8008dce + 8008da2: 2303 movs r3, #3 + 8008da4: 61fb str r3, [r7, #28] + 8008da6: e014 b.n 8008dd2 } else if ((pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB4444) || \ - 8008da4: 68bb ldr r3, [r7, #8] - 8008da6: 691b ldr r3, [r3, #16] - 8008da8: 2b04 cmp r3, #4 - 8008daa: d00b beq.n 8008dc4 + 8008da8: 68bb ldr r3, [r7, #8] + 8008daa: 691b ldr r3, [r3, #16] + 8008dac: 2b04 cmp r3, #4 + 8008dae: d00b beq.n 8008dc8 (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_RGB565) || \ - 8008dac: 68bb ldr r3, [r7, #8] - 8008dae: 691b ldr r3, [r3, #16] + 8008db0: 68bb ldr r3, [r7, #8] + 8008db2: 691b ldr r3, [r3, #16] else if ((pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB4444) || \ - 8008db0: 2b02 cmp r3, #2 - 8008db2: d007 beq.n 8008dc4 + 8008db4: 2b02 cmp r3, #2 + 8008db6: d007 beq.n 8008dc8 (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB1555) || \ - 8008db4: 68bb ldr r3, [r7, #8] - 8008db6: 691b ldr r3, [r3, #16] + 8008db8: 68bb ldr r3, [r7, #8] + 8008dba: 691b ldr r3, [r3, #16] (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_RGB565) || \ - 8008db8: 2b03 cmp r3, #3 - 8008dba: d003 beq.n 8008dc4 + 8008dbc: 2b03 cmp r3, #3 + 8008dbe: d003 beq.n 8008dc8 (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_AL88)) - 8008dbc: 68bb ldr r3, [r7, #8] - 8008dbe: 691b ldr r3, [r3, #16] + 8008dc0: 68bb ldr r3, [r7, #8] + 8008dc2: 691b ldr r3, [r3, #16] (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB1555) || \ - 8008dc0: 2b07 cmp r3, #7 - 8008dc2: d102 bne.n 8008dca + 8008dc4: 2b07 cmp r3, #7 + 8008dc6: d102 bne.n 8008dce { tmp = 2U; - 8008dc4: 2302 movs r3, #2 - 8008dc6: 61fb str r3, [r7, #28] - 8008dc8: e001 b.n 8008dce + 8008dc8: 2302 movs r3, #2 + 8008dca: 61fb str r3, [r7, #28] + 8008dcc: e001 b.n 8008dd2 } else { tmp = 1U; - 8008dca: 2301 movs r3, #1 - 8008dcc: 61fb str r3, [r7, #28] + 8008dce: 2301 movs r3, #1 + 8008dd0: 61fb str r3, [r7, #28] } /* Configure the color frame buffer pitch in byte */ LTDC_LAYER(hltdc, LayerIdx)->CFBLR &= ~(LTDC_LxCFBLR_CFBLL | LTDC_LxCFBLR_CFBP); - 8008dce: 68fb ldr r3, [r7, #12] - 8008dd0: 681b ldr r3, [r3, #0] - 8008dd2: 461a mov r2, r3 - 8008dd4: 687b ldr r3, [r7, #4] - 8008dd6: 01db lsls r3, r3, #7 - 8008dd8: 4413 add r3, r2 - 8008dda: 3384 adds r3, #132 ; 0x84 - 8008ddc: 6adb ldr r3, [r3, #44] ; 0x2c - 8008dde: 68fa ldr r2, [r7, #12] - 8008de0: 6812 ldr r2, [r2, #0] - 8008de2: 4611 mov r1, r2 - 8008de4: 687a ldr r2, [r7, #4] - 8008de6: 01d2 lsls r2, r2, #7 - 8008de8: 440a add r2, r1 - 8008dea: 3284 adds r2, #132 ; 0x84 - 8008dec: f003 23e0 and.w r3, r3, #3758153728 ; 0xe000e000 - 8008df0: 62d3 str r3, [r2, #44] ; 0x2c + 8008dd2: 68fb ldr r3, [r7, #12] + 8008dd4: 681b ldr r3, [r3, #0] + 8008dd6: 461a mov r2, r3 + 8008dd8: 687b ldr r3, [r7, #4] + 8008dda: 01db lsls r3, r3, #7 + 8008ddc: 4413 add r3, r2 + 8008dde: 3384 adds r3, #132 ; 0x84 + 8008de0: 6adb ldr r3, [r3, #44] ; 0x2c + 8008de2: 68fa ldr r2, [r7, #12] + 8008de4: 6812 ldr r2, [r2, #0] + 8008de6: 4611 mov r1, r2 + 8008de8: 687a ldr r2, [r7, #4] + 8008dea: 01d2 lsls r2, r2, #7 + 8008dec: 440a add r2, r1 + 8008dee: 3284 adds r2, #132 ; 0x84 + 8008df0: f003 23e0 and.w r3, r3, #3758153728 ; 0xe000e000 + 8008df4: 62d3 str r3, [r2, #44] ; 0x2c LTDC_LAYER(hltdc, LayerIdx)->CFBLR = (((pLayerCfg->ImageWidth * tmp) << 16U) | (((pLayerCfg->WindowX1 - pLayerCfg->WindowX0) * tmp) + 3U)); - 8008df2: 68bb ldr r3, [r7, #8] - 8008df4: 6a9b ldr r3, [r3, #40] ; 0x28 - 8008df6: 69fa ldr r2, [r7, #28] - 8008df8: fb02 f303 mul.w r3, r2, r3 - 8008dfc: 041a lsls r2, r3, #16 - 8008dfe: 68bb ldr r3, [r7, #8] - 8008e00: 6859 ldr r1, [r3, #4] + 8008df6: 68bb ldr r3, [r7, #8] + 8008df8: 6a9b ldr r3, [r3, #40] ; 0x28 + 8008dfa: 69fa ldr r2, [r7, #28] + 8008dfc: fb02 f303 mul.w r3, r2, r3 + 8008e00: 041a lsls r2, r3, #16 8008e02: 68bb ldr r3, [r7, #8] - 8008e04: 681b ldr r3, [r3, #0] - 8008e06: 1acb subs r3, r1, r3 - 8008e08: 69f9 ldr r1, [r7, #28] - 8008e0a: fb01 f303 mul.w r3, r1, r3 - 8008e0e: 3303 adds r3, #3 - 8008e10: 68f9 ldr r1, [r7, #12] - 8008e12: 6809 ldr r1, [r1, #0] - 8008e14: 4608 mov r0, r1 - 8008e16: 6879 ldr r1, [r7, #4] - 8008e18: 01c9 lsls r1, r1, #7 - 8008e1a: 4401 add r1, r0 - 8008e1c: 3184 adds r1, #132 ; 0x84 - 8008e1e: 4313 orrs r3, r2 - 8008e20: 62cb str r3, [r1, #44] ; 0x2c + 8008e04: 6859 ldr r1, [r3, #4] + 8008e06: 68bb ldr r3, [r7, #8] + 8008e08: 681b ldr r3, [r3, #0] + 8008e0a: 1acb subs r3, r1, r3 + 8008e0c: 69f9 ldr r1, [r7, #28] + 8008e0e: fb01 f303 mul.w r3, r1, r3 + 8008e12: 3303 adds r3, #3 + 8008e14: 68f9 ldr r1, [r7, #12] + 8008e16: 6809 ldr r1, [r1, #0] + 8008e18: 4608 mov r0, r1 + 8008e1a: 6879 ldr r1, [r7, #4] + 8008e1c: 01c9 lsls r1, r1, #7 + 8008e1e: 4401 add r1, r0 + 8008e20: 3184 adds r1, #132 ; 0x84 + 8008e22: 4313 orrs r3, r2 + 8008e24: 62cb str r3, [r1, #44] ; 0x2c /* Configure the frame buffer line number */ LTDC_LAYER(hltdc, LayerIdx)->CFBLNR &= ~(LTDC_LxCFBLNR_CFBLNBR); - 8008e22: 68fb ldr r3, [r7, #12] - 8008e24: 681b ldr r3, [r3, #0] - 8008e26: 461a mov r2, r3 - 8008e28: 687b ldr r3, [r7, #4] - 8008e2a: 01db lsls r3, r3, #7 - 8008e2c: 4413 add r3, r2 - 8008e2e: 3384 adds r3, #132 ; 0x84 - 8008e30: 6b1a ldr r2, [r3, #48] ; 0x30 - 8008e32: 68fb ldr r3, [r7, #12] - 8008e34: 681b ldr r3, [r3, #0] - 8008e36: 4619 mov r1, r3 - 8008e38: 687b ldr r3, [r7, #4] - 8008e3a: 01db lsls r3, r3, #7 - 8008e3c: 440b add r3, r1 - 8008e3e: 3384 adds r3, #132 ; 0x84 - 8008e40: 4619 mov r1, r3 - 8008e42: 4b14 ldr r3, [pc, #80] ; (8008e94 ) - 8008e44: 4013 ands r3, r2 - 8008e46: 630b str r3, [r1, #48] ; 0x30 + 8008e26: 68fb ldr r3, [r7, #12] + 8008e28: 681b ldr r3, [r3, #0] + 8008e2a: 461a mov r2, r3 + 8008e2c: 687b ldr r3, [r7, #4] + 8008e2e: 01db lsls r3, r3, #7 + 8008e30: 4413 add r3, r2 + 8008e32: 3384 adds r3, #132 ; 0x84 + 8008e34: 6b1a ldr r2, [r3, #48] ; 0x30 + 8008e36: 68fb ldr r3, [r7, #12] + 8008e38: 681b ldr r3, [r3, #0] + 8008e3a: 4619 mov r1, r3 + 8008e3c: 687b ldr r3, [r7, #4] + 8008e3e: 01db lsls r3, r3, #7 + 8008e40: 440b add r3, r1 + 8008e42: 3384 adds r3, #132 ; 0x84 + 8008e44: 4619 mov r1, r3 + 8008e46: 4b14 ldr r3, [pc, #80] ; (8008e98 ) + 8008e48: 4013 ands r3, r2 + 8008e4a: 630b str r3, [r1, #48] ; 0x30 LTDC_LAYER(hltdc, LayerIdx)->CFBLNR = (pLayerCfg->ImageHeight); - 8008e48: 68fb ldr r3, [r7, #12] - 8008e4a: 681b ldr r3, [r3, #0] - 8008e4c: 461a mov r2, r3 - 8008e4e: 687b ldr r3, [r7, #4] - 8008e50: 01db lsls r3, r3, #7 - 8008e52: 4413 add r3, r2 - 8008e54: 3384 adds r3, #132 ; 0x84 - 8008e56: 461a mov r2, r3 - 8008e58: 68bb ldr r3, [r7, #8] - 8008e5a: 6adb ldr r3, [r3, #44] ; 0x2c - 8008e5c: 6313 str r3, [r2, #48] ; 0x30 + 8008e4c: 68fb ldr r3, [r7, #12] + 8008e4e: 681b ldr r3, [r3, #0] + 8008e50: 461a mov r2, r3 + 8008e52: 687b ldr r3, [r7, #4] + 8008e54: 01db lsls r3, r3, #7 + 8008e56: 4413 add r3, r2 + 8008e58: 3384 adds r3, #132 ; 0x84 + 8008e5a: 461a mov r2, r3 + 8008e5c: 68bb ldr r3, [r7, #8] + 8008e5e: 6adb ldr r3, [r3, #44] ; 0x2c + 8008e60: 6313 str r3, [r2, #48] ; 0x30 /* Enable LTDC_Layer by setting LEN bit */ LTDC_LAYER(hltdc, LayerIdx)->CR |= (uint32_t)LTDC_LxCR_LEN; - 8008e5e: 68fb ldr r3, [r7, #12] - 8008e60: 681b ldr r3, [r3, #0] - 8008e62: 461a mov r2, r3 - 8008e64: 687b ldr r3, [r7, #4] - 8008e66: 01db lsls r3, r3, #7 - 8008e68: 4413 add r3, r2 - 8008e6a: 3384 adds r3, #132 ; 0x84 - 8008e6c: 681b ldr r3, [r3, #0] - 8008e6e: 68fa ldr r2, [r7, #12] - 8008e70: 6812 ldr r2, [r2, #0] - 8008e72: 4611 mov r1, r2 - 8008e74: 687a ldr r2, [r7, #4] - 8008e76: 01d2 lsls r2, r2, #7 - 8008e78: 440a add r2, r1 - 8008e7a: 3284 adds r2, #132 ; 0x84 - 8008e7c: f043 0301 orr.w r3, r3, #1 - 8008e80: 6013 str r3, [r2, #0] -} - 8008e82: bf00 nop - 8008e84: 3724 adds r7, #36 ; 0x24 - 8008e86: 46bd mov sp, r7 - 8008e88: f85d 7b04 ldr.w r7, [sp], #4 - 8008e8c: 4770 bx lr - 8008e8e: bf00 nop - 8008e90: fffff8f8 .word 0xfffff8f8 - 8008e94: fffff800 .word 0xfffff800 - -08008e98 : + 8008e62: 68fb ldr r3, [r7, #12] + 8008e64: 681b ldr r3, [r3, #0] + 8008e66: 461a mov r2, r3 + 8008e68: 687b ldr r3, [r7, #4] + 8008e6a: 01db lsls r3, r3, #7 + 8008e6c: 4413 add r3, r2 + 8008e6e: 3384 adds r3, #132 ; 0x84 + 8008e70: 681b ldr r3, [r3, #0] + 8008e72: 68fa ldr r2, [r7, #12] + 8008e74: 6812 ldr r2, [r2, #0] + 8008e76: 4611 mov r1, r2 + 8008e78: 687a ldr r2, [r7, #4] + 8008e7a: 01d2 lsls r2, r2, #7 + 8008e7c: 440a add r2, r1 + 8008e7e: 3284 adds r2, #132 ; 0x84 + 8008e80: f043 0301 orr.w r3, r3, #1 + 8008e84: 6013 str r3, [r2, #0] +} + 8008e86: bf00 nop + 8008e88: 3724 adds r7, #36 ; 0x24 + 8008e8a: 46bd mov sp, r7 + 8008e8c: f85d 7b04 ldr.w r7, [sp], #4 + 8008e90: 4770 bx lr + 8008e92: bf00 nop + 8008e94: fffff8f8 .word 0xfffff8f8 + 8008e98: fffff800 .word 0xfffff800 + +08008e9c : * @note If the HSE divided by 2, 3, ..31 is used as the RTC clock, the * Backup Domain Access should be kept enabled. * @retval None */ void HAL_PWR_EnableBkUpAccess(void) { - 8008e98: b480 push {r7} - 8008e9a: af00 add r7, sp, #0 + 8008e9c: b480 push {r7} + 8008e9e: af00 add r7, sp, #0 /* Enable access to RTC and backup registers */ SET_BIT(PWR->CR1, PWR_CR1_DBP); - 8008e9c: 4b05 ldr r3, [pc, #20] ; (8008eb4 ) - 8008e9e: 681b ldr r3, [r3, #0] - 8008ea0: 4a04 ldr r2, [pc, #16] ; (8008eb4 ) - 8008ea2: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8008ea6: 6013 str r3, [r2, #0] -} - 8008ea8: bf00 nop - 8008eaa: 46bd mov sp, r7 - 8008eac: f85d 7b04 ldr.w r7, [sp], #4 - 8008eb0: 4770 bx lr - 8008eb2: bf00 nop - 8008eb4: 40007000 .word 0x40007000 - -08008eb8 : + 8008ea0: 4b05 ldr r3, [pc, #20] ; (8008eb8 ) + 8008ea2: 681b ldr r3, [r3, #0] + 8008ea4: 4a04 ldr r2, [pc, #16] ; (8008eb8 ) + 8008ea6: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8008eaa: 6013 str r3, [r2, #0] +} + 8008eac: bf00 nop + 8008eae: 46bd mov sp, r7 + 8008eb0: f85d 7b04 ldr.w r7, [sp], #4 + 8008eb4: 4770 bx lr + 8008eb6: bf00 nop + 8008eb8: 40007000 .word 0x40007000 + +08008ebc : * During the Over-drive switch activation, no peripheral clocks should be enabled. * The peripheral clocks must be enabled once the Over-drive mode is activated. * @retval HAL status */ HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void) { - 8008eb8: b580 push {r7, lr} - 8008eba: b082 sub sp, #8 - 8008ebc: af00 add r7, sp, #0 + 8008ebc: b580 push {r7, lr} + 8008ebe: b082 sub sp, #8 + 8008ec0: af00 add r7, sp, #0 uint32_t tickstart = 0; - 8008ebe: 2300 movs r3, #0 - 8008ec0: 607b str r3, [r7, #4] + 8008ec2: 2300 movs r3, #0 + 8008ec4: 607b str r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); - 8008ec2: 4b23 ldr r3, [pc, #140] ; (8008f50 ) - 8008ec4: 6c1b ldr r3, [r3, #64] ; 0x40 - 8008ec6: 4a22 ldr r2, [pc, #136] ; (8008f50 ) - 8008ec8: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8008ecc: 6413 str r3, [r2, #64] ; 0x40 - 8008ece: 4b20 ldr r3, [pc, #128] ; (8008f50 ) - 8008ed0: 6c1b ldr r3, [r3, #64] ; 0x40 - 8008ed2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8008ed6: 603b str r3, [r7, #0] - 8008ed8: 683b ldr r3, [r7, #0] + 8008ec6: 4b23 ldr r3, [pc, #140] ; (8008f54 ) + 8008ec8: 6c1b ldr r3, [r3, #64] ; 0x40 + 8008eca: 4a22 ldr r2, [pc, #136] ; (8008f54 ) + 8008ecc: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 8008ed0: 6413 str r3, [r2, #64] ; 0x40 + 8008ed2: 4b20 ldr r3, [pc, #128] ; (8008f54 ) + 8008ed4: 6c1b ldr r3, [r3, #64] ; 0x40 + 8008ed6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8008eda: 603b str r3, [r7, #0] + 8008edc: 683b ldr r3, [r7, #0] /* Enable the Over-drive to extend the clock frequency to 216 MHz */ __HAL_PWR_OVERDRIVE_ENABLE(); - 8008eda: 4b1e ldr r3, [pc, #120] ; (8008f54 ) - 8008edc: 681b ldr r3, [r3, #0] - 8008ede: 4a1d ldr r2, [pc, #116] ; (8008f54 ) - 8008ee0: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8008ee4: 6013 str r3, [r2, #0] + 8008ede: 4b1e ldr r3, [pc, #120] ; (8008f58 ) + 8008ee0: 681b ldr r3, [r3, #0] + 8008ee2: 4a1d ldr r2, [pc, #116] ; (8008f58 ) + 8008ee4: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8008ee8: 6013 str r3, [r2, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8008ee6: f7fb ffeb bl 8004ec0 - 8008eea: 6078 str r0, [r7, #4] + 8008eea: f7fb ffeb bl 8004ec4 + 8008eee: 6078 str r0, [r7, #4] while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODRDY)) - 8008eec: e009 b.n 8008f02 + 8008ef0: e009 b.n 8008f06 { if((HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE) - 8008eee: f7fb ffe7 bl 8004ec0 - 8008ef2: 4602 mov r2, r0 - 8008ef4: 687b ldr r3, [r7, #4] - 8008ef6: 1ad3 subs r3, r2, r3 - 8008ef8: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 8008efc: d901 bls.n 8008f02 + 8008ef2: f7fb ffe7 bl 8004ec4 + 8008ef6: 4602 mov r2, r0 + 8008ef8: 687b ldr r3, [r7, #4] + 8008efa: 1ad3 subs r3, r2, r3 + 8008efc: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 8008f00: d901 bls.n 8008f06 { return HAL_TIMEOUT; - 8008efe: 2303 movs r3, #3 - 8008f00: e022 b.n 8008f48 + 8008f02: 2303 movs r3, #3 + 8008f04: e022 b.n 8008f4c while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODRDY)) - 8008f02: 4b14 ldr r3, [pc, #80] ; (8008f54 ) - 8008f04: 685b ldr r3, [r3, #4] - 8008f06: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8008f0a: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8008f0e: d1ee bne.n 8008eee + 8008f06: 4b14 ldr r3, [pc, #80] ; (8008f58 ) + 8008f08: 685b ldr r3, [r3, #4] + 8008f0a: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8008f0e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8008f12: d1ee bne.n 8008ef2 } } /* Enable the Over-drive switch */ __HAL_PWR_OVERDRIVESWITCHING_ENABLE(); - 8008f10: 4b10 ldr r3, [pc, #64] ; (8008f54 ) - 8008f12: 681b ldr r3, [r3, #0] - 8008f14: 4a0f ldr r2, [pc, #60] ; (8008f54 ) - 8008f16: f443 3300 orr.w r3, r3, #131072 ; 0x20000 - 8008f1a: 6013 str r3, [r2, #0] + 8008f14: 4b10 ldr r3, [pc, #64] ; (8008f58 ) + 8008f16: 681b ldr r3, [r3, #0] + 8008f18: 4a0f ldr r2, [pc, #60] ; (8008f58 ) + 8008f1a: f443 3300 orr.w r3, r3, #131072 ; 0x20000 + 8008f1e: 6013 str r3, [r2, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8008f1c: f7fb ffd0 bl 8004ec0 - 8008f20: 6078 str r0, [r7, #4] + 8008f20: f7fb ffd0 bl 8004ec4 + 8008f24: 6078 str r0, [r7, #4] while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODSWRDY)) - 8008f22: e009 b.n 8008f38 + 8008f26: e009 b.n 8008f3c { if((HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE) - 8008f24: f7fb ffcc bl 8004ec0 - 8008f28: 4602 mov r2, r0 - 8008f2a: 687b ldr r3, [r7, #4] - 8008f2c: 1ad3 subs r3, r2, r3 - 8008f2e: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 8008f32: d901 bls.n 8008f38 + 8008f28: f7fb ffcc bl 8004ec4 + 8008f2c: 4602 mov r2, r0 + 8008f2e: 687b ldr r3, [r7, #4] + 8008f30: 1ad3 subs r3, r2, r3 + 8008f32: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 8008f36: d901 bls.n 8008f3c { return HAL_TIMEOUT; - 8008f34: 2303 movs r3, #3 - 8008f36: e007 b.n 8008f48 + 8008f38: 2303 movs r3, #3 + 8008f3a: e007 b.n 8008f4c while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODSWRDY)) - 8008f38: 4b06 ldr r3, [pc, #24] ; (8008f54 ) - 8008f3a: 685b ldr r3, [r3, #4] - 8008f3c: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8008f40: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 - 8008f44: d1ee bne.n 8008f24 + 8008f3c: 4b06 ldr r3, [pc, #24] ; (8008f58 ) + 8008f3e: 685b ldr r3, [r3, #4] + 8008f40: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8008f44: f5b3 3f00 cmp.w r3, #131072 ; 0x20000 + 8008f48: d1ee bne.n 8008f28 } } return HAL_OK; - 8008f46: 2300 movs r3, #0 + 8008f4a: 2300 movs r3, #0 } - 8008f48: 4618 mov r0, r3 - 8008f4a: 3708 adds r7, #8 - 8008f4c: 46bd mov sp, r7 - 8008f4e: bd80 pop {r7, pc} - 8008f50: 40023800 .word 0x40023800 - 8008f54: 40007000 .word 0x40007000 + 8008f4c: 4618 mov r0, r3 + 8008f4e: 3708 adds r7, #8 + 8008f50: 46bd mov sp, r7 + 8008f52: bd80 pop {r7, pc} + 8008f54: 40023800 .word 0x40023800 + 8008f58: 40007000 .word 0x40007000 -08008f58 : +08008f5c : * supported by this function. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 8008f58: b580 push {r7, lr} - 8008f5a: b086 sub sp, #24 - 8008f5c: af00 add r7, sp, #0 - 8008f5e: 6078 str r0, [r7, #4] + 8008f5c: b580 push {r7, lr} + 8008f5e: b086 sub sp, #24 + 8008f60: af00 add r7, sp, #0 + 8008f62: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; FlagStatus pwrclkchanged = RESET; - 8008f60: 2300 movs r3, #0 - 8008f62: 75fb strb r3, [r7, #23] + 8008f64: 2300 movs r3, #0 + 8008f66: 75fb strb r3, [r7, #23] /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 8008f64: 687b ldr r3, [r7, #4] - 8008f66: 2b00 cmp r3, #0 - 8008f68: d101 bne.n 8008f6e + 8008f68: 687b ldr r3, [r7, #4] + 8008f6a: 2b00 cmp r3, #0 + 8008f6c: d101 bne.n 8008f72 { return HAL_ERROR; - 8008f6a: 2301 movs r3, #1 - 8008f6c: e291 b.n 8009492 + 8008f6e: 2301 movs r3, #1 + 8008f70: e291 b.n 8009496 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8008f6e: 687b ldr r3, [r7, #4] - 8008f70: 681b ldr r3, [r3, #0] - 8008f72: f003 0301 and.w r3, r3, #1 - 8008f76: 2b00 cmp r3, #0 - 8008f78: f000 8087 beq.w 800908a + 8008f72: 687b ldr r3, [r7, #4] + 8008f74: 681b ldr r3, [r3, #0] + 8008f76: f003 0301 and.w r3, r3, #1 + 8008f7a: 2b00 cmp r3, #0 + 8008f7c: f000 8087 beq.w 800908e { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL, It can not be disabled */ if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) - 8008f7c: 4b96 ldr r3, [pc, #600] ; (80091d8 ) - 8008f7e: 689b ldr r3, [r3, #8] - 8008f80: f003 030c and.w r3, r3, #12 - 8008f84: 2b04 cmp r3, #4 - 8008f86: d00c beq.n 8008fa2 + 8008f80: 4b96 ldr r3, [pc, #600] ; (80091dc ) + 8008f82: 689b ldr r3, [r3, #8] + 8008f84: f003 030c and.w r3, r3, #12 + 8008f88: 2b04 cmp r3, #4 + 8008f8a: d00c beq.n 8008fa6 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 8008f88: 4b93 ldr r3, [pc, #588] ; (80091d8 ) - 8008f8a: 689b ldr r3, [r3, #8] - 8008f8c: f003 030c and.w r3, r3, #12 - 8008f90: 2b08 cmp r3, #8 - 8008f92: d112 bne.n 8008fba - 8008f94: 4b90 ldr r3, [pc, #576] ; (80091d8 ) - 8008f96: 685b ldr r3, [r3, #4] - 8008f98: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 8008f9c: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 8008fa0: d10b bne.n 8008fba + 8008f8c: 4b93 ldr r3, [pc, #588] ; (80091dc ) + 8008f8e: 689b ldr r3, [r3, #8] + 8008f90: f003 030c and.w r3, r3, #12 + 8008f94: 2b08 cmp r3, #8 + 8008f96: d112 bne.n 8008fbe + 8008f98: 4b90 ldr r3, [pc, #576] ; (80091dc ) + 8008f9a: 685b ldr r3, [r3, #4] + 8008f9c: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 8008fa0: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 + 8008fa4: d10b bne.n 8008fbe { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8008fa2: 4b8d ldr r3, [pc, #564] ; (80091d8 ) - 8008fa4: 681b ldr r3, [r3, #0] - 8008fa6: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8008faa: 2b00 cmp r3, #0 - 8008fac: d06c beq.n 8009088 - 8008fae: 687b ldr r3, [r7, #4] - 8008fb0: 685b ldr r3, [r3, #4] - 8008fb2: 2b00 cmp r3, #0 - 8008fb4: d168 bne.n 8009088 + 8008fa6: 4b8d ldr r3, [pc, #564] ; (80091dc ) + 8008fa8: 681b ldr r3, [r3, #0] + 8008faa: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8008fae: 2b00 cmp r3, #0 + 8008fb0: d06c beq.n 800908c + 8008fb2: 687b ldr r3, [r7, #4] + 8008fb4: 685b ldr r3, [r3, #4] + 8008fb6: 2b00 cmp r3, #0 + 8008fb8: d168 bne.n 800908c { return HAL_ERROR; - 8008fb6: 2301 movs r3, #1 - 8008fb8: e26b b.n 8009492 + 8008fba: 2301 movs r3, #1 + 8008fbc: e26b b.n 8009496 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8008fba: 687b ldr r3, [r7, #4] - 8008fbc: 685b ldr r3, [r3, #4] - 8008fbe: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8008fc2: d106 bne.n 8008fd2 - 8008fc4: 4b84 ldr r3, [pc, #528] ; (80091d8 ) - 8008fc6: 681b ldr r3, [r3, #0] - 8008fc8: 4a83 ldr r2, [pc, #524] ; (80091d8 ) - 8008fca: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8008fce: 6013 str r3, [r2, #0] - 8008fd0: e02e b.n 8009030 - 8008fd2: 687b ldr r3, [r7, #4] - 8008fd4: 685b ldr r3, [r3, #4] - 8008fd6: 2b00 cmp r3, #0 - 8008fd8: d10c bne.n 8008ff4 - 8008fda: 4b7f ldr r3, [pc, #508] ; (80091d8 ) - 8008fdc: 681b ldr r3, [r3, #0] - 8008fde: 4a7e ldr r2, [pc, #504] ; (80091d8 ) - 8008fe0: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8008fe4: 6013 str r3, [r2, #0] - 8008fe6: 4b7c ldr r3, [pc, #496] ; (80091d8 ) - 8008fe8: 681b ldr r3, [r3, #0] - 8008fea: 4a7b ldr r2, [pc, #492] ; (80091d8 ) - 8008fec: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 8008ff0: 6013 str r3, [r2, #0] - 8008ff2: e01d b.n 8009030 - 8008ff4: 687b ldr r3, [r7, #4] - 8008ff6: 685b ldr r3, [r3, #4] - 8008ff8: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 - 8008ffc: d10c bne.n 8009018 - 8008ffe: 4b76 ldr r3, [pc, #472] ; (80091d8 ) - 8009000: 681b ldr r3, [r3, #0] - 8009002: 4a75 ldr r2, [pc, #468] ; (80091d8 ) - 8009004: f443 2380 orr.w r3, r3, #262144 ; 0x40000 - 8009008: 6013 str r3, [r2, #0] - 800900a: 4b73 ldr r3, [pc, #460] ; (80091d8 ) - 800900c: 681b ldr r3, [r3, #0] - 800900e: 4a72 ldr r2, [pc, #456] ; (80091d8 ) - 8009010: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8009014: 6013 str r3, [r2, #0] - 8009016: e00b b.n 8009030 - 8009018: 4b6f ldr r3, [pc, #444] ; (80091d8 ) - 800901a: 681b ldr r3, [r3, #0] - 800901c: 4a6e ldr r2, [pc, #440] ; (80091d8 ) - 800901e: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8009022: 6013 str r3, [r2, #0] - 8009024: 4b6c ldr r3, [pc, #432] ; (80091d8 ) - 8009026: 681b ldr r3, [r3, #0] - 8009028: 4a6b ldr r2, [pc, #428] ; (80091d8 ) - 800902a: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 800902e: 6013 str r3, [r2, #0] + 8008fbe: 687b ldr r3, [r7, #4] + 8008fc0: 685b ldr r3, [r3, #4] + 8008fc2: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8008fc6: d106 bne.n 8008fd6 + 8008fc8: 4b84 ldr r3, [pc, #528] ; (80091dc ) + 8008fca: 681b ldr r3, [r3, #0] + 8008fcc: 4a83 ldr r2, [pc, #524] ; (80091dc ) + 8008fce: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8008fd2: 6013 str r3, [r2, #0] + 8008fd4: e02e b.n 8009034 + 8008fd6: 687b ldr r3, [r7, #4] + 8008fd8: 685b ldr r3, [r3, #4] + 8008fda: 2b00 cmp r3, #0 + 8008fdc: d10c bne.n 8008ff8 + 8008fde: 4b7f ldr r3, [pc, #508] ; (80091dc ) + 8008fe0: 681b ldr r3, [r3, #0] + 8008fe2: 4a7e ldr r2, [pc, #504] ; (80091dc ) + 8008fe4: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8008fe8: 6013 str r3, [r2, #0] + 8008fea: 4b7c ldr r3, [pc, #496] ; (80091dc ) + 8008fec: 681b ldr r3, [r3, #0] + 8008fee: 4a7b ldr r2, [pc, #492] ; (80091dc ) + 8008ff0: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 8008ff4: 6013 str r3, [r2, #0] + 8008ff6: e01d b.n 8009034 + 8008ff8: 687b ldr r3, [r7, #4] + 8008ffa: 685b ldr r3, [r3, #4] + 8008ffc: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 + 8009000: d10c bne.n 800901c + 8009002: 4b76 ldr r3, [pc, #472] ; (80091dc ) + 8009004: 681b ldr r3, [r3, #0] + 8009006: 4a75 ldr r2, [pc, #468] ; (80091dc ) + 8009008: f443 2380 orr.w r3, r3, #262144 ; 0x40000 + 800900c: 6013 str r3, [r2, #0] + 800900e: 4b73 ldr r3, [pc, #460] ; (80091dc ) + 8009010: 681b ldr r3, [r3, #0] + 8009012: 4a72 ldr r2, [pc, #456] ; (80091dc ) + 8009014: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8009018: 6013 str r3, [r2, #0] + 800901a: e00b b.n 8009034 + 800901c: 4b6f ldr r3, [pc, #444] ; (80091dc ) + 800901e: 681b ldr r3, [r3, #0] + 8009020: 4a6e ldr r2, [pc, #440] ; (80091dc ) + 8009022: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8009026: 6013 str r3, [r2, #0] + 8009028: 4b6c ldr r3, [pc, #432] ; (80091dc ) + 800902a: 681b ldr r3, [r3, #0] + 800902c: 4a6b ldr r2, [pc, #428] ; (80091dc ) + 800902e: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 8009032: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 8009030: 687b ldr r3, [r7, #4] - 8009032: 685b ldr r3, [r3, #4] - 8009034: 2b00 cmp r3, #0 - 8009036: d013 beq.n 8009060 + 8009034: 687b ldr r3, [r7, #4] + 8009036: 685b ldr r3, [r3, #4] + 8009038: 2b00 cmp r3, #0 + 800903a: d013 beq.n 8009064 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009038: f7fb ff42 bl 8004ec0 - 800903c: 6138 str r0, [r7, #16] + 800903c: f7fb ff42 bl 8004ec4 + 8009040: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800903e: e008 b.n 8009052 + 8009042: e008 b.n 8009056 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8009040: f7fb ff3e bl 8004ec0 - 8009044: 4602 mov r2, r0 - 8009046: 693b ldr r3, [r7, #16] - 8009048: 1ad3 subs r3, r2, r3 - 800904a: 2b64 cmp r3, #100 ; 0x64 - 800904c: d901 bls.n 8009052 + 8009044: f7fb ff3e bl 8004ec4 + 8009048: 4602 mov r2, r0 + 800904a: 693b ldr r3, [r7, #16] + 800904c: 1ad3 subs r3, r2, r3 + 800904e: 2b64 cmp r3, #100 ; 0x64 + 8009050: d901 bls.n 8009056 { return HAL_TIMEOUT; - 800904e: 2303 movs r3, #3 - 8009050: e21f b.n 8009492 + 8009052: 2303 movs r3, #3 + 8009054: e21f b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8009052: 4b61 ldr r3, [pc, #388] ; (80091d8 ) - 8009054: 681b ldr r3, [r3, #0] - 8009056: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 800905a: 2b00 cmp r3, #0 - 800905c: d0f0 beq.n 8009040 - 800905e: e014 b.n 800908a + 8009056: 4b61 ldr r3, [pc, #388] ; (80091dc ) + 8009058: 681b ldr r3, [r3, #0] + 800905a: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 800905e: 2b00 cmp r3, #0 + 8009060: d0f0 beq.n 8009044 + 8009062: e014 b.n 800908e } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009060: f7fb ff2e bl 8004ec0 - 8009064: 6138 str r0, [r7, #16] + 8009064: f7fb ff2e bl 8004ec4 + 8009068: 6138 str r0, [r7, #16] /* Wait till HSE is bypassed or disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8009066: e008 b.n 800907a + 800906a: e008 b.n 800907e { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8009068: f7fb ff2a bl 8004ec0 - 800906c: 4602 mov r2, r0 - 800906e: 693b ldr r3, [r7, #16] - 8009070: 1ad3 subs r3, r2, r3 - 8009072: 2b64 cmp r3, #100 ; 0x64 - 8009074: d901 bls.n 800907a + 800906c: f7fb ff2a bl 8004ec4 + 8009070: 4602 mov r2, r0 + 8009072: 693b ldr r3, [r7, #16] + 8009074: 1ad3 subs r3, r2, r3 + 8009076: 2b64 cmp r3, #100 ; 0x64 + 8009078: d901 bls.n 800907e { return HAL_TIMEOUT; - 8009076: 2303 movs r3, #3 - 8009078: e20b b.n 8009492 + 800907a: 2303 movs r3, #3 + 800907c: e20b b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 800907a: 4b57 ldr r3, [pc, #348] ; (80091d8 ) - 800907c: 681b ldr r3, [r3, #0] - 800907e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8009082: 2b00 cmp r3, #0 - 8009084: d1f0 bne.n 8009068 - 8009086: e000 b.n 800908a + 800907e: 4b57 ldr r3, [pc, #348] ; (80091dc ) + 8009080: 681b ldr r3, [r3, #0] + 8009082: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8009086: 2b00 cmp r3, #0 + 8009088: d1f0 bne.n 800906c + 800908a: e000 b.n 800908e if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8009088: bf00 nop + 800908c: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 800908a: 687b ldr r3, [r7, #4] - 800908c: 681b ldr r3, [r3, #0] - 800908e: f003 0302 and.w r3, r3, #2 - 8009092: 2b00 cmp r3, #0 - 8009094: d069 beq.n 800916a + 800908e: 687b ldr r3, [r7, #4] + 8009090: 681b ldr r3, [r3, #0] + 8009092: f003 0302 and.w r3, r3, #2 + 8009096: 2b00 cmp r3, #0 + 8009098: d069 beq.n 800916e /* 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) - 8009096: 4b50 ldr r3, [pc, #320] ; (80091d8 ) - 8009098: 689b ldr r3, [r3, #8] - 800909a: f003 030c and.w r3, r3, #12 - 800909e: 2b00 cmp r3, #0 - 80090a0: d00b beq.n 80090ba + 800909a: 4b50 ldr r3, [pc, #320] ; (80091dc ) + 800909c: 689b ldr r3, [r3, #8] + 800909e: f003 030c and.w r3, r3, #12 + 80090a2: 2b00 cmp r3, #0 + 80090a4: d00b beq.n 80090be || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 80090a2: 4b4d ldr r3, [pc, #308] ; (80091d8 ) - 80090a4: 689b ldr r3, [r3, #8] - 80090a6: f003 030c and.w r3, r3, #12 - 80090aa: 2b08 cmp r3, #8 - 80090ac: d11c bne.n 80090e8 - 80090ae: 4b4a ldr r3, [pc, #296] ; (80091d8 ) - 80090b0: 685b ldr r3, [r3, #4] - 80090b2: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 80090b6: 2b00 cmp r3, #0 - 80090b8: d116 bne.n 80090e8 + 80090a6: 4b4d ldr r3, [pc, #308] ; (80091dc ) + 80090a8: 689b ldr r3, [r3, #8] + 80090aa: f003 030c and.w r3, r3, #12 + 80090ae: 2b08 cmp r3, #8 + 80090b0: d11c bne.n 80090ec + 80090b2: 4b4a ldr r3, [pc, #296] ; (80091dc ) + 80090b4: 685b ldr r3, [r3, #4] + 80090b6: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 80090ba: 2b00 cmp r3, #0 + 80090bc: d116 bne.n 80090ec { /* 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)) - 80090ba: 4b47 ldr r3, [pc, #284] ; (80091d8 ) - 80090bc: 681b ldr r3, [r3, #0] - 80090be: f003 0302 and.w r3, r3, #2 - 80090c2: 2b00 cmp r3, #0 - 80090c4: d005 beq.n 80090d2 - 80090c6: 687b ldr r3, [r7, #4] - 80090c8: 68db ldr r3, [r3, #12] - 80090ca: 2b01 cmp r3, #1 - 80090cc: d001 beq.n 80090d2 + 80090be: 4b47 ldr r3, [pc, #284] ; (80091dc ) + 80090c0: 681b ldr r3, [r3, #0] + 80090c2: f003 0302 and.w r3, r3, #2 + 80090c6: 2b00 cmp r3, #0 + 80090c8: d005 beq.n 80090d6 + 80090ca: 687b ldr r3, [r7, #4] + 80090cc: 68db ldr r3, [r3, #12] + 80090ce: 2b01 cmp r3, #1 + 80090d0: d001 beq.n 80090d6 { return HAL_ERROR; - 80090ce: 2301 movs r3, #1 - 80090d0: e1df b.n 8009492 + 80090d2: 2301 movs r3, #1 + 80090d4: e1df b.n 8009496 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 80090d2: 4b41 ldr r3, [pc, #260] ; (80091d8 ) - 80090d4: 681b ldr r3, [r3, #0] - 80090d6: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 80090da: 687b ldr r3, [r7, #4] - 80090dc: 691b ldr r3, [r3, #16] - 80090de: 00db lsls r3, r3, #3 - 80090e0: 493d ldr r1, [pc, #244] ; (80091d8 ) - 80090e2: 4313 orrs r3, r2 - 80090e4: 600b str r3, [r1, #0] + 80090d6: 4b41 ldr r3, [pc, #260] ; (80091dc ) + 80090d8: 681b ldr r3, [r3, #0] + 80090da: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 80090de: 687b ldr r3, [r7, #4] + 80090e0: 691b ldr r3, [r3, #16] + 80090e2: 00db lsls r3, r3, #3 + 80090e4: 493d ldr r1, [pc, #244] ; (80091dc ) + 80090e6: 4313 orrs r3, r2 + 80090e8: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 80090e6: e040 b.n 800916a + 80090ea: e040 b.n 800916e } } else { /* Check the HSI State */ if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF) - 80090e8: 687b ldr r3, [r7, #4] - 80090ea: 68db ldr r3, [r3, #12] - 80090ec: 2b00 cmp r3, #0 - 80090ee: d023 beq.n 8009138 + 80090ec: 687b ldr r3, [r7, #4] + 80090ee: 68db ldr r3, [r3, #12] + 80090f0: 2b00 cmp r3, #0 + 80090f2: d023 beq.n 800913c { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 80090f0: 4b39 ldr r3, [pc, #228] ; (80091d8 ) - 80090f2: 681b ldr r3, [r3, #0] - 80090f4: 4a38 ldr r2, [pc, #224] ; (80091d8 ) - 80090f6: f043 0301 orr.w r3, r3, #1 - 80090fa: 6013 str r3, [r2, #0] + 80090f4: 4b39 ldr r3, [pc, #228] ; (80091dc ) + 80090f6: 681b ldr r3, [r3, #0] + 80090f8: 4a38 ldr r2, [pc, #224] ; (80091dc ) + 80090fa: f043 0301 orr.w r3, r3, #1 + 80090fe: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80090fc: f7fb fee0 bl 8004ec0 - 8009100: 6138 str r0, [r7, #16] + 8009100: f7fb fee0 bl 8004ec4 + 8009104: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8009102: e008 b.n 8009116 + 8009106: e008 b.n 800911a { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8009104: f7fb fedc bl 8004ec0 - 8009108: 4602 mov r2, r0 - 800910a: 693b ldr r3, [r7, #16] - 800910c: 1ad3 subs r3, r2, r3 - 800910e: 2b02 cmp r3, #2 - 8009110: d901 bls.n 8009116 + 8009108: f7fb fedc bl 8004ec4 + 800910c: 4602 mov r2, r0 + 800910e: 693b ldr r3, [r7, #16] + 8009110: 1ad3 subs r3, r2, r3 + 8009112: 2b02 cmp r3, #2 + 8009114: d901 bls.n 800911a { return HAL_TIMEOUT; - 8009112: 2303 movs r3, #3 - 8009114: e1bd b.n 8009492 + 8009116: 2303 movs r3, #3 + 8009118: e1bd b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8009116: 4b30 ldr r3, [pc, #192] ; (80091d8 ) - 8009118: 681b ldr r3, [r3, #0] - 800911a: f003 0302 and.w r3, r3, #2 - 800911e: 2b00 cmp r3, #0 - 8009120: d0f0 beq.n 8009104 + 800911a: 4b30 ldr r3, [pc, #192] ; (80091dc ) + 800911c: 681b ldr r3, [r3, #0] + 800911e: f003 0302 and.w r3, r3, #2 + 8009122: 2b00 cmp r3, #0 + 8009124: d0f0 beq.n 8009108 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8009122: 4b2d ldr r3, [pc, #180] ; (80091d8 ) - 8009124: 681b ldr r3, [r3, #0] - 8009126: f023 02f8 bic.w r2, r3, #248 ; 0xf8 - 800912a: 687b ldr r3, [r7, #4] - 800912c: 691b ldr r3, [r3, #16] - 800912e: 00db lsls r3, r3, #3 - 8009130: 4929 ldr r1, [pc, #164] ; (80091d8 ) - 8009132: 4313 orrs r3, r2 - 8009134: 600b str r3, [r1, #0] - 8009136: e018 b.n 800916a + 8009126: 4b2d ldr r3, [pc, #180] ; (80091dc ) + 8009128: 681b ldr r3, [r3, #0] + 800912a: f023 02f8 bic.w r2, r3, #248 ; 0xf8 + 800912e: 687b ldr r3, [r7, #4] + 8009130: 691b ldr r3, [r3, #16] + 8009132: 00db lsls r3, r3, #3 + 8009134: 4929 ldr r1, [pc, #164] ; (80091dc ) + 8009136: 4313 orrs r3, r2 + 8009138: 600b str r3, [r1, #0] + 800913a: e018 b.n 800916e } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 8009138: 4b27 ldr r3, [pc, #156] ; (80091d8 ) - 800913a: 681b ldr r3, [r3, #0] - 800913c: 4a26 ldr r2, [pc, #152] ; (80091d8 ) - 800913e: f023 0301 bic.w r3, r3, #1 - 8009142: 6013 str r3, [r2, #0] + 800913c: 4b27 ldr r3, [pc, #156] ; (80091dc ) + 800913e: 681b ldr r3, [r3, #0] + 8009140: 4a26 ldr r2, [pc, #152] ; (80091dc ) + 8009142: f023 0301 bic.w r3, r3, #1 + 8009146: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009144: f7fb febc bl 8004ec0 - 8009148: 6138 str r0, [r7, #16] + 8009148: f7fb febc bl 8004ec4 + 800914c: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 800914a: e008 b.n 800915e + 800914e: e008 b.n 8009162 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 800914c: f7fb feb8 bl 8004ec0 - 8009150: 4602 mov r2, r0 - 8009152: 693b ldr r3, [r7, #16] - 8009154: 1ad3 subs r3, r2, r3 - 8009156: 2b02 cmp r3, #2 - 8009158: d901 bls.n 800915e + 8009150: f7fb feb8 bl 8004ec4 + 8009154: 4602 mov r2, r0 + 8009156: 693b ldr r3, [r7, #16] + 8009158: 1ad3 subs r3, r2, r3 + 800915a: 2b02 cmp r3, #2 + 800915c: d901 bls.n 8009162 { return HAL_TIMEOUT; - 800915a: 2303 movs r3, #3 - 800915c: e199 b.n 8009492 + 800915e: 2303 movs r3, #3 + 8009160: e199 b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 800915e: 4b1e ldr r3, [pc, #120] ; (80091d8 ) - 8009160: 681b ldr r3, [r3, #0] - 8009162: f003 0302 and.w r3, r3, #2 - 8009166: 2b00 cmp r3, #0 - 8009168: d1f0 bne.n 800914c + 8009162: 4b1e ldr r3, [pc, #120] ; (80091dc ) + 8009164: 681b ldr r3, [r3, #0] + 8009166: f003 0302 and.w r3, r3, #2 + 800916a: 2b00 cmp r3, #0 + 800916c: d1f0 bne.n 8009150 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 800916a: 687b ldr r3, [r7, #4] - 800916c: 681b ldr r3, [r3, #0] - 800916e: f003 0308 and.w r3, r3, #8 - 8009172: 2b00 cmp r3, #0 - 8009174: d038 beq.n 80091e8 + 800916e: 687b ldr r3, [r7, #4] + 8009170: 681b ldr r3, [r3, #0] + 8009172: f003 0308 and.w r3, r3, #8 + 8009176: 2b00 cmp r3, #0 + 8009178: d038 beq.n 80091ec { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF) - 8009176: 687b ldr r3, [r7, #4] - 8009178: 695b ldr r3, [r3, #20] - 800917a: 2b00 cmp r3, #0 - 800917c: d019 beq.n 80091b2 + 800917a: 687b ldr r3, [r7, #4] + 800917c: 695b ldr r3, [r3, #20] + 800917e: 2b00 cmp r3, #0 + 8009180: d019 beq.n 80091b6 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 800917e: 4b16 ldr r3, [pc, #88] ; (80091d8 ) - 8009180: 6f5b ldr r3, [r3, #116] ; 0x74 - 8009182: 4a15 ldr r2, [pc, #84] ; (80091d8 ) - 8009184: f043 0301 orr.w r3, r3, #1 - 8009188: 6753 str r3, [r2, #116] ; 0x74 + 8009182: 4b16 ldr r3, [pc, #88] ; (80091dc ) + 8009184: 6f5b ldr r3, [r3, #116] ; 0x74 + 8009186: 4a15 ldr r2, [pc, #84] ; (80091dc ) + 8009188: f043 0301 orr.w r3, r3, #1 + 800918c: 6753 str r3, [r2, #116] ; 0x74 /* Get Start Tick*/ tickstart = HAL_GetTick(); - 800918a: f7fb fe99 bl 8004ec0 - 800918e: 6138 str r0, [r7, #16] + 800918e: f7fb fe99 bl 8004ec4 + 8009192: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8009190: e008 b.n 80091a4 + 8009194: e008 b.n 80091a8 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8009192: f7fb fe95 bl 8004ec0 - 8009196: 4602 mov r2, r0 - 8009198: 693b ldr r3, [r7, #16] - 800919a: 1ad3 subs r3, r2, r3 - 800919c: 2b02 cmp r3, #2 - 800919e: d901 bls.n 80091a4 + 8009196: f7fb fe95 bl 8004ec4 + 800919a: 4602 mov r2, r0 + 800919c: 693b ldr r3, [r7, #16] + 800919e: 1ad3 subs r3, r2, r3 + 80091a0: 2b02 cmp r3, #2 + 80091a2: d901 bls.n 80091a8 { return HAL_TIMEOUT; - 80091a0: 2303 movs r3, #3 - 80091a2: e176 b.n 8009492 + 80091a4: 2303 movs r3, #3 + 80091a6: e176 b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 80091a4: 4b0c ldr r3, [pc, #48] ; (80091d8 ) - 80091a6: 6f5b ldr r3, [r3, #116] ; 0x74 - 80091a8: f003 0302 and.w r3, r3, #2 - 80091ac: 2b00 cmp r3, #0 - 80091ae: d0f0 beq.n 8009192 - 80091b0: e01a b.n 80091e8 + 80091a8: 4b0c ldr r3, [pc, #48] ; (80091dc ) + 80091aa: 6f5b ldr r3, [r3, #116] ; 0x74 + 80091ac: f003 0302 and.w r3, r3, #2 + 80091b0: 2b00 cmp r3, #0 + 80091b2: d0f0 beq.n 8009196 + 80091b4: e01a b.n 80091ec } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 80091b2: 4b09 ldr r3, [pc, #36] ; (80091d8 ) - 80091b4: 6f5b ldr r3, [r3, #116] ; 0x74 - 80091b6: 4a08 ldr r2, [pc, #32] ; (80091d8 ) - 80091b8: f023 0301 bic.w r3, r3, #1 - 80091bc: 6753 str r3, [r2, #116] ; 0x74 + 80091b6: 4b09 ldr r3, [pc, #36] ; (80091dc ) + 80091b8: 6f5b ldr r3, [r3, #116] ; 0x74 + 80091ba: 4a08 ldr r2, [pc, #32] ; (80091dc ) + 80091bc: f023 0301 bic.w r3, r3, #1 + 80091c0: 6753 str r3, [r2, #116] ; 0x74 /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80091be: f7fb fe7f bl 8004ec0 - 80091c2: 6138 str r0, [r7, #16] + 80091c2: f7fb fe7f bl 8004ec4 + 80091c6: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 80091c4: e00a b.n 80091dc + 80091c8: e00a b.n 80091e0 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 80091c6: f7fb fe7b bl 8004ec0 - 80091ca: 4602 mov r2, r0 - 80091cc: 693b ldr r3, [r7, #16] - 80091ce: 1ad3 subs r3, r2, r3 - 80091d0: 2b02 cmp r3, #2 - 80091d2: d903 bls.n 80091dc + 80091ca: f7fb fe7b bl 8004ec4 + 80091ce: 4602 mov r2, r0 + 80091d0: 693b ldr r3, [r7, #16] + 80091d2: 1ad3 subs r3, r2, r3 + 80091d4: 2b02 cmp r3, #2 + 80091d6: d903 bls.n 80091e0 { return HAL_TIMEOUT; - 80091d4: 2303 movs r3, #3 - 80091d6: e15c b.n 8009492 - 80091d8: 40023800 .word 0x40023800 + 80091d8: 2303 movs r3, #3 + 80091da: e15c b.n 8009496 + 80091dc: 40023800 .word 0x40023800 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 80091dc: 4b91 ldr r3, [pc, #580] ; (8009424 ) - 80091de: 6f5b ldr r3, [r3, #116] ; 0x74 - 80091e0: f003 0302 and.w r3, r3, #2 - 80091e4: 2b00 cmp r3, #0 - 80091e6: d1ee bne.n 80091c6 + 80091e0: 4b91 ldr r3, [pc, #580] ; (8009428 ) + 80091e2: 6f5b ldr r3, [r3, #116] ; 0x74 + 80091e4: f003 0302 and.w r3, r3, #2 + 80091e8: 2b00 cmp r3, #0 + 80091ea: d1ee bne.n 80091ca } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 80091e8: 687b ldr r3, [r7, #4] - 80091ea: 681b ldr r3, [r3, #0] - 80091ec: f003 0304 and.w r3, r3, #4 - 80091f0: 2b00 cmp r3, #0 - 80091f2: f000 80a4 beq.w 800933e + 80091ec: 687b ldr r3, [r7, #4] + 80091ee: 681b ldr r3, [r3, #0] + 80091f0: f003 0304 and.w r3, r3, #4 + 80091f4: 2b00 cmp r3, #0 + 80091f6: f000 80a4 beq.w 8009342 /* 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()) - 80091f6: 4b8b ldr r3, [pc, #556] ; (8009424 ) - 80091f8: 6c1b ldr r3, [r3, #64] ; 0x40 - 80091fa: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 80091fe: 2b00 cmp r3, #0 - 8009200: d10d bne.n 800921e + 80091fa: 4b8b ldr r3, [pc, #556] ; (8009428 ) + 80091fc: 6c1b ldr r3, [r3, #64] ; 0x40 + 80091fe: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 8009202: 2b00 cmp r3, #0 + 8009204: d10d bne.n 8009222 { /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); - 8009202: 4b88 ldr r3, [pc, #544] ; (8009424 ) - 8009204: 6c1b ldr r3, [r3, #64] ; 0x40 - 8009206: 4a87 ldr r2, [pc, #540] ; (8009424 ) - 8009208: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 800920c: 6413 str r3, [r2, #64] ; 0x40 - 800920e: 4b85 ldr r3, [pc, #532] ; (8009424 ) - 8009210: 6c1b ldr r3, [r3, #64] ; 0x40 - 8009212: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 8009216: 60bb str r3, [r7, #8] - 8009218: 68bb ldr r3, [r7, #8] + 8009206: 4b88 ldr r3, [pc, #544] ; (8009428 ) + 8009208: 6c1b ldr r3, [r3, #64] ; 0x40 + 800920a: 4a87 ldr r2, [pc, #540] ; (8009428 ) + 800920c: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 8009210: 6413 str r3, [r2, #64] ; 0x40 + 8009212: 4b85 ldr r3, [pc, #532] ; (8009428 ) + 8009214: 6c1b ldr r3, [r3, #64] ; 0x40 + 8009216: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 800921a: 60bb str r3, [r7, #8] + 800921c: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 800921a: 2301 movs r3, #1 - 800921c: 75fb strb r3, [r7, #23] + 800921e: 2301 movs r3, #1 + 8009220: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP)) - 800921e: 4b82 ldr r3, [pc, #520] ; (8009428 ) - 8009220: 681b ldr r3, [r3, #0] - 8009222: f403 7380 and.w r3, r3, #256 ; 0x100 - 8009226: 2b00 cmp r3, #0 - 8009228: d118 bne.n 800925c + 8009222: 4b82 ldr r3, [pc, #520] ; (800942c ) + 8009224: 681b ldr r3, [r3, #0] + 8009226: f403 7380 and.w r3, r3, #256 ; 0x100 + 800922a: 2b00 cmp r3, #0 + 800922c: d118 bne.n 8009260 { /* Enable write access to Backup domain */ PWR->CR1 |= PWR_CR1_DBP; - 800922a: 4b7f ldr r3, [pc, #508] ; (8009428 ) - 800922c: 681b ldr r3, [r3, #0] - 800922e: 4a7e ldr r2, [pc, #504] ; (8009428 ) - 8009230: f443 7380 orr.w r3, r3, #256 ; 0x100 - 8009234: 6013 str r3, [r2, #0] + 800922e: 4b7f ldr r3, [pc, #508] ; (800942c ) + 8009230: 681b ldr r3, [r3, #0] + 8009232: 4a7e ldr r2, [pc, #504] ; (800942c ) + 8009234: f443 7380 orr.w r3, r3, #256 ; 0x100 + 8009238: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8009236: f7fb fe43 bl 8004ec0 - 800923a: 6138 str r0, [r7, #16] + 800923a: f7fb fe43 bl 8004ec4 + 800923e: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP)) - 800923c: e008 b.n 8009250 + 8009240: e008 b.n 8009254 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 800923e: f7fb fe3f bl 8004ec0 - 8009242: 4602 mov r2, r0 - 8009244: 693b ldr r3, [r7, #16] - 8009246: 1ad3 subs r3, r2, r3 - 8009248: 2b64 cmp r3, #100 ; 0x64 - 800924a: d901 bls.n 8009250 + 8009242: f7fb fe3f bl 8004ec4 + 8009246: 4602 mov r2, r0 + 8009248: 693b ldr r3, [r7, #16] + 800924a: 1ad3 subs r3, r2, r3 + 800924c: 2b64 cmp r3, #100 ; 0x64 + 800924e: d901 bls.n 8009254 { return HAL_TIMEOUT; - 800924c: 2303 movs r3, #3 - 800924e: e120 b.n 8009492 + 8009250: 2303 movs r3, #3 + 8009252: e120 b.n 8009496 while (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP)) - 8009250: 4b75 ldr r3, [pc, #468] ; (8009428 ) - 8009252: 681b ldr r3, [r3, #0] - 8009254: f403 7380 and.w r3, r3, #256 ; 0x100 - 8009258: 2b00 cmp r3, #0 - 800925a: d0f0 beq.n 800923e + 8009254: 4b75 ldr r3, [pc, #468] ; (800942c ) + 8009256: 681b ldr r3, [r3, #0] + 8009258: f403 7380 and.w r3, r3, #256 ; 0x100 + 800925c: 2b00 cmp r3, #0 + 800925e: d0f0 beq.n 8009242 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 800925c: 687b ldr r3, [r7, #4] - 800925e: 689b ldr r3, [r3, #8] - 8009260: 2b01 cmp r3, #1 - 8009262: d106 bne.n 8009272 - 8009264: 4b6f ldr r3, [pc, #444] ; (8009424 ) - 8009266: 6f1b ldr r3, [r3, #112] ; 0x70 - 8009268: 4a6e ldr r2, [pc, #440] ; (8009424 ) - 800926a: f043 0301 orr.w r3, r3, #1 - 800926e: 6713 str r3, [r2, #112] ; 0x70 - 8009270: e02d b.n 80092ce - 8009272: 687b ldr r3, [r7, #4] - 8009274: 689b ldr r3, [r3, #8] - 8009276: 2b00 cmp r3, #0 - 8009278: d10c bne.n 8009294 - 800927a: 4b6a ldr r3, [pc, #424] ; (8009424 ) - 800927c: 6f1b ldr r3, [r3, #112] ; 0x70 - 800927e: 4a69 ldr r2, [pc, #420] ; (8009424 ) - 8009280: f023 0301 bic.w r3, r3, #1 - 8009284: 6713 str r3, [r2, #112] ; 0x70 - 8009286: 4b67 ldr r3, [pc, #412] ; (8009424 ) - 8009288: 6f1b ldr r3, [r3, #112] ; 0x70 - 800928a: 4a66 ldr r2, [pc, #408] ; (8009424 ) - 800928c: f023 0304 bic.w r3, r3, #4 - 8009290: 6713 str r3, [r2, #112] ; 0x70 - 8009292: e01c b.n 80092ce - 8009294: 687b ldr r3, [r7, #4] - 8009296: 689b ldr r3, [r3, #8] - 8009298: 2b05 cmp r3, #5 - 800929a: d10c bne.n 80092b6 - 800929c: 4b61 ldr r3, [pc, #388] ; (8009424 ) - 800929e: 6f1b ldr r3, [r3, #112] ; 0x70 - 80092a0: 4a60 ldr r2, [pc, #384] ; (8009424 ) - 80092a2: f043 0304 orr.w r3, r3, #4 - 80092a6: 6713 str r3, [r2, #112] ; 0x70 - 80092a8: 4b5e ldr r3, [pc, #376] ; (8009424 ) - 80092aa: 6f1b ldr r3, [r3, #112] ; 0x70 - 80092ac: 4a5d ldr r2, [pc, #372] ; (8009424 ) - 80092ae: f043 0301 orr.w r3, r3, #1 - 80092b2: 6713 str r3, [r2, #112] ; 0x70 - 80092b4: e00b b.n 80092ce - 80092b6: 4b5b ldr r3, [pc, #364] ; (8009424 ) - 80092b8: 6f1b ldr r3, [r3, #112] ; 0x70 - 80092ba: 4a5a ldr r2, [pc, #360] ; (8009424 ) - 80092bc: f023 0301 bic.w r3, r3, #1 - 80092c0: 6713 str r3, [r2, #112] ; 0x70 - 80092c2: 4b58 ldr r3, [pc, #352] ; (8009424 ) - 80092c4: 6f1b ldr r3, [r3, #112] ; 0x70 - 80092c6: 4a57 ldr r2, [pc, #348] ; (8009424 ) - 80092c8: f023 0304 bic.w r3, r3, #4 - 80092cc: 6713 str r3, [r2, #112] ; 0x70 + 8009260: 687b ldr r3, [r7, #4] + 8009262: 689b ldr r3, [r3, #8] + 8009264: 2b01 cmp r3, #1 + 8009266: d106 bne.n 8009276 + 8009268: 4b6f ldr r3, [pc, #444] ; (8009428 ) + 800926a: 6f1b ldr r3, [r3, #112] ; 0x70 + 800926c: 4a6e ldr r2, [pc, #440] ; (8009428 ) + 800926e: f043 0301 orr.w r3, r3, #1 + 8009272: 6713 str r3, [r2, #112] ; 0x70 + 8009274: e02d b.n 80092d2 + 8009276: 687b ldr r3, [r7, #4] + 8009278: 689b ldr r3, [r3, #8] + 800927a: 2b00 cmp r3, #0 + 800927c: d10c bne.n 8009298 + 800927e: 4b6a ldr r3, [pc, #424] ; (8009428 ) + 8009280: 6f1b ldr r3, [r3, #112] ; 0x70 + 8009282: 4a69 ldr r2, [pc, #420] ; (8009428 ) + 8009284: f023 0301 bic.w r3, r3, #1 + 8009288: 6713 str r3, [r2, #112] ; 0x70 + 800928a: 4b67 ldr r3, [pc, #412] ; (8009428 ) + 800928c: 6f1b ldr r3, [r3, #112] ; 0x70 + 800928e: 4a66 ldr r2, [pc, #408] ; (8009428 ) + 8009290: f023 0304 bic.w r3, r3, #4 + 8009294: 6713 str r3, [r2, #112] ; 0x70 + 8009296: e01c b.n 80092d2 + 8009298: 687b ldr r3, [r7, #4] + 800929a: 689b ldr r3, [r3, #8] + 800929c: 2b05 cmp r3, #5 + 800929e: d10c bne.n 80092ba + 80092a0: 4b61 ldr r3, [pc, #388] ; (8009428 ) + 80092a2: 6f1b ldr r3, [r3, #112] ; 0x70 + 80092a4: 4a60 ldr r2, [pc, #384] ; (8009428 ) + 80092a6: f043 0304 orr.w r3, r3, #4 + 80092aa: 6713 str r3, [r2, #112] ; 0x70 + 80092ac: 4b5e ldr r3, [pc, #376] ; (8009428 ) + 80092ae: 6f1b ldr r3, [r3, #112] ; 0x70 + 80092b0: 4a5d ldr r2, [pc, #372] ; (8009428 ) + 80092b2: f043 0301 orr.w r3, r3, #1 + 80092b6: 6713 str r3, [r2, #112] ; 0x70 + 80092b8: e00b b.n 80092d2 + 80092ba: 4b5b ldr r3, [pc, #364] ; (8009428 ) + 80092bc: 6f1b ldr r3, [r3, #112] ; 0x70 + 80092be: 4a5a ldr r2, [pc, #360] ; (8009428 ) + 80092c0: f023 0301 bic.w r3, r3, #1 + 80092c4: 6713 str r3, [r2, #112] ; 0x70 + 80092c6: 4b58 ldr r3, [pc, #352] ; (8009428 ) + 80092c8: 6f1b ldr r3, [r3, #112] ; 0x70 + 80092ca: 4a57 ldr r2, [pc, #348] ; (8009428 ) + 80092cc: f023 0304 bic.w r3, r3, #4 + 80092d0: 6713 str r3, [r2, #112] ; 0x70 /* Check the LSE State */ if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) - 80092ce: 687b ldr r3, [r7, #4] - 80092d0: 689b ldr r3, [r3, #8] - 80092d2: 2b00 cmp r3, #0 - 80092d4: d015 beq.n 8009302 + 80092d2: 687b ldr r3, [r7, #4] + 80092d4: 689b ldr r3, [r3, #8] + 80092d6: 2b00 cmp r3, #0 + 80092d8: d015 beq.n 8009306 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80092d6: f7fb fdf3 bl 8004ec0 - 80092da: 6138 str r0, [r7, #16] + 80092da: f7fb fdf3 bl 8004ec4 + 80092de: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80092dc: e00a b.n 80092f4 + 80092e0: e00a b.n 80092f8 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 80092de: f7fb fdef bl 8004ec0 - 80092e2: 4602 mov r2, r0 - 80092e4: 693b ldr r3, [r7, #16] - 80092e6: 1ad3 subs r3, r2, r3 - 80092e8: f241 3288 movw r2, #5000 ; 0x1388 - 80092ec: 4293 cmp r3, r2 - 80092ee: d901 bls.n 80092f4 + 80092e2: f7fb fdef bl 8004ec4 + 80092e6: 4602 mov r2, r0 + 80092e8: 693b ldr r3, [r7, #16] + 80092ea: 1ad3 subs r3, r2, r3 + 80092ec: f241 3288 movw r2, #5000 ; 0x1388 + 80092f0: 4293 cmp r3, r2 + 80092f2: d901 bls.n 80092f8 { return HAL_TIMEOUT; - 80092f0: 2303 movs r3, #3 - 80092f2: e0ce b.n 8009492 + 80092f4: 2303 movs r3, #3 + 80092f6: e0ce b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80092f4: 4b4b ldr r3, [pc, #300] ; (8009424 ) - 80092f6: 6f1b ldr r3, [r3, #112] ; 0x70 - 80092f8: f003 0302 and.w r3, r3, #2 - 80092fc: 2b00 cmp r3, #0 - 80092fe: d0ee beq.n 80092de - 8009300: e014 b.n 800932c + 80092f8: 4b4b ldr r3, [pc, #300] ; (8009428 ) + 80092fa: 6f1b ldr r3, [r3, #112] ; 0x70 + 80092fc: f003 0302 and.w r3, r3, #2 + 8009300: 2b00 cmp r3, #0 + 8009302: d0ee beq.n 80092e2 + 8009304: e014 b.n 8009330 } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009302: f7fb fddd bl 8004ec0 - 8009306: 6138 str r0, [r7, #16] + 8009306: f7fb fddd bl 8004ec4 + 800930a: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8009308: e00a b.n 8009320 + 800930c: e00a b.n 8009324 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800930a: f7fb fdd9 bl 8004ec0 - 800930e: 4602 mov r2, r0 - 8009310: 693b ldr r3, [r7, #16] - 8009312: 1ad3 subs r3, r2, r3 - 8009314: f241 3288 movw r2, #5000 ; 0x1388 - 8009318: 4293 cmp r3, r2 - 800931a: d901 bls.n 8009320 + 800930e: f7fb fdd9 bl 8004ec4 + 8009312: 4602 mov r2, r0 + 8009314: 693b ldr r3, [r7, #16] + 8009316: 1ad3 subs r3, r2, r3 + 8009318: f241 3288 movw r2, #5000 ; 0x1388 + 800931c: 4293 cmp r3, r2 + 800931e: d901 bls.n 8009324 { return HAL_TIMEOUT; - 800931c: 2303 movs r3, #3 - 800931e: e0b8 b.n 8009492 + 8009320: 2303 movs r3, #3 + 8009322: e0b8 b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8009320: 4b40 ldr r3, [pc, #256] ; (8009424 ) - 8009322: 6f1b ldr r3, [r3, #112] ; 0x70 - 8009324: f003 0302 and.w r3, r3, #2 - 8009328: 2b00 cmp r3, #0 - 800932a: d1ee bne.n 800930a + 8009324: 4b40 ldr r3, [pc, #256] ; (8009428 ) + 8009326: 6f1b ldr r3, [r3, #112] ; 0x70 + 8009328: f003 0302 and.w r3, r3, #2 + 800932c: 2b00 cmp r3, #0 + 800932e: d1ee bne.n 800930e } } } /* Restore clock configuration if changed */ if (pwrclkchanged == SET) - 800932c: 7dfb ldrb r3, [r7, #23] - 800932e: 2b01 cmp r3, #1 - 8009330: d105 bne.n 800933e + 8009330: 7dfb ldrb r3, [r7, #23] + 8009332: 2b01 cmp r3, #1 + 8009334: d105 bne.n 8009342 { __HAL_RCC_PWR_CLK_DISABLE(); - 8009332: 4b3c ldr r3, [pc, #240] ; (8009424 ) - 8009334: 6c1b ldr r3, [r3, #64] ; 0x40 - 8009336: 4a3b ldr r2, [pc, #236] ; (8009424 ) - 8009338: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 800933c: 6413 str r3, [r2, #64] ; 0x40 + 8009336: 4b3c ldr r3, [pc, #240] ; (8009428 ) + 8009338: 6c1b ldr r3, [r3, #64] ; 0x40 + 800933a: 4a3b ldr r2, [pc, #236] ; (8009428 ) + 800933c: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 8009340: 6413 str r3, [r2, #64] ; 0x40 } } /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 800933e: 687b ldr r3, [r7, #4] - 8009340: 699b ldr r3, [r3, #24] - 8009342: 2b00 cmp r3, #0 - 8009344: f000 80a4 beq.w 8009490 + 8009342: 687b ldr r3, [r7, #4] + 8009344: 699b ldr r3, [r3, #24] + 8009346: 2b00 cmp r3, #0 + 8009348: f000 80a4 beq.w 8009494 { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 8009348: 4b36 ldr r3, [pc, #216] ; (8009424 ) - 800934a: 689b ldr r3, [r3, #8] - 800934c: f003 030c and.w r3, r3, #12 - 8009350: 2b08 cmp r3, #8 - 8009352: d06b beq.n 800942c + 800934c: 4b36 ldr r3, [pc, #216] ; (8009428 ) + 800934e: 689b ldr r3, [r3, #8] + 8009350: f003 030c and.w r3, r3, #12 + 8009354: 2b08 cmp r3, #8 + 8009356: d06b beq.n 8009430 { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8009354: 687b ldr r3, [r7, #4] - 8009356: 699b ldr r3, [r3, #24] - 8009358: 2b02 cmp r3, #2 - 800935a: d149 bne.n 80093f0 + 8009358: 687b ldr r3, [r7, #4] + 800935a: 699b ldr r3, [r3, #24] + 800935c: 2b02 cmp r3, #2 + 800935e: d149 bne.n 80093f4 #if defined (RCC_PLLCFGR_PLLR) assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR)); #endif /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 800935c: 4b31 ldr r3, [pc, #196] ; (8009424 ) - 800935e: 681b ldr r3, [r3, #0] - 8009360: 4a30 ldr r2, [pc, #192] ; (8009424 ) - 8009362: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000 - 8009366: 6013 str r3, [r2, #0] + 8009360: 4b31 ldr r3, [pc, #196] ; (8009428 ) + 8009362: 681b ldr r3, [r3, #0] + 8009364: 4a30 ldr r2, [pc, #192] ; (8009428 ) + 8009366: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000 + 800936a: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009368: f7fb fdaa bl 8004ec0 - 800936c: 6138 str r0, [r7, #16] + 800936c: f7fb fdaa bl 8004ec4 + 8009370: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800936e: e008 b.n 8009382 + 8009372: e008 b.n 8009386 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8009370: f7fb fda6 bl 8004ec0 - 8009374: 4602 mov r2, r0 - 8009376: 693b ldr r3, [r7, #16] - 8009378: 1ad3 subs r3, r2, r3 - 800937a: 2b02 cmp r3, #2 - 800937c: d901 bls.n 8009382 + 8009374: f7fb fda6 bl 8004ec4 + 8009378: 4602 mov r2, r0 + 800937a: 693b ldr r3, [r7, #16] + 800937c: 1ad3 subs r3, r2, r3 + 800937e: 2b02 cmp r3, #2 + 8009380: d901 bls.n 8009386 { return HAL_TIMEOUT; - 800937e: 2303 movs r3, #3 - 8009380: e087 b.n 8009492 + 8009382: 2303 movs r3, #3 + 8009384: e087 b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8009382: 4b28 ldr r3, [pc, #160] ; (8009424 ) - 8009384: 681b ldr r3, [r3, #0] - 8009386: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800938a: 2b00 cmp r3, #0 - 800938c: d1f0 bne.n 8009370 + 8009386: 4b28 ldr r3, [pc, #160] ; (8009428 ) + 8009388: 681b ldr r3, [r3, #0] + 800938a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 800938e: 2b00 cmp r3, #0 + 8009390: d1f0 bne.n 8009374 RCC_OscInitStruct->PLL.PLLN, RCC_OscInitStruct->PLL.PLLP, RCC_OscInitStruct->PLL.PLLQ, RCC_OscInitStruct->PLL.PLLR); #else __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 800938e: 687b ldr r3, [r7, #4] - 8009390: 69da ldr r2, [r3, #28] 8009392: 687b ldr r3, [r7, #4] - 8009394: 6a1b ldr r3, [r3, #32] - 8009396: 431a orrs r2, r3 - 8009398: 687b ldr r3, [r7, #4] - 800939a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800939c: 019b lsls r3, r3, #6 - 800939e: 431a orrs r2, r3 - 80093a0: 687b ldr r3, [r7, #4] - 80093a2: 6a9b ldr r3, [r3, #40] ; 0x28 - 80093a4: 085b lsrs r3, r3, #1 - 80093a6: 3b01 subs r3, #1 - 80093a8: 041b lsls r3, r3, #16 - 80093aa: 431a orrs r2, r3 - 80093ac: 687b ldr r3, [r7, #4] - 80093ae: 6adb ldr r3, [r3, #44] ; 0x2c - 80093b0: 061b lsls r3, r3, #24 - 80093b2: 4313 orrs r3, r2 - 80093b4: 4a1b ldr r2, [pc, #108] ; (8009424 ) - 80093b6: f043 5300 orr.w r3, r3, #536870912 ; 0x20000000 - 80093ba: 6053 str r3, [r2, #4] + 8009394: 69da ldr r2, [r3, #28] + 8009396: 687b ldr r3, [r7, #4] + 8009398: 6a1b ldr r3, [r3, #32] + 800939a: 431a orrs r2, r3 + 800939c: 687b ldr r3, [r7, #4] + 800939e: 6a5b ldr r3, [r3, #36] ; 0x24 + 80093a0: 019b lsls r3, r3, #6 + 80093a2: 431a orrs r2, r3 + 80093a4: 687b ldr r3, [r7, #4] + 80093a6: 6a9b ldr r3, [r3, #40] ; 0x28 + 80093a8: 085b lsrs r3, r3, #1 + 80093aa: 3b01 subs r3, #1 + 80093ac: 041b lsls r3, r3, #16 + 80093ae: 431a orrs r2, r3 + 80093b0: 687b ldr r3, [r7, #4] + 80093b2: 6adb ldr r3, [r3, #44] ; 0x2c + 80093b4: 061b lsls r3, r3, #24 + 80093b6: 4313 orrs r3, r2 + 80093b8: 4a1b ldr r2, [pc, #108] ; (8009428 ) + 80093ba: f043 5300 orr.w r3, r3, #536870912 ; 0x20000000 + 80093be: 6053 str r3, [r2, #4] RCC_OscInitStruct->PLL.PLLP, RCC_OscInitStruct->PLL.PLLQ); #endif /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 80093bc: 4b19 ldr r3, [pc, #100] ; (8009424 ) - 80093be: 681b ldr r3, [r3, #0] - 80093c0: 4a18 ldr r2, [pc, #96] ; (8009424 ) - 80093c2: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 - 80093c6: 6013 str r3, [r2, #0] + 80093c0: 4b19 ldr r3, [pc, #100] ; (8009428 ) + 80093c2: 681b ldr r3, [r3, #0] + 80093c4: 4a18 ldr r2, [pc, #96] ; (8009428 ) + 80093c6: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 + 80093ca: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80093c8: f7fb fd7a bl 8004ec0 - 80093cc: 6138 str r0, [r7, #16] + 80093cc: f7fb fd7a bl 8004ec4 + 80093d0: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80093ce: e008 b.n 80093e2 + 80093d2: e008 b.n 80093e6 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80093d0: f7fb fd76 bl 8004ec0 - 80093d4: 4602 mov r2, r0 - 80093d6: 693b ldr r3, [r7, #16] - 80093d8: 1ad3 subs r3, r2, r3 - 80093da: 2b02 cmp r3, #2 - 80093dc: d901 bls.n 80093e2 + 80093d4: f7fb fd76 bl 8004ec4 + 80093d8: 4602 mov r2, r0 + 80093da: 693b ldr r3, [r7, #16] + 80093dc: 1ad3 subs r3, r2, r3 + 80093de: 2b02 cmp r3, #2 + 80093e0: d901 bls.n 80093e6 { return HAL_TIMEOUT; - 80093de: 2303 movs r3, #3 - 80093e0: e057 b.n 8009492 + 80093e2: 2303 movs r3, #3 + 80093e4: e057 b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80093e2: 4b10 ldr r3, [pc, #64] ; (8009424 ) - 80093e4: 681b ldr r3, [r3, #0] - 80093e6: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 80093ea: 2b00 cmp r3, #0 - 80093ec: d0f0 beq.n 80093d0 - 80093ee: e04f b.n 8009490 + 80093e6: 4b10 ldr r3, [pc, #64] ; (8009428 ) + 80093e8: 681b ldr r3, [r3, #0] + 80093ea: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 80093ee: 2b00 cmp r3, #0 + 80093f0: d0f0 beq.n 80093d4 + 80093f2: e04f b.n 8009494 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 80093f0: 4b0c ldr r3, [pc, #48] ; (8009424 ) - 80093f2: 681b ldr r3, [r3, #0] - 80093f4: 4a0b ldr r2, [pc, #44] ; (8009424 ) - 80093f6: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000 - 80093fa: 6013 str r3, [r2, #0] + 80093f4: 4b0c ldr r3, [pc, #48] ; (8009428 ) + 80093f6: 681b ldr r3, [r3, #0] + 80093f8: 4a0b ldr r2, [pc, #44] ; (8009428 ) + 80093fa: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000 + 80093fe: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80093fc: f7fb fd60 bl 8004ec0 - 8009400: 6138 str r0, [r7, #16] + 8009400: f7fb fd60 bl 8004ec4 + 8009404: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8009402: e008 b.n 8009416 + 8009406: e008 b.n 800941a { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8009404: f7fb fd5c bl 8004ec0 - 8009408: 4602 mov r2, r0 - 800940a: 693b ldr r3, [r7, #16] - 800940c: 1ad3 subs r3, r2, r3 - 800940e: 2b02 cmp r3, #2 - 8009410: d901 bls.n 8009416 + 8009408: f7fb fd5c bl 8004ec4 + 800940c: 4602 mov r2, r0 + 800940e: 693b ldr r3, [r7, #16] + 8009410: 1ad3 subs r3, r2, r3 + 8009412: 2b02 cmp r3, #2 + 8009414: d901 bls.n 800941a { return HAL_TIMEOUT; - 8009412: 2303 movs r3, #3 - 8009414: e03d b.n 8009492 + 8009416: 2303 movs r3, #3 + 8009418: e03d b.n 8009496 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8009416: 4b03 ldr r3, [pc, #12] ; (8009424 ) - 8009418: 681b ldr r3, [r3, #0] - 800941a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800941e: 2b00 cmp r3, #0 - 8009420: d1f0 bne.n 8009404 - 8009422: e035 b.n 8009490 - 8009424: 40023800 .word 0x40023800 - 8009428: 40007000 .word 0x40007000 + 800941a: 4b03 ldr r3, [pc, #12] ; (8009428 ) + 800941c: 681b ldr r3, [r3, #0] + 800941e: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8009422: 2b00 cmp r3, #0 + 8009424: d1f0 bne.n 8009408 + 8009426: e035 b.n 8009494 + 8009428: 40023800 .word 0x40023800 + 800942c: 40007000 .word 0x40007000 } } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->PLLCFGR; - 800942c: 4b1b ldr r3, [pc, #108] ; (800949c ) - 800942e: 685b ldr r3, [r3, #4] - 8009430: 60fb str r3, [r7, #12] + 8009430: 4b1b ldr r3, [pc, #108] ; (80094a0 ) + 8009432: 685b ldr r3, [r3, #4] + 8009434: 60fb str r3, [r7, #12] (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos)) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != ((((RCC_OscInitStruct->PLL.PLLP) >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos)) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) #else if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8009432: 687b ldr r3, [r7, #4] - 8009434: 699b ldr r3, [r3, #24] - 8009436: 2b01 cmp r3, #1 - 8009438: d028 beq.n 800948c + 8009436: 687b ldr r3, [r7, #4] + 8009438: 699b ldr r3, [r3, #24] + 800943a: 2b01 cmp r3, #1 + 800943c: d028 beq.n 8009490 (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800943a: 68fb ldr r3, [r7, #12] - 800943c: f403 0280 and.w r2, r3, #4194304 ; 0x400000 - 8009440: 687b ldr r3, [r7, #4] - 8009442: 69db ldr r3, [r3, #28] + 800943e: 68fb ldr r3, [r7, #12] + 8009440: f403 0280 and.w r2, r3, #4194304 ; 0x400000 + 8009444: 687b ldr r3, [r7, #4] + 8009446: 69db ldr r3, [r3, #28] if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8009444: 429a cmp r2, r3 - 8009446: d121 bne.n 800948c + 8009448: 429a cmp r2, r3 + 800944a: d121 bne.n 8009490 (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != RCC_OscInitStruct->PLL.PLLM) || - 8009448: 68fb ldr r3, [r7, #12] - 800944a: f003 023f and.w r2, r3, #63 ; 0x3f - 800944e: 687b ldr r3, [r7, #4] - 8009450: 6a1b ldr r3, [r3, #32] + 800944c: 68fb ldr r3, [r7, #12] + 800944e: f003 023f and.w r2, r3, #63 ; 0x3f + 8009452: 687b ldr r3, [r7, #4] + 8009454: 6a1b ldr r3, [r3, #32] (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8009452: 429a cmp r2, r3 - 8009454: d11a bne.n 800948c + 8009456: 429a cmp r2, r3 + 8009458: d11a bne.n 8009490 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos)) || - 8009456: 68fa ldr r2, [r7, #12] - 8009458: f647 73c0 movw r3, #32704 ; 0x7fc0 - 800945c: 4013 ands r3, r2 - 800945e: 687a ldr r2, [r7, #4] - 8009460: 6a52 ldr r2, [r2, #36] ; 0x24 - 8009462: 0192 lsls r2, r2, #6 + 800945a: 68fa ldr r2, [r7, #12] + 800945c: f647 73c0 movw r3, #32704 ; 0x7fc0 + 8009460: 4013 ands r3, r2 + 8009462: 687a ldr r2, [r7, #4] + 8009464: 6a52 ldr r2, [r2, #36] ; 0x24 + 8009466: 0192 lsls r2, r2, #6 (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != RCC_OscInitStruct->PLL.PLLM) || - 8009464: 4293 cmp r3, r2 - 8009466: d111 bne.n 800948c + 8009468: 4293 cmp r3, r2 + 800946a: d111 bne.n 8009490 (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != ((((RCC_OscInitStruct->PLL.PLLP) >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos)) || - 8009468: 68fb ldr r3, [r7, #12] - 800946a: f403 3240 and.w r2, r3, #196608 ; 0x30000 - 800946e: 687b ldr r3, [r7, #4] - 8009470: 6a9b ldr r3, [r3, #40] ; 0x28 - 8009472: 085b lsrs r3, r3, #1 - 8009474: 3b01 subs r3, #1 - 8009476: 041b lsls r3, r3, #16 + 800946c: 68fb ldr r3, [r7, #12] + 800946e: f403 3240 and.w r2, r3, #196608 ; 0x30000 + 8009472: 687b ldr r3, [r7, #4] + 8009474: 6a9b ldr r3, [r3, #40] ; 0x28 + 8009476: 085b lsrs r3, r3, #1 + 8009478: 3b01 subs r3, #1 + 800947a: 041b lsls r3, r3, #16 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos)) || - 8009478: 429a cmp r2, r3 - 800947a: d107 bne.n 800948c + 800947c: 429a cmp r2, r3 + 800947e: d107 bne.n 8009490 (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos))) - 800947c: 68fb ldr r3, [r7, #12] - 800947e: f003 6270 and.w r2, r3, #251658240 ; 0xf000000 - 8009482: 687b ldr r3, [r7, #4] - 8009484: 6adb ldr r3, [r3, #44] ; 0x2c - 8009486: 061b lsls r3, r3, #24 + 8009480: 68fb ldr r3, [r7, #12] + 8009482: f003 6270 and.w r2, r3, #251658240 ; 0xf000000 + 8009486: 687b ldr r3, [r7, #4] + 8009488: 6adb ldr r3, [r3, #44] ; 0x2c + 800948a: 061b lsls r3, r3, #24 (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != ((((RCC_OscInitStruct->PLL.PLLP) >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos)) || - 8009488: 429a cmp r2, r3 - 800948a: d001 beq.n 8009490 + 800948c: 429a cmp r2, r3 + 800948e: d001 beq.n 8009494 #endif { return HAL_ERROR; - 800948c: 2301 movs r3, #1 - 800948e: e000 b.n 8009492 + 8009490: 2301 movs r3, #1 + 8009492: e000 b.n 8009496 } } } return HAL_OK; - 8009490: 2300 movs r3, #0 + 8009494: 2300 movs r3, #0 } - 8009492: 4618 mov r0, r3 - 8009494: 3718 adds r7, #24 - 8009496: 46bd mov sp, r7 - 8009498: bd80 pop {r7, pc} - 800949a: bf00 nop - 800949c: 40023800 .word 0x40023800 + 8009496: 4618 mov r0, r3 + 8009498: 3718 adds r7, #24 + 800949a: 46bd mov sp, r7 + 800949c: bd80 pop {r7, pc} + 800949e: bf00 nop + 80094a0: 40023800 .word 0x40023800 -080094a0 : +080094a4 : * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency * (for more details refer to section above "Initialization/de-initialization functions") * @retval None */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 80094a0: b580 push {r7, lr} - 80094a2: b084 sub sp, #16 - 80094a4: af00 add r7, sp, #0 - 80094a6: 6078 str r0, [r7, #4] - 80094a8: 6039 str r1, [r7, #0] + 80094a4: b580 push {r7, lr} + 80094a6: b084 sub sp, #16 + 80094a8: af00 add r7, sp, #0 + 80094aa: 6078 str r0, [r7, #4] + 80094ac: 6039 str r1, [r7, #0] uint32_t tickstart = 0; - 80094aa: 2300 movs r3, #0 - 80094ac: 60fb str r3, [r7, #12] + 80094ae: 2300 movs r3, #0 + 80094b0: 60fb str r3, [r7, #12] /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 80094ae: 687b ldr r3, [r7, #4] - 80094b0: 2b00 cmp r3, #0 - 80094b2: d101 bne.n 80094b8 + 80094b2: 687b ldr r3, [r7, #4] + 80094b4: 2b00 cmp r3, #0 + 80094b6: d101 bne.n 80094bc { return HAL_ERROR; - 80094b4: 2301 movs r3, #1 - 80094b6: e0d0 b.n 800965a + 80094b8: 2301 movs r3, #1 + 80094ba: e0d0 b.n 800965e /* To correctly read data from FLASH memory, the number of wait states (LATENCY) must be correctly programmed according to the frequency of the CPU clock (HCLK) and the supply voltage of the device. */ /* Increasing the CPU frequency */ if (FLatency > __HAL_FLASH_GET_LATENCY()) - 80094b8: 4b6a ldr r3, [pc, #424] ; (8009664 ) - 80094ba: 681b ldr r3, [r3, #0] - 80094bc: f003 030f and.w r3, r3, #15 - 80094c0: 683a ldr r2, [r7, #0] - 80094c2: 429a cmp r2, r3 - 80094c4: d910 bls.n 80094e8 + 80094bc: 4b6a ldr r3, [pc, #424] ; (8009668 ) + 80094be: 681b ldr r3, [r3, #0] + 80094c0: f003 030f and.w r3, r3, #15 + 80094c4: 683a ldr r2, [r7, #0] + 80094c6: 429a cmp r2, r3 + 80094c8: d910 bls.n 80094ec { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80094c6: 4b67 ldr r3, [pc, #412] ; (8009664 ) - 80094c8: 681b ldr r3, [r3, #0] - 80094ca: f023 020f bic.w r2, r3, #15 - 80094ce: 4965 ldr r1, [pc, #404] ; (8009664 ) - 80094d0: 683b ldr r3, [r7, #0] - 80094d2: 4313 orrs r3, r2 - 80094d4: 600b str r3, [r1, #0] + 80094ca: 4b67 ldr r3, [pc, #412] ; (8009668 ) + 80094cc: 681b ldr r3, [r3, #0] + 80094ce: f023 020f bic.w r2, r3, #15 + 80094d2: 4965 ldr r1, [pc, #404] ; (8009668 ) + 80094d4: 683b ldr r3, [r7, #0] + 80094d6: 4313 orrs r3, r2 + 80094d8: 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) - 80094d6: 4b63 ldr r3, [pc, #396] ; (8009664 ) - 80094d8: 681b ldr r3, [r3, #0] - 80094da: f003 030f and.w r3, r3, #15 - 80094de: 683a ldr r2, [r7, #0] - 80094e0: 429a cmp r2, r3 - 80094e2: d001 beq.n 80094e8 + 80094da: 4b63 ldr r3, [pc, #396] ; (8009668 ) + 80094dc: 681b ldr r3, [r3, #0] + 80094de: f003 030f and.w r3, r3, #15 + 80094e2: 683a ldr r2, [r7, #0] + 80094e4: 429a cmp r2, r3 + 80094e6: d001 beq.n 80094ec { return HAL_ERROR; - 80094e4: 2301 movs r3, #1 - 80094e6: e0b8 b.n 800965a + 80094e8: 2301 movs r3, #1 + 80094ea: e0b8 b.n 800965e } } /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 80094e8: 687b ldr r3, [r7, #4] - 80094ea: 681b ldr r3, [r3, #0] - 80094ec: f003 0302 and.w r3, r3, #2 - 80094f0: 2b00 cmp r3, #0 - 80094f2: d020 beq.n 8009536 + 80094ec: 687b ldr r3, [r7, #4] + 80094ee: 681b ldr r3, [r3, #0] + 80094f0: f003 0302 and.w r3, r3, #2 + 80094f4: 2b00 cmp r3, #0 + 80094f6: d020 beq.n 800953a { /* 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) - 80094f4: 687b ldr r3, [r7, #4] - 80094f6: 681b ldr r3, [r3, #0] - 80094f8: f003 0304 and.w r3, r3, #4 - 80094fc: 2b00 cmp r3, #0 - 80094fe: d005 beq.n 800950c + 80094f8: 687b ldr r3, [r7, #4] + 80094fa: 681b ldr r3, [r3, #0] + 80094fc: f003 0304 and.w r3, r3, #4 + 8009500: 2b00 cmp r3, #0 + 8009502: d005 beq.n 8009510 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 8009500: 4b59 ldr r3, [pc, #356] ; (8009668 ) - 8009502: 689b ldr r3, [r3, #8] - 8009504: 4a58 ldr r2, [pc, #352] ; (8009668 ) - 8009506: f443 53e0 orr.w r3, r3, #7168 ; 0x1c00 - 800950a: 6093 str r3, [r2, #8] + 8009504: 4b59 ldr r3, [pc, #356] ; (800966c ) + 8009506: 689b ldr r3, [r3, #8] + 8009508: 4a58 ldr r2, [pc, #352] ; (800966c ) + 800950a: f443 53e0 orr.w r3, r3, #7168 ; 0x1c00 + 800950e: 6093 str r3, [r2, #8] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 800950c: 687b ldr r3, [r7, #4] - 800950e: 681b ldr r3, [r3, #0] - 8009510: f003 0308 and.w r3, r3, #8 - 8009514: 2b00 cmp r3, #0 - 8009516: d005 beq.n 8009524 + 8009510: 687b ldr r3, [r7, #4] + 8009512: 681b ldr r3, [r3, #0] + 8009514: f003 0308 and.w r3, r3, #8 + 8009518: 2b00 cmp r3, #0 + 800951a: d005 beq.n 8009528 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 8009518: 4b53 ldr r3, [pc, #332] ; (8009668 ) - 800951a: 689b ldr r3, [r3, #8] - 800951c: 4a52 ldr r2, [pc, #328] ; (8009668 ) - 800951e: f443 4360 orr.w r3, r3, #57344 ; 0xe000 - 8009522: 6093 str r3, [r2, #8] + 800951c: 4b53 ldr r3, [pc, #332] ; (800966c ) + 800951e: 689b ldr r3, [r3, #8] + 8009520: 4a52 ldr r2, [pc, #328] ; (800966c ) + 8009522: f443 4360 orr.w r3, r3, #57344 ; 0xe000 + 8009526: 6093 str r3, [r2, #8] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8009524: 4b50 ldr r3, [pc, #320] ; (8009668 ) - 8009526: 689b ldr r3, [r3, #8] - 8009528: f023 02f0 bic.w r2, r3, #240 ; 0xf0 - 800952c: 687b ldr r3, [r7, #4] - 800952e: 689b ldr r3, [r3, #8] - 8009530: 494d ldr r1, [pc, #308] ; (8009668 ) - 8009532: 4313 orrs r3, r2 - 8009534: 608b str r3, [r1, #8] + 8009528: 4b50 ldr r3, [pc, #320] ; (800966c ) + 800952a: 689b ldr r3, [r3, #8] + 800952c: f023 02f0 bic.w r2, r3, #240 ; 0xf0 + 8009530: 687b ldr r3, [r7, #4] + 8009532: 689b ldr r3, [r3, #8] + 8009534: 494d ldr r1, [pc, #308] ; (800966c ) + 8009536: 4313 orrs r3, r2 + 8009538: 608b str r3, [r1, #8] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 8009536: 687b ldr r3, [r7, #4] - 8009538: 681b ldr r3, [r3, #0] - 800953a: f003 0301 and.w r3, r3, #1 - 800953e: 2b00 cmp r3, #0 - 8009540: d040 beq.n 80095c4 + 800953a: 687b ldr r3, [r7, #4] + 800953c: 681b ldr r3, [r3, #0] + 800953e: f003 0301 and.w r3, r3, #1 + 8009542: 2b00 cmp r3, #0 + 8009544: d040 beq.n 80095c8 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8009542: 687b ldr r3, [r7, #4] - 8009544: 685b ldr r3, [r3, #4] - 8009546: 2b01 cmp r3, #1 - 8009548: d107 bne.n 800955a + 8009546: 687b ldr r3, [r7, #4] + 8009548: 685b ldr r3, [r3, #4] + 800954a: 2b01 cmp r3, #1 + 800954c: d107 bne.n 800955e { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800954a: 4b47 ldr r3, [pc, #284] ; (8009668 ) - 800954c: 681b ldr r3, [r3, #0] - 800954e: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8009552: 2b00 cmp r3, #0 - 8009554: d115 bne.n 8009582 + 800954e: 4b47 ldr r3, [pc, #284] ; (800966c ) + 8009550: 681b ldr r3, [r3, #0] + 8009552: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8009556: 2b00 cmp r3, #0 + 8009558: d115 bne.n 8009586 { return HAL_ERROR; - 8009556: 2301 movs r3, #1 - 8009558: e07f b.n 800965a + 800955a: 2301 movs r3, #1 + 800955c: e07f b.n 800965e } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 800955a: 687b ldr r3, [r7, #4] - 800955c: 685b ldr r3, [r3, #4] - 800955e: 2b02 cmp r3, #2 - 8009560: d107 bne.n 8009572 + 800955e: 687b ldr r3, [r7, #4] + 8009560: 685b ldr r3, [r3, #4] + 8009562: 2b02 cmp r3, #2 + 8009564: d107 bne.n 8009576 { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8009562: 4b41 ldr r3, [pc, #260] ; (8009668 ) - 8009564: 681b ldr r3, [r3, #0] - 8009566: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800956a: 2b00 cmp r3, #0 - 800956c: d109 bne.n 8009582 + 8009566: 4b41 ldr r3, [pc, #260] ; (800966c ) + 8009568: 681b ldr r3, [r3, #0] + 800956a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 800956e: 2b00 cmp r3, #0 + 8009570: d109 bne.n 8009586 { return HAL_ERROR; - 800956e: 2301 movs r3, #1 - 8009570: e073 b.n 800965a + 8009572: 2301 movs r3, #1 + 8009574: e073 b.n 800965e } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8009572: 4b3d ldr r3, [pc, #244] ; (8009668 ) - 8009574: 681b ldr r3, [r3, #0] - 8009576: f003 0302 and.w r3, r3, #2 - 800957a: 2b00 cmp r3, #0 - 800957c: d101 bne.n 8009582 + 8009576: 4b3d ldr r3, [pc, #244] ; (800966c ) + 8009578: 681b ldr r3, [r3, #0] + 800957a: f003 0302 and.w r3, r3, #2 + 800957e: 2b00 cmp r3, #0 + 8009580: d101 bne.n 8009586 { return HAL_ERROR; - 800957e: 2301 movs r3, #1 - 8009580: e06b b.n 800965a + 8009582: 2301 movs r3, #1 + 8009584: e06b b.n 800965e } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 8009582: 4b39 ldr r3, [pc, #228] ; (8009668 ) - 8009584: 689b ldr r3, [r3, #8] - 8009586: f023 0203 bic.w r2, r3, #3 - 800958a: 687b ldr r3, [r7, #4] - 800958c: 685b ldr r3, [r3, #4] - 800958e: 4936 ldr r1, [pc, #216] ; (8009668 ) - 8009590: 4313 orrs r3, r2 - 8009592: 608b str r3, [r1, #8] + 8009586: 4b39 ldr r3, [pc, #228] ; (800966c ) + 8009588: 689b ldr r3, [r3, #8] + 800958a: f023 0203 bic.w r2, r3, #3 + 800958e: 687b ldr r3, [r7, #4] + 8009590: 685b ldr r3, [r3, #4] + 8009592: 4936 ldr r1, [pc, #216] ; (800966c ) + 8009594: 4313 orrs r3, r2 + 8009596: 608b str r3, [r1, #8] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009594: f7fb fc94 bl 8004ec0 - 8009598: 60f8 str r0, [r7, #12] + 8009598: f7fb fc94 bl 8004ec4 + 800959c: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 800959a: e00a b.n 80095b2 + 800959e: e00a b.n 80095b6 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 800959c: f7fb fc90 bl 8004ec0 - 80095a0: 4602 mov r2, r0 - 80095a2: 68fb ldr r3, [r7, #12] - 80095a4: 1ad3 subs r3, r2, r3 - 80095a6: f241 3288 movw r2, #5000 ; 0x1388 - 80095aa: 4293 cmp r3, r2 - 80095ac: d901 bls.n 80095b2 + 80095a0: f7fb fc90 bl 8004ec4 + 80095a4: 4602 mov r2, r0 + 80095a6: 68fb ldr r3, [r7, #12] + 80095a8: 1ad3 subs r3, r2, r3 + 80095aa: f241 3288 movw r2, #5000 ; 0x1388 + 80095ae: 4293 cmp r3, r2 + 80095b0: d901 bls.n 80095b6 { return HAL_TIMEOUT; - 80095ae: 2303 movs r3, #3 - 80095b0: e053 b.n 800965a + 80095b2: 2303 movs r3, #3 + 80095b4: e053 b.n 800965e while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80095b2: 4b2d ldr r3, [pc, #180] ; (8009668 ) - 80095b4: 689b ldr r3, [r3, #8] - 80095b6: f003 020c and.w r2, r3, #12 - 80095ba: 687b ldr r3, [r7, #4] - 80095bc: 685b ldr r3, [r3, #4] - 80095be: 009b lsls r3, r3, #2 - 80095c0: 429a cmp r2, r3 - 80095c2: d1eb bne.n 800959c + 80095b6: 4b2d ldr r3, [pc, #180] ; (800966c ) + 80095b8: 689b ldr r3, [r3, #8] + 80095ba: f003 020c and.w r2, r3, #12 + 80095be: 687b ldr r3, [r7, #4] + 80095c0: 685b ldr r3, [r3, #4] + 80095c2: 009b lsls r3, r3, #2 + 80095c4: 429a cmp r2, r3 + 80095c6: d1eb bne.n 80095a0 } } } /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 80095c4: 4b27 ldr r3, [pc, #156] ; (8009664 ) - 80095c6: 681b ldr r3, [r3, #0] - 80095c8: f003 030f and.w r3, r3, #15 - 80095cc: 683a ldr r2, [r7, #0] - 80095ce: 429a cmp r2, r3 - 80095d0: d210 bcs.n 80095f4 + 80095c8: 4b27 ldr r3, [pc, #156] ; (8009668 ) + 80095ca: 681b ldr r3, [r3, #0] + 80095cc: f003 030f and.w r3, r3, #15 + 80095d0: 683a ldr r2, [r7, #0] + 80095d2: 429a cmp r2, r3 + 80095d4: d210 bcs.n 80095f8 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80095d2: 4b24 ldr r3, [pc, #144] ; (8009664 ) - 80095d4: 681b ldr r3, [r3, #0] - 80095d6: f023 020f bic.w r2, r3, #15 - 80095da: 4922 ldr r1, [pc, #136] ; (8009664 ) - 80095dc: 683b ldr r3, [r7, #0] - 80095de: 4313 orrs r3, r2 - 80095e0: 600b str r3, [r1, #0] + 80095d6: 4b24 ldr r3, [pc, #144] ; (8009668 ) + 80095d8: 681b ldr r3, [r3, #0] + 80095da: f023 020f bic.w r2, r3, #15 + 80095de: 4922 ldr r1, [pc, #136] ; (8009668 ) + 80095e0: 683b ldr r3, [r7, #0] + 80095e2: 4313 orrs r3, r2 + 80095e4: 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) - 80095e2: 4b20 ldr r3, [pc, #128] ; (8009664 ) - 80095e4: 681b ldr r3, [r3, #0] - 80095e6: f003 030f and.w r3, r3, #15 - 80095ea: 683a ldr r2, [r7, #0] - 80095ec: 429a cmp r2, r3 - 80095ee: d001 beq.n 80095f4 + 80095e6: 4b20 ldr r3, [pc, #128] ; (8009668 ) + 80095e8: 681b ldr r3, [r3, #0] + 80095ea: f003 030f and.w r3, r3, #15 + 80095ee: 683a ldr r2, [r7, #0] + 80095f0: 429a cmp r2, r3 + 80095f2: d001 beq.n 80095f8 { return HAL_ERROR; - 80095f0: 2301 movs r3, #1 - 80095f2: e032 b.n 800965a + 80095f4: 2301 movs r3, #1 + 80095f6: e032 b.n 800965e } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 80095f4: 687b ldr r3, [r7, #4] - 80095f6: 681b ldr r3, [r3, #0] - 80095f8: f003 0304 and.w r3, r3, #4 - 80095fc: 2b00 cmp r3, #0 - 80095fe: d008 beq.n 8009612 + 80095f8: 687b ldr r3, [r7, #4] + 80095fa: 681b ldr r3, [r3, #0] + 80095fc: f003 0304 and.w r3, r3, #4 + 8009600: 2b00 cmp r3, #0 + 8009602: d008 beq.n 8009616 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 8009600: 4b19 ldr r3, [pc, #100] ; (8009668 ) - 8009602: 689b ldr r3, [r3, #8] - 8009604: f423 52e0 bic.w r2, r3, #7168 ; 0x1c00 - 8009608: 687b ldr r3, [r7, #4] - 800960a: 68db ldr r3, [r3, #12] - 800960c: 4916 ldr r1, [pc, #88] ; (8009668 ) - 800960e: 4313 orrs r3, r2 - 8009610: 608b str r3, [r1, #8] + 8009604: 4b19 ldr r3, [pc, #100] ; (800966c ) + 8009606: 689b ldr r3, [r3, #8] + 8009608: f423 52e0 bic.w r2, r3, #7168 ; 0x1c00 + 800960c: 687b ldr r3, [r7, #4] + 800960e: 68db ldr r3, [r3, #12] + 8009610: 4916 ldr r1, [pc, #88] ; (800966c ) + 8009612: 4313 orrs r3, r2 + 8009614: 608b str r3, [r1, #8] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8009612: 687b ldr r3, [r7, #4] - 8009614: 681b ldr r3, [r3, #0] - 8009616: f003 0308 and.w r3, r3, #8 - 800961a: 2b00 cmp r3, #0 - 800961c: d009 beq.n 8009632 + 8009616: 687b ldr r3, [r7, #4] + 8009618: 681b ldr r3, [r3, #0] + 800961a: f003 0308 and.w r3, r3, #8 + 800961e: 2b00 cmp r3, #0 + 8009620: d009 beq.n 8009636 { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); - 800961e: 4b12 ldr r3, [pc, #72] ; (8009668 ) - 8009620: 689b ldr r3, [r3, #8] - 8009622: f423 4260 bic.w r2, r3, #57344 ; 0xe000 - 8009626: 687b ldr r3, [r7, #4] - 8009628: 691b ldr r3, [r3, #16] - 800962a: 00db lsls r3, r3, #3 - 800962c: 490e ldr r1, [pc, #56] ; (8009668 ) - 800962e: 4313 orrs r3, r2 - 8009630: 608b str r3, [r1, #8] + 8009622: 4b12 ldr r3, [pc, #72] ; (800966c ) + 8009624: 689b ldr r3, [r3, #8] + 8009626: f423 4260 bic.w r2, r3, #57344 ; 0xe000 + 800962a: 687b ldr r3, [r7, #4] + 800962c: 691b ldr r3, [r3, #16] + 800962e: 00db lsls r3, r3, #3 + 8009630: 490e ldr r1, [pc, #56] ; (800966c ) + 8009632: 4313 orrs r3, r2 + 8009634: 608b str r3, [r1, #8] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 8009632: f000 f821 bl 8009678 - 8009636: 4601 mov r1, r0 - 8009638: 4b0b ldr r3, [pc, #44] ; (8009668 ) - 800963a: 689b ldr r3, [r3, #8] - 800963c: 091b lsrs r3, r3, #4 - 800963e: f003 030f and.w r3, r3, #15 - 8009642: 4a0a ldr r2, [pc, #40] ; (800966c ) - 8009644: 5cd3 ldrb r3, [r2, r3] - 8009646: fa21 f303 lsr.w r3, r1, r3 - 800964a: 4a09 ldr r2, [pc, #36] ; (8009670 ) - 800964c: 6013 str r3, [r2, #0] + 8009636: f000 f821 bl 800967c + 800963a: 4601 mov r1, r0 + 800963c: 4b0b ldr r3, [pc, #44] ; (800966c ) + 800963e: 689b ldr r3, [r3, #8] + 8009640: 091b lsrs r3, r3, #4 + 8009642: f003 030f and.w r3, r3, #15 + 8009646: 4a0a ldr r2, [pc, #40] ; (8009670 ) + 8009648: 5cd3 ldrb r3, [r2, r3] + 800964a: fa21 f303 lsr.w r3, r1, r3 + 800964e: 4a09 ldr r2, [pc, #36] ; (8009674 ) + 8009650: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); - 800964e: 4b09 ldr r3, [pc, #36] ; (8009674 ) - 8009650: 681b ldr r3, [r3, #0] - 8009652: 4618 mov r0, r3 - 8009654: f7fb fa9e bl 8004b94 + 8009652: 4b09 ldr r3, [pc, #36] ; (8009678 ) + 8009654: 681b ldr r3, [r3, #0] + 8009656: 4618 mov r0, r3 + 8009658: f7fb fa9e bl 8004b98 return HAL_OK; - 8009658: 2300 movs r3, #0 -} - 800965a: 4618 mov r0, r3 - 800965c: 3710 adds r7, #16 - 800965e: 46bd mov sp, r7 - 8009660: bd80 pop {r7, pc} - 8009662: bf00 nop - 8009664: 40023c00 .word 0x40023c00 - 8009668: 40023800 .word 0x40023800 - 800966c: 080226b8 .word 0x080226b8 - 8009670: 20000058 .word 0x20000058 - 8009674: 2000005c .word 0x2000005c - -08009678 : + 800965c: 2300 movs r3, #0 +} + 800965e: 4618 mov r0, r3 + 8009660: 3710 adds r7, #16 + 8009662: 46bd mov sp, r7 + 8009664: bd80 pop {r7, pc} + 8009666: bf00 nop + 8009668: 40023c00 .word 0x40023c00 + 800966c: 40023800 .word 0x40023800 + 8009670: 080226c8 .word 0x080226c8 + 8009674: 20000058 .word 0x20000058 + 8009678: 2000005c .word 0x2000005c + +0800967c : * * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8009678: b5f0 push {r4, r5, r6, r7, lr} - 800967a: b085 sub sp, #20 - 800967c: af00 add r7, sp, #0 + 800967c: b5f0 push {r4, r5, r6, r7, lr} + 800967e: b085 sub sp, #20 + 8009680: af00 add r7, sp, #0 uint32_t pllm = 0, pllvco = 0, pllp = 0; - 800967e: 2300 movs r3, #0 - 8009680: 607b str r3, [r7, #4] 8009682: 2300 movs r3, #0 - 8009684: 60fb str r3, [r7, #12] + 8009684: 607b str r3, [r7, #4] 8009686: 2300 movs r3, #0 - 8009688: 603b str r3, [r7, #0] - uint32_t sysclockfreq = 0; + 8009688: 60fb str r3, [r7, #12] 800968a: 2300 movs r3, #0 - 800968c: 60bb str r3, [r7, #8] + 800968c: 603b str r3, [r7, #0] + uint32_t sysclockfreq = 0; + 800968e: 2300 movs r3, #0 + 8009690: 60bb str r3, [r7, #8] /* Get SYSCLK source -------------------------------------------------------*/ switch (RCC->CFGR & RCC_CFGR_SWS) - 800968e: 4b50 ldr r3, [pc, #320] ; (80097d0 ) - 8009690: 689b ldr r3, [r3, #8] - 8009692: f003 030c and.w r3, r3, #12 - 8009696: 2b04 cmp r3, #4 - 8009698: d007 beq.n 80096aa - 800969a: 2b08 cmp r3, #8 - 800969c: d008 beq.n 80096b0 - 800969e: 2b00 cmp r3, #0 - 80096a0: f040 808d bne.w 80097be + 8009692: 4b50 ldr r3, [pc, #320] ; (80097d4 ) + 8009694: 689b ldr r3, [r3, #8] + 8009696: f003 030c and.w r3, r3, #12 + 800969a: 2b04 cmp r3, #4 + 800969c: d007 beq.n 80096ae + 800969e: 2b08 cmp r3, #8 + 80096a0: d008 beq.n 80096b4 + 80096a2: 2b00 cmp r3, #0 + 80096a4: f040 808d bne.w 80097c2 { case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ { sysclockfreq = HSI_VALUE; - 80096a4: 4b4b ldr r3, [pc, #300] ; (80097d4 ) - 80096a6: 60bb str r3, [r7, #8] + 80096a8: 4b4b ldr r3, [pc, #300] ; (80097d8 ) + 80096aa: 60bb str r3, [r7, #8] break; - 80096a8: e08c b.n 80097c4 + 80096ac: e08c b.n 80097c8 } case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock source */ { sysclockfreq = HSE_VALUE; - 80096aa: 4b4b ldr r3, [pc, #300] ; (80097d8 ) - 80096ac: 60bb str r3, [r7, #8] + 80096ae: 4b4b ldr r3, [pc, #300] ; (80097dc ) + 80096b0: 60bb str r3, [r7, #8] break; - 80096ae: e089 b.n 80097c4 + 80096b2: e089 b.n 80097c8 } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLP */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; - 80096b0: 4b47 ldr r3, [pc, #284] ; (80097d0 ) - 80096b2: 685b ldr r3, [r3, #4] - 80096b4: f003 033f and.w r3, r3, #63 ; 0x3f - 80096b8: 607b str r3, [r7, #4] + 80096b4: 4b47 ldr r3, [pc, #284] ; (80097d4 ) + 80096b6: 685b ldr r3, [r3, #4] + 80096b8: f003 033f and.w r3, r3, #63 ; 0x3f + 80096bc: 607b str r3, [r7, #4] if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLCFGR_PLLSRC_HSI) - 80096ba: 4b45 ldr r3, [pc, #276] ; (80097d0 ) - 80096bc: 685b ldr r3, [r3, #4] - 80096be: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 80096c2: 2b00 cmp r3, #0 - 80096c4: d023 beq.n 800970e + 80096be: 4b45 ldr r3, [pc, #276] ; (80097d4 ) + 80096c0: 685b ldr r3, [r3, #4] + 80096c2: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 80096c6: 2b00 cmp r3, #0 + 80096c8: d023 beq.n 8009712 { /* HSE used as PLL clock source */ pllvco = (uint32_t)((((uint64_t) HSE_VALUE * ((uint64_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 80096c6: 4b42 ldr r3, [pc, #264] ; (80097d0 ) - 80096c8: 685b ldr r3, [r3, #4] - 80096ca: 099b lsrs r3, r3, #6 - 80096cc: f04f 0400 mov.w r4, #0 - 80096d0: f240 11ff movw r1, #511 ; 0x1ff - 80096d4: f04f 0200 mov.w r2, #0 - 80096d8: ea03 0501 and.w r5, r3, r1 - 80096dc: ea04 0602 and.w r6, r4, r2 - 80096e0: 4a3d ldr r2, [pc, #244] ; (80097d8 ) - 80096e2: fb02 f106 mul.w r1, r2, r6 - 80096e6: 2200 movs r2, #0 - 80096e8: fb02 f205 mul.w r2, r2, r5 - 80096ec: 440a add r2, r1 - 80096ee: 493a ldr r1, [pc, #232] ; (80097d8 ) - 80096f0: fba5 0101 umull r0, r1, r5, r1 - 80096f4: 1853 adds r3, r2, r1 - 80096f6: 4619 mov r1, r3 - 80096f8: 687b ldr r3, [r7, #4] - 80096fa: f04f 0400 mov.w r4, #0 - 80096fe: 461a mov r2, r3 - 8009700: 4623 mov r3, r4 - 8009702: f7f6 fdd5 bl 80002b0 <__aeabi_uldivmod> - 8009706: 4603 mov r3, r0 - 8009708: 460c mov r4, r1 - 800970a: 60fb str r3, [r7, #12] - 800970c: e049 b.n 80097a2 + 80096ca: 4b42 ldr r3, [pc, #264] ; (80097d4 ) + 80096cc: 685b ldr r3, [r3, #4] + 80096ce: 099b lsrs r3, r3, #6 + 80096d0: f04f 0400 mov.w r4, #0 + 80096d4: f240 11ff movw r1, #511 ; 0x1ff + 80096d8: f04f 0200 mov.w r2, #0 + 80096dc: ea03 0501 and.w r5, r3, r1 + 80096e0: ea04 0602 and.w r6, r4, r2 + 80096e4: 4a3d ldr r2, [pc, #244] ; (80097dc ) + 80096e6: fb02 f106 mul.w r1, r2, r6 + 80096ea: 2200 movs r2, #0 + 80096ec: fb02 f205 mul.w r2, r2, r5 + 80096f0: 440a add r2, r1 + 80096f2: 493a ldr r1, [pc, #232] ; (80097dc ) + 80096f4: fba5 0101 umull r0, r1, r5, r1 + 80096f8: 1853 adds r3, r2, r1 + 80096fa: 4619 mov r1, r3 + 80096fc: 687b ldr r3, [r7, #4] + 80096fe: f04f 0400 mov.w r4, #0 + 8009702: 461a mov r2, r3 + 8009704: 4623 mov r3, r4 + 8009706: f7f6 fdd3 bl 80002b0 <__aeabi_uldivmod> + 800970a: 4603 mov r3, r0 + 800970c: 460c mov r4, r1 + 800970e: 60fb str r3, [r7, #12] + 8009710: e049 b.n 80097a6 } else { /* HSI used as PLL clock source */ pllvco = (uint32_t)((((uint64_t) HSI_VALUE * ((uint64_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 800970e: 4b30 ldr r3, [pc, #192] ; (80097d0 ) - 8009710: 685b ldr r3, [r3, #4] - 8009712: 099b lsrs r3, r3, #6 - 8009714: f04f 0400 mov.w r4, #0 - 8009718: f240 11ff movw r1, #511 ; 0x1ff - 800971c: f04f 0200 mov.w r2, #0 - 8009720: ea03 0501 and.w r5, r3, r1 - 8009724: ea04 0602 and.w r6, r4, r2 - 8009728: 4629 mov r1, r5 - 800972a: 4632 mov r2, r6 - 800972c: f04f 0300 mov.w r3, #0 - 8009730: f04f 0400 mov.w r4, #0 - 8009734: 0154 lsls r4, r2, #5 - 8009736: ea44 64d1 orr.w r4, r4, r1, lsr #27 - 800973a: 014b lsls r3, r1, #5 - 800973c: 4619 mov r1, r3 - 800973e: 4622 mov r2, r4 - 8009740: 1b49 subs r1, r1, r5 - 8009742: eb62 0206 sbc.w r2, r2, r6 - 8009746: f04f 0300 mov.w r3, #0 - 800974a: f04f 0400 mov.w r4, #0 - 800974e: 0194 lsls r4, r2, #6 - 8009750: ea44 6491 orr.w r4, r4, r1, lsr #26 - 8009754: 018b lsls r3, r1, #6 - 8009756: 1a5b subs r3, r3, r1 - 8009758: eb64 0402 sbc.w r4, r4, r2 - 800975c: f04f 0100 mov.w r1, #0 - 8009760: f04f 0200 mov.w r2, #0 - 8009764: 00e2 lsls r2, r4, #3 - 8009766: ea42 7253 orr.w r2, r2, r3, lsr #29 - 800976a: 00d9 lsls r1, r3, #3 - 800976c: 460b mov r3, r1 - 800976e: 4614 mov r4, r2 - 8009770: 195b adds r3, r3, r5 - 8009772: eb44 0406 adc.w r4, r4, r6 - 8009776: f04f 0100 mov.w r1, #0 - 800977a: f04f 0200 mov.w r2, #0 - 800977e: 02a2 lsls r2, r4, #10 - 8009780: ea42 5293 orr.w r2, r2, r3, lsr #22 - 8009784: 0299 lsls r1, r3, #10 - 8009786: 460b mov r3, r1 - 8009788: 4614 mov r4, r2 - 800978a: 4618 mov r0, r3 - 800978c: 4621 mov r1, r4 - 800978e: 687b ldr r3, [r7, #4] - 8009790: f04f 0400 mov.w r4, #0 - 8009794: 461a mov r2, r3 - 8009796: 4623 mov r3, r4 - 8009798: f7f6 fd8a bl 80002b0 <__aeabi_uldivmod> - 800979c: 4603 mov r3, r0 - 800979e: 460c mov r4, r1 - 80097a0: 60fb str r3, [r7, #12] + 8009712: 4b30 ldr r3, [pc, #192] ; (80097d4 ) + 8009714: 685b ldr r3, [r3, #4] + 8009716: 099b lsrs r3, r3, #6 + 8009718: f04f 0400 mov.w r4, #0 + 800971c: f240 11ff movw r1, #511 ; 0x1ff + 8009720: f04f 0200 mov.w r2, #0 + 8009724: ea03 0501 and.w r5, r3, r1 + 8009728: ea04 0602 and.w r6, r4, r2 + 800972c: 4629 mov r1, r5 + 800972e: 4632 mov r2, r6 + 8009730: f04f 0300 mov.w r3, #0 + 8009734: f04f 0400 mov.w r4, #0 + 8009738: 0154 lsls r4, r2, #5 + 800973a: ea44 64d1 orr.w r4, r4, r1, lsr #27 + 800973e: 014b lsls r3, r1, #5 + 8009740: 4619 mov r1, r3 + 8009742: 4622 mov r2, r4 + 8009744: 1b49 subs r1, r1, r5 + 8009746: eb62 0206 sbc.w r2, r2, r6 + 800974a: f04f 0300 mov.w r3, #0 + 800974e: f04f 0400 mov.w r4, #0 + 8009752: 0194 lsls r4, r2, #6 + 8009754: ea44 6491 orr.w r4, r4, r1, lsr #26 + 8009758: 018b lsls r3, r1, #6 + 800975a: 1a5b subs r3, r3, r1 + 800975c: eb64 0402 sbc.w r4, r4, r2 + 8009760: f04f 0100 mov.w r1, #0 + 8009764: f04f 0200 mov.w r2, #0 + 8009768: 00e2 lsls r2, r4, #3 + 800976a: ea42 7253 orr.w r2, r2, r3, lsr #29 + 800976e: 00d9 lsls r1, r3, #3 + 8009770: 460b mov r3, r1 + 8009772: 4614 mov r4, r2 + 8009774: 195b adds r3, r3, r5 + 8009776: eb44 0406 adc.w r4, r4, r6 + 800977a: f04f 0100 mov.w r1, #0 + 800977e: f04f 0200 mov.w r2, #0 + 8009782: 02a2 lsls r2, r4, #10 + 8009784: ea42 5293 orr.w r2, r2, r3, lsr #22 + 8009788: 0299 lsls r1, r3, #10 + 800978a: 460b mov r3, r1 + 800978c: 4614 mov r4, r2 + 800978e: 4618 mov r0, r3 + 8009790: 4621 mov r1, r4 + 8009792: 687b ldr r3, [r7, #4] + 8009794: f04f 0400 mov.w r4, #0 + 8009798: 461a mov r2, r3 + 800979a: 4623 mov r3, r4 + 800979c: f7f6 fd88 bl 80002b0 <__aeabi_uldivmod> + 80097a0: 4603 mov r3, r0 + 80097a2: 460c mov r4, r1 + 80097a4: 60fb str r3, [r7, #12] } pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1) * 2); - 80097a2: 4b0b ldr r3, [pc, #44] ; (80097d0 ) - 80097a4: 685b ldr r3, [r3, #4] - 80097a6: 0c1b lsrs r3, r3, #16 - 80097a8: f003 0303 and.w r3, r3, #3 - 80097ac: 3301 adds r3, #1 - 80097ae: 005b lsls r3, r3, #1 - 80097b0: 603b str r3, [r7, #0] + 80097a6: 4b0b ldr r3, [pc, #44] ; (80097d4 ) + 80097a8: 685b ldr r3, [r3, #4] + 80097aa: 0c1b lsrs r3, r3, #16 + 80097ac: f003 0303 and.w r3, r3, #3 + 80097b0: 3301 adds r3, #1 + 80097b2: 005b lsls r3, r3, #1 + 80097b4: 603b str r3, [r7, #0] sysclockfreq = pllvco / pllp; - 80097b2: 68fa ldr r2, [r7, #12] - 80097b4: 683b ldr r3, [r7, #0] - 80097b6: fbb2 f3f3 udiv r3, r2, r3 - 80097ba: 60bb str r3, [r7, #8] + 80097b6: 68fa ldr r2, [r7, #12] + 80097b8: 683b ldr r3, [r7, #0] + 80097ba: fbb2 f3f3 udiv r3, r2, r3 + 80097be: 60bb str r3, [r7, #8] break; - 80097bc: e002 b.n 80097c4 + 80097c0: e002 b.n 80097c8 } default: { sysclockfreq = HSI_VALUE; - 80097be: 4b05 ldr r3, [pc, #20] ; (80097d4 ) - 80097c0: 60bb str r3, [r7, #8] + 80097c2: 4b05 ldr r3, [pc, #20] ; (80097d8 ) + 80097c4: 60bb str r3, [r7, #8] break; - 80097c2: bf00 nop + 80097c6: bf00 nop } } return sysclockfreq; - 80097c4: 68bb ldr r3, [r7, #8] -} - 80097c6: 4618 mov r0, r3 - 80097c8: 3714 adds r7, #20 - 80097ca: 46bd mov sp, r7 - 80097cc: bdf0 pop {r4, r5, r6, r7, pc} - 80097ce: bf00 nop - 80097d0: 40023800 .word 0x40023800 - 80097d4: 00f42400 .word 0x00f42400 - 80097d8: 017d7840 .word 0x017d7840 - -080097dc : + 80097c8: 68bb ldr r3, [r7, #8] +} + 80097ca: 4618 mov r0, r3 + 80097cc: 3714 adds r7, #20 + 80097ce: 46bd mov sp, r7 + 80097d0: bdf0 pop {r4, r5, r6, r7, pc} + 80097d2: bf00 nop + 80097d4: 40023800 .word 0x40023800 + 80097d8: 00f42400 .word 0x00f42400 + 80097dc: 017d7840 .word 0x017d7840 + +080097e0 : * right HCLK value. Otherwise, any configuration based on this function will be incorrect. * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency. * @retval HCLK frequency */ uint32_t HAL_RCC_GetHCLKFreq(void) { - 80097dc: b480 push {r7} - 80097de: af00 add r7, sp, #0 + 80097e0: b480 push {r7} + 80097e2: af00 add r7, sp, #0 return SystemCoreClock; - 80097e0: 4b03 ldr r3, [pc, #12] ; (80097f0 ) - 80097e2: 681b ldr r3, [r3, #0] + 80097e4: 4b03 ldr r3, [pc, #12] ; (80097f4 ) + 80097e6: 681b ldr r3, [r3, #0] } - 80097e4: 4618 mov r0, r3 - 80097e6: 46bd mov sp, r7 - 80097e8: f85d 7b04 ldr.w r7, [sp], #4 - 80097ec: 4770 bx lr - 80097ee: bf00 nop - 80097f0: 20000058 .word 0x20000058 + 80097e8: 4618 mov r0, r3 + 80097ea: 46bd mov sp, r7 + 80097ec: f85d 7b04 ldr.w r7, [sp], #4 + 80097f0: 4770 bx lr + 80097f2: bf00 nop + 80097f4: 20000058 .word 0x20000058 -080097f4 : +080097f8 : * @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) { - 80097f4: b580 push {r7, lr} - 80097f6: af00 add r7, sp, #0 + 80097f8: b580 push {r7, lr} + 80097fa: 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]); - 80097f8: f7ff fff0 bl 80097dc - 80097fc: 4601 mov r1, r0 - 80097fe: 4b05 ldr r3, [pc, #20] ; (8009814 ) - 8009800: 689b ldr r3, [r3, #8] - 8009802: 0a9b lsrs r3, r3, #10 - 8009804: f003 0307 and.w r3, r3, #7 - 8009808: 4a03 ldr r2, [pc, #12] ; (8009818 ) - 800980a: 5cd3 ldrb r3, [r2, r3] - 800980c: fa21 f303 lsr.w r3, r1, r3 -} - 8009810: 4618 mov r0, r3 - 8009812: bd80 pop {r7, pc} - 8009814: 40023800 .word 0x40023800 - 8009818: 080226c8 .word 0x080226c8 - -0800981c : + 80097fc: f7ff fff0 bl 80097e0 + 8009800: 4601 mov r1, r0 + 8009802: 4b05 ldr r3, [pc, #20] ; (8009818 ) + 8009804: 689b ldr r3, [r3, #8] + 8009806: 0a9b lsrs r3, r3, #10 + 8009808: f003 0307 and.w r3, r3, #7 + 800980c: 4a03 ldr r2, [pc, #12] ; (800981c ) + 800980e: 5cd3 ldrb r3, [r2, r3] + 8009810: fa21 f303 lsr.w r3, r1, r3 +} + 8009814: 4618 mov r0, r3 + 8009816: bd80 pop {r7, pc} + 8009818: 40023800 .word 0x40023800 + 800981c: 080226d8 .word 0x080226d8 + +08009820 : * @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) { - 800981c: b580 push {r7, lr} - 800981e: af00 add r7, sp, #0 + 8009820: b580 push {r7, lr} + 8009822: 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]); - 8009820: f7ff ffdc bl 80097dc - 8009824: 4601 mov r1, r0 - 8009826: 4b05 ldr r3, [pc, #20] ; (800983c ) - 8009828: 689b ldr r3, [r3, #8] - 800982a: 0b5b lsrs r3, r3, #13 - 800982c: f003 0307 and.w r3, r3, #7 - 8009830: 4a03 ldr r2, [pc, #12] ; (8009840 ) - 8009832: 5cd3 ldrb r3, [r2, r3] - 8009834: fa21 f303 lsr.w r3, r1, r3 -} - 8009838: 4618 mov r0, r3 - 800983a: bd80 pop {r7, pc} - 800983c: 40023800 .word 0x40023800 - 8009840: 080226c8 .word 0x080226c8 - -08009844 : + 8009824: f7ff ffdc bl 80097e0 + 8009828: 4601 mov r1, r0 + 800982a: 4b05 ldr r3, [pc, #20] ; (8009840 ) + 800982c: 689b ldr r3, [r3, #8] + 800982e: 0b5b lsrs r3, r3, #13 + 8009830: f003 0307 and.w r3, r3, #7 + 8009834: 4a03 ldr r2, [pc, #12] ; (8009844 ) + 8009836: 5cd3 ldrb r3, [r2, r3] + 8009838: fa21 f303 lsr.w r3, r1, r3 +} + 800983c: 4618 mov r0, r3 + 800983e: bd80 pop {r7, pc} + 8009840: 40023800 .word 0x40023800 + 8009844: 080226d8 .word 0x080226d8 + +08009848 : * will be configured. * @param pFLatency Pointer on the Flash Latency. * @retval None */ void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency) { - 8009844: b480 push {r7} - 8009846: b083 sub sp, #12 - 8009848: af00 add r7, sp, #0 - 800984a: 6078 str r0, [r7, #4] - 800984c: 6039 str r1, [r7, #0] + 8009848: b480 push {r7} + 800984a: b083 sub sp, #12 + 800984c: af00 add r7, sp, #0 + 800984e: 6078 str r0, [r7, #4] + 8009850: 6039 str r1, [r7, #0] /* Set all possible values for the Clock type parameter --------------------*/ RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2; - 800984e: 687b ldr r3, [r7, #4] - 8009850: 220f movs r2, #15 - 8009852: 601a str r2, [r3, #0] + 8009852: 687b ldr r3, [r7, #4] + 8009854: 220f movs r2, #15 + 8009856: 601a str r2, [r3, #0] /* Get the SYSCLK configuration --------------------------------------------*/ RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW); - 8009854: 4b12 ldr r3, [pc, #72] ; (80098a0 ) - 8009856: 689b ldr r3, [r3, #8] - 8009858: f003 0203 and.w r2, r3, #3 - 800985c: 687b ldr r3, [r7, #4] - 800985e: 605a str r2, [r3, #4] + 8009858: 4b12 ldr r3, [pc, #72] ; (80098a4 ) + 800985a: 689b ldr r3, [r3, #8] + 800985c: f003 0203 and.w r2, r3, #3 + 8009860: 687b ldr r3, [r7, #4] + 8009862: 605a str r2, [r3, #4] /* Get the HCLK configuration ----------------------------------------------*/ RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE); - 8009860: 4b0f ldr r3, [pc, #60] ; (80098a0 ) - 8009862: 689b ldr r3, [r3, #8] - 8009864: f003 02f0 and.w r2, r3, #240 ; 0xf0 - 8009868: 687b ldr r3, [r7, #4] - 800986a: 609a str r2, [r3, #8] + 8009864: 4b0f ldr r3, [pc, #60] ; (80098a4 ) + 8009866: 689b ldr r3, [r3, #8] + 8009868: f003 02f0 and.w r2, r3, #240 ; 0xf0 + 800986c: 687b ldr r3, [r7, #4] + 800986e: 609a str r2, [r3, #8] /* Get the APB1 configuration ----------------------------------------------*/ RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1); - 800986c: 4b0c ldr r3, [pc, #48] ; (80098a0 ) - 800986e: 689b ldr r3, [r3, #8] - 8009870: f403 52e0 and.w r2, r3, #7168 ; 0x1c00 - 8009874: 687b ldr r3, [r7, #4] - 8009876: 60da str r2, [r3, #12] + 8009870: 4b0c ldr r3, [pc, #48] ; (80098a4 ) + 8009872: 689b ldr r3, [r3, #8] + 8009874: f403 52e0 and.w r2, r3, #7168 ; 0x1c00 + 8009878: 687b ldr r3, [r7, #4] + 800987a: 60da str r2, [r3, #12] /* Get the APB2 configuration ----------------------------------------------*/ RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3); - 8009878: 4b09 ldr r3, [pc, #36] ; (80098a0 ) - 800987a: 689b ldr r3, [r3, #8] - 800987c: 08db lsrs r3, r3, #3 - 800987e: f403 52e0 and.w r2, r3, #7168 ; 0x1c00 - 8009882: 687b ldr r3, [r7, #4] - 8009884: 611a str r2, [r3, #16] + 800987c: 4b09 ldr r3, [pc, #36] ; (80098a4 ) + 800987e: 689b ldr r3, [r3, #8] + 8009880: 08db lsrs r3, r3, #3 + 8009882: f403 52e0 and.w r2, r3, #7168 ; 0x1c00 + 8009886: 687b ldr r3, [r7, #4] + 8009888: 611a str r2, [r3, #16] /* Get the Flash Wait State (Latency) configuration ------------------------*/ *pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY); - 8009886: 4b07 ldr r3, [pc, #28] ; (80098a4 ) - 8009888: 681b ldr r3, [r3, #0] - 800988a: f003 020f and.w r2, r3, #15 - 800988e: 683b ldr r3, [r7, #0] - 8009890: 601a str r2, [r3, #0] -} - 8009892: bf00 nop - 8009894: 370c adds r7, #12 - 8009896: 46bd mov sp, r7 - 8009898: f85d 7b04 ldr.w r7, [sp], #4 - 800989c: 4770 bx lr - 800989e: bf00 nop - 80098a0: 40023800 .word 0x40023800 - 80098a4: 40023c00 .word 0x40023c00 - -080098a8 : + 800988a: 4b07 ldr r3, [pc, #28] ; (80098a8 ) + 800988c: 681b ldr r3, [r3, #0] + 800988e: f003 020f and.w r2, r3, #15 + 8009892: 683b ldr r3, [r7, #0] + 8009894: 601a str r2, [r3, #0] +} + 8009896: bf00 nop + 8009898: 370c adds r7, #12 + 800989a: 46bd mov sp, r7 + 800989c: f85d 7b04 ldr.w r7, [sp], #4 + 80098a0: 4770 bx lr + 80098a2: bf00 nop + 80098a4: 40023800 .word 0x40023800 + 80098a8: 40023c00 .word 0x40023c00 + +080098ac : * the backup registers) are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { - 80098a8: b580 push {r7, lr} - 80098aa: b088 sub sp, #32 - 80098ac: af00 add r7, sp, #0 - 80098ae: 6078 str r0, [r7, #4] + 80098ac: b580 push {r7, lr} + 80098ae: b088 sub sp, #32 + 80098b0: af00 add r7, sp, #0 + 80098b2: 6078 str r0, [r7, #4] uint32_t tickstart = 0; - 80098b0: 2300 movs r3, #0 - 80098b2: 617b str r3, [r7, #20] - uint32_t tmpreg0 = 0; 80098b4: 2300 movs r3, #0 - 80098b6: 613b str r3, [r7, #16] - uint32_t tmpreg1 = 0; + 80098b6: 617b str r3, [r7, #20] + uint32_t tmpreg0 = 0; 80098b8: 2300 movs r3, #0 - 80098ba: 60fb str r3, [r7, #12] - uint32_t plli2sused = 0; + 80098ba: 613b str r3, [r7, #16] + uint32_t tmpreg1 = 0; 80098bc: 2300 movs r3, #0 - 80098be: 61fb str r3, [r7, #28] - uint32_t pllsaiused = 0; + 80098be: 60fb str r3, [r7, #12] + uint32_t plli2sused = 0; 80098c0: 2300 movs r3, #0 - 80098c2: 61bb str r3, [r7, #24] + 80098c2: 61fb str r3, [r7, #28] + uint32_t pllsaiused = 0; + 80098c4: 2300 movs r3, #0 + 80098c6: 61bb str r3, [r7, #24] /* Check the parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*----------------------------------- I2S configuration ----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == (RCC_PERIPHCLK_I2S)) - 80098c4: 687b ldr r3, [r7, #4] - 80098c6: 681b ldr r3, [r3, #0] - 80098c8: f003 0301 and.w r3, r3, #1 - 80098cc: 2b00 cmp r3, #0 - 80098ce: d012 beq.n 80098f6 + 80098c8: 687b ldr r3, [r7, #4] + 80098ca: 681b ldr r3, [r3, #0] + 80098cc: f003 0301 and.w r3, r3, #1 + 80098d0: 2b00 cmp r3, #0 + 80098d2: d012 beq.n 80098fa { /* Check the parameters */ assert_param(IS_RCC_I2SCLKSOURCE(PeriphClkInit->I2sClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_CONFIG(PeriphClkInit->I2sClockSelection); - 80098d0: 4b69 ldr r3, [pc, #420] ; (8009a78 ) - 80098d2: 689b ldr r3, [r3, #8] - 80098d4: 4a68 ldr r2, [pc, #416] ; (8009a78 ) - 80098d6: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 - 80098da: 6093 str r3, [r2, #8] - 80098dc: 4b66 ldr r3, [pc, #408] ; (8009a78 ) - 80098de: 689a ldr r2, [r3, #8] - 80098e0: 687b ldr r3, [r7, #4] - 80098e2: 6b5b ldr r3, [r3, #52] ; 0x34 - 80098e4: 4964 ldr r1, [pc, #400] ; (8009a78 ) - 80098e6: 4313 orrs r3, r2 - 80098e8: 608b str r3, [r1, #8] + 80098d4: 4b69 ldr r3, [pc, #420] ; (8009a7c ) + 80098d6: 689b ldr r3, [r3, #8] + 80098d8: 4a68 ldr r2, [pc, #416] ; (8009a7c ) + 80098da: f423 0300 bic.w r3, r3, #8388608 ; 0x800000 + 80098de: 6093 str r3, [r2, #8] + 80098e0: 4b66 ldr r3, [pc, #408] ; (8009a7c ) + 80098e2: 689a ldr r2, [r3, #8] + 80098e4: 687b ldr r3, [r7, #4] + 80098e6: 6b5b ldr r3, [r3, #52] ; 0x34 + 80098e8: 4964 ldr r1, [pc, #400] ; (8009a7c ) + 80098ea: 4313 orrs r3, r2 + 80098ec: 608b str r3, [r1, #8] /* Enable the PLLI2S when it's used as clock source for I2S */ if(PeriphClkInit->I2sClockSelection == RCC_I2SCLKSOURCE_PLLI2S) - 80098ea: 687b ldr r3, [r7, #4] - 80098ec: 6b5b ldr r3, [r3, #52] ; 0x34 - 80098ee: 2b00 cmp r3, #0 - 80098f0: d101 bne.n 80098f6 + 80098ee: 687b ldr r3, [r7, #4] + 80098f0: 6b5b ldr r3, [r3, #52] ; 0x34 + 80098f2: 2b00 cmp r3, #0 + 80098f4: d101 bne.n 80098fa { plli2sused = 1; - 80098f2: 2301 movs r3, #1 - 80098f4: 61fb str r3, [r7, #28] + 80098f6: 2301 movs r3, #1 + 80098f8: 61fb str r3, [r7, #28] } } /*------------------------------------ SAI1 configuration --------------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == (RCC_PERIPHCLK_SAI1)) - 80098f6: 687b ldr r3, [r7, #4] - 80098f8: 681b ldr r3, [r3, #0] - 80098fa: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 80098fe: 2b00 cmp r3, #0 - 8009900: d017 beq.n 8009932 + 80098fa: 687b ldr r3, [r7, #4] + 80098fc: 681b ldr r3, [r3, #0] + 80098fe: f403 2300 and.w r3, r3, #524288 ; 0x80000 + 8009902: 2b00 cmp r3, #0 + 8009904: d017 beq.n 8009936 { /* Check the parameters */ assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection)); /* Configure SAI1 Clock source */ __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); - 8009902: 4b5d ldr r3, [pc, #372] ; (8009a78 ) - 8009904: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8009908: f423 1240 bic.w r2, r3, #3145728 ; 0x300000 - 800990c: 687b ldr r3, [r7, #4] - 800990e: 6bdb ldr r3, [r3, #60] ; 0x3c - 8009910: 4959 ldr r1, [pc, #356] ; (8009a78 ) - 8009912: 4313 orrs r3, r2 - 8009914: f8c1 308c str.w r3, [r1, #140] ; 0x8c + 8009906: 4b5d ldr r3, [pc, #372] ; (8009a7c ) + 8009908: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 800990c: f423 1240 bic.w r2, r3, #3145728 ; 0x300000 + 8009910: 687b ldr r3, [r7, #4] + 8009912: 6bdb ldr r3, [r3, #60] ; 0x3c + 8009914: 4959 ldr r1, [pc, #356] ; (8009a7c ) + 8009916: 4313 orrs r3, r2 + 8009918: f8c1 308c str.w r3, [r1, #140] ; 0x8c /* Enable the PLLI2S when it's used as clock source for SAI */ if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S) - 8009918: 687b ldr r3, [r7, #4] - 800991a: 6bdb ldr r3, [r3, #60] ; 0x3c - 800991c: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 8009920: d101 bne.n 8009926 + 800991c: 687b ldr r3, [r7, #4] + 800991e: 6bdb ldr r3, [r3, #60] ; 0x3c + 8009920: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 + 8009924: d101 bne.n 800992a { plli2sused = 1; - 8009922: 2301 movs r3, #1 - 8009924: 61fb str r3, [r7, #28] + 8009926: 2301 movs r3, #1 + 8009928: 61fb str r3, [r7, #28] } /* Enable the PLLSAI when it's used as clock source for SAI */ if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI) - 8009926: 687b ldr r3, [r7, #4] - 8009928: 6bdb ldr r3, [r3, #60] ; 0x3c - 800992a: 2b00 cmp r3, #0 - 800992c: d101 bne.n 8009932 + 800992a: 687b ldr r3, [r7, #4] + 800992c: 6bdb ldr r3, [r3, #60] ; 0x3c + 800992e: 2b00 cmp r3, #0 + 8009930: d101 bne.n 8009936 { pllsaiused = 1; - 800992e: 2301 movs r3, #1 - 8009930: 61bb str r3, [r7, #24] + 8009932: 2301 movs r3, #1 + 8009934: 61bb str r3, [r7, #24] } } /*------------------------------------ SAI2 configuration --------------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == (RCC_PERIPHCLK_SAI2)) - 8009932: 687b ldr r3, [r7, #4] - 8009934: 681b ldr r3, [r3, #0] - 8009936: f403 1380 and.w r3, r3, #1048576 ; 0x100000 - 800993a: 2b00 cmp r3, #0 - 800993c: d017 beq.n 800996e + 8009936: 687b ldr r3, [r7, #4] + 8009938: 681b ldr r3, [r3, #0] + 800993a: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 800993e: 2b00 cmp r3, #0 + 8009940: d017 beq.n 8009972 { /* Check the parameters */ assert_param(IS_RCC_SAI2CLKSOURCE(PeriphClkInit->Sai2ClockSelection)); /* Configure SAI2 Clock source */ __HAL_RCC_SAI2_CONFIG(PeriphClkInit->Sai2ClockSelection); - 800993e: 4b4e ldr r3, [pc, #312] ; (8009a78 ) - 8009940: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8009944: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000 - 8009948: 687b ldr r3, [r7, #4] - 800994a: 6c1b ldr r3, [r3, #64] ; 0x40 - 800994c: 494a ldr r1, [pc, #296] ; (8009a78 ) - 800994e: 4313 orrs r3, r2 - 8009950: f8c1 308c str.w r3, [r1, #140] ; 0x8c + 8009942: 4b4e ldr r3, [pc, #312] ; (8009a7c ) + 8009944: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 8009948: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000 + 800994c: 687b ldr r3, [r7, #4] + 800994e: 6c1b ldr r3, [r3, #64] ; 0x40 + 8009950: 494a ldr r1, [pc, #296] ; (8009a7c ) + 8009952: 4313 orrs r3, r2 + 8009954: f8c1 308c str.w r3, [r1, #140] ; 0x8c /* Enable the PLLI2S when it's used as clock source for SAI */ if(PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S) - 8009954: 687b ldr r3, [r7, #4] - 8009956: 6c1b ldr r3, [r3, #64] ; 0x40 - 8009958: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 800995c: d101 bne.n 8009962 + 8009958: 687b ldr r3, [r7, #4] + 800995a: 6c1b ldr r3, [r3, #64] ; 0x40 + 800995c: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 + 8009960: d101 bne.n 8009966 { plli2sused = 1; - 800995e: 2301 movs r3, #1 - 8009960: 61fb str r3, [r7, #28] + 8009962: 2301 movs r3, #1 + 8009964: 61fb str r3, [r7, #28] } /* Enable the PLLSAI when it's used as clock source for SAI */ if(PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI) - 8009962: 687b ldr r3, [r7, #4] - 8009964: 6c1b ldr r3, [r3, #64] ; 0x40 - 8009966: 2b00 cmp r3, #0 - 8009968: d101 bne.n 800996e + 8009966: 687b ldr r3, [r7, #4] + 8009968: 6c1b ldr r3, [r3, #64] ; 0x40 + 800996a: 2b00 cmp r3, #0 + 800996c: d101 bne.n 8009972 { pllsaiused = 1; - 800996a: 2301 movs r3, #1 - 800996c: 61bb str r3, [r7, #24] + 800996e: 2301 movs r3, #1 + 8009970: 61bb str r3, [r7, #24] } } /*-------------------------------------- SPDIF-RX Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) - 800996e: 687b ldr r3, [r7, #4] - 8009970: 681b ldr r3, [r3, #0] - 8009972: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8009976: 2b00 cmp r3, #0 - 8009978: d001 beq.n 800997e + 8009972: 687b ldr r3, [r7, #4] + 8009974: 681b ldr r3, [r3, #0] + 8009976: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 + 800997a: 2b00 cmp r3, #0 + 800997c: d001 beq.n 8009982 { plli2sused = 1; - 800997a: 2301 movs r3, #1 - 800997c: 61fb str r3, [r7, #28] + 800997e: 2301 movs r3, #1 + 8009980: 61fb str r3, [r7, #28] } /*------------------------------------ RTC configuration --------------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) - 800997e: 687b ldr r3, [r7, #4] - 8009980: 681b ldr r3, [r3, #0] - 8009982: f003 0320 and.w r3, r3, #32 - 8009986: 2b00 cmp r3, #0 - 8009988: f000 808b beq.w 8009aa2 + 8009982: 687b ldr r3, [r7, #4] + 8009984: 681b ldr r3, [r3, #0] + 8009986: f003 0320 and.w r3, r3, #32 + 800998a: 2b00 cmp r3, #0 + 800998c: f000 808b beq.w 8009aa6 { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); - 800998c: 4b3a ldr r3, [pc, #232] ; (8009a78 ) - 800998e: 6c1b ldr r3, [r3, #64] ; 0x40 - 8009990: 4a39 ldr r2, [pc, #228] ; (8009a78 ) - 8009992: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 8009996: 6413 str r3, [r2, #64] ; 0x40 - 8009998: 4b37 ldr r3, [pc, #220] ; (8009a78 ) - 800999a: 6c1b ldr r3, [r3, #64] ; 0x40 - 800999c: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 - 80099a0: 60bb str r3, [r7, #8] - 80099a2: 68bb ldr r3, [r7, #8] + 8009990: 4b3a ldr r3, [pc, #232] ; (8009a7c ) + 8009992: 6c1b ldr r3, [r3, #64] ; 0x40 + 8009994: 4a39 ldr r2, [pc, #228] ; (8009a7c ) + 8009996: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 800999a: 6413 str r3, [r2, #64] ; 0x40 + 800999c: 4b37 ldr r3, [pc, #220] ; (8009a7c ) + 800999e: 6c1b ldr r3, [r3, #64] ; 0x40 + 80099a0: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 + 80099a4: 60bb str r3, [r7, #8] + 80099a6: 68bb ldr r3, [r7, #8] /* Enable write access to Backup domain */ PWR->CR1 |= PWR_CR1_DBP; - 80099a4: 4b35 ldr r3, [pc, #212] ; (8009a7c ) - 80099a6: 681b ldr r3, [r3, #0] - 80099a8: 4a34 ldr r2, [pc, #208] ; (8009a7c ) - 80099aa: f443 7380 orr.w r3, r3, #256 ; 0x100 - 80099ae: 6013 str r3, [r2, #0] + 80099a8: 4b35 ldr r3, [pc, #212] ; (8009a80 ) + 80099aa: 681b ldr r3, [r3, #0] + 80099ac: 4a34 ldr r2, [pc, #208] ; (8009a80 ) + 80099ae: f443 7380 orr.w r3, r3, #256 ; 0x100 + 80099b2: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80099b0: f7fb fa86 bl 8004ec0 - 80099b4: 6178 str r0, [r7, #20] + 80099b4: f7fb fa86 bl 8004ec4 + 80099b8: 6178 str r0, [r7, #20] /* Wait for Backup domain Write protection disable */ while((PWR->CR1 & PWR_CR1_DBP) == RESET) - 80099b6: e008 b.n 80099ca + 80099ba: e008 b.n 80099ce { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80099b8: f7fb fa82 bl 8004ec0 - 80099bc: 4602 mov r2, r0 - 80099be: 697b ldr r3, [r7, #20] - 80099c0: 1ad3 subs r3, r2, r3 - 80099c2: 2b64 cmp r3, #100 ; 0x64 - 80099c4: d901 bls.n 80099ca + 80099bc: f7fb fa82 bl 8004ec4 + 80099c0: 4602 mov r2, r0 + 80099c2: 697b ldr r3, [r7, #20] + 80099c4: 1ad3 subs r3, r2, r3 + 80099c6: 2b64 cmp r3, #100 ; 0x64 + 80099c8: d901 bls.n 80099ce { return HAL_TIMEOUT; - 80099c6: 2303 movs r3, #3 - 80099c8: e355 b.n 800a076 + 80099ca: 2303 movs r3, #3 + 80099cc: e355 b.n 800a07a while((PWR->CR1 & PWR_CR1_DBP) == RESET) - 80099ca: 4b2c ldr r3, [pc, #176] ; (8009a7c ) - 80099cc: 681b ldr r3, [r3, #0] - 80099ce: f403 7380 and.w r3, r3, #256 ; 0x100 - 80099d2: 2b00 cmp r3, #0 - 80099d4: d0f0 beq.n 80099b8 + 80099ce: 4b2c ldr r3, [pc, #176] ; (8009a80 ) + 80099d0: 681b ldr r3, [r3, #0] + 80099d2: f403 7380 and.w r3, r3, #256 ; 0x100 + 80099d6: 2b00 cmp r3, #0 + 80099d8: d0f0 beq.n 80099bc } } /* Reset the Backup domain only if the RTC Clock source selection is modified */ tmpreg0 = (RCC->BDCR & RCC_BDCR_RTCSEL); - 80099d6: 4b28 ldr r3, [pc, #160] ; (8009a78 ) - 80099d8: 6f1b ldr r3, [r3, #112] ; 0x70 - 80099da: f403 7340 and.w r3, r3, #768 ; 0x300 - 80099de: 613b str r3, [r7, #16] + 80099da: 4b28 ldr r3, [pc, #160] ; (8009a7c ) + 80099dc: 6f1b ldr r3, [r3, #112] ; 0x70 + 80099de: f403 7340 and.w r3, r3, #768 ; 0x300 + 80099e2: 613b str r3, [r7, #16] if((tmpreg0 != 0x00000000U) && (tmpreg0 != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) - 80099e0: 693b ldr r3, [r7, #16] - 80099e2: 2b00 cmp r3, #0 - 80099e4: d035 beq.n 8009a52 - 80099e6: 687b ldr r3, [r7, #4] - 80099e8: 6b1b ldr r3, [r3, #48] ; 0x30 - 80099ea: f403 7340 and.w r3, r3, #768 ; 0x300 - 80099ee: 693a ldr r2, [r7, #16] - 80099f0: 429a cmp r2, r3 - 80099f2: d02e beq.n 8009a52 + 80099e4: 693b ldr r3, [r7, #16] + 80099e6: 2b00 cmp r3, #0 + 80099e8: d035 beq.n 8009a56 + 80099ea: 687b ldr r3, [r7, #4] + 80099ec: 6b1b ldr r3, [r3, #48] ; 0x30 + 80099ee: f403 7340 and.w r3, r3, #768 ; 0x300 + 80099f2: 693a ldr r2, [r7, #16] + 80099f4: 429a cmp r2, r3 + 80099f6: d02e beq.n 8009a56 { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg0 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 80099f4: 4b20 ldr r3, [pc, #128] ; (8009a78 ) - 80099f6: 6f1b ldr r3, [r3, #112] ; 0x70 - 80099f8: f423 7340 bic.w r3, r3, #768 ; 0x300 - 80099fc: 613b str r3, [r7, #16] + 80099f8: 4b20 ldr r3, [pc, #128] ; (8009a7c ) + 80099fa: 6f1b ldr r3, [r3, #112] ; 0x70 + 80099fc: f423 7340 bic.w r3, r3, #768 ; 0x300 + 8009a00: 613b str r3, [r7, #16] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); - 80099fe: 4b1e ldr r3, [pc, #120] ; (8009a78 ) - 8009a00: 6f1b ldr r3, [r3, #112] ; 0x70 - 8009a02: 4a1d ldr r2, [pc, #116] ; (8009a78 ) - 8009a04: f443 3380 orr.w r3, r3, #65536 ; 0x10000 - 8009a08: 6713 str r3, [r2, #112] ; 0x70 + 8009a02: 4b1e ldr r3, [pc, #120] ; (8009a7c ) + 8009a04: 6f1b ldr r3, [r3, #112] ; 0x70 + 8009a06: 4a1d ldr r2, [pc, #116] ; (8009a7c ) + 8009a08: f443 3380 orr.w r3, r3, #65536 ; 0x10000 + 8009a0c: 6713 str r3, [r2, #112] ; 0x70 __HAL_RCC_BACKUPRESET_RELEASE(); - 8009a0a: 4b1b ldr r3, [pc, #108] ; (8009a78 ) - 8009a0c: 6f1b ldr r3, [r3, #112] ; 0x70 - 8009a0e: 4a1a ldr r2, [pc, #104] ; (8009a78 ) - 8009a10: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 8009a14: 6713 str r3, [r2, #112] ; 0x70 + 8009a0e: 4b1b ldr r3, [pc, #108] ; (8009a7c ) + 8009a10: 6f1b ldr r3, [r3, #112] ; 0x70 + 8009a12: 4a1a ldr r2, [pc, #104] ; (8009a7c ) + 8009a14: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 8009a18: 6713 str r3, [r2, #112] ; 0x70 /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg0; - 8009a16: 4a18 ldr r2, [pc, #96] ; (8009a78 ) - 8009a18: 693b ldr r3, [r7, #16] - 8009a1a: 6713 str r3, [r2, #112] ; 0x70 + 8009a1a: 4a18 ldr r2, [pc, #96] ; (8009a7c ) + 8009a1c: 693b ldr r3, [r7, #16] + 8009a1e: 6713 str r3, [r2, #112] ; 0x70 /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if (HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON)) - 8009a1c: 4b16 ldr r3, [pc, #88] ; (8009a78 ) - 8009a1e: 6f1b ldr r3, [r3, #112] ; 0x70 - 8009a20: f003 0301 and.w r3, r3, #1 - 8009a24: 2b01 cmp r3, #1 - 8009a26: d114 bne.n 8009a52 + 8009a20: 4b16 ldr r3, [pc, #88] ; (8009a7c ) + 8009a22: 6f1b ldr r3, [r3, #112] ; 0x70 + 8009a24: f003 0301 and.w r3, r3, #1 + 8009a28: 2b01 cmp r3, #1 + 8009a2a: d114 bne.n 8009a56 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009a28: f7fb fa4a bl 8004ec0 - 8009a2c: 6178 str r0, [r7, #20] + 8009a2c: f7fb fa4a bl 8004ec4 + 8009a30: 6178 str r0, [r7, #20] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8009a2e: e00a b.n 8009a46 + 8009a32: e00a b.n 8009a4a { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 8009a30: f7fb fa46 bl 8004ec0 - 8009a34: 4602 mov r2, r0 - 8009a36: 697b ldr r3, [r7, #20] - 8009a38: 1ad3 subs r3, r2, r3 - 8009a3a: f241 3288 movw r2, #5000 ; 0x1388 - 8009a3e: 4293 cmp r3, r2 - 8009a40: d901 bls.n 8009a46 + 8009a34: f7fb fa46 bl 8004ec4 + 8009a38: 4602 mov r2, r0 + 8009a3a: 697b ldr r3, [r7, #20] + 8009a3c: 1ad3 subs r3, r2, r3 + 8009a3e: f241 3288 movw r2, #5000 ; 0x1388 + 8009a42: 4293 cmp r3, r2 + 8009a44: d901 bls.n 8009a4a { return HAL_TIMEOUT; - 8009a42: 2303 movs r3, #3 - 8009a44: e317 b.n 800a076 + 8009a46: 2303 movs r3, #3 + 8009a48: e317 b.n 800a07a while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8009a46: 4b0c ldr r3, [pc, #48] ; (8009a78 ) - 8009a48: 6f1b ldr r3, [r3, #112] ; 0x70 - 8009a4a: f003 0302 and.w r3, r3, #2 - 8009a4e: 2b00 cmp r3, #0 - 8009a50: d0ee beq.n 8009a30 + 8009a4a: 4b0c ldr r3, [pc, #48] ; (8009a7c ) + 8009a4c: 6f1b ldr r3, [r3, #112] ; 0x70 + 8009a4e: f003 0302 and.w r3, r3, #2 + 8009a52: 2b00 cmp r3, #0 + 8009a54: d0ee beq.n 8009a34 } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 8009a52: 687b ldr r3, [r7, #4] - 8009a54: 6b1b ldr r3, [r3, #48] ; 0x30 - 8009a56: f403 7340 and.w r3, r3, #768 ; 0x300 - 8009a5a: f5b3 7f40 cmp.w r3, #768 ; 0x300 - 8009a5e: d111 bne.n 8009a84 - 8009a60: 4b05 ldr r3, [pc, #20] ; (8009a78 ) - 8009a62: 689b ldr r3, [r3, #8] - 8009a64: f423 12f8 bic.w r2, r3, #2031616 ; 0x1f0000 - 8009a68: 687b ldr r3, [r7, #4] - 8009a6a: 6b19 ldr r1, [r3, #48] ; 0x30 - 8009a6c: 4b04 ldr r3, [pc, #16] ; (8009a80 ) - 8009a6e: 400b ands r3, r1 - 8009a70: 4901 ldr r1, [pc, #4] ; (8009a78 ) - 8009a72: 4313 orrs r3, r2 - 8009a74: 608b str r3, [r1, #8] - 8009a76: e00b b.n 8009a90 - 8009a78: 40023800 .word 0x40023800 - 8009a7c: 40007000 .word 0x40007000 - 8009a80: 0ffffcff .word 0x0ffffcff - 8009a84: 4bb0 ldr r3, [pc, #704] ; (8009d48 ) - 8009a86: 689b ldr r3, [r3, #8] - 8009a88: 4aaf ldr r2, [pc, #700] ; (8009d48 ) - 8009a8a: f423 13f8 bic.w r3, r3, #2031616 ; 0x1f0000 - 8009a8e: 6093 str r3, [r2, #8] - 8009a90: 4bad ldr r3, [pc, #692] ; (8009d48 ) - 8009a92: 6f1a ldr r2, [r3, #112] ; 0x70 - 8009a94: 687b ldr r3, [r7, #4] - 8009a96: 6b1b ldr r3, [r3, #48] ; 0x30 - 8009a98: f3c3 030b ubfx r3, r3, #0, #12 - 8009a9c: 49aa ldr r1, [pc, #680] ; (8009d48 ) - 8009a9e: 4313 orrs r3, r2 - 8009aa0: 670b str r3, [r1, #112] ; 0x70 + 8009a56: 687b ldr r3, [r7, #4] + 8009a58: 6b1b ldr r3, [r3, #48] ; 0x30 + 8009a5a: f403 7340 and.w r3, r3, #768 ; 0x300 + 8009a5e: f5b3 7f40 cmp.w r3, #768 ; 0x300 + 8009a62: d111 bne.n 8009a88 + 8009a64: 4b05 ldr r3, [pc, #20] ; (8009a7c ) + 8009a66: 689b ldr r3, [r3, #8] + 8009a68: f423 12f8 bic.w r2, r3, #2031616 ; 0x1f0000 + 8009a6c: 687b ldr r3, [r7, #4] + 8009a6e: 6b19 ldr r1, [r3, #48] ; 0x30 + 8009a70: 4b04 ldr r3, [pc, #16] ; (8009a84 ) + 8009a72: 400b ands r3, r1 + 8009a74: 4901 ldr r1, [pc, #4] ; (8009a7c ) + 8009a76: 4313 orrs r3, r2 + 8009a78: 608b str r3, [r1, #8] + 8009a7a: e00b b.n 8009a94 + 8009a7c: 40023800 .word 0x40023800 + 8009a80: 40007000 .word 0x40007000 + 8009a84: 0ffffcff .word 0x0ffffcff + 8009a88: 4bb0 ldr r3, [pc, #704] ; (8009d4c ) + 8009a8a: 689b ldr r3, [r3, #8] + 8009a8c: 4aaf ldr r2, [pc, #700] ; (8009d4c ) + 8009a8e: f423 13f8 bic.w r3, r3, #2031616 ; 0x1f0000 + 8009a92: 6093 str r3, [r2, #8] + 8009a94: 4bad ldr r3, [pc, #692] ; (8009d4c ) + 8009a96: 6f1a ldr r2, [r3, #112] ; 0x70 + 8009a98: 687b ldr r3, [r7, #4] + 8009a9a: 6b1b ldr r3, [r3, #48] ; 0x30 + 8009a9c: f3c3 030b ubfx r3, r3, #0, #12 + 8009aa0: 49aa ldr r1, [pc, #680] ; (8009d4c ) + 8009aa2: 4313 orrs r3, r2 + 8009aa4: 670b str r3, [r1, #112] ; 0x70 } /*------------------------------------ TIM configuration --------------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) - 8009aa2: 687b ldr r3, [r7, #4] - 8009aa4: 681b ldr r3, [r3, #0] - 8009aa6: f003 0310 and.w r3, r3, #16 - 8009aaa: 2b00 cmp r3, #0 - 8009aac: d010 beq.n 8009ad0 + 8009aa6: 687b ldr r3, [r7, #4] + 8009aa8: 681b ldr r3, [r3, #0] + 8009aaa: f003 0310 and.w r3, r3, #16 + 8009aae: 2b00 cmp r3, #0 + 8009ab0: d010 beq.n 8009ad4 { /* Check the parameters */ assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection)); /* Configure Timer Prescaler */ __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); - 8009aae: 4ba6 ldr r3, [pc, #664] ; (8009d48 ) - 8009ab0: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8009ab4: 4aa4 ldr r2, [pc, #656] ; (8009d48 ) - 8009ab6: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000 - 8009aba: f8c2 308c str.w r3, [r2, #140] ; 0x8c - 8009abe: 4ba2 ldr r3, [pc, #648] ; (8009d48 ) - 8009ac0: f8d3 208c ldr.w r2, [r3, #140] ; 0x8c - 8009ac4: 687b ldr r3, [r7, #4] - 8009ac6: 6b9b ldr r3, [r3, #56] ; 0x38 - 8009ac8: 499f ldr r1, [pc, #636] ; (8009d48 ) - 8009aca: 4313 orrs r3, r2 - 8009acc: f8c1 308c str.w r3, [r1, #140] ; 0x8c + 8009ab2: 4ba6 ldr r3, [pc, #664] ; (8009d4c ) + 8009ab4: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 8009ab8: 4aa4 ldr r2, [pc, #656] ; (8009d4c ) + 8009aba: f023 7380 bic.w r3, r3, #16777216 ; 0x1000000 + 8009abe: f8c2 308c str.w r3, [r2, #140] ; 0x8c + 8009ac2: 4ba2 ldr r3, [pc, #648] ; (8009d4c ) + 8009ac4: f8d3 208c ldr.w r2, [r3, #140] ; 0x8c + 8009ac8: 687b ldr r3, [r7, #4] + 8009aca: 6b9b ldr r3, [r3, #56] ; 0x38 + 8009acc: 499f ldr r1, [pc, #636] ; (8009d4c ) + 8009ace: 4313 orrs r3, r2 + 8009ad0: f8c1 308c str.w r3, [r1, #140] ; 0x8c } /*-------------------------------------- I2C1 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1) - 8009ad0: 687b ldr r3, [r7, #4] - 8009ad2: 681b ldr r3, [r3, #0] - 8009ad4: f403 4380 and.w r3, r3, #16384 ; 0x4000 - 8009ad8: 2b00 cmp r3, #0 - 8009ada: d00a beq.n 8009af2 + 8009ad4: 687b ldr r3, [r7, #4] + 8009ad6: 681b ldr r3, [r3, #0] + 8009ad8: f403 4380 and.w r3, r3, #16384 ; 0x4000 + 8009adc: 2b00 cmp r3, #0 + 8009ade: d00a beq.n 8009af6 { /* Check the parameters */ assert_param(IS_RCC_I2C1CLKSOURCE(PeriphClkInit->I2c1ClockSelection)); /* Configure the I2C1 clock source */ __HAL_RCC_I2C1_CONFIG(PeriphClkInit->I2c1ClockSelection); - 8009adc: 4b9a ldr r3, [pc, #616] ; (8009d48 ) - 8009ade: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009ae2: f423 3240 bic.w r2, r3, #196608 ; 0x30000 - 8009ae6: 687b ldr r3, [r7, #4] - 8009ae8: 6e5b ldr r3, [r3, #100] ; 0x64 - 8009aea: 4997 ldr r1, [pc, #604] ; (8009d48 ) - 8009aec: 4313 orrs r3, r2 - 8009aee: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009ae0: 4b9a ldr r3, [pc, #616] ; (8009d4c ) + 8009ae2: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009ae6: f423 3240 bic.w r2, r3, #196608 ; 0x30000 + 8009aea: 687b ldr r3, [r7, #4] + 8009aec: 6e5b ldr r3, [r3, #100] ; 0x64 + 8009aee: 4997 ldr r1, [pc, #604] ; (8009d4c ) + 8009af0: 4313 orrs r3, r2 + 8009af2: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- I2C2 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C2) == RCC_PERIPHCLK_I2C2) - 8009af2: 687b ldr r3, [r7, #4] - 8009af4: 681b ldr r3, [r3, #0] - 8009af6: f403 4300 and.w r3, r3, #32768 ; 0x8000 - 8009afa: 2b00 cmp r3, #0 - 8009afc: d00a beq.n 8009b14 + 8009af6: 687b ldr r3, [r7, #4] + 8009af8: 681b ldr r3, [r3, #0] + 8009afa: f403 4300 and.w r3, r3, #32768 ; 0x8000 + 8009afe: 2b00 cmp r3, #0 + 8009b00: d00a beq.n 8009b18 { /* Check the parameters */ assert_param(IS_RCC_I2C2CLKSOURCE(PeriphClkInit->I2c2ClockSelection)); /* Configure the I2C2 clock source */ __HAL_RCC_I2C2_CONFIG(PeriphClkInit->I2c2ClockSelection); - 8009afe: 4b92 ldr r3, [pc, #584] ; (8009d48 ) - 8009b00: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009b04: f423 2240 bic.w r2, r3, #786432 ; 0xc0000 - 8009b08: 687b ldr r3, [r7, #4] - 8009b0a: 6e9b ldr r3, [r3, #104] ; 0x68 - 8009b0c: 498e ldr r1, [pc, #568] ; (8009d48 ) - 8009b0e: 4313 orrs r3, r2 - 8009b10: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009b02: 4b92 ldr r3, [pc, #584] ; (8009d4c ) + 8009b04: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009b08: f423 2240 bic.w r2, r3, #786432 ; 0xc0000 + 8009b0c: 687b ldr r3, [r7, #4] + 8009b0e: 6e9b ldr r3, [r3, #104] ; 0x68 + 8009b10: 498e ldr r1, [pc, #568] ; (8009d4c ) + 8009b12: 4313 orrs r3, r2 + 8009b14: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- I2C3 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C3) == RCC_PERIPHCLK_I2C3) - 8009b14: 687b ldr r3, [r7, #4] - 8009b16: 681b ldr r3, [r3, #0] - 8009b18: f403 3380 and.w r3, r3, #65536 ; 0x10000 - 8009b1c: 2b00 cmp r3, #0 - 8009b1e: d00a beq.n 8009b36 + 8009b18: 687b ldr r3, [r7, #4] + 8009b1a: 681b ldr r3, [r3, #0] + 8009b1c: f403 3380 and.w r3, r3, #65536 ; 0x10000 + 8009b20: 2b00 cmp r3, #0 + 8009b22: d00a beq.n 8009b3a { /* Check the parameters */ assert_param(IS_RCC_I2C3CLKSOURCE(PeriphClkInit->I2c3ClockSelection)); /* Configure the I2C3 clock source */ __HAL_RCC_I2C3_CONFIG(PeriphClkInit->I2c3ClockSelection); - 8009b20: 4b89 ldr r3, [pc, #548] ; (8009d48 ) - 8009b22: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009b26: f423 1240 bic.w r2, r3, #3145728 ; 0x300000 - 8009b2a: 687b ldr r3, [r7, #4] - 8009b2c: 6edb ldr r3, [r3, #108] ; 0x6c - 8009b2e: 4986 ldr r1, [pc, #536] ; (8009d48 ) - 8009b30: 4313 orrs r3, r2 - 8009b32: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009b24: 4b89 ldr r3, [pc, #548] ; (8009d4c ) + 8009b26: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009b2a: f423 1240 bic.w r2, r3, #3145728 ; 0x300000 + 8009b2e: 687b ldr r3, [r7, #4] + 8009b30: 6edb ldr r3, [r3, #108] ; 0x6c + 8009b32: 4986 ldr r1, [pc, #536] ; (8009d4c ) + 8009b34: 4313 orrs r3, r2 + 8009b36: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- I2C4 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C4) == RCC_PERIPHCLK_I2C4) - 8009b36: 687b ldr r3, [r7, #4] - 8009b38: 681b ldr r3, [r3, #0] - 8009b3a: f403 3300 and.w r3, r3, #131072 ; 0x20000 - 8009b3e: 2b00 cmp r3, #0 - 8009b40: d00a beq.n 8009b58 + 8009b3a: 687b ldr r3, [r7, #4] + 8009b3c: 681b ldr r3, [r3, #0] + 8009b3e: f403 3300 and.w r3, r3, #131072 ; 0x20000 + 8009b42: 2b00 cmp r3, #0 + 8009b44: d00a beq.n 8009b5c { /* Check the parameters */ assert_param(IS_RCC_I2C4CLKSOURCE(PeriphClkInit->I2c4ClockSelection)); /* Configure the I2C4 clock source */ __HAL_RCC_I2C4_CONFIG(PeriphClkInit->I2c4ClockSelection); - 8009b42: 4b81 ldr r3, [pc, #516] ; (8009d48 ) - 8009b44: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009b48: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000 - 8009b4c: 687b ldr r3, [r7, #4] - 8009b4e: 6f1b ldr r3, [r3, #112] ; 0x70 - 8009b50: 497d ldr r1, [pc, #500] ; (8009d48 ) - 8009b52: 4313 orrs r3, r2 - 8009b54: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009b46: 4b81 ldr r3, [pc, #516] ; (8009d4c ) + 8009b48: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009b4c: f423 0240 bic.w r2, r3, #12582912 ; 0xc00000 + 8009b50: 687b ldr r3, [r7, #4] + 8009b52: 6f1b ldr r3, [r3, #112] ; 0x70 + 8009b54: 497d ldr r1, [pc, #500] ; (8009d4c ) + 8009b56: 4313 orrs r3, r2 + 8009b58: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- USART1 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1) - 8009b58: 687b ldr r3, [r7, #4] - 8009b5a: 681b ldr r3, [r3, #0] - 8009b5c: f003 0340 and.w r3, r3, #64 ; 0x40 - 8009b60: 2b00 cmp r3, #0 - 8009b62: d00a beq.n 8009b7a + 8009b5c: 687b ldr r3, [r7, #4] + 8009b5e: 681b ldr r3, [r3, #0] + 8009b60: f003 0340 and.w r3, r3, #64 ; 0x40 + 8009b64: 2b00 cmp r3, #0 + 8009b66: d00a beq.n 8009b7e { /* Check the parameters */ assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection)); /* Configure the USART1 clock source */ __HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection); - 8009b64: 4b78 ldr r3, [pc, #480] ; (8009d48 ) - 8009b66: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009b6a: f023 0203 bic.w r2, r3, #3 - 8009b6e: 687b ldr r3, [r7, #4] - 8009b70: 6c5b ldr r3, [r3, #68] ; 0x44 - 8009b72: 4975 ldr r1, [pc, #468] ; (8009d48 ) - 8009b74: 4313 orrs r3, r2 - 8009b76: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009b68: 4b78 ldr r3, [pc, #480] ; (8009d4c ) + 8009b6a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009b6e: f023 0203 bic.w r2, r3, #3 + 8009b72: 687b ldr r3, [r7, #4] + 8009b74: 6c5b ldr r3, [r3, #68] ; 0x44 + 8009b76: 4975 ldr r1, [pc, #468] ; (8009d4c ) + 8009b78: 4313 orrs r3, r2 + 8009b7a: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- USART2 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2) - 8009b7a: 687b ldr r3, [r7, #4] - 8009b7c: 681b ldr r3, [r3, #0] - 8009b7e: f003 0380 and.w r3, r3, #128 ; 0x80 - 8009b82: 2b00 cmp r3, #0 - 8009b84: d00a beq.n 8009b9c + 8009b7e: 687b ldr r3, [r7, #4] + 8009b80: 681b ldr r3, [r3, #0] + 8009b82: f003 0380 and.w r3, r3, #128 ; 0x80 + 8009b86: 2b00 cmp r3, #0 + 8009b88: d00a beq.n 8009ba0 { /* Check the parameters */ assert_param(IS_RCC_USART2CLKSOURCE(PeriphClkInit->Usart2ClockSelection)); /* Configure the USART2 clock source */ __HAL_RCC_USART2_CONFIG(PeriphClkInit->Usart2ClockSelection); - 8009b86: 4b70 ldr r3, [pc, #448] ; (8009d48 ) - 8009b88: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009b8c: f023 020c bic.w r2, r3, #12 - 8009b90: 687b ldr r3, [r7, #4] - 8009b92: 6c9b ldr r3, [r3, #72] ; 0x48 - 8009b94: 496c ldr r1, [pc, #432] ; (8009d48 ) - 8009b96: 4313 orrs r3, r2 - 8009b98: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009b8a: 4b70 ldr r3, [pc, #448] ; (8009d4c ) + 8009b8c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009b90: f023 020c bic.w r2, r3, #12 + 8009b94: 687b ldr r3, [r7, #4] + 8009b96: 6c9b ldr r3, [r3, #72] ; 0x48 + 8009b98: 496c ldr r1, [pc, #432] ; (8009d4c ) + 8009b9a: 4313 orrs r3, r2 + 8009b9c: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- USART3 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART3) == RCC_PERIPHCLK_USART3) - 8009b9c: 687b ldr r3, [r7, #4] - 8009b9e: 681b ldr r3, [r3, #0] - 8009ba0: f403 7380 and.w r3, r3, #256 ; 0x100 - 8009ba4: 2b00 cmp r3, #0 - 8009ba6: d00a beq.n 8009bbe + 8009ba0: 687b ldr r3, [r7, #4] + 8009ba2: 681b ldr r3, [r3, #0] + 8009ba4: f403 7380 and.w r3, r3, #256 ; 0x100 + 8009ba8: 2b00 cmp r3, #0 + 8009baa: d00a beq.n 8009bc2 { /* Check the parameters */ assert_param(IS_RCC_USART3CLKSOURCE(PeriphClkInit->Usart3ClockSelection)); /* Configure the USART3 clock source */ __HAL_RCC_USART3_CONFIG(PeriphClkInit->Usart3ClockSelection); - 8009ba8: 4b67 ldr r3, [pc, #412] ; (8009d48 ) - 8009baa: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009bae: f023 0230 bic.w r2, r3, #48 ; 0x30 - 8009bb2: 687b ldr r3, [r7, #4] - 8009bb4: 6cdb ldr r3, [r3, #76] ; 0x4c - 8009bb6: 4964 ldr r1, [pc, #400] ; (8009d48 ) - 8009bb8: 4313 orrs r3, r2 - 8009bba: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009bac: 4b67 ldr r3, [pc, #412] ; (8009d4c ) + 8009bae: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009bb2: f023 0230 bic.w r2, r3, #48 ; 0x30 + 8009bb6: 687b ldr r3, [r7, #4] + 8009bb8: 6cdb ldr r3, [r3, #76] ; 0x4c + 8009bba: 4964 ldr r1, [pc, #400] ; (8009d4c ) + 8009bbc: 4313 orrs r3, r2 + 8009bbe: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- UART4 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART4) == RCC_PERIPHCLK_UART4) - 8009bbe: 687b ldr r3, [r7, #4] - 8009bc0: 681b ldr r3, [r3, #0] - 8009bc2: f403 7300 and.w r3, r3, #512 ; 0x200 - 8009bc6: 2b00 cmp r3, #0 - 8009bc8: d00a beq.n 8009be0 + 8009bc2: 687b ldr r3, [r7, #4] + 8009bc4: 681b ldr r3, [r3, #0] + 8009bc6: f403 7300 and.w r3, r3, #512 ; 0x200 + 8009bca: 2b00 cmp r3, #0 + 8009bcc: d00a beq.n 8009be4 { /* Check the parameters */ assert_param(IS_RCC_UART4CLKSOURCE(PeriphClkInit->Uart4ClockSelection)); /* Configure the UART4 clock source */ __HAL_RCC_UART4_CONFIG(PeriphClkInit->Uart4ClockSelection); - 8009bca: 4b5f ldr r3, [pc, #380] ; (8009d48 ) - 8009bcc: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009bd0: f023 02c0 bic.w r2, r3, #192 ; 0xc0 - 8009bd4: 687b ldr r3, [r7, #4] - 8009bd6: 6d1b ldr r3, [r3, #80] ; 0x50 - 8009bd8: 495b ldr r1, [pc, #364] ; (8009d48 ) - 8009bda: 4313 orrs r3, r2 - 8009bdc: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009bce: 4b5f ldr r3, [pc, #380] ; (8009d4c ) + 8009bd0: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009bd4: f023 02c0 bic.w r2, r3, #192 ; 0xc0 + 8009bd8: 687b ldr r3, [r7, #4] + 8009bda: 6d1b ldr r3, [r3, #80] ; 0x50 + 8009bdc: 495b ldr r1, [pc, #364] ; (8009d4c ) + 8009bde: 4313 orrs r3, r2 + 8009be0: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- UART5 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART5) == RCC_PERIPHCLK_UART5) - 8009be0: 687b ldr r3, [r7, #4] - 8009be2: 681b ldr r3, [r3, #0] - 8009be4: f403 6380 and.w r3, r3, #1024 ; 0x400 - 8009be8: 2b00 cmp r3, #0 - 8009bea: d00a beq.n 8009c02 + 8009be4: 687b ldr r3, [r7, #4] + 8009be6: 681b ldr r3, [r3, #0] + 8009be8: f403 6380 and.w r3, r3, #1024 ; 0x400 + 8009bec: 2b00 cmp r3, #0 + 8009bee: d00a beq.n 8009c06 { /* Check the parameters */ assert_param(IS_RCC_UART5CLKSOURCE(PeriphClkInit->Uart5ClockSelection)); /* Configure the UART5 clock source */ __HAL_RCC_UART5_CONFIG(PeriphClkInit->Uart5ClockSelection); - 8009bec: 4b56 ldr r3, [pc, #344] ; (8009d48 ) - 8009bee: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009bf2: f423 7240 bic.w r2, r3, #768 ; 0x300 - 8009bf6: 687b ldr r3, [r7, #4] - 8009bf8: 6d5b ldr r3, [r3, #84] ; 0x54 - 8009bfa: 4953 ldr r1, [pc, #332] ; (8009d48 ) - 8009bfc: 4313 orrs r3, r2 - 8009bfe: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009bf0: 4b56 ldr r3, [pc, #344] ; (8009d4c ) + 8009bf2: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009bf6: f423 7240 bic.w r2, r3, #768 ; 0x300 + 8009bfa: 687b ldr r3, [r7, #4] + 8009bfc: 6d5b ldr r3, [r3, #84] ; 0x54 + 8009bfe: 4953 ldr r1, [pc, #332] ; (8009d4c ) + 8009c00: 4313 orrs r3, r2 + 8009c02: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- USART6 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART6) == RCC_PERIPHCLK_USART6) - 8009c02: 687b ldr r3, [r7, #4] - 8009c04: 681b ldr r3, [r3, #0] - 8009c06: f403 6300 and.w r3, r3, #2048 ; 0x800 - 8009c0a: 2b00 cmp r3, #0 - 8009c0c: d00a beq.n 8009c24 + 8009c06: 687b ldr r3, [r7, #4] + 8009c08: 681b ldr r3, [r3, #0] + 8009c0a: f403 6300 and.w r3, r3, #2048 ; 0x800 + 8009c0e: 2b00 cmp r3, #0 + 8009c10: d00a beq.n 8009c28 { /* Check the parameters */ assert_param(IS_RCC_USART6CLKSOURCE(PeriphClkInit->Usart6ClockSelection)); /* Configure the USART6 clock source */ __HAL_RCC_USART6_CONFIG(PeriphClkInit->Usart6ClockSelection); - 8009c0e: 4b4e ldr r3, [pc, #312] ; (8009d48 ) - 8009c10: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009c14: f423 6240 bic.w r2, r3, #3072 ; 0xc00 - 8009c18: 687b ldr r3, [r7, #4] - 8009c1a: 6d9b ldr r3, [r3, #88] ; 0x58 - 8009c1c: 494a ldr r1, [pc, #296] ; (8009d48 ) - 8009c1e: 4313 orrs r3, r2 - 8009c20: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009c12: 4b4e ldr r3, [pc, #312] ; (8009d4c ) + 8009c14: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009c18: f423 6240 bic.w r2, r3, #3072 ; 0xc00 + 8009c1c: 687b ldr r3, [r7, #4] + 8009c1e: 6d9b ldr r3, [r3, #88] ; 0x58 + 8009c20: 494a ldr r1, [pc, #296] ; (8009d4c ) + 8009c22: 4313 orrs r3, r2 + 8009c24: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- UART7 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART7) == RCC_PERIPHCLK_UART7) - 8009c24: 687b ldr r3, [r7, #4] - 8009c26: 681b ldr r3, [r3, #0] - 8009c28: f403 5380 and.w r3, r3, #4096 ; 0x1000 - 8009c2c: 2b00 cmp r3, #0 - 8009c2e: d00a beq.n 8009c46 + 8009c28: 687b ldr r3, [r7, #4] + 8009c2a: 681b ldr r3, [r3, #0] + 8009c2c: f403 5380 and.w r3, r3, #4096 ; 0x1000 + 8009c30: 2b00 cmp r3, #0 + 8009c32: d00a beq.n 8009c4a { /* Check the parameters */ assert_param(IS_RCC_UART7CLKSOURCE(PeriphClkInit->Uart7ClockSelection)); /* Configure the UART7 clock source */ __HAL_RCC_UART7_CONFIG(PeriphClkInit->Uart7ClockSelection); - 8009c30: 4b45 ldr r3, [pc, #276] ; (8009d48 ) - 8009c32: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009c36: f423 5240 bic.w r2, r3, #12288 ; 0x3000 - 8009c3a: 687b ldr r3, [r7, #4] - 8009c3c: 6ddb ldr r3, [r3, #92] ; 0x5c - 8009c3e: 4942 ldr r1, [pc, #264] ; (8009d48 ) - 8009c40: 4313 orrs r3, r2 - 8009c42: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009c34: 4b45 ldr r3, [pc, #276] ; (8009d4c ) + 8009c36: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009c3a: f423 5240 bic.w r2, r3, #12288 ; 0x3000 + 8009c3e: 687b ldr r3, [r7, #4] + 8009c40: 6ddb ldr r3, [r3, #92] ; 0x5c + 8009c42: 4942 ldr r1, [pc, #264] ; (8009d4c ) + 8009c44: 4313 orrs r3, r2 + 8009c46: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- UART8 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART8) == RCC_PERIPHCLK_UART8) - 8009c46: 687b ldr r3, [r7, #4] - 8009c48: 681b ldr r3, [r3, #0] - 8009c4a: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 8009c4e: 2b00 cmp r3, #0 - 8009c50: d00a beq.n 8009c68 + 8009c4a: 687b ldr r3, [r7, #4] + 8009c4c: 681b ldr r3, [r3, #0] + 8009c4e: f403 5300 and.w r3, r3, #8192 ; 0x2000 + 8009c52: 2b00 cmp r3, #0 + 8009c54: d00a beq.n 8009c6c { /* Check the parameters */ assert_param(IS_RCC_UART8CLKSOURCE(PeriphClkInit->Uart8ClockSelection)); /* Configure the UART8 clock source */ __HAL_RCC_UART8_CONFIG(PeriphClkInit->Uart8ClockSelection); - 8009c52: 4b3d ldr r3, [pc, #244] ; (8009d48 ) - 8009c54: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009c58: f423 4240 bic.w r2, r3, #49152 ; 0xc000 - 8009c5c: 687b ldr r3, [r7, #4] - 8009c5e: 6e1b ldr r3, [r3, #96] ; 0x60 - 8009c60: 4939 ldr r1, [pc, #228] ; (8009d48 ) - 8009c62: 4313 orrs r3, r2 - 8009c64: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009c56: 4b3d ldr r3, [pc, #244] ; (8009d4c ) + 8009c58: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009c5c: f423 4240 bic.w r2, r3, #49152 ; 0xc000 + 8009c60: 687b ldr r3, [r7, #4] + 8009c62: 6e1b ldr r3, [r3, #96] ; 0x60 + 8009c64: 4939 ldr r1, [pc, #228] ; (8009d4c ) + 8009c66: 4313 orrs r3, r2 + 8009c68: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*--------------------------------------- CEC Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) - 8009c68: 687b ldr r3, [r7, #4] - 8009c6a: 681b ldr r3, [r3, #0] - 8009c6c: f403 0380 and.w r3, r3, #4194304 ; 0x400000 - 8009c70: 2b00 cmp r3, #0 - 8009c72: d00a beq.n 8009c8a + 8009c6c: 687b ldr r3, [r7, #4] + 8009c6e: 681b ldr r3, [r3, #0] + 8009c70: f403 0380 and.w r3, r3, #4194304 ; 0x400000 + 8009c74: 2b00 cmp r3, #0 + 8009c76: d00a beq.n 8009c8e { /* Check the parameters */ assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); /* Configure the CEC clock source */ __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); - 8009c74: 4b34 ldr r3, [pc, #208] ; (8009d48 ) - 8009c76: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009c7a: f023 6280 bic.w r2, r3, #67108864 ; 0x4000000 - 8009c7e: 687b ldr r3, [r7, #4] - 8009c80: 6f9b ldr r3, [r3, #120] ; 0x78 - 8009c82: 4931 ldr r1, [pc, #196] ; (8009d48 ) - 8009c84: 4313 orrs r3, r2 - 8009c86: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009c78: 4b34 ldr r3, [pc, #208] ; (8009d4c ) + 8009c7a: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009c7e: f023 6280 bic.w r2, r3, #67108864 ; 0x4000000 + 8009c82: 687b ldr r3, [r7, #4] + 8009c84: 6f9b ldr r3, [r3, #120] ; 0x78 + 8009c86: 4931 ldr r1, [pc, #196] ; (8009d4c ) + 8009c88: 4313 orrs r3, r2 + 8009c8a: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*-------------------------------------- CK48 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) - 8009c8a: 687b ldr r3, [r7, #4] - 8009c8c: 681b ldr r3, [r3, #0] - 8009c8e: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8009c92: 2b00 cmp r3, #0 - 8009c94: d011 beq.n 8009cba + 8009c8e: 687b ldr r3, [r7, #4] + 8009c90: 681b ldr r3, [r3, #0] + 8009c92: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8009c96: 2b00 cmp r3, #0 + 8009c98: d011 beq.n 8009cbe { /* Check the parameters */ assert_param(IS_RCC_CLK48SOURCE(PeriphClkInit->Clk48ClockSelection)); /* Configure the CLK48 source */ __HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection); - 8009c96: 4b2c ldr r3, [pc, #176] ; (8009d48 ) - 8009c98: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009c9c: f023 6200 bic.w r2, r3, #134217728 ; 0x8000000 - 8009ca0: 687b ldr r3, [r7, #4] - 8009ca2: 6fdb ldr r3, [r3, #124] ; 0x7c - 8009ca4: 4928 ldr r1, [pc, #160] ; (8009d48 ) - 8009ca6: 4313 orrs r3, r2 - 8009ca8: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009c9a: 4b2c ldr r3, [pc, #176] ; (8009d4c ) + 8009c9c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009ca0: f023 6200 bic.w r2, r3, #134217728 ; 0x8000000 + 8009ca4: 687b ldr r3, [r7, #4] + 8009ca6: 6fdb ldr r3, [r3, #124] ; 0x7c + 8009ca8: 4928 ldr r1, [pc, #160] ; (8009d4c ) + 8009caa: 4313 orrs r3, r2 + 8009cac: f8c1 3090 str.w r3, [r1, #144] ; 0x90 /* Enable the PLLSAI when it's used as clock source for CK48 */ if(PeriphClkInit->Clk48ClockSelection == RCC_CLK48SOURCE_PLLSAIP) - 8009cac: 687b ldr r3, [r7, #4] - 8009cae: 6fdb ldr r3, [r3, #124] ; 0x7c - 8009cb0: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 8009cb4: d101 bne.n 8009cba + 8009cb0: 687b ldr r3, [r7, #4] + 8009cb2: 6fdb ldr r3, [r3, #124] ; 0x7c + 8009cb4: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 + 8009cb8: d101 bne.n 8009cbe { pllsaiused = 1; - 8009cb6: 2301 movs r3, #1 - 8009cb8: 61bb str r3, [r7, #24] + 8009cba: 2301 movs r3, #1 + 8009cbc: 61bb str r3, [r7, #24] } } /*-------------------------------------- LTDC Configuration -----------------------------------*/ #if defined(STM32F746xx) || defined(STM32F756xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) || defined (STM32F779xx) || defined (STM32F750xx) if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == RCC_PERIPHCLK_LTDC) - 8009cba: 687b ldr r3, [r7, #4] - 8009cbc: 681b ldr r3, [r3, #0] - 8009cbe: f003 0308 and.w r3, r3, #8 - 8009cc2: 2b00 cmp r3, #0 - 8009cc4: d001 beq.n 8009cca + 8009cbe: 687b ldr r3, [r7, #4] + 8009cc0: 681b ldr r3, [r3, #0] + 8009cc2: f003 0308 and.w r3, r3, #8 + 8009cc6: 2b00 cmp r3, #0 + 8009cc8: d001 beq.n 8009cce { pllsaiused = 1; - 8009cc6: 2301 movs r3, #1 - 8009cc8: 61bb str r3, [r7, #24] + 8009cca: 2301 movs r3, #1 + 8009ccc: 61bb str r3, [r7, #24] } #endif /* STM32F746xx || STM32F756xx || STM32F767xx || STM32F769xx || STM32F777xx || STM32F779xx || STM32F750xx */ /*-------------------------------------- LPTIM1 Configuration -----------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1) - 8009cca: 687b ldr r3, [r7, #4] - 8009ccc: 681b ldr r3, [r3, #0] - 8009cce: f403 2380 and.w r3, r3, #262144 ; 0x40000 - 8009cd2: 2b00 cmp r3, #0 - 8009cd4: d00a beq.n 8009cec + 8009cce: 687b ldr r3, [r7, #4] + 8009cd0: 681b ldr r3, [r3, #0] + 8009cd2: f403 2380 and.w r3, r3, #262144 ; 0x40000 + 8009cd6: 2b00 cmp r3, #0 + 8009cd8: d00a beq.n 8009cf0 { /* Check the parameters */ assert_param(IS_RCC_LPTIM1CLK(PeriphClkInit->Lptim1ClockSelection)); /* Configure the LTPIM1 clock source */ __HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection); - 8009cd6: 4b1c ldr r3, [pc, #112] ; (8009d48 ) - 8009cd8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009cdc: f023 7240 bic.w r2, r3, #50331648 ; 0x3000000 - 8009ce0: 687b ldr r3, [r7, #4] - 8009ce2: 6f5b ldr r3, [r3, #116] ; 0x74 - 8009ce4: 4918 ldr r1, [pc, #96] ; (8009d48 ) - 8009ce6: 4313 orrs r3, r2 - 8009ce8: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009cda: 4b1c ldr r3, [pc, #112] ; (8009d4c ) + 8009cdc: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009ce0: f023 7240 bic.w r2, r3, #50331648 ; 0x3000000 + 8009ce4: 687b ldr r3, [r7, #4] + 8009ce6: 6f5b ldr r3, [r3, #116] ; 0x74 + 8009ce8: 4918 ldr r1, [pc, #96] ; (8009d4c ) + 8009cea: 4313 orrs r3, r2 + 8009cec: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } /*------------------------------------- SDMMC1 Configuration ------------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC1) == RCC_PERIPHCLK_SDMMC1) - 8009cec: 687b ldr r3, [r7, #4] - 8009cee: 681b ldr r3, [r3, #0] - 8009cf0: f403 0300 and.w r3, r3, #8388608 ; 0x800000 - 8009cf4: 2b00 cmp r3, #0 - 8009cf6: d00b beq.n 8009d10 + 8009cf0: 687b ldr r3, [r7, #4] + 8009cf2: 681b ldr r3, [r3, #0] + 8009cf4: f403 0300 and.w r3, r3, #8388608 ; 0x800000 + 8009cf8: 2b00 cmp r3, #0 + 8009cfa: d00b beq.n 8009d14 { /* Check the parameters */ assert_param(IS_RCC_SDMMC1CLKSOURCE(PeriphClkInit->Sdmmc1ClockSelection)); /* Configure the SDMMC1 clock source */ __HAL_RCC_SDMMC1_CONFIG(PeriphClkInit->Sdmmc1ClockSelection); - 8009cf8: 4b13 ldr r3, [pc, #76] ; (8009d48 ) - 8009cfa: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8009cfe: f023 5280 bic.w r2, r3, #268435456 ; 0x10000000 - 8009d02: 687b ldr r3, [r7, #4] - 8009d04: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 8009d08: 490f ldr r1, [pc, #60] ; (8009d48 ) - 8009d0a: 4313 orrs r3, r2 - 8009d0c: f8c1 3090 str.w r3, [r1, #144] ; 0x90 + 8009cfc: 4b13 ldr r3, [pc, #76] ; (8009d4c ) + 8009cfe: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8009d02: f023 5280 bic.w r2, r3, #268435456 ; 0x10000000 + 8009d06: 687b ldr r3, [r7, #4] + 8009d08: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 + 8009d0c: 490f ldr r1, [pc, #60] ; (8009d4c ) + 8009d0e: 4313 orrs r3, r2 + 8009d10: f8c1 3090 str.w r3, [r1, #144] ; 0x90 } #endif /* STM32F767xx || STM32F769xx || STM32F777xx || STM32F779xx */ /*-------------------------------------- PLLI2S Configuration ---------------------------------*/ /* PLLI2S is configured when a peripheral will use it as source clock : SAI1, SAI2, I2S or SPDIF-RX */ if((plli2sused == 1) || (PeriphClkInit->PeriphClockSelection == RCC_PERIPHCLK_PLLI2S)) - 8009d10: 69fb ldr r3, [r7, #28] - 8009d12: 2b01 cmp r3, #1 - 8009d14: d005 beq.n 8009d22 - 8009d16: 687b ldr r3, [r7, #4] - 8009d18: 681b ldr r3, [r3, #0] - 8009d1a: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 - 8009d1e: f040 80d8 bne.w 8009ed2 + 8009d14: 69fb ldr r3, [r7, #28] + 8009d16: 2b01 cmp r3, #1 + 8009d18: d005 beq.n 8009d26 + 8009d1a: 687b ldr r3, [r7, #4] + 8009d1c: 681b ldr r3, [r3, #0] + 8009d1e: f1b3 7f00 cmp.w r3, #33554432 ; 0x2000000 + 8009d22: f040 80d8 bne.w 8009ed6 { /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); - 8009d22: 4b09 ldr r3, [pc, #36] ; (8009d48 ) - 8009d24: 681b ldr r3, [r3, #0] - 8009d26: 4a08 ldr r2, [pc, #32] ; (8009d48 ) - 8009d28: f023 6380 bic.w r3, r3, #67108864 ; 0x4000000 - 8009d2c: 6013 str r3, [r2, #0] + 8009d26: 4b09 ldr r3, [pc, #36] ; (8009d4c ) + 8009d28: 681b ldr r3, [r3, #0] + 8009d2a: 4a08 ldr r2, [pc, #32] ; (8009d4c ) + 8009d2c: f023 6380 bic.w r3, r3, #67108864 ; 0x4000000 + 8009d30: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009d2e: f7fb f8c7 bl 8004ec0 - 8009d32: 6178 str r0, [r7, #20] + 8009d32: f7fb f8c7 bl 8004ec4 + 8009d36: 6178 str r0, [r7, #20] /* Wait till PLLI2S is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) - 8009d34: e00a b.n 8009d4c + 8009d38: e00a b.n 8009d50 { if((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 8009d36: f7fb f8c3 bl 8004ec0 - 8009d3a: 4602 mov r2, r0 - 8009d3c: 697b ldr r3, [r7, #20] - 8009d3e: 1ad3 subs r3, r2, r3 - 8009d40: 2b64 cmp r3, #100 ; 0x64 - 8009d42: d903 bls.n 8009d4c + 8009d3a: f7fb f8c3 bl 8004ec4 + 8009d3e: 4602 mov r2, r0 + 8009d40: 697b ldr r3, [r7, #20] + 8009d42: 1ad3 subs r3, r2, r3 + 8009d44: 2b64 cmp r3, #100 ; 0x64 + 8009d46: d903 bls.n 8009d50 { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8009d44: 2303 movs r3, #3 - 8009d46: e196 b.n 800a076 - 8009d48: 40023800 .word 0x40023800 + 8009d48: 2303 movs r3, #3 + 8009d4a: e196 b.n 800a07a + 8009d4c: 40023800 .word 0x40023800 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) - 8009d4c: 4b6c ldr r3, [pc, #432] ; (8009f00 ) - 8009d4e: 681b ldr r3, [r3, #0] - 8009d50: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8009d54: 2b00 cmp r3, #0 - 8009d56: d1ee bne.n 8009d36 + 8009d50: 4b6c ldr r3, [pc, #432] ; (8009f04 ) + 8009d52: 681b ldr r3, [r3, #0] + 8009d54: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 8009d58: 2b00 cmp r3, #0 + 8009d5a: d1ee bne.n 8009d3a /* check for common PLLI2S Parameters */ assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN)); /*----------------- In Case of PLLI2S is selected as source clock for I2S -------------------*/ if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) && (PeriphClkInit->I2sClockSelection == RCC_I2SCLKSOURCE_PLLI2S))) - 8009d58: 687b ldr r3, [r7, #4] - 8009d5a: 681b ldr r3, [r3, #0] - 8009d5c: f003 0301 and.w r3, r3, #1 - 8009d60: 2b00 cmp r3, #0 - 8009d62: d021 beq.n 8009da8 - 8009d64: 687b ldr r3, [r7, #4] - 8009d66: 6b5b ldr r3, [r3, #52] ; 0x34 - 8009d68: 2b00 cmp r3, #0 - 8009d6a: d11d bne.n 8009da8 + 8009d5c: 687b ldr r3, [r7, #4] + 8009d5e: 681b ldr r3, [r3, #0] + 8009d60: f003 0301 and.w r3, r3, #1 + 8009d64: 2b00 cmp r3, #0 + 8009d66: d021 beq.n 8009dac + 8009d68: 687b ldr r3, [r7, #4] + 8009d6a: 6b5b ldr r3, [r3, #52] ; 0x34 + 8009d6c: 2b00 cmp r3, #0 + 8009d6e: d11d bne.n 8009dac { /* check for Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); /* Read PLLI2SP and PLLI2SQ value from PLLI2SCFGR register (this value is not needed for I2S configuration) */ tmpreg0 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos); - 8009d6c: 4b64 ldr r3, [pc, #400] ; (8009f00 ) - 8009d6e: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8009d72: 0c1b lsrs r3, r3, #16 - 8009d74: f003 0303 and.w r3, r3, #3 - 8009d78: 613b str r3, [r7, #16] + 8009d70: 4b64 ldr r3, [pc, #400] ; (8009f04 ) + 8009d72: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8009d76: 0c1b lsrs r3, r3, #16 + 8009d78: f003 0303 and.w r3, r3, #3 + 8009d7c: 613b str r3, [r7, #16] tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); - 8009d7a: 4b61 ldr r3, [pc, #388] ; (8009f00 ) - 8009d7c: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8009d80: 0e1b lsrs r3, r3, #24 - 8009d82: f003 030f and.w r3, r3, #15 - 8009d86: 60fb str r3, [r7, #12] + 8009d7e: 4b61 ldr r3, [pc, #388] ; (8009f04 ) + 8009d80: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8009d84: 0e1b lsrs r3, r3, #24 + 8009d86: f003 030f and.w r3, r3, #15 + 8009d8a: 60fb str r3, [r7, #12] /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLM) */ /* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , tmpreg0, tmpreg1, PeriphClkInit->PLLI2S.PLLI2SR); - 8009d88: 687b ldr r3, [r7, #4] - 8009d8a: 685b ldr r3, [r3, #4] - 8009d8c: 019a lsls r2, r3, #6 - 8009d8e: 693b ldr r3, [r7, #16] - 8009d90: 041b lsls r3, r3, #16 - 8009d92: 431a orrs r2, r3 - 8009d94: 68fb ldr r3, [r7, #12] - 8009d96: 061b lsls r3, r3, #24 - 8009d98: 431a orrs r2, r3 - 8009d9a: 687b ldr r3, [r7, #4] - 8009d9c: 689b ldr r3, [r3, #8] - 8009d9e: 071b lsls r3, r3, #28 - 8009da0: 4957 ldr r1, [pc, #348] ; (8009f00 ) - 8009da2: 4313 orrs r3, r2 - 8009da4: f8c1 3084 str.w r3, [r1, #132] ; 0x84 + 8009d8c: 687b ldr r3, [r7, #4] + 8009d8e: 685b ldr r3, [r3, #4] + 8009d90: 019a lsls r2, r3, #6 + 8009d92: 693b ldr r3, [r7, #16] + 8009d94: 041b lsls r3, r3, #16 + 8009d96: 431a orrs r2, r3 + 8009d98: 68fb ldr r3, [r7, #12] + 8009d9a: 061b lsls r3, r3, #24 + 8009d9c: 431a orrs r2, r3 + 8009d9e: 687b ldr r3, [r7, #4] + 8009da0: 689b ldr r3, [r3, #8] + 8009da2: 071b lsls r3, r3, #28 + 8009da4: 4957 ldr r1, [pc, #348] ; (8009f04 ) + 8009da6: 4313 orrs r3, r2 + 8009da8: f8c1 3084 str.w r3, [r1, #132] ; 0x84 } /*----------------- In Case of PLLI2S is selected as source clock for SAI -------------------*/ if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || - 8009da8: 687b ldr r3, [r7, #4] - 8009daa: 681b ldr r3, [r3, #0] - 8009dac: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 8009db0: 2b00 cmp r3, #0 - 8009db2: d004 beq.n 8009dbe - 8009db4: 687b ldr r3, [r7, #4] - 8009db6: 6bdb ldr r3, [r3, #60] ; 0x3c - 8009db8: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 8009dbc: d00a beq.n 8009dd4 + 8009dac: 687b ldr r3, [r7, #4] + 8009dae: 681b ldr r3, [r3, #0] + 8009db0: f403 2300 and.w r3, r3, #524288 ; 0x80000 + 8009db4: 2b00 cmp r3, #0 + 8009db6: d004 beq.n 8009dc2 + 8009db8: 687b ldr r3, [r7, #4] + 8009dba: 6bdb ldr r3, [r3, #60] ; 0x3c + 8009dbc: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 + 8009dc0: d00a beq.n 8009dd8 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) - 8009dbe: 687b ldr r3, [r7, #4] - 8009dc0: 681b ldr r3, [r3, #0] - 8009dc2: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 8009dc2: 687b ldr r3, [r7, #4] + 8009dc4: 681b ldr r3, [r3, #0] + 8009dc6: f403 1380 and.w r3, r3, #1048576 ; 0x100000 if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || - 8009dc6: 2b00 cmp r3, #0 - 8009dc8: d02e beq.n 8009e28 + 8009dca: 2b00 cmp r3, #0 + 8009dcc: d02e beq.n 8009e2c ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) - 8009dca: 687b ldr r3, [r7, #4] - 8009dcc: 6c1b ldr r3, [r3, #64] ; 0x40 - 8009dce: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 - 8009dd2: d129 bne.n 8009e28 + 8009dce: 687b ldr r3, [r7, #4] + 8009dd0: 6c1b ldr r3, [r3, #64] ; 0x40 + 8009dd2: f5b3 0f80 cmp.w r3, #4194304 ; 0x400000 + 8009dd6: d129 bne.n 8009e2c assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); /* Check for PLLI2S/DIVQ parameters */ assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(PeriphClkInit->PLLI2SDivQ)); /* Read PLLI2SP and PLLI2SR values from PLLI2SCFGR register (this value is not needed for SAI configuration) */ tmpreg0 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos); - 8009dd4: 4b4a ldr r3, [pc, #296] ; (8009f00 ) - 8009dd6: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8009dda: 0c1b lsrs r3, r3, #16 - 8009ddc: f003 0303 and.w r3, r3, #3 - 8009de0: 613b str r3, [r7, #16] + 8009dd8: 4b4a ldr r3, [pc, #296] ; (8009f04 ) + 8009dda: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8009dde: 0c1b lsrs r3, r3, #16 + 8009de0: f003 0303 and.w r3, r3, #3 + 8009de4: 613b str r3, [r7, #16] tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); - 8009de2: 4b47 ldr r3, [pc, #284] ; (8009f00 ) - 8009de4: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8009de8: 0f1b lsrs r3, r3, #28 - 8009dea: f003 0307 and.w r3, r3, #7 - 8009dee: 60fb str r3, [r7, #12] + 8009de6: 4b47 ldr r3, [pc, #284] ; (8009f04 ) + 8009de8: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8009dec: 0f1b lsrs r3, r3, #28 + 8009dee: f003 0307 and.w r3, r3, #7 + 8009df2: 60fb str r3, [r7, #12] /* Configure the PLLI2S division factors */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLM */ /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ /* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, tmpreg0, PeriphClkInit->PLLI2S.PLLI2SQ, tmpreg1); - 8009df0: 687b ldr r3, [r7, #4] - 8009df2: 685b ldr r3, [r3, #4] - 8009df4: 019a lsls r2, r3, #6 - 8009df6: 693b ldr r3, [r7, #16] - 8009df8: 041b lsls r3, r3, #16 - 8009dfa: 431a orrs r2, r3 - 8009dfc: 687b ldr r3, [r7, #4] - 8009dfe: 68db ldr r3, [r3, #12] - 8009e00: 061b lsls r3, r3, #24 - 8009e02: 431a orrs r2, r3 - 8009e04: 68fb ldr r3, [r7, #12] - 8009e06: 071b lsls r3, r3, #28 - 8009e08: 493d ldr r1, [pc, #244] ; (8009f00 ) - 8009e0a: 4313 orrs r3, r2 - 8009e0c: f8c1 3084 str.w r3, [r1, #132] ; 0x84 + 8009df4: 687b ldr r3, [r7, #4] + 8009df6: 685b ldr r3, [r3, #4] + 8009df8: 019a lsls r2, r3, #6 + 8009dfa: 693b ldr r3, [r7, #16] + 8009dfc: 041b lsls r3, r3, #16 + 8009dfe: 431a orrs r2, r3 + 8009e00: 687b ldr r3, [r7, #4] + 8009e02: 68db ldr r3, [r3, #12] + 8009e04: 061b lsls r3, r3, #24 + 8009e06: 431a orrs r2, r3 + 8009e08: 68fb ldr r3, [r7, #12] + 8009e0a: 071b lsls r3, r3, #28 + 8009e0c: 493d ldr r1, [pc, #244] ; (8009f04 ) + 8009e0e: 4313 orrs r3, r2 + 8009e10: f8c1 3084 str.w r3, [r1, #132] ; 0x84 /* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */ __HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLI2SDivQ); - 8009e10: 4b3b ldr r3, [pc, #236] ; (8009f00 ) - 8009e12: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8009e16: f023 021f bic.w r2, r3, #31 - 8009e1a: 687b ldr r3, [r7, #4] - 8009e1c: 6a5b ldr r3, [r3, #36] ; 0x24 - 8009e1e: 3b01 subs r3, #1 - 8009e20: 4937 ldr r1, [pc, #220] ; (8009f00 ) - 8009e22: 4313 orrs r3, r2 - 8009e24: f8c1 308c str.w r3, [r1, #140] ; 0x8c + 8009e14: 4b3b ldr r3, [pc, #236] ; (8009f04 ) + 8009e16: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 8009e1a: f023 021f bic.w r2, r3, #31 + 8009e1e: 687b ldr r3, [r7, #4] + 8009e20: 6a5b ldr r3, [r3, #36] ; 0x24 + 8009e22: 3b01 subs r3, #1 + 8009e24: 4937 ldr r1, [pc, #220] ; (8009f04 ) + 8009e26: 4313 orrs r3, r2 + 8009e28: f8c1 308c str.w r3, [r1, #140] ; 0x8c } /*----------------- In Case of PLLI2S is selected as source clock for SPDIF-RX -------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) - 8009e28: 687b ldr r3, [r7, #4] - 8009e2a: 681b ldr r3, [r3, #0] - 8009e2c: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 - 8009e30: 2b00 cmp r3, #0 - 8009e32: d01d beq.n 8009e70 + 8009e2c: 687b ldr r3, [r7, #4] + 8009e2e: 681b ldr r3, [r3, #0] + 8009e30: f003 7380 and.w r3, r3, #16777216 ; 0x1000000 + 8009e34: 2b00 cmp r3, #0 + 8009e36: d01d beq.n 8009e74 { /* check for Parameters */ assert_param(IS_RCC_PLLI2SP_VALUE(PeriphClkInit->PLLI2S.PLLI2SP)); /* Read PLLI2SR value from PLLI2SCFGR register (this value is not needed for SPDIF-RX configuration) */ tmpreg0 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); - 8009e34: 4b32 ldr r3, [pc, #200] ; (8009f00 ) - 8009e36: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8009e3a: 0e1b lsrs r3, r3, #24 - 8009e3c: f003 030f and.w r3, r3, #15 - 8009e40: 613b str r3, [r7, #16] + 8009e38: 4b32 ldr r3, [pc, #200] ; (8009f04 ) + 8009e3a: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8009e3e: 0e1b lsrs r3, r3, #24 + 8009e40: f003 030f and.w r3, r3, #15 + 8009e44: 613b str r3, [r7, #16] tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); - 8009e42: 4b2f ldr r3, [pc, #188] ; (8009f00 ) - 8009e44: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8009e48: 0f1b lsrs r3, r3, #28 - 8009e4a: f003 0307 and.w r3, r3, #7 - 8009e4e: 60fb str r3, [r7, #12] + 8009e46: 4b2f ldr r3, [pc, #188] ; (8009f04 ) + 8009e48: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8009e4c: 0f1b lsrs r3, r3, #28 + 8009e4e: f003 0307 and.w r3, r3, #7 + 8009e52: 60fb str r3, [r7, #12] /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLM) */ /* SPDIFCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SP */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SP, tmpreg0, tmpreg1); - 8009e50: 687b ldr r3, [r7, #4] - 8009e52: 685b ldr r3, [r3, #4] - 8009e54: 019a lsls r2, r3, #6 - 8009e56: 687b ldr r3, [r7, #4] - 8009e58: 691b ldr r3, [r3, #16] - 8009e5a: 041b lsls r3, r3, #16 - 8009e5c: 431a orrs r2, r3 - 8009e5e: 693b ldr r3, [r7, #16] - 8009e60: 061b lsls r3, r3, #24 - 8009e62: 431a orrs r2, r3 - 8009e64: 68fb ldr r3, [r7, #12] - 8009e66: 071b lsls r3, r3, #28 - 8009e68: 4925 ldr r1, [pc, #148] ; (8009f00 ) - 8009e6a: 4313 orrs r3, r2 - 8009e6c: f8c1 3084 str.w r3, [r1, #132] ; 0x84 + 8009e54: 687b ldr r3, [r7, #4] + 8009e56: 685b ldr r3, [r3, #4] + 8009e58: 019a lsls r2, r3, #6 + 8009e5a: 687b ldr r3, [r7, #4] + 8009e5c: 691b ldr r3, [r3, #16] + 8009e5e: 041b lsls r3, r3, #16 + 8009e60: 431a orrs r2, r3 + 8009e62: 693b ldr r3, [r7, #16] + 8009e64: 061b lsls r3, r3, #24 + 8009e66: 431a orrs r2, r3 + 8009e68: 68fb ldr r3, [r7, #12] + 8009e6a: 071b lsls r3, r3, #28 + 8009e6c: 4925 ldr r1, [pc, #148] ; (8009f04 ) + 8009e6e: 4313 orrs r3, r2 + 8009e70: f8c1 3084 str.w r3, [r1, #132] ; 0x84 } /*----------------- In Case of PLLI2S is just selected -----------------*/ if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S) - 8009e70: 687b ldr r3, [r7, #4] - 8009e72: 681b ldr r3, [r3, #0] - 8009e74: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 8009e78: 2b00 cmp r3, #0 - 8009e7a: d011 beq.n 8009ea0 + 8009e74: 687b ldr r3, [r7, #4] + 8009e76: 681b ldr r3, [r3, #0] + 8009e78: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 8009e7c: 2b00 cmp r3, #0 + 8009e7e: d011 beq.n 8009ea4 assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLI2SM) */ /* SPDIFRXCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SP */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SP, PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); - 8009e7c: 687b ldr r3, [r7, #4] - 8009e7e: 685b ldr r3, [r3, #4] - 8009e80: 019a lsls r2, r3, #6 - 8009e82: 687b ldr r3, [r7, #4] - 8009e84: 691b ldr r3, [r3, #16] - 8009e86: 041b lsls r3, r3, #16 - 8009e88: 431a orrs r2, r3 - 8009e8a: 687b ldr r3, [r7, #4] - 8009e8c: 68db ldr r3, [r3, #12] - 8009e8e: 061b lsls r3, r3, #24 - 8009e90: 431a orrs r2, r3 - 8009e92: 687b ldr r3, [r7, #4] - 8009e94: 689b ldr r3, [r3, #8] - 8009e96: 071b lsls r3, r3, #28 - 8009e98: 4919 ldr r1, [pc, #100] ; (8009f00 ) - 8009e9a: 4313 orrs r3, r2 - 8009e9c: f8c1 3084 str.w r3, [r1, #132] ; 0x84 + 8009e80: 687b ldr r3, [r7, #4] + 8009e82: 685b ldr r3, [r3, #4] + 8009e84: 019a lsls r2, r3, #6 + 8009e86: 687b ldr r3, [r7, #4] + 8009e88: 691b ldr r3, [r3, #16] + 8009e8a: 041b lsls r3, r3, #16 + 8009e8c: 431a orrs r2, r3 + 8009e8e: 687b ldr r3, [r7, #4] + 8009e90: 68db ldr r3, [r3, #12] + 8009e92: 061b lsls r3, r3, #24 + 8009e94: 431a orrs r2, r3 + 8009e96: 687b ldr r3, [r7, #4] + 8009e98: 689b ldr r3, [r3, #8] + 8009e9a: 071b lsls r3, r3, #28 + 8009e9c: 4919 ldr r1, [pc, #100] ; (8009f04 ) + 8009e9e: 4313 orrs r3, r2 + 8009ea0: f8c1 3084 str.w r3, [r1, #132] ; 0x84 } /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); - 8009ea0: 4b17 ldr r3, [pc, #92] ; (8009f00 ) - 8009ea2: 681b ldr r3, [r3, #0] - 8009ea4: 4a16 ldr r2, [pc, #88] ; (8009f00 ) - 8009ea6: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 8009eaa: 6013 str r3, [r2, #0] + 8009ea4: 4b17 ldr r3, [pc, #92] ; (8009f04 ) + 8009ea6: 681b ldr r3, [r3, #0] + 8009ea8: 4a16 ldr r2, [pc, #88] ; (8009f04 ) + 8009eaa: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 + 8009eae: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009eac: f7fb f808 bl 8004ec0 - 8009eb0: 6178 str r0, [r7, #20] + 8009eb0: f7fb f808 bl 8004ec4 + 8009eb4: 6178 str r0, [r7, #20] /* Wait till PLLI2S is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 8009eb2: e008 b.n 8009ec6 + 8009eb6: e008 b.n 8009eca { if((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 8009eb4: f7fb f804 bl 8004ec0 - 8009eb8: 4602 mov r2, r0 - 8009eba: 697b ldr r3, [r7, #20] - 8009ebc: 1ad3 subs r3, r2, r3 - 8009ebe: 2b64 cmp r3, #100 ; 0x64 - 8009ec0: d901 bls.n 8009ec6 + 8009eb8: f7fb f804 bl 8004ec4 + 8009ebc: 4602 mov r2, r0 + 8009ebe: 697b ldr r3, [r7, #20] + 8009ec0: 1ad3 subs r3, r2, r3 + 8009ec2: 2b64 cmp r3, #100 ; 0x64 + 8009ec4: d901 bls.n 8009eca { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8009ec2: 2303 movs r3, #3 - 8009ec4: e0d7 b.n 800a076 + 8009ec6: 2303 movs r3, #3 + 8009ec8: e0d7 b.n 800a07a while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 8009ec6: 4b0e ldr r3, [pc, #56] ; (8009f00 ) - 8009ec8: 681b ldr r3, [r3, #0] - 8009eca: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 8009ece: 2b00 cmp r3, #0 - 8009ed0: d0f0 beq.n 8009eb4 + 8009eca: 4b0e ldr r3, [pc, #56] ; (8009f04 ) + 8009ecc: 681b ldr r3, [r3, #0] + 8009ece: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 8009ed2: 2b00 cmp r3, #0 + 8009ed4: d0f0 beq.n 8009eb8 } } /*-------------------------------------- PLLSAI Configuration ---------------------------------*/ /* PLLSAI is configured when a peripheral will use it as source clock : SAI1, SAI2, LTDC or CK48 */ if(pllsaiused == 1) - 8009ed2: 69bb ldr r3, [r7, #24] - 8009ed4: 2b01 cmp r3, #1 - 8009ed6: f040 80cd bne.w 800a074 + 8009ed6: 69bb ldr r3, [r7, #24] + 8009ed8: 2b01 cmp r3, #1 + 8009eda: f040 80cd bne.w 800a078 { /* Disable PLLSAI Clock */ __HAL_RCC_PLLSAI_DISABLE(); - 8009eda: 4b09 ldr r3, [pc, #36] ; (8009f00 ) - 8009edc: 681b ldr r3, [r3, #0] - 8009ede: 4a08 ldr r2, [pc, #32] ; (8009f00 ) - 8009ee0: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 - 8009ee4: 6013 str r3, [r2, #0] + 8009ede: 4b09 ldr r3, [pc, #36] ; (8009f04 ) + 8009ee0: 681b ldr r3, [r3, #0] + 8009ee2: 4a08 ldr r2, [pc, #32] ; (8009f04 ) + 8009ee4: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 + 8009ee8: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8009ee6: f7fa ffeb bl 8004ec0 - 8009eea: 6178 str r0, [r7, #20] + 8009eea: f7fa ffeb bl 8004ec4 + 8009eee: 6178 str r0, [r7, #20] /* Wait till PLLSAI is disabled */ while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET) - 8009eec: e00a b.n 8009f04 + 8009ef0: e00a b.n 8009f08 { if((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) - 8009eee: f7fa ffe7 bl 8004ec0 - 8009ef2: 4602 mov r2, r0 - 8009ef4: 697b ldr r3, [r7, #20] - 8009ef6: 1ad3 subs r3, r2, r3 - 8009ef8: 2b64 cmp r3, #100 ; 0x64 - 8009efa: d903 bls.n 8009f04 + 8009ef2: f7fa ffe7 bl 8004ec4 + 8009ef6: 4602 mov r2, r0 + 8009ef8: 697b ldr r3, [r7, #20] + 8009efa: 1ad3 subs r3, r2, r3 + 8009efc: 2b64 cmp r3, #100 ; 0x64 + 8009efe: d903 bls.n 8009f08 { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8009efc: 2303 movs r3, #3 - 8009efe: e0ba b.n 800a076 - 8009f00: 40023800 .word 0x40023800 + 8009f00: 2303 movs r3, #3 + 8009f02: e0ba b.n 800a07a + 8009f04: 40023800 .word 0x40023800 while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET) - 8009f04: 4b5e ldr r3, [pc, #376] ; (800a080 ) - 8009f06: 681b ldr r3, [r3, #0] - 8009f08: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 8009f0c: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 8009f10: d0ed beq.n 8009eee + 8009f08: 4b5e ldr r3, [pc, #376] ; (800a084 ) + 8009f0a: 681b ldr r3, [r3, #0] + 8009f0c: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 + 8009f10: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 + 8009f14: d0ed beq.n 8009ef2 /* Check the PLLSAI division factors */ assert_param(IS_RCC_PLLSAIN_VALUE(PeriphClkInit->PLLSAI.PLLSAIN)); /*----------------- In Case of PLLSAI is selected as source clock for SAI -------------------*/ if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) ||\ - 8009f12: 687b ldr r3, [r7, #4] - 8009f14: 681b ldr r3, [r3, #0] - 8009f16: f403 2300 and.w r3, r3, #524288 ; 0x80000 - 8009f1a: 2b00 cmp r3, #0 - 8009f1c: d003 beq.n 8009f26 - 8009f1e: 687b ldr r3, [r7, #4] - 8009f20: 6bdb ldr r3, [r3, #60] ; 0x3c - 8009f22: 2b00 cmp r3, #0 - 8009f24: d009 beq.n 8009f3a + 8009f16: 687b ldr r3, [r7, #4] + 8009f18: 681b ldr r3, [r3, #0] + 8009f1a: f403 2300 and.w r3, r3, #524288 ; 0x80000 + 8009f1e: 2b00 cmp r3, #0 + 8009f20: d003 beq.n 8009f2a + 8009f22: 687b ldr r3, [r7, #4] + 8009f24: 6bdb ldr r3, [r3, #60] ; 0x3c + 8009f26: 2b00 cmp r3, #0 + 8009f28: d009 beq.n 8009f3e ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) - 8009f26: 687b ldr r3, [r7, #4] - 8009f28: 681b ldr r3, [r3, #0] - 8009f2a: f403 1380 and.w r3, r3, #1048576 ; 0x100000 + 8009f2a: 687b ldr r3, [r7, #4] + 8009f2c: 681b ldr r3, [r3, #0] + 8009f2e: f403 1380 and.w r3, r3, #1048576 ; 0x100000 if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) ||\ - 8009f2e: 2b00 cmp r3, #0 - 8009f30: d02e beq.n 8009f90 + 8009f32: 2b00 cmp r3, #0 + 8009f34: d02e beq.n 8009f94 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) - 8009f32: 687b ldr r3, [r7, #4] - 8009f34: 6c1b ldr r3, [r3, #64] ; 0x40 - 8009f36: 2b00 cmp r3, #0 - 8009f38: d12a bne.n 8009f90 + 8009f36: 687b ldr r3, [r7, #4] + 8009f38: 6c1b ldr r3, [r3, #64] ; 0x40 + 8009f3a: 2b00 cmp r3, #0 + 8009f3c: d12a bne.n 8009f94 assert_param(IS_RCC_PLLSAIQ_VALUE(PeriphClkInit->PLLSAI.PLLSAIQ)); /* check for PLLSAI/DIVQ Parameter */ assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(PeriphClkInit->PLLSAIDivQ)); /* Read PLLSAIP value from PLLSAICFGR register (this value is not needed for SAI configuration) */ tmpreg0 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos); - 8009f3a: 4b51 ldr r3, [pc, #324] ; (800a080 ) - 8009f3c: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8009f40: 0c1b lsrs r3, r3, #16 - 8009f42: f003 0303 and.w r3, r3, #3 - 8009f46: 613b str r3, [r7, #16] + 8009f3e: 4b51 ldr r3, [pc, #324] ; (800a084 ) + 8009f40: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8009f44: 0c1b lsrs r3, r3, #16 + 8009f46: f003 0303 and.w r3, r3, #3 + 8009f4a: 613b str r3, [r7, #16] tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); - 8009f48: 4b4d ldr r3, [pc, #308] ; (800a080 ) - 8009f4a: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8009f4e: 0f1b lsrs r3, r3, #28 - 8009f50: f003 0307 and.w r3, r3, #7 - 8009f54: 60fb str r3, [r7, #12] + 8009f4c: 4b4d ldr r3, [pc, #308] ; (800a084 ) + 8009f4e: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8009f52: 0f1b lsrs r3, r3, #28 + 8009f54: f003 0307 and.w r3, r3, #7 + 8009f58: 60fb str r3, [r7, #12] /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* SAI_CLK(first level) = PLLSAI_VCO Output/PLLSAIQ */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , tmpreg0, PeriphClkInit->PLLSAI.PLLSAIQ, tmpreg1); - 8009f56: 687b ldr r3, [r7, #4] - 8009f58: 695b ldr r3, [r3, #20] - 8009f5a: 019a lsls r2, r3, #6 - 8009f5c: 693b ldr r3, [r7, #16] - 8009f5e: 041b lsls r3, r3, #16 - 8009f60: 431a orrs r2, r3 - 8009f62: 687b ldr r3, [r7, #4] - 8009f64: 699b ldr r3, [r3, #24] - 8009f66: 061b lsls r3, r3, #24 - 8009f68: 431a orrs r2, r3 - 8009f6a: 68fb ldr r3, [r7, #12] - 8009f6c: 071b lsls r3, r3, #28 - 8009f6e: 4944 ldr r1, [pc, #272] ; (800a080 ) - 8009f70: 4313 orrs r3, r2 - 8009f72: f8c1 3088 str.w r3, [r1, #136] ; 0x88 + 8009f5a: 687b ldr r3, [r7, #4] + 8009f5c: 695b ldr r3, [r3, #20] + 8009f5e: 019a lsls r2, r3, #6 + 8009f60: 693b ldr r3, [r7, #16] + 8009f62: 041b lsls r3, r3, #16 + 8009f64: 431a orrs r2, r3 + 8009f66: 687b ldr r3, [r7, #4] + 8009f68: 699b ldr r3, [r3, #24] + 8009f6a: 061b lsls r3, r3, #24 + 8009f6c: 431a orrs r2, r3 + 8009f6e: 68fb ldr r3, [r7, #12] + 8009f70: 071b lsls r3, r3, #28 + 8009f72: 4944 ldr r1, [pc, #272] ; (800a084 ) + 8009f74: 4313 orrs r3, r2 + 8009f76: f8c1 3088 str.w r3, [r1, #136] ; 0x88 /* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */ __HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLSAIDivQ); - 8009f76: 4b42 ldr r3, [pc, #264] ; (800a080 ) - 8009f78: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8009f7c: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00 - 8009f80: 687b ldr r3, [r7, #4] - 8009f82: 6a9b ldr r3, [r3, #40] ; 0x28 - 8009f84: 3b01 subs r3, #1 - 8009f86: 021b lsls r3, r3, #8 - 8009f88: 493d ldr r1, [pc, #244] ; (800a080 ) - 8009f8a: 4313 orrs r3, r2 - 8009f8c: f8c1 308c str.w r3, [r1, #140] ; 0x8c + 8009f7a: 4b42 ldr r3, [pc, #264] ; (800a084 ) + 8009f7c: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 8009f80: f423 52f8 bic.w r2, r3, #7936 ; 0x1f00 + 8009f84: 687b ldr r3, [r7, #4] + 8009f86: 6a9b ldr r3, [r3, #40] ; 0x28 + 8009f88: 3b01 subs r3, #1 + 8009f8a: 021b lsls r3, r3, #8 + 8009f8c: 493d ldr r1, [pc, #244] ; (800a084 ) + 8009f8e: 4313 orrs r3, r2 + 8009f90: f8c1 308c str.w r3, [r1, #140] ; 0x8c } /*----------------- In Case of PLLSAI is selected as source clock for CLK48 -------------------*/ /* In Case of PLLI2S is selected as source clock for CK48 */ if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48SOURCE_PLLSAIP)) - 8009f90: 687b ldr r3, [r7, #4] - 8009f92: 681b ldr r3, [r3, #0] - 8009f94: f403 1300 and.w r3, r3, #2097152 ; 0x200000 - 8009f98: 2b00 cmp r3, #0 - 8009f9a: d022 beq.n 8009fe2 - 8009f9c: 687b ldr r3, [r7, #4] - 8009f9e: 6fdb ldr r3, [r3, #124] ; 0x7c - 8009fa0: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 - 8009fa4: d11d bne.n 8009fe2 + 8009f94: 687b ldr r3, [r7, #4] + 8009f96: 681b ldr r3, [r3, #0] + 8009f98: f403 1300 and.w r3, r3, #2097152 ; 0x200000 + 8009f9c: 2b00 cmp r3, #0 + 8009f9e: d022 beq.n 8009fe6 + 8009fa0: 687b ldr r3, [r7, #4] + 8009fa2: 6fdb ldr r3, [r3, #124] ; 0x7c + 8009fa4: f1b3 6f00 cmp.w r3, #134217728 ; 0x8000000 + 8009fa8: d11d bne.n 8009fe6 { /* check for Parameters */ assert_param(IS_RCC_PLLSAIP_VALUE(PeriphClkInit->PLLSAI.PLLSAIP)); /* Read PLLSAIQ and PLLSAIR value from PLLSAICFGR register (this value is not needed for CK48 configuration) */ tmpreg0 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); - 8009fa6: 4b36 ldr r3, [pc, #216] ; (800a080 ) - 8009fa8: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8009fac: 0e1b lsrs r3, r3, #24 - 8009fae: f003 030f and.w r3, r3, #15 - 8009fb2: 613b str r3, [r7, #16] + 8009faa: 4b36 ldr r3, [pc, #216] ; (800a084 ) + 8009fac: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8009fb0: 0e1b lsrs r3, r3, #24 + 8009fb2: f003 030f and.w r3, r3, #15 + 8009fb6: 613b str r3, [r7, #16] tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos); - 8009fb4: 4b32 ldr r3, [pc, #200] ; (800a080 ) - 8009fb6: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8009fba: 0f1b lsrs r3, r3, #28 - 8009fbc: f003 0307 and.w r3, r3, #7 - 8009fc0: 60fb str r3, [r7, #12] + 8009fb8: 4b32 ldr r3, [pc, #200] ; (800a084 ) + 8009fba: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8009fbe: 0f1b lsrs r3, r3, #28 + 8009fc0: f003 0307 and.w r3, r3, #7 + 8009fc4: 60fb str r3, [r7, #12] /* Configure the PLLSAI division factors */ /* PLLSAI_VCO = f(VCO clock) = f(PLLSAI clock input) x (PLLI2SN/PLLM) */ /* 48CLK = f(PLLSAI clock output) = f(VCO clock) / PLLSAIP */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , PeriphClkInit->PLLSAI.PLLSAIP, tmpreg0, tmpreg1); - 8009fc2: 687b ldr r3, [r7, #4] - 8009fc4: 695b ldr r3, [r3, #20] - 8009fc6: 019a lsls r2, r3, #6 - 8009fc8: 687b ldr r3, [r7, #4] - 8009fca: 6a1b ldr r3, [r3, #32] - 8009fcc: 041b lsls r3, r3, #16 - 8009fce: 431a orrs r2, r3 - 8009fd0: 693b ldr r3, [r7, #16] - 8009fd2: 061b lsls r3, r3, #24 - 8009fd4: 431a orrs r2, r3 - 8009fd6: 68fb ldr r3, [r7, #12] - 8009fd8: 071b lsls r3, r3, #28 - 8009fda: 4929 ldr r1, [pc, #164] ; (800a080 ) - 8009fdc: 4313 orrs r3, r2 - 8009fde: f8c1 3088 str.w r3, [r1, #136] ; 0x88 + 8009fc6: 687b ldr r3, [r7, #4] + 8009fc8: 695b ldr r3, [r3, #20] + 8009fca: 019a lsls r2, r3, #6 + 8009fcc: 687b ldr r3, [r7, #4] + 8009fce: 6a1b ldr r3, [r3, #32] + 8009fd0: 041b lsls r3, r3, #16 + 8009fd2: 431a orrs r2, r3 + 8009fd4: 693b ldr r3, [r7, #16] + 8009fd6: 061b lsls r3, r3, #24 + 8009fd8: 431a orrs r2, r3 + 8009fda: 68fb ldr r3, [r7, #12] + 8009fdc: 071b lsls r3, r3, #28 + 8009fde: 4929 ldr r1, [pc, #164] ; (800a084 ) + 8009fe0: 4313 orrs r3, r2 + 8009fe2: f8c1 3088 str.w r3, [r1, #136] ; 0x88 } #if defined(STM32F746xx) || defined(STM32F756xx) || defined (STM32F767xx) || defined (STM32F769xx) || defined (STM32F777xx) || defined (STM32F779xx) || defined (STM32F750xx) /*---------------------------- LTDC configuration -------------------------------*/ if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == (RCC_PERIPHCLK_LTDC)) - 8009fe2: 687b ldr r3, [r7, #4] - 8009fe4: 681b ldr r3, [r3, #0] - 8009fe6: f003 0308 and.w r3, r3, #8 - 8009fea: 2b00 cmp r3, #0 - 8009fec: d028 beq.n 800a040 + 8009fe6: 687b ldr r3, [r7, #4] + 8009fe8: 681b ldr r3, [r3, #0] + 8009fea: f003 0308 and.w r3, r3, #8 + 8009fee: 2b00 cmp r3, #0 + 8009ff0: d028 beq.n 800a044 { assert_param(IS_RCC_PLLSAIR_VALUE(PeriphClkInit->PLLSAI.PLLSAIR)); assert_param(IS_RCC_PLLSAI_DIVR_VALUE(PeriphClkInit->PLLSAIDivR)); /* Read PLLSAIP and PLLSAIQ value from PLLSAICFGR register (these value are not needed for LTDC configuration) */ tmpreg0 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); - 8009fee: 4b24 ldr r3, [pc, #144] ; (800a080 ) - 8009ff0: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 8009ff4: 0e1b lsrs r3, r3, #24 - 8009ff6: f003 030f and.w r3, r3, #15 - 8009ffa: 613b str r3, [r7, #16] + 8009ff2: 4b24 ldr r3, [pc, #144] ; (800a084 ) + 8009ff4: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 8009ff8: 0e1b lsrs r3, r3, #24 + 8009ffa: f003 030f and.w r3, r3, #15 + 8009ffe: 613b str r3, [r7, #16] tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos); - 8009ffc: 4b20 ldr r3, [pc, #128] ; (800a080 ) - 8009ffe: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 800a002: 0c1b lsrs r3, r3, #16 - 800a004: f003 0303 and.w r3, r3, #3 - 800a008: 60fb str r3, [r7, #12] + 800a000: 4b20 ldr r3, [pc, #128] ; (800a084 ) + 800a002: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 800a006: 0c1b lsrs r3, r3, #16 + 800a008: f003 0303 and.w r3, r3, #3 + 800a00c: 60fb str r3, [r7, #12] /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* LTDC_CLK(first level) = PLLSAI_VCO Output/PLLSAIR */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , tmpreg1, tmpreg0, PeriphClkInit->PLLSAI.PLLSAIR); - 800a00a: 687b ldr r3, [r7, #4] - 800a00c: 695b ldr r3, [r3, #20] - 800a00e: 019a lsls r2, r3, #6 - 800a010: 68fb ldr r3, [r7, #12] - 800a012: 041b lsls r3, r3, #16 - 800a014: 431a orrs r2, r3 - 800a016: 693b ldr r3, [r7, #16] - 800a018: 061b lsls r3, r3, #24 - 800a01a: 431a orrs r2, r3 - 800a01c: 687b ldr r3, [r7, #4] - 800a01e: 69db ldr r3, [r3, #28] - 800a020: 071b lsls r3, r3, #28 - 800a022: 4917 ldr r1, [pc, #92] ; (800a080 ) - 800a024: 4313 orrs r3, r2 - 800a026: f8c1 3088 str.w r3, [r1, #136] ; 0x88 + 800a00e: 687b ldr r3, [r7, #4] + 800a010: 695b ldr r3, [r3, #20] + 800a012: 019a lsls r2, r3, #6 + 800a014: 68fb ldr r3, [r7, #12] + 800a016: 041b lsls r3, r3, #16 + 800a018: 431a orrs r2, r3 + 800a01a: 693b ldr r3, [r7, #16] + 800a01c: 061b lsls r3, r3, #24 + 800a01e: 431a orrs r2, r3 + 800a020: 687b ldr r3, [r7, #4] + 800a022: 69db ldr r3, [r3, #28] + 800a024: 071b lsls r3, r3, #28 + 800a026: 4917 ldr r1, [pc, #92] ; (800a084 ) + 800a028: 4313 orrs r3, r2 + 800a02a: f8c1 3088 str.w r3, [r1, #136] ; 0x88 /* LTDC_CLK = LTDC_CLK(first level)/PLLSAIDIVR */ __HAL_RCC_PLLSAI_PLLSAICLKDIVR_CONFIG(PeriphClkInit->PLLSAIDivR); - 800a02a: 4b15 ldr r3, [pc, #84] ; (800a080 ) - 800a02c: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 800a030: f423 3240 bic.w r2, r3, #196608 ; 0x30000 - 800a034: 687b ldr r3, [r7, #4] - 800a036: 6adb ldr r3, [r3, #44] ; 0x2c - 800a038: 4911 ldr r1, [pc, #68] ; (800a080 ) - 800a03a: 4313 orrs r3, r2 - 800a03c: f8c1 308c str.w r3, [r1, #140] ; 0x8c + 800a02e: 4b15 ldr r3, [pc, #84] ; (800a084 ) + 800a030: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 800a034: f423 3240 bic.w r2, r3, #196608 ; 0x30000 + 800a038: 687b ldr r3, [r7, #4] + 800a03a: 6adb ldr r3, [r3, #44] ; 0x2c + 800a03c: 4911 ldr r1, [pc, #68] ; (800a084 ) + 800a03e: 4313 orrs r3, r2 + 800a040: f8c1 308c str.w r3, [r1, #140] ; 0x8c } #endif /* STM32F746xx || STM32F756xx || STM32F767xx || STM32F769xx || STM32F777xx || STM32F779xx || STM32F750xx */ /* Enable PLLSAI Clock */ __HAL_RCC_PLLSAI_ENABLE(); - 800a040: 4b0f ldr r3, [pc, #60] ; (800a080 ) - 800a042: 681b ldr r3, [r3, #0] - 800a044: 4a0e ldr r2, [pc, #56] ; (800a080 ) - 800a046: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 - 800a04a: 6013 str r3, [r2, #0] + 800a044: 4b0f ldr r3, [pc, #60] ; (800a084 ) + 800a046: 681b ldr r3, [r3, #0] + 800a048: 4a0e ldr r2, [pc, #56] ; (800a084 ) + 800a04a: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 + 800a04e: 6013 str r3, [r2, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 800a04c: f7fa ff38 bl 8004ec0 - 800a050: 6178 str r0, [r7, #20] + 800a050: f7fa ff38 bl 8004ec4 + 800a054: 6178 str r0, [r7, #20] /* Wait till PLLSAI is ready */ while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET) - 800a052: e008 b.n 800a066 + 800a056: e008 b.n 800a06a { if((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) - 800a054: f7fa ff34 bl 8004ec0 - 800a058: 4602 mov r2, r0 - 800a05a: 697b ldr r3, [r7, #20] - 800a05c: 1ad3 subs r3, r2, r3 - 800a05e: 2b64 cmp r3, #100 ; 0x64 - 800a060: d901 bls.n 800a066 + 800a058: f7fa ff34 bl 8004ec4 + 800a05c: 4602 mov r2, r0 + 800a05e: 697b ldr r3, [r7, #20] + 800a060: 1ad3 subs r3, r2, r3 + 800a062: 2b64 cmp r3, #100 ; 0x64 + 800a064: d901 bls.n 800a06a { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 800a062: 2303 movs r3, #3 - 800a064: e007 b.n 800a076 + 800a066: 2303 movs r3, #3 + 800a068: e007 b.n 800a07a while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET) - 800a066: 4b06 ldr r3, [pc, #24] ; (800a080 ) - 800a068: 681b ldr r3, [r3, #0] - 800a06a: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 - 800a06e: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 - 800a072: d1ef bne.n 800a054 + 800a06a: 4b06 ldr r3, [pc, #24] ; (800a084 ) + 800a06c: 681b ldr r3, [r3, #0] + 800a06e: f003 5300 and.w r3, r3, #536870912 ; 0x20000000 + 800a072: f1b3 5f00 cmp.w r3, #536870912 ; 0x20000000 + 800a076: d1ef bne.n 800a058 } } } return HAL_OK; - 800a074: 2300 movs r3, #0 + 800a078: 2300 movs r3, #0 } - 800a076: 4618 mov r0, r3 - 800a078: 3720 adds r7, #32 - 800a07a: 46bd mov sp, r7 - 800a07c: bd80 pop {r7, pc} - 800a07e: bf00 nop - 800a080: 40023800 .word 0x40023800 + 800a07a: 4618 mov r0, r3 + 800a07c: 3720 adds r7, #32 + 800a07e: 46bd mov sp, r7 + 800a080: bd80 pop {r7, pc} + 800a082: bf00 nop + 800a084: 40023800 .word 0x40023800 -0800a084 : +0800a088 : * @param hrng pointer to a RNG_HandleTypeDef structure that contains * the configuration information for RNG. * @retval HAL status */ HAL_StatusTypeDef HAL_RNG_Init(RNG_HandleTypeDef *hrng) { - 800a084: b580 push {r7, lr} - 800a086: b082 sub sp, #8 - 800a088: af00 add r7, sp, #0 - 800a08a: 6078 str r0, [r7, #4] + 800a088: b580 push {r7, lr} + 800a08a: b082 sub sp, #8 + 800a08c: af00 add r7, sp, #0 + 800a08e: 6078 str r0, [r7, #4] /* Check the RNG handle allocation */ if (hrng == NULL) - 800a08c: 687b ldr r3, [r7, #4] - 800a08e: 2b00 cmp r3, #0 - 800a090: d101 bne.n 800a096 + 800a090: 687b ldr r3, [r7, #4] + 800a092: 2b00 cmp r3, #0 + 800a094: d101 bne.n 800a09a { return HAL_ERROR; - 800a092: 2301 movs r3, #1 - 800a094: e01c b.n 800a0d0 + 800a096: 2301 movs r3, #1 + 800a098: e01c b.n 800a0d4 /* Init the low level hardware */ hrng->MspInitCallback(hrng); } #else if (hrng->State == HAL_RNG_STATE_RESET) - 800a096: 687b ldr r3, [r7, #4] - 800a098: 795b ldrb r3, [r3, #5] - 800a09a: b2db uxtb r3, r3 - 800a09c: 2b00 cmp r3, #0 - 800a09e: d105 bne.n 800a0ac + 800a09a: 687b ldr r3, [r7, #4] + 800a09c: 795b ldrb r3, [r3, #5] + 800a09e: b2db uxtb r3, r3 + 800a0a0: 2b00 cmp r3, #0 + 800a0a2: d105 bne.n 800a0b0 { /* Allocate lock resource and initialize it */ hrng->Lock = HAL_UNLOCKED; - 800a0a0: 687b ldr r3, [r7, #4] - 800a0a2: 2200 movs r2, #0 - 800a0a4: 711a strb r2, [r3, #4] + 800a0a4: 687b ldr r3, [r7, #4] + 800a0a6: 2200 movs r2, #0 + 800a0a8: 711a strb r2, [r3, #4] /* Init the low level hardware */ HAL_RNG_MspInit(hrng); - 800a0a6: 6878 ldr r0, [r7, #4] - 800a0a8: f7fa fa9c bl 80045e4 + 800a0aa: 6878 ldr r0, [r7, #4] + 800a0ac: f7fa fa9c bl 80045e8 } #endif /* USE_HAL_RNG_REGISTER_CALLBACKS */ /* Change RNG peripheral state */ hrng->State = HAL_RNG_STATE_BUSY; - 800a0ac: 687b ldr r3, [r7, #4] - 800a0ae: 2202 movs r2, #2 - 800a0b0: 715a strb r2, [r3, #5] + 800a0b0: 687b ldr r3, [r7, #4] + 800a0b2: 2202 movs r2, #2 + 800a0b4: 715a strb r2, [r3, #5] /* Enable the RNG Peripheral */ __HAL_RNG_ENABLE(hrng); - 800a0b2: 687b ldr r3, [r7, #4] - 800a0b4: 681b ldr r3, [r3, #0] - 800a0b6: 681a ldr r2, [r3, #0] - 800a0b8: 687b ldr r3, [r7, #4] - 800a0ba: 681b ldr r3, [r3, #0] - 800a0bc: f042 0204 orr.w r2, r2, #4 - 800a0c0: 601a str r2, [r3, #0] + 800a0b6: 687b ldr r3, [r7, #4] + 800a0b8: 681b ldr r3, [r3, #0] + 800a0ba: 681a ldr r2, [r3, #0] + 800a0bc: 687b ldr r3, [r7, #4] + 800a0be: 681b ldr r3, [r3, #0] + 800a0c0: f042 0204 orr.w r2, r2, #4 + 800a0c4: 601a str r2, [r3, #0] /* Initialize the RNG state */ hrng->State = HAL_RNG_STATE_READY; - 800a0c2: 687b ldr r3, [r7, #4] - 800a0c4: 2201 movs r2, #1 - 800a0c6: 715a strb r2, [r3, #5] + 800a0c6: 687b ldr r3, [r7, #4] + 800a0c8: 2201 movs r2, #1 + 800a0ca: 715a strb r2, [r3, #5] /* Initialise the error code */ hrng->ErrorCode = HAL_RNG_ERROR_NONE; - 800a0c8: 687b ldr r3, [r7, #4] - 800a0ca: 2200 movs r2, #0 - 800a0cc: 609a str r2, [r3, #8] + 800a0cc: 687b ldr r3, [r7, #4] + 800a0ce: 2200 movs r2, #0 + 800a0d0: 609a str r2, [r3, #8] /* Return function status */ return HAL_OK; - 800a0ce: 2300 movs r3, #0 + 800a0d2: 2300 movs r3, #0 } - 800a0d0: 4618 mov r0, r3 - 800a0d2: 3708 adds r7, #8 - 800a0d4: 46bd mov sp, r7 - 800a0d6: bd80 pop {r7, pc} + 800a0d4: 4618 mov r0, r3 + 800a0d6: 3708 adds r7, #8 + 800a0d8: 46bd mov sp, r7 + 800a0da: bd80 pop {r7, pc} -0800a0d8 : +0800a0dc : * @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) { - 800a0d8: b580 push {r7, lr} - 800a0da: b082 sub sp, #8 - 800a0dc: af00 add r7, sp, #0 - 800a0de: 6078 str r0, [r7, #4] + 800a0dc: b580 push {r7, lr} + 800a0de: b082 sub sp, #8 + 800a0e0: af00 add r7, sp, #0 + 800a0e2: 6078 str r0, [r7, #4] /* Check the RTC peripheral state */ if(hrtc == NULL) - 800a0e0: 687b ldr r3, [r7, #4] - 800a0e2: 2b00 cmp r3, #0 - 800a0e4: d101 bne.n 800a0ea + 800a0e4: 687b ldr r3, [r7, #4] + 800a0e6: 2b00 cmp r3, #0 + 800a0e8: d101 bne.n 800a0ee { return HAL_ERROR; - 800a0e6: 2301 movs r3, #1 - 800a0e8: e06b b.n 800a1c2 + 800a0ea: 2301 movs r3, #1 + 800a0ec: e06b b.n 800a1c6 { hrtc->MspDeInitCallback = HAL_RTC_MspDeInit; } } #else if(hrtc->State == HAL_RTC_STATE_RESET) - 800a0ea: 687b ldr r3, [r7, #4] - 800a0ec: 7f5b ldrb r3, [r3, #29] - 800a0ee: b2db uxtb r3, r3 - 800a0f0: 2b00 cmp r3, #0 - 800a0f2: d105 bne.n 800a100 + 800a0ee: 687b ldr r3, [r7, #4] + 800a0f0: 7f5b ldrb r3, [r3, #29] + 800a0f2: b2db uxtb r3, r3 + 800a0f4: 2b00 cmp r3, #0 + 800a0f6: d105 bne.n 800a104 { /* Allocate lock resource and initialize it */ hrtc->Lock = HAL_UNLOCKED; - 800a0f4: 687b ldr r3, [r7, #4] - 800a0f6: 2200 movs r2, #0 - 800a0f8: 771a strb r2, [r3, #28] + 800a0f8: 687b ldr r3, [r7, #4] + 800a0fa: 2200 movs r2, #0 + 800a0fc: 771a strb r2, [r3, #28] /* Initialize RTC MSP */ HAL_RTC_MspInit(hrtc); - 800a0fa: 6878 ldr r0, [r7, #4] - 800a0fc: f7fa fa92 bl 8004624 + 800a0fe: 6878 ldr r0, [r7, #4] + 800a100: f7fa fa92 bl 8004628 } #endif /* (USE_HAL_RTC_REGISTER_CALLBACKS) */ /* Set RTC state */ hrtc->State = HAL_RTC_STATE_BUSY; - 800a100: 687b ldr r3, [r7, #4] - 800a102: 2202 movs r2, #2 - 800a104: 775a strb r2, [r3, #29] + 800a104: 687b ldr r3, [r7, #4] + 800a106: 2202 movs r2, #2 + 800a108: 775a strb r2, [r3, #29] /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); - 800a106: 687b ldr r3, [r7, #4] - 800a108: 681b ldr r3, [r3, #0] - 800a10a: 22ca movs r2, #202 ; 0xca - 800a10c: 625a str r2, [r3, #36] ; 0x24 - 800a10e: 687b ldr r3, [r7, #4] - 800a110: 681b ldr r3, [r3, #0] - 800a112: 2253 movs r2, #83 ; 0x53 - 800a114: 625a str r2, [r3, #36] ; 0x24 + 800a10a: 687b ldr r3, [r7, #4] + 800a10c: 681b ldr r3, [r3, #0] + 800a10e: 22ca movs r2, #202 ; 0xca + 800a110: 625a str r2, [r3, #36] ; 0x24 + 800a112: 687b ldr r3, [r7, #4] + 800a114: 681b ldr r3, [r3, #0] + 800a116: 2253 movs r2, #83 ; 0x53 + 800a118: 625a str r2, [r3, #36] ; 0x24 /* Set Initialization mode */ if(RTC_EnterInitMode(hrtc) != HAL_OK) - 800a116: 6878 ldr r0, [r7, #4] - 800a118: f000 fb00 bl 800a71c - 800a11c: 4603 mov r3, r0 - 800a11e: 2b00 cmp r3, #0 - 800a120: d008 beq.n 800a134 + 800a11a: 6878 ldr r0, [r7, #4] + 800a11c: f000 fb00 bl 800a720 + 800a120: 4603 mov r3, r0 + 800a122: 2b00 cmp r3, #0 + 800a124: d008 beq.n 800a138 { /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a122: 687b ldr r3, [r7, #4] - 800a124: 681b ldr r3, [r3, #0] - 800a126: 22ff movs r2, #255 ; 0xff - 800a128: 625a str r2, [r3, #36] ; 0x24 + 800a126: 687b ldr r3, [r7, #4] + 800a128: 681b ldr r3, [r3, #0] + 800a12a: 22ff movs r2, #255 ; 0xff + 800a12c: 625a str r2, [r3, #36] ; 0x24 /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; - 800a12a: 687b ldr r3, [r7, #4] - 800a12c: 2204 movs r2, #4 - 800a12e: 775a strb r2, [r3, #29] + 800a12e: 687b ldr r3, [r7, #4] + 800a130: 2204 movs r2, #4 + 800a132: 775a strb r2, [r3, #29] return HAL_ERROR; - 800a130: 2301 movs r3, #1 - 800a132: e046 b.n 800a1c2 + 800a134: 2301 movs r3, #1 + 800a136: e046 b.n 800a1c6 } else { /* Clear RTC_CR FMT, OSEL and POL Bits */ hrtc->Instance->CR &= ((uint32_t)~(RTC_CR_FMT | RTC_CR_OSEL | RTC_CR_POL)); - 800a134: 687b ldr r3, [r7, #4] - 800a136: 681b ldr r3, [r3, #0] - 800a138: 6899 ldr r1, [r3, #8] - 800a13a: 687b ldr r3, [r7, #4] - 800a13c: 681a ldr r2, [r3, #0] - 800a13e: 4b23 ldr r3, [pc, #140] ; (800a1cc ) - 800a140: 400b ands r3, r1 - 800a142: 6093 str r3, [r2, #8] + 800a138: 687b ldr r3, [r7, #4] + 800a13a: 681b ldr r3, [r3, #0] + 800a13c: 6899 ldr r1, [r3, #8] + 800a13e: 687b ldr r3, [r7, #4] + 800a140: 681a ldr r2, [r3, #0] + 800a142: 4b23 ldr r3, [pc, #140] ; (800a1d0 ) + 800a144: 400b ands r3, r1 + 800a146: 6093 str r3, [r2, #8] /* Set RTC_CR register */ hrtc->Instance->CR |= (uint32_t)(hrtc->Init.HourFormat | hrtc->Init.OutPut | hrtc->Init.OutPutPolarity); - 800a144: 687b ldr r3, [r7, #4] - 800a146: 681b ldr r3, [r3, #0] - 800a148: 6899 ldr r1, [r3, #8] - 800a14a: 687b ldr r3, [r7, #4] - 800a14c: 685a ldr r2, [r3, #4] + 800a148: 687b ldr r3, [r7, #4] + 800a14a: 681b ldr r3, [r3, #0] + 800a14c: 6899 ldr r1, [r3, #8] 800a14e: 687b ldr r3, [r7, #4] - 800a150: 691b ldr r3, [r3, #16] - 800a152: 431a orrs r2, r3 - 800a154: 687b ldr r3, [r7, #4] - 800a156: 695b ldr r3, [r3, #20] - 800a158: 431a orrs r2, r3 - 800a15a: 687b ldr r3, [r7, #4] - 800a15c: 681b ldr r3, [r3, #0] - 800a15e: 430a orrs r2, r1 - 800a160: 609a str r2, [r3, #8] + 800a150: 685a ldr r2, [r3, #4] + 800a152: 687b ldr r3, [r7, #4] + 800a154: 691b ldr r3, [r3, #16] + 800a156: 431a orrs r2, r3 + 800a158: 687b ldr r3, [r7, #4] + 800a15a: 695b ldr r3, [r3, #20] + 800a15c: 431a orrs r2, r3 + 800a15e: 687b ldr r3, [r7, #4] + 800a160: 681b ldr r3, [r3, #0] + 800a162: 430a orrs r2, r1 + 800a164: 609a str r2, [r3, #8] /* Configure the RTC PRER */ hrtc->Instance->PRER = (uint32_t)(hrtc->Init.SynchPrediv); - 800a162: 687b ldr r3, [r7, #4] - 800a164: 681b ldr r3, [r3, #0] - 800a166: 687a ldr r2, [r7, #4] - 800a168: 68d2 ldr r2, [r2, #12] - 800a16a: 611a str r2, [r3, #16] + 800a166: 687b ldr r3, [r7, #4] + 800a168: 681b ldr r3, [r3, #0] + 800a16a: 687a ldr r2, [r7, #4] + 800a16c: 68d2 ldr r2, [r2, #12] + 800a16e: 611a str r2, [r3, #16] hrtc->Instance->PRER |= (uint32_t)(hrtc->Init.AsynchPrediv << 16); - 800a16c: 687b ldr r3, [r7, #4] - 800a16e: 681b ldr r3, [r3, #0] - 800a170: 6919 ldr r1, [r3, #16] - 800a172: 687b ldr r3, [r7, #4] - 800a174: 689b ldr r3, [r3, #8] - 800a176: 041a lsls r2, r3, #16 - 800a178: 687b ldr r3, [r7, #4] - 800a17a: 681b ldr r3, [r3, #0] - 800a17c: 430a orrs r2, r1 - 800a17e: 611a str r2, [r3, #16] + 800a170: 687b ldr r3, [r7, #4] + 800a172: 681b ldr r3, [r3, #0] + 800a174: 6919 ldr r1, [r3, #16] + 800a176: 687b ldr r3, [r7, #4] + 800a178: 689b ldr r3, [r3, #8] + 800a17a: 041a lsls r2, r3, #16 + 800a17c: 687b ldr r3, [r7, #4] + 800a17e: 681b ldr r3, [r3, #0] + 800a180: 430a orrs r2, r1 + 800a182: 611a str r2, [r3, #16] /* Exit Initialization mode */ hrtc->Instance->ISR &= (uint32_t)~RTC_ISR_INIT; - 800a180: 687b ldr r3, [r7, #4] - 800a182: 681b ldr r3, [r3, #0] - 800a184: 68da ldr r2, [r3, #12] - 800a186: 687b ldr r3, [r7, #4] - 800a188: 681b ldr r3, [r3, #0] - 800a18a: f022 0280 bic.w r2, r2, #128 ; 0x80 - 800a18e: 60da str r2, [r3, #12] + 800a184: 687b ldr r3, [r7, #4] + 800a186: 681b ldr r3, [r3, #0] + 800a188: 68da ldr r2, [r3, #12] + 800a18a: 687b ldr r3, [r7, #4] + 800a18c: 681b ldr r3, [r3, #0] + 800a18e: f022 0280 bic.w r2, r2, #128 ; 0x80 + 800a192: 60da str r2, [r3, #12] hrtc->Instance->OR &= (uint32_t)~RTC_OR_ALARMTYPE; - 800a190: 687b ldr r3, [r7, #4] - 800a192: 681b ldr r3, [r3, #0] - 800a194: 6cda ldr r2, [r3, #76] ; 0x4c - 800a196: 687b ldr r3, [r7, #4] - 800a198: 681b ldr r3, [r3, #0] - 800a19a: f022 0208 bic.w r2, r2, #8 - 800a19e: 64da str r2, [r3, #76] ; 0x4c + 800a194: 687b ldr r3, [r7, #4] + 800a196: 681b ldr r3, [r3, #0] + 800a198: 6cda ldr r2, [r3, #76] ; 0x4c + 800a19a: 687b ldr r3, [r7, #4] + 800a19c: 681b ldr r3, [r3, #0] + 800a19e: f022 0208 bic.w r2, r2, #8 + 800a1a2: 64da str r2, [r3, #76] ; 0x4c hrtc->Instance->OR |= (uint32_t)(hrtc->Init.OutPutType); - 800a1a0: 687b ldr r3, [r7, #4] - 800a1a2: 681b ldr r3, [r3, #0] - 800a1a4: 6cd9 ldr r1, [r3, #76] ; 0x4c - 800a1a6: 687b ldr r3, [r7, #4] - 800a1a8: 699a ldr r2, [r3, #24] + 800a1a4: 687b ldr r3, [r7, #4] + 800a1a6: 681b ldr r3, [r3, #0] + 800a1a8: 6cd9 ldr r1, [r3, #76] ; 0x4c 800a1aa: 687b ldr r3, [r7, #4] - 800a1ac: 681b ldr r3, [r3, #0] - 800a1ae: 430a orrs r2, r1 - 800a1b0: 64da str r2, [r3, #76] ; 0x4c + 800a1ac: 699a ldr r2, [r3, #24] + 800a1ae: 687b ldr r3, [r7, #4] + 800a1b0: 681b ldr r3, [r3, #0] + 800a1b2: 430a orrs r2, r1 + 800a1b4: 64da str r2, [r3, #76] ; 0x4c /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a1b2: 687b ldr r3, [r7, #4] - 800a1b4: 681b ldr r3, [r3, #0] - 800a1b6: 22ff movs r2, #255 ; 0xff - 800a1b8: 625a str r2, [r3, #36] ; 0x24 + 800a1b6: 687b ldr r3, [r7, #4] + 800a1b8: 681b ldr r3, [r3, #0] + 800a1ba: 22ff movs r2, #255 ; 0xff + 800a1bc: 625a str r2, [r3, #36] ; 0x24 /* Set RTC state */ hrtc->State = HAL_RTC_STATE_READY; - 800a1ba: 687b ldr r3, [r7, #4] - 800a1bc: 2201 movs r2, #1 - 800a1be: 775a strb r2, [r3, #29] + 800a1be: 687b ldr r3, [r7, #4] + 800a1c0: 2201 movs r2, #1 + 800a1c2: 775a strb r2, [r3, #29] return HAL_OK; - 800a1c0: 2300 movs r3, #0 + 800a1c4: 2300 movs r3, #0 } } - 800a1c2: 4618 mov r0, r3 - 800a1c4: 3708 adds r7, #8 - 800a1c6: 46bd mov sp, r7 - 800a1c8: bd80 pop {r7, pc} - 800a1ca: bf00 nop - 800a1cc: ff8fffbf .word 0xff8fffbf + 800a1c6: 4618 mov r0, r3 + 800a1c8: 3708 adds r7, #8 + 800a1ca: 46bd mov sp, r7 + 800a1cc: bd80 pop {r7, pc} + 800a1ce: bf00 nop + 800a1d0: ff8fffbf .word 0xff8fffbf -0800a1d0 : +0800a1d4 : * @arg FORMAT_BIN: Binary data format * @arg FORMAT_BCD: BCD data format * @retval HAL status */ HAL_StatusTypeDef HAL_RTC_SetTime(RTC_HandleTypeDef *hrtc, RTC_TimeTypeDef *sTime, uint32_t Format) { - 800a1d0: b590 push {r4, r7, lr} - 800a1d2: b087 sub sp, #28 - 800a1d4: af00 add r7, sp, #0 - 800a1d6: 60f8 str r0, [r7, #12] - 800a1d8: 60b9 str r1, [r7, #8] - 800a1da: 607a str r2, [r7, #4] + 800a1d4: b590 push {r4, r7, lr} + 800a1d6: b087 sub sp, #28 + 800a1d8: af00 add r7, sp, #0 + 800a1da: 60f8 str r0, [r7, #12] + 800a1dc: 60b9 str r1, [r7, #8] + 800a1de: 607a str r2, [r7, #4] uint32_t tmpreg = 0; - 800a1dc: 2300 movs r3, #0 - 800a1de: 617b str r3, [r7, #20] + 800a1e0: 2300 movs r3, #0 + 800a1e2: 617b str r3, [r7, #20] assert_param(IS_RTC_FORMAT(Format)); assert_param(IS_RTC_DAYLIGHT_SAVING(sTime->DayLightSaving)); assert_param(IS_RTC_STORE_OPERATION(sTime->StoreOperation)); /* Process Locked */ __HAL_LOCK(hrtc); - 800a1e0: 68fb ldr r3, [r7, #12] - 800a1e2: 7f1b ldrb r3, [r3, #28] - 800a1e4: 2b01 cmp r3, #1 - 800a1e6: d101 bne.n 800a1ec - 800a1e8: 2302 movs r3, #2 - 800a1ea: e0a8 b.n 800a33e - 800a1ec: 68fb ldr r3, [r7, #12] - 800a1ee: 2201 movs r2, #1 - 800a1f0: 771a strb r2, [r3, #28] + 800a1e4: 68fb ldr r3, [r7, #12] + 800a1e6: 7f1b ldrb r3, [r3, #28] + 800a1e8: 2b01 cmp r3, #1 + 800a1ea: d101 bne.n 800a1f0 + 800a1ec: 2302 movs r3, #2 + 800a1ee: e0a8 b.n 800a342 + 800a1f0: 68fb ldr r3, [r7, #12] + 800a1f2: 2201 movs r2, #1 + 800a1f4: 771a strb r2, [r3, #28] hrtc->State = HAL_RTC_STATE_BUSY; - 800a1f2: 68fb ldr r3, [r7, #12] - 800a1f4: 2202 movs r2, #2 - 800a1f6: 775a strb r2, [r3, #29] + 800a1f6: 68fb ldr r3, [r7, #12] + 800a1f8: 2202 movs r2, #2 + 800a1fa: 775a strb r2, [r3, #29] if(Format == RTC_FORMAT_BIN) - 800a1f8: 687b ldr r3, [r7, #4] - 800a1fa: 2b00 cmp r3, #0 - 800a1fc: d126 bne.n 800a24c + 800a1fc: 687b ldr r3, [r7, #4] + 800a1fe: 2b00 cmp r3, #0 + 800a200: d126 bne.n 800a250 { if((hrtc->Instance->CR & RTC_CR_FMT) != (uint32_t)RESET) - 800a1fe: 68fb ldr r3, [r7, #12] - 800a200: 681b ldr r3, [r3, #0] - 800a202: 689b ldr r3, [r3, #8] - 800a204: f003 0340 and.w r3, r3, #64 ; 0x40 - 800a208: 2b00 cmp r3, #0 - 800a20a: d102 bne.n 800a212 + 800a202: 68fb ldr r3, [r7, #12] + 800a204: 681b ldr r3, [r3, #0] + 800a206: 689b ldr r3, [r3, #8] + 800a208: f003 0340 and.w r3, r3, #64 ; 0x40 + 800a20c: 2b00 cmp r3, #0 + 800a20e: d102 bne.n 800a216 assert_param(IS_RTC_HOUR12(sTime->Hours)); assert_param(IS_RTC_HOURFORMAT12(sTime->TimeFormat)); } else { sTime->TimeFormat = 0x00; - 800a20c: 68bb ldr r3, [r7, #8] - 800a20e: 2200 movs r2, #0 - 800a210: 731a strb r2, [r3, #12] + 800a210: 68bb ldr r3, [r7, #8] + 800a212: 2200 movs r2, #0 + 800a214: 731a strb r2, [r3, #12] assert_param(IS_RTC_HOUR24(sTime->Hours)); } assert_param(IS_RTC_MINUTES(sTime->Minutes)); assert_param(IS_RTC_SECONDS(sTime->Seconds)); tmpreg = (uint32_t)(((uint32_t)RTC_ByteToBcd2(sTime->Hours) << 16) | \ - 800a212: 68bb ldr r3, [r7, #8] - 800a214: 781b ldrb r3, [r3, #0] - 800a216: 4618 mov r0, r3 - 800a218: f000 faac bl 800a774 - 800a21c: 4603 mov r3, r0 - 800a21e: 041c lsls r4, r3, #16 + 800a216: 68bb ldr r3, [r7, #8] + 800a218: 781b ldrb r3, [r3, #0] + 800a21a: 4618 mov r0, r3 + 800a21c: f000 faac bl 800a778 + 800a220: 4603 mov r3, r0 + 800a222: 041c lsls r4, r3, #16 ((uint32_t)RTC_ByteToBcd2(sTime->Minutes) << 8) | \ - 800a220: 68bb ldr r3, [r7, #8] - 800a222: 785b ldrb r3, [r3, #1] - 800a224: 4618 mov r0, r3 - 800a226: f000 faa5 bl 800a774 - 800a22a: 4603 mov r3, r0 - 800a22c: 021b lsls r3, r3, #8 + 800a224: 68bb ldr r3, [r7, #8] + 800a226: 785b ldrb r3, [r3, #1] + 800a228: 4618 mov r0, r3 + 800a22a: f000 faa5 bl 800a778 + 800a22e: 4603 mov r3, r0 + 800a230: 021b lsls r3, r3, #8 tmpreg = (uint32_t)(((uint32_t)RTC_ByteToBcd2(sTime->Hours) << 16) | \ - 800a22e: 431c orrs r4, r3 + 800a232: 431c orrs r4, r3 ((uint32_t)RTC_ByteToBcd2(sTime->Seconds)) | \ - 800a230: 68bb ldr r3, [r7, #8] - 800a232: 789b ldrb r3, [r3, #2] - 800a234: 4618 mov r0, r3 - 800a236: f000 fa9d bl 800a774 - 800a23a: 4603 mov r3, r0 + 800a234: 68bb ldr r3, [r7, #8] + 800a236: 789b ldrb r3, [r3, #2] + 800a238: 4618 mov r0, r3 + 800a23a: f000 fa9d bl 800a778 + 800a23e: 4603 mov r3, r0 ((uint32_t)RTC_ByteToBcd2(sTime->Minutes) << 8) | \ - 800a23c: ea44 0203 orr.w r2, r4, r3 + 800a240: ea44 0203 orr.w r2, r4, r3 (((uint32_t)sTime->TimeFormat) << 16)); - 800a240: 68bb ldr r3, [r7, #8] - 800a242: 7b1b ldrb r3, [r3, #12] - 800a244: 041b lsls r3, r3, #16 + 800a244: 68bb ldr r3, [r7, #8] + 800a246: 7b1b ldrb r3, [r3, #12] + 800a248: 041b lsls r3, r3, #16 tmpreg = (uint32_t)(((uint32_t)RTC_ByteToBcd2(sTime->Hours) << 16) | \ - 800a246: 4313 orrs r3, r2 - 800a248: 617b str r3, [r7, #20] - 800a24a: e018 b.n 800a27e + 800a24a: 4313 orrs r3, r2 + 800a24c: 617b str r3, [r7, #20] + 800a24e: e018 b.n 800a282 } else { if((hrtc->Instance->CR & RTC_CR_FMT) != (uint32_t)RESET) - 800a24c: 68fb ldr r3, [r7, #12] - 800a24e: 681b ldr r3, [r3, #0] - 800a250: 689b ldr r3, [r3, #8] - 800a252: f003 0340 and.w r3, r3, #64 ; 0x40 - 800a256: 2b00 cmp r3, #0 - 800a258: d102 bne.n 800a260 + 800a250: 68fb ldr r3, [r7, #12] + 800a252: 681b ldr r3, [r3, #0] + 800a254: 689b ldr r3, [r3, #8] + 800a256: f003 0340 and.w r3, r3, #64 ; 0x40 + 800a25a: 2b00 cmp r3, #0 + 800a25c: d102 bne.n 800a264 assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sTime->Hours))); assert_param(IS_RTC_HOURFORMAT12(sTime->TimeFormat)); } else { sTime->TimeFormat = 0x00; - 800a25a: 68bb ldr r3, [r7, #8] - 800a25c: 2200 movs r2, #0 - 800a25e: 731a strb r2, [r3, #12] + 800a25e: 68bb ldr r3, [r7, #8] + 800a260: 2200 movs r2, #0 + 800a262: 731a strb r2, [r3, #12] assert_param(IS_RTC_HOUR24(RTC_Bcd2ToByte(sTime->Hours))); } assert_param(IS_RTC_MINUTES(RTC_Bcd2ToByte(sTime->Minutes))); assert_param(IS_RTC_SECONDS(RTC_Bcd2ToByte(sTime->Seconds))); tmpreg = (((uint32_t)(sTime->Hours) << 16) | \ - 800a260: 68bb ldr r3, [r7, #8] - 800a262: 781b ldrb r3, [r3, #0] - 800a264: 041a lsls r2, r3, #16 + 800a264: 68bb ldr r3, [r7, #8] + 800a266: 781b ldrb r3, [r3, #0] + 800a268: 041a lsls r2, r3, #16 ((uint32_t)(sTime->Minutes) << 8) | \ - 800a266: 68bb ldr r3, [r7, #8] - 800a268: 785b ldrb r3, [r3, #1] - 800a26a: 021b lsls r3, r3, #8 + 800a26a: 68bb ldr r3, [r7, #8] + 800a26c: 785b ldrb r3, [r3, #1] + 800a26e: 021b lsls r3, r3, #8 tmpreg = (((uint32_t)(sTime->Hours) << 16) | \ - 800a26c: 4313 orrs r3, r2 + 800a270: 4313 orrs r3, r2 ((uint32_t)sTime->Seconds) | \ - 800a26e: 68ba ldr r2, [r7, #8] - 800a270: 7892 ldrb r2, [r2, #2] + 800a272: 68ba ldr r2, [r7, #8] + 800a274: 7892 ldrb r2, [r2, #2] ((uint32_t)(sTime->Minutes) << 8) | \ - 800a272: 431a orrs r2, r3 + 800a276: 431a orrs r2, r3 ((uint32_t)(sTime->TimeFormat) << 16)); - 800a274: 68bb ldr r3, [r7, #8] - 800a276: 7b1b ldrb r3, [r3, #12] - 800a278: 041b lsls r3, r3, #16 + 800a278: 68bb ldr r3, [r7, #8] + 800a27a: 7b1b ldrb r3, [r3, #12] + 800a27c: 041b lsls r3, r3, #16 tmpreg = (((uint32_t)(sTime->Hours) << 16) | \ - 800a27a: 4313 orrs r3, r2 - 800a27c: 617b str r3, [r7, #20] + 800a27e: 4313 orrs r3, r2 + 800a280: 617b str r3, [r7, #20] } /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); - 800a27e: 68fb ldr r3, [r7, #12] - 800a280: 681b ldr r3, [r3, #0] - 800a282: 22ca movs r2, #202 ; 0xca - 800a284: 625a str r2, [r3, #36] ; 0x24 - 800a286: 68fb ldr r3, [r7, #12] - 800a288: 681b ldr r3, [r3, #0] - 800a28a: 2253 movs r2, #83 ; 0x53 - 800a28c: 625a str r2, [r3, #36] ; 0x24 + 800a282: 68fb ldr r3, [r7, #12] + 800a284: 681b ldr r3, [r3, #0] + 800a286: 22ca movs r2, #202 ; 0xca + 800a288: 625a str r2, [r3, #36] ; 0x24 + 800a28a: 68fb ldr r3, [r7, #12] + 800a28c: 681b ldr r3, [r3, #0] + 800a28e: 2253 movs r2, #83 ; 0x53 + 800a290: 625a str r2, [r3, #36] ; 0x24 /* Set Initialization mode */ if(RTC_EnterInitMode(hrtc) != HAL_OK) - 800a28e: 68f8 ldr r0, [r7, #12] - 800a290: f000 fa44 bl 800a71c - 800a294: 4603 mov r3, r0 - 800a296: 2b00 cmp r3, #0 - 800a298: d00b beq.n 800a2b2 + 800a292: 68f8 ldr r0, [r7, #12] + 800a294: f000 fa44 bl 800a720 + 800a298: 4603 mov r3, r0 + 800a29a: 2b00 cmp r3, #0 + 800a29c: d00b beq.n 800a2b6 { /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a29a: 68fb ldr r3, [r7, #12] - 800a29c: 681b ldr r3, [r3, #0] - 800a29e: 22ff movs r2, #255 ; 0xff - 800a2a0: 625a str r2, [r3, #36] ; 0x24 + 800a29e: 68fb ldr r3, [r7, #12] + 800a2a0: 681b ldr r3, [r3, #0] + 800a2a2: 22ff movs r2, #255 ; 0xff + 800a2a4: 625a str r2, [r3, #36] ; 0x24 /* Set RTC state */ hrtc->State = HAL_RTC_STATE_ERROR; - 800a2a2: 68fb ldr r3, [r7, #12] - 800a2a4: 2204 movs r2, #4 - 800a2a6: 775a strb r2, [r3, #29] + 800a2a6: 68fb ldr r3, [r7, #12] + 800a2a8: 2204 movs r2, #4 + 800a2aa: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a2a8: 68fb ldr r3, [r7, #12] - 800a2aa: 2200 movs r2, #0 - 800a2ac: 771a strb r2, [r3, #28] + 800a2ac: 68fb ldr r3, [r7, #12] + 800a2ae: 2200 movs r2, #0 + 800a2b0: 771a strb r2, [r3, #28] return HAL_ERROR; - 800a2ae: 2301 movs r3, #1 - 800a2b0: e045 b.n 800a33e + 800a2b2: 2301 movs r3, #1 + 800a2b4: e045 b.n 800a342 } else { /* Set the RTC_TR register */ hrtc->Instance->TR = (uint32_t)(tmpreg & RTC_TR_RESERVED_MASK); - 800a2b2: 68fb ldr r3, [r7, #12] - 800a2b4: 681a ldr r2, [r3, #0] - 800a2b6: 6979 ldr r1, [r7, #20] - 800a2b8: 4b23 ldr r3, [pc, #140] ; (800a348 ) - 800a2ba: 400b ands r3, r1 - 800a2bc: 6013 str r3, [r2, #0] + 800a2b6: 68fb ldr r3, [r7, #12] + 800a2b8: 681a ldr r2, [r3, #0] + 800a2ba: 6979 ldr r1, [r7, #20] + 800a2bc: 4b23 ldr r3, [pc, #140] ; (800a34c ) + 800a2be: 400b ands r3, r1 + 800a2c0: 6013 str r3, [r2, #0] /* Clear the bits to be configured */ hrtc->Instance->CR &= (uint32_t)~RTC_CR_BKP; - 800a2be: 68fb ldr r3, [r7, #12] - 800a2c0: 681b ldr r3, [r3, #0] - 800a2c2: 689a ldr r2, [r3, #8] - 800a2c4: 68fb ldr r3, [r7, #12] - 800a2c6: 681b ldr r3, [r3, #0] - 800a2c8: f422 2280 bic.w r2, r2, #262144 ; 0x40000 - 800a2cc: 609a str r2, [r3, #8] + 800a2c2: 68fb ldr r3, [r7, #12] + 800a2c4: 681b ldr r3, [r3, #0] + 800a2c6: 689a ldr r2, [r3, #8] + 800a2c8: 68fb ldr r3, [r7, #12] + 800a2ca: 681b ldr r3, [r3, #0] + 800a2cc: f422 2280 bic.w r2, r2, #262144 ; 0x40000 + 800a2d0: 609a str r2, [r3, #8] /* Configure the RTC_CR register */ hrtc->Instance->CR |= (uint32_t)(sTime->DayLightSaving | sTime->StoreOperation); - 800a2ce: 68fb ldr r3, [r7, #12] - 800a2d0: 681b ldr r3, [r3, #0] - 800a2d2: 6899 ldr r1, [r3, #8] - 800a2d4: 68bb ldr r3, [r7, #8] - 800a2d6: 691a ldr r2, [r3, #16] + 800a2d2: 68fb ldr r3, [r7, #12] + 800a2d4: 681b ldr r3, [r3, #0] + 800a2d6: 6899 ldr r1, [r3, #8] 800a2d8: 68bb ldr r3, [r7, #8] - 800a2da: 695b ldr r3, [r3, #20] - 800a2dc: 431a orrs r2, r3 - 800a2de: 68fb ldr r3, [r7, #12] - 800a2e0: 681b ldr r3, [r3, #0] - 800a2e2: 430a orrs r2, r1 - 800a2e4: 609a str r2, [r3, #8] + 800a2da: 691a ldr r2, [r3, #16] + 800a2dc: 68bb ldr r3, [r7, #8] + 800a2de: 695b ldr r3, [r3, #20] + 800a2e0: 431a orrs r2, r3 + 800a2e2: 68fb ldr r3, [r7, #12] + 800a2e4: 681b ldr r3, [r3, #0] + 800a2e6: 430a orrs r2, r1 + 800a2e8: 609a str r2, [r3, #8] /* Exit Initialization mode */ hrtc->Instance->ISR &= (uint32_t)~RTC_ISR_INIT; - 800a2e6: 68fb ldr r3, [r7, #12] - 800a2e8: 681b ldr r3, [r3, #0] - 800a2ea: 68da ldr r2, [r3, #12] - 800a2ec: 68fb ldr r3, [r7, #12] - 800a2ee: 681b ldr r3, [r3, #0] - 800a2f0: f022 0280 bic.w r2, r2, #128 ; 0x80 - 800a2f4: 60da str r2, [r3, #12] + 800a2ea: 68fb ldr r3, [r7, #12] + 800a2ec: 681b ldr r3, [r3, #0] + 800a2ee: 68da ldr r2, [r3, #12] + 800a2f0: 68fb ldr r3, [r7, #12] + 800a2f2: 681b ldr r3, [r3, #0] + 800a2f4: f022 0280 bic.w r2, r2, #128 ; 0x80 + 800a2f8: 60da str r2, [r3, #12] /* If CR_BYPSHAD bit = 0, wait for synchro else this check is not needed */ if((hrtc->Instance->CR & RTC_CR_BYPSHAD) == RESET) - 800a2f6: 68fb ldr r3, [r7, #12] - 800a2f8: 681b ldr r3, [r3, #0] - 800a2fa: 689b ldr r3, [r3, #8] - 800a2fc: f003 0320 and.w r3, r3, #32 - 800a300: 2b00 cmp r3, #0 - 800a302: d111 bne.n 800a328 + 800a2fa: 68fb ldr r3, [r7, #12] + 800a2fc: 681b ldr r3, [r3, #0] + 800a2fe: 689b ldr r3, [r3, #8] + 800a300: f003 0320 and.w r3, r3, #32 + 800a304: 2b00 cmp r3, #0 + 800a306: d111 bne.n 800a32c { if(HAL_RTC_WaitForSynchro(hrtc) != HAL_OK) - 800a304: 68f8 ldr r0, [r7, #12] - 800a306: f000 f9e1 bl 800a6cc - 800a30a: 4603 mov r3, r0 - 800a30c: 2b00 cmp r3, #0 - 800a30e: d00b beq.n 800a328 + 800a308: 68f8 ldr r0, [r7, #12] + 800a30a: f000 f9e1 bl 800a6d0 + 800a30e: 4603 mov r3, r0 + 800a310: 2b00 cmp r3, #0 + 800a312: d00b beq.n 800a32c { /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a310: 68fb ldr r3, [r7, #12] - 800a312: 681b ldr r3, [r3, #0] - 800a314: 22ff movs r2, #255 ; 0xff - 800a316: 625a str r2, [r3, #36] ; 0x24 + 800a314: 68fb ldr r3, [r7, #12] + 800a316: 681b ldr r3, [r3, #0] + 800a318: 22ff movs r2, #255 ; 0xff + 800a31a: 625a str r2, [r3, #36] ; 0x24 hrtc->State = HAL_RTC_STATE_ERROR; - 800a318: 68fb ldr r3, [r7, #12] - 800a31a: 2204 movs r2, #4 - 800a31c: 775a strb r2, [r3, #29] + 800a31c: 68fb ldr r3, [r7, #12] + 800a31e: 2204 movs r2, #4 + 800a320: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a31e: 68fb ldr r3, [r7, #12] - 800a320: 2200 movs r2, #0 - 800a322: 771a strb r2, [r3, #28] + 800a322: 68fb ldr r3, [r7, #12] + 800a324: 2200 movs r2, #0 + 800a326: 771a strb r2, [r3, #28] return HAL_ERROR; - 800a324: 2301 movs r3, #1 - 800a326: e00a b.n 800a33e + 800a328: 2301 movs r3, #1 + 800a32a: e00a b.n 800a342 } } /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a328: 68fb ldr r3, [r7, #12] - 800a32a: 681b ldr r3, [r3, #0] - 800a32c: 22ff movs r2, #255 ; 0xff - 800a32e: 625a str r2, [r3, #36] ; 0x24 + 800a32c: 68fb ldr r3, [r7, #12] + 800a32e: 681b ldr r3, [r3, #0] + 800a330: 22ff movs r2, #255 ; 0xff + 800a332: 625a str r2, [r3, #36] ; 0x24 hrtc->State = HAL_RTC_STATE_READY; - 800a330: 68fb ldr r3, [r7, #12] - 800a332: 2201 movs r2, #1 - 800a334: 775a strb r2, [r3, #29] + 800a334: 68fb ldr r3, [r7, #12] + 800a336: 2201 movs r2, #1 + 800a338: 775a strb r2, [r3, #29] __HAL_UNLOCK(hrtc); - 800a336: 68fb ldr r3, [r7, #12] - 800a338: 2200 movs r2, #0 - 800a33a: 771a strb r2, [r3, #28] + 800a33a: 68fb ldr r3, [r7, #12] + 800a33c: 2200 movs r2, #0 + 800a33e: 771a strb r2, [r3, #28] return HAL_OK; - 800a33c: 2300 movs r3, #0 + 800a340: 2300 movs r3, #0 } } - 800a33e: 4618 mov r0, r3 - 800a340: 371c adds r7, #28 - 800a342: 46bd mov sp, r7 - 800a344: bd90 pop {r4, r7, pc} - 800a346: bf00 nop - 800a348: 007f7f7f .word 0x007f7f7f + 800a342: 4618 mov r0, r3 + 800a344: 371c adds r7, #28 + 800a346: 46bd mov sp, r7 + 800a348: bd90 pop {r4, r7, pc} + 800a34a: bf00 nop + 800a34c: 007f7f7f .word 0x007f7f7f -0800a34c : +0800a350 : * @arg RTC_FORMAT_BIN: Binary data format * @arg RTC_FORMAT_BCD: BCD data format * @retval HAL status */ HAL_StatusTypeDef HAL_RTC_SetDate(RTC_HandleTypeDef *hrtc, RTC_DateTypeDef *sDate, uint32_t Format) { - 800a34c: b590 push {r4, r7, lr} - 800a34e: b087 sub sp, #28 - 800a350: af00 add r7, sp, #0 - 800a352: 60f8 str r0, [r7, #12] - 800a354: 60b9 str r1, [r7, #8] - 800a356: 607a str r2, [r7, #4] + 800a350: b590 push {r4, r7, lr} + 800a352: b087 sub sp, #28 + 800a354: af00 add r7, sp, #0 + 800a356: 60f8 str r0, [r7, #12] + 800a358: 60b9 str r1, [r7, #8] + 800a35a: 607a str r2, [r7, #4] uint32_t datetmpreg = 0; - 800a358: 2300 movs r3, #0 - 800a35a: 617b str r3, [r7, #20] + 800a35c: 2300 movs r3, #0 + 800a35e: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_RTC_FORMAT(Format)); /* Process Locked */ __HAL_LOCK(hrtc); - 800a35c: 68fb ldr r3, [r7, #12] - 800a35e: 7f1b ldrb r3, [r3, #28] - 800a360: 2b01 cmp r3, #1 - 800a362: d101 bne.n 800a368 - 800a364: 2302 movs r3, #2 - 800a366: e092 b.n 800a48e - 800a368: 68fb ldr r3, [r7, #12] - 800a36a: 2201 movs r2, #1 - 800a36c: 771a strb r2, [r3, #28] + 800a360: 68fb ldr r3, [r7, #12] + 800a362: 7f1b ldrb r3, [r3, #28] + 800a364: 2b01 cmp r3, #1 + 800a366: d101 bne.n 800a36c + 800a368: 2302 movs r3, #2 + 800a36a: e092 b.n 800a492 + 800a36c: 68fb ldr r3, [r7, #12] + 800a36e: 2201 movs r2, #1 + 800a370: 771a strb r2, [r3, #28] hrtc->State = HAL_RTC_STATE_BUSY; - 800a36e: 68fb ldr r3, [r7, #12] - 800a370: 2202 movs r2, #2 - 800a372: 775a strb r2, [r3, #29] + 800a372: 68fb ldr r3, [r7, #12] + 800a374: 2202 movs r2, #2 + 800a376: 775a strb r2, [r3, #29] if((Format == RTC_FORMAT_BIN) && ((sDate->Month & 0x10U) == 0x10U)) - 800a374: 687b ldr r3, [r7, #4] - 800a376: 2b00 cmp r3, #0 - 800a378: d10e bne.n 800a398 - 800a37a: 68bb ldr r3, [r7, #8] - 800a37c: 785b ldrb r3, [r3, #1] - 800a37e: f003 0310 and.w r3, r3, #16 - 800a382: 2b00 cmp r3, #0 - 800a384: d008 beq.n 800a398 + 800a378: 687b ldr r3, [r7, #4] + 800a37a: 2b00 cmp r3, #0 + 800a37c: d10e bne.n 800a39c + 800a37e: 68bb ldr r3, [r7, #8] + 800a380: 785b ldrb r3, [r3, #1] + 800a382: f003 0310 and.w r3, r3, #16 + 800a386: 2b00 cmp r3, #0 + 800a388: d008 beq.n 800a39c { sDate->Month = (uint8_t)((sDate->Month & (uint8_t)~(0x10U)) + (uint8_t)0x0AU); - 800a386: 68bb ldr r3, [r7, #8] - 800a388: 785b ldrb r3, [r3, #1] - 800a38a: f023 0310 bic.w r3, r3, #16 - 800a38e: b2db uxtb r3, r3 - 800a390: 330a adds r3, #10 - 800a392: b2da uxtb r2, r3 - 800a394: 68bb ldr r3, [r7, #8] - 800a396: 705a strb r2, [r3, #1] + 800a38a: 68bb ldr r3, [r7, #8] + 800a38c: 785b ldrb r3, [r3, #1] + 800a38e: f023 0310 bic.w r3, r3, #16 + 800a392: b2db uxtb r3, r3 + 800a394: 330a adds r3, #10 + 800a396: b2da uxtb r2, r3 + 800a398: 68bb ldr r3, [r7, #8] + 800a39a: 705a strb r2, [r3, #1] } assert_param(IS_RTC_WEEKDAY(sDate->WeekDay)); if(Format == RTC_FORMAT_BIN) - 800a398: 687b ldr r3, [r7, #4] - 800a39a: 2b00 cmp r3, #0 - 800a39c: d11c bne.n 800a3d8 + 800a39c: 687b ldr r3, [r7, #4] + 800a39e: 2b00 cmp r3, #0 + 800a3a0: d11c bne.n 800a3dc { assert_param(IS_RTC_YEAR(sDate->Year)); assert_param(IS_RTC_MONTH(sDate->Month)); assert_param(IS_RTC_DATE(sDate->Date)); datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << 16) | \ - 800a39e: 68bb ldr r3, [r7, #8] - 800a3a0: 78db ldrb r3, [r3, #3] - 800a3a2: 4618 mov r0, r3 - 800a3a4: f000 f9e6 bl 800a774 - 800a3a8: 4603 mov r3, r0 - 800a3aa: 041c lsls r4, r3, #16 + 800a3a2: 68bb ldr r3, [r7, #8] + 800a3a4: 78db ldrb r3, [r3, #3] + 800a3a6: 4618 mov r0, r3 + 800a3a8: f000 f9e6 bl 800a778 + 800a3ac: 4603 mov r3, r0 + 800a3ae: 041c lsls r4, r3, #16 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << 8) | \ - 800a3ac: 68bb ldr r3, [r7, #8] - 800a3ae: 785b ldrb r3, [r3, #1] - 800a3b0: 4618 mov r0, r3 - 800a3b2: f000 f9df bl 800a774 - 800a3b6: 4603 mov r3, r0 - 800a3b8: 021b lsls r3, r3, #8 + 800a3b0: 68bb ldr r3, [r7, #8] + 800a3b2: 785b ldrb r3, [r3, #1] + 800a3b4: 4618 mov r0, r3 + 800a3b6: f000 f9df bl 800a778 + 800a3ba: 4603 mov r3, r0 + 800a3bc: 021b lsls r3, r3, #8 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << 16) | \ - 800a3ba: 431c orrs r4, r3 + 800a3be: 431c orrs r4, r3 ((uint32_t)RTC_ByteToBcd2(sDate->Date)) | \ - 800a3bc: 68bb ldr r3, [r7, #8] - 800a3be: 789b ldrb r3, [r3, #2] - 800a3c0: 4618 mov r0, r3 - 800a3c2: f000 f9d7 bl 800a774 - 800a3c6: 4603 mov r3, r0 + 800a3c0: 68bb ldr r3, [r7, #8] + 800a3c2: 789b ldrb r3, [r3, #2] + 800a3c4: 4618 mov r0, r3 + 800a3c6: f000 f9d7 bl 800a778 + 800a3ca: 4603 mov r3, r0 ((uint32_t)RTC_ByteToBcd2(sDate->Month) << 8) | \ - 800a3c8: ea44 0203 orr.w r2, r4, r3 + 800a3cc: ea44 0203 orr.w r2, r4, r3 ((uint32_t)sDate->WeekDay << 13)); - 800a3cc: 68bb ldr r3, [r7, #8] - 800a3ce: 781b ldrb r3, [r3, #0] - 800a3d0: 035b lsls r3, r3, #13 + 800a3d0: 68bb ldr r3, [r7, #8] + 800a3d2: 781b ldrb r3, [r3, #0] + 800a3d4: 035b lsls r3, r3, #13 datetmpreg = (((uint32_t)RTC_ByteToBcd2(sDate->Year) << 16) | \ - 800a3d2: 4313 orrs r3, r2 - 800a3d4: 617b str r3, [r7, #20] - 800a3d6: e00e b.n 800a3f6 + 800a3d6: 4313 orrs r3, r2 + 800a3d8: 617b str r3, [r7, #20] + 800a3da: e00e b.n 800a3fa { assert_param(IS_RTC_YEAR(RTC_Bcd2ToByte(sDate->Year))); assert_param(IS_RTC_MONTH(RTC_Bcd2ToByte(sDate->Month))); assert_param(IS_RTC_DATE(RTC_Bcd2ToByte(sDate->Date))); datetmpreg = ((((uint32_t)sDate->Year) << 16) | \ - 800a3d8: 68bb ldr r3, [r7, #8] - 800a3da: 78db ldrb r3, [r3, #3] - 800a3dc: 041a lsls r2, r3, #16 + 800a3dc: 68bb ldr r3, [r7, #8] + 800a3de: 78db ldrb r3, [r3, #3] + 800a3e0: 041a lsls r2, r3, #16 (((uint32_t)sDate->Month) << 8) | \ - 800a3de: 68bb ldr r3, [r7, #8] - 800a3e0: 785b ldrb r3, [r3, #1] - 800a3e2: 021b lsls r3, r3, #8 + 800a3e2: 68bb ldr r3, [r7, #8] + 800a3e4: 785b ldrb r3, [r3, #1] + 800a3e6: 021b lsls r3, r3, #8 datetmpreg = ((((uint32_t)sDate->Year) << 16) | \ - 800a3e4: 4313 orrs r3, r2 + 800a3e8: 4313 orrs r3, r2 ((uint32_t)sDate->Date) | \ - 800a3e6: 68ba ldr r2, [r7, #8] - 800a3e8: 7892 ldrb r2, [r2, #2] + 800a3ea: 68ba ldr r2, [r7, #8] + 800a3ec: 7892 ldrb r2, [r2, #2] (((uint32_t)sDate->Month) << 8) | \ - 800a3ea: 431a orrs r2, r3 + 800a3ee: 431a orrs r2, r3 (((uint32_t)sDate->WeekDay) << 13)); - 800a3ec: 68bb ldr r3, [r7, #8] - 800a3ee: 781b ldrb r3, [r3, #0] - 800a3f0: 035b lsls r3, r3, #13 + 800a3f0: 68bb ldr r3, [r7, #8] + 800a3f2: 781b ldrb r3, [r3, #0] + 800a3f4: 035b lsls r3, r3, #13 datetmpreg = ((((uint32_t)sDate->Year) << 16) | \ - 800a3f2: 4313 orrs r3, r2 - 800a3f4: 617b str r3, [r7, #20] + 800a3f6: 4313 orrs r3, r2 + 800a3f8: 617b str r3, [r7, #20] } /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); - 800a3f6: 68fb ldr r3, [r7, #12] - 800a3f8: 681b ldr r3, [r3, #0] - 800a3fa: 22ca movs r2, #202 ; 0xca - 800a3fc: 625a str r2, [r3, #36] ; 0x24 - 800a3fe: 68fb ldr r3, [r7, #12] - 800a400: 681b ldr r3, [r3, #0] - 800a402: 2253 movs r2, #83 ; 0x53 - 800a404: 625a str r2, [r3, #36] ; 0x24 + 800a3fa: 68fb ldr r3, [r7, #12] + 800a3fc: 681b ldr r3, [r3, #0] + 800a3fe: 22ca movs r2, #202 ; 0xca + 800a400: 625a str r2, [r3, #36] ; 0x24 + 800a402: 68fb ldr r3, [r7, #12] + 800a404: 681b ldr r3, [r3, #0] + 800a406: 2253 movs r2, #83 ; 0x53 + 800a408: 625a str r2, [r3, #36] ; 0x24 /* Set Initialization mode */ if(RTC_EnterInitMode(hrtc) != HAL_OK) - 800a406: 68f8 ldr r0, [r7, #12] - 800a408: f000 f988 bl 800a71c - 800a40c: 4603 mov r3, r0 - 800a40e: 2b00 cmp r3, #0 - 800a410: d00b beq.n 800a42a + 800a40a: 68f8 ldr r0, [r7, #12] + 800a40c: f000 f988 bl 800a720 + 800a410: 4603 mov r3, r0 + 800a412: 2b00 cmp r3, #0 + 800a414: d00b beq.n 800a42e { /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a412: 68fb ldr r3, [r7, #12] - 800a414: 681b ldr r3, [r3, #0] - 800a416: 22ff movs r2, #255 ; 0xff - 800a418: 625a str r2, [r3, #36] ; 0x24 + 800a416: 68fb ldr r3, [r7, #12] + 800a418: 681b ldr r3, [r3, #0] + 800a41a: 22ff movs r2, #255 ; 0xff + 800a41c: 625a str r2, [r3, #36] ; 0x24 /* Set RTC state*/ hrtc->State = HAL_RTC_STATE_ERROR; - 800a41a: 68fb ldr r3, [r7, #12] - 800a41c: 2204 movs r2, #4 - 800a41e: 775a strb r2, [r3, #29] + 800a41e: 68fb ldr r3, [r7, #12] + 800a420: 2204 movs r2, #4 + 800a422: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a420: 68fb ldr r3, [r7, #12] - 800a422: 2200 movs r2, #0 - 800a424: 771a strb r2, [r3, #28] + 800a424: 68fb ldr r3, [r7, #12] + 800a426: 2200 movs r2, #0 + 800a428: 771a strb r2, [r3, #28] return HAL_ERROR; - 800a426: 2301 movs r3, #1 - 800a428: e031 b.n 800a48e + 800a42a: 2301 movs r3, #1 + 800a42c: e031 b.n 800a492 } else { /* Set the RTC_DR register */ hrtc->Instance->DR = (uint32_t)(datetmpreg & RTC_DR_RESERVED_MASK); - 800a42a: 68fb ldr r3, [r7, #12] - 800a42c: 681a ldr r2, [r3, #0] - 800a42e: 6979 ldr r1, [r7, #20] - 800a430: 4b19 ldr r3, [pc, #100] ; (800a498 ) - 800a432: 400b ands r3, r1 - 800a434: 6053 str r3, [r2, #4] + 800a42e: 68fb ldr r3, [r7, #12] + 800a430: 681a ldr r2, [r3, #0] + 800a432: 6979 ldr r1, [r7, #20] + 800a434: 4b19 ldr r3, [pc, #100] ; (800a49c ) + 800a436: 400b ands r3, r1 + 800a438: 6053 str r3, [r2, #4] /* Exit Initialization mode */ hrtc->Instance->ISR &= (uint32_t)~RTC_ISR_INIT; - 800a436: 68fb ldr r3, [r7, #12] - 800a438: 681b ldr r3, [r3, #0] - 800a43a: 68da ldr r2, [r3, #12] - 800a43c: 68fb ldr r3, [r7, #12] - 800a43e: 681b ldr r3, [r3, #0] - 800a440: f022 0280 bic.w r2, r2, #128 ; 0x80 - 800a444: 60da str r2, [r3, #12] + 800a43a: 68fb ldr r3, [r7, #12] + 800a43c: 681b ldr r3, [r3, #0] + 800a43e: 68da ldr r2, [r3, #12] + 800a440: 68fb ldr r3, [r7, #12] + 800a442: 681b ldr r3, [r3, #0] + 800a444: f022 0280 bic.w r2, r2, #128 ; 0x80 + 800a448: 60da str r2, [r3, #12] /* If CR_BYPSHAD bit = 0, wait for synchro else this check is not needed */ if((hrtc->Instance->CR & RTC_CR_BYPSHAD) == RESET) - 800a446: 68fb ldr r3, [r7, #12] - 800a448: 681b ldr r3, [r3, #0] - 800a44a: 689b ldr r3, [r3, #8] - 800a44c: f003 0320 and.w r3, r3, #32 - 800a450: 2b00 cmp r3, #0 - 800a452: d111 bne.n 800a478 + 800a44a: 68fb ldr r3, [r7, #12] + 800a44c: 681b ldr r3, [r3, #0] + 800a44e: 689b ldr r3, [r3, #8] + 800a450: f003 0320 and.w r3, r3, #32 + 800a454: 2b00 cmp r3, #0 + 800a456: d111 bne.n 800a47c { if(HAL_RTC_WaitForSynchro(hrtc) != HAL_OK) - 800a454: 68f8 ldr r0, [r7, #12] - 800a456: f000 f939 bl 800a6cc - 800a45a: 4603 mov r3, r0 - 800a45c: 2b00 cmp r3, #0 - 800a45e: d00b beq.n 800a478 + 800a458: 68f8 ldr r0, [r7, #12] + 800a45a: f000 f939 bl 800a6d0 + 800a45e: 4603 mov r3, r0 + 800a460: 2b00 cmp r3, #0 + 800a462: d00b beq.n 800a47c { /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a460: 68fb ldr r3, [r7, #12] - 800a462: 681b ldr r3, [r3, #0] - 800a464: 22ff movs r2, #255 ; 0xff - 800a466: 625a str r2, [r3, #36] ; 0x24 + 800a464: 68fb ldr r3, [r7, #12] + 800a466: 681b ldr r3, [r3, #0] + 800a468: 22ff movs r2, #255 ; 0xff + 800a46a: 625a str r2, [r3, #36] ; 0x24 hrtc->State = HAL_RTC_STATE_ERROR; - 800a468: 68fb ldr r3, [r7, #12] - 800a46a: 2204 movs r2, #4 - 800a46c: 775a strb r2, [r3, #29] + 800a46c: 68fb ldr r3, [r7, #12] + 800a46e: 2204 movs r2, #4 + 800a470: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a46e: 68fb ldr r3, [r7, #12] - 800a470: 2200 movs r2, #0 - 800a472: 771a strb r2, [r3, #28] + 800a472: 68fb ldr r3, [r7, #12] + 800a474: 2200 movs r2, #0 + 800a476: 771a strb r2, [r3, #28] return HAL_ERROR; - 800a474: 2301 movs r3, #1 - 800a476: e00a b.n 800a48e + 800a478: 2301 movs r3, #1 + 800a47a: e00a b.n 800a492 } } /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a478: 68fb ldr r3, [r7, #12] - 800a47a: 681b ldr r3, [r3, #0] - 800a47c: 22ff movs r2, #255 ; 0xff - 800a47e: 625a str r2, [r3, #36] ; 0x24 + 800a47c: 68fb ldr r3, [r7, #12] + 800a47e: 681b ldr r3, [r3, #0] + 800a480: 22ff movs r2, #255 ; 0xff + 800a482: 625a str r2, [r3, #36] ; 0x24 hrtc->State = HAL_RTC_STATE_READY ; - 800a480: 68fb ldr r3, [r7, #12] - 800a482: 2201 movs r2, #1 - 800a484: 775a strb r2, [r3, #29] + 800a484: 68fb ldr r3, [r7, #12] + 800a486: 2201 movs r2, #1 + 800a488: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a486: 68fb ldr r3, [r7, #12] - 800a488: 2200 movs r2, #0 - 800a48a: 771a strb r2, [r3, #28] + 800a48a: 68fb ldr r3, [r7, #12] + 800a48c: 2200 movs r2, #0 + 800a48e: 771a strb r2, [r3, #28] return HAL_OK; - 800a48c: 2300 movs r3, #0 + 800a490: 2300 movs r3, #0 } } - 800a48e: 4618 mov r0, r3 - 800a490: 371c adds r7, #28 - 800a492: 46bd mov sp, r7 - 800a494: bd90 pop {r4, r7, pc} - 800a496: bf00 nop - 800a498: 00ffff3f .word 0x00ffff3f + 800a492: 4618 mov r0, r3 + 800a494: 371c adds r7, #28 + 800a496: 46bd mov sp, r7 + 800a498: bd90 pop {r4, r7, pc} + 800a49a: bf00 nop + 800a49c: 00ffff3f .word 0x00ffff3f -0800a49c : +0800a4a0 : * @arg FORMAT_BIN: Binary data format * @arg FORMAT_BCD: BCD data format * @retval HAL status */ HAL_StatusTypeDef HAL_RTC_SetAlarm(RTC_HandleTypeDef *hrtc, RTC_AlarmTypeDef *sAlarm, uint32_t Format) { - 800a49c: b590 push {r4, r7, lr} - 800a49e: b089 sub sp, #36 ; 0x24 - 800a4a0: af00 add r7, sp, #0 - 800a4a2: 60f8 str r0, [r7, #12] - 800a4a4: 60b9 str r1, [r7, #8] - 800a4a6: 607a str r2, [r7, #4] + 800a4a0: b590 push {r4, r7, lr} + 800a4a2: b089 sub sp, #36 ; 0x24 + 800a4a4: af00 add r7, sp, #0 + 800a4a6: 60f8 str r0, [r7, #12] + 800a4a8: 60b9 str r1, [r7, #8] + 800a4aa: 607a str r2, [r7, #4] uint32_t tickstart = 0; - 800a4a8: 2300 movs r3, #0 - 800a4aa: 61bb str r3, [r7, #24] - uint32_t tmpreg = 0, subsecondtmpreg = 0; 800a4ac: 2300 movs r3, #0 - 800a4ae: 61fb str r3, [r7, #28] + 800a4ae: 61bb str r3, [r7, #24] + uint32_t tmpreg = 0, subsecondtmpreg = 0; 800a4b0: 2300 movs r3, #0 - 800a4b2: 617b str r3, [r7, #20] + 800a4b2: 61fb str r3, [r7, #28] + 800a4b4: 2300 movs r3, #0 + 800a4b6: 617b str r3, [r7, #20] assert_param(IS_RTC_ALARM_DATE_WEEKDAY_SEL(sAlarm->AlarmDateWeekDaySel)); assert_param(IS_RTC_ALARM_SUB_SECOND_VALUE(sAlarm->AlarmTime.SubSeconds)); assert_param(IS_RTC_ALARM_SUB_SECOND_MASK(sAlarm->AlarmSubSecondMask)); /* Process Locked */ __HAL_LOCK(hrtc); - 800a4b4: 68fb ldr r3, [r7, #12] - 800a4b6: 7f1b ldrb r3, [r3, #28] - 800a4b8: 2b01 cmp r3, #1 - 800a4ba: d101 bne.n 800a4c0 - 800a4bc: 2302 movs r3, #2 - 800a4be: e101 b.n 800a6c4 - 800a4c0: 68fb ldr r3, [r7, #12] - 800a4c2: 2201 movs r2, #1 - 800a4c4: 771a strb r2, [r3, #28] + 800a4b8: 68fb ldr r3, [r7, #12] + 800a4ba: 7f1b ldrb r3, [r3, #28] + 800a4bc: 2b01 cmp r3, #1 + 800a4be: d101 bne.n 800a4c4 + 800a4c0: 2302 movs r3, #2 + 800a4c2: e101 b.n 800a6c8 + 800a4c4: 68fb ldr r3, [r7, #12] + 800a4c6: 2201 movs r2, #1 + 800a4c8: 771a strb r2, [r3, #28] hrtc->State = HAL_RTC_STATE_BUSY; - 800a4c6: 68fb ldr r3, [r7, #12] - 800a4c8: 2202 movs r2, #2 - 800a4ca: 775a strb r2, [r3, #29] + 800a4ca: 68fb ldr r3, [r7, #12] + 800a4cc: 2202 movs r2, #2 + 800a4ce: 775a strb r2, [r3, #29] if(Format == RTC_FORMAT_BIN) - 800a4cc: 687b ldr r3, [r7, #4] - 800a4ce: 2b00 cmp r3, #0 - 800a4d0: d137 bne.n 800a542 + 800a4d0: 687b ldr r3, [r7, #4] + 800a4d2: 2b00 cmp r3, #0 + 800a4d4: d137 bne.n 800a546 { if((hrtc->Instance->CR & RTC_CR_FMT) != (uint32_t)RESET) - 800a4d2: 68fb ldr r3, [r7, #12] - 800a4d4: 681b ldr r3, [r3, #0] - 800a4d6: 689b ldr r3, [r3, #8] - 800a4d8: f003 0340 and.w r3, r3, #64 ; 0x40 - 800a4dc: 2b00 cmp r3, #0 - 800a4de: d102 bne.n 800a4e6 + 800a4d6: 68fb ldr r3, [r7, #12] + 800a4d8: 681b ldr r3, [r3, #0] + 800a4da: 689b ldr r3, [r3, #8] + 800a4dc: f003 0340 and.w r3, r3, #64 ; 0x40 + 800a4e0: 2b00 cmp r3, #0 + 800a4e2: d102 bne.n 800a4ea assert_param(IS_RTC_HOUR12(sAlarm->AlarmTime.Hours)); assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); } else { sAlarm->AlarmTime.TimeFormat = 0x00; - 800a4e0: 68bb ldr r3, [r7, #8] - 800a4e2: 2200 movs r2, #0 - 800a4e4: 731a strb r2, [r3, #12] + 800a4e4: 68bb ldr r3, [r7, #8] + 800a4e6: 2200 movs r2, #0 + 800a4e8: 731a strb r2, [r3, #12] else { assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(sAlarm->AlarmDateWeekDay)); } tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << 16) | \ - 800a4e6: 68bb ldr r3, [r7, #8] - 800a4e8: 781b ldrb r3, [r3, #0] - 800a4ea: 4618 mov r0, r3 - 800a4ec: f000 f942 bl 800a774 - 800a4f0: 4603 mov r3, r0 - 800a4f2: 041c lsls r4, r3, #16 + 800a4ea: 68bb ldr r3, [r7, #8] + 800a4ec: 781b ldrb r3, [r3, #0] + 800a4ee: 4618 mov r0, r3 + 800a4f0: f000 f942 bl 800a778 + 800a4f4: 4603 mov r3, r0 + 800a4f6: 041c lsls r4, r3, #16 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << 8) | \ - 800a4f4: 68bb ldr r3, [r7, #8] - 800a4f6: 785b ldrb r3, [r3, #1] - 800a4f8: 4618 mov r0, r3 - 800a4fa: f000 f93b bl 800a774 - 800a4fe: 4603 mov r3, r0 - 800a500: 021b lsls r3, r3, #8 + 800a4f8: 68bb ldr r3, [r7, #8] + 800a4fa: 785b ldrb r3, [r3, #1] + 800a4fc: 4618 mov r0, r3 + 800a4fe: f000 f93b bl 800a778 + 800a502: 4603 mov r3, r0 + 800a504: 021b lsls r3, r3, #8 tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << 16) | \ - 800a502: 431c orrs r4, r3 + 800a506: 431c orrs r4, r3 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds)) | \ - 800a504: 68bb ldr r3, [r7, #8] - 800a506: 789b ldrb r3, [r3, #2] - 800a508: 4618 mov r0, r3 - 800a50a: f000 f933 bl 800a774 - 800a50e: 4603 mov r3, r0 + 800a508: 68bb ldr r3, [r7, #8] + 800a50a: 789b ldrb r3, [r3, #2] + 800a50c: 4618 mov r0, r3 + 800a50e: f000 f933 bl 800a778 + 800a512: 4603 mov r3, r0 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Minutes) << 8) | \ - 800a510: ea44 0203 orr.w r2, r4, r3 + 800a514: ea44 0203 orr.w r2, r4, r3 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << 16) | \ - 800a514: 68bb ldr r3, [r7, #8] - 800a516: 7b1b ldrb r3, [r3, #12] - 800a518: 041b lsls r3, r3, #16 + 800a518: 68bb ldr r3, [r7, #8] + 800a51a: 7b1b ldrb r3, [r3, #12] + 800a51c: 041b lsls r3, r3, #16 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Seconds)) | \ - 800a51a: ea42 0403 orr.w r4, r2, r3 + 800a51e: ea42 0403 orr.w r4, r2, r3 ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << 24) | \ - 800a51e: 68bb ldr r3, [r7, #8] - 800a520: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 800a524: 4618 mov r0, r3 - 800a526: f000 f925 bl 800a774 - 800a52a: 4603 mov r3, r0 - 800a52c: 061b lsls r3, r3, #24 + 800a522: 68bb ldr r3, [r7, #8] + 800a524: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 + 800a528: 4618 mov r0, r3 + 800a52a: f000 f925 bl 800a778 + 800a52e: 4603 mov r3, r0 + 800a530: 061b lsls r3, r3, #24 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << 16) | \ - 800a52e: ea44 0203 orr.w r2, r4, r3 + 800a532: ea44 0203 orr.w r2, r4, r3 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ - 800a532: 68bb ldr r3, [r7, #8] - 800a534: 6a1b ldr r3, [r3, #32] + 800a536: 68bb ldr r3, [r7, #8] + 800a538: 6a1b ldr r3, [r3, #32] ((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmDateWeekDay) << 24) | \ - 800a536: 431a orrs r2, r3 + 800a53a: 431a orrs r2, r3 ((uint32_t)sAlarm->AlarmMask)); - 800a538: 68bb ldr r3, [r7, #8] - 800a53a: 699b ldr r3, [r3, #24] + 800a53c: 68bb ldr r3, [r7, #8] + 800a53e: 699b ldr r3, [r3, #24] tmpreg = (((uint32_t)RTC_ByteToBcd2(sAlarm->AlarmTime.Hours) << 16) | \ - 800a53c: 4313 orrs r3, r2 - 800a53e: 61fb str r3, [r7, #28] - 800a540: e023 b.n 800a58a + 800a540: 4313 orrs r3, r2 + 800a542: 61fb str r3, [r7, #28] + 800a544: e023 b.n 800a58e } else { if((hrtc->Instance->CR & RTC_CR_FMT) != (uint32_t)RESET) - 800a542: 68fb ldr r3, [r7, #12] - 800a544: 681b ldr r3, [r3, #0] - 800a546: 689b ldr r3, [r3, #8] - 800a548: f003 0340 and.w r3, r3, #64 ; 0x40 - 800a54c: 2b00 cmp r3, #0 - 800a54e: d102 bne.n 800a556 + 800a546: 68fb ldr r3, [r7, #12] + 800a548: 681b ldr r3, [r3, #0] + 800a54a: 689b ldr r3, [r3, #8] + 800a54c: f003 0340 and.w r3, r3, #64 ; 0x40 + 800a550: 2b00 cmp r3, #0 + 800a552: d102 bne.n 800a55a assert_param(IS_RTC_HOUR12(RTC_Bcd2ToByte(sAlarm->AlarmTime.Hours))); assert_param(IS_RTC_HOURFORMAT12(sAlarm->AlarmTime.TimeFormat)); } else { sAlarm->AlarmTime.TimeFormat = 0x00; - 800a550: 68bb ldr r3, [r7, #8] - 800a552: 2200 movs r2, #0 - 800a554: 731a strb r2, [r3, #12] + 800a554: 68bb ldr r3, [r7, #8] + 800a556: 2200 movs r2, #0 + 800a558: 731a strb r2, [r3, #12] else { assert_param(IS_RTC_ALARM_DATE_WEEKDAY_WEEKDAY(RTC_Bcd2ToByte(sAlarm->AlarmDateWeekDay))); } tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << 16) | \ - 800a556: 68bb ldr r3, [r7, #8] - 800a558: 781b ldrb r3, [r3, #0] - 800a55a: 041a lsls r2, r3, #16 + 800a55a: 68bb ldr r3, [r7, #8] + 800a55c: 781b ldrb r3, [r3, #0] + 800a55e: 041a lsls r2, r3, #16 ((uint32_t)(sAlarm->AlarmTime.Minutes) << 8) | \ - 800a55c: 68bb ldr r3, [r7, #8] - 800a55e: 785b ldrb r3, [r3, #1] - 800a560: 021b lsls r3, r3, #8 + 800a560: 68bb ldr r3, [r7, #8] + 800a562: 785b ldrb r3, [r3, #1] + 800a564: 021b lsls r3, r3, #8 tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << 16) | \ - 800a562: 4313 orrs r3, r2 + 800a566: 4313 orrs r3, r2 ((uint32_t) sAlarm->AlarmTime.Seconds) | \ - 800a564: 68ba ldr r2, [r7, #8] - 800a566: 7892 ldrb r2, [r2, #2] + 800a568: 68ba ldr r2, [r7, #8] + 800a56a: 7892 ldrb r2, [r2, #2] ((uint32_t)(sAlarm->AlarmTime.Minutes) << 8) | \ - 800a568: 431a orrs r2, r3 + 800a56c: 431a orrs r2, r3 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << 16) | \ - 800a56a: 68bb ldr r3, [r7, #8] - 800a56c: 7b1b ldrb r3, [r3, #12] - 800a56e: 041b lsls r3, r3, #16 + 800a56e: 68bb ldr r3, [r7, #8] + 800a570: 7b1b ldrb r3, [r3, #12] + 800a572: 041b lsls r3, r3, #16 ((uint32_t) sAlarm->AlarmTime.Seconds) | \ - 800a570: 431a orrs r2, r3 + 800a574: 431a orrs r2, r3 ((uint32_t)(sAlarm->AlarmDateWeekDay) << 24) | \ - 800a572: 68bb ldr r3, [r7, #8] - 800a574: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 - 800a578: 061b lsls r3, r3, #24 + 800a576: 68bb ldr r3, [r7, #8] + 800a578: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 + 800a57c: 061b lsls r3, r3, #24 ((uint32_t)(sAlarm->AlarmTime.TimeFormat) << 16) | \ - 800a57a: 431a orrs r2, r3 + 800a57e: 431a orrs r2, r3 ((uint32_t)sAlarm->AlarmDateWeekDaySel) | \ - 800a57c: 68bb ldr r3, [r7, #8] - 800a57e: 6a1b ldr r3, [r3, #32] + 800a580: 68bb ldr r3, [r7, #8] + 800a582: 6a1b ldr r3, [r3, #32] ((uint32_t)(sAlarm->AlarmDateWeekDay) << 24) | \ - 800a580: 431a orrs r2, r3 + 800a584: 431a orrs r2, r3 ((uint32_t)sAlarm->AlarmMask)); - 800a582: 68bb ldr r3, [r7, #8] - 800a584: 699b ldr r3, [r3, #24] + 800a586: 68bb ldr r3, [r7, #8] + 800a588: 699b ldr r3, [r3, #24] tmpreg = (((uint32_t)(sAlarm->AlarmTime.Hours) << 16) | \ - 800a586: 4313 orrs r3, r2 - 800a588: 61fb str r3, [r7, #28] + 800a58a: 4313 orrs r3, r2 + 800a58c: 61fb str r3, [r7, #28] } /* Configure the Alarm A or Alarm B Sub Second registers */ subsecondtmpreg = (uint32_t)((uint32_t)(sAlarm->AlarmTime.SubSeconds) | (uint32_t)(sAlarm->AlarmSubSecondMask)); - 800a58a: 68bb ldr r3, [r7, #8] - 800a58c: 685a ldr r2, [r3, #4] 800a58e: 68bb ldr r3, [r7, #8] - 800a590: 69db ldr r3, [r3, #28] - 800a592: 4313 orrs r3, r2 - 800a594: 617b str r3, [r7, #20] + 800a590: 685a ldr r2, [r3, #4] + 800a592: 68bb ldr r3, [r7, #8] + 800a594: 69db ldr r3, [r3, #28] + 800a596: 4313 orrs r3, r2 + 800a598: 617b str r3, [r7, #20] /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); - 800a596: 68fb ldr r3, [r7, #12] - 800a598: 681b ldr r3, [r3, #0] - 800a59a: 22ca movs r2, #202 ; 0xca - 800a59c: 625a str r2, [r3, #36] ; 0x24 - 800a59e: 68fb ldr r3, [r7, #12] - 800a5a0: 681b ldr r3, [r3, #0] - 800a5a2: 2253 movs r2, #83 ; 0x53 - 800a5a4: 625a str r2, [r3, #36] ; 0x24 + 800a59a: 68fb ldr r3, [r7, #12] + 800a59c: 681b ldr r3, [r3, #0] + 800a59e: 22ca movs r2, #202 ; 0xca + 800a5a0: 625a str r2, [r3, #36] ; 0x24 + 800a5a2: 68fb ldr r3, [r7, #12] + 800a5a4: 681b ldr r3, [r3, #0] + 800a5a6: 2253 movs r2, #83 ; 0x53 + 800a5a8: 625a str r2, [r3, #36] ; 0x24 /* Configure the Alarm register */ if(sAlarm->Alarm == RTC_ALARM_A) - 800a5a6: 68bb ldr r3, [r7, #8] - 800a5a8: 6a9b ldr r3, [r3, #40] ; 0x28 - 800a5aa: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800a5ae: d13f bne.n 800a630 + 800a5aa: 68bb ldr r3, [r7, #8] + 800a5ac: 6a9b ldr r3, [r3, #40] ; 0x28 + 800a5ae: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800a5b2: d13f bne.n 800a634 { /* Disable the Alarm A interrupt */ __HAL_RTC_ALARMA_DISABLE(hrtc); - 800a5b0: 68fb ldr r3, [r7, #12] - 800a5b2: 681b ldr r3, [r3, #0] - 800a5b4: 689a ldr r2, [r3, #8] - 800a5b6: 68fb ldr r3, [r7, #12] - 800a5b8: 681b ldr r3, [r3, #0] - 800a5ba: f422 7280 bic.w r2, r2, #256 ; 0x100 - 800a5be: 609a str r2, [r3, #8] + 800a5b4: 68fb ldr r3, [r7, #12] + 800a5b6: 681b ldr r3, [r3, #0] + 800a5b8: 689a ldr r2, [r3, #8] + 800a5ba: 68fb ldr r3, [r7, #12] + 800a5bc: 681b ldr r3, [r3, #0] + 800a5be: f422 7280 bic.w r2, r2, #256 ; 0x100 + 800a5c2: 609a str r2, [r3, #8] /* In case of interrupt mode is used, the interrupt source must disabled */ __HAL_RTC_ALARM_DISABLE_IT(hrtc, RTC_IT_ALRA); - 800a5c0: 68fb ldr r3, [r7, #12] - 800a5c2: 681b ldr r3, [r3, #0] - 800a5c4: 689a ldr r2, [r3, #8] - 800a5c6: 68fb ldr r3, [r7, #12] - 800a5c8: 681b ldr r3, [r3, #0] - 800a5ca: f422 5280 bic.w r2, r2, #4096 ; 0x1000 - 800a5ce: 609a str r2, [r3, #8] + 800a5c4: 68fb ldr r3, [r7, #12] + 800a5c6: 681b ldr r3, [r3, #0] + 800a5c8: 689a ldr r2, [r3, #8] + 800a5ca: 68fb ldr r3, [r7, #12] + 800a5cc: 681b ldr r3, [r3, #0] + 800a5ce: f422 5280 bic.w r2, r2, #4096 ; 0x1000 + 800a5d2: 609a str r2, [r3, #8] /* Get tick */ tickstart = HAL_GetTick(); - 800a5d0: f7fa fc76 bl 8004ec0 - 800a5d4: 61b8 str r0, [r7, #24] + 800a5d4: f7fa fc76 bl 8004ec4 + 800a5d8: 61b8 str r0, [r7, #24] /* Wait till RTC ALRAWF flag is set and if Time out is reached exit */ while(__HAL_RTC_ALARM_GET_FLAG(hrtc, RTC_FLAG_ALRAWF) == RESET) - 800a5d6: e013 b.n 800a600 + 800a5da: e013 b.n 800a604 { if((HAL_GetTick() - tickstart ) > RTC_TIMEOUT_VALUE) - 800a5d8: f7fa fc72 bl 8004ec0 - 800a5dc: 4602 mov r2, r0 - 800a5de: 69bb ldr r3, [r7, #24] - 800a5e0: 1ad3 subs r3, r2, r3 - 800a5e2: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 800a5e6: d90b bls.n 800a600 + 800a5dc: f7fa fc72 bl 8004ec4 + 800a5e0: 4602 mov r2, r0 + 800a5e2: 69bb ldr r3, [r7, #24] + 800a5e4: 1ad3 subs r3, r2, r3 + 800a5e6: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 800a5ea: d90b bls.n 800a604 { /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a5e8: 68fb ldr r3, [r7, #12] - 800a5ea: 681b ldr r3, [r3, #0] - 800a5ec: 22ff movs r2, #255 ; 0xff - 800a5ee: 625a str r2, [r3, #36] ; 0x24 + 800a5ec: 68fb ldr r3, [r7, #12] + 800a5ee: 681b ldr r3, [r3, #0] + 800a5f0: 22ff movs r2, #255 ; 0xff + 800a5f2: 625a str r2, [r3, #36] ; 0x24 hrtc->State = HAL_RTC_STATE_TIMEOUT; - 800a5f0: 68fb ldr r3, [r7, #12] - 800a5f2: 2203 movs r2, #3 - 800a5f4: 775a strb r2, [r3, #29] + 800a5f4: 68fb ldr r3, [r7, #12] + 800a5f6: 2203 movs r2, #3 + 800a5f8: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a5f6: 68fb ldr r3, [r7, #12] - 800a5f8: 2200 movs r2, #0 - 800a5fa: 771a strb r2, [r3, #28] + 800a5fa: 68fb ldr r3, [r7, #12] + 800a5fc: 2200 movs r2, #0 + 800a5fe: 771a strb r2, [r3, #28] return HAL_TIMEOUT; - 800a5fc: 2303 movs r3, #3 - 800a5fe: e061 b.n 800a6c4 + 800a600: 2303 movs r3, #3 + 800a602: e061 b.n 800a6c8 while(__HAL_RTC_ALARM_GET_FLAG(hrtc, RTC_FLAG_ALRAWF) == RESET) - 800a600: 68fb ldr r3, [r7, #12] - 800a602: 681b ldr r3, [r3, #0] - 800a604: 68db ldr r3, [r3, #12] - 800a606: f003 0301 and.w r3, r3, #1 - 800a60a: 2b00 cmp r3, #0 - 800a60c: d0e4 beq.n 800a5d8 + 800a604: 68fb ldr r3, [r7, #12] + 800a606: 681b ldr r3, [r3, #0] + 800a608: 68db ldr r3, [r3, #12] + 800a60a: f003 0301 and.w r3, r3, #1 + 800a60e: 2b00 cmp r3, #0 + 800a610: d0e4 beq.n 800a5dc } } hrtc->Instance->ALRMAR = (uint32_t)tmpreg; - 800a60e: 68fb ldr r3, [r7, #12] - 800a610: 681b ldr r3, [r3, #0] - 800a612: 69fa ldr r2, [r7, #28] - 800a614: 61da str r2, [r3, #28] + 800a612: 68fb ldr r3, [r7, #12] + 800a614: 681b ldr r3, [r3, #0] + 800a616: 69fa ldr r2, [r7, #28] + 800a618: 61da str r2, [r3, #28] /* Configure the Alarm A Sub Second register */ hrtc->Instance->ALRMASSR = subsecondtmpreg; - 800a616: 68fb ldr r3, [r7, #12] - 800a618: 681b ldr r3, [r3, #0] - 800a61a: 697a ldr r2, [r7, #20] - 800a61c: 645a str r2, [r3, #68] ; 0x44 + 800a61a: 68fb ldr r3, [r7, #12] + 800a61c: 681b ldr r3, [r3, #0] + 800a61e: 697a ldr r2, [r7, #20] + 800a620: 645a str r2, [r3, #68] ; 0x44 /* Configure the Alarm state: Enable Alarm */ __HAL_RTC_ALARMA_ENABLE(hrtc); - 800a61e: 68fb ldr r3, [r7, #12] - 800a620: 681b ldr r3, [r3, #0] - 800a622: 689a ldr r2, [r3, #8] - 800a624: 68fb ldr r3, [r7, #12] - 800a626: 681b ldr r3, [r3, #0] - 800a628: f442 7280 orr.w r2, r2, #256 ; 0x100 - 800a62c: 609a str r2, [r3, #8] - 800a62e: e03e b.n 800a6ae + 800a622: 68fb ldr r3, [r7, #12] + 800a624: 681b ldr r3, [r3, #0] + 800a626: 689a ldr r2, [r3, #8] + 800a628: 68fb ldr r3, [r7, #12] + 800a62a: 681b ldr r3, [r3, #0] + 800a62c: f442 7280 orr.w r2, r2, #256 ; 0x100 + 800a630: 609a str r2, [r3, #8] + 800a632: e03e b.n 800a6b2 } else { /* Disable the Alarm B interrupt */ __HAL_RTC_ALARMB_DISABLE(hrtc); - 800a630: 68fb ldr r3, [r7, #12] - 800a632: 681b ldr r3, [r3, #0] - 800a634: 689a ldr r2, [r3, #8] - 800a636: 68fb ldr r3, [r7, #12] - 800a638: 681b ldr r3, [r3, #0] - 800a63a: f422 7200 bic.w r2, r2, #512 ; 0x200 - 800a63e: 609a str r2, [r3, #8] + 800a634: 68fb ldr r3, [r7, #12] + 800a636: 681b ldr r3, [r3, #0] + 800a638: 689a ldr r2, [r3, #8] + 800a63a: 68fb ldr r3, [r7, #12] + 800a63c: 681b ldr r3, [r3, #0] + 800a63e: f422 7200 bic.w r2, r2, #512 ; 0x200 + 800a642: 609a str r2, [r3, #8] /* In case of interrupt mode is used, the interrupt source must disabled */ __HAL_RTC_ALARM_DISABLE_IT(hrtc, RTC_IT_ALRB); - 800a640: 68fb ldr r3, [r7, #12] - 800a642: 681b ldr r3, [r3, #0] - 800a644: 689a ldr r2, [r3, #8] - 800a646: 68fb ldr r3, [r7, #12] - 800a648: 681b ldr r3, [r3, #0] - 800a64a: f422 5200 bic.w r2, r2, #8192 ; 0x2000 - 800a64e: 609a str r2, [r3, #8] + 800a644: 68fb ldr r3, [r7, #12] + 800a646: 681b ldr r3, [r3, #0] + 800a648: 689a ldr r2, [r3, #8] + 800a64a: 68fb ldr r3, [r7, #12] + 800a64c: 681b ldr r3, [r3, #0] + 800a64e: f422 5200 bic.w r2, r2, #8192 ; 0x2000 + 800a652: 609a str r2, [r3, #8] /* Get tick */ tickstart = HAL_GetTick(); - 800a650: f7fa fc36 bl 8004ec0 - 800a654: 61b8 str r0, [r7, #24] + 800a654: f7fa fc36 bl 8004ec4 + 800a658: 61b8 str r0, [r7, #24] /* Wait till RTC ALRBWF flag is set and if Time out is reached exit */ while(__HAL_RTC_ALARM_GET_FLAG(hrtc, RTC_FLAG_ALRBWF) == RESET) - 800a656: e013 b.n 800a680 + 800a65a: e013 b.n 800a684 { if((HAL_GetTick() - tickstart ) > RTC_TIMEOUT_VALUE) - 800a658: f7fa fc32 bl 8004ec0 - 800a65c: 4602 mov r2, r0 - 800a65e: 69bb ldr r3, [r7, #24] - 800a660: 1ad3 subs r3, r2, r3 - 800a662: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 800a666: d90b bls.n 800a680 + 800a65c: f7fa fc32 bl 8004ec4 + 800a660: 4602 mov r2, r0 + 800a662: 69bb ldr r3, [r7, #24] + 800a664: 1ad3 subs r3, r2, r3 + 800a666: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 800a66a: d90b bls.n 800a684 { /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a668: 68fb ldr r3, [r7, #12] - 800a66a: 681b ldr r3, [r3, #0] - 800a66c: 22ff movs r2, #255 ; 0xff - 800a66e: 625a str r2, [r3, #36] ; 0x24 + 800a66c: 68fb ldr r3, [r7, #12] + 800a66e: 681b ldr r3, [r3, #0] + 800a670: 22ff movs r2, #255 ; 0xff + 800a672: 625a str r2, [r3, #36] ; 0x24 hrtc->State = HAL_RTC_STATE_TIMEOUT; - 800a670: 68fb ldr r3, [r7, #12] - 800a672: 2203 movs r2, #3 - 800a674: 775a strb r2, [r3, #29] + 800a674: 68fb ldr r3, [r7, #12] + 800a676: 2203 movs r2, #3 + 800a678: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a676: 68fb ldr r3, [r7, #12] - 800a678: 2200 movs r2, #0 - 800a67a: 771a strb r2, [r3, #28] + 800a67a: 68fb ldr r3, [r7, #12] + 800a67c: 2200 movs r2, #0 + 800a67e: 771a strb r2, [r3, #28] return HAL_TIMEOUT; - 800a67c: 2303 movs r3, #3 - 800a67e: e021 b.n 800a6c4 + 800a680: 2303 movs r3, #3 + 800a682: e021 b.n 800a6c8 while(__HAL_RTC_ALARM_GET_FLAG(hrtc, RTC_FLAG_ALRBWF) == RESET) - 800a680: 68fb ldr r3, [r7, #12] - 800a682: 681b ldr r3, [r3, #0] - 800a684: 68db ldr r3, [r3, #12] - 800a686: f003 0302 and.w r3, r3, #2 - 800a68a: 2b00 cmp r3, #0 - 800a68c: d0e4 beq.n 800a658 + 800a684: 68fb ldr r3, [r7, #12] + 800a686: 681b ldr r3, [r3, #0] + 800a688: 68db ldr r3, [r3, #12] + 800a68a: f003 0302 and.w r3, r3, #2 + 800a68e: 2b00 cmp r3, #0 + 800a690: d0e4 beq.n 800a65c } } hrtc->Instance->ALRMBR = (uint32_t)tmpreg; - 800a68e: 68fb ldr r3, [r7, #12] - 800a690: 681b ldr r3, [r3, #0] - 800a692: 69fa ldr r2, [r7, #28] - 800a694: 621a str r2, [r3, #32] + 800a692: 68fb ldr r3, [r7, #12] + 800a694: 681b ldr r3, [r3, #0] + 800a696: 69fa ldr r2, [r7, #28] + 800a698: 621a str r2, [r3, #32] /* Configure the Alarm B Sub Second register */ hrtc->Instance->ALRMBSSR = subsecondtmpreg; - 800a696: 68fb ldr r3, [r7, #12] - 800a698: 681b ldr r3, [r3, #0] - 800a69a: 697a ldr r2, [r7, #20] - 800a69c: 649a str r2, [r3, #72] ; 0x48 + 800a69a: 68fb ldr r3, [r7, #12] + 800a69c: 681b ldr r3, [r3, #0] + 800a69e: 697a ldr r2, [r7, #20] + 800a6a0: 649a str r2, [r3, #72] ; 0x48 /* Configure the Alarm state: Enable Alarm */ __HAL_RTC_ALARMB_ENABLE(hrtc); - 800a69e: 68fb ldr r3, [r7, #12] - 800a6a0: 681b ldr r3, [r3, #0] - 800a6a2: 689a ldr r2, [r3, #8] - 800a6a4: 68fb ldr r3, [r7, #12] - 800a6a6: 681b ldr r3, [r3, #0] - 800a6a8: f442 7200 orr.w r2, r2, #512 ; 0x200 - 800a6ac: 609a str r2, [r3, #8] + 800a6a2: 68fb ldr r3, [r7, #12] + 800a6a4: 681b ldr r3, [r3, #0] + 800a6a6: 689a ldr r2, [r3, #8] + 800a6a8: 68fb ldr r3, [r7, #12] + 800a6aa: 681b ldr r3, [r3, #0] + 800a6ac: f442 7200 orr.w r2, r2, #512 ; 0x200 + 800a6b0: 609a str r2, [r3, #8] } /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a6ae: 68fb ldr r3, [r7, #12] - 800a6b0: 681b ldr r3, [r3, #0] - 800a6b2: 22ff movs r2, #255 ; 0xff - 800a6b4: 625a str r2, [r3, #36] ; 0x24 + 800a6b2: 68fb ldr r3, [r7, #12] + 800a6b4: 681b ldr r3, [r3, #0] + 800a6b6: 22ff movs r2, #255 ; 0xff + 800a6b8: 625a str r2, [r3, #36] ; 0x24 /* Change RTC state */ hrtc->State = HAL_RTC_STATE_READY; - 800a6b6: 68fb ldr r3, [r7, #12] - 800a6b8: 2201 movs r2, #1 - 800a6ba: 775a strb r2, [r3, #29] + 800a6ba: 68fb ldr r3, [r7, #12] + 800a6bc: 2201 movs r2, #1 + 800a6be: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a6bc: 68fb ldr r3, [r7, #12] - 800a6be: 2200 movs r2, #0 - 800a6c0: 771a strb r2, [r3, #28] + 800a6c0: 68fb ldr r3, [r7, #12] + 800a6c2: 2200 movs r2, #0 + 800a6c4: 771a strb r2, [r3, #28] return HAL_OK; - 800a6c2: 2300 movs r3, #0 + 800a6c6: 2300 movs r3, #0 } - 800a6c4: 4618 mov r0, r3 - 800a6c6: 3724 adds r7, #36 ; 0x24 - 800a6c8: 46bd mov sp, r7 - 800a6ca: bd90 pop {r4, r7, pc} + 800a6c8: 4618 mov r0, r3 + 800a6ca: 3724 adds r7, #36 ; 0x24 + 800a6cc: 46bd mov sp, r7 + 800a6ce: bd90 pop {r4, r7, pc} -0800a6cc : +0800a6d0 : * @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) { - 800a6cc: b580 push {r7, lr} - 800a6ce: b084 sub sp, #16 - 800a6d0: af00 add r7, sp, #0 - 800a6d2: 6078 str r0, [r7, #4] + 800a6d0: b580 push {r7, lr} + 800a6d2: b084 sub sp, #16 + 800a6d4: af00 add r7, sp, #0 + 800a6d6: 6078 str r0, [r7, #4] uint32_t tickstart = 0; - 800a6d4: 2300 movs r3, #0 - 800a6d6: 60fb str r3, [r7, #12] + 800a6d8: 2300 movs r3, #0 + 800a6da: 60fb str r3, [r7, #12] /* Clear RSF flag */ hrtc->Instance->ISR &= (uint32_t)RTC_RSF_MASK; - 800a6d8: 687b ldr r3, [r7, #4] - 800a6da: 681b ldr r3, [r3, #0] - 800a6dc: 68da ldr r2, [r3, #12] - 800a6de: 687b ldr r3, [r7, #4] - 800a6e0: 681b ldr r3, [r3, #0] - 800a6e2: f022 02a0 bic.w r2, r2, #160 ; 0xa0 - 800a6e6: 60da str r2, [r3, #12] + 800a6dc: 687b ldr r3, [r7, #4] + 800a6de: 681b ldr r3, [r3, #0] + 800a6e0: 68da ldr r2, [r3, #12] + 800a6e2: 687b ldr r3, [r7, #4] + 800a6e4: 681b ldr r3, [r3, #0] + 800a6e6: f022 02a0 bic.w r2, r2, #160 ; 0xa0 + 800a6ea: 60da str r2, [r3, #12] /* Get tick */ tickstart = HAL_GetTick(); - 800a6e8: f7fa fbea bl 8004ec0 - 800a6ec: 60f8 str r0, [r7, #12] + 800a6ec: f7fa fbea bl 8004ec4 + 800a6f0: 60f8 str r0, [r7, #12] /* Wait the registers to be synchronised */ while((hrtc->Instance->ISR & RTC_ISR_RSF) == (uint32_t)RESET) - 800a6ee: e009 b.n 800a704 + 800a6f2: e009 b.n 800a708 { if((HAL_GetTick() - tickstart ) > RTC_TIMEOUT_VALUE) - 800a6f0: f7fa fbe6 bl 8004ec0 - 800a6f4: 4602 mov r2, r0 - 800a6f6: 68fb ldr r3, [r7, #12] - 800a6f8: 1ad3 subs r3, r2, r3 - 800a6fa: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 800a6fe: d901 bls.n 800a704 + 800a6f4: f7fa fbe6 bl 8004ec4 + 800a6f8: 4602 mov r2, r0 + 800a6fa: 68fb ldr r3, [r7, #12] + 800a6fc: 1ad3 subs r3, r2, r3 + 800a6fe: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 800a702: d901 bls.n 800a708 { return HAL_TIMEOUT; - 800a700: 2303 movs r3, #3 - 800a702: e007 b.n 800a714 + 800a704: 2303 movs r3, #3 + 800a706: e007 b.n 800a718 while((hrtc->Instance->ISR & RTC_ISR_RSF) == (uint32_t)RESET) - 800a704: 687b ldr r3, [r7, #4] - 800a706: 681b ldr r3, [r3, #0] - 800a708: 68db ldr r3, [r3, #12] - 800a70a: f003 0320 and.w r3, r3, #32 - 800a70e: 2b00 cmp r3, #0 - 800a710: d0ee beq.n 800a6f0 + 800a708: 687b ldr r3, [r7, #4] + 800a70a: 681b ldr r3, [r3, #0] + 800a70c: 68db ldr r3, [r3, #12] + 800a70e: f003 0320 and.w r3, r3, #32 + 800a712: 2b00 cmp r3, #0 + 800a714: d0ee beq.n 800a6f4 } } return HAL_OK; - 800a712: 2300 movs r3, #0 + 800a716: 2300 movs r3, #0 } - 800a714: 4618 mov r0, r3 - 800a716: 3710 adds r7, #16 - 800a718: 46bd mov sp, r7 - 800a71a: bd80 pop {r7, pc} + 800a718: 4618 mov r0, r3 + 800a71a: 3710 adds r7, #16 + 800a71c: 46bd mov sp, r7 + 800a71e: bd80 pop {r7, pc} -0800a71c : +0800a720 : * @param hrtc pointer to a RTC_HandleTypeDef structure that contains * the configuration information for RTC. * @retval HAL status */ HAL_StatusTypeDef RTC_EnterInitMode(RTC_HandleTypeDef* hrtc) { - 800a71c: b580 push {r7, lr} - 800a71e: b084 sub sp, #16 - 800a720: af00 add r7, sp, #0 - 800a722: 6078 str r0, [r7, #4] + 800a720: b580 push {r7, lr} + 800a722: b084 sub sp, #16 + 800a724: af00 add r7, sp, #0 + 800a726: 6078 str r0, [r7, #4] uint32_t tickstart = 0; - 800a724: 2300 movs r3, #0 - 800a726: 60fb str r3, [r7, #12] + 800a728: 2300 movs r3, #0 + 800a72a: 60fb str r3, [r7, #12] /* Check if the Initialization mode is set */ if((hrtc->Instance->ISR & RTC_ISR_INITF) == (uint32_t)RESET) - 800a728: 687b ldr r3, [r7, #4] - 800a72a: 681b ldr r3, [r3, #0] - 800a72c: 68db ldr r3, [r3, #12] - 800a72e: f003 0340 and.w r3, r3, #64 ; 0x40 - 800a732: 2b00 cmp r3, #0 - 800a734: d119 bne.n 800a76a + 800a72c: 687b ldr r3, [r7, #4] + 800a72e: 681b ldr r3, [r3, #0] + 800a730: 68db ldr r3, [r3, #12] + 800a732: f003 0340 and.w r3, r3, #64 ; 0x40 + 800a736: 2b00 cmp r3, #0 + 800a738: d119 bne.n 800a76e { /* Set the Initialization mode */ hrtc->Instance->ISR = (uint32_t)RTC_INIT_MASK; - 800a736: 687b ldr r3, [r7, #4] - 800a738: 681b ldr r3, [r3, #0] - 800a73a: f04f 32ff mov.w r2, #4294967295 - 800a73e: 60da str r2, [r3, #12] + 800a73a: 687b ldr r3, [r7, #4] + 800a73c: 681b ldr r3, [r3, #0] + 800a73e: f04f 32ff mov.w r2, #4294967295 + 800a742: 60da str r2, [r3, #12] /* Get tick */ tickstart = HAL_GetTick(); - 800a740: f7fa fbbe bl 8004ec0 - 800a744: 60f8 str r0, [r7, #12] + 800a744: f7fa fbbe bl 8004ec4 + 800a748: 60f8 str r0, [r7, #12] /* Wait till RTC is in INIT state and if Time out is reached exit */ while((hrtc->Instance->ISR & RTC_ISR_INITF) == (uint32_t)RESET) - 800a746: e009 b.n 800a75c + 800a74a: e009 b.n 800a760 { if((HAL_GetTick() - tickstart ) > RTC_TIMEOUT_VALUE) - 800a748: f7fa fbba bl 8004ec0 - 800a74c: 4602 mov r2, r0 - 800a74e: 68fb ldr r3, [r7, #12] - 800a750: 1ad3 subs r3, r2, r3 - 800a752: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 800a756: d901 bls.n 800a75c + 800a74c: f7fa fbba bl 8004ec4 + 800a750: 4602 mov r2, r0 + 800a752: 68fb ldr r3, [r7, #12] + 800a754: 1ad3 subs r3, r2, r3 + 800a756: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 800a75a: d901 bls.n 800a760 { return HAL_TIMEOUT; - 800a758: 2303 movs r3, #3 - 800a75a: e007 b.n 800a76c + 800a75c: 2303 movs r3, #3 + 800a75e: e007 b.n 800a770 while((hrtc->Instance->ISR & RTC_ISR_INITF) == (uint32_t)RESET) - 800a75c: 687b ldr r3, [r7, #4] - 800a75e: 681b ldr r3, [r3, #0] - 800a760: 68db ldr r3, [r3, #12] - 800a762: f003 0340 and.w r3, r3, #64 ; 0x40 - 800a766: 2b00 cmp r3, #0 - 800a768: d0ee beq.n 800a748 + 800a760: 687b ldr r3, [r7, #4] + 800a762: 681b ldr r3, [r3, #0] + 800a764: 68db ldr r3, [r3, #12] + 800a766: f003 0340 and.w r3, r3, #64 ; 0x40 + 800a76a: 2b00 cmp r3, #0 + 800a76c: d0ee beq.n 800a74c } } } return HAL_OK; - 800a76a: 2300 movs r3, #0 + 800a76e: 2300 movs r3, #0 } - 800a76c: 4618 mov r0, r3 - 800a76e: 3710 adds r7, #16 - 800a770: 46bd mov sp, r7 - 800a772: bd80 pop {r7, pc} + 800a770: 4618 mov r0, r3 + 800a772: 3710 adds r7, #16 + 800a774: 46bd mov sp, r7 + 800a776: bd80 pop {r7, pc} -0800a774 : +0800a778 : * @brief Converts a 2 digit decimal to BCD format. * @param Value Byte to be converted * @retval Converted byte */ uint8_t RTC_ByteToBcd2(uint8_t Value) { - 800a774: b480 push {r7} - 800a776: b085 sub sp, #20 - 800a778: af00 add r7, sp, #0 - 800a77a: 4603 mov r3, r0 - 800a77c: 71fb strb r3, [r7, #7] + 800a778: b480 push {r7} + 800a77a: b085 sub sp, #20 + 800a77c: af00 add r7, sp, #0 + 800a77e: 4603 mov r3, r0 + 800a780: 71fb strb r3, [r7, #7] uint32_t bcdhigh = 0; - 800a77e: 2300 movs r3, #0 - 800a780: 60fb str r3, [r7, #12] + 800a782: 2300 movs r3, #0 + 800a784: 60fb str r3, [r7, #12] while(Value >= 10) - 800a782: e005 b.n 800a790 + 800a786: e005 b.n 800a794 { bcdhigh++; - 800a784: 68fb ldr r3, [r7, #12] - 800a786: 3301 adds r3, #1 - 800a788: 60fb str r3, [r7, #12] + 800a788: 68fb ldr r3, [r7, #12] + 800a78a: 3301 adds r3, #1 + 800a78c: 60fb str r3, [r7, #12] Value -= 10; - 800a78a: 79fb ldrb r3, [r7, #7] - 800a78c: 3b0a subs r3, #10 - 800a78e: 71fb strb r3, [r7, #7] + 800a78e: 79fb ldrb r3, [r7, #7] + 800a790: 3b0a subs r3, #10 + 800a792: 71fb strb r3, [r7, #7] while(Value >= 10) - 800a790: 79fb ldrb r3, [r7, #7] - 800a792: 2b09 cmp r3, #9 - 800a794: d8f6 bhi.n 800a784 + 800a794: 79fb ldrb r3, [r7, #7] + 800a796: 2b09 cmp r3, #9 + 800a798: d8f6 bhi.n 800a788 } return ((uint8_t)(bcdhigh << 4) | Value); - 800a796: 68fb ldr r3, [r7, #12] - 800a798: b2db uxtb r3, r3 - 800a79a: 011b lsls r3, r3, #4 - 800a79c: b2da uxtb r2, r3 - 800a79e: 79fb ldrb r3, [r7, #7] - 800a7a0: 4313 orrs r3, r2 - 800a7a2: b2db uxtb r3, r3 -} - 800a7a4: 4618 mov r0, r3 - 800a7a6: 3714 adds r7, #20 - 800a7a8: 46bd mov sp, r7 - 800a7aa: f85d 7b04 ldr.w r7, [sp], #4 - 800a7ae: 4770 bx lr - -0800a7b0 : + 800a79a: 68fb ldr r3, [r7, #12] + 800a79c: b2db uxtb r3, r3 + 800a79e: 011b lsls r3, r3, #4 + 800a7a0: b2da uxtb r2, r3 + 800a7a2: 79fb ldrb r3, [r7, #7] + 800a7a4: 4313 orrs r3, r2 + 800a7a6: b2db uxtb r3, r3 +} + 800a7a8: 4618 mov r0, r3 + 800a7aa: 3714 adds r7, #20 + 800a7ac: 46bd mov sp, r7 + 800a7ae: f85d 7b04 ldr.w r7, [sp], #4 + 800a7b2: 4770 bx lr + +0800a7b4 : * @arg RTC_TIMESTAMPPIN_PI8: PI8 is selected as RTC TimeStamp Pin. * @arg RTC_TIMESTAMPPIN_PC1: PC1 is selected as RTC TimeStamp Pin. * @retval HAL status */ HAL_StatusTypeDef HAL_RTCEx_SetTimeStamp(RTC_HandleTypeDef *hrtc, uint32_t TimeStampEdge, uint32_t RTC_TimeStampPin) { - 800a7b0: b480 push {r7} - 800a7b2: b087 sub sp, #28 - 800a7b4: af00 add r7, sp, #0 - 800a7b6: 60f8 str r0, [r7, #12] - 800a7b8: 60b9 str r1, [r7, #8] - 800a7ba: 607a str r2, [r7, #4] + 800a7b4: b480 push {r7} + 800a7b6: b087 sub sp, #28 + 800a7b8: af00 add r7, sp, #0 + 800a7ba: 60f8 str r0, [r7, #12] + 800a7bc: 60b9 str r1, [r7, #8] + 800a7be: 607a str r2, [r7, #4] uint32_t tmpreg = 0; - 800a7bc: 2300 movs r3, #0 - 800a7be: 617b str r3, [r7, #20] + 800a7c0: 2300 movs r3, #0 + 800a7c2: 617b str r3, [r7, #20] /* Check the parameters */ assert_param(IS_TIMESTAMP_EDGE(TimeStampEdge)); assert_param(IS_RTC_TIMESTAMP_PIN(RTC_TimeStampPin)); /* Process Locked */ __HAL_LOCK(hrtc); - 800a7c0: 68fb ldr r3, [r7, #12] - 800a7c2: 7f1b ldrb r3, [r3, #28] - 800a7c4: 2b01 cmp r3, #1 - 800a7c6: d101 bne.n 800a7cc - 800a7c8: 2302 movs r3, #2 - 800a7ca: e03e b.n 800a84a - 800a7cc: 68fb ldr r3, [r7, #12] - 800a7ce: 2201 movs r2, #1 - 800a7d0: 771a strb r2, [r3, #28] + 800a7c4: 68fb ldr r3, [r7, #12] + 800a7c6: 7f1b ldrb r3, [r3, #28] + 800a7c8: 2b01 cmp r3, #1 + 800a7ca: d101 bne.n 800a7d0 + 800a7cc: 2302 movs r3, #2 + 800a7ce: e03e b.n 800a84e + 800a7d0: 68fb ldr r3, [r7, #12] + 800a7d2: 2201 movs r2, #1 + 800a7d4: 771a strb r2, [r3, #28] hrtc->State = HAL_RTC_STATE_BUSY; - 800a7d2: 68fb ldr r3, [r7, #12] - 800a7d4: 2202 movs r2, #2 - 800a7d6: 775a strb r2, [r3, #29] + 800a7d6: 68fb ldr r3, [r7, #12] + 800a7d8: 2202 movs r2, #2 + 800a7da: 775a strb r2, [r3, #29] /* Get the RTC_CR register and clear the bits to be configured */ tmpreg = (uint32_t)(hrtc->Instance->CR & (uint32_t)~(RTC_CR_TSEDGE | RTC_CR_TSE)); - 800a7d8: 68fb ldr r3, [r7, #12] - 800a7da: 681b ldr r3, [r3, #0] - 800a7dc: 689a ldr r2, [r3, #8] - 800a7de: 4b1e ldr r3, [pc, #120] ; (800a858 ) - 800a7e0: 4013 ands r3, r2 - 800a7e2: 617b str r3, [r7, #20] + 800a7dc: 68fb ldr r3, [r7, #12] + 800a7de: 681b ldr r3, [r3, #0] + 800a7e0: 689a ldr r2, [r3, #8] + 800a7e2: 4b1e ldr r3, [pc, #120] ; (800a85c ) + 800a7e4: 4013 ands r3, r2 + 800a7e6: 617b str r3, [r7, #20] tmpreg|= TimeStampEdge; - 800a7e4: 697a ldr r2, [r7, #20] - 800a7e6: 68bb ldr r3, [r7, #8] - 800a7e8: 4313 orrs r3, r2 - 800a7ea: 617b str r3, [r7, #20] + 800a7e8: 697a ldr r2, [r7, #20] + 800a7ea: 68bb ldr r3, [r7, #8] + 800a7ec: 4313 orrs r3, r2 + 800a7ee: 617b str r3, [r7, #20] /* Disable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_DISABLE(hrtc); - 800a7ec: 68fb ldr r3, [r7, #12] - 800a7ee: 681b ldr r3, [r3, #0] - 800a7f0: 22ca movs r2, #202 ; 0xca - 800a7f2: 625a str r2, [r3, #36] ; 0x24 - 800a7f4: 68fb ldr r3, [r7, #12] - 800a7f6: 681b ldr r3, [r3, #0] - 800a7f8: 2253 movs r2, #83 ; 0x53 - 800a7fa: 625a str r2, [r3, #36] ; 0x24 + 800a7f0: 68fb ldr r3, [r7, #12] + 800a7f2: 681b ldr r3, [r3, #0] + 800a7f4: 22ca movs r2, #202 ; 0xca + 800a7f6: 625a str r2, [r3, #36] ; 0x24 + 800a7f8: 68fb ldr r3, [r7, #12] + 800a7fa: 681b ldr r3, [r3, #0] + 800a7fc: 2253 movs r2, #83 ; 0x53 + 800a7fe: 625a str r2, [r3, #36] ; 0x24 hrtc->Instance->OR &= (uint32_t)~RTC_OR_TSINSEL; - 800a7fc: 68fb ldr r3, [r7, #12] - 800a7fe: 681b ldr r3, [r3, #0] - 800a800: 6cda ldr r2, [r3, #76] ; 0x4c - 800a802: 68fb ldr r3, [r7, #12] - 800a804: 681b ldr r3, [r3, #0] - 800a806: f022 0206 bic.w r2, r2, #6 - 800a80a: 64da str r2, [r3, #76] ; 0x4c + 800a800: 68fb ldr r3, [r7, #12] + 800a802: 681b ldr r3, [r3, #0] + 800a804: 6cda ldr r2, [r3, #76] ; 0x4c + 800a806: 68fb ldr r3, [r7, #12] + 800a808: 681b ldr r3, [r3, #0] + 800a80a: f022 0206 bic.w r2, r2, #6 + 800a80e: 64da str r2, [r3, #76] ; 0x4c hrtc->Instance->OR |= (uint32_t)(RTC_TimeStampPin); - 800a80c: 68fb ldr r3, [r7, #12] - 800a80e: 681b ldr r3, [r3, #0] - 800a810: 6cd9 ldr r1, [r3, #76] ; 0x4c - 800a812: 68fb ldr r3, [r7, #12] - 800a814: 681b ldr r3, [r3, #0] - 800a816: 687a ldr r2, [r7, #4] - 800a818: 430a orrs r2, r1 - 800a81a: 64da str r2, [r3, #76] ; 0x4c + 800a810: 68fb ldr r3, [r7, #12] + 800a812: 681b ldr r3, [r3, #0] + 800a814: 6cd9 ldr r1, [r3, #76] ; 0x4c + 800a816: 68fb ldr r3, [r7, #12] + 800a818: 681b ldr r3, [r3, #0] + 800a81a: 687a ldr r2, [r7, #4] + 800a81c: 430a orrs r2, r1 + 800a81e: 64da str r2, [r3, #76] ; 0x4c /* Configure the Time Stamp TSEDGE and Enable bits */ hrtc->Instance->CR = (uint32_t)tmpreg; - 800a81c: 68fb ldr r3, [r7, #12] - 800a81e: 681b ldr r3, [r3, #0] - 800a820: 697a ldr r2, [r7, #20] - 800a822: 609a str r2, [r3, #8] + 800a820: 68fb ldr r3, [r7, #12] + 800a822: 681b ldr r3, [r3, #0] + 800a824: 697a ldr r2, [r7, #20] + 800a826: 609a str r2, [r3, #8] __HAL_RTC_TIMESTAMP_ENABLE(hrtc); - 800a824: 68fb ldr r3, [r7, #12] - 800a826: 681b ldr r3, [r3, #0] - 800a828: 689a ldr r2, [r3, #8] - 800a82a: 68fb ldr r3, [r7, #12] - 800a82c: 681b ldr r3, [r3, #0] - 800a82e: f442 6200 orr.w r2, r2, #2048 ; 0x800 - 800a832: 609a str r2, [r3, #8] + 800a828: 68fb ldr r3, [r7, #12] + 800a82a: 681b ldr r3, [r3, #0] + 800a82c: 689a ldr r2, [r3, #8] + 800a82e: 68fb ldr r3, [r7, #12] + 800a830: 681b ldr r3, [r3, #0] + 800a832: f442 6200 orr.w r2, r2, #2048 ; 0x800 + 800a836: 609a str r2, [r3, #8] /* Enable the write protection for RTC registers */ __HAL_RTC_WRITEPROTECTION_ENABLE(hrtc); - 800a834: 68fb ldr r3, [r7, #12] - 800a836: 681b ldr r3, [r3, #0] - 800a838: 22ff movs r2, #255 ; 0xff - 800a83a: 625a str r2, [r3, #36] ; 0x24 + 800a838: 68fb ldr r3, [r7, #12] + 800a83a: 681b ldr r3, [r3, #0] + 800a83c: 22ff movs r2, #255 ; 0xff + 800a83e: 625a str r2, [r3, #36] ; 0x24 /* Change RTC state */ hrtc->State = HAL_RTC_STATE_READY; - 800a83c: 68fb ldr r3, [r7, #12] - 800a83e: 2201 movs r2, #1 - 800a840: 775a strb r2, [r3, #29] + 800a840: 68fb ldr r3, [r7, #12] + 800a842: 2201 movs r2, #1 + 800a844: 775a strb r2, [r3, #29] /* Process Unlocked */ __HAL_UNLOCK(hrtc); - 800a842: 68fb ldr r3, [r7, #12] - 800a844: 2200 movs r2, #0 - 800a846: 771a strb r2, [r3, #28] + 800a846: 68fb ldr r3, [r7, #12] + 800a848: 2200 movs r2, #0 + 800a84a: 771a strb r2, [r3, #28] return HAL_OK; - 800a848: 2300 movs r3, #0 + 800a84c: 2300 movs r3, #0 } - 800a84a: 4618 mov r0, r3 - 800a84c: 371c adds r7, #28 - 800a84e: 46bd mov sp, r7 - 800a850: f85d 7b04 ldr.w r7, [sp], #4 - 800a854: 4770 bx lr - 800a856: bf00 nop - 800a858: fffff7f7 .word 0xfffff7f7 + 800a84e: 4618 mov r0, r3 + 800a850: 371c adds r7, #28 + 800a852: 46bd mov sp, r7 + 800a854: f85d 7b04 ldr.w r7, [sp], #4 + 800a858: 4770 bx lr + 800a85a: bf00 nop + 800a85c: fffff7f7 .word 0xfffff7f7 -0800a85c : +0800a860 : * the configuration information for SDRAM module. * @param Timing Pointer to SDRAM control timing structure * @retval HAL status */ HAL_StatusTypeDef HAL_SDRAM_Init(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_TimingTypeDef *Timing) { - 800a85c: b580 push {r7, lr} - 800a85e: b082 sub sp, #8 - 800a860: af00 add r7, sp, #0 - 800a862: 6078 str r0, [r7, #4] - 800a864: 6039 str r1, [r7, #0] + 800a860: b580 push {r7, lr} + 800a862: b082 sub sp, #8 + 800a864: af00 add r7, sp, #0 + 800a866: 6078 str r0, [r7, #4] + 800a868: 6039 str r1, [r7, #0] /* Check the SDRAM handle parameter */ if(hsdram == NULL) - 800a866: 687b ldr r3, [r7, #4] - 800a868: 2b00 cmp r3, #0 - 800a86a: d101 bne.n 800a870 + 800a86a: 687b ldr r3, [r7, #4] + 800a86c: 2b00 cmp r3, #0 + 800a86e: d101 bne.n 800a874 { return HAL_ERROR; - 800a86c: 2301 movs r3, #1 - 800a86e: e025 b.n 800a8bc + 800a870: 2301 movs r3, #1 + 800a872: e025 b.n 800a8c0 } if(hsdram->State == HAL_SDRAM_STATE_RESET) - 800a870: 687b ldr r3, [r7, #4] - 800a872: f893 302c ldrb.w r3, [r3, #44] ; 0x2c - 800a876: b2db uxtb r3, r3 - 800a878: 2b00 cmp r3, #0 - 800a87a: d106 bne.n 800a88a + 800a874: 687b ldr r3, [r7, #4] + 800a876: f893 302c ldrb.w r3, [r3, #44] ; 0x2c + 800a87a: b2db uxtb r3, r3 + 800a87c: 2b00 cmp r3, #0 + 800a87e: d106 bne.n 800a88e { /* Allocate lock resource and initialize it */ hsdram->Lock = HAL_UNLOCKED; - 800a87c: 687b ldr r3, [r7, #4] - 800a87e: 2200 movs r2, #0 - 800a880: f883 202d strb.w r2, [r3, #45] ; 0x2d + 800a880: 687b ldr r3, [r7, #4] + 800a882: 2200 movs r2, #0 + 800a884: f883 202d strb.w r2, [r3, #45] ; 0x2d /* Init the low level hardware */ hsdram->MspInitCallback(hsdram); #else /* Initialize the low level hardware (MSP) */ HAL_SDRAM_MspInit(hsdram); - 800a884: 6878 ldr r0, [r7, #4] - 800a886: f7fa f97b bl 8004b80 + 800a888: 6878 ldr r0, [r7, #4] + 800a88a: f7fa f97b bl 8004b84 #endif } /* Initialize the SDRAM controller state */ hsdram->State = HAL_SDRAM_STATE_BUSY; - 800a88a: 687b ldr r3, [r7, #4] - 800a88c: 2202 movs r2, #2 - 800a88e: f883 202c strb.w r2, [r3, #44] ; 0x2c + 800a88e: 687b ldr r3, [r7, #4] + 800a890: 2202 movs r2, #2 + 800a892: f883 202c strb.w r2, [r3, #44] ; 0x2c /* Initialize SDRAM control Interface */ FMC_SDRAM_Init(hsdram->Instance, &(hsdram->Init)); - 800a892: 687b ldr r3, [r7, #4] - 800a894: 681a ldr r2, [r3, #0] 800a896: 687b ldr r3, [r7, #4] - 800a898: 3304 adds r3, #4 - 800a89a: 4619 mov r1, r3 - 800a89c: 4610 mov r0, r2 - 800a89e: f001 fe61 bl 800c564 + 800a898: 681a ldr r2, [r3, #0] + 800a89a: 687b ldr r3, [r7, #4] + 800a89c: 3304 adds r3, #4 + 800a89e: 4619 mov r1, r3 + 800a8a0: 4610 mov r0, r2 + 800a8a2: f001 fe61 bl 800c568 /* Initialize SDRAM timing Interface */ FMC_SDRAM_Timing_Init(hsdram->Instance, Timing, hsdram->Init.SDBank); - 800a8a2: 687b ldr r3, [r7, #4] - 800a8a4: 6818 ldr r0, [r3, #0] 800a8a6: 687b ldr r3, [r7, #4] - 800a8a8: 685b ldr r3, [r3, #4] - 800a8aa: 461a mov r2, r3 - 800a8ac: 6839 ldr r1, [r7, #0] - 800a8ae: f001 fecb bl 800c648 + 800a8a8: 6818 ldr r0, [r3, #0] + 800a8aa: 687b ldr r3, [r7, #4] + 800a8ac: 685b ldr r3, [r3, #4] + 800a8ae: 461a mov r2, r3 + 800a8b0: 6839 ldr r1, [r7, #0] + 800a8b2: f001 fecb bl 800c64c /* Update the SDRAM controller state */ hsdram->State = HAL_SDRAM_STATE_READY; - 800a8b2: 687b ldr r3, [r7, #4] - 800a8b4: 2201 movs r2, #1 - 800a8b6: f883 202c strb.w r2, [r3, #44] ; 0x2c + 800a8b6: 687b ldr r3, [r7, #4] + 800a8b8: 2201 movs r2, #1 + 800a8ba: f883 202c strb.w r2, [r3, #44] ; 0x2c return HAL_OK; - 800a8ba: 2300 movs r3, #0 + 800a8be: 2300 movs r3, #0 } - 800a8bc: 4618 mov r0, r3 - 800a8be: 3708 adds r7, #8 - 800a8c0: 46bd mov sp, r7 - 800a8c2: bd80 pop {r7, pc} + 800a8c0: 4618 mov r0, r3 + 800a8c2: 3708 adds r7, #8 + 800a8c4: 46bd mov sp, r7 + 800a8c6: bd80 pop {r7, pc} -0800a8c4 : +0800a8c8 : * @param Command SDRAM command structure * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_SDRAM_SendCommand(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_CommandTypeDef *Command, uint32_t Timeout) { - 800a8c4: b580 push {r7, lr} - 800a8c6: b084 sub sp, #16 - 800a8c8: af00 add r7, sp, #0 - 800a8ca: 60f8 str r0, [r7, #12] - 800a8cc: 60b9 str r1, [r7, #8] - 800a8ce: 607a str r2, [r7, #4] + 800a8c8: b580 push {r7, lr} + 800a8ca: b084 sub sp, #16 + 800a8cc: af00 add r7, sp, #0 + 800a8ce: 60f8 str r0, [r7, #12] + 800a8d0: 60b9 str r1, [r7, #8] + 800a8d2: 607a str r2, [r7, #4] /* Check the SDRAM controller state */ if(hsdram->State == HAL_SDRAM_STATE_BUSY) - 800a8d0: 68fb ldr r3, [r7, #12] - 800a8d2: f893 302c ldrb.w r3, [r3, #44] ; 0x2c - 800a8d6: b2db uxtb r3, r3 - 800a8d8: 2b02 cmp r3, #2 - 800a8da: d101 bne.n 800a8e0 + 800a8d4: 68fb ldr r3, [r7, #12] + 800a8d6: f893 302c ldrb.w r3, [r3, #44] ; 0x2c + 800a8da: b2db uxtb r3, r3 + 800a8dc: 2b02 cmp r3, #2 + 800a8de: d101 bne.n 800a8e4 { return HAL_BUSY; - 800a8dc: 2302 movs r3, #2 - 800a8de: e018 b.n 800a912 + 800a8e0: 2302 movs r3, #2 + 800a8e2: e018 b.n 800a916 } /* Update the SDRAM state */ hsdram->State = HAL_SDRAM_STATE_BUSY; - 800a8e0: 68fb ldr r3, [r7, #12] - 800a8e2: 2202 movs r2, #2 - 800a8e4: f883 202c strb.w r2, [r3, #44] ; 0x2c + 800a8e4: 68fb ldr r3, [r7, #12] + 800a8e6: 2202 movs r2, #2 + 800a8e8: f883 202c strb.w r2, [r3, #44] ; 0x2c /* Send SDRAM command */ FMC_SDRAM_SendCommand(hsdram->Instance, Command, Timeout); - 800a8e8: 68fb ldr r3, [r7, #12] - 800a8ea: 681b ldr r3, [r3, #0] - 800a8ec: 687a ldr r2, [r7, #4] - 800a8ee: 68b9 ldr r1, [r7, #8] - 800a8f0: 4618 mov r0, r3 - 800a8f2: f001 ff29 bl 800c748 + 800a8ec: 68fb ldr r3, [r7, #12] + 800a8ee: 681b ldr r3, [r3, #0] + 800a8f0: 687a ldr r2, [r7, #4] + 800a8f2: 68b9 ldr r1, [r7, #8] + 800a8f4: 4618 mov r0, r3 + 800a8f6: f001 ff29 bl 800c74c /* Update the SDRAM controller state state */ if(Command->CommandMode == FMC_SDRAM_CMD_PALL) - 800a8f6: 68bb ldr r3, [r7, #8] - 800a8f8: 681b ldr r3, [r3, #0] - 800a8fa: 2b02 cmp r3, #2 - 800a8fc: d104 bne.n 800a908 + 800a8fa: 68bb ldr r3, [r7, #8] + 800a8fc: 681b ldr r3, [r3, #0] + 800a8fe: 2b02 cmp r3, #2 + 800a900: d104 bne.n 800a90c { hsdram->State = HAL_SDRAM_STATE_PRECHARGED; - 800a8fe: 68fb ldr r3, [r7, #12] - 800a900: 2205 movs r2, #5 - 800a902: f883 202c strb.w r2, [r3, #44] ; 0x2c - 800a906: e003 b.n 800a910 + 800a902: 68fb ldr r3, [r7, #12] + 800a904: 2205 movs r2, #5 + 800a906: f883 202c strb.w r2, [r3, #44] ; 0x2c + 800a90a: e003 b.n 800a914 } else { hsdram->State = HAL_SDRAM_STATE_READY; - 800a908: 68fb ldr r3, [r7, #12] - 800a90a: 2201 movs r2, #1 - 800a90c: f883 202c strb.w r2, [r3, #44] ; 0x2c + 800a90c: 68fb ldr r3, [r7, #12] + 800a90e: 2201 movs r2, #1 + 800a910: f883 202c strb.w r2, [r3, #44] ; 0x2c } return HAL_OK; - 800a910: 2300 movs r3, #0 + 800a914: 2300 movs r3, #0 } - 800a912: 4618 mov r0, r3 - 800a914: 3710 adds r7, #16 - 800a916: 46bd mov sp, r7 - 800a918: bd80 pop {r7, pc} + 800a916: 4618 mov r0, r3 + 800a918: 3710 adds r7, #16 + 800a91a: 46bd mov sp, r7 + 800a91c: bd80 pop {r7, pc} -0800a91a : +0800a91e : * the configuration information for SDRAM module. * @param RefreshRate The SDRAM refresh rate value * @retval HAL status */ HAL_StatusTypeDef HAL_SDRAM_ProgramRefreshRate(SDRAM_HandleTypeDef *hsdram, uint32_t RefreshRate) { - 800a91a: b580 push {r7, lr} - 800a91c: b082 sub sp, #8 - 800a91e: af00 add r7, sp, #0 - 800a920: 6078 str r0, [r7, #4] - 800a922: 6039 str r1, [r7, #0] + 800a91e: b580 push {r7, lr} + 800a920: b082 sub sp, #8 + 800a922: af00 add r7, sp, #0 + 800a924: 6078 str r0, [r7, #4] + 800a926: 6039 str r1, [r7, #0] /* Check the SDRAM controller state */ if(hsdram->State == HAL_SDRAM_STATE_BUSY) - 800a924: 687b ldr r3, [r7, #4] - 800a926: f893 302c ldrb.w r3, [r3, #44] ; 0x2c - 800a92a: b2db uxtb r3, r3 - 800a92c: 2b02 cmp r3, #2 - 800a92e: d101 bne.n 800a934 + 800a928: 687b ldr r3, [r7, #4] + 800a92a: f893 302c ldrb.w r3, [r3, #44] ; 0x2c + 800a92e: b2db uxtb r3, r3 + 800a930: 2b02 cmp r3, #2 + 800a932: d101 bne.n 800a938 { return HAL_BUSY; - 800a930: 2302 movs r3, #2 - 800a932: e00e b.n 800a952 + 800a934: 2302 movs r3, #2 + 800a936: e00e b.n 800a956 } /* Update the SDRAM state */ hsdram->State = HAL_SDRAM_STATE_BUSY; - 800a934: 687b ldr r3, [r7, #4] - 800a936: 2202 movs r2, #2 - 800a938: f883 202c strb.w r2, [r3, #44] ; 0x2c + 800a938: 687b ldr r3, [r7, #4] + 800a93a: 2202 movs r2, #2 + 800a93c: f883 202c strb.w r2, [r3, #44] ; 0x2c /* Program the refresh rate */ FMC_SDRAM_ProgramRefreshRate(hsdram->Instance ,RefreshRate); - 800a93c: 687b ldr r3, [r7, #4] - 800a93e: 681b ldr r3, [r3, #0] - 800a940: 6839 ldr r1, [r7, #0] - 800a942: 4618 mov r0, r3 - 800a944: f001 ff21 bl 800c78a + 800a940: 687b ldr r3, [r7, #4] + 800a942: 681b ldr r3, [r3, #0] + 800a944: 6839 ldr r1, [r7, #0] + 800a946: 4618 mov r0, r3 + 800a948: f001 ff21 bl 800c78e /* Update the SDRAM state */ hsdram->State = HAL_SDRAM_STATE_READY; - 800a948: 687b ldr r3, [r7, #4] - 800a94a: 2201 movs r2, #1 - 800a94c: f883 202c strb.w r2, [r3, #44] ; 0x2c + 800a94c: 687b ldr r3, [r7, #4] + 800a94e: 2201 movs r2, #1 + 800a950: f883 202c strb.w r2, [r3, #44] ; 0x2c return HAL_OK; - 800a950: 2300 movs r3, #0 + 800a954: 2300 movs r3, #0 } - 800a952: 4618 mov r0, r3 - 800a954: 3708 adds r7, #8 - 800a956: 46bd mov sp, r7 - 800a958: bd80 pop {r7, pc} + 800a956: 4618 mov r0, r3 + 800a958: 3708 adds r7, #8 + 800a95a: 46bd mov sp, r7 + 800a95c: bd80 pop {r7, pc} -0800a95a : +0800a95e : * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi) { - 800a95a: b580 push {r7, lr} - 800a95c: b084 sub sp, #16 - 800a95e: af00 add r7, sp, #0 - 800a960: 6078 str r0, [r7, #4] + 800a95e: b580 push {r7, lr} + 800a960: b084 sub sp, #16 + 800a962: af00 add r7, sp, #0 + 800a964: 6078 str r0, [r7, #4] uint32_t frxth; /* Check the SPI handle allocation */ if (hspi == NULL) - 800a962: 687b ldr r3, [r7, #4] - 800a964: 2b00 cmp r3, #0 - 800a966: d101 bne.n 800a96c + 800a966: 687b ldr r3, [r7, #4] + 800a968: 2b00 cmp r3, #0 + 800a96a: d101 bne.n 800a970 { return HAL_ERROR; - 800a968: 2301 movs r3, #1 - 800a96a: e084 b.n 800aa76 + 800a96c: 2301 movs r3, #1 + 800a96e: e084 b.n 800aa7a { assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial)); assert_param(IS_SPI_CRC_LENGTH(hspi->Init.CRCLength)); } #else hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; - 800a96c: 687b ldr r3, [r7, #4] - 800a96e: 2200 movs r2, #0 - 800a970: 629a str r2, [r3, #40] ; 0x28 + 800a970: 687b ldr r3, [r7, #4] + 800a972: 2200 movs r2, #0 + 800a974: 629a str r2, [r3, #40] ; 0x28 #endif /* USE_SPI_CRC */ if (hspi->State == HAL_SPI_STATE_RESET) - 800a972: 687b ldr r3, [r7, #4] - 800a974: f893 305d ldrb.w r3, [r3, #93] ; 0x5d - 800a978: b2db uxtb r3, r3 - 800a97a: 2b00 cmp r3, #0 - 800a97c: d106 bne.n 800a98c + 800a976: 687b ldr r3, [r7, #4] + 800a978: f893 305d ldrb.w r3, [r3, #93] ; 0x5d + 800a97c: b2db uxtb r3, r3 + 800a97e: 2b00 cmp r3, #0 + 800a980: d106 bne.n 800a990 { /* Allocate lock resource and initialize it */ hspi->Lock = HAL_UNLOCKED; - 800a97e: 687b ldr r3, [r7, #4] - 800a980: 2200 movs r2, #0 - 800a982: f883 205c strb.w r2, [r3, #92] ; 0x5c + 800a982: 687b ldr r3, [r7, #4] + 800a984: 2200 movs r2, #0 + 800a986: f883 205c strb.w r2, [r3, #92] ; 0x5c /* Init the low level hardware : GPIO, CLOCK, NVIC... */ hspi->MspInitCallback(hspi); #else /* Init the low level hardware : GPIO, CLOCK, NVIC... */ HAL_SPI_MspInit(hspi); - 800a986: 6878 ldr r0, [r7, #4] - 800a988: f7f9 fe66 bl 8004658 + 800a98a: 6878 ldr r0, [r7, #4] + 800a98c: f7f9 fe66 bl 800465c #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } hspi->State = HAL_SPI_STATE_BUSY; - 800a98c: 687b ldr r3, [r7, #4] - 800a98e: 2202 movs r2, #2 - 800a990: f883 205d strb.w r2, [r3, #93] ; 0x5d + 800a990: 687b ldr r3, [r7, #4] + 800a992: 2202 movs r2, #2 + 800a994: f883 205d strb.w r2, [r3, #93] ; 0x5d /* Disable the selected SPI peripheral */ __HAL_SPI_DISABLE(hspi); - 800a994: 687b ldr r3, [r7, #4] - 800a996: 681b ldr r3, [r3, #0] - 800a998: 681a ldr r2, [r3, #0] - 800a99a: 687b ldr r3, [r7, #4] - 800a99c: 681b ldr r3, [r3, #0] - 800a99e: f022 0240 bic.w r2, r2, #64 ; 0x40 - 800a9a2: 601a str r2, [r3, #0] + 800a998: 687b ldr r3, [r7, #4] + 800a99a: 681b ldr r3, [r3, #0] + 800a99c: 681a ldr r2, [r3, #0] + 800a99e: 687b ldr r3, [r7, #4] + 800a9a0: 681b ldr r3, [r3, #0] + 800a9a2: f022 0240 bic.w r2, r2, #64 ; 0x40 + 800a9a6: 601a str r2, [r3, #0] /* Align by default the rs fifo threshold on the data size */ if (hspi->Init.DataSize > SPI_DATASIZE_8BIT) - 800a9a4: 687b ldr r3, [r7, #4] - 800a9a6: 68db ldr r3, [r3, #12] - 800a9a8: f5b3 6fe0 cmp.w r3, #1792 ; 0x700 - 800a9ac: d902 bls.n 800a9b4 + 800a9a8: 687b ldr r3, [r7, #4] + 800a9aa: 68db ldr r3, [r3, #12] + 800a9ac: f5b3 6fe0 cmp.w r3, #1792 ; 0x700 + 800a9b0: d902 bls.n 800a9b8 { frxth = SPI_RXFIFO_THRESHOLD_HF; - 800a9ae: 2300 movs r3, #0 - 800a9b0: 60fb str r3, [r7, #12] - 800a9b2: e002 b.n 800a9ba + 800a9b2: 2300 movs r3, #0 + 800a9b4: 60fb str r3, [r7, #12] + 800a9b6: e002 b.n 800a9be } else { frxth = SPI_RXFIFO_THRESHOLD_QF; - 800a9b4: f44f 5380 mov.w r3, #4096 ; 0x1000 - 800a9b8: 60fb str r3, [r7, #12] + 800a9b8: f44f 5380 mov.w r3, #4096 ; 0x1000 + 800a9bc: 60fb str r3, [r7, #12] } /* CRC calculation is valid only for 16Bit and 8 Bit */ if ((hspi->Init.DataSize != SPI_DATASIZE_16BIT) && (hspi->Init.DataSize != SPI_DATASIZE_8BIT)) - 800a9ba: 687b ldr r3, [r7, #4] - 800a9bc: 68db ldr r3, [r3, #12] - 800a9be: f5b3 6f70 cmp.w r3, #3840 ; 0xf00 - 800a9c2: d007 beq.n 800a9d4 - 800a9c4: 687b ldr r3, [r7, #4] - 800a9c6: 68db ldr r3, [r3, #12] - 800a9c8: f5b3 6fe0 cmp.w r3, #1792 ; 0x700 - 800a9cc: d002 beq.n 800a9d4 + 800a9be: 687b ldr r3, [r7, #4] + 800a9c0: 68db ldr r3, [r3, #12] + 800a9c2: f5b3 6f70 cmp.w r3, #3840 ; 0xf00 + 800a9c6: d007 beq.n 800a9d8 + 800a9c8: 687b ldr r3, [r7, #4] + 800a9ca: 68db ldr r3, [r3, #12] + 800a9cc: f5b3 6fe0 cmp.w r3, #1792 ; 0x700 + 800a9d0: d002 beq.n 800a9d8 { /* CRC must be disabled */ hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; - 800a9ce: 687b ldr r3, [r7, #4] - 800a9d0: 2200 movs r2, #0 - 800a9d2: 629a str r2, [r3, #40] ; 0x28 + 800a9d2: 687b ldr r3, [r7, #4] + 800a9d4: 2200 movs r2, #0 + 800a9d6: 629a str r2, [r3, #40] ; 0x28 } /* Align the CRC Length on the data size */ if (hspi->Init.CRCLength == SPI_CRC_LENGTH_DATASIZE) - 800a9d4: 687b ldr r3, [r7, #4] - 800a9d6: 6b1b ldr r3, [r3, #48] ; 0x30 - 800a9d8: 2b00 cmp r3, #0 - 800a9da: d10b bne.n 800a9f4 + 800a9d8: 687b ldr r3, [r7, #4] + 800a9da: 6b1b ldr r3, [r3, #48] ; 0x30 + 800a9dc: 2b00 cmp r3, #0 + 800a9de: d10b bne.n 800a9f8 { /* CRC Length aligned on the data size : value set by default */ if (hspi->Init.DataSize > SPI_DATASIZE_8BIT) - 800a9dc: 687b ldr r3, [r7, #4] - 800a9de: 68db ldr r3, [r3, #12] - 800a9e0: f5b3 6fe0 cmp.w r3, #1792 ; 0x700 - 800a9e4: d903 bls.n 800a9ee + 800a9e0: 687b ldr r3, [r7, #4] + 800a9e2: 68db ldr r3, [r3, #12] + 800a9e4: f5b3 6fe0 cmp.w r3, #1792 ; 0x700 + 800a9e8: d903 bls.n 800a9f2 { hspi->Init.CRCLength = SPI_CRC_LENGTH_16BIT; - 800a9e6: 687b ldr r3, [r7, #4] - 800a9e8: 2202 movs r2, #2 - 800a9ea: 631a str r2, [r3, #48] ; 0x30 - 800a9ec: e002 b.n 800a9f4 + 800a9ea: 687b ldr r3, [r7, #4] + 800a9ec: 2202 movs r2, #2 + 800a9ee: 631a str r2, [r3, #48] ; 0x30 + 800a9f0: e002 b.n 800a9f8 } else { hspi->Init.CRCLength = SPI_CRC_LENGTH_8BIT; - 800a9ee: 687b ldr r3, [r7, #4] - 800a9f0: 2201 movs r2, #1 - 800a9f2: 631a str r2, [r3, #48] ; 0x30 + 800a9f2: 687b ldr r3, [r7, #4] + 800a9f4: 2201 movs r2, #1 + 800a9f6: 631a str r2, [r3, #48] ; 0x30 } /*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/ /* Configure : SPI Mode, Communication Mode, Clock polarity and phase, NSS management, Communication speed, First bit and CRC calculation state */ WRITE_REG(hspi->Instance->CR1, (hspi->Init.Mode | hspi->Init.Direction | - 800a9f4: 687b ldr r3, [r7, #4] - 800a9f6: 685a ldr r2, [r3, #4] 800a9f8: 687b ldr r3, [r7, #4] - 800a9fa: 689b ldr r3, [r3, #8] - 800a9fc: 431a orrs r2, r3 - 800a9fe: 687b ldr r3, [r7, #4] - 800aa00: 691b ldr r3, [r3, #16] - 800aa02: 431a orrs r2, r3 - 800aa04: 687b ldr r3, [r7, #4] - 800aa06: 695b ldr r3, [r3, #20] - 800aa08: 431a orrs r2, r3 - 800aa0a: 687b ldr r3, [r7, #4] - 800aa0c: 699b ldr r3, [r3, #24] - 800aa0e: f403 7300 and.w r3, r3, #512 ; 0x200 - 800aa12: 431a orrs r2, r3 - 800aa14: 687b ldr r3, [r7, #4] - 800aa16: 69db ldr r3, [r3, #28] - 800aa18: 431a orrs r2, r3 - 800aa1a: 687b ldr r3, [r7, #4] - 800aa1c: 6a1b ldr r3, [r3, #32] - 800aa1e: ea42 0103 orr.w r1, r2, r3 - 800aa22: 687b ldr r3, [r7, #4] - 800aa24: 6a9a ldr r2, [r3, #40] ; 0x28 + 800a9fa: 685a ldr r2, [r3, #4] + 800a9fc: 687b ldr r3, [r7, #4] + 800a9fe: 689b ldr r3, [r3, #8] + 800aa00: 431a orrs r2, r3 + 800aa02: 687b ldr r3, [r7, #4] + 800aa04: 691b ldr r3, [r3, #16] + 800aa06: 431a orrs r2, r3 + 800aa08: 687b ldr r3, [r7, #4] + 800aa0a: 695b ldr r3, [r3, #20] + 800aa0c: 431a orrs r2, r3 + 800aa0e: 687b ldr r3, [r7, #4] + 800aa10: 699b ldr r3, [r3, #24] + 800aa12: f403 7300 and.w r3, r3, #512 ; 0x200 + 800aa16: 431a orrs r2, r3 + 800aa18: 687b ldr r3, [r7, #4] + 800aa1a: 69db ldr r3, [r3, #28] + 800aa1c: 431a orrs r2, r3 + 800aa1e: 687b ldr r3, [r7, #4] + 800aa20: 6a1b ldr r3, [r3, #32] + 800aa22: ea42 0103 orr.w r1, r2, r3 800aa26: 687b ldr r3, [r7, #4] - 800aa28: 681b ldr r3, [r3, #0] - 800aa2a: 430a orrs r2, r1 - 800aa2c: 601a str r2, [r3, #0] + 800aa28: 6a9a ldr r2, [r3, #40] ; 0x28 + 800aa2a: 687b ldr r3, [r7, #4] + 800aa2c: 681b ldr r3, [r3, #0] + 800aa2e: 430a orrs r2, r1 + 800aa30: 601a str r2, [r3, #0] hspi->Instance->CR1 |= SPI_CR1_CRCL; } #endif /* USE_SPI_CRC */ /* Configure : NSS management, TI Mode, NSS Pulse, Data size and Rx Fifo threshold */ WRITE_REG(hspi->Instance->CR2, (((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE) | hspi->Init.TIMode | - 800aa2e: 687b ldr r3, [r7, #4] - 800aa30: 699b ldr r3, [r3, #24] - 800aa32: 0c1b lsrs r3, r3, #16 - 800aa34: f003 0204 and.w r2, r3, #4 - 800aa38: 687b ldr r3, [r7, #4] - 800aa3a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800aa3c: 431a orrs r2, r3 - 800aa3e: 687b ldr r3, [r7, #4] - 800aa40: 6b5b ldr r3, [r3, #52] ; 0x34 - 800aa42: 431a orrs r2, r3 - 800aa44: 687b ldr r3, [r7, #4] - 800aa46: 68db ldr r3, [r3, #12] - 800aa48: ea42 0103 orr.w r1, r2, r3 - 800aa4c: 687b ldr r3, [r7, #4] - 800aa4e: 681b ldr r3, [r3, #0] - 800aa50: 68fa ldr r2, [r7, #12] - 800aa52: 430a orrs r2, r1 - 800aa54: 605a str r2, [r3, #4] + 800aa32: 687b ldr r3, [r7, #4] + 800aa34: 699b ldr r3, [r3, #24] + 800aa36: 0c1b lsrs r3, r3, #16 + 800aa38: f003 0204 and.w r2, r3, #4 + 800aa3c: 687b ldr r3, [r7, #4] + 800aa3e: 6a5b ldr r3, [r3, #36] ; 0x24 + 800aa40: 431a orrs r2, r3 + 800aa42: 687b ldr r3, [r7, #4] + 800aa44: 6b5b ldr r3, [r3, #52] ; 0x34 + 800aa46: 431a orrs r2, r3 + 800aa48: 687b ldr r3, [r7, #4] + 800aa4a: 68db ldr r3, [r3, #12] + 800aa4c: ea42 0103 orr.w r1, r2, r3 + 800aa50: 687b ldr r3, [r7, #4] + 800aa52: 681b ldr r3, [r3, #0] + 800aa54: 68fa ldr r2, [r7, #12] + 800aa56: 430a orrs r2, r1 + 800aa58: 605a str r2, [r3, #4] } #endif /* USE_SPI_CRC */ #if defined(SPI_I2SCFGR_I2SMOD) /* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */ CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD); - 800aa56: 687b ldr r3, [r7, #4] - 800aa58: 681b ldr r3, [r3, #0] - 800aa5a: 69da ldr r2, [r3, #28] - 800aa5c: 687b ldr r3, [r7, #4] - 800aa5e: 681b ldr r3, [r3, #0] - 800aa60: f422 6200 bic.w r2, r2, #2048 ; 0x800 - 800aa64: 61da str r2, [r3, #28] + 800aa5a: 687b ldr r3, [r7, #4] + 800aa5c: 681b ldr r3, [r3, #0] + 800aa5e: 69da ldr r2, [r3, #28] + 800aa60: 687b ldr r3, [r7, #4] + 800aa62: 681b ldr r3, [r3, #0] + 800aa64: f422 6200 bic.w r2, r2, #2048 ; 0x800 + 800aa68: 61da str r2, [r3, #28] #endif /* SPI_I2SCFGR_I2SMOD */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; - 800aa66: 687b ldr r3, [r7, #4] - 800aa68: 2200 movs r2, #0 - 800aa6a: 661a str r2, [r3, #96] ; 0x60 + 800aa6a: 687b ldr r3, [r7, #4] + 800aa6c: 2200 movs r2, #0 + 800aa6e: 661a str r2, [r3, #96] ; 0x60 hspi->State = HAL_SPI_STATE_READY; - 800aa6c: 687b ldr r3, [r7, #4] - 800aa6e: 2201 movs r2, #1 - 800aa70: f883 205d strb.w r2, [r3, #93] ; 0x5d + 800aa70: 687b ldr r3, [r7, #4] + 800aa72: 2201 movs r2, #1 + 800aa74: f883 205d strb.w r2, [r3, #93] ; 0x5d return HAL_OK; - 800aa74: 2300 movs r3, #0 + 800aa78: 2300 movs r3, #0 } - 800aa76: 4618 mov r0, r3 - 800aa78: 3710 adds r7, #16 - 800aa7a: 46bd mov sp, r7 - 800aa7c: bd80 pop {r7, pc} + 800aa7a: 4618 mov r0, r3 + 800aa7c: 3710 adds r7, #16 + 800aa7e: 46bd mov sp, r7 + 800aa80: bd80 pop {r7, pc} -0800aa7e : +0800aa82 : * Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init() * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim) { - 800aa7e: b580 push {r7, lr} - 800aa80: b082 sub sp, #8 - 800aa82: af00 add r7, sp, #0 - 800aa84: 6078 str r0, [r7, #4] + 800aa82: b580 push {r7, lr} + 800aa84: b082 sub sp, #8 + 800aa86: af00 add r7, sp, #0 + 800aa88: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) - 800aa86: 687b ldr r3, [r7, #4] - 800aa88: 2b00 cmp r3, #0 - 800aa8a: d101 bne.n 800aa90 + 800aa8a: 687b ldr r3, [r7, #4] + 800aa8c: 2b00 cmp r3, #0 + 800aa8e: d101 bne.n 800aa94 { return HAL_ERROR; - 800aa8c: 2301 movs r3, #1 - 800aa8e: e01d b.n 800aacc + 800aa90: 2301 movs r3, #1 + 800aa92: e01d b.n 800aad0 assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) - 800aa90: 687b ldr r3, [r7, #4] - 800aa92: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 800aa96: b2db uxtb r3, r3 - 800aa98: 2b00 cmp r3, #0 - 800aa9a: d106 bne.n 800aaaa + 800aa94: 687b ldr r3, [r7, #4] + 800aa96: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 800aa9a: b2db uxtb r3, r3 + 800aa9c: 2b00 cmp r3, #0 + 800aa9e: d106 bne.n 800aaae { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 800aa9c: 687b ldr r3, [r7, #4] - 800aa9e: 2200 movs r2, #0 - 800aaa0: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800aaa0: 687b ldr r3, [r7, #4] + 800aaa2: 2200 movs r2, #0 + 800aaa4: f883 203c strb.w r2, [r3, #60] ; 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->Base_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC */ HAL_TIM_Base_MspInit(htim); - 800aaa4: 6878 ldr r0, [r7, #4] - 800aaa6: f7f9 fe49 bl 800473c + 800aaa8: 6878 ldr r0, [r7, #4] + 800aaaa: f7f9 fe49 bl 8004740 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 800aaaa: 687b ldr r3, [r7, #4] - 800aaac: 2202 movs r2, #2 - 800aaae: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800aaae: 687b ldr r3, [r7, #4] + 800aab0: 2202 movs r2, #2 + 800aab2: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 800aab2: 687b ldr r3, [r7, #4] - 800aab4: 681a ldr r2, [r3, #0] 800aab6: 687b ldr r3, [r7, #4] - 800aab8: 3304 adds r3, #4 - 800aaba: 4619 mov r1, r3 - 800aabc: 4610 mov r0, r2 - 800aabe: f000 fbc3 bl 800b248 + 800aab8: 681a ldr r2, [r3, #0] + 800aaba: 687b ldr r3, [r7, #4] + 800aabc: 3304 adds r3, #4 + 800aabe: 4619 mov r1, r3 + 800aac0: 4610 mov r0, r2 + 800aac2: f000 fbc3 bl 800b24c /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 800aac2: 687b ldr r3, [r7, #4] - 800aac4: 2201 movs r2, #1 - 800aac6: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800aac6: 687b ldr r3, [r7, #4] + 800aac8: 2201 movs r2, #1 + 800aaca: f883 203d strb.w r2, [r3, #61] ; 0x3d return HAL_OK; - 800aaca: 2300 movs r3, #0 + 800aace: 2300 movs r3, #0 } - 800aacc: 4618 mov r0, r3 - 800aace: 3708 adds r7, #8 - 800aad0: 46bd mov sp, r7 - 800aad2: bd80 pop {r7, pc} + 800aad0: 4618 mov r0, r3 + 800aad2: 3708 adds r7, #8 + 800aad4: 46bd mov sp, r7 + 800aad6: bd80 pop {r7, pc} -0800aad4 : +0800aad8 : * @brief Starts the TIM Base generation in interrupt mode. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim) { - 800aad4: b480 push {r7} - 800aad6: b085 sub sp, #20 - 800aad8: af00 add r7, sp, #0 - 800aada: 6078 str r0, [r7, #4] + 800aad8: b480 push {r7} + 800aada: b085 sub sp, #20 + 800aadc: af00 add r7, sp, #0 + 800aade: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); /* Enable the TIM Update interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE); - 800aadc: 687b ldr r3, [r7, #4] - 800aade: 681b ldr r3, [r3, #0] - 800aae0: 68da ldr r2, [r3, #12] - 800aae2: 687b ldr r3, [r7, #4] - 800aae4: 681b ldr r3, [r3, #0] - 800aae6: f042 0201 orr.w r2, r2, #1 - 800aaea: 60da str r2, [r3, #12] + 800aae0: 687b ldr r3, [r7, #4] + 800aae2: 681b ldr r3, [r3, #0] + 800aae4: 68da ldr r2, [r3, #12] + 800aae6: 687b ldr r3, [r7, #4] + 800aae8: 681b ldr r3, [r3, #0] + 800aaea: f042 0201 orr.w r2, r2, #1 + 800aaee: 60da str r2, [r3, #12] /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - 800aaec: 687b ldr r3, [r7, #4] - 800aaee: 681b ldr r3, [r3, #0] - 800aaf0: 689a ldr r2, [r3, #8] - 800aaf2: 4b0c ldr r3, [pc, #48] ; (800ab24 ) - 800aaf4: 4013 ands r3, r2 - 800aaf6: 60fb str r3, [r7, #12] + 800aaf0: 687b ldr r3, [r7, #4] + 800aaf2: 681b ldr r3, [r3, #0] + 800aaf4: 689a ldr r2, [r3, #8] + 800aaf6: 4b0c ldr r3, [pc, #48] ; (800ab28 ) + 800aaf8: 4013 ands r3, r2 + 800aafa: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 800aaf8: 68fb ldr r3, [r7, #12] - 800aafa: 2b06 cmp r3, #6 - 800aafc: d00b beq.n 800ab16 - 800aafe: 68fb ldr r3, [r7, #12] - 800ab00: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800ab04: d007 beq.n 800ab16 + 800aafc: 68fb ldr r3, [r7, #12] + 800aafe: 2b06 cmp r3, #6 + 800ab00: d00b beq.n 800ab1a + 800ab02: 68fb ldr r3, [r7, #12] + 800ab04: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800ab08: d007 beq.n 800ab1a { __HAL_TIM_ENABLE(htim); - 800ab06: 687b ldr r3, [r7, #4] - 800ab08: 681b ldr r3, [r3, #0] - 800ab0a: 681a ldr r2, [r3, #0] - 800ab0c: 687b ldr r3, [r7, #4] - 800ab0e: 681b ldr r3, [r3, #0] - 800ab10: f042 0201 orr.w r2, r2, #1 - 800ab14: 601a str r2, [r3, #0] + 800ab0a: 687b ldr r3, [r7, #4] + 800ab0c: 681b ldr r3, [r3, #0] + 800ab0e: 681a ldr r2, [r3, #0] + 800ab10: 687b ldr r3, [r7, #4] + 800ab12: 681b ldr r3, [r3, #0] + 800ab14: f042 0201 orr.w r2, r2, #1 + 800ab18: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; - 800ab16: 2300 movs r3, #0 + 800ab1a: 2300 movs r3, #0 } - 800ab18: 4618 mov r0, r3 - 800ab1a: 3714 adds r7, #20 - 800ab1c: 46bd mov sp, r7 - 800ab1e: f85d 7b04 ldr.w r7, [sp], #4 - 800ab22: 4770 bx lr - 800ab24: 00010007 .word 0x00010007 + 800ab1c: 4618 mov r0, r3 + 800ab1e: 3714 adds r7, #20 + 800ab20: 46bd mov sp, r7 + 800ab22: f85d 7b04 ldr.w r7, [sp], #4 + 800ab26: 4770 bx lr + 800ab28: 00010007 .word 0x00010007 -0800ab28 : +0800ab2c : * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init() * @param htim TIM PWM handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim) { - 800ab28: b580 push {r7, lr} - 800ab2a: b082 sub sp, #8 - 800ab2c: af00 add r7, sp, #0 - 800ab2e: 6078 str r0, [r7, #4] + 800ab2c: b580 push {r7, lr} + 800ab2e: b082 sub sp, #8 + 800ab30: af00 add r7, sp, #0 + 800ab32: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) - 800ab30: 687b ldr r3, [r7, #4] - 800ab32: 2b00 cmp r3, #0 - 800ab34: d101 bne.n 800ab3a + 800ab34: 687b ldr r3, [r7, #4] + 800ab36: 2b00 cmp r3, #0 + 800ab38: d101 bne.n 800ab3e { return HAL_ERROR; - 800ab36: 2301 movs r3, #1 - 800ab38: e01d b.n 800ab76 + 800ab3a: 2301 movs r3, #1 + 800ab3c: e01d b.n 800ab7a assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) - 800ab3a: 687b ldr r3, [r7, #4] - 800ab3c: f893 303d ldrb.w r3, [r3, #61] ; 0x3d - 800ab40: b2db uxtb r3, r3 - 800ab42: 2b00 cmp r3, #0 - 800ab44: d106 bne.n 800ab54 + 800ab3e: 687b ldr r3, [r7, #4] + 800ab40: f893 303d ldrb.w r3, [r3, #61] ; 0x3d + 800ab44: b2db uxtb r3, r3 + 800ab46: 2b00 cmp r3, #0 + 800ab48: d106 bne.n 800ab58 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 800ab46: 687b ldr r3, [r7, #4] - 800ab48: 2200 movs r2, #0 - 800ab4a: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800ab4a: 687b ldr r3, [r7, #4] + 800ab4c: 2200 movs r2, #0 + 800ab4e: f883 203c strb.w r2, [r3, #60] ; 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->PWM_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_PWM_MspInit(htim); - 800ab4e: 6878 ldr r0, [r7, #4] - 800ab50: f000 f815 bl 800ab7e + 800ab52: 6878 ldr r0, [r7, #4] + 800ab54: f000 f815 bl 800ab82 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 800ab54: 687b ldr r3, [r7, #4] - 800ab56: 2202 movs r2, #2 - 800ab58: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800ab58: 687b ldr r3, [r7, #4] + 800ab5a: 2202 movs r2, #2 + 800ab5c: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Init the base time for the PWM */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 800ab5c: 687b ldr r3, [r7, #4] - 800ab5e: 681a ldr r2, [r3, #0] 800ab60: 687b ldr r3, [r7, #4] - 800ab62: 3304 adds r3, #4 - 800ab64: 4619 mov r1, r3 - 800ab66: 4610 mov r0, r2 - 800ab68: f000 fb6e bl 800b248 + 800ab62: 681a ldr r2, [r3, #0] + 800ab64: 687b ldr r3, [r7, #4] + 800ab66: 3304 adds r3, #4 + 800ab68: 4619 mov r1, r3 + 800ab6a: 4610 mov r0, r2 + 800ab6c: f000 fb6e bl 800b24c /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 800ab6c: 687b ldr r3, [r7, #4] - 800ab6e: 2201 movs r2, #1 - 800ab70: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800ab70: 687b ldr r3, [r7, #4] + 800ab72: 2201 movs r2, #1 + 800ab74: f883 203d strb.w r2, [r3, #61] ; 0x3d return HAL_OK; - 800ab74: 2300 movs r3, #0 + 800ab78: 2300 movs r3, #0 } - 800ab76: 4618 mov r0, r3 - 800ab78: 3708 adds r7, #8 - 800ab7a: 46bd mov sp, r7 - 800ab7c: bd80 pop {r7, pc} + 800ab7a: 4618 mov r0, r3 + 800ab7c: 3708 adds r7, #8 + 800ab7e: 46bd mov sp, r7 + 800ab80: bd80 pop {r7, pc} -0800ab7e : +0800ab82 : * @brief Initializes the TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) { - 800ab7e: b480 push {r7} - 800ab80: b083 sub sp, #12 - 800ab82: af00 add r7, sp, #0 - 800ab84: 6078 str r0, [r7, #4] + 800ab82: b480 push {r7} + 800ab84: b083 sub sp, #12 + 800ab86: af00 add r7, sp, #0 + 800ab88: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_MspInit could be implemented in the user file */ } - 800ab86: bf00 nop - 800ab88: 370c adds r7, #12 - 800ab8a: 46bd mov sp, r7 - 800ab8c: f85d 7b04 ldr.w r7, [sp], #4 - 800ab90: 4770 bx lr + 800ab8a: bf00 nop + 800ab8c: 370c adds r7, #12 + 800ab8e: 46bd mov sp, r7 + 800ab90: f85d 7b04 ldr.w r7, [sp], #4 + 800ab94: 4770 bx lr -0800ab92 : +0800ab96 : * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { - 800ab92: b580 push {r7, lr} - 800ab94: b082 sub sp, #8 - 800ab96: af00 add r7, sp, #0 - 800ab98: 6078 str r0, [r7, #4] + 800ab96: b580 push {r7, lr} + 800ab98: b082 sub sp, #8 + 800ab9a: af00 add r7, sp, #0 + 800ab9c: 6078 str r0, [r7, #4] /* Capture compare 1 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET) - 800ab9a: 687b ldr r3, [r7, #4] - 800ab9c: 681b ldr r3, [r3, #0] - 800ab9e: 691b ldr r3, [r3, #16] - 800aba0: f003 0302 and.w r3, r3, #2 - 800aba4: 2b02 cmp r3, #2 - 800aba6: d122 bne.n 800abee + 800ab9e: 687b ldr r3, [r7, #4] + 800aba0: 681b ldr r3, [r3, #0] + 800aba2: 691b ldr r3, [r3, #16] + 800aba4: f003 0302 and.w r3, r3, #2 + 800aba8: 2b02 cmp r3, #2 + 800abaa: d122 bne.n 800abf2 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET) - 800aba8: 687b ldr r3, [r7, #4] - 800abaa: 681b ldr r3, [r3, #0] - 800abac: 68db ldr r3, [r3, #12] - 800abae: f003 0302 and.w r3, r3, #2 - 800abb2: 2b02 cmp r3, #2 - 800abb4: d11b bne.n 800abee + 800abac: 687b ldr r3, [r7, #4] + 800abae: 681b ldr r3, [r3, #0] + 800abb0: 68db ldr r3, [r3, #12] + 800abb2: f003 0302 and.w r3, r3, #2 + 800abb6: 2b02 cmp r3, #2 + 800abb8: d11b bne.n 800abf2 { { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1); - 800abb6: 687b ldr r3, [r7, #4] - 800abb8: 681b ldr r3, [r3, #0] - 800abba: f06f 0202 mvn.w r2, #2 - 800abbe: 611a str r2, [r3, #16] + 800abba: 687b ldr r3, [r7, #4] + 800abbc: 681b ldr r3, [r3, #0] + 800abbe: f06f 0202 mvn.w r2, #2 + 800abc2: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 800abc0: 687b ldr r3, [r7, #4] - 800abc2: 2201 movs r2, #1 - 800abc4: 771a strb r2, [r3, #28] + 800abc4: 687b ldr r3, [r7, #4] + 800abc6: 2201 movs r2, #1 + 800abc8: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) - 800abc6: 687b ldr r3, [r7, #4] - 800abc8: 681b ldr r3, [r3, #0] - 800abca: 699b ldr r3, [r3, #24] - 800abcc: f003 0303 and.w r3, r3, #3 - 800abd0: 2b00 cmp r3, #0 - 800abd2: d003 beq.n 800abdc + 800abca: 687b ldr r3, [r7, #4] + 800abcc: 681b ldr r3, [r3, #0] + 800abce: 699b ldr r3, [r3, #24] + 800abd0: f003 0303 and.w r3, r3, #3 + 800abd4: 2b00 cmp r3, #0 + 800abd6: d003 beq.n 800abe0 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 800abd4: 6878 ldr r0, [r7, #4] - 800abd6: f000 fb19 bl 800b20c - 800abda: e005 b.n 800abe8 + 800abd8: 6878 ldr r0, [r7, #4] + 800abda: f000 fb19 bl 800b210 + 800abde: e005 b.n 800abec { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 800abdc: 6878 ldr r0, [r7, #4] - 800abde: f000 fb0b bl 800b1f8 + 800abe0: 6878 ldr r0, [r7, #4] + 800abe2: f000 fb0b bl 800b1fc HAL_TIM_PWM_PulseFinishedCallback(htim); - 800abe2: 6878 ldr r0, [r7, #4] - 800abe4: f000 fb1c bl 800b220 + 800abe6: 6878 ldr r0, [r7, #4] + 800abe8: f000 fb1c bl 800b224 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800abe8: 687b ldr r3, [r7, #4] - 800abea: 2200 movs r2, #0 - 800abec: 771a strb r2, [r3, #28] + 800abec: 687b ldr r3, [r7, #4] + 800abee: 2200 movs r2, #0 + 800abf0: 771a strb r2, [r3, #28] } } } /* Capture compare 2 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET) - 800abee: 687b ldr r3, [r7, #4] - 800abf0: 681b ldr r3, [r3, #0] - 800abf2: 691b ldr r3, [r3, #16] - 800abf4: f003 0304 and.w r3, r3, #4 - 800abf8: 2b04 cmp r3, #4 - 800abfa: d122 bne.n 800ac42 + 800abf2: 687b ldr r3, [r7, #4] + 800abf4: 681b ldr r3, [r3, #0] + 800abf6: 691b ldr r3, [r3, #16] + 800abf8: f003 0304 and.w r3, r3, #4 + 800abfc: 2b04 cmp r3, #4 + 800abfe: d122 bne.n 800ac46 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET) - 800abfc: 687b ldr r3, [r7, #4] - 800abfe: 681b ldr r3, [r3, #0] - 800ac00: 68db ldr r3, [r3, #12] - 800ac02: f003 0304 and.w r3, r3, #4 - 800ac06: 2b04 cmp r3, #4 - 800ac08: d11b bne.n 800ac42 + 800ac00: 687b ldr r3, [r7, #4] + 800ac02: 681b ldr r3, [r3, #0] + 800ac04: 68db ldr r3, [r3, #12] + 800ac06: f003 0304 and.w r3, r3, #4 + 800ac0a: 2b04 cmp r3, #4 + 800ac0c: d11b bne.n 800ac46 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2); - 800ac0a: 687b ldr r3, [r7, #4] - 800ac0c: 681b ldr r3, [r3, #0] - 800ac0e: f06f 0204 mvn.w r2, #4 - 800ac12: 611a str r2, [r3, #16] + 800ac0e: 687b ldr r3, [r7, #4] + 800ac10: 681b ldr r3, [r3, #0] + 800ac12: f06f 0204 mvn.w r2, #4 + 800ac16: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 800ac14: 687b ldr r3, [r7, #4] - 800ac16: 2202 movs r2, #2 - 800ac18: 771a strb r2, [r3, #28] + 800ac18: 687b ldr r3, [r7, #4] + 800ac1a: 2202 movs r2, #2 + 800ac1c: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) - 800ac1a: 687b ldr r3, [r7, #4] - 800ac1c: 681b ldr r3, [r3, #0] - 800ac1e: 699b ldr r3, [r3, #24] - 800ac20: f403 7340 and.w r3, r3, #768 ; 0x300 - 800ac24: 2b00 cmp r3, #0 - 800ac26: d003 beq.n 800ac30 + 800ac1e: 687b ldr r3, [r7, #4] + 800ac20: 681b ldr r3, [r3, #0] + 800ac22: 699b ldr r3, [r3, #24] + 800ac24: f403 7340 and.w r3, r3, #768 ; 0x300 + 800ac28: 2b00 cmp r3, #0 + 800ac2a: d003 beq.n 800ac34 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 800ac28: 6878 ldr r0, [r7, #4] - 800ac2a: f000 faef bl 800b20c - 800ac2e: e005 b.n 800ac3c + 800ac2c: 6878 ldr r0, [r7, #4] + 800ac2e: f000 faef bl 800b210 + 800ac32: e005 b.n 800ac40 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 800ac30: 6878 ldr r0, [r7, #4] - 800ac32: f000 fae1 bl 800b1f8 + 800ac34: 6878 ldr r0, [r7, #4] + 800ac36: f000 fae1 bl 800b1fc HAL_TIM_PWM_PulseFinishedCallback(htim); - 800ac36: 6878 ldr r0, [r7, #4] - 800ac38: f000 faf2 bl 800b220 + 800ac3a: 6878 ldr r0, [r7, #4] + 800ac3c: f000 faf2 bl 800b224 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800ac3c: 687b ldr r3, [r7, #4] - 800ac3e: 2200 movs r2, #0 - 800ac40: 771a strb r2, [r3, #28] + 800ac40: 687b ldr r3, [r7, #4] + 800ac42: 2200 movs r2, #0 + 800ac44: 771a strb r2, [r3, #28] } } /* Capture compare 3 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET) - 800ac42: 687b ldr r3, [r7, #4] - 800ac44: 681b ldr r3, [r3, #0] - 800ac46: 691b ldr r3, [r3, #16] - 800ac48: f003 0308 and.w r3, r3, #8 - 800ac4c: 2b08 cmp r3, #8 - 800ac4e: d122 bne.n 800ac96 + 800ac46: 687b ldr r3, [r7, #4] + 800ac48: 681b ldr r3, [r3, #0] + 800ac4a: 691b ldr r3, [r3, #16] + 800ac4c: f003 0308 and.w r3, r3, #8 + 800ac50: 2b08 cmp r3, #8 + 800ac52: d122 bne.n 800ac9a { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET) - 800ac50: 687b ldr r3, [r7, #4] - 800ac52: 681b ldr r3, [r3, #0] - 800ac54: 68db ldr r3, [r3, #12] - 800ac56: f003 0308 and.w r3, r3, #8 - 800ac5a: 2b08 cmp r3, #8 - 800ac5c: d11b bne.n 800ac96 + 800ac54: 687b ldr r3, [r7, #4] + 800ac56: 681b ldr r3, [r3, #0] + 800ac58: 68db ldr r3, [r3, #12] + 800ac5a: f003 0308 and.w r3, r3, #8 + 800ac5e: 2b08 cmp r3, #8 + 800ac60: d11b bne.n 800ac9a { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3); - 800ac5e: 687b ldr r3, [r7, #4] - 800ac60: 681b ldr r3, [r3, #0] - 800ac62: f06f 0208 mvn.w r2, #8 - 800ac66: 611a str r2, [r3, #16] + 800ac62: 687b ldr r3, [r7, #4] + 800ac64: 681b ldr r3, [r3, #0] + 800ac66: f06f 0208 mvn.w r2, #8 + 800ac6a: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 800ac68: 687b ldr r3, [r7, #4] - 800ac6a: 2204 movs r2, #4 - 800ac6c: 771a strb r2, [r3, #28] + 800ac6c: 687b ldr r3, [r7, #4] + 800ac6e: 2204 movs r2, #4 + 800ac70: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) - 800ac6e: 687b ldr r3, [r7, #4] - 800ac70: 681b ldr r3, [r3, #0] - 800ac72: 69db ldr r3, [r3, #28] - 800ac74: f003 0303 and.w r3, r3, #3 - 800ac78: 2b00 cmp r3, #0 - 800ac7a: d003 beq.n 800ac84 + 800ac72: 687b ldr r3, [r7, #4] + 800ac74: 681b ldr r3, [r3, #0] + 800ac76: 69db ldr r3, [r3, #28] + 800ac78: f003 0303 and.w r3, r3, #3 + 800ac7c: 2b00 cmp r3, #0 + 800ac7e: d003 beq.n 800ac88 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 800ac7c: 6878 ldr r0, [r7, #4] - 800ac7e: f000 fac5 bl 800b20c - 800ac82: e005 b.n 800ac90 + 800ac80: 6878 ldr r0, [r7, #4] + 800ac82: f000 fac5 bl 800b210 + 800ac86: e005 b.n 800ac94 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 800ac84: 6878 ldr r0, [r7, #4] - 800ac86: f000 fab7 bl 800b1f8 + 800ac88: 6878 ldr r0, [r7, #4] + 800ac8a: f000 fab7 bl 800b1fc HAL_TIM_PWM_PulseFinishedCallback(htim); - 800ac8a: 6878 ldr r0, [r7, #4] - 800ac8c: f000 fac8 bl 800b220 + 800ac8e: 6878 ldr r0, [r7, #4] + 800ac90: f000 fac8 bl 800b224 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800ac90: 687b ldr r3, [r7, #4] - 800ac92: 2200 movs r2, #0 - 800ac94: 771a strb r2, [r3, #28] + 800ac94: 687b ldr r3, [r7, #4] + 800ac96: 2200 movs r2, #0 + 800ac98: 771a strb r2, [r3, #28] } } /* Capture compare 4 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET) - 800ac96: 687b ldr r3, [r7, #4] - 800ac98: 681b ldr r3, [r3, #0] - 800ac9a: 691b ldr r3, [r3, #16] - 800ac9c: f003 0310 and.w r3, r3, #16 - 800aca0: 2b10 cmp r3, #16 - 800aca2: d122 bne.n 800acea + 800ac9a: 687b ldr r3, [r7, #4] + 800ac9c: 681b ldr r3, [r3, #0] + 800ac9e: 691b ldr r3, [r3, #16] + 800aca0: f003 0310 and.w r3, r3, #16 + 800aca4: 2b10 cmp r3, #16 + 800aca6: d122 bne.n 800acee { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET) - 800aca4: 687b ldr r3, [r7, #4] - 800aca6: 681b ldr r3, [r3, #0] - 800aca8: 68db ldr r3, [r3, #12] - 800acaa: f003 0310 and.w r3, r3, #16 - 800acae: 2b10 cmp r3, #16 - 800acb0: d11b bne.n 800acea + 800aca8: 687b ldr r3, [r7, #4] + 800acaa: 681b ldr r3, [r3, #0] + 800acac: 68db ldr r3, [r3, #12] + 800acae: f003 0310 and.w r3, r3, #16 + 800acb2: 2b10 cmp r3, #16 + 800acb4: d11b bne.n 800acee { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4); - 800acb2: 687b ldr r3, [r7, #4] - 800acb4: 681b ldr r3, [r3, #0] - 800acb6: f06f 0210 mvn.w r2, #16 - 800acba: 611a str r2, [r3, #16] + 800acb6: 687b ldr r3, [r7, #4] + 800acb8: 681b ldr r3, [r3, #0] + 800acba: f06f 0210 mvn.w r2, #16 + 800acbe: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 800acbc: 687b ldr r3, [r7, #4] - 800acbe: 2208 movs r2, #8 - 800acc0: 771a strb r2, [r3, #28] + 800acc0: 687b ldr r3, [r7, #4] + 800acc2: 2208 movs r2, #8 + 800acc4: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) - 800acc2: 687b ldr r3, [r7, #4] - 800acc4: 681b ldr r3, [r3, #0] - 800acc6: 69db ldr r3, [r3, #28] - 800acc8: f403 7340 and.w r3, r3, #768 ; 0x300 - 800accc: 2b00 cmp r3, #0 - 800acce: d003 beq.n 800acd8 + 800acc6: 687b ldr r3, [r7, #4] + 800acc8: 681b ldr r3, [r3, #0] + 800acca: 69db ldr r3, [r3, #28] + 800accc: f403 7340 and.w r3, r3, #768 ; 0x300 + 800acd0: 2b00 cmp r3, #0 + 800acd2: d003 beq.n 800acdc { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); - 800acd0: 6878 ldr r0, [r7, #4] - 800acd2: f000 fa9b bl 800b20c - 800acd6: e005 b.n 800ace4 + 800acd4: 6878 ldr r0, [r7, #4] + 800acd6: f000 fa9b bl 800b210 + 800acda: e005 b.n 800ace8 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); - 800acd8: 6878 ldr r0, [r7, #4] - 800acda: f000 fa8d bl 800b1f8 + 800acdc: 6878 ldr r0, [r7, #4] + 800acde: f000 fa8d bl 800b1fc HAL_TIM_PWM_PulseFinishedCallback(htim); - 800acde: 6878 ldr r0, [r7, #4] - 800ace0: f000 fa9e bl 800b220 + 800ace2: 6878 ldr r0, [r7, #4] + 800ace4: f000 fa9e bl 800b224 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 800ace4: 687b ldr r3, [r7, #4] - 800ace6: 2200 movs r2, #0 - 800ace8: 771a strb r2, [r3, #28] + 800ace8: 687b ldr r3, [r7, #4] + 800acea: 2200 movs r2, #0 + 800acec: 771a strb r2, [r3, #28] } } /* TIM Update event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET) - 800acea: 687b ldr r3, [r7, #4] - 800acec: 681b ldr r3, [r3, #0] - 800acee: 691b ldr r3, [r3, #16] - 800acf0: f003 0301 and.w r3, r3, #1 - 800acf4: 2b01 cmp r3, #1 - 800acf6: d10e bne.n 800ad16 + 800acee: 687b ldr r3, [r7, #4] + 800acf0: 681b ldr r3, [r3, #0] + 800acf2: 691b ldr r3, [r3, #16] + 800acf4: f003 0301 and.w r3, r3, #1 + 800acf8: 2b01 cmp r3, #1 + 800acfa: d10e bne.n 800ad1a { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET) - 800acf8: 687b ldr r3, [r7, #4] - 800acfa: 681b ldr r3, [r3, #0] - 800acfc: 68db ldr r3, [r3, #12] - 800acfe: f003 0301 and.w r3, r3, #1 - 800ad02: 2b01 cmp r3, #1 - 800ad04: d107 bne.n 800ad16 + 800acfc: 687b ldr r3, [r7, #4] + 800acfe: 681b ldr r3, [r3, #0] + 800ad00: 68db ldr r3, [r3, #12] + 800ad02: f003 0301 and.w r3, r3, #1 + 800ad06: 2b01 cmp r3, #1 + 800ad08: d107 bne.n 800ad1a { __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE); - 800ad06: 687b ldr r3, [r7, #4] - 800ad08: 681b ldr r3, [r3, #0] - 800ad0a: f06f 0201 mvn.w r2, #1 - 800ad0e: 611a str r2, [r3, #16] + 800ad0a: 687b ldr r3, [r7, #4] + 800ad0c: 681b ldr r3, [r3, #0] + 800ad0e: f06f 0201 mvn.w r2, #1 + 800ad12: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); - 800ad10: 6878 ldr r0, [r7, #4] - 800ad12: f7f7 fc83 bl 800261c + 800ad14: 6878 ldr r0, [r7, #4] + 800ad16: f7f7 fc83 bl 8002620 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET) - 800ad16: 687b ldr r3, [r7, #4] - 800ad18: 681b ldr r3, [r3, #0] - 800ad1a: 691b ldr r3, [r3, #16] - 800ad1c: f003 0380 and.w r3, r3, #128 ; 0x80 - 800ad20: 2b80 cmp r3, #128 ; 0x80 - 800ad22: d10e bne.n 800ad42 + 800ad1a: 687b ldr r3, [r7, #4] + 800ad1c: 681b ldr r3, [r3, #0] + 800ad1e: 691b ldr r3, [r3, #16] + 800ad20: f003 0380 and.w r3, r3, #128 ; 0x80 + 800ad24: 2b80 cmp r3, #128 ; 0x80 + 800ad26: d10e bne.n 800ad46 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) - 800ad24: 687b ldr r3, [r7, #4] - 800ad26: 681b ldr r3, [r3, #0] - 800ad28: 68db ldr r3, [r3, #12] - 800ad2a: f003 0380 and.w r3, r3, #128 ; 0x80 - 800ad2e: 2b80 cmp r3, #128 ; 0x80 - 800ad30: d107 bne.n 800ad42 + 800ad28: 687b ldr r3, [r7, #4] + 800ad2a: 681b ldr r3, [r3, #0] + 800ad2c: 68db ldr r3, [r3, #12] + 800ad2e: f003 0380 and.w r3, r3, #128 ; 0x80 + 800ad32: 2b80 cmp r3, #128 ; 0x80 + 800ad34: d107 bne.n 800ad46 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK); - 800ad32: 687b ldr r3, [r7, #4] - 800ad34: 681b ldr r3, [r3, #0] - 800ad36: f06f 0280 mvn.w r2, #128 ; 0x80 - 800ad3a: 611a str r2, [r3, #16] + 800ad36: 687b ldr r3, [r7, #4] + 800ad38: 681b ldr r3, [r3, #0] + 800ad3a: f06f 0280 mvn.w r2, #128 ; 0x80 + 800ad3e: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); - 800ad3c: 6878 ldr r0, [r7, #4] - 800ad3e: f000 ffb9 bl 800bcb4 + 800ad40: 6878 ldr r0, [r7, #4] + 800ad42: f000 ffb9 bl 800bcb8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break2 input event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK2) != RESET) - 800ad42: 687b ldr r3, [r7, #4] - 800ad44: 681b ldr r3, [r3, #0] - 800ad46: 691b ldr r3, [r3, #16] - 800ad48: f403 7380 and.w r3, r3, #256 ; 0x100 - 800ad4c: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800ad50: d10e bne.n 800ad70 + 800ad46: 687b ldr r3, [r7, #4] + 800ad48: 681b ldr r3, [r3, #0] + 800ad4a: 691b ldr r3, [r3, #16] + 800ad4c: f403 7380 and.w r3, r3, #256 ; 0x100 + 800ad50: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800ad54: d10e bne.n 800ad74 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) - 800ad52: 687b ldr r3, [r7, #4] - 800ad54: 681b ldr r3, [r3, #0] - 800ad56: 68db ldr r3, [r3, #12] - 800ad58: f003 0380 and.w r3, r3, #128 ; 0x80 - 800ad5c: 2b80 cmp r3, #128 ; 0x80 - 800ad5e: d107 bne.n 800ad70 + 800ad56: 687b ldr r3, [r7, #4] + 800ad58: 681b ldr r3, [r3, #0] + 800ad5a: 68db ldr r3, [r3, #12] + 800ad5c: f003 0380 and.w r3, r3, #128 ; 0x80 + 800ad60: 2b80 cmp r3, #128 ; 0x80 + 800ad62: d107 bne.n 800ad74 { __HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2); - 800ad60: 687b ldr r3, [r7, #4] - 800ad62: 681b ldr r3, [r3, #0] - 800ad64: f46f 7280 mvn.w r2, #256 ; 0x100 - 800ad68: 611a str r2, [r3, #16] + 800ad64: 687b ldr r3, [r7, #4] + 800ad66: 681b ldr r3, [r3, #0] + 800ad68: f46f 7280 mvn.w r2, #256 ; 0x100 + 800ad6c: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->Break2Callback(htim); #else HAL_TIMEx_Break2Callback(htim); - 800ad6a: 6878 ldr r0, [r7, #4] - 800ad6c: f000 ffac bl 800bcc8 + 800ad6e: 6878 ldr r0, [r7, #4] + 800ad70: f000 ffac bl 800bccc #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET) - 800ad70: 687b ldr r3, [r7, #4] - 800ad72: 681b ldr r3, [r3, #0] - 800ad74: 691b ldr r3, [r3, #16] - 800ad76: f003 0340 and.w r3, r3, #64 ; 0x40 - 800ad7a: 2b40 cmp r3, #64 ; 0x40 - 800ad7c: d10e bne.n 800ad9c + 800ad74: 687b ldr r3, [r7, #4] + 800ad76: 681b ldr r3, [r3, #0] + 800ad78: 691b ldr r3, [r3, #16] + 800ad7a: f003 0340 and.w r3, r3, #64 ; 0x40 + 800ad7e: 2b40 cmp r3, #64 ; 0x40 + 800ad80: d10e bne.n 800ada0 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET) - 800ad7e: 687b ldr r3, [r7, #4] - 800ad80: 681b ldr r3, [r3, #0] - 800ad82: 68db ldr r3, [r3, #12] - 800ad84: f003 0340 and.w r3, r3, #64 ; 0x40 - 800ad88: 2b40 cmp r3, #64 ; 0x40 - 800ad8a: d107 bne.n 800ad9c + 800ad82: 687b ldr r3, [r7, #4] + 800ad84: 681b ldr r3, [r3, #0] + 800ad86: 68db ldr r3, [r3, #12] + 800ad88: f003 0340 and.w r3, r3, #64 ; 0x40 + 800ad8c: 2b40 cmp r3, #64 ; 0x40 + 800ad8e: d107 bne.n 800ada0 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER); - 800ad8c: 687b ldr r3, [r7, #4] - 800ad8e: 681b ldr r3, [r3, #0] - 800ad90: f06f 0240 mvn.w r2, #64 ; 0x40 - 800ad94: 611a str r2, [r3, #16] + 800ad90: 687b ldr r3, [r7, #4] + 800ad92: 681b ldr r3, [r3, #0] + 800ad94: f06f 0240 mvn.w r2, #64 ; 0x40 + 800ad98: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); - 800ad96: 6878 ldr r0, [r7, #4] - 800ad98: f000 fa4c bl 800b234 + 800ad9a: 6878 ldr r0, [r7, #4] + 800ad9c: f000 fa4c bl 800b238 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET) - 800ad9c: 687b ldr r3, [r7, #4] - 800ad9e: 681b ldr r3, [r3, #0] - 800ada0: 691b ldr r3, [r3, #16] - 800ada2: f003 0320 and.w r3, r3, #32 - 800ada6: 2b20 cmp r3, #32 - 800ada8: d10e bne.n 800adc8 + 800ada0: 687b ldr r3, [r7, #4] + 800ada2: 681b ldr r3, [r3, #0] + 800ada4: 691b ldr r3, [r3, #16] + 800ada6: f003 0320 and.w r3, r3, #32 + 800adaa: 2b20 cmp r3, #32 + 800adac: d10e bne.n 800adcc { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET) - 800adaa: 687b ldr r3, [r7, #4] - 800adac: 681b ldr r3, [r3, #0] - 800adae: 68db ldr r3, [r3, #12] - 800adb0: f003 0320 and.w r3, r3, #32 - 800adb4: 2b20 cmp r3, #32 - 800adb6: d107 bne.n 800adc8 + 800adae: 687b ldr r3, [r7, #4] + 800adb0: 681b ldr r3, [r3, #0] + 800adb2: 68db ldr r3, [r3, #12] + 800adb4: f003 0320 and.w r3, r3, #32 + 800adb8: 2b20 cmp r3, #32 + 800adba: d107 bne.n 800adcc { __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM); - 800adb8: 687b ldr r3, [r7, #4] - 800adba: 681b ldr r3, [r3, #0] - 800adbc: f06f 0220 mvn.w r2, #32 - 800adc0: 611a str r2, [r3, #16] + 800adbc: 687b ldr r3, [r7, #4] + 800adbe: 681b ldr r3, [r3, #0] + 800adc0: f06f 0220 mvn.w r2, #32 + 800adc4: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); - 800adc2: 6878 ldr r0, [r7, #4] - 800adc4: f000 ff6c bl 800bca0 + 800adc6: 6878 ldr r0, [r7, #4] + 800adc8: f000 ff6c bl 800bca4 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } - 800adc8: bf00 nop - 800adca: 3708 adds r7, #8 - 800adcc: 46bd mov sp, r7 - 800adce: bd80 pop {r7, pc} + 800adcc: bf00 nop + 800adce: 3708 adds r7, #8 + 800add0: 46bd mov sp, r7 + 800add2: bd80 pop {r7, pc} -0800add0 : +0800add4 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { - 800add0: b580 push {r7, lr} - 800add2: b084 sub sp, #16 - 800add4: af00 add r7, sp, #0 - 800add6: 60f8 str r0, [r7, #12] - 800add8: 60b9 str r1, [r7, #8] - 800adda: 607a str r2, [r7, #4] + 800add4: b580 push {r7, lr} + 800add6: b084 sub sp, #16 + 800add8: af00 add r7, sp, #0 + 800adda: 60f8 str r0, [r7, #12] + 800addc: 60b9 str r1, [r7, #8] + 800adde: 607a str r2, [r7, #4] assert_param(IS_TIM_PWM_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode)); /* Process Locked */ __HAL_LOCK(htim); - 800addc: 68fb ldr r3, [r7, #12] - 800adde: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800ade2: 2b01 cmp r3, #1 - 800ade4: d101 bne.n 800adea - 800ade6: 2302 movs r3, #2 - 800ade8: e105 b.n 800aff6 - 800adea: 68fb ldr r3, [r7, #12] - 800adec: 2201 movs r2, #1 - 800adee: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800ade0: 68fb ldr r3, [r7, #12] + 800ade2: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 800ade6: 2b01 cmp r3, #1 + 800ade8: d101 bne.n 800adee + 800adea: 2302 movs r3, #2 + 800adec: e105 b.n 800affa + 800adee: 68fb ldr r3, [r7, #12] + 800adf0: 2201 movs r2, #1 + 800adf2: f883 203c strb.w r2, [r3, #60] ; 0x3c htim->State = HAL_TIM_STATE_BUSY; - 800adf2: 68fb ldr r3, [r7, #12] - 800adf4: 2202 movs r2, #2 - 800adf6: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800adf6: 68fb ldr r3, [r7, #12] + 800adf8: 2202 movs r2, #2 + 800adfa: f883 203d strb.w r2, [r3, #61] ; 0x3d switch (Channel) - 800adfa: 687b ldr r3, [r7, #4] - 800adfc: 2b14 cmp r3, #20 - 800adfe: f200 80f0 bhi.w 800afe2 - 800ae02: a201 add r2, pc, #4 ; (adr r2, 800ae08 ) - 800ae04: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800ae08: 0800ae5d .word 0x0800ae5d - 800ae0c: 0800afe3 .word 0x0800afe3 - 800ae10: 0800afe3 .word 0x0800afe3 - 800ae14: 0800afe3 .word 0x0800afe3 - 800ae18: 0800ae9d .word 0x0800ae9d - 800ae1c: 0800afe3 .word 0x0800afe3 - 800ae20: 0800afe3 .word 0x0800afe3 - 800ae24: 0800afe3 .word 0x0800afe3 - 800ae28: 0800aedf .word 0x0800aedf - 800ae2c: 0800afe3 .word 0x0800afe3 - 800ae30: 0800afe3 .word 0x0800afe3 - 800ae34: 0800afe3 .word 0x0800afe3 - 800ae38: 0800af1f .word 0x0800af1f - 800ae3c: 0800afe3 .word 0x0800afe3 - 800ae40: 0800afe3 .word 0x0800afe3 - 800ae44: 0800afe3 .word 0x0800afe3 - 800ae48: 0800af61 .word 0x0800af61 - 800ae4c: 0800afe3 .word 0x0800afe3 - 800ae50: 0800afe3 .word 0x0800afe3 - 800ae54: 0800afe3 .word 0x0800afe3 - 800ae58: 0800afa1 .word 0x0800afa1 + 800adfe: 687b ldr r3, [r7, #4] + 800ae00: 2b14 cmp r3, #20 + 800ae02: f200 80f0 bhi.w 800afe6 + 800ae06: a201 add r2, pc, #4 ; (adr r2, 800ae0c ) + 800ae08: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800ae0c: 0800ae61 .word 0x0800ae61 + 800ae10: 0800afe7 .word 0x0800afe7 + 800ae14: 0800afe7 .word 0x0800afe7 + 800ae18: 0800afe7 .word 0x0800afe7 + 800ae1c: 0800aea1 .word 0x0800aea1 + 800ae20: 0800afe7 .word 0x0800afe7 + 800ae24: 0800afe7 .word 0x0800afe7 + 800ae28: 0800afe7 .word 0x0800afe7 + 800ae2c: 0800aee3 .word 0x0800aee3 + 800ae30: 0800afe7 .word 0x0800afe7 + 800ae34: 0800afe7 .word 0x0800afe7 + 800ae38: 0800afe7 .word 0x0800afe7 + 800ae3c: 0800af23 .word 0x0800af23 + 800ae40: 0800afe7 .word 0x0800afe7 + 800ae44: 0800afe7 .word 0x0800afe7 + 800ae48: 0800afe7 .word 0x0800afe7 + 800ae4c: 0800af65 .word 0x0800af65 + 800ae50: 0800afe7 .word 0x0800afe7 + 800ae54: 0800afe7 .word 0x0800afe7 + 800ae58: 0800afe7 .word 0x0800afe7 + 800ae5c: 0800afa5 .word 0x0800afa5 { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the Channel 1 in PWM mode */ TIM_OC1_SetConfig(htim->Instance, sConfig); - 800ae5c: 68fb ldr r3, [r7, #12] - 800ae5e: 681b ldr r3, [r3, #0] - 800ae60: 68b9 ldr r1, [r7, #8] - 800ae62: 4618 mov r0, r3 - 800ae64: f000 fa90 bl 800b388 + 800ae60: 68fb ldr r3, [r7, #12] + 800ae62: 681b ldr r3, [r3, #0] + 800ae64: 68b9 ldr r1, [r7, #8] + 800ae66: 4618 mov r0, r3 + 800ae68: f000 fa90 bl 800b38c /* Set the Preload enable bit for channel1 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; - 800ae68: 68fb ldr r3, [r7, #12] - 800ae6a: 681b ldr r3, [r3, #0] - 800ae6c: 699a ldr r2, [r3, #24] - 800ae6e: 68fb ldr r3, [r7, #12] - 800ae70: 681b ldr r3, [r3, #0] - 800ae72: f042 0208 orr.w r2, r2, #8 - 800ae76: 619a str r2, [r3, #24] + 800ae6c: 68fb ldr r3, [r7, #12] + 800ae6e: 681b ldr r3, [r3, #0] + 800ae70: 699a ldr r2, [r3, #24] + 800ae72: 68fb ldr r3, [r7, #12] + 800ae74: 681b ldr r3, [r3, #0] + 800ae76: f042 0208 orr.w r2, r2, #8 + 800ae7a: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; - 800ae78: 68fb ldr r3, [r7, #12] - 800ae7a: 681b ldr r3, [r3, #0] - 800ae7c: 699a ldr r2, [r3, #24] - 800ae7e: 68fb ldr r3, [r7, #12] - 800ae80: 681b ldr r3, [r3, #0] - 800ae82: f022 0204 bic.w r2, r2, #4 - 800ae86: 619a str r2, [r3, #24] + 800ae7c: 68fb ldr r3, [r7, #12] + 800ae7e: 681b ldr r3, [r3, #0] + 800ae80: 699a ldr r2, [r3, #24] + 800ae82: 68fb ldr r3, [r7, #12] + 800ae84: 681b ldr r3, [r3, #0] + 800ae86: f022 0204 bic.w r2, r2, #4 + 800ae8a: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode; - 800ae88: 68fb ldr r3, [r7, #12] - 800ae8a: 681b ldr r3, [r3, #0] - 800ae8c: 6999 ldr r1, [r3, #24] - 800ae8e: 68bb ldr r3, [r7, #8] - 800ae90: 691a ldr r2, [r3, #16] - 800ae92: 68fb ldr r3, [r7, #12] - 800ae94: 681b ldr r3, [r3, #0] - 800ae96: 430a orrs r2, r1 - 800ae98: 619a str r2, [r3, #24] + 800ae8c: 68fb ldr r3, [r7, #12] + 800ae8e: 681b ldr r3, [r3, #0] + 800ae90: 6999 ldr r1, [r3, #24] + 800ae92: 68bb ldr r3, [r7, #8] + 800ae94: 691a ldr r2, [r3, #16] + 800ae96: 68fb ldr r3, [r7, #12] + 800ae98: 681b ldr r3, [r3, #0] + 800ae9a: 430a orrs r2, r1 + 800ae9c: 619a str r2, [r3, #24] break; - 800ae9a: e0a3 b.n 800afe4 + 800ae9e: e0a3 b.n 800afe8 { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the Channel 2 in PWM mode */ TIM_OC2_SetConfig(htim->Instance, sConfig); - 800ae9c: 68fb ldr r3, [r7, #12] - 800ae9e: 681b ldr r3, [r3, #0] - 800aea0: 68b9 ldr r1, [r7, #8] - 800aea2: 4618 mov r0, r3 - 800aea4: f000 fae2 bl 800b46c + 800aea0: 68fb ldr r3, [r7, #12] + 800aea2: 681b ldr r3, [r3, #0] + 800aea4: 68b9 ldr r1, [r7, #8] + 800aea6: 4618 mov r0, r3 + 800aea8: f000 fae2 bl 800b470 /* Set the Preload enable bit for channel2 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; - 800aea8: 68fb ldr r3, [r7, #12] - 800aeaa: 681b ldr r3, [r3, #0] - 800aeac: 699a ldr r2, [r3, #24] - 800aeae: 68fb ldr r3, [r7, #12] - 800aeb0: 681b ldr r3, [r3, #0] - 800aeb2: f442 6200 orr.w r2, r2, #2048 ; 0x800 - 800aeb6: 619a str r2, [r3, #24] + 800aeac: 68fb ldr r3, [r7, #12] + 800aeae: 681b ldr r3, [r3, #0] + 800aeb0: 699a ldr r2, [r3, #24] + 800aeb2: 68fb ldr r3, [r7, #12] + 800aeb4: 681b ldr r3, [r3, #0] + 800aeb6: f442 6200 orr.w r2, r2, #2048 ; 0x800 + 800aeba: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; - 800aeb8: 68fb ldr r3, [r7, #12] - 800aeba: 681b ldr r3, [r3, #0] - 800aebc: 699a ldr r2, [r3, #24] - 800aebe: 68fb ldr r3, [r7, #12] - 800aec0: 681b ldr r3, [r3, #0] - 800aec2: f422 6280 bic.w r2, r2, #1024 ; 0x400 - 800aec6: 619a str r2, [r3, #24] + 800aebc: 68fb ldr r3, [r7, #12] + 800aebe: 681b ldr r3, [r3, #0] + 800aec0: 699a ldr r2, [r3, #24] + 800aec2: 68fb ldr r3, [r7, #12] + 800aec4: 681b ldr r3, [r3, #0] + 800aec6: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 800aeca: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; - 800aec8: 68fb ldr r3, [r7, #12] - 800aeca: 681b ldr r3, [r3, #0] - 800aecc: 6999 ldr r1, [r3, #24] - 800aece: 68bb ldr r3, [r7, #8] - 800aed0: 691b ldr r3, [r3, #16] - 800aed2: 021a lsls r2, r3, #8 - 800aed4: 68fb ldr r3, [r7, #12] - 800aed6: 681b ldr r3, [r3, #0] - 800aed8: 430a orrs r2, r1 - 800aeda: 619a str r2, [r3, #24] + 800aecc: 68fb ldr r3, [r7, #12] + 800aece: 681b ldr r3, [r3, #0] + 800aed0: 6999 ldr r1, [r3, #24] + 800aed2: 68bb ldr r3, [r7, #8] + 800aed4: 691b ldr r3, [r3, #16] + 800aed6: 021a lsls r2, r3, #8 + 800aed8: 68fb ldr r3, [r7, #12] + 800aeda: 681b ldr r3, [r3, #0] + 800aedc: 430a orrs r2, r1 + 800aede: 619a str r2, [r3, #24] break; - 800aedc: e082 b.n 800afe4 + 800aee0: e082 b.n 800afe8 { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the Channel 3 in PWM mode */ TIM_OC3_SetConfig(htim->Instance, sConfig); - 800aede: 68fb ldr r3, [r7, #12] - 800aee0: 681b ldr r3, [r3, #0] - 800aee2: 68b9 ldr r1, [r7, #8] - 800aee4: 4618 mov r0, r3 - 800aee6: f000 fb39 bl 800b55c + 800aee2: 68fb ldr r3, [r7, #12] + 800aee4: 681b ldr r3, [r3, #0] + 800aee6: 68b9 ldr r1, [r7, #8] + 800aee8: 4618 mov r0, r3 + 800aeea: f000 fb39 bl 800b560 /* Set the Preload enable bit for channel3 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; - 800aeea: 68fb ldr r3, [r7, #12] - 800aeec: 681b ldr r3, [r3, #0] - 800aeee: 69da ldr r2, [r3, #28] - 800aef0: 68fb ldr r3, [r7, #12] - 800aef2: 681b ldr r3, [r3, #0] - 800aef4: f042 0208 orr.w r2, r2, #8 - 800aef8: 61da str r2, [r3, #28] + 800aeee: 68fb ldr r3, [r7, #12] + 800aef0: 681b ldr r3, [r3, #0] + 800aef2: 69da ldr r2, [r3, #28] + 800aef4: 68fb ldr r3, [r7, #12] + 800aef6: 681b ldr r3, [r3, #0] + 800aef8: f042 0208 orr.w r2, r2, #8 + 800aefc: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; - 800aefa: 68fb ldr r3, [r7, #12] - 800aefc: 681b ldr r3, [r3, #0] - 800aefe: 69da ldr r2, [r3, #28] - 800af00: 68fb ldr r3, [r7, #12] - 800af02: 681b ldr r3, [r3, #0] - 800af04: f022 0204 bic.w r2, r2, #4 - 800af08: 61da str r2, [r3, #28] + 800aefe: 68fb ldr r3, [r7, #12] + 800af00: 681b ldr r3, [r3, #0] + 800af02: 69da ldr r2, [r3, #28] + 800af04: 68fb ldr r3, [r7, #12] + 800af06: 681b ldr r3, [r3, #0] + 800af08: f022 0204 bic.w r2, r2, #4 + 800af0c: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode; - 800af0a: 68fb ldr r3, [r7, #12] - 800af0c: 681b ldr r3, [r3, #0] - 800af0e: 69d9 ldr r1, [r3, #28] - 800af10: 68bb ldr r3, [r7, #8] - 800af12: 691a ldr r2, [r3, #16] - 800af14: 68fb ldr r3, [r7, #12] - 800af16: 681b ldr r3, [r3, #0] - 800af18: 430a orrs r2, r1 - 800af1a: 61da str r2, [r3, #28] + 800af0e: 68fb ldr r3, [r7, #12] + 800af10: 681b ldr r3, [r3, #0] + 800af12: 69d9 ldr r1, [r3, #28] + 800af14: 68bb ldr r3, [r7, #8] + 800af16: 691a ldr r2, [r3, #16] + 800af18: 68fb ldr r3, [r7, #12] + 800af1a: 681b ldr r3, [r3, #0] + 800af1c: 430a orrs r2, r1 + 800af1e: 61da str r2, [r3, #28] break; - 800af1c: e062 b.n 800afe4 + 800af20: e062 b.n 800afe8 { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the Channel 4 in PWM mode */ TIM_OC4_SetConfig(htim->Instance, sConfig); - 800af1e: 68fb ldr r3, [r7, #12] - 800af20: 681b ldr r3, [r3, #0] - 800af22: 68b9 ldr r1, [r7, #8] - 800af24: 4618 mov r0, r3 - 800af26: f000 fb8f bl 800b648 + 800af22: 68fb ldr r3, [r7, #12] + 800af24: 681b ldr r3, [r3, #0] + 800af26: 68b9 ldr r1, [r7, #8] + 800af28: 4618 mov r0, r3 + 800af2a: f000 fb8f bl 800b64c /* Set the Preload enable bit for channel4 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; - 800af2a: 68fb ldr r3, [r7, #12] - 800af2c: 681b ldr r3, [r3, #0] - 800af2e: 69da ldr r2, [r3, #28] - 800af30: 68fb ldr r3, [r7, #12] - 800af32: 681b ldr r3, [r3, #0] - 800af34: f442 6200 orr.w r2, r2, #2048 ; 0x800 - 800af38: 61da str r2, [r3, #28] + 800af2e: 68fb ldr r3, [r7, #12] + 800af30: 681b ldr r3, [r3, #0] + 800af32: 69da ldr r2, [r3, #28] + 800af34: 68fb ldr r3, [r7, #12] + 800af36: 681b ldr r3, [r3, #0] + 800af38: f442 6200 orr.w r2, r2, #2048 ; 0x800 + 800af3c: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; - 800af3a: 68fb ldr r3, [r7, #12] - 800af3c: 681b ldr r3, [r3, #0] - 800af3e: 69da ldr r2, [r3, #28] - 800af40: 68fb ldr r3, [r7, #12] - 800af42: 681b ldr r3, [r3, #0] - 800af44: f422 6280 bic.w r2, r2, #1024 ; 0x400 - 800af48: 61da str r2, [r3, #28] + 800af3e: 68fb ldr r3, [r7, #12] + 800af40: 681b ldr r3, [r3, #0] + 800af42: 69da ldr r2, [r3, #28] + 800af44: 68fb ldr r3, [r7, #12] + 800af46: 681b ldr r3, [r3, #0] + 800af48: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 800af4c: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; - 800af4a: 68fb ldr r3, [r7, #12] - 800af4c: 681b ldr r3, [r3, #0] - 800af4e: 69d9 ldr r1, [r3, #28] - 800af50: 68bb ldr r3, [r7, #8] - 800af52: 691b ldr r3, [r3, #16] - 800af54: 021a lsls r2, r3, #8 - 800af56: 68fb ldr r3, [r7, #12] - 800af58: 681b ldr r3, [r3, #0] - 800af5a: 430a orrs r2, r1 - 800af5c: 61da str r2, [r3, #28] + 800af4e: 68fb ldr r3, [r7, #12] + 800af50: 681b ldr r3, [r3, #0] + 800af52: 69d9 ldr r1, [r3, #28] + 800af54: 68bb ldr r3, [r7, #8] + 800af56: 691b ldr r3, [r3, #16] + 800af58: 021a lsls r2, r3, #8 + 800af5a: 68fb ldr r3, [r7, #12] + 800af5c: 681b ldr r3, [r3, #0] + 800af5e: 430a orrs r2, r1 + 800af60: 61da str r2, [r3, #28] break; - 800af5e: e041 b.n 800afe4 + 800af62: e041 b.n 800afe8 { /* Check the parameters */ assert_param(IS_TIM_CC5_INSTANCE(htim->Instance)); /* Configure the Channel 5 in PWM mode */ TIM_OC5_SetConfig(htim->Instance, sConfig); - 800af60: 68fb ldr r3, [r7, #12] - 800af62: 681b ldr r3, [r3, #0] - 800af64: 68b9 ldr r1, [r7, #8] - 800af66: 4618 mov r0, r3 - 800af68: f000 fbc6 bl 800b6f8 + 800af64: 68fb ldr r3, [r7, #12] + 800af66: 681b ldr r3, [r3, #0] + 800af68: 68b9 ldr r1, [r7, #8] + 800af6a: 4618 mov r0, r3 + 800af6c: f000 fbc6 bl 800b6fc /* Set the Preload enable bit for channel5*/ htim->Instance->CCMR3 |= TIM_CCMR3_OC5PE; - 800af6c: 68fb ldr r3, [r7, #12] - 800af6e: 681b ldr r3, [r3, #0] - 800af70: 6d5a ldr r2, [r3, #84] ; 0x54 - 800af72: 68fb ldr r3, [r7, #12] - 800af74: 681b ldr r3, [r3, #0] - 800af76: f042 0208 orr.w r2, r2, #8 - 800af7a: 655a str r2, [r3, #84] ; 0x54 + 800af70: 68fb ldr r3, [r7, #12] + 800af72: 681b ldr r3, [r3, #0] + 800af74: 6d5a ldr r2, [r3, #84] ; 0x54 + 800af76: 68fb ldr r3, [r7, #12] + 800af78: 681b ldr r3, [r3, #0] + 800af7a: f042 0208 orr.w r2, r2, #8 + 800af7e: 655a str r2, [r3, #84] ; 0x54 /* Configure the Output Fast mode */ htim->Instance->CCMR3 &= ~TIM_CCMR3_OC5FE; - 800af7c: 68fb ldr r3, [r7, #12] - 800af7e: 681b ldr r3, [r3, #0] - 800af80: 6d5a ldr r2, [r3, #84] ; 0x54 - 800af82: 68fb ldr r3, [r7, #12] - 800af84: 681b ldr r3, [r3, #0] - 800af86: f022 0204 bic.w r2, r2, #4 - 800af8a: 655a str r2, [r3, #84] ; 0x54 + 800af80: 68fb ldr r3, [r7, #12] + 800af82: 681b ldr r3, [r3, #0] + 800af84: 6d5a ldr r2, [r3, #84] ; 0x54 + 800af86: 68fb ldr r3, [r7, #12] + 800af88: 681b ldr r3, [r3, #0] + 800af8a: f022 0204 bic.w r2, r2, #4 + 800af8e: 655a str r2, [r3, #84] ; 0x54 htim->Instance->CCMR3 |= sConfig->OCFastMode; - 800af8c: 68fb ldr r3, [r7, #12] - 800af8e: 681b ldr r3, [r3, #0] - 800af90: 6d59 ldr r1, [r3, #84] ; 0x54 - 800af92: 68bb ldr r3, [r7, #8] - 800af94: 691a ldr r2, [r3, #16] - 800af96: 68fb ldr r3, [r7, #12] - 800af98: 681b ldr r3, [r3, #0] - 800af9a: 430a orrs r2, r1 - 800af9c: 655a str r2, [r3, #84] ; 0x54 + 800af90: 68fb ldr r3, [r7, #12] + 800af92: 681b ldr r3, [r3, #0] + 800af94: 6d59 ldr r1, [r3, #84] ; 0x54 + 800af96: 68bb ldr r3, [r7, #8] + 800af98: 691a ldr r2, [r3, #16] + 800af9a: 68fb ldr r3, [r7, #12] + 800af9c: 681b ldr r3, [r3, #0] + 800af9e: 430a orrs r2, r1 + 800afa0: 655a str r2, [r3, #84] ; 0x54 break; - 800af9e: e021 b.n 800afe4 + 800afa2: e021 b.n 800afe8 { /* Check the parameters */ assert_param(IS_TIM_CC6_INSTANCE(htim->Instance)); /* Configure the Channel 6 in PWM mode */ TIM_OC6_SetConfig(htim->Instance, sConfig); - 800afa0: 68fb ldr r3, [r7, #12] - 800afa2: 681b ldr r3, [r3, #0] - 800afa4: 68b9 ldr r1, [r7, #8] - 800afa6: 4618 mov r0, r3 - 800afa8: f000 fbf8 bl 800b79c + 800afa4: 68fb ldr r3, [r7, #12] + 800afa6: 681b ldr r3, [r3, #0] + 800afa8: 68b9 ldr r1, [r7, #8] + 800afaa: 4618 mov r0, r3 + 800afac: f000 fbf8 bl 800b7a0 /* Set the Preload enable bit for channel6 */ htim->Instance->CCMR3 |= TIM_CCMR3_OC6PE; - 800afac: 68fb ldr r3, [r7, #12] - 800afae: 681b ldr r3, [r3, #0] - 800afb0: 6d5a ldr r2, [r3, #84] ; 0x54 - 800afb2: 68fb ldr r3, [r7, #12] - 800afb4: 681b ldr r3, [r3, #0] - 800afb6: f442 6200 orr.w r2, r2, #2048 ; 0x800 - 800afba: 655a str r2, [r3, #84] ; 0x54 + 800afb0: 68fb ldr r3, [r7, #12] + 800afb2: 681b ldr r3, [r3, #0] + 800afb4: 6d5a ldr r2, [r3, #84] ; 0x54 + 800afb6: 68fb ldr r3, [r7, #12] + 800afb8: 681b ldr r3, [r3, #0] + 800afba: f442 6200 orr.w r2, r2, #2048 ; 0x800 + 800afbe: 655a str r2, [r3, #84] ; 0x54 /* Configure the Output Fast mode */ htim->Instance->CCMR3 &= ~TIM_CCMR3_OC6FE; - 800afbc: 68fb ldr r3, [r7, #12] - 800afbe: 681b ldr r3, [r3, #0] - 800afc0: 6d5a ldr r2, [r3, #84] ; 0x54 - 800afc2: 68fb ldr r3, [r7, #12] - 800afc4: 681b ldr r3, [r3, #0] - 800afc6: f422 6280 bic.w r2, r2, #1024 ; 0x400 - 800afca: 655a str r2, [r3, #84] ; 0x54 + 800afc0: 68fb ldr r3, [r7, #12] + 800afc2: 681b ldr r3, [r3, #0] + 800afc4: 6d5a ldr r2, [r3, #84] ; 0x54 + 800afc6: 68fb ldr r3, [r7, #12] + 800afc8: 681b ldr r3, [r3, #0] + 800afca: f422 6280 bic.w r2, r2, #1024 ; 0x400 + 800afce: 655a str r2, [r3, #84] ; 0x54 htim->Instance->CCMR3 |= sConfig->OCFastMode << 8U; - 800afcc: 68fb ldr r3, [r7, #12] - 800afce: 681b ldr r3, [r3, #0] - 800afd0: 6d59 ldr r1, [r3, #84] ; 0x54 - 800afd2: 68bb ldr r3, [r7, #8] - 800afd4: 691b ldr r3, [r3, #16] - 800afd6: 021a lsls r2, r3, #8 - 800afd8: 68fb ldr r3, [r7, #12] - 800afda: 681b ldr r3, [r3, #0] - 800afdc: 430a orrs r2, r1 - 800afde: 655a str r2, [r3, #84] ; 0x54 + 800afd0: 68fb ldr r3, [r7, #12] + 800afd2: 681b ldr r3, [r3, #0] + 800afd4: 6d59 ldr r1, [r3, #84] ; 0x54 + 800afd6: 68bb ldr r3, [r7, #8] + 800afd8: 691b ldr r3, [r3, #16] + 800afda: 021a lsls r2, r3, #8 + 800afdc: 68fb ldr r3, [r7, #12] + 800afde: 681b ldr r3, [r3, #0] + 800afe0: 430a orrs r2, r1 + 800afe2: 655a str r2, [r3, #84] ; 0x54 break; - 800afe0: e000 b.n 800afe4 + 800afe4: e000 b.n 800afe8 } default: break; - 800afe2: bf00 nop + 800afe6: bf00 nop } htim->State = HAL_TIM_STATE_READY; - 800afe4: 68fb ldr r3, [r7, #12] - 800afe6: 2201 movs r2, #1 - 800afe8: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800afe8: 68fb ldr r3, [r7, #12] + 800afea: 2201 movs r2, #1 + 800afec: f883 203d strb.w r2, [r3, #61] ; 0x3d __HAL_UNLOCK(htim); - 800afec: 68fb ldr r3, [r7, #12] - 800afee: 2200 movs r2, #0 - 800aff0: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800aff0: 68fb ldr r3, [r7, #12] + 800aff2: 2200 movs r2, #0 + 800aff4: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; - 800aff4: 2300 movs r3, #0 + 800aff8: 2300 movs r3, #0 } - 800aff6: 4618 mov r0, r3 - 800aff8: 3710 adds r7, #16 - 800affa: 46bd mov sp, r7 - 800affc: bd80 pop {r7, pc} - 800affe: bf00 nop + 800affa: 4618 mov r0, r3 + 800affc: 3710 adds r7, #16 + 800affe: 46bd mov sp, r7 + 800b000: bd80 pop {r7, pc} + 800b002: bf00 nop -0800b000 : +0800b004 : * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that * contains the clock source information for the TIM peripheral. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig) { - 800b000: b580 push {r7, lr} - 800b002: b084 sub sp, #16 - 800b004: af00 add r7, sp, #0 - 800b006: 6078 str r0, [r7, #4] - 800b008: 6039 str r1, [r7, #0] + 800b004: b580 push {r7, lr} + 800b006: b084 sub sp, #16 + 800b008: af00 add r7, sp, #0 + 800b00a: 6078 str r0, [r7, #4] + 800b00c: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Process Locked */ __HAL_LOCK(htim); - 800b00a: 687b ldr r3, [r7, #4] - 800b00c: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800b010: 2b01 cmp r3, #1 - 800b012: d101 bne.n 800b018 - 800b014: 2302 movs r3, #2 - 800b016: e0a6 b.n 800b166 - 800b018: 687b ldr r3, [r7, #4] - 800b01a: 2201 movs r2, #1 - 800b01c: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800b00e: 687b ldr r3, [r7, #4] + 800b010: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 800b014: 2b01 cmp r3, #1 + 800b016: d101 bne.n 800b01c + 800b018: 2302 movs r3, #2 + 800b01a: e0a6 b.n 800b16a + 800b01c: 687b ldr r3, [r7, #4] + 800b01e: 2201 movs r2, #1 + 800b020: f883 203c strb.w r2, [r3, #60] ; 0x3c htim->State = HAL_TIM_STATE_BUSY; - 800b020: 687b ldr r3, [r7, #4] - 800b022: 2202 movs r2, #2 - 800b024: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800b024: 687b ldr r3, [r7, #4] + 800b026: 2202 movs r2, #2 + 800b028: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Check the parameters */ assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource)); /* Reset the SMS, TS, ECE, ETPS and ETRF bits */ tmpsmcr = htim->Instance->SMCR; - 800b028: 687b ldr r3, [r7, #4] - 800b02a: 681b ldr r3, [r3, #0] - 800b02c: 689b ldr r3, [r3, #8] - 800b02e: 60fb str r3, [r7, #12] + 800b02c: 687b ldr r3, [r7, #4] + 800b02e: 681b ldr r3, [r3, #0] + 800b030: 689b ldr r3, [r3, #8] + 800b032: 60fb str r3, [r7, #12] tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); - 800b030: 68fa ldr r2, [r7, #12] - 800b032: 4b4f ldr r3, [pc, #316] ; (800b170 ) - 800b034: 4013 ands r3, r2 - 800b036: 60fb str r3, [r7, #12] + 800b034: 68fa ldr r2, [r7, #12] + 800b036: 4b4f ldr r3, [pc, #316] ; (800b174 ) + 800b038: 4013 ands r3, r2 + 800b03a: 60fb str r3, [r7, #12] tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 800b038: 68fb ldr r3, [r7, #12] - 800b03a: f423 437f bic.w r3, r3, #65280 ; 0xff00 - 800b03e: 60fb str r3, [r7, #12] + 800b03c: 68fb ldr r3, [r7, #12] + 800b03e: f423 437f bic.w r3, r3, #65280 ; 0xff00 + 800b042: 60fb str r3, [r7, #12] htim->Instance->SMCR = tmpsmcr; - 800b040: 687b ldr r3, [r7, #4] - 800b042: 681b ldr r3, [r3, #0] - 800b044: 68fa ldr r2, [r7, #12] - 800b046: 609a str r2, [r3, #8] + 800b044: 687b ldr r3, [r7, #4] + 800b046: 681b ldr r3, [r3, #0] + 800b048: 68fa ldr r2, [r7, #12] + 800b04a: 609a str r2, [r3, #8] switch (sClockSourceConfig->ClockSource) - 800b048: 683b ldr r3, [r7, #0] - 800b04a: 681b ldr r3, [r3, #0] - 800b04c: 2b40 cmp r3, #64 ; 0x40 - 800b04e: d067 beq.n 800b120 + 800b04c: 683b ldr r3, [r7, #0] + 800b04e: 681b ldr r3, [r3, #0] 800b050: 2b40 cmp r3, #64 ; 0x40 - 800b052: d80b bhi.n 800b06c - 800b054: 2b10 cmp r3, #16 - 800b056: d073 beq.n 800b140 + 800b052: d067 beq.n 800b124 + 800b054: 2b40 cmp r3, #64 ; 0x40 + 800b056: d80b bhi.n 800b070 800b058: 2b10 cmp r3, #16 - 800b05a: d802 bhi.n 800b062 - 800b05c: 2b00 cmp r3, #0 - 800b05e: d06f beq.n 800b140 + 800b05a: d073 beq.n 800b144 + 800b05c: 2b10 cmp r3, #16 + 800b05e: d802 bhi.n 800b066 + 800b060: 2b00 cmp r3, #0 + 800b062: d06f beq.n 800b144 TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); break; } default: break; - 800b060: e078 b.n 800b154 + 800b064: e078 b.n 800b158 switch (sClockSourceConfig->ClockSource) - 800b062: 2b20 cmp r3, #32 - 800b064: d06c beq.n 800b140 - 800b066: 2b30 cmp r3, #48 ; 0x30 - 800b068: d06a beq.n 800b140 + 800b066: 2b20 cmp r3, #32 + 800b068: d06c beq.n 800b144 + 800b06a: 2b30 cmp r3, #48 ; 0x30 + 800b06c: d06a beq.n 800b144 break; - 800b06a: e073 b.n 800b154 + 800b06e: e073 b.n 800b158 switch (sClockSourceConfig->ClockSource) - 800b06c: 2b70 cmp r3, #112 ; 0x70 - 800b06e: d00d beq.n 800b08c 800b070: 2b70 cmp r3, #112 ; 0x70 - 800b072: d804 bhi.n 800b07e - 800b074: 2b50 cmp r3, #80 ; 0x50 - 800b076: d033 beq.n 800b0e0 - 800b078: 2b60 cmp r3, #96 ; 0x60 - 800b07a: d041 beq.n 800b100 + 800b072: d00d beq.n 800b090 + 800b074: 2b70 cmp r3, #112 ; 0x70 + 800b076: d804 bhi.n 800b082 + 800b078: 2b50 cmp r3, #80 ; 0x50 + 800b07a: d033 beq.n 800b0e4 + 800b07c: 2b60 cmp r3, #96 ; 0x60 + 800b07e: d041 beq.n 800b104 break; - 800b07c: e06a b.n 800b154 + 800b080: e06a b.n 800b158 switch (sClockSourceConfig->ClockSource) - 800b07e: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 800b082: d066 beq.n 800b152 - 800b084: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 800b088: d017 beq.n 800b0ba + 800b082: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 800b086: d066 beq.n 800b156 + 800b088: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 + 800b08c: d017 beq.n 800b0be break; - 800b08a: e063 b.n 800b154 + 800b08e: e063 b.n 800b158 TIM_ETR_SetConfig(htim->Instance, - 800b08c: 687b ldr r3, [r7, #4] - 800b08e: 6818 ldr r0, [r3, #0] - 800b090: 683b ldr r3, [r7, #0] - 800b092: 6899 ldr r1, [r3, #8] + 800b090: 687b ldr r3, [r7, #4] + 800b092: 6818 ldr r0, [r3, #0] 800b094: 683b ldr r3, [r7, #0] - 800b096: 685a ldr r2, [r3, #4] + 800b096: 6899 ldr r1, [r3, #8] 800b098: 683b ldr r3, [r7, #0] - 800b09a: 68db ldr r3, [r3, #12] - 800b09c: f000 fcd4 bl 800ba48 + 800b09a: 685a ldr r2, [r3, #4] + 800b09c: 683b ldr r3, [r7, #0] + 800b09e: 68db ldr r3, [r3, #12] + 800b0a0: f000 fcd4 bl 800ba4c tmpsmcr = htim->Instance->SMCR; - 800b0a0: 687b ldr r3, [r7, #4] - 800b0a2: 681b ldr r3, [r3, #0] - 800b0a4: 689b ldr r3, [r3, #8] - 800b0a6: 60fb str r3, [r7, #12] + 800b0a4: 687b ldr r3, [r7, #4] + 800b0a6: 681b ldr r3, [r3, #0] + 800b0a8: 689b ldr r3, [r3, #8] + 800b0aa: 60fb str r3, [r7, #12] tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); - 800b0a8: 68fb ldr r3, [r7, #12] - 800b0aa: f043 0377 orr.w r3, r3, #119 ; 0x77 - 800b0ae: 60fb str r3, [r7, #12] + 800b0ac: 68fb ldr r3, [r7, #12] + 800b0ae: f043 0377 orr.w r3, r3, #119 ; 0x77 + 800b0b2: 60fb str r3, [r7, #12] htim->Instance->SMCR = tmpsmcr; - 800b0b0: 687b ldr r3, [r7, #4] - 800b0b2: 681b ldr r3, [r3, #0] - 800b0b4: 68fa ldr r2, [r7, #12] - 800b0b6: 609a str r2, [r3, #8] + 800b0b4: 687b ldr r3, [r7, #4] + 800b0b6: 681b ldr r3, [r3, #0] + 800b0b8: 68fa ldr r2, [r7, #12] + 800b0ba: 609a str r2, [r3, #8] break; - 800b0b8: e04c b.n 800b154 + 800b0bc: e04c b.n 800b158 TIM_ETR_SetConfig(htim->Instance, - 800b0ba: 687b ldr r3, [r7, #4] - 800b0bc: 6818 ldr r0, [r3, #0] - 800b0be: 683b ldr r3, [r7, #0] - 800b0c0: 6899 ldr r1, [r3, #8] + 800b0be: 687b ldr r3, [r7, #4] + 800b0c0: 6818 ldr r0, [r3, #0] 800b0c2: 683b ldr r3, [r7, #0] - 800b0c4: 685a ldr r2, [r3, #4] + 800b0c4: 6899 ldr r1, [r3, #8] 800b0c6: 683b ldr r3, [r7, #0] - 800b0c8: 68db ldr r3, [r3, #12] - 800b0ca: f000 fcbd bl 800ba48 + 800b0c8: 685a ldr r2, [r3, #4] + 800b0ca: 683b ldr r3, [r7, #0] + 800b0cc: 68db ldr r3, [r3, #12] + 800b0ce: f000 fcbd bl 800ba4c htim->Instance->SMCR |= TIM_SMCR_ECE; - 800b0ce: 687b ldr r3, [r7, #4] - 800b0d0: 681b ldr r3, [r3, #0] - 800b0d2: 689a ldr r2, [r3, #8] - 800b0d4: 687b ldr r3, [r7, #4] - 800b0d6: 681b ldr r3, [r3, #0] - 800b0d8: f442 4280 orr.w r2, r2, #16384 ; 0x4000 - 800b0dc: 609a str r2, [r3, #8] + 800b0d2: 687b ldr r3, [r7, #4] + 800b0d4: 681b ldr r3, [r3, #0] + 800b0d6: 689a ldr r2, [r3, #8] + 800b0d8: 687b ldr r3, [r7, #4] + 800b0da: 681b ldr r3, [r3, #0] + 800b0dc: f442 4280 orr.w r2, r2, #16384 ; 0x4000 + 800b0e0: 609a str r2, [r3, #8] break; - 800b0de: e039 b.n 800b154 + 800b0e2: e039 b.n 800b158 TIM_TI1_ConfigInputStage(htim->Instance, - 800b0e0: 687b ldr r3, [r7, #4] - 800b0e2: 6818 ldr r0, [r3, #0] - 800b0e4: 683b ldr r3, [r7, #0] - 800b0e6: 6859 ldr r1, [r3, #4] + 800b0e4: 687b ldr r3, [r7, #4] + 800b0e6: 6818 ldr r0, [r3, #0] 800b0e8: 683b ldr r3, [r7, #0] - 800b0ea: 68db ldr r3, [r3, #12] - 800b0ec: 461a mov r2, r3 - 800b0ee: f000 fc31 bl 800b954 + 800b0ea: 6859 ldr r1, [r3, #4] + 800b0ec: 683b ldr r3, [r7, #0] + 800b0ee: 68db ldr r3, [r3, #12] + 800b0f0: 461a mov r2, r3 + 800b0f2: f000 fc31 bl 800b958 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); - 800b0f2: 687b ldr r3, [r7, #4] - 800b0f4: 681b ldr r3, [r3, #0] - 800b0f6: 2150 movs r1, #80 ; 0x50 - 800b0f8: 4618 mov r0, r3 - 800b0fa: f000 fc8a bl 800ba12 + 800b0f6: 687b ldr r3, [r7, #4] + 800b0f8: 681b ldr r3, [r3, #0] + 800b0fa: 2150 movs r1, #80 ; 0x50 + 800b0fc: 4618 mov r0, r3 + 800b0fe: f000 fc8a bl 800ba16 break; - 800b0fe: e029 b.n 800b154 + 800b102: e029 b.n 800b158 TIM_TI2_ConfigInputStage(htim->Instance, - 800b100: 687b ldr r3, [r7, #4] - 800b102: 6818 ldr r0, [r3, #0] - 800b104: 683b ldr r3, [r7, #0] - 800b106: 6859 ldr r1, [r3, #4] + 800b104: 687b ldr r3, [r7, #4] + 800b106: 6818 ldr r0, [r3, #0] 800b108: 683b ldr r3, [r7, #0] - 800b10a: 68db ldr r3, [r3, #12] - 800b10c: 461a mov r2, r3 - 800b10e: f000 fc50 bl 800b9b2 + 800b10a: 6859 ldr r1, [r3, #4] + 800b10c: 683b ldr r3, [r7, #0] + 800b10e: 68db ldr r3, [r3, #12] + 800b110: 461a mov r2, r3 + 800b112: f000 fc50 bl 800b9b6 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); - 800b112: 687b ldr r3, [r7, #4] - 800b114: 681b ldr r3, [r3, #0] - 800b116: 2160 movs r1, #96 ; 0x60 - 800b118: 4618 mov r0, r3 - 800b11a: f000 fc7a bl 800ba12 + 800b116: 687b ldr r3, [r7, #4] + 800b118: 681b ldr r3, [r3, #0] + 800b11a: 2160 movs r1, #96 ; 0x60 + 800b11c: 4618 mov r0, r3 + 800b11e: f000 fc7a bl 800ba16 break; - 800b11e: e019 b.n 800b154 + 800b122: e019 b.n 800b158 TIM_TI1_ConfigInputStage(htim->Instance, - 800b120: 687b ldr r3, [r7, #4] - 800b122: 6818 ldr r0, [r3, #0] - 800b124: 683b ldr r3, [r7, #0] - 800b126: 6859 ldr r1, [r3, #4] + 800b124: 687b ldr r3, [r7, #4] + 800b126: 6818 ldr r0, [r3, #0] 800b128: 683b ldr r3, [r7, #0] - 800b12a: 68db ldr r3, [r3, #12] - 800b12c: 461a mov r2, r3 - 800b12e: f000 fc11 bl 800b954 + 800b12a: 6859 ldr r1, [r3, #4] + 800b12c: 683b ldr r3, [r7, #0] + 800b12e: 68db ldr r3, [r3, #12] + 800b130: 461a mov r2, r3 + 800b132: f000 fc11 bl 800b958 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); - 800b132: 687b ldr r3, [r7, #4] - 800b134: 681b ldr r3, [r3, #0] - 800b136: 2140 movs r1, #64 ; 0x40 - 800b138: 4618 mov r0, r3 - 800b13a: f000 fc6a bl 800ba12 + 800b136: 687b ldr r3, [r7, #4] + 800b138: 681b ldr r3, [r3, #0] + 800b13a: 2140 movs r1, #64 ; 0x40 + 800b13c: 4618 mov r0, r3 + 800b13e: f000 fc6a bl 800ba16 break; - 800b13e: e009 b.n 800b154 + 800b142: e009 b.n 800b158 TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); - 800b140: 687b ldr r3, [r7, #4] - 800b142: 681a ldr r2, [r3, #0] - 800b144: 683b ldr r3, [r7, #0] - 800b146: 681b ldr r3, [r3, #0] - 800b148: 4619 mov r1, r3 - 800b14a: 4610 mov r0, r2 - 800b14c: f000 fc61 bl 800ba12 + 800b144: 687b ldr r3, [r7, #4] + 800b146: 681a ldr r2, [r3, #0] + 800b148: 683b ldr r3, [r7, #0] + 800b14a: 681b ldr r3, [r3, #0] + 800b14c: 4619 mov r1, r3 + 800b14e: 4610 mov r0, r2 + 800b150: f000 fc61 bl 800ba16 break; - 800b150: e000 b.n 800b154 + 800b154: e000 b.n 800b158 break; - 800b152: bf00 nop + 800b156: bf00 nop } htim->State = HAL_TIM_STATE_READY; - 800b154: 687b ldr r3, [r7, #4] - 800b156: 2201 movs r2, #1 - 800b158: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800b158: 687b ldr r3, [r7, #4] + 800b15a: 2201 movs r2, #1 + 800b15c: f883 203d strb.w r2, [r3, #61] ; 0x3d __HAL_UNLOCK(htim); - 800b15c: 687b ldr r3, [r7, #4] - 800b15e: 2200 movs r2, #0 - 800b160: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800b160: 687b ldr r3, [r7, #4] + 800b162: 2200 movs r2, #0 + 800b164: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; - 800b164: 2300 movs r3, #0 + 800b168: 2300 movs r3, #0 } - 800b166: 4618 mov r0, r3 - 800b168: 3710 adds r7, #16 - 800b16a: 46bd mov sp, r7 - 800b16c: bd80 pop {r7, pc} - 800b16e: bf00 nop - 800b170: fffeff88 .word 0xfffeff88 + 800b16a: 4618 mov r0, r3 + 800b16c: 3710 adds r7, #16 + 800b16e: 46bd mov sp, r7 + 800b170: bd80 pop {r7, pc} + 800b172: bf00 nop + 800b174: fffeff88 .word 0xfffeff88 -0800b174 : +0800b178 : * timer input or external trigger input) and the Slave mode * (Disable, Reset, Gated, Trigger, External clock mode 1). * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_SlaveConfigSynchro(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig) { - 800b174: b580 push {r7, lr} - 800b176: b082 sub sp, #8 - 800b178: af00 add r7, sp, #0 - 800b17a: 6078 str r0, [r7, #4] - 800b17c: 6039 str r1, [r7, #0] + 800b178: b580 push {r7, lr} + 800b17a: b082 sub sp, #8 + 800b17c: af00 add r7, sp, #0 + 800b17e: 6078 str r0, [r7, #4] + 800b180: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_TIM_SLAVE_INSTANCE(htim->Instance)); assert_param(IS_TIM_SLAVE_MODE(sSlaveConfig->SlaveMode)); assert_param(IS_TIM_TRIGGER_SELECTION(sSlaveConfig->InputTrigger)); __HAL_LOCK(htim); - 800b17e: 687b ldr r3, [r7, #4] - 800b180: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800b184: 2b01 cmp r3, #1 - 800b186: d101 bne.n 800b18c - 800b188: 2302 movs r3, #2 - 800b18a: e031 b.n 800b1f0 - 800b18c: 687b ldr r3, [r7, #4] - 800b18e: 2201 movs r2, #1 - 800b190: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800b182: 687b ldr r3, [r7, #4] + 800b184: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 800b188: 2b01 cmp r3, #1 + 800b18a: d101 bne.n 800b190 + 800b18c: 2302 movs r3, #2 + 800b18e: e031 b.n 800b1f4 + 800b190: 687b ldr r3, [r7, #4] + 800b192: 2201 movs r2, #1 + 800b194: f883 203c strb.w r2, [r3, #60] ; 0x3c htim->State = HAL_TIM_STATE_BUSY; - 800b194: 687b ldr r3, [r7, #4] - 800b196: 2202 movs r2, #2 - 800b198: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800b198: 687b ldr r3, [r7, #4] + 800b19a: 2202 movs r2, #2 + 800b19c: f883 203d strb.w r2, [r3, #61] ; 0x3d if (TIM_SlaveTimer_SetConfig(htim, sSlaveConfig) != HAL_OK) - 800b19c: 6839 ldr r1, [r7, #0] - 800b19e: 6878 ldr r0, [r7, #4] - 800b1a0: f000 fb50 bl 800b844 - 800b1a4: 4603 mov r3, r0 - 800b1a6: 2b00 cmp r3, #0 - 800b1a8: d009 beq.n 800b1be + 800b1a0: 6839 ldr r1, [r7, #0] + 800b1a2: 6878 ldr r0, [r7, #4] + 800b1a4: f000 fb50 bl 800b848 + 800b1a8: 4603 mov r3, r0 + 800b1aa: 2b00 cmp r3, #0 + 800b1ac: d009 beq.n 800b1c2 { htim->State = HAL_TIM_STATE_READY; - 800b1aa: 687b ldr r3, [r7, #4] - 800b1ac: 2201 movs r2, #1 - 800b1ae: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800b1ae: 687b ldr r3, [r7, #4] + 800b1b0: 2201 movs r2, #1 + 800b1b2: f883 203d strb.w r2, [r3, #61] ; 0x3d __HAL_UNLOCK(htim); - 800b1b2: 687b ldr r3, [r7, #4] - 800b1b4: 2200 movs r2, #0 - 800b1b6: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800b1b6: 687b ldr r3, [r7, #4] + 800b1b8: 2200 movs r2, #0 + 800b1ba: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; - 800b1ba: 2301 movs r3, #1 - 800b1bc: e018 b.n 800b1f0 + 800b1be: 2301 movs r3, #1 + 800b1c0: e018 b.n 800b1f4 } /* Disable Trigger Interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_TRIGGER); - 800b1be: 687b ldr r3, [r7, #4] - 800b1c0: 681b ldr r3, [r3, #0] - 800b1c2: 68da ldr r2, [r3, #12] - 800b1c4: 687b ldr r3, [r7, #4] - 800b1c6: 681b ldr r3, [r3, #0] - 800b1c8: f022 0240 bic.w r2, r2, #64 ; 0x40 - 800b1cc: 60da str r2, [r3, #12] + 800b1c2: 687b ldr r3, [r7, #4] + 800b1c4: 681b ldr r3, [r3, #0] + 800b1c6: 68da ldr r2, [r3, #12] + 800b1c8: 687b ldr r3, [r7, #4] + 800b1ca: 681b ldr r3, [r3, #0] + 800b1cc: f022 0240 bic.w r2, r2, #64 ; 0x40 + 800b1d0: 60da str r2, [r3, #12] /* Disable Trigger DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_TRIGGER); - 800b1ce: 687b ldr r3, [r7, #4] - 800b1d0: 681b ldr r3, [r3, #0] - 800b1d2: 68da ldr r2, [r3, #12] - 800b1d4: 687b ldr r3, [r7, #4] - 800b1d6: 681b ldr r3, [r3, #0] - 800b1d8: f422 4280 bic.w r2, r2, #16384 ; 0x4000 - 800b1dc: 60da str r2, [r3, #12] + 800b1d2: 687b ldr r3, [r7, #4] + 800b1d4: 681b ldr r3, [r3, #0] + 800b1d6: 68da ldr r2, [r3, #12] + 800b1d8: 687b ldr r3, [r7, #4] + 800b1da: 681b ldr r3, [r3, #0] + 800b1dc: f422 4280 bic.w r2, r2, #16384 ; 0x4000 + 800b1e0: 60da str r2, [r3, #12] htim->State = HAL_TIM_STATE_READY; - 800b1de: 687b ldr r3, [r7, #4] - 800b1e0: 2201 movs r2, #1 - 800b1e2: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800b1e2: 687b ldr r3, [r7, #4] + 800b1e4: 2201 movs r2, #1 + 800b1e6: f883 203d strb.w r2, [r3, #61] ; 0x3d __HAL_UNLOCK(htim); - 800b1e6: 687b ldr r3, [r7, #4] - 800b1e8: 2200 movs r2, #0 - 800b1ea: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800b1ea: 687b ldr r3, [r7, #4] + 800b1ec: 2200 movs r2, #0 + 800b1ee: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; - 800b1ee: 2300 movs r3, #0 + 800b1f2: 2300 movs r3, #0 } - 800b1f0: 4618 mov r0, r3 - 800b1f2: 3708 adds r7, #8 - 800b1f4: 46bd mov sp, r7 - 800b1f6: bd80 pop {r7, pc} + 800b1f4: 4618 mov r0, r3 + 800b1f6: 3708 adds r7, #8 + 800b1f8: 46bd mov sp, r7 + 800b1fa: bd80 pop {r7, pc} -0800b1f8 : +0800b1fc : * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { - 800b1f8: b480 push {r7} - 800b1fa: b083 sub sp, #12 - 800b1fc: af00 add r7, sp, #0 - 800b1fe: 6078 str r0, [r7, #4] + 800b1fc: b480 push {r7} + 800b1fe: b083 sub sp, #12 + 800b200: af00 add r7, sp, #0 + 800b202: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file */ } - 800b200: bf00 nop - 800b202: 370c adds r7, #12 - 800b204: 46bd mov sp, r7 - 800b206: f85d 7b04 ldr.w r7, [sp], #4 - 800b20a: 4770 bx lr + 800b204: bf00 nop + 800b206: 370c adds r7, #12 + 800b208: 46bd mov sp, r7 + 800b20a: f85d 7b04 ldr.w r7, [sp], #4 + 800b20e: 4770 bx lr -0800b20c : +0800b210 : * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { - 800b20c: b480 push {r7} - 800b20e: b083 sub sp, #12 - 800b210: af00 add r7, sp, #0 - 800b212: 6078 str r0, [r7, #4] + 800b210: b480 push {r7} + 800b212: b083 sub sp, #12 + 800b214: af00 add r7, sp, #0 + 800b216: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_IC_CaptureCallback could be implemented in the user file */ } - 800b214: bf00 nop - 800b216: 370c adds r7, #12 - 800b218: 46bd mov sp, r7 - 800b21a: f85d 7b04 ldr.w r7, [sp], #4 - 800b21e: 4770 bx lr + 800b218: bf00 nop + 800b21a: 370c adds r7, #12 + 800b21c: 46bd mov sp, r7 + 800b21e: f85d 7b04 ldr.w r7, [sp], #4 + 800b222: 4770 bx lr -0800b220 : +0800b224 : * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { - 800b220: b480 push {r7} - 800b222: b083 sub sp, #12 - 800b224: af00 add r7, sp, #0 - 800b226: 6078 str r0, [r7, #4] + 800b224: b480 push {r7} + 800b226: b083 sub sp, #12 + 800b228: af00 add r7, sp, #0 + 800b22a: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file */ } - 800b228: bf00 nop - 800b22a: 370c adds r7, #12 - 800b22c: 46bd mov sp, r7 - 800b22e: f85d 7b04 ldr.w r7, [sp], #4 - 800b232: 4770 bx lr + 800b22c: bf00 nop + 800b22e: 370c adds r7, #12 + 800b230: 46bd mov sp, r7 + 800b232: f85d 7b04 ldr.w r7, [sp], #4 + 800b236: 4770 bx lr -0800b234 : +0800b238 : * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { - 800b234: b480 push {r7} - 800b236: b083 sub sp, #12 - 800b238: af00 add r7, sp, #0 - 800b23a: 6078 str r0, [r7, #4] + 800b238: b480 push {r7} + 800b23a: b083 sub sp, #12 + 800b23c: af00 add r7, sp, #0 + 800b23e: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_TriggerCallback could be implemented in the user file */ } - 800b23c: bf00 nop - 800b23e: 370c adds r7, #12 - 800b240: 46bd mov sp, r7 - 800b242: f85d 7b04 ldr.w r7, [sp], #4 - 800b246: 4770 bx lr + 800b240: bf00 nop + 800b242: 370c adds r7, #12 + 800b244: 46bd mov sp, r7 + 800b246: f85d 7b04 ldr.w r7, [sp], #4 + 800b24a: 4770 bx lr -0800b248 : +0800b24c : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure) { - 800b248: b480 push {r7} - 800b24a: b085 sub sp, #20 - 800b24c: af00 add r7, sp, #0 - 800b24e: 6078 str r0, [r7, #4] - 800b250: 6039 str r1, [r7, #0] + 800b24c: b480 push {r7} + 800b24e: b085 sub sp, #20 + 800b250: af00 add r7, sp, #0 + 800b252: 6078 str r0, [r7, #4] + 800b254: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; - 800b252: 687b ldr r3, [r7, #4] - 800b254: 681b ldr r3, [r3, #0] - 800b256: 60fb str r3, [r7, #12] + 800b256: 687b ldr r3, [r7, #4] + 800b258: 681b ldr r3, [r3, #0] + 800b25a: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - 800b258: 687b ldr r3, [r7, #4] - 800b25a: 4a40 ldr r2, [pc, #256] ; (800b35c ) - 800b25c: 4293 cmp r3, r2 - 800b25e: d013 beq.n 800b288 - 800b260: 687b ldr r3, [r7, #4] - 800b262: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800b266: d00f beq.n 800b288 - 800b268: 687b ldr r3, [r7, #4] - 800b26a: 4a3d ldr r2, [pc, #244] ; (800b360 ) - 800b26c: 4293 cmp r3, r2 - 800b26e: d00b beq.n 800b288 - 800b270: 687b ldr r3, [r7, #4] - 800b272: 4a3c ldr r2, [pc, #240] ; (800b364 ) - 800b274: 4293 cmp r3, r2 - 800b276: d007 beq.n 800b288 - 800b278: 687b ldr r3, [r7, #4] - 800b27a: 4a3b ldr r2, [pc, #236] ; (800b368 ) - 800b27c: 4293 cmp r3, r2 - 800b27e: d003 beq.n 800b288 - 800b280: 687b ldr r3, [r7, #4] - 800b282: 4a3a ldr r2, [pc, #232] ; (800b36c ) - 800b284: 4293 cmp r3, r2 - 800b286: d108 bne.n 800b29a + 800b25c: 687b ldr r3, [r7, #4] + 800b25e: 4a40 ldr r2, [pc, #256] ; (800b360 ) + 800b260: 4293 cmp r3, r2 + 800b262: d013 beq.n 800b28c + 800b264: 687b ldr r3, [r7, #4] + 800b266: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 800b26a: d00f beq.n 800b28c + 800b26c: 687b ldr r3, [r7, #4] + 800b26e: 4a3d ldr r2, [pc, #244] ; (800b364 ) + 800b270: 4293 cmp r3, r2 + 800b272: d00b beq.n 800b28c + 800b274: 687b ldr r3, [r7, #4] + 800b276: 4a3c ldr r2, [pc, #240] ; (800b368 ) + 800b278: 4293 cmp r3, r2 + 800b27a: d007 beq.n 800b28c + 800b27c: 687b ldr r3, [r7, #4] + 800b27e: 4a3b ldr r2, [pc, #236] ; (800b36c ) + 800b280: 4293 cmp r3, r2 + 800b282: d003 beq.n 800b28c + 800b284: 687b ldr r3, [r7, #4] + 800b286: 4a3a ldr r2, [pc, #232] ; (800b370 ) + 800b288: 4293 cmp r3, r2 + 800b28a: d108 bne.n 800b29e { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - 800b288: 68fb ldr r3, [r7, #12] - 800b28a: f023 0370 bic.w r3, r3, #112 ; 0x70 - 800b28e: 60fb str r3, [r7, #12] + 800b28c: 68fb ldr r3, [r7, #12] + 800b28e: f023 0370 bic.w r3, r3, #112 ; 0x70 + 800b292: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; - 800b290: 683b ldr r3, [r7, #0] - 800b292: 685b ldr r3, [r3, #4] - 800b294: 68fa ldr r2, [r7, #12] - 800b296: 4313 orrs r3, r2 - 800b298: 60fb str r3, [r7, #12] + 800b294: 683b ldr r3, [r7, #0] + 800b296: 685b ldr r3, [r3, #4] + 800b298: 68fa ldr r2, [r7, #12] + 800b29a: 4313 orrs r3, r2 + 800b29c: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - 800b29a: 687b ldr r3, [r7, #4] - 800b29c: 4a2f ldr r2, [pc, #188] ; (800b35c ) - 800b29e: 4293 cmp r3, r2 - 800b2a0: d02b beq.n 800b2fa - 800b2a2: 687b ldr r3, [r7, #4] - 800b2a4: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800b2a8: d027 beq.n 800b2fa - 800b2aa: 687b ldr r3, [r7, #4] - 800b2ac: 4a2c ldr r2, [pc, #176] ; (800b360 ) - 800b2ae: 4293 cmp r3, r2 - 800b2b0: d023 beq.n 800b2fa - 800b2b2: 687b ldr r3, [r7, #4] - 800b2b4: 4a2b ldr r2, [pc, #172] ; (800b364 ) - 800b2b6: 4293 cmp r3, r2 - 800b2b8: d01f beq.n 800b2fa - 800b2ba: 687b ldr r3, [r7, #4] - 800b2bc: 4a2a ldr r2, [pc, #168] ; (800b368 ) - 800b2be: 4293 cmp r3, r2 - 800b2c0: d01b beq.n 800b2fa - 800b2c2: 687b ldr r3, [r7, #4] - 800b2c4: 4a29 ldr r2, [pc, #164] ; (800b36c ) - 800b2c6: 4293 cmp r3, r2 - 800b2c8: d017 beq.n 800b2fa - 800b2ca: 687b ldr r3, [r7, #4] - 800b2cc: 4a28 ldr r2, [pc, #160] ; (800b370 ) - 800b2ce: 4293 cmp r3, r2 - 800b2d0: d013 beq.n 800b2fa - 800b2d2: 687b ldr r3, [r7, #4] - 800b2d4: 4a27 ldr r2, [pc, #156] ; (800b374 ) - 800b2d6: 4293 cmp r3, r2 - 800b2d8: d00f beq.n 800b2fa - 800b2da: 687b ldr r3, [r7, #4] - 800b2dc: 4a26 ldr r2, [pc, #152] ; (800b378 ) - 800b2de: 4293 cmp r3, r2 - 800b2e0: d00b beq.n 800b2fa - 800b2e2: 687b ldr r3, [r7, #4] - 800b2e4: 4a25 ldr r2, [pc, #148] ; (800b37c ) - 800b2e6: 4293 cmp r3, r2 - 800b2e8: d007 beq.n 800b2fa - 800b2ea: 687b ldr r3, [r7, #4] - 800b2ec: 4a24 ldr r2, [pc, #144] ; (800b380 ) - 800b2ee: 4293 cmp r3, r2 - 800b2f0: d003 beq.n 800b2fa - 800b2f2: 687b ldr r3, [r7, #4] - 800b2f4: 4a23 ldr r2, [pc, #140] ; (800b384 ) - 800b2f6: 4293 cmp r3, r2 - 800b2f8: d108 bne.n 800b30c + 800b29e: 687b ldr r3, [r7, #4] + 800b2a0: 4a2f ldr r2, [pc, #188] ; (800b360 ) + 800b2a2: 4293 cmp r3, r2 + 800b2a4: d02b beq.n 800b2fe + 800b2a6: 687b ldr r3, [r7, #4] + 800b2a8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 800b2ac: d027 beq.n 800b2fe + 800b2ae: 687b ldr r3, [r7, #4] + 800b2b0: 4a2c ldr r2, [pc, #176] ; (800b364 ) + 800b2b2: 4293 cmp r3, r2 + 800b2b4: d023 beq.n 800b2fe + 800b2b6: 687b ldr r3, [r7, #4] + 800b2b8: 4a2b ldr r2, [pc, #172] ; (800b368 ) + 800b2ba: 4293 cmp r3, r2 + 800b2bc: d01f beq.n 800b2fe + 800b2be: 687b ldr r3, [r7, #4] + 800b2c0: 4a2a ldr r2, [pc, #168] ; (800b36c ) + 800b2c2: 4293 cmp r3, r2 + 800b2c4: d01b beq.n 800b2fe + 800b2c6: 687b ldr r3, [r7, #4] + 800b2c8: 4a29 ldr r2, [pc, #164] ; (800b370 ) + 800b2ca: 4293 cmp r3, r2 + 800b2cc: d017 beq.n 800b2fe + 800b2ce: 687b ldr r3, [r7, #4] + 800b2d0: 4a28 ldr r2, [pc, #160] ; (800b374 ) + 800b2d2: 4293 cmp r3, r2 + 800b2d4: d013 beq.n 800b2fe + 800b2d6: 687b ldr r3, [r7, #4] + 800b2d8: 4a27 ldr r2, [pc, #156] ; (800b378 ) + 800b2da: 4293 cmp r3, r2 + 800b2dc: d00f beq.n 800b2fe + 800b2de: 687b ldr r3, [r7, #4] + 800b2e0: 4a26 ldr r2, [pc, #152] ; (800b37c ) + 800b2e2: 4293 cmp r3, r2 + 800b2e4: d00b beq.n 800b2fe + 800b2e6: 687b ldr r3, [r7, #4] + 800b2e8: 4a25 ldr r2, [pc, #148] ; (800b380 ) + 800b2ea: 4293 cmp r3, r2 + 800b2ec: d007 beq.n 800b2fe + 800b2ee: 687b ldr r3, [r7, #4] + 800b2f0: 4a24 ldr r2, [pc, #144] ; (800b384 ) + 800b2f2: 4293 cmp r3, r2 + 800b2f4: d003 beq.n 800b2fe + 800b2f6: 687b ldr r3, [r7, #4] + 800b2f8: 4a23 ldr r2, [pc, #140] ; (800b388 ) + 800b2fa: 4293 cmp r3, r2 + 800b2fc: d108 bne.n 800b310 { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; - 800b2fa: 68fb ldr r3, [r7, #12] - 800b2fc: f423 7340 bic.w r3, r3, #768 ; 0x300 - 800b300: 60fb str r3, [r7, #12] + 800b2fe: 68fb ldr r3, [r7, #12] + 800b300: f423 7340 bic.w r3, r3, #768 ; 0x300 + 800b304: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; - 800b302: 683b ldr r3, [r7, #0] - 800b304: 68db ldr r3, [r3, #12] - 800b306: 68fa ldr r2, [r7, #12] - 800b308: 4313 orrs r3, r2 - 800b30a: 60fb str r3, [r7, #12] + 800b306: 683b ldr r3, [r7, #0] + 800b308: 68db ldr r3, [r3, #12] + 800b30a: 68fa ldr r2, [r7, #12] + 800b30c: 4313 orrs r3, r2 + 800b30e: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - 800b30c: 68fb ldr r3, [r7, #12] - 800b30e: f023 0280 bic.w r2, r3, #128 ; 0x80 - 800b312: 683b ldr r3, [r7, #0] - 800b314: 695b ldr r3, [r3, #20] - 800b316: 4313 orrs r3, r2 - 800b318: 60fb str r3, [r7, #12] + 800b310: 68fb ldr r3, [r7, #12] + 800b312: f023 0280 bic.w r2, r3, #128 ; 0x80 + 800b316: 683b ldr r3, [r7, #0] + 800b318: 695b ldr r3, [r3, #20] + 800b31a: 4313 orrs r3, r2 + 800b31c: 60fb str r3, [r7, #12] TIMx->CR1 = tmpcr1; - 800b31a: 687b ldr r3, [r7, #4] - 800b31c: 68fa ldr r2, [r7, #12] - 800b31e: 601a str r2, [r3, #0] + 800b31e: 687b ldr r3, [r7, #4] + 800b320: 68fa ldr r2, [r7, #12] + 800b322: 601a str r2, [r3, #0] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; - 800b320: 683b ldr r3, [r7, #0] - 800b322: 689a ldr r2, [r3, #8] - 800b324: 687b ldr r3, [r7, #4] - 800b326: 62da str r2, [r3, #44] ; 0x2c + 800b324: 683b ldr r3, [r7, #0] + 800b326: 689a ldr r2, [r3, #8] + 800b328: 687b ldr r3, [r7, #4] + 800b32a: 62da str r2, [r3, #44] ; 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; - 800b328: 683b ldr r3, [r7, #0] - 800b32a: 681a ldr r2, [r3, #0] - 800b32c: 687b ldr r3, [r7, #4] - 800b32e: 629a str r2, [r3, #40] ; 0x28 + 800b32c: 683b ldr r3, [r7, #0] + 800b32e: 681a ldr r2, [r3, #0] + 800b330: 687b ldr r3, [r7, #4] + 800b332: 629a str r2, [r3, #40] ; 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - 800b330: 687b ldr r3, [r7, #4] - 800b332: 4a0a ldr r2, [pc, #40] ; (800b35c ) - 800b334: 4293 cmp r3, r2 - 800b336: d003 beq.n 800b340 - 800b338: 687b ldr r3, [r7, #4] - 800b33a: 4a0c ldr r2, [pc, #48] ; (800b36c ) - 800b33c: 4293 cmp r3, r2 - 800b33e: d103 bne.n 800b348 + 800b334: 687b ldr r3, [r7, #4] + 800b336: 4a0a ldr r2, [pc, #40] ; (800b360 ) + 800b338: 4293 cmp r3, r2 + 800b33a: d003 beq.n 800b344 + 800b33c: 687b ldr r3, [r7, #4] + 800b33e: 4a0c ldr r2, [pc, #48] ; (800b370 ) + 800b340: 4293 cmp r3, r2 + 800b342: d103 bne.n 800b34c { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; - 800b340: 683b ldr r3, [r7, #0] - 800b342: 691a ldr r2, [r3, #16] - 800b344: 687b ldr r3, [r7, #4] - 800b346: 631a str r2, [r3, #48] ; 0x30 + 800b344: 683b ldr r3, [r7, #0] + 800b346: 691a ldr r2, [r3, #16] + 800b348: 687b ldr r3, [r7, #4] + 800b34a: 631a str r2, [r3, #48] ; 0x30 } /* Generate an update event to reload the Prescaler and the repetition counter (only for advanced timer) value immediately */ TIMx->EGR = TIM_EGR_UG; - 800b348: 687b ldr r3, [r7, #4] - 800b34a: 2201 movs r2, #1 - 800b34c: 615a str r2, [r3, #20] -} - 800b34e: bf00 nop - 800b350: 3714 adds r7, #20 - 800b352: 46bd mov sp, r7 - 800b354: f85d 7b04 ldr.w r7, [sp], #4 - 800b358: 4770 bx lr - 800b35a: bf00 nop - 800b35c: 40010000 .word 0x40010000 - 800b360: 40000400 .word 0x40000400 - 800b364: 40000800 .word 0x40000800 - 800b368: 40000c00 .word 0x40000c00 - 800b36c: 40010400 .word 0x40010400 - 800b370: 40014000 .word 0x40014000 - 800b374: 40014400 .word 0x40014400 - 800b378: 40014800 .word 0x40014800 - 800b37c: 40001800 .word 0x40001800 - 800b380: 40001c00 .word 0x40001c00 - 800b384: 40002000 .word 0x40002000 - -0800b388 : + 800b34c: 687b ldr r3, [r7, #4] + 800b34e: 2201 movs r2, #1 + 800b350: 615a str r2, [r3, #20] +} + 800b352: bf00 nop + 800b354: 3714 adds r7, #20 + 800b356: 46bd mov sp, r7 + 800b358: f85d 7b04 ldr.w r7, [sp], #4 + 800b35c: 4770 bx lr + 800b35e: bf00 nop + 800b360: 40010000 .word 0x40010000 + 800b364: 40000400 .word 0x40000400 + 800b368: 40000800 .word 0x40000800 + 800b36c: 40000c00 .word 0x40000c00 + 800b370: 40010400 .word 0x40010400 + 800b374: 40014000 .word 0x40014000 + 800b378: 40014400 .word 0x40014400 + 800b37c: 40014800 .word 0x40014800 + 800b380: 40001800 .word 0x40001800 + 800b384: 40001c00 .word 0x40001c00 + 800b388: 40002000 .word 0x40002000 + +0800b38c : * @param TIMx to select the TIM peripheral * @param OC_Config The ouput configuration structure * @retval None */ static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { - 800b388: b480 push {r7} - 800b38a: b087 sub sp, #28 - 800b38c: af00 add r7, sp, #0 - 800b38e: 6078 str r0, [r7, #4] - 800b390: 6039 str r1, [r7, #0] + 800b38c: b480 push {r7} + 800b38e: b087 sub sp, #28 + 800b390: af00 add r7, sp, #0 + 800b392: 6078 str r0, [r7, #4] + 800b394: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; - 800b392: 687b ldr r3, [r7, #4] - 800b394: 6a1b ldr r3, [r3, #32] - 800b396: f023 0201 bic.w r2, r3, #1 - 800b39a: 687b ldr r3, [r7, #4] - 800b39c: 621a str r2, [r3, #32] + 800b396: 687b ldr r3, [r7, #4] + 800b398: 6a1b ldr r3, [r3, #32] + 800b39a: f023 0201 bic.w r2, r3, #1 + 800b39e: 687b ldr r3, [r7, #4] + 800b3a0: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 800b39e: 687b ldr r3, [r7, #4] - 800b3a0: 6a1b ldr r3, [r3, #32] - 800b3a2: 617b str r3, [r7, #20] + 800b3a2: 687b ldr r3, [r7, #4] + 800b3a4: 6a1b ldr r3, [r3, #32] + 800b3a6: 617b str r3, [r7, #20] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 800b3a4: 687b ldr r3, [r7, #4] - 800b3a6: 685b ldr r3, [r3, #4] - 800b3a8: 613b str r3, [r7, #16] + 800b3a8: 687b ldr r3, [r7, #4] + 800b3aa: 685b ldr r3, [r3, #4] + 800b3ac: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; - 800b3aa: 687b ldr r3, [r7, #4] - 800b3ac: 699b ldr r3, [r3, #24] - 800b3ae: 60fb str r3, [r7, #12] + 800b3ae: 687b ldr r3, [r7, #4] + 800b3b0: 699b ldr r3, [r3, #24] + 800b3b2: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; - 800b3b0: 68fa ldr r2, [r7, #12] - 800b3b2: 4b2b ldr r3, [pc, #172] ; (800b460 ) - 800b3b4: 4013 ands r3, r2 - 800b3b6: 60fb str r3, [r7, #12] + 800b3b4: 68fa ldr r2, [r7, #12] + 800b3b6: 4b2b ldr r3, [pc, #172] ; (800b464 ) + 800b3b8: 4013 ands r3, r2 + 800b3ba: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC1S; - 800b3b8: 68fb ldr r3, [r7, #12] - 800b3ba: f023 0303 bic.w r3, r3, #3 - 800b3be: 60fb str r3, [r7, #12] + 800b3bc: 68fb ldr r3, [r7, #12] + 800b3be: f023 0303 bic.w r3, r3, #3 + 800b3c2: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 800b3c0: 683b ldr r3, [r7, #0] - 800b3c2: 681b ldr r3, [r3, #0] - 800b3c4: 68fa ldr r2, [r7, #12] - 800b3c6: 4313 orrs r3, r2 - 800b3c8: 60fb str r3, [r7, #12] + 800b3c4: 683b ldr r3, [r7, #0] + 800b3c6: 681b ldr r3, [r3, #0] + 800b3c8: 68fa ldr r2, [r7, #12] + 800b3ca: 4313 orrs r3, r2 + 800b3cc: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; - 800b3ca: 697b ldr r3, [r7, #20] - 800b3cc: f023 0302 bic.w r3, r3, #2 - 800b3d0: 617b str r3, [r7, #20] + 800b3ce: 697b ldr r3, [r7, #20] + 800b3d0: f023 0302 bic.w r3, r3, #2 + 800b3d4: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; - 800b3d2: 683b ldr r3, [r7, #0] - 800b3d4: 689b ldr r3, [r3, #8] - 800b3d6: 697a ldr r2, [r7, #20] - 800b3d8: 4313 orrs r3, r2 - 800b3da: 617b str r3, [r7, #20] + 800b3d6: 683b ldr r3, [r7, #0] + 800b3d8: 689b ldr r3, [r3, #8] + 800b3da: 697a ldr r2, [r7, #20] + 800b3dc: 4313 orrs r3, r2 + 800b3de: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) - 800b3dc: 687b ldr r3, [r7, #4] - 800b3de: 4a21 ldr r2, [pc, #132] ; (800b464 ) - 800b3e0: 4293 cmp r3, r2 - 800b3e2: d003 beq.n 800b3ec - 800b3e4: 687b ldr r3, [r7, #4] - 800b3e6: 4a20 ldr r2, [pc, #128] ; (800b468 ) - 800b3e8: 4293 cmp r3, r2 - 800b3ea: d10c bne.n 800b406 + 800b3e0: 687b ldr r3, [r7, #4] + 800b3e2: 4a21 ldr r2, [pc, #132] ; (800b468 ) + 800b3e4: 4293 cmp r3, r2 + 800b3e6: d003 beq.n 800b3f0 + 800b3e8: 687b ldr r3, [r7, #4] + 800b3ea: 4a20 ldr r2, [pc, #128] ; (800b46c ) + 800b3ec: 4293 cmp r3, r2 + 800b3ee: d10c bne.n 800b40a { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; - 800b3ec: 697b ldr r3, [r7, #20] - 800b3ee: f023 0308 bic.w r3, r3, #8 - 800b3f2: 617b str r3, [r7, #20] + 800b3f0: 697b ldr r3, [r7, #20] + 800b3f2: f023 0308 bic.w r3, r3, #8 + 800b3f6: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; - 800b3f4: 683b ldr r3, [r7, #0] - 800b3f6: 68db ldr r3, [r3, #12] - 800b3f8: 697a ldr r2, [r7, #20] - 800b3fa: 4313 orrs r3, r2 - 800b3fc: 617b str r3, [r7, #20] + 800b3f8: 683b ldr r3, [r7, #0] + 800b3fa: 68db ldr r3, [r3, #12] + 800b3fc: 697a ldr r2, [r7, #20] + 800b3fe: 4313 orrs r3, r2 + 800b400: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; - 800b3fe: 697b ldr r3, [r7, #20] - 800b400: f023 0304 bic.w r3, r3, #4 - 800b404: 617b str r3, [r7, #20] + 800b402: 697b ldr r3, [r7, #20] + 800b404: f023 0304 bic.w r3, r3, #4 + 800b408: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 800b406: 687b ldr r3, [r7, #4] - 800b408: 4a16 ldr r2, [pc, #88] ; (800b464 ) - 800b40a: 4293 cmp r3, r2 - 800b40c: d003 beq.n 800b416 - 800b40e: 687b ldr r3, [r7, #4] - 800b410: 4a15 ldr r2, [pc, #84] ; (800b468 ) - 800b412: 4293 cmp r3, r2 - 800b414: d111 bne.n 800b43a + 800b40a: 687b ldr r3, [r7, #4] + 800b40c: 4a16 ldr r2, [pc, #88] ; (800b468 ) + 800b40e: 4293 cmp r3, r2 + 800b410: d003 beq.n 800b41a + 800b412: 687b ldr r3, [r7, #4] + 800b414: 4a15 ldr r2, [pc, #84] ; (800b46c ) + 800b416: 4293 cmp r3, r2 + 800b418: d111 bne.n 800b43e /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS1; - 800b416: 693b ldr r3, [r7, #16] - 800b418: f423 7380 bic.w r3, r3, #256 ; 0x100 - 800b41c: 613b str r3, [r7, #16] + 800b41a: 693b ldr r3, [r7, #16] + 800b41c: f423 7380 bic.w r3, r3, #256 ; 0x100 + 800b420: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS1N; - 800b41e: 693b ldr r3, [r7, #16] - 800b420: f423 7300 bic.w r3, r3, #512 ; 0x200 - 800b424: 613b str r3, [r7, #16] + 800b422: 693b ldr r3, [r7, #16] + 800b424: f423 7300 bic.w r3, r3, #512 ; 0x200 + 800b428: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; - 800b426: 683b ldr r3, [r7, #0] - 800b428: 695b ldr r3, [r3, #20] - 800b42a: 693a ldr r2, [r7, #16] - 800b42c: 4313 orrs r3, r2 - 800b42e: 613b str r3, [r7, #16] + 800b42a: 683b ldr r3, [r7, #0] + 800b42c: 695b ldr r3, [r3, #20] + 800b42e: 693a ldr r2, [r7, #16] + 800b430: 4313 orrs r3, r2 + 800b432: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; - 800b430: 683b ldr r3, [r7, #0] - 800b432: 699b ldr r3, [r3, #24] - 800b434: 693a ldr r2, [r7, #16] - 800b436: 4313 orrs r3, r2 - 800b438: 613b str r3, [r7, #16] + 800b434: 683b ldr r3, [r7, #0] + 800b436: 699b ldr r3, [r3, #24] + 800b438: 693a ldr r2, [r7, #16] + 800b43a: 4313 orrs r3, r2 + 800b43c: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800b43a: 687b ldr r3, [r7, #4] - 800b43c: 693a ldr r2, [r7, #16] - 800b43e: 605a str r2, [r3, #4] + 800b43e: 687b ldr r3, [r7, #4] + 800b440: 693a ldr r2, [r7, #16] + 800b442: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; - 800b440: 687b ldr r3, [r7, #4] - 800b442: 68fa ldr r2, [r7, #12] - 800b444: 619a str r2, [r3, #24] + 800b444: 687b ldr r3, [r7, #4] + 800b446: 68fa ldr r2, [r7, #12] + 800b448: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; - 800b446: 683b ldr r3, [r7, #0] - 800b448: 685a ldr r2, [r3, #4] - 800b44a: 687b ldr r3, [r7, #4] - 800b44c: 635a str r2, [r3, #52] ; 0x34 + 800b44a: 683b ldr r3, [r7, #0] + 800b44c: 685a ldr r2, [r3, #4] + 800b44e: 687b ldr r3, [r7, #4] + 800b450: 635a str r2, [r3, #52] ; 0x34 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800b44e: 687b ldr r3, [r7, #4] - 800b450: 697a ldr r2, [r7, #20] - 800b452: 621a str r2, [r3, #32] -} - 800b454: bf00 nop - 800b456: 371c adds r7, #28 - 800b458: 46bd mov sp, r7 - 800b45a: f85d 7b04 ldr.w r7, [sp], #4 - 800b45e: 4770 bx lr - 800b460: fffeff8f .word 0xfffeff8f - 800b464: 40010000 .word 0x40010000 - 800b468: 40010400 .word 0x40010400 - -0800b46c : + 800b452: 687b ldr r3, [r7, #4] + 800b454: 697a ldr r2, [r7, #20] + 800b456: 621a str r2, [r3, #32] +} + 800b458: bf00 nop + 800b45a: 371c adds r7, #28 + 800b45c: 46bd mov sp, r7 + 800b45e: f85d 7b04 ldr.w r7, [sp], #4 + 800b462: 4770 bx lr + 800b464: fffeff8f .word 0xfffeff8f + 800b468: 40010000 .word 0x40010000 + 800b46c: 40010400 .word 0x40010400 + +0800b470 : * @param TIMx to select the TIM peripheral * @param OC_Config The ouput configuration structure * @retval None */ void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { - 800b46c: b480 push {r7} - 800b46e: b087 sub sp, #28 - 800b470: af00 add r7, sp, #0 - 800b472: 6078 str r0, [r7, #4] - 800b474: 6039 str r1, [r7, #0] + 800b470: b480 push {r7} + 800b472: b087 sub sp, #28 + 800b474: af00 add r7, sp, #0 + 800b476: 6078 str r0, [r7, #4] + 800b478: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; - 800b476: 687b ldr r3, [r7, #4] - 800b478: 6a1b ldr r3, [r3, #32] - 800b47a: f023 0210 bic.w r2, r3, #16 - 800b47e: 687b ldr r3, [r7, #4] - 800b480: 621a str r2, [r3, #32] + 800b47a: 687b ldr r3, [r7, #4] + 800b47c: 6a1b ldr r3, [r3, #32] + 800b47e: f023 0210 bic.w r2, r3, #16 + 800b482: 687b ldr r3, [r7, #4] + 800b484: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 800b482: 687b ldr r3, [r7, #4] - 800b484: 6a1b ldr r3, [r3, #32] - 800b486: 617b str r3, [r7, #20] + 800b486: 687b ldr r3, [r7, #4] + 800b488: 6a1b ldr r3, [r3, #32] + 800b48a: 617b str r3, [r7, #20] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 800b488: 687b ldr r3, [r7, #4] - 800b48a: 685b ldr r3, [r3, #4] - 800b48c: 613b str r3, [r7, #16] + 800b48c: 687b ldr r3, [r7, #4] + 800b48e: 685b ldr r3, [r3, #4] + 800b490: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; - 800b48e: 687b ldr r3, [r7, #4] - 800b490: 699b ldr r3, [r3, #24] - 800b492: 60fb str r3, [r7, #12] + 800b492: 687b ldr r3, [r7, #4] + 800b494: 699b ldr r3, [r3, #24] + 800b496: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; - 800b494: 68fa ldr r2, [r7, #12] - 800b496: 4b2e ldr r3, [pc, #184] ; (800b550 ) - 800b498: 4013 ands r3, r2 - 800b49a: 60fb str r3, [r7, #12] + 800b498: 68fa ldr r2, [r7, #12] + 800b49a: 4b2e ldr r3, [pc, #184] ; (800b554 ) + 800b49c: 4013 ands r3, r2 + 800b49e: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC2S; - 800b49c: 68fb ldr r3, [r7, #12] - 800b49e: f423 7340 bic.w r3, r3, #768 ; 0x300 - 800b4a2: 60fb str r3, [r7, #12] + 800b4a0: 68fb ldr r3, [r7, #12] + 800b4a2: f423 7340 bic.w r3, r3, #768 ; 0x300 + 800b4a6: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 800b4a4: 683b ldr r3, [r7, #0] - 800b4a6: 681b ldr r3, [r3, #0] - 800b4a8: 021b lsls r3, r3, #8 - 800b4aa: 68fa ldr r2, [r7, #12] - 800b4ac: 4313 orrs r3, r2 - 800b4ae: 60fb str r3, [r7, #12] + 800b4a8: 683b ldr r3, [r7, #0] + 800b4aa: 681b ldr r3, [r3, #0] + 800b4ac: 021b lsls r3, r3, #8 + 800b4ae: 68fa ldr r2, [r7, #12] + 800b4b0: 4313 orrs r3, r2 + 800b4b2: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; - 800b4b0: 697b ldr r3, [r7, #20] - 800b4b2: f023 0320 bic.w r3, r3, #32 - 800b4b6: 617b str r3, [r7, #20] + 800b4b4: 697b ldr r3, [r7, #20] + 800b4b6: f023 0320 bic.w r3, r3, #32 + 800b4ba: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); - 800b4b8: 683b ldr r3, [r7, #0] - 800b4ba: 689b ldr r3, [r3, #8] - 800b4bc: 011b lsls r3, r3, #4 - 800b4be: 697a ldr r2, [r7, #20] - 800b4c0: 4313 orrs r3, r2 - 800b4c2: 617b str r3, [r7, #20] + 800b4bc: 683b ldr r3, [r7, #0] + 800b4be: 689b ldr r3, [r3, #8] + 800b4c0: 011b lsls r3, r3, #4 + 800b4c2: 697a ldr r2, [r7, #20] + 800b4c4: 4313 orrs r3, r2 + 800b4c6: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) - 800b4c4: 687b ldr r3, [r7, #4] - 800b4c6: 4a23 ldr r2, [pc, #140] ; (800b554 ) - 800b4c8: 4293 cmp r3, r2 - 800b4ca: d003 beq.n 800b4d4 - 800b4cc: 687b ldr r3, [r7, #4] - 800b4ce: 4a22 ldr r2, [pc, #136] ; (800b558 ) - 800b4d0: 4293 cmp r3, r2 - 800b4d2: d10d bne.n 800b4f0 + 800b4c8: 687b ldr r3, [r7, #4] + 800b4ca: 4a23 ldr r2, [pc, #140] ; (800b558 ) + 800b4cc: 4293 cmp r3, r2 + 800b4ce: d003 beq.n 800b4d8 + 800b4d0: 687b ldr r3, [r7, #4] + 800b4d2: 4a22 ldr r2, [pc, #136] ; (800b55c ) + 800b4d4: 4293 cmp r3, r2 + 800b4d6: d10d bne.n 800b4f4 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; - 800b4d4: 697b ldr r3, [r7, #20] - 800b4d6: f023 0380 bic.w r3, r3, #128 ; 0x80 - 800b4da: 617b str r3, [r7, #20] + 800b4d8: 697b ldr r3, [r7, #20] + 800b4da: f023 0380 bic.w r3, r3, #128 ; 0x80 + 800b4de: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); - 800b4dc: 683b ldr r3, [r7, #0] - 800b4de: 68db ldr r3, [r3, #12] - 800b4e0: 011b lsls r3, r3, #4 - 800b4e2: 697a ldr r2, [r7, #20] - 800b4e4: 4313 orrs r3, r2 - 800b4e6: 617b str r3, [r7, #20] + 800b4e0: 683b ldr r3, [r7, #0] + 800b4e2: 68db ldr r3, [r3, #12] + 800b4e4: 011b lsls r3, r3, #4 + 800b4e6: 697a ldr r2, [r7, #20] + 800b4e8: 4313 orrs r3, r2 + 800b4ea: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; - 800b4e8: 697b ldr r3, [r7, #20] - 800b4ea: f023 0340 bic.w r3, r3, #64 ; 0x40 - 800b4ee: 617b str r3, [r7, #20] + 800b4ec: 697b ldr r3, [r7, #20] + 800b4ee: f023 0340 bic.w r3, r3, #64 ; 0x40 + 800b4f2: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 800b4f0: 687b ldr r3, [r7, #4] - 800b4f2: 4a18 ldr r2, [pc, #96] ; (800b554 ) - 800b4f4: 4293 cmp r3, r2 - 800b4f6: d003 beq.n 800b500 - 800b4f8: 687b ldr r3, [r7, #4] - 800b4fa: 4a17 ldr r2, [pc, #92] ; (800b558 ) - 800b4fc: 4293 cmp r3, r2 - 800b4fe: d113 bne.n 800b528 + 800b4f4: 687b ldr r3, [r7, #4] + 800b4f6: 4a18 ldr r2, [pc, #96] ; (800b558 ) + 800b4f8: 4293 cmp r3, r2 + 800b4fa: d003 beq.n 800b504 + 800b4fc: 687b ldr r3, [r7, #4] + 800b4fe: 4a17 ldr r2, [pc, #92] ; (800b55c ) + 800b500: 4293 cmp r3, r2 + 800b502: d113 bne.n 800b52c /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS2; - 800b500: 693b ldr r3, [r7, #16] - 800b502: f423 6380 bic.w r3, r3, #1024 ; 0x400 - 800b506: 613b str r3, [r7, #16] + 800b504: 693b ldr r3, [r7, #16] + 800b506: f423 6380 bic.w r3, r3, #1024 ; 0x400 + 800b50a: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS2N; - 800b508: 693b ldr r3, [r7, #16] - 800b50a: f423 6300 bic.w r3, r3, #2048 ; 0x800 - 800b50e: 613b str r3, [r7, #16] + 800b50c: 693b ldr r3, [r7, #16] + 800b50e: f423 6300 bic.w r3, r3, #2048 ; 0x800 + 800b512: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); - 800b510: 683b ldr r3, [r7, #0] - 800b512: 695b ldr r3, [r3, #20] - 800b514: 009b lsls r3, r3, #2 - 800b516: 693a ldr r2, [r7, #16] - 800b518: 4313 orrs r3, r2 - 800b51a: 613b str r3, [r7, #16] + 800b514: 683b ldr r3, [r7, #0] + 800b516: 695b ldr r3, [r3, #20] + 800b518: 009b lsls r3, r3, #2 + 800b51a: 693a ldr r2, [r7, #16] + 800b51c: 4313 orrs r3, r2 + 800b51e: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); - 800b51c: 683b ldr r3, [r7, #0] - 800b51e: 699b ldr r3, [r3, #24] - 800b520: 009b lsls r3, r3, #2 - 800b522: 693a ldr r2, [r7, #16] - 800b524: 4313 orrs r3, r2 - 800b526: 613b str r3, [r7, #16] + 800b520: 683b ldr r3, [r7, #0] + 800b522: 699b ldr r3, [r3, #24] + 800b524: 009b lsls r3, r3, #2 + 800b526: 693a ldr r2, [r7, #16] + 800b528: 4313 orrs r3, r2 + 800b52a: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800b528: 687b ldr r3, [r7, #4] - 800b52a: 693a ldr r2, [r7, #16] - 800b52c: 605a str r2, [r3, #4] + 800b52c: 687b ldr r3, [r7, #4] + 800b52e: 693a ldr r2, [r7, #16] + 800b530: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; - 800b52e: 687b ldr r3, [r7, #4] - 800b530: 68fa ldr r2, [r7, #12] - 800b532: 619a str r2, [r3, #24] + 800b532: 687b ldr r3, [r7, #4] + 800b534: 68fa ldr r2, [r7, #12] + 800b536: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; - 800b534: 683b ldr r3, [r7, #0] - 800b536: 685a ldr r2, [r3, #4] - 800b538: 687b ldr r3, [r7, #4] - 800b53a: 639a str r2, [r3, #56] ; 0x38 + 800b538: 683b ldr r3, [r7, #0] + 800b53a: 685a ldr r2, [r3, #4] + 800b53c: 687b ldr r3, [r7, #4] + 800b53e: 639a str r2, [r3, #56] ; 0x38 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800b53c: 687b ldr r3, [r7, #4] - 800b53e: 697a ldr r2, [r7, #20] - 800b540: 621a str r2, [r3, #32] -} - 800b542: bf00 nop - 800b544: 371c adds r7, #28 - 800b546: 46bd mov sp, r7 - 800b548: f85d 7b04 ldr.w r7, [sp], #4 - 800b54c: 4770 bx lr - 800b54e: bf00 nop - 800b550: feff8fff .word 0xfeff8fff - 800b554: 40010000 .word 0x40010000 - 800b558: 40010400 .word 0x40010400 - -0800b55c : + 800b540: 687b ldr r3, [r7, #4] + 800b542: 697a ldr r2, [r7, #20] + 800b544: 621a str r2, [r3, #32] +} + 800b546: bf00 nop + 800b548: 371c adds r7, #28 + 800b54a: 46bd mov sp, r7 + 800b54c: f85d 7b04 ldr.w r7, [sp], #4 + 800b550: 4770 bx lr + 800b552: bf00 nop + 800b554: feff8fff .word 0xfeff8fff + 800b558: 40010000 .word 0x40010000 + 800b55c: 40010400 .word 0x40010400 + +0800b560 : * @param TIMx to select the TIM peripheral * @param OC_Config The ouput configuration structure * @retval None */ static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { - 800b55c: b480 push {r7} - 800b55e: b087 sub sp, #28 - 800b560: af00 add r7, sp, #0 - 800b562: 6078 str r0, [r7, #4] - 800b564: 6039 str r1, [r7, #0] + 800b560: b480 push {r7} + 800b562: b087 sub sp, #28 + 800b564: af00 add r7, sp, #0 + 800b566: 6078 str r0, [r7, #4] + 800b568: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; - 800b566: 687b ldr r3, [r7, #4] - 800b568: 6a1b ldr r3, [r3, #32] - 800b56a: f423 7280 bic.w r2, r3, #256 ; 0x100 - 800b56e: 687b ldr r3, [r7, #4] - 800b570: 621a str r2, [r3, #32] + 800b56a: 687b ldr r3, [r7, #4] + 800b56c: 6a1b ldr r3, [r3, #32] + 800b56e: f423 7280 bic.w r2, r3, #256 ; 0x100 + 800b572: 687b ldr r3, [r7, #4] + 800b574: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 800b572: 687b ldr r3, [r7, #4] - 800b574: 6a1b ldr r3, [r3, #32] - 800b576: 617b str r3, [r7, #20] + 800b576: 687b ldr r3, [r7, #4] + 800b578: 6a1b ldr r3, [r3, #32] + 800b57a: 617b str r3, [r7, #20] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 800b578: 687b ldr r3, [r7, #4] - 800b57a: 685b ldr r3, [r3, #4] - 800b57c: 613b str r3, [r7, #16] + 800b57c: 687b ldr r3, [r7, #4] + 800b57e: 685b ldr r3, [r3, #4] + 800b580: 613b str r3, [r7, #16] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; - 800b57e: 687b ldr r3, [r7, #4] - 800b580: 69db ldr r3, [r3, #28] - 800b582: 60fb str r3, [r7, #12] + 800b582: 687b ldr r3, [r7, #4] + 800b584: 69db ldr r3, [r3, #28] + 800b586: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; - 800b584: 68fa ldr r2, [r7, #12] - 800b586: 4b2d ldr r3, [pc, #180] ; (800b63c ) - 800b588: 4013 ands r3, r2 - 800b58a: 60fb str r3, [r7, #12] + 800b588: 68fa ldr r2, [r7, #12] + 800b58a: 4b2d ldr r3, [pc, #180] ; (800b640 ) + 800b58c: 4013 ands r3, r2 + 800b58e: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC3S; - 800b58c: 68fb ldr r3, [r7, #12] - 800b58e: f023 0303 bic.w r3, r3, #3 - 800b592: 60fb str r3, [r7, #12] + 800b590: 68fb ldr r3, [r7, #12] + 800b592: f023 0303 bic.w r3, r3, #3 + 800b596: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 800b594: 683b ldr r3, [r7, #0] - 800b596: 681b ldr r3, [r3, #0] - 800b598: 68fa ldr r2, [r7, #12] - 800b59a: 4313 orrs r3, r2 - 800b59c: 60fb str r3, [r7, #12] + 800b598: 683b ldr r3, [r7, #0] + 800b59a: 681b ldr r3, [r3, #0] + 800b59c: 68fa ldr r2, [r7, #12] + 800b59e: 4313 orrs r3, r2 + 800b5a0: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; - 800b59e: 697b ldr r3, [r7, #20] - 800b5a0: f423 7300 bic.w r3, r3, #512 ; 0x200 - 800b5a4: 617b str r3, [r7, #20] + 800b5a2: 697b ldr r3, [r7, #20] + 800b5a4: f423 7300 bic.w r3, r3, #512 ; 0x200 + 800b5a8: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); - 800b5a6: 683b ldr r3, [r7, #0] - 800b5a8: 689b ldr r3, [r3, #8] - 800b5aa: 021b lsls r3, r3, #8 - 800b5ac: 697a ldr r2, [r7, #20] - 800b5ae: 4313 orrs r3, r2 - 800b5b0: 617b str r3, [r7, #20] + 800b5aa: 683b ldr r3, [r7, #0] + 800b5ac: 689b ldr r3, [r3, #8] + 800b5ae: 021b lsls r3, r3, #8 + 800b5b0: 697a ldr r2, [r7, #20] + 800b5b2: 4313 orrs r3, r2 + 800b5b4: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) - 800b5b2: 687b ldr r3, [r7, #4] - 800b5b4: 4a22 ldr r2, [pc, #136] ; (800b640 ) - 800b5b6: 4293 cmp r3, r2 - 800b5b8: d003 beq.n 800b5c2 - 800b5ba: 687b ldr r3, [r7, #4] - 800b5bc: 4a21 ldr r2, [pc, #132] ; (800b644 ) - 800b5be: 4293 cmp r3, r2 - 800b5c0: d10d bne.n 800b5de + 800b5b6: 687b ldr r3, [r7, #4] + 800b5b8: 4a22 ldr r2, [pc, #136] ; (800b644 ) + 800b5ba: 4293 cmp r3, r2 + 800b5bc: d003 beq.n 800b5c6 + 800b5be: 687b ldr r3, [r7, #4] + 800b5c0: 4a21 ldr r2, [pc, #132] ; (800b648 ) + 800b5c2: 4293 cmp r3, r2 + 800b5c4: d10d bne.n 800b5e2 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; - 800b5c2: 697b ldr r3, [r7, #20] - 800b5c4: f423 6300 bic.w r3, r3, #2048 ; 0x800 - 800b5c8: 617b str r3, [r7, #20] + 800b5c6: 697b ldr r3, [r7, #20] + 800b5c8: f423 6300 bic.w r3, r3, #2048 ; 0x800 + 800b5cc: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); - 800b5ca: 683b ldr r3, [r7, #0] - 800b5cc: 68db ldr r3, [r3, #12] - 800b5ce: 021b lsls r3, r3, #8 - 800b5d0: 697a ldr r2, [r7, #20] - 800b5d2: 4313 orrs r3, r2 - 800b5d4: 617b str r3, [r7, #20] + 800b5ce: 683b ldr r3, [r7, #0] + 800b5d0: 68db ldr r3, [r3, #12] + 800b5d2: 021b lsls r3, r3, #8 + 800b5d4: 697a ldr r2, [r7, #20] + 800b5d6: 4313 orrs r3, r2 + 800b5d8: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; - 800b5d6: 697b ldr r3, [r7, #20] - 800b5d8: f423 6380 bic.w r3, r3, #1024 ; 0x400 - 800b5dc: 617b str r3, [r7, #20] + 800b5da: 697b ldr r3, [r7, #20] + 800b5dc: f423 6380 bic.w r3, r3, #1024 ; 0x400 + 800b5e0: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 800b5de: 687b ldr r3, [r7, #4] - 800b5e0: 4a17 ldr r2, [pc, #92] ; (800b640 ) - 800b5e2: 4293 cmp r3, r2 - 800b5e4: d003 beq.n 800b5ee - 800b5e6: 687b ldr r3, [r7, #4] - 800b5e8: 4a16 ldr r2, [pc, #88] ; (800b644 ) - 800b5ea: 4293 cmp r3, r2 - 800b5ec: d113 bne.n 800b616 + 800b5e2: 687b ldr r3, [r7, #4] + 800b5e4: 4a17 ldr r2, [pc, #92] ; (800b644 ) + 800b5e6: 4293 cmp r3, r2 + 800b5e8: d003 beq.n 800b5f2 + 800b5ea: 687b ldr r3, [r7, #4] + 800b5ec: 4a16 ldr r2, [pc, #88] ; (800b648 ) + 800b5ee: 4293 cmp r3, r2 + 800b5f0: d113 bne.n 800b61a /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS3; - 800b5ee: 693b ldr r3, [r7, #16] - 800b5f0: f423 5380 bic.w r3, r3, #4096 ; 0x1000 - 800b5f4: 613b str r3, [r7, #16] + 800b5f2: 693b ldr r3, [r7, #16] + 800b5f4: f423 5380 bic.w r3, r3, #4096 ; 0x1000 + 800b5f8: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS3N; - 800b5f6: 693b ldr r3, [r7, #16] - 800b5f8: f423 5300 bic.w r3, r3, #8192 ; 0x2000 - 800b5fc: 613b str r3, [r7, #16] + 800b5fa: 693b ldr r3, [r7, #16] + 800b5fc: f423 5300 bic.w r3, r3, #8192 ; 0x2000 + 800b600: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); - 800b5fe: 683b ldr r3, [r7, #0] - 800b600: 695b ldr r3, [r3, #20] - 800b602: 011b lsls r3, r3, #4 - 800b604: 693a ldr r2, [r7, #16] - 800b606: 4313 orrs r3, r2 - 800b608: 613b str r3, [r7, #16] + 800b602: 683b ldr r3, [r7, #0] + 800b604: 695b ldr r3, [r3, #20] + 800b606: 011b lsls r3, r3, #4 + 800b608: 693a ldr r2, [r7, #16] + 800b60a: 4313 orrs r3, r2 + 800b60c: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); - 800b60a: 683b ldr r3, [r7, #0] - 800b60c: 699b ldr r3, [r3, #24] - 800b60e: 011b lsls r3, r3, #4 - 800b610: 693a ldr r2, [r7, #16] - 800b612: 4313 orrs r3, r2 - 800b614: 613b str r3, [r7, #16] + 800b60e: 683b ldr r3, [r7, #0] + 800b610: 699b ldr r3, [r3, #24] + 800b612: 011b lsls r3, r3, #4 + 800b614: 693a ldr r2, [r7, #16] + 800b616: 4313 orrs r3, r2 + 800b618: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800b616: 687b ldr r3, [r7, #4] - 800b618: 693a ldr r2, [r7, #16] - 800b61a: 605a str r2, [r3, #4] + 800b61a: 687b ldr r3, [r7, #4] + 800b61c: 693a ldr r2, [r7, #16] + 800b61e: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; - 800b61c: 687b ldr r3, [r7, #4] - 800b61e: 68fa ldr r2, [r7, #12] - 800b620: 61da str r2, [r3, #28] + 800b620: 687b ldr r3, [r7, #4] + 800b622: 68fa ldr r2, [r7, #12] + 800b624: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; - 800b622: 683b ldr r3, [r7, #0] - 800b624: 685a ldr r2, [r3, #4] - 800b626: 687b ldr r3, [r7, #4] - 800b628: 63da str r2, [r3, #60] ; 0x3c + 800b626: 683b ldr r3, [r7, #0] + 800b628: 685a ldr r2, [r3, #4] + 800b62a: 687b ldr r3, [r7, #4] + 800b62c: 63da str r2, [r3, #60] ; 0x3c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800b62a: 687b ldr r3, [r7, #4] - 800b62c: 697a ldr r2, [r7, #20] - 800b62e: 621a str r2, [r3, #32] -} - 800b630: bf00 nop - 800b632: 371c adds r7, #28 - 800b634: 46bd mov sp, r7 - 800b636: f85d 7b04 ldr.w r7, [sp], #4 - 800b63a: 4770 bx lr - 800b63c: fffeff8f .word 0xfffeff8f - 800b640: 40010000 .word 0x40010000 - 800b644: 40010400 .word 0x40010400 - -0800b648 : + 800b62e: 687b ldr r3, [r7, #4] + 800b630: 697a ldr r2, [r7, #20] + 800b632: 621a str r2, [r3, #32] +} + 800b634: bf00 nop + 800b636: 371c adds r7, #28 + 800b638: 46bd mov sp, r7 + 800b63a: f85d 7b04 ldr.w r7, [sp], #4 + 800b63e: 4770 bx lr + 800b640: fffeff8f .word 0xfffeff8f + 800b644: 40010000 .word 0x40010000 + 800b648: 40010400 .word 0x40010400 + +0800b64c : * @param TIMx to select the TIM peripheral * @param OC_Config The ouput configuration structure * @retval None */ static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { - 800b648: b480 push {r7} - 800b64a: b087 sub sp, #28 - 800b64c: af00 add r7, sp, #0 - 800b64e: 6078 str r0, [r7, #4] - 800b650: 6039 str r1, [r7, #0] + 800b64c: b480 push {r7} + 800b64e: b087 sub sp, #28 + 800b650: af00 add r7, sp, #0 + 800b652: 6078 str r0, [r7, #4] + 800b654: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; - 800b652: 687b ldr r3, [r7, #4] - 800b654: 6a1b ldr r3, [r3, #32] - 800b656: f423 5280 bic.w r2, r3, #4096 ; 0x1000 - 800b65a: 687b ldr r3, [r7, #4] - 800b65c: 621a str r2, [r3, #32] + 800b656: 687b ldr r3, [r7, #4] + 800b658: 6a1b ldr r3, [r3, #32] + 800b65a: f423 5280 bic.w r2, r3, #4096 ; 0x1000 + 800b65e: 687b ldr r3, [r7, #4] + 800b660: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 800b65e: 687b ldr r3, [r7, #4] - 800b660: 6a1b ldr r3, [r3, #32] - 800b662: 613b str r3, [r7, #16] + 800b662: 687b ldr r3, [r7, #4] + 800b664: 6a1b ldr r3, [r3, #32] + 800b666: 613b str r3, [r7, #16] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 800b664: 687b ldr r3, [r7, #4] - 800b666: 685b ldr r3, [r3, #4] - 800b668: 617b str r3, [r7, #20] + 800b668: 687b ldr r3, [r7, #4] + 800b66a: 685b ldr r3, [r3, #4] + 800b66c: 617b str r3, [r7, #20] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; - 800b66a: 687b ldr r3, [r7, #4] - 800b66c: 69db ldr r3, [r3, #28] - 800b66e: 60fb str r3, [r7, #12] + 800b66e: 687b ldr r3, [r7, #4] + 800b670: 69db ldr r3, [r3, #28] + 800b672: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; - 800b670: 68fa ldr r2, [r7, #12] - 800b672: 4b1e ldr r3, [pc, #120] ; (800b6ec ) - 800b674: 4013 ands r3, r2 - 800b676: 60fb str r3, [r7, #12] + 800b674: 68fa ldr r2, [r7, #12] + 800b676: 4b1e ldr r3, [pc, #120] ; (800b6f0 ) + 800b678: 4013 ands r3, r2 + 800b67a: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC4S; - 800b678: 68fb ldr r3, [r7, #12] - 800b67a: f423 7340 bic.w r3, r3, #768 ; 0x300 - 800b67e: 60fb str r3, [r7, #12] + 800b67c: 68fb ldr r3, [r7, #12] + 800b67e: f423 7340 bic.w r3, r3, #768 ; 0x300 + 800b682: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 800b680: 683b ldr r3, [r7, #0] - 800b682: 681b ldr r3, [r3, #0] - 800b684: 021b lsls r3, r3, #8 - 800b686: 68fa ldr r2, [r7, #12] - 800b688: 4313 orrs r3, r2 - 800b68a: 60fb str r3, [r7, #12] + 800b684: 683b ldr r3, [r7, #0] + 800b686: 681b ldr r3, [r3, #0] + 800b688: 021b lsls r3, r3, #8 + 800b68a: 68fa ldr r2, [r7, #12] + 800b68c: 4313 orrs r3, r2 + 800b68e: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; - 800b68c: 693b ldr r3, [r7, #16] - 800b68e: f423 5300 bic.w r3, r3, #8192 ; 0x2000 - 800b692: 613b str r3, [r7, #16] + 800b690: 693b ldr r3, [r7, #16] + 800b692: f423 5300 bic.w r3, r3, #8192 ; 0x2000 + 800b696: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); - 800b694: 683b ldr r3, [r7, #0] - 800b696: 689b ldr r3, [r3, #8] - 800b698: 031b lsls r3, r3, #12 - 800b69a: 693a ldr r2, [r7, #16] - 800b69c: 4313 orrs r3, r2 - 800b69e: 613b str r3, [r7, #16] + 800b698: 683b ldr r3, [r7, #0] + 800b69a: 689b ldr r3, [r3, #8] + 800b69c: 031b lsls r3, r3, #12 + 800b69e: 693a ldr r2, [r7, #16] + 800b6a0: 4313 orrs r3, r2 + 800b6a2: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) - 800b6a0: 687b ldr r3, [r7, #4] - 800b6a2: 4a13 ldr r2, [pc, #76] ; (800b6f0 ) - 800b6a4: 4293 cmp r3, r2 - 800b6a6: d003 beq.n 800b6b0 - 800b6a8: 687b ldr r3, [r7, #4] - 800b6aa: 4a12 ldr r2, [pc, #72] ; (800b6f4 ) - 800b6ac: 4293 cmp r3, r2 - 800b6ae: d109 bne.n 800b6c4 + 800b6a4: 687b ldr r3, [r7, #4] + 800b6a6: 4a13 ldr r2, [pc, #76] ; (800b6f4 ) + 800b6a8: 4293 cmp r3, r2 + 800b6aa: d003 beq.n 800b6b4 + 800b6ac: 687b ldr r3, [r7, #4] + 800b6ae: 4a12 ldr r2, [pc, #72] ; (800b6f8 ) + 800b6b0: 4293 cmp r3, r2 + 800b6b2: d109 bne.n 800b6c8 { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; - 800b6b0: 697b ldr r3, [r7, #20] - 800b6b2: f423 4380 bic.w r3, r3, #16384 ; 0x4000 - 800b6b6: 617b str r3, [r7, #20] + 800b6b4: 697b ldr r3, [r7, #20] + 800b6b6: f423 4380 bic.w r3, r3, #16384 ; 0x4000 + 800b6ba: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); - 800b6b8: 683b ldr r3, [r7, #0] - 800b6ba: 695b ldr r3, [r3, #20] - 800b6bc: 019b lsls r3, r3, #6 - 800b6be: 697a ldr r2, [r7, #20] - 800b6c0: 4313 orrs r3, r2 - 800b6c2: 617b str r3, [r7, #20] + 800b6bc: 683b ldr r3, [r7, #0] + 800b6be: 695b ldr r3, [r3, #20] + 800b6c0: 019b lsls r3, r3, #6 + 800b6c2: 697a ldr r2, [r7, #20] + 800b6c4: 4313 orrs r3, r2 + 800b6c6: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800b6c4: 687b ldr r3, [r7, #4] - 800b6c6: 697a ldr r2, [r7, #20] - 800b6c8: 605a str r2, [r3, #4] + 800b6c8: 687b ldr r3, [r7, #4] + 800b6ca: 697a ldr r2, [r7, #20] + 800b6cc: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; - 800b6ca: 687b ldr r3, [r7, #4] - 800b6cc: 68fa ldr r2, [r7, #12] - 800b6ce: 61da str r2, [r3, #28] + 800b6ce: 687b ldr r3, [r7, #4] + 800b6d0: 68fa ldr r2, [r7, #12] + 800b6d2: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; - 800b6d0: 683b ldr r3, [r7, #0] - 800b6d2: 685a ldr r2, [r3, #4] - 800b6d4: 687b ldr r3, [r7, #4] - 800b6d6: 641a str r2, [r3, #64] ; 0x40 + 800b6d4: 683b ldr r3, [r7, #0] + 800b6d6: 685a ldr r2, [r3, #4] + 800b6d8: 687b ldr r3, [r7, #4] + 800b6da: 641a str r2, [r3, #64] ; 0x40 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800b6d8: 687b ldr r3, [r7, #4] - 800b6da: 693a ldr r2, [r7, #16] - 800b6dc: 621a str r2, [r3, #32] -} - 800b6de: bf00 nop - 800b6e0: 371c adds r7, #28 - 800b6e2: 46bd mov sp, r7 - 800b6e4: f85d 7b04 ldr.w r7, [sp], #4 - 800b6e8: 4770 bx lr - 800b6ea: bf00 nop - 800b6ec: feff8fff .word 0xfeff8fff - 800b6f0: 40010000 .word 0x40010000 - 800b6f4: 40010400 .word 0x40010400 - -0800b6f8 : + 800b6dc: 687b ldr r3, [r7, #4] + 800b6de: 693a ldr r2, [r7, #16] + 800b6e0: 621a str r2, [r3, #32] +} + 800b6e2: bf00 nop + 800b6e4: 371c adds r7, #28 + 800b6e6: 46bd mov sp, r7 + 800b6e8: f85d 7b04 ldr.w r7, [sp], #4 + 800b6ec: 4770 bx lr + 800b6ee: bf00 nop + 800b6f0: feff8fff .word 0xfeff8fff + 800b6f4: 40010000 .word 0x40010000 + 800b6f8: 40010400 .word 0x40010400 + +0800b6fc : * @param OC_Config The ouput configuration structure * @retval None */ static void TIM_OC5_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { - 800b6f8: b480 push {r7} - 800b6fa: b087 sub sp, #28 - 800b6fc: af00 add r7, sp, #0 - 800b6fe: 6078 str r0, [r7, #4] - 800b700: 6039 str r1, [r7, #0] + 800b6fc: b480 push {r7} + 800b6fe: b087 sub sp, #28 + 800b700: af00 add r7, sp, #0 + 800b702: 6078 str r0, [r7, #4] + 800b704: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the output: Reset the CCxE Bit */ TIMx->CCER &= ~TIM_CCER_CC5E; - 800b702: 687b ldr r3, [r7, #4] - 800b704: 6a1b ldr r3, [r3, #32] - 800b706: f423 3280 bic.w r2, r3, #65536 ; 0x10000 - 800b70a: 687b ldr r3, [r7, #4] - 800b70c: 621a str r2, [r3, #32] + 800b706: 687b ldr r3, [r7, #4] + 800b708: 6a1b ldr r3, [r3, #32] + 800b70a: f423 3280 bic.w r2, r3, #65536 ; 0x10000 + 800b70e: 687b ldr r3, [r7, #4] + 800b710: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 800b70e: 687b ldr r3, [r7, #4] - 800b710: 6a1b ldr r3, [r3, #32] - 800b712: 613b str r3, [r7, #16] + 800b712: 687b ldr r3, [r7, #4] + 800b714: 6a1b ldr r3, [r3, #32] + 800b716: 613b str r3, [r7, #16] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 800b714: 687b ldr r3, [r7, #4] - 800b716: 685b ldr r3, [r3, #4] - 800b718: 617b str r3, [r7, #20] + 800b718: 687b ldr r3, [r7, #4] + 800b71a: 685b ldr r3, [r3, #4] + 800b71c: 617b str r3, [r7, #20] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR3; - 800b71a: 687b ldr r3, [r7, #4] - 800b71c: 6d5b ldr r3, [r3, #84] ; 0x54 - 800b71e: 60fb str r3, [r7, #12] + 800b71e: 687b ldr r3, [r7, #4] + 800b720: 6d5b ldr r3, [r3, #84] ; 0x54 + 800b722: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~(TIM_CCMR3_OC5M); - 800b720: 68fa ldr r2, [r7, #12] - 800b722: 4b1b ldr r3, [pc, #108] ; (800b790 ) - 800b724: 4013 ands r3, r2 - 800b726: 60fb str r3, [r7, #12] + 800b724: 68fa ldr r2, [r7, #12] + 800b726: 4b1b ldr r3, [pc, #108] ; (800b794 ) + 800b728: 4013 ands r3, r2 + 800b72a: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 800b728: 683b ldr r3, [r7, #0] - 800b72a: 681b ldr r3, [r3, #0] - 800b72c: 68fa ldr r2, [r7, #12] - 800b72e: 4313 orrs r3, r2 - 800b730: 60fb str r3, [r7, #12] + 800b72c: 683b ldr r3, [r7, #0] + 800b72e: 681b ldr r3, [r3, #0] + 800b730: 68fa ldr r2, [r7, #12] + 800b732: 4313 orrs r3, r2 + 800b734: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC5P; - 800b732: 693b ldr r3, [r7, #16] - 800b734: f423 3300 bic.w r3, r3, #131072 ; 0x20000 - 800b738: 613b str r3, [r7, #16] + 800b736: 693b ldr r3, [r7, #16] + 800b738: f423 3300 bic.w r3, r3, #131072 ; 0x20000 + 800b73c: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 16U); - 800b73a: 683b ldr r3, [r7, #0] - 800b73c: 689b ldr r3, [r3, #8] - 800b73e: 041b lsls r3, r3, #16 - 800b740: 693a ldr r2, [r7, #16] - 800b742: 4313 orrs r3, r2 - 800b744: 613b str r3, [r7, #16] + 800b73e: 683b ldr r3, [r7, #0] + 800b740: 689b ldr r3, [r3, #8] + 800b742: 041b lsls r3, r3, #16 + 800b744: 693a ldr r2, [r7, #16] + 800b746: 4313 orrs r3, r2 + 800b748: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) - 800b746: 687b ldr r3, [r7, #4] - 800b748: 4a12 ldr r2, [pc, #72] ; (800b794 ) - 800b74a: 4293 cmp r3, r2 - 800b74c: d003 beq.n 800b756 - 800b74e: 687b ldr r3, [r7, #4] - 800b750: 4a11 ldr r2, [pc, #68] ; (800b798 ) - 800b752: 4293 cmp r3, r2 - 800b754: d109 bne.n 800b76a + 800b74a: 687b ldr r3, [r7, #4] + 800b74c: 4a12 ldr r2, [pc, #72] ; (800b798 ) + 800b74e: 4293 cmp r3, r2 + 800b750: d003 beq.n 800b75a + 800b752: 687b ldr r3, [r7, #4] + 800b754: 4a11 ldr r2, [pc, #68] ; (800b79c ) + 800b756: 4293 cmp r3, r2 + 800b758: d109 bne.n 800b76e { /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS5; - 800b756: 697b ldr r3, [r7, #20] - 800b758: f423 3380 bic.w r3, r3, #65536 ; 0x10000 - 800b75c: 617b str r3, [r7, #20] + 800b75a: 697b ldr r3, [r7, #20] + 800b75c: f423 3380 bic.w r3, r3, #65536 ; 0x10000 + 800b760: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 8U); - 800b75e: 683b ldr r3, [r7, #0] - 800b760: 695b ldr r3, [r3, #20] - 800b762: 021b lsls r3, r3, #8 - 800b764: 697a ldr r2, [r7, #20] - 800b766: 4313 orrs r3, r2 - 800b768: 617b str r3, [r7, #20] + 800b762: 683b ldr r3, [r7, #0] + 800b764: 695b ldr r3, [r3, #20] + 800b766: 021b lsls r3, r3, #8 + 800b768: 697a ldr r2, [r7, #20] + 800b76a: 4313 orrs r3, r2 + 800b76c: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800b76a: 687b ldr r3, [r7, #4] - 800b76c: 697a ldr r2, [r7, #20] - 800b76e: 605a str r2, [r3, #4] + 800b76e: 687b ldr r3, [r7, #4] + 800b770: 697a ldr r2, [r7, #20] + 800b772: 605a str r2, [r3, #4] /* Write to TIMx CCMR3 */ TIMx->CCMR3 = tmpccmrx; - 800b770: 687b ldr r3, [r7, #4] - 800b772: 68fa ldr r2, [r7, #12] - 800b774: 655a str r2, [r3, #84] ; 0x54 + 800b774: 687b ldr r3, [r7, #4] + 800b776: 68fa ldr r2, [r7, #12] + 800b778: 655a str r2, [r3, #84] ; 0x54 /* Set the Capture Compare Register value */ TIMx->CCR5 = OC_Config->Pulse; - 800b776: 683b ldr r3, [r7, #0] - 800b778: 685a ldr r2, [r3, #4] - 800b77a: 687b ldr r3, [r7, #4] - 800b77c: 659a str r2, [r3, #88] ; 0x58 + 800b77a: 683b ldr r3, [r7, #0] + 800b77c: 685a ldr r2, [r3, #4] + 800b77e: 687b ldr r3, [r7, #4] + 800b780: 659a str r2, [r3, #88] ; 0x58 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800b77e: 687b ldr r3, [r7, #4] - 800b780: 693a ldr r2, [r7, #16] - 800b782: 621a str r2, [r3, #32] -} - 800b784: bf00 nop - 800b786: 371c adds r7, #28 - 800b788: 46bd mov sp, r7 - 800b78a: f85d 7b04 ldr.w r7, [sp], #4 - 800b78e: 4770 bx lr - 800b790: fffeff8f .word 0xfffeff8f - 800b794: 40010000 .word 0x40010000 - 800b798: 40010400 .word 0x40010400 - -0800b79c : + 800b782: 687b ldr r3, [r7, #4] + 800b784: 693a ldr r2, [r7, #16] + 800b786: 621a str r2, [r3, #32] +} + 800b788: bf00 nop + 800b78a: 371c adds r7, #28 + 800b78c: 46bd mov sp, r7 + 800b78e: f85d 7b04 ldr.w r7, [sp], #4 + 800b792: 4770 bx lr + 800b794: fffeff8f .word 0xfffeff8f + 800b798: 40010000 .word 0x40010000 + 800b79c: 40010400 .word 0x40010400 + +0800b7a0 : * @param OC_Config The ouput configuration structure * @retval None */ static void TIM_OC6_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { - 800b79c: b480 push {r7} - 800b79e: b087 sub sp, #28 - 800b7a0: af00 add r7, sp, #0 - 800b7a2: 6078 str r0, [r7, #4] - 800b7a4: 6039 str r1, [r7, #0] + 800b7a0: b480 push {r7} + 800b7a2: b087 sub sp, #28 + 800b7a4: af00 add r7, sp, #0 + 800b7a6: 6078 str r0, [r7, #4] + 800b7a8: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the output: Reset the CCxE Bit */ TIMx->CCER &= ~TIM_CCER_CC6E; - 800b7a6: 687b ldr r3, [r7, #4] - 800b7a8: 6a1b ldr r3, [r3, #32] - 800b7aa: f423 1280 bic.w r2, r3, #1048576 ; 0x100000 - 800b7ae: 687b ldr r3, [r7, #4] - 800b7b0: 621a str r2, [r3, #32] + 800b7aa: 687b ldr r3, [r7, #4] + 800b7ac: 6a1b ldr r3, [r3, #32] + 800b7ae: f423 1280 bic.w r2, r3, #1048576 ; 0x100000 + 800b7b2: 687b ldr r3, [r7, #4] + 800b7b4: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 800b7b2: 687b ldr r3, [r7, #4] - 800b7b4: 6a1b ldr r3, [r3, #32] - 800b7b6: 613b str r3, [r7, #16] + 800b7b6: 687b ldr r3, [r7, #4] + 800b7b8: 6a1b ldr r3, [r3, #32] + 800b7ba: 613b str r3, [r7, #16] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 800b7b8: 687b ldr r3, [r7, #4] - 800b7ba: 685b ldr r3, [r3, #4] - 800b7bc: 617b str r3, [r7, #20] + 800b7bc: 687b ldr r3, [r7, #4] + 800b7be: 685b ldr r3, [r3, #4] + 800b7c0: 617b str r3, [r7, #20] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR3; - 800b7be: 687b ldr r3, [r7, #4] - 800b7c0: 6d5b ldr r3, [r3, #84] ; 0x54 - 800b7c2: 60fb str r3, [r7, #12] + 800b7c2: 687b ldr r3, [r7, #4] + 800b7c4: 6d5b ldr r3, [r3, #84] ; 0x54 + 800b7c6: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~(TIM_CCMR3_OC6M); - 800b7c4: 68fa ldr r2, [r7, #12] - 800b7c6: 4b1c ldr r3, [pc, #112] ; (800b838 ) - 800b7c8: 4013 ands r3, r2 - 800b7ca: 60fb str r3, [r7, #12] + 800b7c8: 68fa ldr r2, [r7, #12] + 800b7ca: 4b1c ldr r3, [pc, #112] ; (800b83c ) + 800b7cc: 4013 ands r3, r2 + 800b7ce: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 800b7cc: 683b ldr r3, [r7, #0] - 800b7ce: 681b ldr r3, [r3, #0] - 800b7d0: 021b lsls r3, r3, #8 - 800b7d2: 68fa ldr r2, [r7, #12] - 800b7d4: 4313 orrs r3, r2 - 800b7d6: 60fb str r3, [r7, #12] + 800b7d0: 683b ldr r3, [r7, #0] + 800b7d2: 681b ldr r3, [r3, #0] + 800b7d4: 021b lsls r3, r3, #8 + 800b7d6: 68fa ldr r2, [r7, #12] + 800b7d8: 4313 orrs r3, r2 + 800b7da: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= (uint32_t)~TIM_CCER_CC6P; - 800b7d8: 693b ldr r3, [r7, #16] - 800b7da: f423 1300 bic.w r3, r3, #2097152 ; 0x200000 - 800b7de: 613b str r3, [r7, #16] + 800b7dc: 693b ldr r3, [r7, #16] + 800b7de: f423 1300 bic.w r3, r3, #2097152 ; 0x200000 + 800b7e2: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 20U); - 800b7e0: 683b ldr r3, [r7, #0] - 800b7e2: 689b ldr r3, [r3, #8] - 800b7e4: 051b lsls r3, r3, #20 - 800b7e6: 693a ldr r2, [r7, #16] - 800b7e8: 4313 orrs r3, r2 - 800b7ea: 613b str r3, [r7, #16] + 800b7e4: 683b ldr r3, [r7, #0] + 800b7e6: 689b ldr r3, [r3, #8] + 800b7e8: 051b lsls r3, r3, #20 + 800b7ea: 693a ldr r2, [r7, #16] + 800b7ec: 4313 orrs r3, r2 + 800b7ee: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) - 800b7ec: 687b ldr r3, [r7, #4] - 800b7ee: 4a13 ldr r2, [pc, #76] ; (800b83c ) - 800b7f0: 4293 cmp r3, r2 - 800b7f2: d003 beq.n 800b7fc - 800b7f4: 687b ldr r3, [r7, #4] - 800b7f6: 4a12 ldr r2, [pc, #72] ; (800b840 ) - 800b7f8: 4293 cmp r3, r2 - 800b7fa: d109 bne.n 800b810 + 800b7f0: 687b ldr r3, [r7, #4] + 800b7f2: 4a13 ldr r2, [pc, #76] ; (800b840 ) + 800b7f4: 4293 cmp r3, r2 + 800b7f6: d003 beq.n 800b800 + 800b7f8: 687b ldr r3, [r7, #4] + 800b7fa: 4a12 ldr r2, [pc, #72] ; (800b844 ) + 800b7fc: 4293 cmp r3, r2 + 800b7fe: d109 bne.n 800b814 { /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS6; - 800b7fc: 697b ldr r3, [r7, #20] - 800b7fe: f423 2380 bic.w r3, r3, #262144 ; 0x40000 - 800b802: 617b str r3, [r7, #20] + 800b800: 697b ldr r3, [r7, #20] + 800b802: f423 2380 bic.w r3, r3, #262144 ; 0x40000 + 800b806: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 10U); - 800b804: 683b ldr r3, [r7, #0] - 800b806: 695b ldr r3, [r3, #20] - 800b808: 029b lsls r3, r3, #10 - 800b80a: 697a ldr r2, [r7, #20] - 800b80c: 4313 orrs r3, r2 - 800b80e: 617b str r3, [r7, #20] + 800b808: 683b ldr r3, [r7, #0] + 800b80a: 695b ldr r3, [r3, #20] + 800b80c: 029b lsls r3, r3, #10 + 800b80e: 697a ldr r2, [r7, #20] + 800b810: 4313 orrs r3, r2 + 800b812: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800b810: 687b ldr r3, [r7, #4] - 800b812: 697a ldr r2, [r7, #20] - 800b814: 605a str r2, [r3, #4] + 800b814: 687b ldr r3, [r7, #4] + 800b816: 697a ldr r2, [r7, #20] + 800b818: 605a str r2, [r3, #4] /* Write to TIMx CCMR3 */ TIMx->CCMR3 = tmpccmrx; - 800b816: 687b ldr r3, [r7, #4] - 800b818: 68fa ldr r2, [r7, #12] - 800b81a: 655a str r2, [r3, #84] ; 0x54 + 800b81a: 687b ldr r3, [r7, #4] + 800b81c: 68fa ldr r2, [r7, #12] + 800b81e: 655a str r2, [r3, #84] ; 0x54 /* Set the Capture Compare Register value */ TIMx->CCR6 = OC_Config->Pulse; - 800b81c: 683b ldr r3, [r7, #0] - 800b81e: 685a ldr r2, [r3, #4] - 800b820: 687b ldr r3, [r7, #4] - 800b822: 65da str r2, [r3, #92] ; 0x5c + 800b820: 683b ldr r3, [r7, #0] + 800b822: 685a ldr r2, [r3, #4] + 800b824: 687b ldr r3, [r7, #4] + 800b826: 65da str r2, [r3, #92] ; 0x5c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800b824: 687b ldr r3, [r7, #4] - 800b826: 693a ldr r2, [r7, #16] - 800b828: 621a str r2, [r3, #32] -} - 800b82a: bf00 nop - 800b82c: 371c adds r7, #28 - 800b82e: 46bd mov sp, r7 - 800b830: f85d 7b04 ldr.w r7, [sp], #4 - 800b834: 4770 bx lr - 800b836: bf00 nop - 800b838: feff8fff .word 0xfeff8fff - 800b83c: 40010000 .word 0x40010000 - 800b840: 40010400 .word 0x40010400 - -0800b844 : + 800b828: 687b ldr r3, [r7, #4] + 800b82a: 693a ldr r2, [r7, #16] + 800b82c: 621a str r2, [r3, #32] +} + 800b82e: bf00 nop + 800b830: 371c adds r7, #28 + 800b832: 46bd mov sp, r7 + 800b834: f85d 7b04 ldr.w r7, [sp], #4 + 800b838: 4770 bx lr + 800b83a: bf00 nop + 800b83c: feff8fff .word 0xfeff8fff + 800b840: 40010000 .word 0x40010000 + 800b844: 40010400 .word 0x40010400 + +0800b848 : * @param sSlaveConfig Slave timer configuration * @retval None */ static HAL_StatusTypeDef TIM_SlaveTimer_SetConfig(TIM_HandleTypeDef *htim, TIM_SlaveConfigTypeDef *sSlaveConfig) { - 800b844: b580 push {r7, lr} - 800b846: b086 sub sp, #24 - 800b848: af00 add r7, sp, #0 - 800b84a: 6078 str r0, [r7, #4] - 800b84c: 6039 str r1, [r7, #0] + 800b848: b580 push {r7, lr} + 800b84a: b086 sub sp, #24 + 800b84c: af00 add r7, sp, #0 + 800b84e: 6078 str r0, [r7, #4] + 800b850: 6039 str r1, [r7, #0] uint32_t tmpsmcr; uint32_t tmpccmr1; uint32_t tmpccer; /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 800b84e: 687b ldr r3, [r7, #4] - 800b850: 681b ldr r3, [r3, #0] - 800b852: 689b ldr r3, [r3, #8] - 800b854: 617b str r3, [r7, #20] + 800b852: 687b ldr r3, [r7, #4] + 800b854: 681b ldr r3, [r3, #0] + 800b856: 689b ldr r3, [r3, #8] + 800b858: 617b str r3, [r7, #20] /* Reset the Trigger Selection Bits */ tmpsmcr &= ~TIM_SMCR_TS; - 800b856: 697b ldr r3, [r7, #20] - 800b858: f023 0370 bic.w r3, r3, #112 ; 0x70 - 800b85c: 617b str r3, [r7, #20] + 800b85a: 697b ldr r3, [r7, #20] + 800b85c: f023 0370 bic.w r3, r3, #112 ; 0x70 + 800b860: 617b str r3, [r7, #20] /* Set the Input Trigger source */ tmpsmcr |= sSlaveConfig->InputTrigger; - 800b85e: 683b ldr r3, [r7, #0] - 800b860: 685b ldr r3, [r3, #4] - 800b862: 697a ldr r2, [r7, #20] - 800b864: 4313 orrs r3, r2 - 800b866: 617b str r3, [r7, #20] + 800b862: 683b ldr r3, [r7, #0] + 800b864: 685b ldr r3, [r3, #4] + 800b866: 697a ldr r2, [r7, #20] + 800b868: 4313 orrs r3, r2 + 800b86a: 617b str r3, [r7, #20] /* Reset the slave mode Bits */ tmpsmcr &= ~TIM_SMCR_SMS; - 800b868: 697a ldr r2, [r7, #20] - 800b86a: 4b39 ldr r3, [pc, #228] ; (800b950 ) - 800b86c: 4013 ands r3, r2 - 800b86e: 617b str r3, [r7, #20] + 800b86c: 697a ldr r2, [r7, #20] + 800b86e: 4b39 ldr r3, [pc, #228] ; (800b954 ) + 800b870: 4013 ands r3, r2 + 800b872: 617b str r3, [r7, #20] /* Set the slave mode */ tmpsmcr |= sSlaveConfig->SlaveMode; - 800b870: 683b ldr r3, [r7, #0] - 800b872: 681b ldr r3, [r3, #0] - 800b874: 697a ldr r2, [r7, #20] - 800b876: 4313 orrs r3, r2 - 800b878: 617b str r3, [r7, #20] + 800b874: 683b ldr r3, [r7, #0] + 800b876: 681b ldr r3, [r3, #0] + 800b878: 697a ldr r2, [r7, #20] + 800b87a: 4313 orrs r3, r2 + 800b87c: 617b str r3, [r7, #20] /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 800b87a: 687b ldr r3, [r7, #4] - 800b87c: 681b ldr r3, [r3, #0] - 800b87e: 697a ldr r2, [r7, #20] - 800b880: 609a str r2, [r3, #8] + 800b87e: 687b ldr r3, [r7, #4] + 800b880: 681b ldr r3, [r3, #0] + 800b882: 697a ldr r2, [r7, #20] + 800b884: 609a str r2, [r3, #8] /* Configure the trigger prescaler, filter, and polarity */ switch (sSlaveConfig->InputTrigger) - 800b882: 683b ldr r3, [r7, #0] - 800b884: 685b ldr r3, [r3, #4] - 800b886: 2b30 cmp r3, #48 ; 0x30 - 800b888: d05c beq.n 800b944 + 800b886: 683b ldr r3, [r7, #0] + 800b888: 685b ldr r3, [r3, #4] 800b88a: 2b30 cmp r3, #48 ; 0x30 - 800b88c: d806 bhi.n 800b89c - 800b88e: 2b10 cmp r3, #16 - 800b890: d058 beq.n 800b944 - 800b892: 2b20 cmp r3, #32 - 800b894: d056 beq.n 800b944 - 800b896: 2b00 cmp r3, #0 - 800b898: d054 beq.n 800b944 + 800b88c: d05c beq.n 800b948 + 800b88e: 2b30 cmp r3, #48 ; 0x30 + 800b890: d806 bhi.n 800b8a0 + 800b892: 2b10 cmp r3, #16 + 800b894: d058 beq.n 800b948 + 800b896: 2b20 cmp r3, #32 + 800b898: d056 beq.n 800b948 + 800b89a: 2b00 cmp r3, #0 + 800b89c: d054 beq.n 800b948 assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); break; } default: break; - 800b89a: e054 b.n 800b946 + 800b89e: e054 b.n 800b94a switch (sSlaveConfig->InputTrigger) - 800b89c: 2b50 cmp r3, #80 ; 0x50 - 800b89e: d03d beq.n 800b91c 800b8a0: 2b50 cmp r3, #80 ; 0x50 - 800b8a2: d802 bhi.n 800b8aa - 800b8a4: 2b40 cmp r3, #64 ; 0x40 - 800b8a6: d010 beq.n 800b8ca + 800b8a2: d03d beq.n 800b920 + 800b8a4: 2b50 cmp r3, #80 ; 0x50 + 800b8a6: d802 bhi.n 800b8ae + 800b8a8: 2b40 cmp r3, #64 ; 0x40 + 800b8aa: d010 beq.n 800b8ce break; - 800b8a8: e04d b.n 800b946 + 800b8ac: e04d b.n 800b94a switch (sSlaveConfig->InputTrigger) - 800b8aa: 2b60 cmp r3, #96 ; 0x60 - 800b8ac: d040 beq.n 800b930 - 800b8ae: 2b70 cmp r3, #112 ; 0x70 - 800b8b0: d000 beq.n 800b8b4 + 800b8ae: 2b60 cmp r3, #96 ; 0x60 + 800b8b0: d040 beq.n 800b934 + 800b8b2: 2b70 cmp r3, #112 ; 0x70 + 800b8b4: d000 beq.n 800b8b8 break; - 800b8b2: e048 b.n 800b946 + 800b8b6: e048 b.n 800b94a TIM_ETR_SetConfig(htim->Instance, - 800b8b4: 687b ldr r3, [r7, #4] - 800b8b6: 6818 ldr r0, [r3, #0] - 800b8b8: 683b ldr r3, [r7, #0] - 800b8ba: 68d9 ldr r1, [r3, #12] + 800b8b8: 687b ldr r3, [r7, #4] + 800b8ba: 6818 ldr r0, [r3, #0] 800b8bc: 683b ldr r3, [r7, #0] - 800b8be: 689a ldr r2, [r3, #8] + 800b8be: 68d9 ldr r1, [r3, #12] 800b8c0: 683b ldr r3, [r7, #0] - 800b8c2: 691b ldr r3, [r3, #16] - 800b8c4: f000 f8c0 bl 800ba48 + 800b8c2: 689a ldr r2, [r3, #8] + 800b8c4: 683b ldr r3, [r7, #0] + 800b8c6: 691b ldr r3, [r3, #16] + 800b8c8: f000 f8c0 bl 800ba4c break; - 800b8c8: e03d b.n 800b946 + 800b8cc: e03d b.n 800b94a if(sSlaveConfig->SlaveMode == TIM_SLAVEMODE_GATED) - 800b8ca: 683b ldr r3, [r7, #0] - 800b8cc: 681b ldr r3, [r3, #0] - 800b8ce: 2b05 cmp r3, #5 - 800b8d0: d101 bne.n 800b8d6 + 800b8ce: 683b ldr r3, [r7, #0] + 800b8d0: 681b ldr r3, [r3, #0] + 800b8d2: 2b05 cmp r3, #5 + 800b8d4: d101 bne.n 800b8da return HAL_ERROR; - 800b8d2: 2301 movs r3, #1 - 800b8d4: e038 b.n 800b948 + 800b8d6: 2301 movs r3, #1 + 800b8d8: e038 b.n 800b94c tmpccer = htim->Instance->CCER; - 800b8d6: 687b ldr r3, [r7, #4] - 800b8d8: 681b ldr r3, [r3, #0] - 800b8da: 6a1b ldr r3, [r3, #32] - 800b8dc: 613b str r3, [r7, #16] + 800b8da: 687b ldr r3, [r7, #4] + 800b8dc: 681b ldr r3, [r3, #0] + 800b8de: 6a1b ldr r3, [r3, #32] + 800b8e0: 613b str r3, [r7, #16] htim->Instance->CCER &= ~TIM_CCER_CC1E; - 800b8de: 687b ldr r3, [r7, #4] - 800b8e0: 681b ldr r3, [r3, #0] - 800b8e2: 6a1a ldr r2, [r3, #32] - 800b8e4: 687b ldr r3, [r7, #4] - 800b8e6: 681b ldr r3, [r3, #0] - 800b8e8: f022 0201 bic.w r2, r2, #1 - 800b8ec: 621a str r2, [r3, #32] + 800b8e2: 687b ldr r3, [r7, #4] + 800b8e4: 681b ldr r3, [r3, #0] + 800b8e6: 6a1a ldr r2, [r3, #32] + 800b8e8: 687b ldr r3, [r7, #4] + 800b8ea: 681b ldr r3, [r3, #0] + 800b8ec: f022 0201 bic.w r2, r2, #1 + 800b8f0: 621a str r2, [r3, #32] tmpccmr1 = htim->Instance->CCMR1; - 800b8ee: 687b ldr r3, [r7, #4] - 800b8f0: 681b ldr r3, [r3, #0] - 800b8f2: 699b ldr r3, [r3, #24] - 800b8f4: 60fb str r3, [r7, #12] + 800b8f2: 687b ldr r3, [r7, #4] + 800b8f4: 681b ldr r3, [r3, #0] + 800b8f6: 699b ldr r3, [r3, #24] + 800b8f8: 60fb str r3, [r7, #12] tmpccmr1 &= ~TIM_CCMR1_IC1F; - 800b8f6: 68fb ldr r3, [r7, #12] - 800b8f8: f023 03f0 bic.w r3, r3, #240 ; 0xf0 - 800b8fc: 60fb str r3, [r7, #12] + 800b8fa: 68fb ldr r3, [r7, #12] + 800b8fc: f023 03f0 bic.w r3, r3, #240 ; 0xf0 + 800b900: 60fb str r3, [r7, #12] tmpccmr1 |= ((sSlaveConfig->TriggerFilter) << 4U); - 800b8fe: 683b ldr r3, [r7, #0] - 800b900: 691b ldr r3, [r3, #16] - 800b902: 011b lsls r3, r3, #4 - 800b904: 68fa ldr r2, [r7, #12] - 800b906: 4313 orrs r3, r2 - 800b908: 60fb str r3, [r7, #12] + 800b902: 683b ldr r3, [r7, #0] + 800b904: 691b ldr r3, [r3, #16] + 800b906: 011b lsls r3, r3, #4 + 800b908: 68fa ldr r2, [r7, #12] + 800b90a: 4313 orrs r3, r2 + 800b90c: 60fb str r3, [r7, #12] htim->Instance->CCMR1 = tmpccmr1; - 800b90a: 687b ldr r3, [r7, #4] - 800b90c: 681b ldr r3, [r3, #0] - 800b90e: 68fa ldr r2, [r7, #12] - 800b910: 619a str r2, [r3, #24] + 800b90e: 687b ldr r3, [r7, #4] + 800b910: 681b ldr r3, [r3, #0] + 800b912: 68fa ldr r2, [r7, #12] + 800b914: 619a str r2, [r3, #24] htim->Instance->CCER = tmpccer; - 800b912: 687b ldr r3, [r7, #4] - 800b914: 681b ldr r3, [r3, #0] - 800b916: 693a ldr r2, [r7, #16] - 800b918: 621a str r2, [r3, #32] + 800b916: 687b ldr r3, [r7, #4] + 800b918: 681b ldr r3, [r3, #0] + 800b91a: 693a ldr r2, [r7, #16] + 800b91c: 621a str r2, [r3, #32] break; - 800b91a: e014 b.n 800b946 + 800b91e: e014 b.n 800b94a TIM_TI1_ConfigInputStage(htim->Instance, - 800b91c: 687b ldr r3, [r7, #4] - 800b91e: 6818 ldr r0, [r3, #0] - 800b920: 683b ldr r3, [r7, #0] - 800b922: 6899 ldr r1, [r3, #8] + 800b920: 687b ldr r3, [r7, #4] + 800b922: 6818 ldr r0, [r3, #0] 800b924: 683b ldr r3, [r7, #0] - 800b926: 691b ldr r3, [r3, #16] - 800b928: 461a mov r2, r3 - 800b92a: f000 f813 bl 800b954 + 800b926: 6899 ldr r1, [r3, #8] + 800b928: 683b ldr r3, [r7, #0] + 800b92a: 691b ldr r3, [r3, #16] + 800b92c: 461a mov r2, r3 + 800b92e: f000 f813 bl 800b958 break; - 800b92e: e00a b.n 800b946 + 800b932: e00a b.n 800b94a TIM_TI2_ConfigInputStage(htim->Instance, - 800b930: 687b ldr r3, [r7, #4] - 800b932: 6818 ldr r0, [r3, #0] - 800b934: 683b ldr r3, [r7, #0] - 800b936: 6899 ldr r1, [r3, #8] + 800b934: 687b ldr r3, [r7, #4] + 800b936: 6818 ldr r0, [r3, #0] 800b938: 683b ldr r3, [r7, #0] - 800b93a: 691b ldr r3, [r3, #16] - 800b93c: 461a mov r2, r3 - 800b93e: f000 f838 bl 800b9b2 + 800b93a: 6899 ldr r1, [r3, #8] + 800b93c: 683b ldr r3, [r7, #0] + 800b93e: 691b ldr r3, [r3, #16] + 800b940: 461a mov r2, r3 + 800b942: f000 f838 bl 800b9b6 break; - 800b942: e000 b.n 800b946 + 800b946: e000 b.n 800b94a break; - 800b944: bf00 nop + 800b948: bf00 nop } return HAL_OK; - 800b946: 2300 movs r3, #0 + 800b94a: 2300 movs r3, #0 } - 800b948: 4618 mov r0, r3 - 800b94a: 3718 adds r7, #24 - 800b94c: 46bd mov sp, r7 - 800b94e: bd80 pop {r7, pc} - 800b950: fffefff8 .word 0xfffefff8 + 800b94c: 4618 mov r0, r3 + 800b94e: 3718 adds r7, #24 + 800b950: 46bd mov sp, r7 + 800b952: bd80 pop {r7, pc} + 800b954: fffefff8 .word 0xfffefff8 -0800b954 : +0800b958 : * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None */ static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) { - 800b954: b480 push {r7} - 800b956: b087 sub sp, #28 - 800b958: af00 add r7, sp, #0 - 800b95a: 60f8 str r0, [r7, #12] - 800b95c: 60b9 str r1, [r7, #8] - 800b95e: 607a str r2, [r7, #4] + 800b958: b480 push {r7} + 800b95a: b087 sub sp, #28 + 800b95c: af00 add r7, sp, #0 + 800b95e: 60f8 str r0, [r7, #12] + 800b960: 60b9 str r1, [r7, #8] + 800b962: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = TIMx->CCER; - 800b960: 68fb ldr r3, [r7, #12] - 800b962: 6a1b ldr r3, [r3, #32] - 800b964: 617b str r3, [r7, #20] + 800b964: 68fb ldr r3, [r7, #12] + 800b966: 6a1b ldr r3, [r3, #32] + 800b968: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC1E; - 800b966: 68fb ldr r3, [r7, #12] - 800b968: 6a1b ldr r3, [r3, #32] - 800b96a: f023 0201 bic.w r2, r3, #1 - 800b96e: 68fb ldr r3, [r7, #12] - 800b970: 621a str r2, [r3, #32] - tmpccmr1 = TIMx->CCMR1; + 800b96a: 68fb ldr r3, [r7, #12] + 800b96c: 6a1b ldr r3, [r3, #32] + 800b96e: f023 0201 bic.w r2, r3, #1 800b972: 68fb ldr r3, [r7, #12] - 800b974: 699b ldr r3, [r3, #24] - 800b976: 613b str r3, [r7, #16] + 800b974: 621a str r2, [r3, #32] + tmpccmr1 = TIMx->CCMR1; + 800b976: 68fb ldr r3, [r7, #12] + 800b978: 699b ldr r3, [r3, #24] + 800b97a: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; - 800b978: 693b ldr r3, [r7, #16] - 800b97a: f023 03f0 bic.w r3, r3, #240 ; 0xf0 - 800b97e: 613b str r3, [r7, #16] + 800b97c: 693b ldr r3, [r7, #16] + 800b97e: f023 03f0 bic.w r3, r3, #240 ; 0xf0 + 800b982: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 4U); - 800b980: 687b ldr r3, [r7, #4] - 800b982: 011b lsls r3, r3, #4 - 800b984: 693a ldr r2, [r7, #16] - 800b986: 4313 orrs r3, r2 - 800b988: 613b str r3, [r7, #16] + 800b984: 687b ldr r3, [r7, #4] + 800b986: 011b lsls r3, r3, #4 + 800b988: 693a ldr r2, [r7, #16] + 800b98a: 4313 orrs r3, r2 + 800b98c: 613b str r3, [r7, #16] /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); - 800b98a: 697b ldr r3, [r7, #20] - 800b98c: f023 030a bic.w r3, r3, #10 - 800b990: 617b str r3, [r7, #20] + 800b98e: 697b ldr r3, [r7, #20] + 800b990: f023 030a bic.w r3, r3, #10 + 800b994: 617b str r3, [r7, #20] tmpccer |= TIM_ICPolarity; - 800b992: 697a ldr r2, [r7, #20] - 800b994: 68bb ldr r3, [r7, #8] - 800b996: 4313 orrs r3, r2 - 800b998: 617b str r3, [r7, #20] + 800b996: 697a ldr r2, [r7, #20] + 800b998: 68bb ldr r3, [r7, #8] + 800b99a: 4313 orrs r3, r2 + 800b99c: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; - 800b99a: 68fb ldr r3, [r7, #12] - 800b99c: 693a ldr r2, [r7, #16] - 800b99e: 619a str r2, [r3, #24] + 800b99e: 68fb ldr r3, [r7, #12] + 800b9a0: 693a ldr r2, [r7, #16] + 800b9a2: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; - 800b9a0: 68fb ldr r3, [r7, #12] - 800b9a2: 697a ldr r2, [r7, #20] - 800b9a4: 621a str r2, [r3, #32] + 800b9a4: 68fb ldr r3, [r7, #12] + 800b9a6: 697a ldr r2, [r7, #20] + 800b9a8: 621a str r2, [r3, #32] } - 800b9a6: bf00 nop - 800b9a8: 371c adds r7, #28 - 800b9aa: 46bd mov sp, r7 - 800b9ac: f85d 7b04 ldr.w r7, [sp], #4 - 800b9b0: 4770 bx lr + 800b9aa: bf00 nop + 800b9ac: 371c adds r7, #28 + 800b9ae: 46bd mov sp, r7 + 800b9b0: f85d 7b04 ldr.w r7, [sp], #4 + 800b9b4: 4770 bx lr -0800b9b2 : +0800b9b6 : * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None */ static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) { - 800b9b2: b480 push {r7} - 800b9b4: b087 sub sp, #28 - 800b9b6: af00 add r7, sp, #0 - 800b9b8: 60f8 str r0, [r7, #12] - 800b9ba: 60b9 str r1, [r7, #8] - 800b9bc: 607a str r2, [r7, #4] + 800b9b6: b480 push {r7} + 800b9b8: b087 sub sp, #28 + 800b9ba: af00 add r7, sp, #0 + 800b9bc: 60f8 str r0, [r7, #12] + 800b9be: 60b9 str r1, [r7, #8] + 800b9c0: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; - 800b9be: 68fb ldr r3, [r7, #12] - 800b9c0: 6a1b ldr r3, [r3, #32] - 800b9c2: f023 0210 bic.w r2, r3, #16 - 800b9c6: 68fb ldr r3, [r7, #12] - 800b9c8: 621a str r2, [r3, #32] - tmpccmr1 = TIMx->CCMR1; + 800b9c2: 68fb ldr r3, [r7, #12] + 800b9c4: 6a1b ldr r3, [r3, #32] + 800b9c6: f023 0210 bic.w r2, r3, #16 800b9ca: 68fb ldr r3, [r7, #12] - 800b9cc: 699b ldr r3, [r3, #24] - 800b9ce: 617b str r3, [r7, #20] + 800b9cc: 621a str r2, [r3, #32] + tmpccmr1 = TIMx->CCMR1; + 800b9ce: 68fb ldr r3, [r7, #12] + 800b9d0: 699b ldr r3, [r3, #24] + 800b9d2: 617b str r3, [r7, #20] tmpccer = TIMx->CCER; - 800b9d0: 68fb ldr r3, [r7, #12] - 800b9d2: 6a1b ldr r3, [r3, #32] - 800b9d4: 613b str r3, [r7, #16] + 800b9d4: 68fb ldr r3, [r7, #12] + 800b9d6: 6a1b ldr r3, [r3, #32] + 800b9d8: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; - 800b9d6: 697b ldr r3, [r7, #20] - 800b9d8: f423 4370 bic.w r3, r3, #61440 ; 0xf000 - 800b9dc: 617b str r3, [r7, #20] + 800b9da: 697b ldr r3, [r7, #20] + 800b9dc: f423 4370 bic.w r3, r3, #61440 ; 0xf000 + 800b9e0: 617b str r3, [r7, #20] tmpccmr1 |= (TIM_ICFilter << 12U); - 800b9de: 687b ldr r3, [r7, #4] - 800b9e0: 031b lsls r3, r3, #12 - 800b9e2: 697a ldr r2, [r7, #20] - 800b9e4: 4313 orrs r3, r2 - 800b9e6: 617b str r3, [r7, #20] + 800b9e2: 687b ldr r3, [r7, #4] + 800b9e4: 031b lsls r3, r3, #12 + 800b9e6: 697a ldr r2, [r7, #20] + 800b9e8: 4313 orrs r3, r2 + 800b9ea: 617b str r3, [r7, #20] /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); - 800b9e8: 693b ldr r3, [r7, #16] - 800b9ea: f023 03a0 bic.w r3, r3, #160 ; 0xa0 - 800b9ee: 613b str r3, [r7, #16] + 800b9ec: 693b ldr r3, [r7, #16] + 800b9ee: f023 03a0 bic.w r3, r3, #160 ; 0xa0 + 800b9f2: 613b str r3, [r7, #16] tmpccer |= (TIM_ICPolarity << 4U); - 800b9f0: 68bb ldr r3, [r7, #8] - 800b9f2: 011b lsls r3, r3, #4 - 800b9f4: 693a ldr r2, [r7, #16] - 800b9f6: 4313 orrs r3, r2 - 800b9f8: 613b str r3, [r7, #16] + 800b9f4: 68bb ldr r3, [r7, #8] + 800b9f6: 011b lsls r3, r3, #4 + 800b9f8: 693a ldr r2, [r7, #16] + 800b9fa: 4313 orrs r3, r2 + 800b9fc: 613b str r3, [r7, #16] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; - 800b9fa: 68fb ldr r3, [r7, #12] - 800b9fc: 697a ldr r2, [r7, #20] - 800b9fe: 619a str r2, [r3, #24] + 800b9fe: 68fb ldr r3, [r7, #12] + 800ba00: 697a ldr r2, [r7, #20] + 800ba02: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; - 800ba00: 68fb ldr r3, [r7, #12] - 800ba02: 693a ldr r2, [r7, #16] - 800ba04: 621a str r2, [r3, #32] + 800ba04: 68fb ldr r3, [r7, #12] + 800ba06: 693a ldr r2, [r7, #16] + 800ba08: 621a str r2, [r3, #32] } - 800ba06: bf00 nop - 800ba08: 371c adds r7, #28 - 800ba0a: 46bd mov sp, r7 - 800ba0c: f85d 7b04 ldr.w r7, [sp], #4 - 800ba10: 4770 bx lr + 800ba0a: bf00 nop + 800ba0c: 371c adds r7, #28 + 800ba0e: 46bd mov sp, r7 + 800ba10: f85d 7b04 ldr.w r7, [sp], #4 + 800ba14: 4770 bx lr -0800ba12 : +0800ba16 : * @arg TIM_TS_TI2FP2: Filtered Timer Input 2 * @arg TIM_TS_ETRF: External Trigger input * @retval None */ static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource) { - 800ba12: b480 push {r7} - 800ba14: b085 sub sp, #20 - 800ba16: af00 add r7, sp, #0 - 800ba18: 6078 str r0, [r7, #4] - 800ba1a: 6039 str r1, [r7, #0] + 800ba16: b480 push {r7} + 800ba18: b085 sub sp, #20 + 800ba1a: af00 add r7, sp, #0 + 800ba1c: 6078 str r0, [r7, #4] + 800ba1e: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Get the TIMx SMCR register value */ tmpsmcr = TIMx->SMCR; - 800ba1c: 687b ldr r3, [r7, #4] - 800ba1e: 689b ldr r3, [r3, #8] - 800ba20: 60fb str r3, [r7, #12] + 800ba20: 687b ldr r3, [r7, #4] + 800ba22: 689b ldr r3, [r3, #8] + 800ba24: 60fb str r3, [r7, #12] /* Reset the TS Bits */ tmpsmcr &= ~TIM_SMCR_TS; - 800ba22: 68fb ldr r3, [r7, #12] - 800ba24: f023 0370 bic.w r3, r3, #112 ; 0x70 - 800ba28: 60fb str r3, [r7, #12] + 800ba26: 68fb ldr r3, [r7, #12] + 800ba28: f023 0370 bic.w r3, r3, #112 ; 0x70 + 800ba2c: 60fb str r3, [r7, #12] /* Set the Input Trigger source and the slave mode*/ tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); - 800ba2a: 683a ldr r2, [r7, #0] - 800ba2c: 68fb ldr r3, [r7, #12] - 800ba2e: 4313 orrs r3, r2 - 800ba30: f043 0307 orr.w r3, r3, #7 - 800ba34: 60fb str r3, [r7, #12] + 800ba2e: 683a ldr r2, [r7, #0] + 800ba30: 68fb ldr r3, [r7, #12] + 800ba32: 4313 orrs r3, r2 + 800ba34: f043 0307 orr.w r3, r3, #7 + 800ba38: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; - 800ba36: 687b ldr r3, [r7, #4] - 800ba38: 68fa ldr r2, [r7, #12] - 800ba3a: 609a str r2, [r3, #8] + 800ba3a: 687b ldr r3, [r7, #4] + 800ba3c: 68fa ldr r2, [r7, #12] + 800ba3e: 609a str r2, [r3, #8] } - 800ba3c: bf00 nop - 800ba3e: 3714 adds r7, #20 - 800ba40: 46bd mov sp, r7 - 800ba42: f85d 7b04 ldr.w r7, [sp], #4 - 800ba46: 4770 bx lr + 800ba40: bf00 nop + 800ba42: 3714 adds r7, #20 + 800ba44: 46bd mov sp, r7 + 800ba46: f85d 7b04 ldr.w r7, [sp], #4 + 800ba4a: 4770 bx lr -0800ba48 : +0800ba4c : * This parameter must be a value between 0x00 and 0x0F * @retval None */ void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter) { - 800ba48: b480 push {r7} - 800ba4a: b087 sub sp, #28 - 800ba4c: af00 add r7, sp, #0 - 800ba4e: 60f8 str r0, [r7, #12] - 800ba50: 60b9 str r1, [r7, #8] - 800ba52: 607a str r2, [r7, #4] - 800ba54: 603b str r3, [r7, #0] + 800ba4c: b480 push {r7} + 800ba4e: b087 sub sp, #28 + 800ba50: af00 add r7, sp, #0 + 800ba52: 60f8 str r0, [r7, #12] + 800ba54: 60b9 str r1, [r7, #8] + 800ba56: 607a str r2, [r7, #4] + 800ba58: 603b str r3, [r7, #0] uint32_t tmpsmcr; tmpsmcr = TIMx->SMCR; - 800ba56: 68fb ldr r3, [r7, #12] - 800ba58: 689b ldr r3, [r3, #8] - 800ba5a: 617b str r3, [r7, #20] + 800ba5a: 68fb ldr r3, [r7, #12] + 800ba5c: 689b ldr r3, [r3, #8] + 800ba5e: 617b str r3, [r7, #20] /* Reset the ETR Bits */ tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); - 800ba5c: 697b ldr r3, [r7, #20] - 800ba5e: f423 437f bic.w r3, r3, #65280 ; 0xff00 - 800ba62: 617b str r3, [r7, #20] + 800ba60: 697b ldr r3, [r7, #20] + 800ba62: f423 437f bic.w r3, r3, #65280 ; 0xff00 + 800ba66: 617b str r3, [r7, #20] /* Set the Prescaler, the Filter value and the Polarity */ tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); - 800ba64: 683b ldr r3, [r7, #0] - 800ba66: 021a lsls r2, r3, #8 - 800ba68: 687b ldr r3, [r7, #4] - 800ba6a: 431a orrs r2, r3 - 800ba6c: 68bb ldr r3, [r7, #8] - 800ba6e: 4313 orrs r3, r2 - 800ba70: 697a ldr r2, [r7, #20] + 800ba68: 683b ldr r3, [r7, #0] + 800ba6a: 021a lsls r2, r3, #8 + 800ba6c: 687b ldr r3, [r7, #4] + 800ba6e: 431a orrs r2, r3 + 800ba70: 68bb ldr r3, [r7, #8] 800ba72: 4313 orrs r3, r2 - 800ba74: 617b str r3, [r7, #20] + 800ba74: 697a ldr r2, [r7, #20] + 800ba76: 4313 orrs r3, r2 + 800ba78: 617b str r3, [r7, #20] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; - 800ba76: 68fb ldr r3, [r7, #12] - 800ba78: 697a ldr r2, [r7, #20] - 800ba7a: 609a str r2, [r3, #8] + 800ba7a: 68fb ldr r3, [r7, #12] + 800ba7c: 697a ldr r2, [r7, #20] + 800ba7e: 609a str r2, [r3, #8] } - 800ba7c: bf00 nop - 800ba7e: 371c adds r7, #28 - 800ba80: 46bd mov sp, r7 - 800ba82: f85d 7b04 ldr.w r7, [sp], #4 - 800ba86: 4770 bx lr + 800ba80: bf00 nop + 800ba82: 371c adds r7, #28 + 800ba84: 46bd mov sp, r7 + 800ba86: f85d 7b04 ldr.w r7, [sp], #4 + 800ba8a: 4770 bx lr -0800ba88 : +0800ba8c : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef *sMasterConfig) { - 800ba88: b480 push {r7} - 800ba8a: b085 sub sp, #20 - 800ba8c: af00 add r7, sp, #0 - 800ba8e: 6078 str r0, [r7, #4] - 800ba90: 6039 str r1, [r7, #0] + 800ba8c: b480 push {r7} + 800ba8e: b085 sub sp, #20 + 800ba90: af00 add r7, sp, #0 + 800ba92: 6078 str r0, [r7, #4] + 800ba94: 6039 str r1, [r7, #0] assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger)); assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode)); /* Check input state */ __HAL_LOCK(htim); - 800ba92: 687b ldr r3, [r7, #4] - 800ba94: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800ba98: 2b01 cmp r3, #1 - 800ba9a: d101 bne.n 800baa0 - 800ba9c: 2302 movs r3, #2 - 800ba9e: e06d b.n 800bb7c - 800baa0: 687b ldr r3, [r7, #4] - 800baa2: 2201 movs r2, #1 - 800baa4: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800ba96: 687b ldr r3, [r7, #4] + 800ba98: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 800ba9c: 2b01 cmp r3, #1 + 800ba9e: d101 bne.n 800baa4 + 800baa0: 2302 movs r3, #2 + 800baa2: e06d b.n 800bb80 + 800baa4: 687b ldr r3, [r7, #4] + 800baa6: 2201 movs r2, #1 + 800baa8: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; - 800baa8: 687b ldr r3, [r7, #4] - 800baaa: 2202 movs r2, #2 - 800baac: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800baac: 687b ldr r3, [r7, #4] + 800baae: 2202 movs r2, #2 + 800bab0: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; - 800bab0: 687b ldr r3, [r7, #4] - 800bab2: 681b ldr r3, [r3, #0] - 800bab4: 685b ldr r3, [r3, #4] - 800bab6: 60fb str r3, [r7, #12] + 800bab4: 687b ldr r3, [r7, #4] + 800bab6: 681b ldr r3, [r3, #0] + 800bab8: 685b ldr r3, [r3, #4] + 800baba: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 800bab8: 687b ldr r3, [r7, #4] - 800baba: 681b ldr r3, [r3, #0] - 800babc: 689b ldr r3, [r3, #8] - 800babe: 60bb str r3, [r7, #8] + 800babc: 687b ldr r3, [r7, #4] + 800babe: 681b ldr r3, [r3, #0] + 800bac0: 689b ldr r3, [r3, #8] + 800bac2: 60bb str r3, [r7, #8] /* If the timer supports ADC synchronization through TRGO2, set the master mode selection 2 */ if (IS_TIM_TRGO2_INSTANCE(htim->Instance)) - 800bac0: 687b ldr r3, [r7, #4] - 800bac2: 681b ldr r3, [r3, #0] - 800bac4: 4a30 ldr r2, [pc, #192] ; (800bb88 ) - 800bac6: 4293 cmp r3, r2 - 800bac8: d004 beq.n 800bad4 - 800baca: 687b ldr r3, [r7, #4] - 800bacc: 681b ldr r3, [r3, #0] - 800bace: 4a2f ldr r2, [pc, #188] ; (800bb8c ) - 800bad0: 4293 cmp r3, r2 - 800bad2: d108 bne.n 800bae6 + 800bac4: 687b ldr r3, [r7, #4] + 800bac6: 681b ldr r3, [r3, #0] + 800bac8: 4a30 ldr r2, [pc, #192] ; (800bb8c ) + 800baca: 4293 cmp r3, r2 + 800bacc: d004 beq.n 800bad8 + 800bace: 687b ldr r3, [r7, #4] + 800bad0: 681b ldr r3, [r3, #0] + 800bad2: 4a2f ldr r2, [pc, #188] ; (800bb90 ) + 800bad4: 4293 cmp r3, r2 + 800bad6: d108 bne.n 800baea { /* Check the parameters */ assert_param(IS_TIM_TRGO2_SOURCE(sMasterConfig->MasterOutputTrigger2)); /* Clear the MMS2 bits */ tmpcr2 &= ~TIM_CR2_MMS2; - 800bad4: 68fb ldr r3, [r7, #12] - 800bad6: f423 0370 bic.w r3, r3, #15728640 ; 0xf00000 - 800bada: 60fb str r3, [r7, #12] + 800bad8: 68fb ldr r3, [r7, #12] + 800bada: f423 0370 bic.w r3, r3, #15728640 ; 0xf00000 + 800bade: 60fb str r3, [r7, #12] /* Select the TRGO2 source*/ tmpcr2 |= sMasterConfig->MasterOutputTrigger2; - 800badc: 683b ldr r3, [r7, #0] - 800bade: 685b ldr r3, [r3, #4] - 800bae0: 68fa ldr r2, [r7, #12] - 800bae2: 4313 orrs r3, r2 - 800bae4: 60fb str r3, [r7, #12] + 800bae0: 683b ldr r3, [r7, #0] + 800bae2: 685b ldr r3, [r3, #4] + 800bae4: 68fa ldr r2, [r7, #12] + 800bae6: 4313 orrs r3, r2 + 800bae8: 60fb str r3, [r7, #12] } /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; - 800bae6: 68fb ldr r3, [r7, #12] - 800bae8: f023 0370 bic.w r3, r3, #112 ; 0x70 - 800baec: 60fb str r3, [r7, #12] + 800baea: 68fb ldr r3, [r7, #12] + 800baec: f023 0370 bic.w r3, r3, #112 ; 0x70 + 800baf0: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; - 800baee: 683b ldr r3, [r7, #0] - 800baf0: 681b ldr r3, [r3, #0] - 800baf2: 68fa ldr r2, [r7, #12] - 800baf4: 4313 orrs r3, r2 - 800baf6: 60fb str r3, [r7, #12] + 800baf2: 683b ldr r3, [r7, #0] + 800baf4: 681b ldr r3, [r3, #0] + 800baf6: 68fa ldr r2, [r7, #12] + 800baf8: 4313 orrs r3, r2 + 800bafa: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; - 800baf8: 687b ldr r3, [r7, #4] - 800bafa: 681b ldr r3, [r3, #0] - 800bafc: 68fa ldr r2, [r7, #12] - 800bafe: 605a str r2, [r3, #4] + 800bafc: 687b ldr r3, [r7, #4] + 800bafe: 681b ldr r3, [r3, #0] + 800bb00: 68fa ldr r2, [r7, #12] + 800bb02: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 800bb00: 687b ldr r3, [r7, #4] - 800bb02: 681b ldr r3, [r3, #0] - 800bb04: 4a20 ldr r2, [pc, #128] ; (800bb88 ) - 800bb06: 4293 cmp r3, r2 - 800bb08: d022 beq.n 800bb50 - 800bb0a: 687b ldr r3, [r7, #4] - 800bb0c: 681b ldr r3, [r3, #0] - 800bb0e: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 800bb12: d01d beq.n 800bb50 - 800bb14: 687b ldr r3, [r7, #4] - 800bb16: 681b ldr r3, [r3, #0] - 800bb18: 4a1d ldr r2, [pc, #116] ; (800bb90 ) - 800bb1a: 4293 cmp r3, r2 - 800bb1c: d018 beq.n 800bb50 - 800bb1e: 687b ldr r3, [r7, #4] - 800bb20: 681b ldr r3, [r3, #0] - 800bb22: 4a1c ldr r2, [pc, #112] ; (800bb94 ) - 800bb24: 4293 cmp r3, r2 - 800bb26: d013 beq.n 800bb50 - 800bb28: 687b ldr r3, [r7, #4] - 800bb2a: 681b ldr r3, [r3, #0] - 800bb2c: 4a1a ldr r2, [pc, #104] ; (800bb98 ) - 800bb2e: 4293 cmp r3, r2 - 800bb30: d00e beq.n 800bb50 - 800bb32: 687b ldr r3, [r7, #4] - 800bb34: 681b ldr r3, [r3, #0] - 800bb36: 4a15 ldr r2, [pc, #84] ; (800bb8c ) - 800bb38: 4293 cmp r3, r2 - 800bb3a: d009 beq.n 800bb50 - 800bb3c: 687b ldr r3, [r7, #4] - 800bb3e: 681b ldr r3, [r3, #0] - 800bb40: 4a16 ldr r2, [pc, #88] ; (800bb9c ) - 800bb42: 4293 cmp r3, r2 - 800bb44: d004 beq.n 800bb50 - 800bb46: 687b ldr r3, [r7, #4] - 800bb48: 681b ldr r3, [r3, #0] - 800bb4a: 4a15 ldr r2, [pc, #84] ; (800bba0 ) - 800bb4c: 4293 cmp r3, r2 - 800bb4e: d10c bne.n 800bb6a + 800bb04: 687b ldr r3, [r7, #4] + 800bb06: 681b ldr r3, [r3, #0] + 800bb08: 4a20 ldr r2, [pc, #128] ; (800bb8c ) + 800bb0a: 4293 cmp r3, r2 + 800bb0c: d022 beq.n 800bb54 + 800bb0e: 687b ldr r3, [r7, #4] + 800bb10: 681b ldr r3, [r3, #0] + 800bb12: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 800bb16: d01d beq.n 800bb54 + 800bb18: 687b ldr r3, [r7, #4] + 800bb1a: 681b ldr r3, [r3, #0] + 800bb1c: 4a1d ldr r2, [pc, #116] ; (800bb94 ) + 800bb1e: 4293 cmp r3, r2 + 800bb20: d018 beq.n 800bb54 + 800bb22: 687b ldr r3, [r7, #4] + 800bb24: 681b ldr r3, [r3, #0] + 800bb26: 4a1c ldr r2, [pc, #112] ; (800bb98 ) + 800bb28: 4293 cmp r3, r2 + 800bb2a: d013 beq.n 800bb54 + 800bb2c: 687b ldr r3, [r7, #4] + 800bb2e: 681b ldr r3, [r3, #0] + 800bb30: 4a1a ldr r2, [pc, #104] ; (800bb9c ) + 800bb32: 4293 cmp r3, r2 + 800bb34: d00e beq.n 800bb54 + 800bb36: 687b ldr r3, [r7, #4] + 800bb38: 681b ldr r3, [r3, #0] + 800bb3a: 4a15 ldr r2, [pc, #84] ; (800bb90 ) + 800bb3c: 4293 cmp r3, r2 + 800bb3e: d009 beq.n 800bb54 + 800bb40: 687b ldr r3, [r7, #4] + 800bb42: 681b ldr r3, [r3, #0] + 800bb44: 4a16 ldr r2, [pc, #88] ; (800bba0 ) + 800bb46: 4293 cmp r3, r2 + 800bb48: d004 beq.n 800bb54 + 800bb4a: 687b ldr r3, [r7, #4] + 800bb4c: 681b ldr r3, [r3, #0] + 800bb4e: 4a15 ldr r2, [pc, #84] ; (800bba4 ) + 800bb50: 4293 cmp r3, r2 + 800bb52: d10c bne.n 800bb6e { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; - 800bb50: 68bb ldr r3, [r7, #8] - 800bb52: f023 0380 bic.w r3, r3, #128 ; 0x80 - 800bb56: 60bb str r3, [r7, #8] + 800bb54: 68bb ldr r3, [r7, #8] + 800bb56: f023 0380 bic.w r3, r3, #128 ; 0x80 + 800bb5a: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; - 800bb58: 683b ldr r3, [r7, #0] - 800bb5a: 689b ldr r3, [r3, #8] - 800bb5c: 68ba ldr r2, [r7, #8] - 800bb5e: 4313 orrs r3, r2 - 800bb60: 60bb str r3, [r7, #8] + 800bb5c: 683b ldr r3, [r7, #0] + 800bb5e: 689b ldr r3, [r3, #8] + 800bb60: 68ba ldr r2, [r7, #8] + 800bb62: 4313 orrs r3, r2 + 800bb64: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 800bb62: 687b ldr r3, [r7, #4] - 800bb64: 681b ldr r3, [r3, #0] - 800bb66: 68ba ldr r2, [r7, #8] - 800bb68: 609a str r2, [r3, #8] + 800bb66: 687b ldr r3, [r7, #4] + 800bb68: 681b ldr r3, [r3, #0] + 800bb6a: 68ba ldr r2, [r7, #8] + 800bb6c: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; - 800bb6a: 687b ldr r3, [r7, #4] - 800bb6c: 2201 movs r2, #1 - 800bb6e: f883 203d strb.w r2, [r3, #61] ; 0x3d + 800bb6e: 687b ldr r3, [r7, #4] + 800bb70: 2201 movs r2, #1 + 800bb72: f883 203d strb.w r2, [r3, #61] ; 0x3d __HAL_UNLOCK(htim); - 800bb72: 687b ldr r3, [r7, #4] - 800bb74: 2200 movs r2, #0 - 800bb76: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800bb76: 687b ldr r3, [r7, #4] + 800bb78: 2200 movs r2, #0 + 800bb7a: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; - 800bb7a: 2300 movs r3, #0 -} - 800bb7c: 4618 mov r0, r3 - 800bb7e: 3714 adds r7, #20 - 800bb80: 46bd mov sp, r7 - 800bb82: f85d 7b04 ldr.w r7, [sp], #4 - 800bb86: 4770 bx lr - 800bb88: 40010000 .word 0x40010000 - 800bb8c: 40010400 .word 0x40010400 - 800bb90: 40000400 .word 0x40000400 - 800bb94: 40000800 .word 0x40000800 - 800bb98: 40000c00 .word 0x40000c00 - 800bb9c: 40014000 .word 0x40014000 - 800bba0: 40001800 .word 0x40001800 - -0800bba4 : + 800bb7e: 2300 movs r3, #0 +} + 800bb80: 4618 mov r0, r3 + 800bb82: 3714 adds r7, #20 + 800bb84: 46bd mov sp, r7 + 800bb86: f85d 7b04 ldr.w r7, [sp], #4 + 800bb8a: 4770 bx lr + 800bb8c: 40010000 .word 0x40010000 + 800bb90: 40010400 .word 0x40010400 + 800bb94: 40000400 .word 0x40000400 + 800bb98: 40000800 .word 0x40000800 + 800bb9c: 40000c00 .word 0x40000c00 + 800bba0: 40014000 .word 0x40014000 + 800bba4: 40001800 .word 0x40001800 + +0800bba8 : * interrupt can be enabled by calling the @ref __HAL_TIM_ENABLE_IT macro. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_ConfigBreakDeadTime(TIM_HandleTypeDef *htim, TIM_BreakDeadTimeConfigTypeDef *sBreakDeadTimeConfig) { - 800bba4: b480 push {r7} - 800bba6: b085 sub sp, #20 - 800bba8: af00 add r7, sp, #0 - 800bbaa: 6078 str r0, [r7, #4] - 800bbac: 6039 str r1, [r7, #0] + 800bba8: b480 push {r7} + 800bbaa: b085 sub sp, #20 + 800bbac: af00 add r7, sp, #0 + 800bbae: 6078 str r0, [r7, #4] + 800bbb0: 6039 str r1, [r7, #0] /* Keep this variable initialized to 0 as it is used to configure BDTR register */ uint32_t tmpbdtr = 0U; - 800bbae: 2300 movs r3, #0 - 800bbb0: 60fb str r3, [r7, #12] + 800bbb2: 2300 movs r3, #0 + 800bbb4: 60fb str r3, [r7, #12] assert_param(IS_TIM_BREAK_POLARITY(sBreakDeadTimeConfig->BreakPolarity)); assert_param(IS_TIM_BREAK_FILTER(sBreakDeadTimeConfig->BreakFilter)); assert_param(IS_TIM_AUTOMATIC_OUTPUT_STATE(sBreakDeadTimeConfig->AutomaticOutput)); /* Check input state */ __HAL_LOCK(htim); - 800bbb2: 687b ldr r3, [r7, #4] - 800bbb4: f893 303c ldrb.w r3, [r3, #60] ; 0x3c - 800bbb8: 2b01 cmp r3, #1 - 800bbba: d101 bne.n 800bbc0 - 800bbbc: 2302 movs r3, #2 - 800bbbe: e065 b.n 800bc8c - 800bbc0: 687b ldr r3, [r7, #4] - 800bbc2: 2201 movs r2, #1 - 800bbc4: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800bbb6: 687b ldr r3, [r7, #4] + 800bbb8: f893 303c ldrb.w r3, [r3, #60] ; 0x3c + 800bbbc: 2b01 cmp r3, #1 + 800bbbe: d101 bne.n 800bbc4 + 800bbc0: 2302 movs r3, #2 + 800bbc2: e065 b.n 800bc90 + 800bbc4: 687b ldr r3, [r7, #4] + 800bbc6: 2201 movs r2, #1 + 800bbc8: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Set the Lock level, the Break enable Bit and the Polarity, the OSSR State, the OSSI State, the dead time value and the Automatic Output Enable Bit */ /* Set the BDTR bits */ MODIFY_REG(tmpbdtr, TIM_BDTR_DTG, sBreakDeadTimeConfig->DeadTime); - 800bbc8: 68fb ldr r3, [r7, #12] - 800bbca: f023 02ff bic.w r2, r3, #255 ; 0xff - 800bbce: 683b ldr r3, [r7, #0] - 800bbd0: 68db ldr r3, [r3, #12] - 800bbd2: 4313 orrs r3, r2 - 800bbd4: 60fb str r3, [r7, #12] + 800bbcc: 68fb ldr r3, [r7, #12] + 800bbce: f023 02ff bic.w r2, r3, #255 ; 0xff + 800bbd2: 683b ldr r3, [r7, #0] + 800bbd4: 68db ldr r3, [r3, #12] + 800bbd6: 4313 orrs r3, r2 + 800bbd8: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_LOCK, sBreakDeadTimeConfig->LockLevel); - 800bbd6: 68fb ldr r3, [r7, #12] - 800bbd8: f423 7240 bic.w r2, r3, #768 ; 0x300 - 800bbdc: 683b ldr r3, [r7, #0] - 800bbde: 689b ldr r3, [r3, #8] - 800bbe0: 4313 orrs r3, r2 - 800bbe2: 60fb str r3, [r7, #12] + 800bbda: 68fb ldr r3, [r7, #12] + 800bbdc: f423 7240 bic.w r2, r3, #768 ; 0x300 + 800bbe0: 683b ldr r3, [r7, #0] + 800bbe2: 689b ldr r3, [r3, #8] + 800bbe4: 4313 orrs r3, r2 + 800bbe6: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_OSSI, sBreakDeadTimeConfig->OffStateIDLEMode); - 800bbe4: 68fb ldr r3, [r7, #12] - 800bbe6: f423 6280 bic.w r2, r3, #1024 ; 0x400 - 800bbea: 683b ldr r3, [r7, #0] - 800bbec: 685b ldr r3, [r3, #4] - 800bbee: 4313 orrs r3, r2 - 800bbf0: 60fb str r3, [r7, #12] + 800bbe8: 68fb ldr r3, [r7, #12] + 800bbea: f423 6280 bic.w r2, r3, #1024 ; 0x400 + 800bbee: 683b ldr r3, [r7, #0] + 800bbf0: 685b ldr r3, [r3, #4] + 800bbf2: 4313 orrs r3, r2 + 800bbf4: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_OSSR, sBreakDeadTimeConfig->OffStateRunMode); - 800bbf2: 68fb ldr r3, [r7, #12] - 800bbf4: f423 6200 bic.w r2, r3, #2048 ; 0x800 - 800bbf8: 683b ldr r3, [r7, #0] - 800bbfa: 681b ldr r3, [r3, #0] - 800bbfc: 4313 orrs r3, r2 - 800bbfe: 60fb str r3, [r7, #12] + 800bbf6: 68fb ldr r3, [r7, #12] + 800bbf8: f423 6200 bic.w r2, r3, #2048 ; 0x800 + 800bbfc: 683b ldr r3, [r7, #0] + 800bbfe: 681b ldr r3, [r3, #0] + 800bc00: 4313 orrs r3, r2 + 800bc02: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_BKE, sBreakDeadTimeConfig->BreakState); - 800bc00: 68fb ldr r3, [r7, #12] - 800bc02: f423 5280 bic.w r2, r3, #4096 ; 0x1000 - 800bc06: 683b ldr r3, [r7, #0] - 800bc08: 691b ldr r3, [r3, #16] - 800bc0a: 4313 orrs r3, r2 - 800bc0c: 60fb str r3, [r7, #12] + 800bc04: 68fb ldr r3, [r7, #12] + 800bc06: f423 5280 bic.w r2, r3, #4096 ; 0x1000 + 800bc0a: 683b ldr r3, [r7, #0] + 800bc0c: 691b ldr r3, [r3, #16] + 800bc0e: 4313 orrs r3, r2 + 800bc10: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_BKP, sBreakDeadTimeConfig->BreakPolarity); - 800bc0e: 68fb ldr r3, [r7, #12] - 800bc10: f423 5200 bic.w r2, r3, #8192 ; 0x2000 - 800bc14: 683b ldr r3, [r7, #0] - 800bc16: 695b ldr r3, [r3, #20] - 800bc18: 4313 orrs r3, r2 - 800bc1a: 60fb str r3, [r7, #12] + 800bc12: 68fb ldr r3, [r7, #12] + 800bc14: f423 5200 bic.w r2, r3, #8192 ; 0x2000 + 800bc18: 683b ldr r3, [r7, #0] + 800bc1a: 695b ldr r3, [r3, #20] + 800bc1c: 4313 orrs r3, r2 + 800bc1e: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_AOE, sBreakDeadTimeConfig->AutomaticOutput); - 800bc1c: 68fb ldr r3, [r7, #12] - 800bc1e: f423 4280 bic.w r2, r3, #16384 ; 0x4000 - 800bc22: 683b ldr r3, [r7, #0] - 800bc24: 6a9b ldr r3, [r3, #40] ; 0x28 - 800bc26: 4313 orrs r3, r2 - 800bc28: 60fb str r3, [r7, #12] + 800bc20: 68fb ldr r3, [r7, #12] + 800bc22: f423 4280 bic.w r2, r3, #16384 ; 0x4000 + 800bc26: 683b ldr r3, [r7, #0] + 800bc28: 6a9b ldr r3, [r3, #40] ; 0x28 + 800bc2a: 4313 orrs r3, r2 + 800bc2c: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_BKF, (sBreakDeadTimeConfig->BreakFilter << TIM_BDTR_BKF_Pos)); - 800bc2a: 68fb ldr r3, [r7, #12] - 800bc2c: f423 2270 bic.w r2, r3, #983040 ; 0xf0000 - 800bc30: 683b ldr r3, [r7, #0] - 800bc32: 699b ldr r3, [r3, #24] - 800bc34: 041b lsls r3, r3, #16 - 800bc36: 4313 orrs r3, r2 - 800bc38: 60fb str r3, [r7, #12] + 800bc2e: 68fb ldr r3, [r7, #12] + 800bc30: f423 2270 bic.w r2, r3, #983040 ; 0xf0000 + 800bc34: 683b ldr r3, [r7, #0] + 800bc36: 699b ldr r3, [r3, #24] + 800bc38: 041b lsls r3, r3, #16 + 800bc3a: 4313 orrs r3, r2 + 800bc3c: 60fb str r3, [r7, #12] if (IS_TIM_BKIN2_INSTANCE(htim->Instance)) - 800bc3a: 687b ldr r3, [r7, #4] - 800bc3c: 681b ldr r3, [r3, #0] - 800bc3e: 4a16 ldr r2, [pc, #88] ; (800bc98 ) - 800bc40: 4293 cmp r3, r2 - 800bc42: d004 beq.n 800bc4e - 800bc44: 687b ldr r3, [r7, #4] - 800bc46: 681b ldr r3, [r3, #0] - 800bc48: 4a14 ldr r2, [pc, #80] ; (800bc9c ) - 800bc4a: 4293 cmp r3, r2 - 800bc4c: d115 bne.n 800bc7a + 800bc3e: 687b ldr r3, [r7, #4] + 800bc40: 681b ldr r3, [r3, #0] + 800bc42: 4a16 ldr r2, [pc, #88] ; (800bc9c ) + 800bc44: 4293 cmp r3, r2 + 800bc46: d004 beq.n 800bc52 + 800bc48: 687b ldr r3, [r7, #4] + 800bc4a: 681b ldr r3, [r3, #0] + 800bc4c: 4a14 ldr r2, [pc, #80] ; (800bca0 ) + 800bc4e: 4293 cmp r3, r2 + 800bc50: d115 bne.n 800bc7e assert_param(IS_TIM_BREAK2_STATE(sBreakDeadTimeConfig->Break2State)); assert_param(IS_TIM_BREAK2_POLARITY(sBreakDeadTimeConfig->Break2Polarity)); assert_param(IS_TIM_BREAK_FILTER(sBreakDeadTimeConfig->Break2Filter)); /* Set the BREAK2 input related BDTR bits */ MODIFY_REG(tmpbdtr, TIM_BDTR_BK2F, (sBreakDeadTimeConfig->Break2Filter << TIM_BDTR_BK2F_Pos)); - 800bc4e: 68fb ldr r3, [r7, #12] - 800bc50: f423 0270 bic.w r2, r3, #15728640 ; 0xf00000 - 800bc54: 683b ldr r3, [r7, #0] - 800bc56: 6a5b ldr r3, [r3, #36] ; 0x24 - 800bc58: 051b lsls r3, r3, #20 - 800bc5a: 4313 orrs r3, r2 - 800bc5c: 60fb str r3, [r7, #12] + 800bc52: 68fb ldr r3, [r7, #12] + 800bc54: f423 0270 bic.w r2, r3, #15728640 ; 0xf00000 + 800bc58: 683b ldr r3, [r7, #0] + 800bc5a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800bc5c: 051b lsls r3, r3, #20 + 800bc5e: 4313 orrs r3, r2 + 800bc60: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_BK2E, sBreakDeadTimeConfig->Break2State); - 800bc5e: 68fb ldr r3, [r7, #12] - 800bc60: f023 7280 bic.w r2, r3, #16777216 ; 0x1000000 - 800bc64: 683b ldr r3, [r7, #0] - 800bc66: 69db ldr r3, [r3, #28] - 800bc68: 4313 orrs r3, r2 - 800bc6a: 60fb str r3, [r7, #12] + 800bc62: 68fb ldr r3, [r7, #12] + 800bc64: f023 7280 bic.w r2, r3, #16777216 ; 0x1000000 + 800bc68: 683b ldr r3, [r7, #0] + 800bc6a: 69db ldr r3, [r3, #28] + 800bc6c: 4313 orrs r3, r2 + 800bc6e: 60fb str r3, [r7, #12] MODIFY_REG(tmpbdtr, TIM_BDTR_BK2P, sBreakDeadTimeConfig->Break2Polarity); - 800bc6c: 68fb ldr r3, [r7, #12] - 800bc6e: f023 7200 bic.w r2, r3, #33554432 ; 0x2000000 - 800bc72: 683b ldr r3, [r7, #0] - 800bc74: 6a1b ldr r3, [r3, #32] - 800bc76: 4313 orrs r3, r2 - 800bc78: 60fb str r3, [r7, #12] + 800bc70: 68fb ldr r3, [r7, #12] + 800bc72: f023 7200 bic.w r2, r3, #33554432 ; 0x2000000 + 800bc76: 683b ldr r3, [r7, #0] + 800bc78: 6a1b ldr r3, [r3, #32] + 800bc7a: 4313 orrs r3, r2 + 800bc7c: 60fb str r3, [r7, #12] } /* Set TIMx_BDTR */ htim->Instance->BDTR = tmpbdtr; - 800bc7a: 687b ldr r3, [r7, #4] - 800bc7c: 681b ldr r3, [r3, #0] - 800bc7e: 68fa ldr r2, [r7, #12] - 800bc80: 645a str r2, [r3, #68] ; 0x44 + 800bc7e: 687b ldr r3, [r7, #4] + 800bc80: 681b ldr r3, [r3, #0] + 800bc82: 68fa ldr r2, [r7, #12] + 800bc84: 645a str r2, [r3, #68] ; 0x44 __HAL_UNLOCK(htim); - 800bc82: 687b ldr r3, [r7, #4] - 800bc84: 2200 movs r2, #0 - 800bc86: f883 203c strb.w r2, [r3, #60] ; 0x3c + 800bc86: 687b ldr r3, [r7, #4] + 800bc88: 2200 movs r2, #0 + 800bc8a: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; - 800bc8a: 2300 movs r3, #0 + 800bc8e: 2300 movs r3, #0 } - 800bc8c: 4618 mov r0, r3 - 800bc8e: 3714 adds r7, #20 - 800bc90: 46bd mov sp, r7 - 800bc92: f85d 7b04 ldr.w r7, [sp], #4 - 800bc96: 4770 bx lr - 800bc98: 40010000 .word 0x40010000 - 800bc9c: 40010400 .word 0x40010400 + 800bc90: 4618 mov r0, r3 + 800bc92: 3714 adds r7, #20 + 800bc94: 46bd mov sp, r7 + 800bc96: f85d 7b04 ldr.w r7, [sp], #4 + 800bc9a: 4770 bx lr + 800bc9c: 40010000 .word 0x40010000 + 800bca0: 40010400 .word 0x40010400 -0800bca0 : +0800bca4 : * @brief Hall commutation changed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { - 800bca0: b480 push {r7} - 800bca2: b083 sub sp, #12 - 800bca4: af00 add r7, sp, #0 - 800bca6: 6078 str r0, [r7, #4] + 800bca4: b480 push {r7} + 800bca6: b083 sub sp, #12 + 800bca8: af00 add r7, sp, #0 + 800bcaa: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_CommutCallback could be implemented in the user file */ } - 800bca8: bf00 nop - 800bcaa: 370c adds r7, #12 - 800bcac: 46bd mov sp, r7 - 800bcae: f85d 7b04 ldr.w r7, [sp], #4 - 800bcb2: 4770 bx lr + 800bcac: bf00 nop + 800bcae: 370c adds r7, #12 + 800bcb0: 46bd mov sp, r7 + 800bcb2: f85d 7b04 ldr.w r7, [sp], #4 + 800bcb6: 4770 bx lr -0800bcb4 : +0800bcb8 : * @brief Hall Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { - 800bcb4: b480 push {r7} - 800bcb6: b083 sub sp, #12 - 800bcb8: af00 add r7, sp, #0 - 800bcba: 6078 str r0, [r7, #4] + 800bcb8: b480 push {r7} + 800bcba: b083 sub sp, #12 + 800bcbc: af00 add r7, sp, #0 + 800bcbe: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIMEx_BreakCallback could be implemented in the user file */ } - 800bcbc: bf00 nop - 800bcbe: 370c adds r7, #12 - 800bcc0: 46bd mov sp, r7 - 800bcc2: f85d 7b04 ldr.w r7, [sp], #4 - 800bcc6: 4770 bx lr + 800bcc0: bf00 nop + 800bcc2: 370c adds r7, #12 + 800bcc4: 46bd mov sp, r7 + 800bcc6: f85d 7b04 ldr.w r7, [sp], #4 + 800bcca: 4770 bx lr -0800bcc8 : +0800bccc : * @brief Hall Break2 detection callback in non blocking mode * @param htim: TIM handle * @retval None */ __weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim) { - 800bcc8: b480 push {r7} - 800bcca: b083 sub sp, #12 - 800bccc: af00 add r7, sp, #0 - 800bcce: 6078 str r0, [r7, #4] + 800bccc: b480 push {r7} + 800bcce: b083 sub sp, #12 + 800bcd0: af00 add r7, sp, #0 + 800bcd2: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function Should not be modified, when the callback is needed, the HAL_TIMEx_Break2Callback could be implemented in the user file */ } - 800bcd0: bf00 nop - 800bcd2: 370c adds r7, #12 - 800bcd4: 46bd mov sp, r7 - 800bcd6: f85d 7b04 ldr.w r7, [sp], #4 - 800bcda: 4770 bx lr + 800bcd4: bf00 nop + 800bcd6: 370c adds r7, #12 + 800bcd8: 46bd mov sp, r7 + 800bcda: f85d 7b04 ldr.w r7, [sp], #4 + 800bcde: 4770 bx lr -0800bcdc : +0800bce0 : * parameters in the UART_InitTypeDef and initialize the associated handle. * @param huart UART handle. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart) { - 800bcdc: b580 push {r7, lr} - 800bcde: b082 sub sp, #8 - 800bce0: af00 add r7, sp, #0 - 800bce2: 6078 str r0, [r7, #4] + 800bce0: b580 push {r7, lr} + 800bce2: b082 sub sp, #8 + 800bce4: af00 add r7, sp, #0 + 800bce6: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) - 800bce4: 687b ldr r3, [r7, #4] - 800bce6: 2b00 cmp r3, #0 - 800bce8: d101 bne.n 800bcee + 800bce8: 687b ldr r3, [r7, #4] + 800bcea: 2b00 cmp r3, #0 + 800bcec: d101 bne.n 800bcf2 { return HAL_ERROR; - 800bcea: 2301 movs r3, #1 - 800bcec: e040 b.n 800bd70 + 800bcee: 2301 movs r3, #1 + 800bcf0: e040 b.n 800bd74 { /* Check the parameters */ assert_param(IS_UART_INSTANCE(huart->Instance)); } if (huart->gState == HAL_UART_STATE_RESET) - 800bcee: 687b ldr r3, [r7, #4] - 800bcf0: 6f5b ldr r3, [r3, #116] ; 0x74 - 800bcf2: 2b00 cmp r3, #0 - 800bcf4: d106 bne.n 800bd04 + 800bcf2: 687b ldr r3, [r7, #4] + 800bcf4: 6f5b ldr r3, [r3, #116] ; 0x74 + 800bcf6: 2b00 cmp r3, #0 + 800bcf8: d106 bne.n 800bd08 { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; - 800bcf6: 687b ldr r3, [r7, #4] - 800bcf8: 2200 movs r2, #0 - 800bcfa: f883 2070 strb.w r2, [r3, #112] ; 0x70 + 800bcfa: 687b ldr r3, [r7, #4] + 800bcfc: 2200 movs r2, #0 + 800bcfe: f883 2070 strb.w r2, [r3, #112] ; 0x70 /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); - 800bcfe: 6878 ldr r0, [r7, #4] - 800bd00: f7f8 fde8 bl 80048d4 + 800bd02: 6878 ldr r0, [r7, #4] + 800bd04: f7f8 fde8 bl 80048d8 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; - 800bd04: 687b ldr r3, [r7, #4] - 800bd06: 2224 movs r2, #36 ; 0x24 - 800bd08: 675a str r2, [r3, #116] ; 0x74 + 800bd08: 687b ldr r3, [r7, #4] + 800bd0a: 2224 movs r2, #36 ; 0x24 + 800bd0c: 675a str r2, [r3, #116] ; 0x74 __HAL_UART_DISABLE(huart); - 800bd0a: 687b ldr r3, [r7, #4] - 800bd0c: 681b ldr r3, [r3, #0] - 800bd0e: 681a ldr r2, [r3, #0] - 800bd10: 687b ldr r3, [r7, #4] - 800bd12: 681b ldr r3, [r3, #0] - 800bd14: f022 0201 bic.w r2, r2, #1 - 800bd18: 601a str r2, [r3, #0] + 800bd0e: 687b ldr r3, [r7, #4] + 800bd10: 681b ldr r3, [r3, #0] + 800bd12: 681a ldr r2, [r3, #0] + 800bd14: 687b ldr r3, [r7, #4] + 800bd16: 681b ldr r3, [r3, #0] + 800bd18: f022 0201 bic.w r2, r2, #1 + 800bd1c: 601a str r2, [r3, #0] /* Set the UART Communication parameters */ if (UART_SetConfig(huart) == HAL_ERROR) - 800bd1a: 6878 ldr r0, [r7, #4] - 800bd1c: f000 f82c bl 800bd78 - 800bd20: 4603 mov r3, r0 - 800bd22: 2b01 cmp r3, #1 - 800bd24: d101 bne.n 800bd2a + 800bd1e: 6878 ldr r0, [r7, #4] + 800bd20: f000 f82c bl 800bd7c + 800bd24: 4603 mov r3, r0 + 800bd26: 2b01 cmp r3, #1 + 800bd28: d101 bne.n 800bd2e { return HAL_ERROR; - 800bd26: 2301 movs r3, #1 - 800bd28: e022 b.n 800bd70 + 800bd2a: 2301 movs r3, #1 + 800bd2c: e022 b.n 800bd74 } if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT) - 800bd2a: 687b ldr r3, [r7, #4] - 800bd2c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800bd2e: 2b00 cmp r3, #0 - 800bd30: d002 beq.n 800bd38 + 800bd2e: 687b ldr r3, [r7, #4] + 800bd30: 6a5b ldr r3, [r3, #36] ; 0x24 + 800bd32: 2b00 cmp r3, #0 + 800bd34: d002 beq.n 800bd3c { UART_AdvFeatureConfig(huart); - 800bd32: 6878 ldr r0, [r7, #4] - 800bd34: f000 faca bl 800c2cc + 800bd36: 6878 ldr r0, [r7, #4] + 800bd38: f000 faca bl 800c2d0 } /* 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)); - 800bd38: 687b ldr r3, [r7, #4] - 800bd3a: 681b ldr r3, [r3, #0] - 800bd3c: 685a ldr r2, [r3, #4] - 800bd3e: 687b ldr r3, [r7, #4] - 800bd40: 681b ldr r3, [r3, #0] - 800bd42: f422 4290 bic.w r2, r2, #18432 ; 0x4800 - 800bd46: 605a str r2, [r3, #4] + 800bd3c: 687b ldr r3, [r7, #4] + 800bd3e: 681b ldr r3, [r3, #0] + 800bd40: 685a ldr r2, [r3, #4] + 800bd42: 687b ldr r3, [r7, #4] + 800bd44: 681b ldr r3, [r3, #0] + 800bd46: f422 4290 bic.w r2, r2, #18432 ; 0x4800 + 800bd4a: 605a str r2, [r3, #4] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 800bd48: 687b ldr r3, [r7, #4] - 800bd4a: 681b ldr r3, [r3, #0] - 800bd4c: 689a ldr r2, [r3, #8] - 800bd4e: 687b ldr r3, [r7, #4] - 800bd50: 681b ldr r3, [r3, #0] - 800bd52: f022 022a bic.w r2, r2, #42 ; 0x2a - 800bd56: 609a str r2, [r3, #8] + 800bd4c: 687b ldr r3, [r7, #4] + 800bd4e: 681b ldr r3, [r3, #0] + 800bd50: 689a ldr r2, [r3, #8] + 800bd52: 687b ldr r3, [r7, #4] + 800bd54: 681b ldr r3, [r3, #0] + 800bd56: f022 022a bic.w r2, r2, #42 ; 0x2a + 800bd5a: 609a str r2, [r3, #8] __HAL_UART_ENABLE(huart); - 800bd58: 687b ldr r3, [r7, #4] - 800bd5a: 681b ldr r3, [r3, #0] - 800bd5c: 681a ldr r2, [r3, #0] - 800bd5e: 687b ldr r3, [r7, #4] - 800bd60: 681b ldr r3, [r3, #0] - 800bd62: f042 0201 orr.w r2, r2, #1 - 800bd66: 601a str r2, [r3, #0] + 800bd5c: 687b ldr r3, [r7, #4] + 800bd5e: 681b ldr r3, [r3, #0] + 800bd60: 681a ldr r2, [r3, #0] + 800bd62: 687b ldr r3, [r7, #4] + 800bd64: 681b ldr r3, [r3, #0] + 800bd66: f042 0201 orr.w r2, r2, #1 + 800bd6a: 601a str r2, [r3, #0] /* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */ return (UART_CheckIdleState(huart)); - 800bd68: 6878 ldr r0, [r7, #4] - 800bd6a: f000 fb51 bl 800c410 - 800bd6e: 4603 mov r3, r0 + 800bd6c: 6878 ldr r0, [r7, #4] + 800bd6e: f000 fb51 bl 800c414 + 800bd72: 4603 mov r3, r0 } - 800bd70: 4618 mov r0, r3 - 800bd72: 3708 adds r7, #8 - 800bd74: 46bd mov sp, r7 - 800bd76: bd80 pop {r7, pc} + 800bd74: 4618 mov r0, r3 + 800bd76: 3708 adds r7, #8 + 800bd78: 46bd mov sp, r7 + 800bd7a: bd80 pop {r7, pc} -0800bd78 : +0800bd7c : * @brief Configure the UART peripheral. * @param huart UART handle. * @retval HAL status */ HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart) { - 800bd78: b580 push {r7, lr} - 800bd7a: b088 sub sp, #32 - 800bd7c: af00 add r7, sp, #0 - 800bd7e: 6078 str r0, [r7, #4] + 800bd7c: b580 push {r7, lr} + 800bd7e: b088 sub sp, #32 + 800bd80: af00 add r7, sp, #0 + 800bd82: 6078 str r0, [r7, #4] uint32_t tmpreg; uint16_t brrtemp; UART_ClockSourceTypeDef clocksource; uint32_t usartdiv = 0x00000000U; - 800bd80: 2300 movs r3, #0 - 800bd82: 61bb str r3, [r7, #24] - HAL_StatusTypeDef ret = HAL_OK; 800bd84: 2300 movs r3, #0 - 800bd86: 75fb strb r3, [r7, #23] + 800bd86: 61bb str r3, [r7, #24] + HAL_StatusTypeDef ret = HAL_OK; + 800bd88: 2300 movs r3, #0 + 800bd8a: 75fb strb r3, [r7, #23] * the UART Word Length, Parity, Mode and oversampling: * set the M bits according to huart->Init.WordLength value * set PCE and PS bits according to huart->Init.Parity value * set TE and RE bits according to huart->Init.Mode value * set OVER8 bit according to huart->Init.OverSampling value */ tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling ; - 800bd88: 687b ldr r3, [r7, #4] - 800bd8a: 689a ldr r2, [r3, #8] 800bd8c: 687b ldr r3, [r7, #4] - 800bd8e: 691b ldr r3, [r3, #16] - 800bd90: 431a orrs r2, r3 - 800bd92: 687b ldr r3, [r7, #4] - 800bd94: 695b ldr r3, [r3, #20] - 800bd96: 431a orrs r2, r3 - 800bd98: 687b ldr r3, [r7, #4] - 800bd9a: 69db ldr r3, [r3, #28] - 800bd9c: 4313 orrs r3, r2 - 800bd9e: 613b str r3, [r7, #16] + 800bd8e: 689a ldr r2, [r3, #8] + 800bd90: 687b ldr r3, [r7, #4] + 800bd92: 691b ldr r3, [r3, #16] + 800bd94: 431a orrs r2, r3 + 800bd96: 687b ldr r3, [r7, #4] + 800bd98: 695b ldr r3, [r3, #20] + 800bd9a: 431a orrs r2, r3 + 800bd9c: 687b ldr r3, [r7, #4] + 800bd9e: 69db ldr r3, [r3, #28] + 800bda0: 4313 orrs r3, r2 + 800bda2: 613b str r3, [r7, #16] MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg); - 800bda0: 687b ldr r3, [r7, #4] - 800bda2: 681b ldr r3, [r3, #0] - 800bda4: 681a ldr r2, [r3, #0] - 800bda6: 4bb1 ldr r3, [pc, #708] ; (800c06c ) - 800bda8: 4013 ands r3, r2 - 800bdaa: 687a ldr r2, [r7, #4] - 800bdac: 6812 ldr r2, [r2, #0] - 800bdae: 6939 ldr r1, [r7, #16] - 800bdb0: 430b orrs r3, r1 - 800bdb2: 6013 str r3, [r2, #0] + 800bda4: 687b ldr r3, [r7, #4] + 800bda6: 681b ldr r3, [r3, #0] + 800bda8: 681a ldr r2, [r3, #0] + 800bdaa: 4bb1 ldr r3, [pc, #708] ; (800c070 ) + 800bdac: 4013 ands r3, r2 + 800bdae: 687a ldr r2, [r7, #4] + 800bdb0: 6812 ldr r2, [r2, #0] + 800bdb2: 6939 ldr r1, [r7, #16] + 800bdb4: 430b orrs r3, r1 + 800bdb6: 6013 str r3, [r2, #0] /*-------------------------- USART CR2 Configuration -----------------------*/ /* Configure the UART Stop Bits: Set STOP[13:12] bits according * to huart->Init.StopBits value */ MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits); - 800bdb4: 687b ldr r3, [r7, #4] - 800bdb6: 681b ldr r3, [r3, #0] - 800bdb8: 685b ldr r3, [r3, #4] - 800bdba: f423 5140 bic.w r1, r3, #12288 ; 0x3000 - 800bdbe: 687b ldr r3, [r7, #4] - 800bdc0: 68da ldr r2, [r3, #12] + 800bdb8: 687b ldr r3, [r7, #4] + 800bdba: 681b ldr r3, [r3, #0] + 800bdbc: 685b ldr r3, [r3, #4] + 800bdbe: f423 5140 bic.w r1, r3, #12288 ; 0x3000 800bdc2: 687b ldr r3, [r7, #4] - 800bdc4: 681b ldr r3, [r3, #0] - 800bdc6: 430a orrs r2, r1 - 800bdc8: 605a str r2, [r3, #4] + 800bdc4: 68da ldr r2, [r3, #12] + 800bdc6: 687b ldr r3, [r7, #4] + 800bdc8: 681b ldr r3, [r3, #0] + 800bdca: 430a orrs r2, r1 + 800bdcc: 605a str r2, [r3, #4] /* Configure * - UART HardWare Flow Control: set CTSE and RTSE bits according * to huart->Init.HwFlowCtl value * - one-bit sampling method versus three samples' majority rule according * to huart->Init.OneBitSampling (not applicable to LPUART) */ tmpreg = (uint32_t)huart->Init.HwFlowCtl; - 800bdca: 687b ldr r3, [r7, #4] - 800bdcc: 699b ldr r3, [r3, #24] - 800bdce: 613b str r3, [r7, #16] + 800bdce: 687b ldr r3, [r7, #4] + 800bdd0: 699b ldr r3, [r3, #24] + 800bdd2: 613b str r3, [r7, #16] tmpreg |= huart->Init.OneBitSampling; - 800bdd0: 687b ldr r3, [r7, #4] - 800bdd2: 6a1b ldr r3, [r3, #32] - 800bdd4: 693a ldr r2, [r7, #16] - 800bdd6: 4313 orrs r3, r2 - 800bdd8: 613b str r3, [r7, #16] + 800bdd4: 687b ldr r3, [r7, #4] + 800bdd6: 6a1b ldr r3, [r3, #32] + 800bdd8: 693a ldr r2, [r7, #16] + 800bdda: 4313 orrs r3, r2 + 800bddc: 613b str r3, [r7, #16] MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg); - 800bdda: 687b ldr r3, [r7, #4] - 800bddc: 681b ldr r3, [r3, #0] - 800bdde: 689b ldr r3, [r3, #8] - 800bde0: f423 6130 bic.w r1, r3, #2816 ; 0xb00 - 800bde4: 687b ldr r3, [r7, #4] - 800bde6: 681b ldr r3, [r3, #0] - 800bde8: 693a ldr r2, [r7, #16] - 800bdea: 430a orrs r2, r1 - 800bdec: 609a str r2, [r3, #8] + 800bdde: 687b ldr r3, [r7, #4] + 800bde0: 681b ldr r3, [r3, #0] + 800bde2: 689b ldr r3, [r3, #8] + 800bde4: f423 6130 bic.w r1, r3, #2816 ; 0xb00 + 800bde8: 687b ldr r3, [r7, #4] + 800bdea: 681b ldr r3, [r3, #0] + 800bdec: 693a ldr r2, [r7, #16] + 800bdee: 430a orrs r2, r1 + 800bdf0: 609a str r2, [r3, #8] /*-------------------------- USART BRR Configuration -----------------------*/ UART_GETCLOCKSOURCE(huart, clocksource); - 800bdee: 687b ldr r3, [r7, #4] - 800bdf0: 681b ldr r3, [r3, #0] - 800bdf2: 4a9f ldr r2, [pc, #636] ; (800c070 ) - 800bdf4: 4293 cmp r3, r2 - 800bdf6: d121 bne.n 800be3c - 800bdf8: 4b9e ldr r3, [pc, #632] ; (800c074 ) - 800bdfa: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800bdfe: f003 0303 and.w r3, r3, #3 - 800be02: 2b03 cmp r3, #3 - 800be04: d816 bhi.n 800be34 - 800be06: a201 add r2, pc, #4 ; (adr r2, 800be0c ) - 800be08: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800be0c: 0800be1d .word 0x0800be1d - 800be10: 0800be29 .word 0x0800be29 - 800be14: 0800be23 .word 0x0800be23 - 800be18: 0800be2f .word 0x0800be2f - 800be1c: 2301 movs r3, #1 - 800be1e: 77fb strb r3, [r7, #31] - 800be20: e151 b.n 800c0c6 - 800be22: 2302 movs r3, #2 - 800be24: 77fb strb r3, [r7, #31] - 800be26: e14e b.n 800c0c6 - 800be28: 2304 movs r3, #4 - 800be2a: 77fb strb r3, [r7, #31] - 800be2c: e14b b.n 800c0c6 - 800be2e: 2308 movs r3, #8 - 800be30: 77fb strb r3, [r7, #31] - 800be32: e148 b.n 800c0c6 - 800be34: 2310 movs r3, #16 - 800be36: 77fb strb r3, [r7, #31] - 800be38: bf00 nop - 800be3a: e144 b.n 800c0c6 - 800be3c: 687b ldr r3, [r7, #4] - 800be3e: 681b ldr r3, [r3, #0] - 800be40: 4a8d ldr r2, [pc, #564] ; (800c078 ) - 800be42: 4293 cmp r3, r2 - 800be44: d134 bne.n 800beb0 - 800be46: 4b8b ldr r3, [pc, #556] ; (800c074 ) - 800be48: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800be4c: f003 030c and.w r3, r3, #12 - 800be50: 2b0c cmp r3, #12 - 800be52: d829 bhi.n 800bea8 - 800be54: a201 add r2, pc, #4 ; (adr r2, 800be5c ) - 800be56: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800be5a: bf00 nop - 800be5c: 0800be91 .word 0x0800be91 - 800be60: 0800bea9 .word 0x0800bea9 - 800be64: 0800bea9 .word 0x0800bea9 - 800be68: 0800bea9 .word 0x0800bea9 - 800be6c: 0800be9d .word 0x0800be9d - 800be70: 0800bea9 .word 0x0800bea9 - 800be74: 0800bea9 .word 0x0800bea9 - 800be78: 0800bea9 .word 0x0800bea9 - 800be7c: 0800be97 .word 0x0800be97 - 800be80: 0800bea9 .word 0x0800bea9 - 800be84: 0800bea9 .word 0x0800bea9 - 800be88: 0800bea9 .word 0x0800bea9 - 800be8c: 0800bea3 .word 0x0800bea3 - 800be90: 2300 movs r3, #0 - 800be92: 77fb strb r3, [r7, #31] - 800be94: e117 b.n 800c0c6 - 800be96: 2302 movs r3, #2 - 800be98: 77fb strb r3, [r7, #31] - 800be9a: e114 b.n 800c0c6 - 800be9c: 2304 movs r3, #4 - 800be9e: 77fb strb r3, [r7, #31] - 800bea0: e111 b.n 800c0c6 - 800bea2: 2308 movs r3, #8 - 800bea4: 77fb strb r3, [r7, #31] - 800bea6: e10e b.n 800c0c6 - 800bea8: 2310 movs r3, #16 - 800beaa: 77fb strb r3, [r7, #31] - 800beac: bf00 nop - 800beae: e10a b.n 800c0c6 - 800beb0: 687b ldr r3, [r7, #4] - 800beb2: 681b ldr r3, [r3, #0] - 800beb4: 4a71 ldr r2, [pc, #452] ; (800c07c ) - 800beb6: 4293 cmp r3, r2 - 800beb8: d120 bne.n 800befc - 800beba: 4b6e ldr r3, [pc, #440] ; (800c074 ) - 800bebc: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800bec0: f003 0330 and.w r3, r3, #48 ; 0x30 - 800bec4: 2b10 cmp r3, #16 - 800bec6: d00f beq.n 800bee8 + 800bdf2: 687b ldr r3, [r7, #4] + 800bdf4: 681b ldr r3, [r3, #0] + 800bdf6: 4a9f ldr r2, [pc, #636] ; (800c074 ) + 800bdf8: 4293 cmp r3, r2 + 800bdfa: d121 bne.n 800be40 + 800bdfc: 4b9e ldr r3, [pc, #632] ; (800c078 ) + 800bdfe: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 800be02: f003 0303 and.w r3, r3, #3 + 800be06: 2b03 cmp r3, #3 + 800be08: d816 bhi.n 800be38 + 800be0a: a201 add r2, pc, #4 ; (adr r2, 800be10 ) + 800be0c: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800be10: 0800be21 .word 0x0800be21 + 800be14: 0800be2d .word 0x0800be2d + 800be18: 0800be27 .word 0x0800be27 + 800be1c: 0800be33 .word 0x0800be33 + 800be20: 2301 movs r3, #1 + 800be22: 77fb strb r3, [r7, #31] + 800be24: e151 b.n 800c0ca + 800be26: 2302 movs r3, #2 + 800be28: 77fb strb r3, [r7, #31] + 800be2a: e14e b.n 800c0ca + 800be2c: 2304 movs r3, #4 + 800be2e: 77fb strb r3, [r7, #31] + 800be30: e14b b.n 800c0ca + 800be32: 2308 movs r3, #8 + 800be34: 77fb strb r3, [r7, #31] + 800be36: e148 b.n 800c0ca + 800be38: 2310 movs r3, #16 + 800be3a: 77fb strb r3, [r7, #31] + 800be3c: bf00 nop + 800be3e: e144 b.n 800c0ca + 800be40: 687b ldr r3, [r7, #4] + 800be42: 681b ldr r3, [r3, #0] + 800be44: 4a8d ldr r2, [pc, #564] ; (800c07c ) + 800be46: 4293 cmp r3, r2 + 800be48: d134 bne.n 800beb4 + 800be4a: 4b8b ldr r3, [pc, #556] ; (800c078 ) + 800be4c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 800be50: f003 030c and.w r3, r3, #12 + 800be54: 2b0c cmp r3, #12 + 800be56: d829 bhi.n 800beac + 800be58: a201 add r2, pc, #4 ; (adr r2, 800be60 ) + 800be5a: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800be5e: bf00 nop + 800be60: 0800be95 .word 0x0800be95 + 800be64: 0800bead .word 0x0800bead + 800be68: 0800bead .word 0x0800bead + 800be6c: 0800bead .word 0x0800bead + 800be70: 0800bea1 .word 0x0800bea1 + 800be74: 0800bead .word 0x0800bead + 800be78: 0800bead .word 0x0800bead + 800be7c: 0800bead .word 0x0800bead + 800be80: 0800be9b .word 0x0800be9b + 800be84: 0800bead .word 0x0800bead + 800be88: 0800bead .word 0x0800bead + 800be8c: 0800bead .word 0x0800bead + 800be90: 0800bea7 .word 0x0800bea7 + 800be94: 2300 movs r3, #0 + 800be96: 77fb strb r3, [r7, #31] + 800be98: e117 b.n 800c0ca + 800be9a: 2302 movs r3, #2 + 800be9c: 77fb strb r3, [r7, #31] + 800be9e: e114 b.n 800c0ca + 800bea0: 2304 movs r3, #4 + 800bea2: 77fb strb r3, [r7, #31] + 800bea4: e111 b.n 800c0ca + 800bea6: 2308 movs r3, #8 + 800bea8: 77fb strb r3, [r7, #31] + 800beaa: e10e b.n 800c0ca + 800beac: 2310 movs r3, #16 + 800beae: 77fb strb r3, [r7, #31] + 800beb0: bf00 nop + 800beb2: e10a b.n 800c0ca + 800beb4: 687b ldr r3, [r7, #4] + 800beb6: 681b ldr r3, [r3, #0] + 800beb8: 4a71 ldr r2, [pc, #452] ; (800c080 ) + 800beba: 4293 cmp r3, r2 + 800bebc: d120 bne.n 800bf00 + 800bebe: 4b6e ldr r3, [pc, #440] ; (800c078 ) + 800bec0: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 800bec4: f003 0330 and.w r3, r3, #48 ; 0x30 800bec8: 2b10 cmp r3, #16 - 800beca: d802 bhi.n 800bed2 - 800becc: 2b00 cmp r3, #0 - 800bece: d005 beq.n 800bedc - 800bed0: e010 b.n 800bef4 - 800bed2: 2b20 cmp r3, #32 - 800bed4: d005 beq.n 800bee2 - 800bed6: 2b30 cmp r3, #48 ; 0x30 - 800bed8: d009 beq.n 800beee - 800beda: e00b b.n 800bef4 - 800bedc: 2300 movs r3, #0 - 800bede: 77fb strb r3, [r7, #31] - 800bee0: e0f1 b.n 800c0c6 - 800bee2: 2302 movs r3, #2 - 800bee4: 77fb strb r3, [r7, #31] - 800bee6: e0ee b.n 800c0c6 - 800bee8: 2304 movs r3, #4 - 800beea: 77fb strb r3, [r7, #31] - 800beec: e0eb b.n 800c0c6 - 800beee: 2308 movs r3, #8 - 800bef0: 77fb strb r3, [r7, #31] - 800bef2: e0e8 b.n 800c0c6 - 800bef4: 2310 movs r3, #16 - 800bef6: 77fb strb r3, [r7, #31] - 800bef8: bf00 nop - 800befa: e0e4 b.n 800c0c6 - 800befc: 687b ldr r3, [r7, #4] - 800befe: 681b ldr r3, [r3, #0] - 800bf00: 4a5f ldr r2, [pc, #380] ; (800c080 ) - 800bf02: 4293 cmp r3, r2 - 800bf04: d120 bne.n 800bf48 - 800bf06: 4b5b ldr r3, [pc, #364] ; (800c074 ) - 800bf08: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800bf0c: f003 03c0 and.w r3, r3, #192 ; 0xc0 - 800bf10: 2b40 cmp r3, #64 ; 0x40 - 800bf12: d00f beq.n 800bf34 + 800beca: d00f beq.n 800beec + 800becc: 2b10 cmp r3, #16 + 800bece: d802 bhi.n 800bed6 + 800bed0: 2b00 cmp r3, #0 + 800bed2: d005 beq.n 800bee0 + 800bed4: e010 b.n 800bef8 + 800bed6: 2b20 cmp r3, #32 + 800bed8: d005 beq.n 800bee6 + 800beda: 2b30 cmp r3, #48 ; 0x30 + 800bedc: d009 beq.n 800bef2 + 800bede: e00b b.n 800bef8 + 800bee0: 2300 movs r3, #0 + 800bee2: 77fb strb r3, [r7, #31] + 800bee4: e0f1 b.n 800c0ca + 800bee6: 2302 movs r3, #2 + 800bee8: 77fb strb r3, [r7, #31] + 800beea: e0ee b.n 800c0ca + 800beec: 2304 movs r3, #4 + 800beee: 77fb strb r3, [r7, #31] + 800bef0: e0eb b.n 800c0ca + 800bef2: 2308 movs r3, #8 + 800bef4: 77fb strb r3, [r7, #31] + 800bef6: e0e8 b.n 800c0ca + 800bef8: 2310 movs r3, #16 + 800befa: 77fb strb r3, [r7, #31] + 800befc: bf00 nop + 800befe: e0e4 b.n 800c0ca + 800bf00: 687b ldr r3, [r7, #4] + 800bf02: 681b ldr r3, [r3, #0] + 800bf04: 4a5f ldr r2, [pc, #380] ; (800c084 ) + 800bf06: 4293 cmp r3, r2 + 800bf08: d120 bne.n 800bf4c + 800bf0a: 4b5b ldr r3, [pc, #364] ; (800c078 ) + 800bf0c: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 800bf10: f003 03c0 and.w r3, r3, #192 ; 0xc0 800bf14: 2b40 cmp r3, #64 ; 0x40 - 800bf16: d802 bhi.n 800bf1e - 800bf18: 2b00 cmp r3, #0 - 800bf1a: d005 beq.n 800bf28 - 800bf1c: e010 b.n 800bf40 - 800bf1e: 2b80 cmp r3, #128 ; 0x80 - 800bf20: d005 beq.n 800bf2e - 800bf22: 2bc0 cmp r3, #192 ; 0xc0 - 800bf24: d009 beq.n 800bf3a - 800bf26: e00b b.n 800bf40 - 800bf28: 2300 movs r3, #0 - 800bf2a: 77fb strb r3, [r7, #31] - 800bf2c: e0cb b.n 800c0c6 - 800bf2e: 2302 movs r3, #2 - 800bf30: 77fb strb r3, [r7, #31] - 800bf32: e0c8 b.n 800c0c6 - 800bf34: 2304 movs r3, #4 - 800bf36: 77fb strb r3, [r7, #31] - 800bf38: e0c5 b.n 800c0c6 - 800bf3a: 2308 movs r3, #8 - 800bf3c: 77fb strb r3, [r7, #31] - 800bf3e: e0c2 b.n 800c0c6 - 800bf40: 2310 movs r3, #16 - 800bf42: 77fb strb r3, [r7, #31] - 800bf44: bf00 nop - 800bf46: e0be b.n 800c0c6 - 800bf48: 687b ldr r3, [r7, #4] - 800bf4a: 681b ldr r3, [r3, #0] - 800bf4c: 4a4d ldr r2, [pc, #308] ; (800c084 ) - 800bf4e: 4293 cmp r3, r2 - 800bf50: d124 bne.n 800bf9c - 800bf52: 4b48 ldr r3, [pc, #288] ; (800c074 ) - 800bf54: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800bf58: f403 7340 and.w r3, r3, #768 ; 0x300 - 800bf5c: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800bf60: d012 beq.n 800bf88 - 800bf62: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 800bf66: d802 bhi.n 800bf6e - 800bf68: 2b00 cmp r3, #0 - 800bf6a: d007 beq.n 800bf7c - 800bf6c: e012 b.n 800bf94 - 800bf6e: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 800bf72: d006 beq.n 800bf82 - 800bf74: f5b3 7f40 cmp.w r3, #768 ; 0x300 - 800bf78: d009 beq.n 800bf8e - 800bf7a: e00b b.n 800bf94 - 800bf7c: 2300 movs r3, #0 - 800bf7e: 77fb strb r3, [r7, #31] - 800bf80: e0a1 b.n 800c0c6 - 800bf82: 2302 movs r3, #2 - 800bf84: 77fb strb r3, [r7, #31] - 800bf86: e09e b.n 800c0c6 - 800bf88: 2304 movs r3, #4 - 800bf8a: 77fb strb r3, [r7, #31] - 800bf8c: e09b b.n 800c0c6 - 800bf8e: 2308 movs r3, #8 - 800bf90: 77fb strb r3, [r7, #31] - 800bf92: e098 b.n 800c0c6 - 800bf94: 2310 movs r3, #16 - 800bf96: 77fb strb r3, [r7, #31] - 800bf98: bf00 nop - 800bf9a: e094 b.n 800c0c6 - 800bf9c: 687b ldr r3, [r7, #4] - 800bf9e: 681b ldr r3, [r3, #0] - 800bfa0: 4a39 ldr r2, [pc, #228] ; (800c088 ) - 800bfa2: 4293 cmp r3, r2 - 800bfa4: d124 bne.n 800bff0 - 800bfa6: 4b33 ldr r3, [pc, #204] ; (800c074 ) - 800bfa8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800bfac: f403 6340 and.w r3, r3, #3072 ; 0xc00 - 800bfb0: f5b3 6f80 cmp.w r3, #1024 ; 0x400 - 800bfb4: d012 beq.n 800bfdc - 800bfb6: f5b3 6f80 cmp.w r3, #1024 ; 0x400 - 800bfba: d802 bhi.n 800bfc2 - 800bfbc: 2b00 cmp r3, #0 - 800bfbe: d007 beq.n 800bfd0 - 800bfc0: e012 b.n 800bfe8 - 800bfc2: f5b3 6f00 cmp.w r3, #2048 ; 0x800 - 800bfc6: d006 beq.n 800bfd6 - 800bfc8: f5b3 6f40 cmp.w r3, #3072 ; 0xc00 - 800bfcc: d009 beq.n 800bfe2 - 800bfce: e00b b.n 800bfe8 - 800bfd0: 2301 movs r3, #1 - 800bfd2: 77fb strb r3, [r7, #31] - 800bfd4: e077 b.n 800c0c6 - 800bfd6: 2302 movs r3, #2 - 800bfd8: 77fb strb r3, [r7, #31] - 800bfda: e074 b.n 800c0c6 - 800bfdc: 2304 movs r3, #4 - 800bfde: 77fb strb r3, [r7, #31] - 800bfe0: e071 b.n 800c0c6 - 800bfe2: 2308 movs r3, #8 - 800bfe4: 77fb strb r3, [r7, #31] - 800bfe6: e06e b.n 800c0c6 - 800bfe8: 2310 movs r3, #16 - 800bfea: 77fb strb r3, [r7, #31] - 800bfec: bf00 nop - 800bfee: e06a b.n 800c0c6 - 800bff0: 687b ldr r3, [r7, #4] - 800bff2: 681b ldr r3, [r3, #0] - 800bff4: 4a25 ldr r2, [pc, #148] ; (800c08c ) - 800bff6: 4293 cmp r3, r2 - 800bff8: d124 bne.n 800c044 - 800bffa: 4b1e ldr r3, [pc, #120] ; (800c074 ) - 800bffc: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800c000: f403 5340 and.w r3, r3, #12288 ; 0x3000 - 800c004: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 800c008: d012 beq.n 800c030 - 800c00a: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 - 800c00e: d802 bhi.n 800c016 - 800c010: 2b00 cmp r3, #0 - 800c012: d007 beq.n 800c024 - 800c014: e012 b.n 800c03c - 800c016: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 - 800c01a: d006 beq.n 800c02a - 800c01c: f5b3 5f40 cmp.w r3, #12288 ; 0x3000 - 800c020: d009 beq.n 800c036 - 800c022: e00b b.n 800c03c - 800c024: 2300 movs r3, #0 - 800c026: 77fb strb r3, [r7, #31] - 800c028: e04d b.n 800c0c6 - 800c02a: 2302 movs r3, #2 - 800c02c: 77fb strb r3, [r7, #31] - 800c02e: e04a b.n 800c0c6 - 800c030: 2304 movs r3, #4 - 800c032: 77fb strb r3, [r7, #31] - 800c034: e047 b.n 800c0c6 - 800c036: 2308 movs r3, #8 - 800c038: 77fb strb r3, [r7, #31] - 800c03a: e044 b.n 800c0c6 - 800c03c: 2310 movs r3, #16 - 800c03e: 77fb strb r3, [r7, #31] - 800c040: bf00 nop - 800c042: e040 b.n 800c0c6 - 800c044: 687b ldr r3, [r7, #4] - 800c046: 681b ldr r3, [r3, #0] - 800c048: 4a11 ldr r2, [pc, #68] ; (800c090 ) - 800c04a: 4293 cmp r3, r2 - 800c04c: d139 bne.n 800c0c2 - 800c04e: 4b09 ldr r3, [pc, #36] ; (800c074 ) - 800c050: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 800c054: f403 4340 and.w r3, r3, #49152 ; 0xc000 - 800c058: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 800c05c: d027 beq.n 800c0ae - 800c05e: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 800c062: d817 bhi.n 800c094 - 800c064: 2b00 cmp r3, #0 - 800c066: d01c beq.n 800c0a2 - 800c068: e027 b.n 800c0ba - 800c06a: bf00 nop - 800c06c: efff69f3 .word 0xefff69f3 - 800c070: 40011000 .word 0x40011000 - 800c074: 40023800 .word 0x40023800 - 800c078: 40004400 .word 0x40004400 - 800c07c: 40004800 .word 0x40004800 - 800c080: 40004c00 .word 0x40004c00 - 800c084: 40005000 .word 0x40005000 - 800c088: 40011400 .word 0x40011400 - 800c08c: 40007800 .word 0x40007800 - 800c090: 40007c00 .word 0x40007c00 - 800c094: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 800c098: d006 beq.n 800c0a8 - 800c09a: f5b3 4f40 cmp.w r3, #49152 ; 0xc000 - 800c09e: d009 beq.n 800c0b4 - 800c0a0: e00b b.n 800c0ba - 800c0a2: 2300 movs r3, #0 - 800c0a4: 77fb strb r3, [r7, #31] - 800c0a6: e00e b.n 800c0c6 - 800c0a8: 2302 movs r3, #2 - 800c0aa: 77fb strb r3, [r7, #31] - 800c0ac: e00b b.n 800c0c6 - 800c0ae: 2304 movs r3, #4 - 800c0b0: 77fb strb r3, [r7, #31] - 800c0b2: e008 b.n 800c0c6 - 800c0b4: 2308 movs r3, #8 - 800c0b6: 77fb strb r3, [r7, #31] - 800c0b8: e005 b.n 800c0c6 - 800c0ba: 2310 movs r3, #16 - 800c0bc: 77fb strb r3, [r7, #31] - 800c0be: bf00 nop - 800c0c0: e001 b.n 800c0c6 - 800c0c2: 2310 movs r3, #16 - 800c0c4: 77fb strb r3, [r7, #31] + 800bf16: d00f beq.n 800bf38 + 800bf18: 2b40 cmp r3, #64 ; 0x40 + 800bf1a: d802 bhi.n 800bf22 + 800bf1c: 2b00 cmp r3, #0 + 800bf1e: d005 beq.n 800bf2c + 800bf20: e010 b.n 800bf44 + 800bf22: 2b80 cmp r3, #128 ; 0x80 + 800bf24: d005 beq.n 800bf32 + 800bf26: 2bc0 cmp r3, #192 ; 0xc0 + 800bf28: d009 beq.n 800bf3e + 800bf2a: e00b b.n 800bf44 + 800bf2c: 2300 movs r3, #0 + 800bf2e: 77fb strb r3, [r7, #31] + 800bf30: e0cb b.n 800c0ca + 800bf32: 2302 movs r3, #2 + 800bf34: 77fb strb r3, [r7, #31] + 800bf36: e0c8 b.n 800c0ca + 800bf38: 2304 movs r3, #4 + 800bf3a: 77fb strb r3, [r7, #31] + 800bf3c: e0c5 b.n 800c0ca + 800bf3e: 2308 movs r3, #8 + 800bf40: 77fb strb r3, [r7, #31] + 800bf42: e0c2 b.n 800c0ca + 800bf44: 2310 movs r3, #16 + 800bf46: 77fb strb r3, [r7, #31] + 800bf48: bf00 nop + 800bf4a: e0be b.n 800c0ca + 800bf4c: 687b ldr r3, [r7, #4] + 800bf4e: 681b ldr r3, [r3, #0] + 800bf50: 4a4d ldr r2, [pc, #308] ; (800c088 ) + 800bf52: 4293 cmp r3, r2 + 800bf54: d124 bne.n 800bfa0 + 800bf56: 4b48 ldr r3, [pc, #288] ; (800c078 ) + 800bf58: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 800bf5c: f403 7340 and.w r3, r3, #768 ; 0x300 + 800bf60: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800bf64: d012 beq.n 800bf8c + 800bf66: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 800bf6a: d802 bhi.n 800bf72 + 800bf6c: 2b00 cmp r3, #0 + 800bf6e: d007 beq.n 800bf80 + 800bf70: e012 b.n 800bf98 + 800bf72: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 800bf76: d006 beq.n 800bf86 + 800bf78: f5b3 7f40 cmp.w r3, #768 ; 0x300 + 800bf7c: d009 beq.n 800bf92 + 800bf7e: e00b b.n 800bf98 + 800bf80: 2300 movs r3, #0 + 800bf82: 77fb strb r3, [r7, #31] + 800bf84: e0a1 b.n 800c0ca + 800bf86: 2302 movs r3, #2 + 800bf88: 77fb strb r3, [r7, #31] + 800bf8a: e09e b.n 800c0ca + 800bf8c: 2304 movs r3, #4 + 800bf8e: 77fb strb r3, [r7, #31] + 800bf90: e09b b.n 800c0ca + 800bf92: 2308 movs r3, #8 + 800bf94: 77fb strb r3, [r7, #31] + 800bf96: e098 b.n 800c0ca + 800bf98: 2310 movs r3, #16 + 800bf9a: 77fb strb r3, [r7, #31] + 800bf9c: bf00 nop + 800bf9e: e094 b.n 800c0ca + 800bfa0: 687b ldr r3, [r7, #4] + 800bfa2: 681b ldr r3, [r3, #0] + 800bfa4: 4a39 ldr r2, [pc, #228] ; (800c08c ) + 800bfa6: 4293 cmp r3, r2 + 800bfa8: d124 bne.n 800bff4 + 800bfaa: 4b33 ldr r3, [pc, #204] ; (800c078 ) + 800bfac: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 800bfb0: f403 6340 and.w r3, r3, #3072 ; 0xc00 + 800bfb4: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 800bfb8: d012 beq.n 800bfe0 + 800bfba: f5b3 6f80 cmp.w r3, #1024 ; 0x400 + 800bfbe: d802 bhi.n 800bfc6 + 800bfc0: 2b00 cmp r3, #0 + 800bfc2: d007 beq.n 800bfd4 + 800bfc4: e012 b.n 800bfec + 800bfc6: f5b3 6f00 cmp.w r3, #2048 ; 0x800 + 800bfca: d006 beq.n 800bfda + 800bfcc: f5b3 6f40 cmp.w r3, #3072 ; 0xc00 + 800bfd0: d009 beq.n 800bfe6 + 800bfd2: e00b b.n 800bfec + 800bfd4: 2301 movs r3, #1 + 800bfd6: 77fb strb r3, [r7, #31] + 800bfd8: e077 b.n 800c0ca + 800bfda: 2302 movs r3, #2 + 800bfdc: 77fb strb r3, [r7, #31] + 800bfde: e074 b.n 800c0ca + 800bfe0: 2304 movs r3, #4 + 800bfe2: 77fb strb r3, [r7, #31] + 800bfe4: e071 b.n 800c0ca + 800bfe6: 2308 movs r3, #8 + 800bfe8: 77fb strb r3, [r7, #31] + 800bfea: e06e b.n 800c0ca + 800bfec: 2310 movs r3, #16 + 800bfee: 77fb strb r3, [r7, #31] + 800bff0: bf00 nop + 800bff2: e06a b.n 800c0ca + 800bff4: 687b ldr r3, [r7, #4] + 800bff6: 681b ldr r3, [r3, #0] + 800bff8: 4a25 ldr r2, [pc, #148] ; (800c090 ) + 800bffa: 4293 cmp r3, r2 + 800bffc: d124 bne.n 800c048 + 800bffe: 4b1e ldr r3, [pc, #120] ; (800c078 ) + 800c000: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 800c004: f403 5340 and.w r3, r3, #12288 ; 0x3000 + 800c008: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 800c00c: d012 beq.n 800c034 + 800c00e: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 + 800c012: d802 bhi.n 800c01a + 800c014: 2b00 cmp r3, #0 + 800c016: d007 beq.n 800c028 + 800c018: e012 b.n 800c040 + 800c01a: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 + 800c01e: d006 beq.n 800c02e + 800c020: f5b3 5f40 cmp.w r3, #12288 ; 0x3000 + 800c024: d009 beq.n 800c03a + 800c026: e00b b.n 800c040 + 800c028: 2300 movs r3, #0 + 800c02a: 77fb strb r3, [r7, #31] + 800c02c: e04d b.n 800c0ca + 800c02e: 2302 movs r3, #2 + 800c030: 77fb strb r3, [r7, #31] + 800c032: e04a b.n 800c0ca + 800c034: 2304 movs r3, #4 + 800c036: 77fb strb r3, [r7, #31] + 800c038: e047 b.n 800c0ca + 800c03a: 2308 movs r3, #8 + 800c03c: 77fb strb r3, [r7, #31] + 800c03e: e044 b.n 800c0ca + 800c040: 2310 movs r3, #16 + 800c042: 77fb strb r3, [r7, #31] + 800c044: bf00 nop + 800c046: e040 b.n 800c0ca + 800c048: 687b ldr r3, [r7, #4] + 800c04a: 681b ldr r3, [r3, #0] + 800c04c: 4a11 ldr r2, [pc, #68] ; (800c094 ) + 800c04e: 4293 cmp r3, r2 + 800c050: d139 bne.n 800c0c6 + 800c052: 4b09 ldr r3, [pc, #36] ; (800c078 ) + 800c054: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 800c058: f403 4340 and.w r3, r3, #49152 ; 0xc000 + 800c05c: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 800c060: d027 beq.n 800c0b2 + 800c062: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 800c066: d817 bhi.n 800c098 + 800c068: 2b00 cmp r3, #0 + 800c06a: d01c beq.n 800c0a6 + 800c06c: e027 b.n 800c0be + 800c06e: bf00 nop + 800c070: efff69f3 .word 0xefff69f3 + 800c074: 40011000 .word 0x40011000 + 800c078: 40023800 .word 0x40023800 + 800c07c: 40004400 .word 0x40004400 + 800c080: 40004800 .word 0x40004800 + 800c084: 40004c00 .word 0x40004c00 + 800c088: 40005000 .word 0x40005000 + 800c08c: 40011400 .word 0x40011400 + 800c090: 40007800 .word 0x40007800 + 800c094: 40007c00 .word 0x40007c00 + 800c098: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 800c09c: d006 beq.n 800c0ac + 800c09e: f5b3 4f40 cmp.w r3, #49152 ; 0xc000 + 800c0a2: d009 beq.n 800c0b8 + 800c0a4: e00b b.n 800c0be + 800c0a6: 2300 movs r3, #0 + 800c0a8: 77fb strb r3, [r7, #31] + 800c0aa: e00e b.n 800c0ca + 800c0ac: 2302 movs r3, #2 + 800c0ae: 77fb strb r3, [r7, #31] + 800c0b0: e00b b.n 800c0ca + 800c0b2: 2304 movs r3, #4 + 800c0b4: 77fb strb r3, [r7, #31] + 800c0b6: e008 b.n 800c0ca + 800c0b8: 2308 movs r3, #8 + 800c0ba: 77fb strb r3, [r7, #31] + 800c0bc: e005 b.n 800c0ca + 800c0be: 2310 movs r3, #16 + 800c0c0: 77fb strb r3, [r7, #31] + 800c0c2: bf00 nop + 800c0c4: e001 b.n 800c0ca + 800c0c6: 2310 movs r3, #16 + 800c0c8: 77fb strb r3, [r7, #31] if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - 800c0c6: 687b ldr r3, [r7, #4] - 800c0c8: 69db ldr r3, [r3, #28] - 800c0ca: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 - 800c0ce: d17f bne.n 800c1d0 + 800c0ca: 687b ldr r3, [r7, #4] + 800c0cc: 69db ldr r3, [r3, #28] + 800c0ce: f5b3 4f00 cmp.w r3, #32768 ; 0x8000 + 800c0d2: d17f bne.n 800c1d4 { switch (clocksource) - 800c0d0: 7ffb ldrb r3, [r7, #31] - 800c0d2: 2b08 cmp r3, #8 - 800c0d4: d85c bhi.n 800c190 - 800c0d6: a201 add r2, pc, #4 ; (adr r2, 800c0dc ) - 800c0d8: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800c0dc: 0800c101 .word 0x0800c101 - 800c0e0: 0800c121 .word 0x0800c121 - 800c0e4: 0800c141 .word 0x0800c141 - 800c0e8: 0800c191 .word 0x0800c191 - 800c0ec: 0800c159 .word 0x0800c159 - 800c0f0: 0800c191 .word 0x0800c191 - 800c0f4: 0800c191 .word 0x0800c191 - 800c0f8: 0800c191 .word 0x0800c191 - 800c0fc: 0800c179 .word 0x0800c179 + 800c0d4: 7ffb ldrb r3, [r7, #31] + 800c0d6: 2b08 cmp r3, #8 + 800c0d8: d85c bhi.n 800c194 + 800c0da: a201 add r2, pc, #4 ; (adr r2, 800c0e0 ) + 800c0dc: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800c0e0: 0800c105 .word 0x0800c105 + 800c0e4: 0800c125 .word 0x0800c125 + 800c0e8: 0800c145 .word 0x0800c145 + 800c0ec: 0800c195 .word 0x0800c195 + 800c0f0: 0800c15d .word 0x0800c15d + 800c0f4: 0800c195 .word 0x0800c195 + 800c0f8: 0800c195 .word 0x0800c195 + 800c0fc: 0800c195 .word 0x0800c195 + 800c100: 0800c17d .word 0x0800c17d { case UART_CLOCKSOURCE_PCLK1: pclk = HAL_RCC_GetPCLK1Freq(); - 800c100: f7fd fb78 bl 80097f4 - 800c104: 60f8 str r0, [r7, #12] + 800c104: f7fd fb78 bl 80097f8 + 800c108: 60f8 str r0, [r7, #12] usartdiv = (uint16_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate)); - 800c106: 68fb ldr r3, [r7, #12] - 800c108: 005a lsls r2, r3, #1 - 800c10a: 687b ldr r3, [r7, #4] - 800c10c: 685b ldr r3, [r3, #4] - 800c10e: 085b lsrs r3, r3, #1 - 800c110: 441a add r2, r3 - 800c112: 687b ldr r3, [r7, #4] - 800c114: 685b ldr r3, [r3, #4] - 800c116: fbb2 f3f3 udiv r3, r2, r3 - 800c11a: b29b uxth r3, r3 - 800c11c: 61bb str r3, [r7, #24] + 800c10a: 68fb ldr r3, [r7, #12] + 800c10c: 005a lsls r2, r3, #1 + 800c10e: 687b ldr r3, [r7, #4] + 800c110: 685b ldr r3, [r3, #4] + 800c112: 085b lsrs r3, r3, #1 + 800c114: 441a add r2, r3 + 800c116: 687b ldr r3, [r7, #4] + 800c118: 685b ldr r3, [r3, #4] + 800c11a: fbb2 f3f3 udiv r3, r2, r3 + 800c11e: b29b uxth r3, r3 + 800c120: 61bb str r3, [r7, #24] break; - 800c11e: e03a b.n 800c196 + 800c122: e03a b.n 800c19a case UART_CLOCKSOURCE_PCLK2: pclk = HAL_RCC_GetPCLK2Freq(); - 800c120: f7fd fb7c bl 800981c - 800c124: 60f8 str r0, [r7, #12] + 800c124: f7fd fb7c bl 8009820 + 800c128: 60f8 str r0, [r7, #12] usartdiv = (uint16_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate)); - 800c126: 68fb ldr r3, [r7, #12] - 800c128: 005a lsls r2, r3, #1 - 800c12a: 687b ldr r3, [r7, #4] - 800c12c: 685b ldr r3, [r3, #4] - 800c12e: 085b lsrs r3, r3, #1 - 800c130: 441a add r2, r3 - 800c132: 687b ldr r3, [r7, #4] - 800c134: 685b ldr r3, [r3, #4] - 800c136: fbb2 f3f3 udiv r3, r2, r3 - 800c13a: b29b uxth r3, r3 - 800c13c: 61bb str r3, [r7, #24] + 800c12a: 68fb ldr r3, [r7, #12] + 800c12c: 005a lsls r2, r3, #1 + 800c12e: 687b ldr r3, [r7, #4] + 800c130: 685b ldr r3, [r3, #4] + 800c132: 085b lsrs r3, r3, #1 + 800c134: 441a add r2, r3 + 800c136: 687b ldr r3, [r7, #4] + 800c138: 685b ldr r3, [r3, #4] + 800c13a: fbb2 f3f3 udiv r3, r2, r3 + 800c13e: b29b uxth r3, r3 + 800c140: 61bb str r3, [r7, #24] break; - 800c13e: e02a b.n 800c196 + 800c142: e02a b.n 800c19a case UART_CLOCKSOURCE_HSI: usartdiv = (uint16_t)(UART_DIV_SAMPLING8(HSI_VALUE, huart->Init.BaudRate)); - 800c140: 687b ldr r3, [r7, #4] - 800c142: 685b ldr r3, [r3, #4] - 800c144: 085a lsrs r2, r3, #1 - 800c146: 4b5f ldr r3, [pc, #380] ; (800c2c4 ) - 800c148: 4413 add r3, r2 - 800c14a: 687a ldr r2, [r7, #4] - 800c14c: 6852 ldr r2, [r2, #4] - 800c14e: fbb3 f3f2 udiv r3, r3, r2 - 800c152: b29b uxth r3, r3 - 800c154: 61bb str r3, [r7, #24] + 800c144: 687b ldr r3, [r7, #4] + 800c146: 685b ldr r3, [r3, #4] + 800c148: 085a lsrs r2, r3, #1 + 800c14a: 4b5f ldr r3, [pc, #380] ; (800c2c8 ) + 800c14c: 4413 add r3, r2 + 800c14e: 687a ldr r2, [r7, #4] + 800c150: 6852 ldr r2, [r2, #4] + 800c152: fbb3 f3f2 udiv r3, r3, r2 + 800c156: b29b uxth r3, r3 + 800c158: 61bb str r3, [r7, #24] break; - 800c156: e01e b.n 800c196 + 800c15a: e01e b.n 800c19a case UART_CLOCKSOURCE_SYSCLK: pclk = HAL_RCC_GetSysClockFreq(); - 800c158: f7fd fa8e bl 8009678 - 800c15c: 60f8 str r0, [r7, #12] + 800c15c: f7fd fa8e bl 800967c + 800c160: 60f8 str r0, [r7, #12] usartdiv = (uint16_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate)); - 800c15e: 68fb ldr r3, [r7, #12] - 800c160: 005a lsls r2, r3, #1 - 800c162: 687b ldr r3, [r7, #4] - 800c164: 685b ldr r3, [r3, #4] - 800c166: 085b lsrs r3, r3, #1 - 800c168: 441a add r2, r3 - 800c16a: 687b ldr r3, [r7, #4] - 800c16c: 685b ldr r3, [r3, #4] - 800c16e: fbb2 f3f3 udiv r3, r2, r3 - 800c172: b29b uxth r3, r3 - 800c174: 61bb str r3, [r7, #24] + 800c162: 68fb ldr r3, [r7, #12] + 800c164: 005a lsls r2, r3, #1 + 800c166: 687b ldr r3, [r7, #4] + 800c168: 685b ldr r3, [r3, #4] + 800c16a: 085b lsrs r3, r3, #1 + 800c16c: 441a add r2, r3 + 800c16e: 687b ldr r3, [r7, #4] + 800c170: 685b ldr r3, [r3, #4] + 800c172: fbb2 f3f3 udiv r3, r2, r3 + 800c176: b29b uxth r3, r3 + 800c178: 61bb str r3, [r7, #24] break; - 800c176: e00e b.n 800c196 + 800c17a: e00e b.n 800c19a case UART_CLOCKSOURCE_LSE: usartdiv = (uint16_t)(UART_DIV_SAMPLING8(LSE_VALUE, huart->Init.BaudRate)); - 800c178: 687b ldr r3, [r7, #4] - 800c17a: 685b ldr r3, [r3, #4] - 800c17c: 085b lsrs r3, r3, #1 - 800c17e: f503 3280 add.w r2, r3, #65536 ; 0x10000 - 800c182: 687b ldr r3, [r7, #4] - 800c184: 685b ldr r3, [r3, #4] - 800c186: fbb2 f3f3 udiv r3, r2, r3 - 800c18a: b29b uxth r3, r3 - 800c18c: 61bb str r3, [r7, #24] + 800c17c: 687b ldr r3, [r7, #4] + 800c17e: 685b ldr r3, [r3, #4] + 800c180: 085b lsrs r3, r3, #1 + 800c182: f503 3280 add.w r2, r3, #65536 ; 0x10000 + 800c186: 687b ldr r3, [r7, #4] + 800c188: 685b ldr r3, [r3, #4] + 800c18a: fbb2 f3f3 udiv r3, r2, r3 + 800c18e: b29b uxth r3, r3 + 800c190: 61bb str r3, [r7, #24] break; - 800c18e: e002 b.n 800c196 + 800c192: e002 b.n 800c19a default: ret = HAL_ERROR; - 800c190: 2301 movs r3, #1 - 800c192: 75fb strb r3, [r7, #23] + 800c194: 2301 movs r3, #1 + 800c196: 75fb strb r3, [r7, #23] break; - 800c194: bf00 nop + 800c198: bf00 nop } /* USARTDIV must be greater than or equal to 0d16 */ if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX)) - 800c196: 69bb ldr r3, [r7, #24] - 800c198: 2b0f cmp r3, #15 - 800c19a: d916 bls.n 800c1ca - 800c19c: 69bb ldr r3, [r7, #24] - 800c19e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800c1a2: d212 bcs.n 800c1ca + 800c19a: 69bb ldr r3, [r7, #24] + 800c19c: 2b0f cmp r3, #15 + 800c19e: d916 bls.n 800c1ce + 800c1a0: 69bb ldr r3, [r7, #24] + 800c1a2: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800c1a6: d212 bcs.n 800c1ce { brrtemp = (uint16_t)(usartdiv & 0xFFF0U); - 800c1a4: 69bb ldr r3, [r7, #24] - 800c1a6: b29b uxth r3, r3 - 800c1a8: f023 030f bic.w r3, r3, #15 - 800c1ac: 817b strh r3, [r7, #10] + 800c1a8: 69bb ldr r3, [r7, #24] + 800c1aa: b29b uxth r3, r3 + 800c1ac: f023 030f bic.w r3, r3, #15 + 800c1b0: 817b strh r3, [r7, #10] brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U); - 800c1ae: 69bb ldr r3, [r7, #24] - 800c1b0: 085b lsrs r3, r3, #1 - 800c1b2: b29b uxth r3, r3 - 800c1b4: f003 0307 and.w r3, r3, #7 - 800c1b8: b29a uxth r2, r3 - 800c1ba: 897b ldrh r3, [r7, #10] - 800c1bc: 4313 orrs r3, r2 - 800c1be: 817b strh r3, [r7, #10] + 800c1b2: 69bb ldr r3, [r7, #24] + 800c1b4: 085b lsrs r3, r3, #1 + 800c1b6: b29b uxth r3, r3 + 800c1b8: f003 0307 and.w r3, r3, #7 + 800c1bc: b29a uxth r2, r3 + 800c1be: 897b ldrh r3, [r7, #10] + 800c1c0: 4313 orrs r3, r2 + 800c1c2: 817b strh r3, [r7, #10] huart->Instance->BRR = brrtemp; - 800c1c0: 687b ldr r3, [r7, #4] - 800c1c2: 681b ldr r3, [r3, #0] - 800c1c4: 897a ldrh r2, [r7, #10] - 800c1c6: 60da str r2, [r3, #12] - 800c1c8: e070 b.n 800c2ac + 800c1c4: 687b ldr r3, [r7, #4] + 800c1c6: 681b ldr r3, [r3, #0] + 800c1c8: 897a ldrh r2, [r7, #10] + 800c1ca: 60da str r2, [r3, #12] + 800c1cc: e070 b.n 800c2b0 } else { ret = HAL_ERROR; - 800c1ca: 2301 movs r3, #1 - 800c1cc: 75fb strb r3, [r7, #23] - 800c1ce: e06d b.n 800c2ac + 800c1ce: 2301 movs r3, #1 + 800c1d0: 75fb strb r3, [r7, #23] + 800c1d2: e06d b.n 800c2b0 } } else { switch (clocksource) - 800c1d0: 7ffb ldrb r3, [r7, #31] - 800c1d2: 2b08 cmp r3, #8 - 800c1d4: d859 bhi.n 800c28a - 800c1d6: a201 add r2, pc, #4 ; (adr r2, 800c1dc ) - 800c1d8: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800c1dc: 0800c201 .word 0x0800c201 - 800c1e0: 0800c21f .word 0x0800c21f - 800c1e4: 0800c23d .word 0x0800c23d - 800c1e8: 0800c28b .word 0x0800c28b - 800c1ec: 0800c255 .word 0x0800c255 - 800c1f0: 0800c28b .word 0x0800c28b - 800c1f4: 0800c28b .word 0x0800c28b - 800c1f8: 0800c28b .word 0x0800c28b - 800c1fc: 0800c273 .word 0x0800c273 + 800c1d4: 7ffb ldrb r3, [r7, #31] + 800c1d6: 2b08 cmp r3, #8 + 800c1d8: d859 bhi.n 800c28e + 800c1da: a201 add r2, pc, #4 ; (adr r2, 800c1e0 ) + 800c1dc: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800c1e0: 0800c205 .word 0x0800c205 + 800c1e4: 0800c223 .word 0x0800c223 + 800c1e8: 0800c241 .word 0x0800c241 + 800c1ec: 0800c28f .word 0x0800c28f + 800c1f0: 0800c259 .word 0x0800c259 + 800c1f4: 0800c28f .word 0x0800c28f + 800c1f8: 0800c28f .word 0x0800c28f + 800c1fc: 0800c28f .word 0x0800c28f + 800c200: 0800c277 .word 0x0800c277 { case UART_CLOCKSOURCE_PCLK1: pclk = HAL_RCC_GetPCLK1Freq(); - 800c200: f7fd faf8 bl 80097f4 - 800c204: 60f8 str r0, [r7, #12] + 800c204: f7fd faf8 bl 80097f8 + 800c208: 60f8 str r0, [r7, #12] usartdiv = (uint16_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate)); - 800c206: 687b ldr r3, [r7, #4] - 800c208: 685b ldr r3, [r3, #4] - 800c20a: 085a lsrs r2, r3, #1 - 800c20c: 68fb ldr r3, [r7, #12] - 800c20e: 441a add r2, r3 - 800c210: 687b ldr r3, [r7, #4] - 800c212: 685b ldr r3, [r3, #4] - 800c214: fbb2 f3f3 udiv r3, r2, r3 - 800c218: b29b uxth r3, r3 - 800c21a: 61bb str r3, [r7, #24] + 800c20a: 687b ldr r3, [r7, #4] + 800c20c: 685b ldr r3, [r3, #4] + 800c20e: 085a lsrs r2, r3, #1 + 800c210: 68fb ldr r3, [r7, #12] + 800c212: 441a add r2, r3 + 800c214: 687b ldr r3, [r7, #4] + 800c216: 685b ldr r3, [r3, #4] + 800c218: fbb2 f3f3 udiv r3, r2, r3 + 800c21c: b29b uxth r3, r3 + 800c21e: 61bb str r3, [r7, #24] break; - 800c21c: e038 b.n 800c290 + 800c220: e038 b.n 800c294 case UART_CLOCKSOURCE_PCLK2: pclk = HAL_RCC_GetPCLK2Freq(); - 800c21e: f7fd fafd bl 800981c - 800c222: 60f8 str r0, [r7, #12] + 800c222: f7fd fafd bl 8009820 + 800c226: 60f8 str r0, [r7, #12] usartdiv = (uint16_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate)); - 800c224: 687b ldr r3, [r7, #4] - 800c226: 685b ldr r3, [r3, #4] - 800c228: 085a lsrs r2, r3, #1 - 800c22a: 68fb ldr r3, [r7, #12] - 800c22c: 441a add r2, r3 - 800c22e: 687b ldr r3, [r7, #4] - 800c230: 685b ldr r3, [r3, #4] - 800c232: fbb2 f3f3 udiv r3, r2, r3 - 800c236: b29b uxth r3, r3 - 800c238: 61bb str r3, [r7, #24] + 800c228: 687b ldr r3, [r7, #4] + 800c22a: 685b ldr r3, [r3, #4] + 800c22c: 085a lsrs r2, r3, #1 + 800c22e: 68fb ldr r3, [r7, #12] + 800c230: 441a add r2, r3 + 800c232: 687b ldr r3, [r7, #4] + 800c234: 685b ldr r3, [r3, #4] + 800c236: fbb2 f3f3 udiv r3, r2, r3 + 800c23a: b29b uxth r3, r3 + 800c23c: 61bb str r3, [r7, #24] break; - 800c23a: e029 b.n 800c290 + 800c23e: e029 b.n 800c294 case UART_CLOCKSOURCE_HSI: usartdiv = (uint16_t)(UART_DIV_SAMPLING16(HSI_VALUE, huart->Init.BaudRate)); - 800c23c: 687b ldr r3, [r7, #4] - 800c23e: 685b ldr r3, [r3, #4] - 800c240: 085a lsrs r2, r3, #1 - 800c242: 4b21 ldr r3, [pc, #132] ; (800c2c8 ) - 800c244: 4413 add r3, r2 - 800c246: 687a ldr r2, [r7, #4] - 800c248: 6852 ldr r2, [r2, #4] - 800c24a: fbb3 f3f2 udiv r3, r3, r2 - 800c24e: b29b uxth r3, r3 - 800c250: 61bb str r3, [r7, #24] + 800c240: 687b ldr r3, [r7, #4] + 800c242: 685b ldr r3, [r3, #4] + 800c244: 085a lsrs r2, r3, #1 + 800c246: 4b21 ldr r3, [pc, #132] ; (800c2cc ) + 800c248: 4413 add r3, r2 + 800c24a: 687a ldr r2, [r7, #4] + 800c24c: 6852 ldr r2, [r2, #4] + 800c24e: fbb3 f3f2 udiv r3, r3, r2 + 800c252: b29b uxth r3, r3 + 800c254: 61bb str r3, [r7, #24] break; - 800c252: e01d b.n 800c290 + 800c256: e01d b.n 800c294 case UART_CLOCKSOURCE_SYSCLK: pclk = HAL_RCC_GetSysClockFreq(); - 800c254: f7fd fa10 bl 8009678 - 800c258: 60f8 str r0, [r7, #12] + 800c258: f7fd fa10 bl 800967c + 800c25c: 60f8 str r0, [r7, #12] usartdiv = (uint16_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate)); - 800c25a: 687b ldr r3, [r7, #4] - 800c25c: 685b ldr r3, [r3, #4] - 800c25e: 085a lsrs r2, r3, #1 - 800c260: 68fb ldr r3, [r7, #12] - 800c262: 441a add r2, r3 - 800c264: 687b ldr r3, [r7, #4] - 800c266: 685b ldr r3, [r3, #4] - 800c268: fbb2 f3f3 udiv r3, r2, r3 - 800c26c: b29b uxth r3, r3 - 800c26e: 61bb str r3, [r7, #24] + 800c25e: 687b ldr r3, [r7, #4] + 800c260: 685b ldr r3, [r3, #4] + 800c262: 085a lsrs r2, r3, #1 + 800c264: 68fb ldr r3, [r7, #12] + 800c266: 441a add r2, r3 + 800c268: 687b ldr r3, [r7, #4] + 800c26a: 685b ldr r3, [r3, #4] + 800c26c: fbb2 f3f3 udiv r3, r2, r3 + 800c270: b29b uxth r3, r3 + 800c272: 61bb str r3, [r7, #24] break; - 800c270: e00e b.n 800c290 + 800c274: e00e b.n 800c294 case UART_CLOCKSOURCE_LSE: usartdiv = (uint16_t)(UART_DIV_SAMPLING16(LSE_VALUE, huart->Init.BaudRate)); - 800c272: 687b ldr r3, [r7, #4] - 800c274: 685b ldr r3, [r3, #4] - 800c276: 085b lsrs r3, r3, #1 - 800c278: f503 4200 add.w r2, r3, #32768 ; 0x8000 - 800c27c: 687b ldr r3, [r7, #4] - 800c27e: 685b ldr r3, [r3, #4] - 800c280: fbb2 f3f3 udiv r3, r2, r3 - 800c284: b29b uxth r3, r3 - 800c286: 61bb str r3, [r7, #24] + 800c276: 687b ldr r3, [r7, #4] + 800c278: 685b ldr r3, [r3, #4] + 800c27a: 085b lsrs r3, r3, #1 + 800c27c: f503 4200 add.w r2, r3, #32768 ; 0x8000 + 800c280: 687b ldr r3, [r7, #4] + 800c282: 685b ldr r3, [r3, #4] + 800c284: fbb2 f3f3 udiv r3, r2, r3 + 800c288: b29b uxth r3, r3 + 800c28a: 61bb str r3, [r7, #24] break; - 800c288: e002 b.n 800c290 + 800c28c: e002 b.n 800c294 default: ret = HAL_ERROR; - 800c28a: 2301 movs r3, #1 - 800c28c: 75fb strb r3, [r7, #23] + 800c28e: 2301 movs r3, #1 + 800c290: 75fb strb r3, [r7, #23] break; - 800c28e: bf00 nop + 800c292: bf00 nop } /* USARTDIV must be greater than or equal to 0d16 */ if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX)) - 800c290: 69bb ldr r3, [r7, #24] - 800c292: 2b0f cmp r3, #15 - 800c294: d908 bls.n 800c2a8 - 800c296: 69bb ldr r3, [r7, #24] - 800c298: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 800c29c: d204 bcs.n 800c2a8 + 800c294: 69bb ldr r3, [r7, #24] + 800c296: 2b0f cmp r3, #15 + 800c298: d908 bls.n 800c2ac + 800c29a: 69bb ldr r3, [r7, #24] + 800c29c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 800c2a0: d204 bcs.n 800c2ac { huart->Instance->BRR = usartdiv; - 800c29e: 687b ldr r3, [r7, #4] - 800c2a0: 681b ldr r3, [r3, #0] - 800c2a2: 69ba ldr r2, [r7, #24] - 800c2a4: 60da str r2, [r3, #12] - 800c2a6: e001 b.n 800c2ac + 800c2a2: 687b ldr r3, [r7, #4] + 800c2a4: 681b ldr r3, [r3, #0] + 800c2a6: 69ba ldr r2, [r7, #24] + 800c2a8: 60da str r2, [r3, #12] + 800c2aa: e001 b.n 800c2b0 } else { ret = HAL_ERROR; - 800c2a8: 2301 movs r3, #1 - 800c2aa: 75fb strb r3, [r7, #23] + 800c2ac: 2301 movs r3, #1 + 800c2ae: 75fb strb r3, [r7, #23] } } /* Clear ISR function pointers */ huart->RxISR = NULL; - 800c2ac: 687b ldr r3, [r7, #4] - 800c2ae: 2200 movs r2, #0 - 800c2b0: 661a str r2, [r3, #96] ; 0x60 + 800c2b0: 687b ldr r3, [r7, #4] + 800c2b2: 2200 movs r2, #0 + 800c2b4: 661a str r2, [r3, #96] ; 0x60 huart->TxISR = NULL; - 800c2b2: 687b ldr r3, [r7, #4] - 800c2b4: 2200 movs r2, #0 - 800c2b6: 665a str r2, [r3, #100] ; 0x64 + 800c2b6: 687b ldr r3, [r7, #4] + 800c2b8: 2200 movs r2, #0 + 800c2ba: 665a str r2, [r3, #100] ; 0x64 return ret; - 800c2b8: 7dfb ldrb r3, [r7, #23] + 800c2bc: 7dfb ldrb r3, [r7, #23] } - 800c2ba: 4618 mov r0, r3 - 800c2bc: 3720 adds r7, #32 - 800c2be: 46bd mov sp, r7 - 800c2c0: bd80 pop {r7, pc} - 800c2c2: bf00 nop - 800c2c4: 01e84800 .word 0x01e84800 - 800c2c8: 00f42400 .word 0x00f42400 + 800c2be: 4618 mov r0, r3 + 800c2c0: 3720 adds r7, #32 + 800c2c2: 46bd mov sp, r7 + 800c2c4: bd80 pop {r7, pc} + 800c2c6: bf00 nop + 800c2c8: 01e84800 .word 0x01e84800 + 800c2cc: 00f42400 .word 0x00f42400 -0800c2cc : +0800c2d0 : * @brief Configure the UART peripheral advanced features. * @param huart UART handle. * @retval None */ void UART_AdvFeatureConfig(UART_HandleTypeDef *huart) { - 800c2cc: b480 push {r7} - 800c2ce: b083 sub sp, #12 - 800c2d0: af00 add r7, sp, #0 - 800c2d2: 6078 str r0, [r7, #4] + 800c2d0: b480 push {r7} + 800c2d2: b083 sub sp, #12 + 800c2d4: af00 add r7, sp, #0 + 800c2d6: 6078 str r0, [r7, #4] /* Check whether the set of advanced features to configure is properly set */ assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit)); /* if required, configure TX pin active level inversion */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT)) - 800c2d4: 687b ldr r3, [r7, #4] - 800c2d6: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c2d8: f003 0301 and.w r3, r3, #1 - 800c2dc: 2b00 cmp r3, #0 - 800c2de: d00a beq.n 800c2f6 + 800c2d8: 687b ldr r3, [r7, #4] + 800c2da: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c2dc: f003 0301 and.w r3, r3, #1 + 800c2e0: 2b00 cmp r3, #0 + 800c2e2: d00a beq.n 800c2fa { assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert)); MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert); - 800c2e0: 687b ldr r3, [r7, #4] - 800c2e2: 681b ldr r3, [r3, #0] - 800c2e4: 685b ldr r3, [r3, #4] - 800c2e6: f423 3100 bic.w r1, r3, #131072 ; 0x20000 - 800c2ea: 687b ldr r3, [r7, #4] - 800c2ec: 6a9a ldr r2, [r3, #40] ; 0x28 + 800c2e4: 687b ldr r3, [r7, #4] + 800c2e6: 681b ldr r3, [r3, #0] + 800c2e8: 685b ldr r3, [r3, #4] + 800c2ea: f423 3100 bic.w r1, r3, #131072 ; 0x20000 800c2ee: 687b ldr r3, [r7, #4] - 800c2f0: 681b ldr r3, [r3, #0] - 800c2f2: 430a orrs r2, r1 - 800c2f4: 605a str r2, [r3, #4] + 800c2f0: 6a9a ldr r2, [r3, #40] ; 0x28 + 800c2f2: 687b ldr r3, [r7, #4] + 800c2f4: 681b ldr r3, [r3, #0] + 800c2f6: 430a orrs r2, r1 + 800c2f8: 605a str r2, [r3, #4] } /* if required, configure RX pin active level inversion */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT)) - 800c2f6: 687b ldr r3, [r7, #4] - 800c2f8: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c2fa: f003 0302 and.w r3, r3, #2 - 800c2fe: 2b00 cmp r3, #0 - 800c300: d00a beq.n 800c318 + 800c2fa: 687b ldr r3, [r7, #4] + 800c2fc: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c2fe: f003 0302 and.w r3, r3, #2 + 800c302: 2b00 cmp r3, #0 + 800c304: d00a beq.n 800c31c { assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert)); MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert); - 800c302: 687b ldr r3, [r7, #4] - 800c304: 681b ldr r3, [r3, #0] - 800c306: 685b ldr r3, [r3, #4] - 800c308: f423 3180 bic.w r1, r3, #65536 ; 0x10000 - 800c30c: 687b ldr r3, [r7, #4] - 800c30e: 6ada ldr r2, [r3, #44] ; 0x2c + 800c306: 687b ldr r3, [r7, #4] + 800c308: 681b ldr r3, [r3, #0] + 800c30a: 685b ldr r3, [r3, #4] + 800c30c: f423 3180 bic.w r1, r3, #65536 ; 0x10000 800c310: 687b ldr r3, [r7, #4] - 800c312: 681b ldr r3, [r3, #0] - 800c314: 430a orrs r2, r1 - 800c316: 605a str r2, [r3, #4] + 800c312: 6ada ldr r2, [r3, #44] ; 0x2c + 800c314: 687b ldr r3, [r7, #4] + 800c316: 681b ldr r3, [r3, #0] + 800c318: 430a orrs r2, r1 + 800c31a: 605a str r2, [r3, #4] } /* if required, configure data inversion */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT)) - 800c318: 687b ldr r3, [r7, #4] - 800c31a: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c31c: f003 0304 and.w r3, r3, #4 - 800c320: 2b00 cmp r3, #0 - 800c322: d00a beq.n 800c33a + 800c31c: 687b ldr r3, [r7, #4] + 800c31e: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c320: f003 0304 and.w r3, r3, #4 + 800c324: 2b00 cmp r3, #0 + 800c326: d00a beq.n 800c33e { assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert)); MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert); - 800c324: 687b ldr r3, [r7, #4] - 800c326: 681b ldr r3, [r3, #0] - 800c328: 685b ldr r3, [r3, #4] - 800c32a: f423 2180 bic.w r1, r3, #262144 ; 0x40000 - 800c32e: 687b ldr r3, [r7, #4] - 800c330: 6b1a ldr r2, [r3, #48] ; 0x30 + 800c328: 687b ldr r3, [r7, #4] + 800c32a: 681b ldr r3, [r3, #0] + 800c32c: 685b ldr r3, [r3, #4] + 800c32e: f423 2180 bic.w r1, r3, #262144 ; 0x40000 800c332: 687b ldr r3, [r7, #4] - 800c334: 681b ldr r3, [r3, #0] - 800c336: 430a orrs r2, r1 - 800c338: 605a str r2, [r3, #4] + 800c334: 6b1a ldr r2, [r3, #48] ; 0x30 + 800c336: 687b ldr r3, [r7, #4] + 800c338: 681b ldr r3, [r3, #0] + 800c33a: 430a orrs r2, r1 + 800c33c: 605a str r2, [r3, #4] } /* if required, configure RX/TX pins swap */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT)) - 800c33a: 687b ldr r3, [r7, #4] - 800c33c: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c33e: f003 0308 and.w r3, r3, #8 - 800c342: 2b00 cmp r3, #0 - 800c344: d00a beq.n 800c35c + 800c33e: 687b ldr r3, [r7, #4] + 800c340: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c342: f003 0308 and.w r3, r3, #8 + 800c346: 2b00 cmp r3, #0 + 800c348: d00a beq.n 800c360 { assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap)); MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap); - 800c346: 687b ldr r3, [r7, #4] - 800c348: 681b ldr r3, [r3, #0] - 800c34a: 685b ldr r3, [r3, #4] - 800c34c: f423 4100 bic.w r1, r3, #32768 ; 0x8000 - 800c350: 687b ldr r3, [r7, #4] - 800c352: 6b5a ldr r2, [r3, #52] ; 0x34 + 800c34a: 687b ldr r3, [r7, #4] + 800c34c: 681b ldr r3, [r3, #0] + 800c34e: 685b ldr r3, [r3, #4] + 800c350: f423 4100 bic.w r1, r3, #32768 ; 0x8000 800c354: 687b ldr r3, [r7, #4] - 800c356: 681b ldr r3, [r3, #0] - 800c358: 430a orrs r2, r1 - 800c35a: 605a str r2, [r3, #4] + 800c356: 6b5a ldr r2, [r3, #52] ; 0x34 + 800c358: 687b ldr r3, [r7, #4] + 800c35a: 681b ldr r3, [r3, #0] + 800c35c: 430a orrs r2, r1 + 800c35e: 605a str r2, [r3, #4] } /* if required, configure RX overrun detection disabling */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT)) - 800c35c: 687b ldr r3, [r7, #4] - 800c35e: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c360: f003 0310 and.w r3, r3, #16 - 800c364: 2b00 cmp r3, #0 - 800c366: d00a beq.n 800c37e + 800c360: 687b ldr r3, [r7, #4] + 800c362: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c364: f003 0310 and.w r3, r3, #16 + 800c368: 2b00 cmp r3, #0 + 800c36a: d00a beq.n 800c382 { assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable)); MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable); - 800c368: 687b ldr r3, [r7, #4] - 800c36a: 681b ldr r3, [r3, #0] - 800c36c: 689b ldr r3, [r3, #8] - 800c36e: f423 5180 bic.w r1, r3, #4096 ; 0x1000 - 800c372: 687b ldr r3, [r7, #4] - 800c374: 6b9a ldr r2, [r3, #56] ; 0x38 + 800c36c: 687b ldr r3, [r7, #4] + 800c36e: 681b ldr r3, [r3, #0] + 800c370: 689b ldr r3, [r3, #8] + 800c372: f423 5180 bic.w r1, r3, #4096 ; 0x1000 800c376: 687b ldr r3, [r7, #4] - 800c378: 681b ldr r3, [r3, #0] - 800c37a: 430a orrs r2, r1 - 800c37c: 609a str r2, [r3, #8] + 800c378: 6b9a ldr r2, [r3, #56] ; 0x38 + 800c37a: 687b ldr r3, [r7, #4] + 800c37c: 681b ldr r3, [r3, #0] + 800c37e: 430a orrs r2, r1 + 800c380: 609a str r2, [r3, #8] } /* if required, configure DMA disabling on reception error */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT)) - 800c37e: 687b ldr r3, [r7, #4] - 800c380: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c382: f003 0320 and.w r3, r3, #32 - 800c386: 2b00 cmp r3, #0 - 800c388: d00a beq.n 800c3a0 + 800c382: 687b ldr r3, [r7, #4] + 800c384: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c386: f003 0320 and.w r3, r3, #32 + 800c38a: 2b00 cmp r3, #0 + 800c38c: d00a beq.n 800c3a4 { assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError)); MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError); - 800c38a: 687b ldr r3, [r7, #4] - 800c38c: 681b ldr r3, [r3, #0] - 800c38e: 689b ldr r3, [r3, #8] - 800c390: f423 5100 bic.w r1, r3, #8192 ; 0x2000 - 800c394: 687b ldr r3, [r7, #4] - 800c396: 6bda ldr r2, [r3, #60] ; 0x3c + 800c38e: 687b ldr r3, [r7, #4] + 800c390: 681b ldr r3, [r3, #0] + 800c392: 689b ldr r3, [r3, #8] + 800c394: f423 5100 bic.w r1, r3, #8192 ; 0x2000 800c398: 687b ldr r3, [r7, #4] - 800c39a: 681b ldr r3, [r3, #0] - 800c39c: 430a orrs r2, r1 - 800c39e: 609a str r2, [r3, #8] + 800c39a: 6bda ldr r2, [r3, #60] ; 0x3c + 800c39c: 687b ldr r3, [r7, #4] + 800c39e: 681b ldr r3, [r3, #0] + 800c3a0: 430a orrs r2, r1 + 800c3a2: 609a str r2, [r3, #8] } /* if required, configure auto Baud rate detection scheme */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT)) - 800c3a0: 687b ldr r3, [r7, #4] - 800c3a2: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c3a4: f003 0340 and.w r3, r3, #64 ; 0x40 - 800c3a8: 2b00 cmp r3, #0 - 800c3aa: d01a beq.n 800c3e2 + 800c3a4: 687b ldr r3, [r7, #4] + 800c3a6: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c3a8: f003 0340 and.w r3, r3, #64 ; 0x40 + 800c3ac: 2b00 cmp r3, #0 + 800c3ae: d01a beq.n 800c3e6 { assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance)); assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable)); MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable); - 800c3ac: 687b ldr r3, [r7, #4] - 800c3ae: 681b ldr r3, [r3, #0] - 800c3b0: 685b ldr r3, [r3, #4] - 800c3b2: f423 1180 bic.w r1, r3, #1048576 ; 0x100000 - 800c3b6: 687b ldr r3, [r7, #4] - 800c3b8: 6c1a ldr r2, [r3, #64] ; 0x40 + 800c3b0: 687b ldr r3, [r7, #4] + 800c3b2: 681b ldr r3, [r3, #0] + 800c3b4: 685b ldr r3, [r3, #4] + 800c3b6: f423 1180 bic.w r1, r3, #1048576 ; 0x100000 800c3ba: 687b ldr r3, [r7, #4] - 800c3bc: 681b ldr r3, [r3, #0] - 800c3be: 430a orrs r2, r1 - 800c3c0: 605a str r2, [r3, #4] + 800c3bc: 6c1a ldr r2, [r3, #64] ; 0x40 + 800c3be: 687b ldr r3, [r7, #4] + 800c3c0: 681b ldr r3, [r3, #0] + 800c3c2: 430a orrs r2, r1 + 800c3c4: 605a str r2, [r3, #4] /* set auto Baudrate detection parameters if detection is enabled */ if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE) - 800c3c2: 687b ldr r3, [r7, #4] - 800c3c4: 6c1b ldr r3, [r3, #64] ; 0x40 - 800c3c6: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 - 800c3ca: d10a bne.n 800c3e2 + 800c3c6: 687b ldr r3, [r7, #4] + 800c3c8: 6c1b ldr r3, [r3, #64] ; 0x40 + 800c3ca: f5b3 1f80 cmp.w r3, #1048576 ; 0x100000 + 800c3ce: d10a bne.n 800c3e6 { assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode)); MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode); - 800c3cc: 687b ldr r3, [r7, #4] - 800c3ce: 681b ldr r3, [r3, #0] - 800c3d0: 685b ldr r3, [r3, #4] - 800c3d2: f423 01c0 bic.w r1, r3, #6291456 ; 0x600000 - 800c3d6: 687b ldr r3, [r7, #4] - 800c3d8: 6c5a ldr r2, [r3, #68] ; 0x44 + 800c3d0: 687b ldr r3, [r7, #4] + 800c3d2: 681b ldr r3, [r3, #0] + 800c3d4: 685b ldr r3, [r3, #4] + 800c3d6: f423 01c0 bic.w r1, r3, #6291456 ; 0x600000 800c3da: 687b ldr r3, [r7, #4] - 800c3dc: 681b ldr r3, [r3, #0] - 800c3de: 430a orrs r2, r1 - 800c3e0: 605a str r2, [r3, #4] + 800c3dc: 6c5a ldr r2, [r3, #68] ; 0x44 + 800c3de: 687b ldr r3, [r7, #4] + 800c3e0: 681b ldr r3, [r3, #0] + 800c3e2: 430a orrs r2, r1 + 800c3e4: 605a str r2, [r3, #4] } } /* if required, configure MSB first on communication line */ if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT)) - 800c3e2: 687b ldr r3, [r7, #4] - 800c3e4: 6a5b ldr r3, [r3, #36] ; 0x24 - 800c3e6: f003 0380 and.w r3, r3, #128 ; 0x80 - 800c3ea: 2b00 cmp r3, #0 - 800c3ec: d00a beq.n 800c404 + 800c3e6: 687b ldr r3, [r7, #4] + 800c3e8: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c3ea: f003 0380 and.w r3, r3, #128 ; 0x80 + 800c3ee: 2b00 cmp r3, #0 + 800c3f0: d00a beq.n 800c408 { assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst)); MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst); - 800c3ee: 687b ldr r3, [r7, #4] - 800c3f0: 681b ldr r3, [r3, #0] - 800c3f2: 685b ldr r3, [r3, #4] - 800c3f4: f423 2100 bic.w r1, r3, #524288 ; 0x80000 - 800c3f8: 687b ldr r3, [r7, #4] - 800c3fa: 6c9a ldr r2, [r3, #72] ; 0x48 + 800c3f2: 687b ldr r3, [r7, #4] + 800c3f4: 681b ldr r3, [r3, #0] + 800c3f6: 685b ldr r3, [r3, #4] + 800c3f8: f423 2100 bic.w r1, r3, #524288 ; 0x80000 800c3fc: 687b ldr r3, [r7, #4] - 800c3fe: 681b ldr r3, [r3, #0] - 800c400: 430a orrs r2, r1 - 800c402: 605a str r2, [r3, #4] + 800c3fe: 6c9a ldr r2, [r3, #72] ; 0x48 + 800c400: 687b ldr r3, [r7, #4] + 800c402: 681b ldr r3, [r3, #0] + 800c404: 430a orrs r2, r1 + 800c406: 605a str r2, [r3, #4] } } - 800c404: bf00 nop - 800c406: 370c adds r7, #12 - 800c408: 46bd mov sp, r7 - 800c40a: f85d 7b04 ldr.w r7, [sp], #4 - 800c40e: 4770 bx lr + 800c408: bf00 nop + 800c40a: 370c adds r7, #12 + 800c40c: 46bd mov sp, r7 + 800c40e: f85d 7b04 ldr.w r7, [sp], #4 + 800c412: 4770 bx lr -0800c410 : +0800c414 : * @brief Check the UART Idle State. * @param huart UART handle. * @retval HAL status */ HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart) { - 800c410: b580 push {r7, lr} - 800c412: b086 sub sp, #24 - 800c414: af02 add r7, sp, #8 - 800c416: 6078 str r0, [r7, #4] + 800c414: b580 push {r7, lr} + 800c416: b086 sub sp, #24 + 800c418: af02 add r7, sp, #8 + 800c41a: 6078 str r0, [r7, #4] uint32_t tickstart; /* Initialize the UART ErrorCode */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 800c418: 687b ldr r3, [r7, #4] - 800c41a: 2200 movs r2, #0 - 800c41c: 67da str r2, [r3, #124] ; 0x7c + 800c41c: 687b ldr r3, [r7, #4] + 800c41e: 2200 movs r2, #0 + 800c420: 67da str r2, [r3, #124] ; 0x7c /* Init tickstart for timeout managment*/ tickstart = HAL_GetTick(); - 800c41e: f7f8 fd4f bl 8004ec0 - 800c422: 60f8 str r0, [r7, #12] + 800c422: f7f8 fd4f bl 8004ec4 + 800c426: 60f8 str r0, [r7, #12] /* Check if the Transmitter is enabled */ if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE) - 800c424: 687b ldr r3, [r7, #4] - 800c426: 681b ldr r3, [r3, #0] - 800c428: 681b ldr r3, [r3, #0] - 800c42a: f003 0308 and.w r3, r3, #8 - 800c42e: 2b08 cmp r3, #8 - 800c430: d10e bne.n 800c450 + 800c428: 687b ldr r3, [r7, #4] + 800c42a: 681b ldr r3, [r3, #0] + 800c42c: 681b ldr r3, [r3, #0] + 800c42e: f003 0308 and.w r3, r3, #8 + 800c432: 2b08 cmp r3, #8 + 800c434: d10e bne.n 800c454 { /* Wait until TEACK flag is set */ if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK) - 800c432: f06f 437e mvn.w r3, #4261412864 ; 0xfe000000 - 800c436: 9300 str r3, [sp, #0] - 800c438: 68fb ldr r3, [r7, #12] - 800c43a: 2200 movs r2, #0 - 800c43c: f44f 1100 mov.w r1, #2097152 ; 0x200000 - 800c440: 6878 ldr r0, [r7, #4] - 800c442: f000 f814 bl 800c46e - 800c446: 4603 mov r3, r0 - 800c448: 2b00 cmp r3, #0 - 800c44a: d001 beq.n 800c450 + 800c436: f06f 437e mvn.w r3, #4261412864 ; 0xfe000000 + 800c43a: 9300 str r3, [sp, #0] + 800c43c: 68fb ldr r3, [r7, #12] + 800c43e: 2200 movs r2, #0 + 800c440: f44f 1100 mov.w r1, #2097152 ; 0x200000 + 800c444: 6878 ldr r0, [r7, #4] + 800c446: f000 f814 bl 800c472 + 800c44a: 4603 mov r3, r0 + 800c44c: 2b00 cmp r3, #0 + 800c44e: d001 beq.n 800c454 { /* Timeout occurred */ return HAL_TIMEOUT; - 800c44c: 2303 movs r3, #3 - 800c44e: e00a b.n 800c466 + 800c450: 2303 movs r3, #3 + 800c452: e00a b.n 800c46a } } #endif /* Initialize the UART State */ huart->gState = HAL_UART_STATE_READY; - 800c450: 687b ldr r3, [r7, #4] - 800c452: 2220 movs r2, #32 - 800c454: 675a str r2, [r3, #116] ; 0x74 + 800c454: 687b ldr r3, [r7, #4] + 800c456: 2220 movs r2, #32 + 800c458: 675a str r2, [r3, #116] ; 0x74 huart->RxState = HAL_UART_STATE_READY; - 800c456: 687b ldr r3, [r7, #4] - 800c458: 2220 movs r2, #32 - 800c45a: 679a str r2, [r3, #120] ; 0x78 + 800c45a: 687b ldr r3, [r7, #4] + 800c45c: 2220 movs r2, #32 + 800c45e: 679a str r2, [r3, #120] ; 0x78 __HAL_UNLOCK(huart); - 800c45c: 687b ldr r3, [r7, #4] - 800c45e: 2200 movs r2, #0 - 800c460: f883 2070 strb.w r2, [r3, #112] ; 0x70 + 800c460: 687b ldr r3, [r7, #4] + 800c462: 2200 movs r2, #0 + 800c464: f883 2070 strb.w r2, [r3, #112] ; 0x70 return HAL_OK; - 800c464: 2300 movs r3, #0 + 800c468: 2300 movs r3, #0 } - 800c466: 4618 mov r0, r3 - 800c468: 3710 adds r7, #16 - 800c46a: 46bd mov sp, r7 - 800c46c: bd80 pop {r7, pc} + 800c46a: 4618 mov r0, r3 + 800c46c: 3710 adds r7, #16 + 800c46e: 46bd mov sp, r7 + 800c470: bd80 pop {r7, pc} -0800c46e : +0800c472 : * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status, uint32_t Tickstart, uint32_t Timeout) { - 800c46e: b580 push {r7, lr} - 800c470: b084 sub sp, #16 - 800c472: af00 add r7, sp, #0 - 800c474: 60f8 str r0, [r7, #12] - 800c476: 60b9 str r1, [r7, #8] - 800c478: 603b str r3, [r7, #0] - 800c47a: 4613 mov r3, r2 - 800c47c: 71fb strb r3, [r7, #7] + 800c472: b580 push {r7, lr} + 800c474: b084 sub sp, #16 + 800c476: af00 add r7, sp, #0 + 800c478: 60f8 str r0, [r7, #12] + 800c47a: 60b9 str r1, [r7, #8] + 800c47c: 603b str r3, [r7, #0] + 800c47e: 4613 mov r3, r2 + 800c480: 71fb strb r3, [r7, #7] /* Wait until flag is set */ while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 800c47e: e05d b.n 800c53c + 800c482: e05d b.n 800c540 { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) - 800c480: 69bb ldr r3, [r7, #24] - 800c482: f1b3 3fff cmp.w r3, #4294967295 - 800c486: d059 beq.n 800c53c + 800c484: 69bb ldr r3, [r7, #24] + 800c486: f1b3 3fff cmp.w r3, #4294967295 + 800c48a: d059 beq.n 800c540 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) - 800c488: f7f8 fd1a bl 8004ec0 - 800c48c: 4602 mov r2, r0 - 800c48e: 683b ldr r3, [r7, #0] - 800c490: 1ad3 subs r3, r2, r3 - 800c492: 69ba ldr r2, [r7, #24] - 800c494: 429a cmp r2, r3 - 800c496: d302 bcc.n 800c49e - 800c498: 69bb ldr r3, [r7, #24] - 800c49a: 2b00 cmp r3, #0 - 800c49c: d11b bne.n 800c4d6 + 800c48c: f7f8 fd1a bl 8004ec4 + 800c490: 4602 mov r2, r0 + 800c492: 683b ldr r3, [r7, #0] + 800c494: 1ad3 subs r3, r2, r3 + 800c496: 69ba ldr r2, [r7, #24] + 800c498: 429a cmp r2, r3 + 800c49a: d302 bcc.n 800c4a2 + 800c49c: 69bb ldr r3, [r7, #24] + 800c49e: 2b00 cmp r3, #0 + 800c4a0: d11b bne.n 800c4da { /* 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)); - 800c49e: 68fb ldr r3, [r7, #12] - 800c4a0: 681b ldr r3, [r3, #0] - 800c4a2: 681a ldr r2, [r3, #0] - 800c4a4: 68fb ldr r3, [r7, #12] - 800c4a6: 681b ldr r3, [r3, #0] - 800c4a8: f422 72d0 bic.w r2, r2, #416 ; 0x1a0 - 800c4ac: 601a str r2, [r3, #0] + 800c4a2: 68fb ldr r3, [r7, #12] + 800c4a4: 681b ldr r3, [r3, #0] + 800c4a6: 681a ldr r2, [r3, #0] + 800c4a8: 68fb ldr r3, [r7, #12] + 800c4aa: 681b ldr r3, [r3, #0] + 800c4ac: f422 72d0 bic.w r2, r2, #416 ; 0x1a0 + 800c4b0: 601a str r2, [r3, #0] CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 800c4ae: 68fb ldr r3, [r7, #12] - 800c4b0: 681b ldr r3, [r3, #0] - 800c4b2: 689a ldr r2, [r3, #8] - 800c4b4: 68fb ldr r3, [r7, #12] - 800c4b6: 681b ldr r3, [r3, #0] - 800c4b8: f022 0201 bic.w r2, r2, #1 - 800c4bc: 609a str r2, [r3, #8] + 800c4b2: 68fb ldr r3, [r7, #12] + 800c4b4: 681b ldr r3, [r3, #0] + 800c4b6: 689a ldr r2, [r3, #8] + 800c4b8: 68fb ldr r3, [r7, #12] + 800c4ba: 681b ldr r3, [r3, #0] + 800c4bc: f022 0201 bic.w r2, r2, #1 + 800c4c0: 609a str r2, [r3, #8] huart->gState = HAL_UART_STATE_READY; - 800c4be: 68fb ldr r3, [r7, #12] - 800c4c0: 2220 movs r2, #32 - 800c4c2: 675a str r2, [r3, #116] ; 0x74 + 800c4c2: 68fb ldr r3, [r7, #12] + 800c4c4: 2220 movs r2, #32 + 800c4c6: 675a str r2, [r3, #116] ; 0x74 huart->RxState = HAL_UART_STATE_READY; - 800c4c4: 68fb ldr r3, [r7, #12] - 800c4c6: 2220 movs r2, #32 - 800c4c8: 679a str r2, [r3, #120] ; 0x78 + 800c4c8: 68fb ldr r3, [r7, #12] + 800c4ca: 2220 movs r2, #32 + 800c4cc: 679a str r2, [r3, #120] ; 0x78 __HAL_UNLOCK(huart); - 800c4ca: 68fb ldr r3, [r7, #12] - 800c4cc: 2200 movs r2, #0 - 800c4ce: f883 2070 strb.w r2, [r3, #112] ; 0x70 + 800c4ce: 68fb ldr r3, [r7, #12] + 800c4d0: 2200 movs r2, #0 + 800c4d2: f883 2070 strb.w r2, [r3, #112] ; 0x70 return HAL_TIMEOUT; - 800c4d2: 2303 movs r3, #3 - 800c4d4: e042 b.n 800c55c + 800c4d6: 2303 movs r3, #3 + 800c4d8: e042 b.n 800c560 } if (READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) - 800c4d6: 68fb ldr r3, [r7, #12] - 800c4d8: 681b ldr r3, [r3, #0] - 800c4da: 681b ldr r3, [r3, #0] - 800c4dc: f003 0304 and.w r3, r3, #4 - 800c4e0: 2b00 cmp r3, #0 - 800c4e2: d02b beq.n 800c53c + 800c4da: 68fb ldr r3, [r7, #12] + 800c4dc: 681b ldr r3, [r3, #0] + 800c4de: 681b ldr r3, [r3, #0] + 800c4e0: f003 0304 and.w r3, r3, #4 + 800c4e4: 2b00 cmp r3, #0 + 800c4e6: d02b beq.n 800c540 { if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET) - 800c4e4: 68fb ldr r3, [r7, #12] - 800c4e6: 681b ldr r3, [r3, #0] - 800c4e8: 69db ldr r3, [r3, #28] - 800c4ea: f403 6300 and.w r3, r3, #2048 ; 0x800 - 800c4ee: f5b3 6f00 cmp.w r3, #2048 ; 0x800 - 800c4f2: d123 bne.n 800c53c + 800c4e8: 68fb ldr r3, [r7, #12] + 800c4ea: 681b ldr r3, [r3, #0] + 800c4ec: 69db ldr r3, [r3, #28] + 800c4ee: f403 6300 and.w r3, r3, #2048 ; 0x800 + 800c4f2: f5b3 6f00 cmp.w r3, #2048 ; 0x800 + 800c4f6: d123 bne.n 800c540 { /* Clear Receiver Timeout flag*/ __HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF); - 800c4f4: 68fb ldr r3, [r7, #12] - 800c4f6: 681b ldr r3, [r3, #0] - 800c4f8: f44f 6200 mov.w r2, #2048 ; 0x800 - 800c4fc: 621a str r2, [r3, #32] + 800c4f8: 68fb ldr r3, [r7, #12] + 800c4fa: 681b ldr r3, [r3, #0] + 800c4fc: f44f 6200 mov.w r2, #2048 ; 0x800 + 800c500: 621a str r2, [r3, #32] /* 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)); - 800c4fe: 68fb ldr r3, [r7, #12] - 800c500: 681b ldr r3, [r3, #0] - 800c502: 681a ldr r2, [r3, #0] - 800c504: 68fb ldr r3, [r7, #12] - 800c506: 681b ldr r3, [r3, #0] - 800c508: f422 72d0 bic.w r2, r2, #416 ; 0x1a0 - 800c50c: 601a str r2, [r3, #0] + 800c502: 68fb ldr r3, [r7, #12] + 800c504: 681b ldr r3, [r3, #0] + 800c506: 681a ldr r2, [r3, #0] + 800c508: 68fb ldr r3, [r7, #12] + 800c50a: 681b ldr r3, [r3, #0] + 800c50c: f422 72d0 bic.w r2, r2, #416 ; 0x1a0 + 800c510: 601a str r2, [r3, #0] CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 800c50e: 68fb ldr r3, [r7, #12] - 800c510: 681b ldr r3, [r3, #0] - 800c512: 689a ldr r2, [r3, #8] - 800c514: 68fb ldr r3, [r7, #12] - 800c516: 681b ldr r3, [r3, #0] - 800c518: f022 0201 bic.w r2, r2, #1 - 800c51c: 609a str r2, [r3, #8] + 800c512: 68fb ldr r3, [r7, #12] + 800c514: 681b ldr r3, [r3, #0] + 800c516: 689a ldr r2, [r3, #8] + 800c518: 68fb ldr r3, [r7, #12] + 800c51a: 681b ldr r3, [r3, #0] + 800c51c: f022 0201 bic.w r2, r2, #1 + 800c520: 609a str r2, [r3, #8] huart->gState = HAL_UART_STATE_READY; - 800c51e: 68fb ldr r3, [r7, #12] - 800c520: 2220 movs r2, #32 - 800c522: 675a str r2, [r3, #116] ; 0x74 + 800c522: 68fb ldr r3, [r7, #12] + 800c524: 2220 movs r2, #32 + 800c526: 675a str r2, [r3, #116] ; 0x74 huart->RxState = HAL_UART_STATE_READY; - 800c524: 68fb ldr r3, [r7, #12] - 800c526: 2220 movs r2, #32 - 800c528: 679a str r2, [r3, #120] ; 0x78 + 800c528: 68fb ldr r3, [r7, #12] + 800c52a: 2220 movs r2, #32 + 800c52c: 679a str r2, [r3, #120] ; 0x78 huart->ErrorCode = HAL_UART_ERROR_RTO; - 800c52a: 68fb ldr r3, [r7, #12] - 800c52c: 2220 movs r2, #32 - 800c52e: 67da str r2, [r3, #124] ; 0x7c + 800c52e: 68fb ldr r3, [r7, #12] + 800c530: 2220 movs r2, #32 + 800c532: 67da str r2, [r3, #124] ; 0x7c /* Process Unlocked */ __HAL_UNLOCK(huart); - 800c530: 68fb ldr r3, [r7, #12] - 800c532: 2200 movs r2, #0 - 800c534: f883 2070 strb.w r2, [r3, #112] ; 0x70 + 800c534: 68fb ldr r3, [r7, #12] + 800c536: 2200 movs r2, #0 + 800c538: f883 2070 strb.w r2, [r3, #112] ; 0x70 return HAL_TIMEOUT; - 800c538: 2303 movs r3, #3 - 800c53a: e00f b.n 800c55c + 800c53c: 2303 movs r3, #3 + 800c53e: e00f b.n 800c560 while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status) - 800c53c: 68fb ldr r3, [r7, #12] - 800c53e: 681b ldr r3, [r3, #0] - 800c540: 69da ldr r2, [r3, #28] - 800c542: 68bb ldr r3, [r7, #8] - 800c544: 4013 ands r3, r2 - 800c546: 68ba ldr r2, [r7, #8] - 800c548: 429a cmp r2, r3 - 800c54a: bf0c ite eq - 800c54c: 2301 moveq r3, #1 - 800c54e: 2300 movne r3, #0 - 800c550: b2db uxtb r3, r3 - 800c552: 461a mov r2, r3 - 800c554: 79fb ldrb r3, [r7, #7] - 800c556: 429a cmp r2, r3 - 800c558: d092 beq.n 800c480 + 800c540: 68fb ldr r3, [r7, #12] + 800c542: 681b ldr r3, [r3, #0] + 800c544: 69da ldr r2, [r3, #28] + 800c546: 68bb ldr r3, [r7, #8] + 800c548: 4013 ands r3, r2 + 800c54a: 68ba ldr r2, [r7, #8] + 800c54c: 429a cmp r2, r3 + 800c54e: bf0c ite eq + 800c550: 2301 moveq r3, #1 + 800c552: 2300 movne r3, #0 + 800c554: b2db uxtb r3, r3 + 800c556: 461a mov r2, r3 + 800c558: 79fb ldrb r3, [r7, #7] + 800c55a: 429a cmp r2, r3 + 800c55c: d092 beq.n 800c484 } } } } return HAL_OK; - 800c55a: 2300 movs r3, #0 + 800c55e: 2300 movs r3, #0 } - 800c55c: 4618 mov r0, r3 - 800c55e: 3710 adds r7, #16 - 800c560: 46bd mov sp, r7 - 800c562: bd80 pop {r7, pc} + 800c560: 4618 mov r0, r3 + 800c562: 3710 adds r7, #16 + 800c564: 46bd mov sp, r7 + 800c566: bd80 pop {r7, pc} -0800c564 : +0800c568 : * @param Device Pointer to SDRAM device instance * @param Init Pointer to SDRAM Initialization structure * @retval HAL status */ HAL_StatusTypeDef FMC_SDRAM_Init(FMC_SDRAM_TypeDef *Device, FMC_SDRAM_InitTypeDef *Init) { - 800c564: b480 push {r7} - 800c566: b085 sub sp, #20 - 800c568: af00 add r7, sp, #0 - 800c56a: 6078 str r0, [r7, #4] - 800c56c: 6039 str r1, [r7, #0] + 800c568: b480 push {r7} + 800c56a: b085 sub sp, #20 + 800c56c: af00 add r7, sp, #0 + 800c56e: 6078 str r0, [r7, #4] + 800c570: 6039 str r1, [r7, #0] uint32_t tmpr1 = 0; - 800c56e: 2300 movs r3, #0 - 800c570: 60fb str r3, [r7, #12] - uint32_t tmpr2 = 0; 800c572: 2300 movs r3, #0 - 800c574: 60bb str r3, [r7, #8] + 800c574: 60fb str r3, [r7, #12] + uint32_t tmpr2 = 0; + 800c576: 2300 movs r3, #0 + 800c578: 60bb str r3, [r7, #8] assert_param(IS_FMC_SDCLOCK_PERIOD(Init->SDClockPeriod)); assert_param(IS_FMC_READ_BURST(Init->ReadBurst)); assert_param(IS_FMC_READPIPE_DELAY(Init->ReadPipeDelay)); /* Set SDRAM bank configuration parameters */ if (Init->SDBank != FMC_SDRAM_BANK2) - 800c576: 683b ldr r3, [r7, #0] - 800c578: 681b ldr r3, [r3, #0] - 800c57a: 2b01 cmp r3, #1 - 800c57c: d027 beq.n 800c5ce + 800c57a: 683b ldr r3, [r7, #0] + 800c57c: 681b ldr r3, [r3, #0] + 800c57e: 2b01 cmp r3, #1 + 800c580: d027 beq.n 800c5d2 { tmpr1 = Device->SDCR[FMC_SDRAM_BANK1]; - 800c57e: 687b ldr r3, [r7, #4] - 800c580: 681b ldr r3, [r3, #0] - 800c582: 60fb str r3, [r7, #12] + 800c582: 687b ldr r3, [r7, #4] + 800c584: 681b ldr r3, [r3, #0] + 800c586: 60fb str r3, [r7, #12] /* Clear NC, NR, MWID, NB, CAS, WP, SDCLK, RBURST, and RPIPE bits */ tmpr1 &= ((uint32_t)~(FMC_SDCR1_NC | FMC_SDCR1_NR | FMC_SDCR1_MWID | \ - 800c584: 68fa ldr r2, [r7, #12] - 800c586: 4b2f ldr r3, [pc, #188] ; (800c644 ) - 800c588: 4013 ands r3, r2 - 800c58a: 60fb str r3, [r7, #12] + 800c588: 68fa ldr r2, [r7, #12] + 800c58a: 4b2f ldr r3, [pc, #188] ; (800c648 ) + 800c58c: 4013 ands r3, r2 + 800c58e: 60fb str r3, [r7, #12] FMC_SDCR1_NB | FMC_SDCR1_CAS | FMC_SDCR1_WP | \ FMC_SDCR1_SDCLK | FMC_SDCR1_RBURST | FMC_SDCR1_RPIPE)); tmpr1 |= (uint32_t)(Init->ColumnBitsNumber |\ - 800c58c: 683b ldr r3, [r7, #0] - 800c58e: 685a ldr r2, [r3, #4] - Init->RowBitsNumber |\ 800c590: 683b ldr r3, [r7, #0] - 800c592: 689b ldr r3, [r3, #8] + 800c592: 685a ldr r2, [r3, #4] + Init->RowBitsNumber |\ + 800c594: 683b ldr r3, [r7, #0] + 800c596: 689b ldr r3, [r3, #8] tmpr1 |= (uint32_t)(Init->ColumnBitsNumber |\ - 800c594: 431a orrs r2, r3 + 800c598: 431a orrs r2, r3 Init->MemoryDataWidth |\ - 800c596: 683b ldr r3, [r7, #0] - 800c598: 68db ldr r3, [r3, #12] + 800c59a: 683b ldr r3, [r7, #0] + 800c59c: 68db ldr r3, [r3, #12] Init->RowBitsNumber |\ - 800c59a: 431a orrs r2, r3 + 800c59e: 431a orrs r2, r3 Init->InternalBankNumber |\ - 800c59c: 683b ldr r3, [r7, #0] - 800c59e: 691b ldr r3, [r3, #16] + 800c5a0: 683b ldr r3, [r7, #0] + 800c5a2: 691b ldr r3, [r3, #16] Init->MemoryDataWidth |\ - 800c5a0: 431a orrs r2, r3 + 800c5a4: 431a orrs r2, r3 Init->CASLatency |\ - 800c5a2: 683b ldr r3, [r7, #0] - 800c5a4: 695b ldr r3, [r3, #20] + 800c5a6: 683b ldr r3, [r7, #0] + 800c5a8: 695b ldr r3, [r3, #20] Init->InternalBankNumber |\ - 800c5a6: 431a orrs r2, r3 + 800c5aa: 431a orrs r2, r3 Init->WriteProtection |\ - 800c5a8: 683b ldr r3, [r7, #0] - 800c5aa: 699b ldr r3, [r3, #24] + 800c5ac: 683b ldr r3, [r7, #0] + 800c5ae: 699b ldr r3, [r3, #24] Init->CASLatency |\ - 800c5ac: 431a orrs r2, r3 + 800c5b0: 431a orrs r2, r3 Init->SDClockPeriod |\ - 800c5ae: 683b ldr r3, [r7, #0] - 800c5b0: 69db ldr r3, [r3, #28] + 800c5b2: 683b ldr r3, [r7, #0] + 800c5b4: 69db ldr r3, [r3, #28] Init->WriteProtection |\ - 800c5b2: 431a orrs r2, r3 + 800c5b6: 431a orrs r2, r3 Init->ReadBurst |\ - 800c5b4: 683b ldr r3, [r7, #0] - 800c5b6: 6a1b ldr r3, [r3, #32] + 800c5b8: 683b ldr r3, [r7, #0] + 800c5ba: 6a1b ldr r3, [r3, #32] Init->SDClockPeriod |\ - 800c5b8: 431a orrs r2, r3 + 800c5bc: 431a orrs r2, r3 Init->ReadPipeDelay - 800c5ba: 683b ldr r3, [r7, #0] - 800c5bc: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c5be: 683b ldr r3, [r7, #0] + 800c5c0: 6a5b ldr r3, [r3, #36] ; 0x24 Init->ReadBurst |\ - 800c5be: 4313 orrs r3, r2 - tmpr1 |= (uint32_t)(Init->ColumnBitsNumber |\ - 800c5c0: 68fa ldr r2, [r7, #12] 800c5c2: 4313 orrs r3, r2 - 800c5c4: 60fb str r3, [r7, #12] + tmpr1 |= (uint32_t)(Init->ColumnBitsNumber |\ + 800c5c4: 68fa ldr r2, [r7, #12] + 800c5c6: 4313 orrs r3, r2 + 800c5c8: 60fb str r3, [r7, #12] ); Device->SDCR[FMC_SDRAM_BANK1] = tmpr1; - 800c5c6: 687b ldr r3, [r7, #4] - 800c5c8: 68fa ldr r2, [r7, #12] - 800c5ca: 601a str r2, [r3, #0] - 800c5cc: e032 b.n 800c634 + 800c5ca: 687b ldr r3, [r7, #4] + 800c5cc: 68fa ldr r2, [r7, #12] + 800c5ce: 601a str r2, [r3, #0] + 800c5d0: e032 b.n 800c638 } else /* FMC_Bank2_SDRAM */ { tmpr1 = Device->SDCR[FMC_SDRAM_BANK1]; - 800c5ce: 687b ldr r3, [r7, #4] - 800c5d0: 681b ldr r3, [r3, #0] - 800c5d2: 60fb str r3, [r7, #12] + 800c5d2: 687b ldr r3, [r7, #4] + 800c5d4: 681b ldr r3, [r3, #0] + 800c5d6: 60fb str r3, [r7, #12] /* Clear SDCLK, RBURST, and RPIPE bits */ tmpr1 &= ((uint32_t)~(FMC_SDCR1_SDCLK | FMC_SDCR1_RBURST | FMC_SDCR1_RPIPE)); - 800c5d4: 68fb ldr r3, [r7, #12] - 800c5d6: f423 43f8 bic.w r3, r3, #31744 ; 0x7c00 - 800c5da: 60fb str r3, [r7, #12] + 800c5d8: 68fb ldr r3, [r7, #12] + 800c5da: f423 43f8 bic.w r3, r3, #31744 ; 0x7c00 + 800c5de: 60fb str r3, [r7, #12] tmpr1 |= (uint32_t)(Init->SDClockPeriod |\ - 800c5dc: 683b ldr r3, [r7, #0] - 800c5de: 69da ldr r2, [r3, #28] - Init->ReadBurst |\ 800c5e0: 683b ldr r3, [r7, #0] - 800c5e2: 6a1b ldr r3, [r3, #32] + 800c5e2: 69da ldr r2, [r3, #28] + Init->ReadBurst |\ + 800c5e4: 683b ldr r3, [r7, #0] + 800c5e6: 6a1b ldr r3, [r3, #32] tmpr1 |= (uint32_t)(Init->SDClockPeriod |\ - 800c5e4: 431a orrs r2, r3 + 800c5e8: 431a orrs r2, r3 Init->ReadPipeDelay); - 800c5e6: 683b ldr r3, [r7, #0] - 800c5e8: 6a5b ldr r3, [r3, #36] ; 0x24 + 800c5ea: 683b ldr r3, [r7, #0] + 800c5ec: 6a5b ldr r3, [r3, #36] ; 0x24 Init->ReadBurst |\ - 800c5ea: 4313 orrs r3, r2 - tmpr1 |= (uint32_t)(Init->SDClockPeriod |\ - 800c5ec: 68fa ldr r2, [r7, #12] 800c5ee: 4313 orrs r3, r2 - 800c5f0: 60fb str r3, [r7, #12] + tmpr1 |= (uint32_t)(Init->SDClockPeriod |\ + 800c5f0: 68fa ldr r2, [r7, #12] + 800c5f2: 4313 orrs r3, r2 + 800c5f4: 60fb str r3, [r7, #12] tmpr2 = Device->SDCR[FMC_SDRAM_BANK2]; - 800c5f2: 687b ldr r3, [r7, #4] - 800c5f4: 685b ldr r3, [r3, #4] - 800c5f6: 60bb str r3, [r7, #8] + 800c5f6: 687b ldr r3, [r7, #4] + 800c5f8: 685b ldr r3, [r3, #4] + 800c5fa: 60bb str r3, [r7, #8] /* Clear NC, NR, MWID, NB, CAS, WP, SDCLK, RBURST, and RPIPE bits */ tmpr2 &= ((uint32_t)~(FMC_SDCR1_NC | FMC_SDCR1_NR | FMC_SDCR1_MWID | \ - 800c5f8: 68ba ldr r2, [r7, #8] - 800c5fa: 4b12 ldr r3, [pc, #72] ; (800c644 ) - 800c5fc: 4013 ands r3, r2 - 800c5fe: 60bb str r3, [r7, #8] + 800c5fc: 68ba ldr r2, [r7, #8] + 800c5fe: 4b12 ldr r3, [pc, #72] ; (800c648 ) + 800c600: 4013 ands r3, r2 + 800c602: 60bb str r3, [r7, #8] FMC_SDCR1_NB | FMC_SDCR1_CAS | FMC_SDCR1_WP | \ FMC_SDCR1_SDCLK | FMC_SDCR1_RBURST | FMC_SDCR1_RPIPE)); tmpr2 |= (uint32_t)(Init->ColumnBitsNumber |\ - 800c600: 683b ldr r3, [r7, #0] - 800c602: 685a ldr r2, [r3, #4] - Init->RowBitsNumber |\ 800c604: 683b ldr r3, [r7, #0] - 800c606: 689b ldr r3, [r3, #8] + 800c606: 685a ldr r2, [r3, #4] + Init->RowBitsNumber |\ + 800c608: 683b ldr r3, [r7, #0] + 800c60a: 689b ldr r3, [r3, #8] tmpr2 |= (uint32_t)(Init->ColumnBitsNumber |\ - 800c608: 431a orrs r2, r3 + 800c60c: 431a orrs r2, r3 Init->MemoryDataWidth |\ - 800c60a: 683b ldr r3, [r7, #0] - 800c60c: 68db ldr r3, [r3, #12] + 800c60e: 683b ldr r3, [r7, #0] + 800c610: 68db ldr r3, [r3, #12] Init->RowBitsNumber |\ - 800c60e: 431a orrs r2, r3 + 800c612: 431a orrs r2, r3 Init->InternalBankNumber |\ - 800c610: 683b ldr r3, [r7, #0] - 800c612: 691b ldr r3, [r3, #16] + 800c614: 683b ldr r3, [r7, #0] + 800c616: 691b ldr r3, [r3, #16] Init->MemoryDataWidth |\ - 800c614: 431a orrs r2, r3 + 800c618: 431a orrs r2, r3 Init->CASLatency |\ - 800c616: 683b ldr r3, [r7, #0] - 800c618: 695b ldr r3, [r3, #20] + 800c61a: 683b ldr r3, [r7, #0] + 800c61c: 695b ldr r3, [r3, #20] Init->InternalBankNumber |\ - 800c61a: 431a orrs r2, r3 + 800c61e: 431a orrs r2, r3 Init->WriteProtection); - 800c61c: 683b ldr r3, [r7, #0] - 800c61e: 699b ldr r3, [r3, #24] + 800c620: 683b ldr r3, [r7, #0] + 800c622: 699b ldr r3, [r3, #24] Init->CASLatency |\ - 800c620: 4313 orrs r3, r2 - tmpr2 |= (uint32_t)(Init->ColumnBitsNumber |\ - 800c622: 68ba ldr r2, [r7, #8] 800c624: 4313 orrs r3, r2 - 800c626: 60bb str r3, [r7, #8] + tmpr2 |= (uint32_t)(Init->ColumnBitsNumber |\ + 800c626: 68ba ldr r2, [r7, #8] + 800c628: 4313 orrs r3, r2 + 800c62a: 60bb str r3, [r7, #8] Device->SDCR[FMC_SDRAM_BANK1] = tmpr1; - 800c628: 687b ldr r3, [r7, #4] - 800c62a: 68fa ldr r2, [r7, #12] - 800c62c: 601a str r2, [r3, #0] + 800c62c: 687b ldr r3, [r7, #4] + 800c62e: 68fa ldr r2, [r7, #12] + 800c630: 601a str r2, [r3, #0] Device->SDCR[FMC_SDRAM_BANK2] = tmpr2; - 800c62e: 687b ldr r3, [r7, #4] - 800c630: 68ba ldr r2, [r7, #8] - 800c632: 605a str r2, [r3, #4] + 800c632: 687b ldr r3, [r7, #4] + 800c634: 68ba ldr r2, [r7, #8] + 800c636: 605a str r2, [r3, #4] } return HAL_OK; - 800c634: 2300 movs r3, #0 + 800c638: 2300 movs r3, #0 } - 800c636: 4618 mov r0, r3 - 800c638: 3714 adds r7, #20 - 800c63a: 46bd mov sp, r7 - 800c63c: f85d 7b04 ldr.w r7, [sp], #4 - 800c640: 4770 bx lr - 800c642: bf00 nop - 800c644: ffff8000 .word 0xffff8000 + 800c63a: 4618 mov r0, r3 + 800c63c: 3714 adds r7, #20 + 800c63e: 46bd mov sp, r7 + 800c640: f85d 7b04 ldr.w r7, [sp], #4 + 800c644: 4770 bx lr + 800c646: bf00 nop + 800c648: ffff8000 .word 0xffff8000 -0800c648 : +0800c64c : * @param Timing Pointer to SDRAM Timing structure * @param Bank SDRAM bank number * @retval HAL status */ HAL_StatusTypeDef FMC_SDRAM_Timing_Init(FMC_SDRAM_TypeDef *Device, FMC_SDRAM_TimingTypeDef *Timing, uint32_t Bank) { - 800c648: b480 push {r7} - 800c64a: b087 sub sp, #28 - 800c64c: af00 add r7, sp, #0 - 800c64e: 60f8 str r0, [r7, #12] - 800c650: 60b9 str r1, [r7, #8] - 800c652: 607a str r2, [r7, #4] + 800c64c: b480 push {r7} + 800c64e: b087 sub sp, #28 + 800c650: af00 add r7, sp, #0 + 800c652: 60f8 str r0, [r7, #12] + 800c654: 60b9 str r1, [r7, #8] + 800c656: 607a str r2, [r7, #4] uint32_t tmpr1 = 0; - 800c654: 2300 movs r3, #0 - 800c656: 617b str r3, [r7, #20] - uint32_t tmpr2 = 0; 800c658: 2300 movs r3, #0 - 800c65a: 613b str r3, [r7, #16] + 800c65a: 617b str r3, [r7, #20] + uint32_t tmpr2 = 0; + 800c65c: 2300 movs r3, #0 + 800c65e: 613b str r3, [r7, #16] assert_param(IS_FMC_RP_DELAY(Timing->RPDelay)); assert_param(IS_FMC_RCD_DELAY(Timing->RCDDelay)); assert_param(IS_FMC_SDRAM_BANK(Bank)); /* Set SDRAM device timing parameters */ if (Bank != FMC_SDRAM_BANK2) - 800c65c: 687b ldr r3, [r7, #4] - 800c65e: 2b01 cmp r3, #1 - 800c660: d02e beq.n 800c6c0 + 800c660: 687b ldr r3, [r7, #4] + 800c662: 2b01 cmp r3, #1 + 800c664: d02e beq.n 800c6c4 { tmpr1 = Device->SDTR[FMC_SDRAM_BANK1]; - 800c662: 68fb ldr r3, [r7, #12] - 800c664: 689b ldr r3, [r3, #8] - 800c666: 617b str r3, [r7, #20] + 800c666: 68fb ldr r3, [r7, #12] + 800c668: 689b ldr r3, [r3, #8] + 800c66a: 617b str r3, [r7, #20] /* Clear TMRD, TXSR, TRAS, TRC, TWR, TRP and TRCD bits */ tmpr1 &= ((uint32_t)~(FMC_SDTR1_TMRD | FMC_SDTR1_TXSR | FMC_SDTR1_TRAS | \ - 800c668: 697b ldr r3, [r7, #20] - 800c66a: f003 4370 and.w r3, r3, #4026531840 ; 0xf0000000 - 800c66e: 617b str r3, [r7, #20] + 800c66c: 697b ldr r3, [r7, #20] + 800c66e: f003 4370 and.w r3, r3, #4026531840 ; 0xf0000000 + 800c672: 617b str r3, [r7, #20] FMC_SDTR1_TRC | FMC_SDTR1_TWR | FMC_SDTR1_TRP | \ FMC_SDTR1_TRCD)); tmpr1 |= (uint32_t)(((Timing->LoadToActiveDelay)-1) |\ - 800c670: 68bb ldr r3, [r7, #8] - 800c672: 681b ldr r3, [r3, #0] - 800c674: 1e5a subs r2, r3, #1 + 800c674: 68bb ldr r3, [r7, #8] + 800c676: 681b ldr r3, [r3, #0] + 800c678: 1e5a subs r2, r3, #1 (((Timing->ExitSelfRefreshDelay)-1) << 4) |\ - 800c676: 68bb ldr r3, [r7, #8] - 800c678: 685b ldr r3, [r3, #4] - 800c67a: 3b01 subs r3, #1 - 800c67c: 011b lsls r3, r3, #4 + 800c67a: 68bb ldr r3, [r7, #8] + 800c67c: 685b ldr r3, [r3, #4] + 800c67e: 3b01 subs r3, #1 + 800c680: 011b lsls r3, r3, #4 tmpr1 |= (uint32_t)(((Timing->LoadToActiveDelay)-1) |\ - 800c67e: 431a orrs r2, r3 + 800c682: 431a orrs r2, r3 (((Timing->SelfRefreshTime)-1) << 8) |\ - 800c680: 68bb ldr r3, [r7, #8] - 800c682: 689b ldr r3, [r3, #8] - 800c684: 3b01 subs r3, #1 - 800c686: 021b lsls r3, r3, #8 + 800c684: 68bb ldr r3, [r7, #8] + 800c686: 689b ldr r3, [r3, #8] + 800c688: 3b01 subs r3, #1 + 800c68a: 021b lsls r3, r3, #8 (((Timing->ExitSelfRefreshDelay)-1) << 4) |\ - 800c688: 431a orrs r2, r3 + 800c68c: 431a orrs r2, r3 (((Timing->RowCycleDelay)-1) << 12) |\ - 800c68a: 68bb ldr r3, [r7, #8] - 800c68c: 68db ldr r3, [r3, #12] - 800c68e: 3b01 subs r3, #1 - 800c690: 031b lsls r3, r3, #12 + 800c68e: 68bb ldr r3, [r7, #8] + 800c690: 68db ldr r3, [r3, #12] + 800c692: 3b01 subs r3, #1 + 800c694: 031b lsls r3, r3, #12 (((Timing->SelfRefreshTime)-1) << 8) |\ - 800c692: 431a orrs r2, r3 + 800c696: 431a orrs r2, r3 (((Timing->WriteRecoveryTime)-1) <<16) |\ - 800c694: 68bb ldr r3, [r7, #8] - 800c696: 691b ldr r3, [r3, #16] - 800c698: 3b01 subs r3, #1 - 800c69a: 041b lsls r3, r3, #16 + 800c698: 68bb ldr r3, [r7, #8] + 800c69a: 691b ldr r3, [r3, #16] + 800c69c: 3b01 subs r3, #1 + 800c69e: 041b lsls r3, r3, #16 (((Timing->RowCycleDelay)-1) << 12) |\ - 800c69c: 431a orrs r2, r3 + 800c6a0: 431a orrs r2, r3 (((Timing->RPDelay)-1) << 20) |\ - 800c69e: 68bb ldr r3, [r7, #8] - 800c6a0: 695b ldr r3, [r3, #20] - 800c6a2: 3b01 subs r3, #1 - 800c6a4: 051b lsls r3, r3, #20 + 800c6a2: 68bb ldr r3, [r7, #8] + 800c6a4: 695b ldr r3, [r3, #20] + 800c6a6: 3b01 subs r3, #1 + 800c6a8: 051b lsls r3, r3, #20 (((Timing->WriteRecoveryTime)-1) <<16) |\ - 800c6a6: 431a orrs r2, r3 + 800c6aa: 431a orrs r2, r3 (((Timing->RCDDelay)-1) << 24)); - 800c6a8: 68bb ldr r3, [r7, #8] - 800c6aa: 699b ldr r3, [r3, #24] - 800c6ac: 3b01 subs r3, #1 - 800c6ae: 061b lsls r3, r3, #24 + 800c6ac: 68bb ldr r3, [r7, #8] + 800c6ae: 699b ldr r3, [r3, #24] + 800c6b0: 3b01 subs r3, #1 + 800c6b2: 061b lsls r3, r3, #24 tmpr1 |= (uint32_t)(((Timing->LoadToActiveDelay)-1) |\ - 800c6b0: 4313 orrs r3, r2 - 800c6b2: 697a ldr r2, [r7, #20] 800c6b4: 4313 orrs r3, r2 - 800c6b6: 617b str r3, [r7, #20] + 800c6b6: 697a ldr r2, [r7, #20] + 800c6b8: 4313 orrs r3, r2 + 800c6ba: 617b str r3, [r7, #20] Device->SDTR[FMC_SDRAM_BANK1] = tmpr1; - 800c6b8: 68fb ldr r3, [r7, #12] - 800c6ba: 697a ldr r2, [r7, #20] - 800c6bc: 609a str r2, [r3, #8] - 800c6be: e039 b.n 800c734 + 800c6bc: 68fb ldr r3, [r7, #12] + 800c6be: 697a ldr r2, [r7, #20] + 800c6c0: 609a str r2, [r3, #8] + 800c6c2: e039 b.n 800c738 } else /* FMC_Bank2_SDRAM */ { tmpr1 = Device->SDTR[FMC_SDRAM_BANK1]; - 800c6c0: 68fb ldr r3, [r7, #12] - 800c6c2: 689b ldr r3, [r3, #8] - 800c6c4: 617b str r3, [r7, #20] + 800c6c4: 68fb ldr r3, [r7, #12] + 800c6c6: 689b ldr r3, [r3, #8] + 800c6c8: 617b str r3, [r7, #20] /* Clear TRC and TRP bits */ tmpr1 &= ((uint32_t)~(FMC_SDTR1_TRC | FMC_SDTR1_TRP)); - 800c6c6: 697a ldr r2, [r7, #20] - 800c6c8: 4b1e ldr r3, [pc, #120] ; (800c744 ) - 800c6ca: 4013 ands r3, r2 - 800c6cc: 617b str r3, [r7, #20] + 800c6ca: 697a ldr r2, [r7, #20] + 800c6cc: 4b1e ldr r3, [pc, #120] ; (800c748 ) + 800c6ce: 4013 ands r3, r2 + 800c6d0: 617b str r3, [r7, #20] tmpr1 |= (uint32_t)((((Timing->RowCycleDelay)-1) << 12) |\ - 800c6ce: 68bb ldr r3, [r7, #8] - 800c6d0: 68db ldr r3, [r3, #12] - 800c6d2: 3b01 subs r3, #1 - 800c6d4: 031a lsls r2, r3, #12 + 800c6d2: 68bb ldr r3, [r7, #8] + 800c6d4: 68db ldr r3, [r3, #12] + 800c6d6: 3b01 subs r3, #1 + 800c6d8: 031a lsls r2, r3, #12 (((Timing->RPDelay)-1) << 20)); - 800c6d6: 68bb ldr r3, [r7, #8] - 800c6d8: 695b ldr r3, [r3, #20] - 800c6da: 3b01 subs r3, #1 - 800c6dc: 051b lsls r3, r3, #20 + 800c6da: 68bb ldr r3, [r7, #8] + 800c6dc: 695b ldr r3, [r3, #20] + 800c6de: 3b01 subs r3, #1 + 800c6e0: 051b lsls r3, r3, #20 tmpr1 |= (uint32_t)((((Timing->RowCycleDelay)-1) << 12) |\ - 800c6de: 4313 orrs r3, r2 - 800c6e0: 697a ldr r2, [r7, #20] 800c6e2: 4313 orrs r3, r2 - 800c6e4: 617b str r3, [r7, #20] + 800c6e4: 697a ldr r2, [r7, #20] + 800c6e6: 4313 orrs r3, r2 + 800c6e8: 617b str r3, [r7, #20] tmpr2 = Device->SDTR[FMC_SDRAM_BANK2]; - 800c6e6: 68fb ldr r3, [r7, #12] - 800c6e8: 68db ldr r3, [r3, #12] - 800c6ea: 613b str r3, [r7, #16] + 800c6ea: 68fb ldr r3, [r7, #12] + 800c6ec: 68db ldr r3, [r3, #12] + 800c6ee: 613b str r3, [r7, #16] /* Clear TMRD, TXSR, TRAS, TRC, TWR, TRP and TRCD bits */ tmpr2 &= ((uint32_t)~(FMC_SDTR1_TMRD | FMC_SDTR1_TXSR | FMC_SDTR1_TRAS | \ - 800c6ec: 693b ldr r3, [r7, #16] - 800c6ee: f003 4370 and.w r3, r3, #4026531840 ; 0xf0000000 - 800c6f2: 613b str r3, [r7, #16] + 800c6f0: 693b ldr r3, [r7, #16] + 800c6f2: f003 4370 and.w r3, r3, #4026531840 ; 0xf0000000 + 800c6f6: 613b str r3, [r7, #16] FMC_SDTR1_TRC | FMC_SDTR1_TWR | FMC_SDTR1_TRP | \ FMC_SDTR1_TRCD)); tmpr2 |= (uint32_t)(((Timing->LoadToActiveDelay)-1) |\ - 800c6f4: 68bb ldr r3, [r7, #8] - 800c6f6: 681b ldr r3, [r3, #0] - 800c6f8: 1e5a subs r2, r3, #1 + 800c6f8: 68bb ldr r3, [r7, #8] + 800c6fa: 681b ldr r3, [r3, #0] + 800c6fc: 1e5a subs r2, r3, #1 (((Timing->ExitSelfRefreshDelay)-1) << 4) |\ - 800c6fa: 68bb ldr r3, [r7, #8] - 800c6fc: 685b ldr r3, [r3, #4] - 800c6fe: 3b01 subs r3, #1 - 800c700: 011b lsls r3, r3, #4 + 800c6fe: 68bb ldr r3, [r7, #8] + 800c700: 685b ldr r3, [r3, #4] + 800c702: 3b01 subs r3, #1 + 800c704: 011b lsls r3, r3, #4 tmpr2 |= (uint32_t)(((Timing->LoadToActiveDelay)-1) |\ - 800c702: 431a orrs r2, r3 + 800c706: 431a orrs r2, r3 (((Timing->SelfRefreshTime)-1) << 8) |\ - 800c704: 68bb ldr r3, [r7, #8] - 800c706: 689b ldr r3, [r3, #8] - 800c708: 3b01 subs r3, #1 - 800c70a: 021b lsls r3, r3, #8 + 800c708: 68bb ldr r3, [r7, #8] + 800c70a: 689b ldr r3, [r3, #8] + 800c70c: 3b01 subs r3, #1 + 800c70e: 021b lsls r3, r3, #8 (((Timing->ExitSelfRefreshDelay)-1) << 4) |\ - 800c70c: 431a orrs r2, r3 + 800c710: 431a orrs r2, r3 (((Timing->WriteRecoveryTime)-1) <<16) |\ - 800c70e: 68bb ldr r3, [r7, #8] - 800c710: 691b ldr r3, [r3, #16] - 800c712: 3b01 subs r3, #1 - 800c714: 041b lsls r3, r3, #16 + 800c712: 68bb ldr r3, [r7, #8] + 800c714: 691b ldr r3, [r3, #16] + 800c716: 3b01 subs r3, #1 + 800c718: 041b lsls r3, r3, #16 (((Timing->SelfRefreshTime)-1) << 8) |\ - 800c716: 431a orrs r2, r3 + 800c71a: 431a orrs r2, r3 (((Timing->RCDDelay)-1) << 24)); - 800c718: 68bb ldr r3, [r7, #8] - 800c71a: 699b ldr r3, [r3, #24] - 800c71c: 3b01 subs r3, #1 - 800c71e: 061b lsls r3, r3, #24 + 800c71c: 68bb ldr r3, [r7, #8] + 800c71e: 699b ldr r3, [r3, #24] + 800c720: 3b01 subs r3, #1 + 800c722: 061b lsls r3, r3, #24 tmpr2 |= (uint32_t)(((Timing->LoadToActiveDelay)-1) |\ - 800c720: 4313 orrs r3, r2 - 800c722: 693a ldr r2, [r7, #16] 800c724: 4313 orrs r3, r2 - 800c726: 613b str r3, [r7, #16] + 800c726: 693a ldr r2, [r7, #16] + 800c728: 4313 orrs r3, r2 + 800c72a: 613b str r3, [r7, #16] Device->SDTR[FMC_SDRAM_BANK1] = tmpr1; - 800c728: 68fb ldr r3, [r7, #12] - 800c72a: 697a ldr r2, [r7, #20] - 800c72c: 609a str r2, [r3, #8] + 800c72c: 68fb ldr r3, [r7, #12] + 800c72e: 697a ldr r2, [r7, #20] + 800c730: 609a str r2, [r3, #8] Device->SDTR[FMC_SDRAM_BANK2] = tmpr2; - 800c72e: 68fb ldr r3, [r7, #12] - 800c730: 693a ldr r2, [r7, #16] - 800c732: 60da str r2, [r3, #12] + 800c732: 68fb ldr r3, [r7, #12] + 800c734: 693a ldr r2, [r7, #16] + 800c736: 60da str r2, [r3, #12] } return HAL_OK; - 800c734: 2300 movs r3, #0 + 800c738: 2300 movs r3, #0 } - 800c736: 4618 mov r0, r3 - 800c738: 371c adds r7, #28 - 800c73a: 46bd mov sp, r7 - 800c73c: f85d 7b04 ldr.w r7, [sp], #4 - 800c740: 4770 bx lr - 800c742: bf00 nop - 800c744: ff0f0fff .word 0xff0f0fff + 800c73a: 4618 mov r0, r3 + 800c73c: 371c adds r7, #28 + 800c73e: 46bd mov sp, r7 + 800c740: f85d 7b04 ldr.w r7, [sp], #4 + 800c744: 4770 bx lr + 800c746: bf00 nop + 800c748: ff0f0fff .word 0xff0f0fff -0800c748 : +0800c74c : * @param Timing Pointer to SDRAM Timing structure * @param Timeout Timeout wait value * @retval HAL state */ HAL_StatusTypeDef FMC_SDRAM_SendCommand(FMC_SDRAM_TypeDef *Device, FMC_SDRAM_CommandTypeDef *Command, uint32_t Timeout) { - 800c748: b480 push {r7} - 800c74a: b087 sub sp, #28 - 800c74c: af00 add r7, sp, #0 - 800c74e: 60f8 str r0, [r7, #12] - 800c750: 60b9 str r1, [r7, #8] - 800c752: 607a str r2, [r7, #4] + 800c74c: b480 push {r7} + 800c74e: b087 sub sp, #28 + 800c750: af00 add r7, sp, #0 + 800c752: 60f8 str r0, [r7, #12] + 800c754: 60b9 str r1, [r7, #8] + 800c756: 607a str r2, [r7, #4] __IO uint32_t tmpr = 0; - 800c754: 2300 movs r3, #0 - 800c756: 617b str r3, [r7, #20] + 800c758: 2300 movs r3, #0 + 800c75a: 617b str r3, [r7, #20] assert_param(IS_FMC_COMMAND_TARGET(Command->CommandTarget)); assert_param(IS_FMC_AUTOREFRESH_NUMBER(Command->AutoRefreshNumber)); assert_param(IS_FMC_MODE_REGISTER(Command->ModeRegisterDefinition)); /* Set command register */ tmpr = (uint32_t)((Command->CommandMode) |\ - 800c758: 68bb ldr r3, [r7, #8] - 800c75a: 681a ldr r2, [r3, #0] - (Command->CommandTarget) |\ 800c75c: 68bb ldr r3, [r7, #8] - 800c75e: 685b ldr r3, [r3, #4] + 800c75e: 681a ldr r2, [r3, #0] + (Command->CommandTarget) |\ + 800c760: 68bb ldr r3, [r7, #8] + 800c762: 685b ldr r3, [r3, #4] tmpr = (uint32_t)((Command->CommandMode) |\ - 800c760: 431a orrs r2, r3 + 800c764: 431a orrs r2, r3 (((Command->AutoRefreshNumber)-1) << 5) |\ - 800c762: 68bb ldr r3, [r7, #8] - 800c764: 689b ldr r3, [r3, #8] - 800c766: 3b01 subs r3, #1 - 800c768: 015b lsls r3, r3, #5 + 800c766: 68bb ldr r3, [r7, #8] + 800c768: 689b ldr r3, [r3, #8] + 800c76a: 3b01 subs r3, #1 + 800c76c: 015b lsls r3, r3, #5 (Command->CommandTarget) |\ - 800c76a: 431a orrs r2, r3 + 800c76e: 431a orrs r2, r3 ((Command->ModeRegisterDefinition) << 9) - 800c76c: 68bb ldr r3, [r7, #8] - 800c76e: 68db ldr r3, [r3, #12] - 800c770: 025b lsls r3, r3, #9 + 800c770: 68bb ldr r3, [r7, #8] + 800c772: 68db ldr r3, [r3, #12] + 800c774: 025b lsls r3, r3, #9 tmpr = (uint32_t)((Command->CommandMode) |\ - 800c772: 4313 orrs r3, r2 - 800c774: 617b str r3, [r7, #20] + 800c776: 4313 orrs r3, r2 + 800c778: 617b str r3, [r7, #20] ); Device->SDCMR = tmpr; - 800c776: 697a ldr r2, [r7, #20] - 800c778: 68fb ldr r3, [r7, #12] - 800c77a: 611a str r2, [r3, #16] + 800c77a: 697a ldr r2, [r7, #20] + 800c77c: 68fb ldr r3, [r7, #12] + 800c77e: 611a str r2, [r3, #16] return HAL_OK; - 800c77c: 2300 movs r3, #0 + 800c780: 2300 movs r3, #0 } - 800c77e: 4618 mov r0, r3 - 800c780: 371c adds r7, #28 - 800c782: 46bd mov sp, r7 - 800c784: f85d 7b04 ldr.w r7, [sp], #4 - 800c788: 4770 bx lr + 800c782: 4618 mov r0, r3 + 800c784: 371c adds r7, #28 + 800c786: 46bd mov sp, r7 + 800c788: f85d 7b04 ldr.w r7, [sp], #4 + 800c78c: 4770 bx lr -0800c78a : +0800c78e : * @param Device Pointer to SDRAM device instance * @param RefreshRate The SDRAM refresh rate value. * @retval HAL state */ HAL_StatusTypeDef FMC_SDRAM_ProgramRefreshRate(FMC_SDRAM_TypeDef *Device, uint32_t RefreshRate) { - 800c78a: b480 push {r7} - 800c78c: b083 sub sp, #12 - 800c78e: af00 add r7, sp, #0 - 800c790: 6078 str r0, [r7, #4] - 800c792: 6039 str r1, [r7, #0] + 800c78e: b480 push {r7} + 800c790: b083 sub sp, #12 + 800c792: af00 add r7, sp, #0 + 800c794: 6078 str r0, [r7, #4] + 800c796: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_FMC_SDRAM_DEVICE(Device)); assert_param(IS_FMC_REFRESH_RATE(RefreshRate)); /* Set the refresh rate in command register */ Device->SDRTR |= (RefreshRate<<1); - 800c794: 687b ldr r3, [r7, #4] - 800c796: 695a ldr r2, [r3, #20] - 800c798: 683b ldr r3, [r7, #0] - 800c79a: 005b lsls r3, r3, #1 - 800c79c: 431a orrs r2, r3 - 800c79e: 687b ldr r3, [r7, #4] - 800c7a0: 615a str r2, [r3, #20] + 800c798: 687b ldr r3, [r7, #4] + 800c79a: 695a ldr r2, [r3, #20] + 800c79c: 683b ldr r3, [r7, #0] + 800c79e: 005b lsls r3, r3, #1 + 800c7a0: 431a orrs r2, r3 + 800c7a2: 687b ldr r3, [r7, #4] + 800c7a4: 615a str r2, [r3, #20] return HAL_OK; - 800c7a2: 2300 movs r3, #0 + 800c7a6: 2300 movs r3, #0 } - 800c7a4: 4618 mov r0, r3 - 800c7a6: 370c adds r7, #12 - 800c7a8: 46bd mov sp, r7 - 800c7aa: f85d 7b04 ldr.w r7, [sp], #4 - 800c7ae: 4770 bx lr + 800c7a8: 4618 mov r0, r3 + 800c7aa: 370c adds r7, #12 + 800c7ac: 46bd mov sp, r7 + 800c7ae: f85d 7b04 ldr.w r7, [sp], #4 + 800c7b2: 4770 bx lr -0800c7b0 : +0800c7b4 : /** * LwIP initialization function */ void MX_LWIP_Init(void) { - 800c7b0: b5b0 push {r4, r5, r7, lr} - 800c7b2: b08e sub sp, #56 ; 0x38 - 800c7b4: af04 add r7, sp, #16 + 800c7b4: b5b0 push {r4, r5, r7, lr} + 800c7b6: b08e sub sp, #56 ; 0x38 + 800c7b8: af04 add r7, sp, #16 /* Initilialize the LwIP stack with RTOS */ tcpip_init( NULL, NULL ); - 800c7b6: 2100 movs r1, #0 - 800c7b8: 2000 movs r0, #0 - 800c7ba: f003 fe17 bl 80103ec + 800c7ba: 2100 movs r1, #0 + 800c7bc: 2000 movs r0, #0 + 800c7be: f003 fe1d bl 80103fc /* IP addresses initialization with DHCP (IPv4) */ ipaddr.addr = 0; - 800c7be: 4b2a ldr r3, [pc, #168] ; (800c868 ) - 800c7c0: 2200 movs r2, #0 - 800c7c2: 601a str r2, [r3, #0] + 800c7c2: 4b2a ldr r3, [pc, #168] ; (800c86c ) + 800c7c4: 2200 movs r2, #0 + 800c7c6: 601a str r2, [r3, #0] netmask.addr = 0; - 800c7c4: 4b29 ldr r3, [pc, #164] ; (800c86c ) - 800c7c6: 2200 movs r2, #0 - 800c7c8: 601a str r2, [r3, #0] + 800c7c8: 4b29 ldr r3, [pc, #164] ; (800c870 ) + 800c7ca: 2200 movs r2, #0 + 800c7cc: 601a str r2, [r3, #0] gw.addr = 0; - 800c7ca: 4b29 ldr r3, [pc, #164] ; (800c870 ) - 800c7cc: 2200 movs r2, #0 - 800c7ce: 601a str r2, [r3, #0] + 800c7ce: 4b29 ldr r3, [pc, #164] ; (800c874 ) + 800c7d0: 2200 movs r2, #0 + 800c7d2: 601a str r2, [r3, #0] /* add the network interface (IPv4/IPv6) with RTOS */ netif_add(&gnetif, &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input); - 800c7d0: 4b28 ldr r3, [pc, #160] ; (800c874 ) - 800c7d2: 9302 str r3, [sp, #8] - 800c7d4: 4b28 ldr r3, [pc, #160] ; (800c878 ) - 800c7d6: 9301 str r3, [sp, #4] - 800c7d8: 2300 movs r3, #0 - 800c7da: 9300 str r3, [sp, #0] - 800c7dc: 4b24 ldr r3, [pc, #144] ; (800c870 ) - 800c7de: 4a23 ldr r2, [pc, #140] ; (800c86c ) - 800c7e0: 4921 ldr r1, [pc, #132] ; (800c868 ) - 800c7e2: 4826 ldr r0, [pc, #152] ; (800c87c ) - 800c7e4: f004 fb86 bl 8010ef4 + 800c7d4: 4b28 ldr r3, [pc, #160] ; (800c878 ) + 800c7d6: 9302 str r3, [sp, #8] + 800c7d8: 4b28 ldr r3, [pc, #160] ; (800c87c ) + 800c7da: 9301 str r3, [sp, #4] + 800c7dc: 2300 movs r3, #0 + 800c7de: 9300 str r3, [sp, #0] + 800c7e0: 4b24 ldr r3, [pc, #144] ; (800c874 ) + 800c7e2: 4a23 ldr r2, [pc, #140] ; (800c870 ) + 800c7e4: 4921 ldr r1, [pc, #132] ; (800c86c ) + 800c7e6: 4826 ldr r0, [pc, #152] ; (800c880 ) + 800c7e8: f004 fb8c bl 8010f04 /* Registers the default network interface */ netif_set_default(&gnetif); - 800c7e8: 4824 ldr r0, [pc, #144] ; (800c87c ) - 800c7ea: f004 fd3d bl 8011268 + 800c7ec: 4824 ldr r0, [pc, #144] ; (800c880 ) + 800c7ee: f004 fd43 bl 8011278 if (netif_is_link_up(&gnetif)) - 800c7ee: 4b23 ldr r3, [pc, #140] ; (800c87c ) - 800c7f0: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800c7f4: 089b lsrs r3, r3, #2 - 800c7f6: f003 0301 and.w r3, r3, #1 - 800c7fa: b2db uxtb r3, r3 - 800c7fc: 2b00 cmp r3, #0 - 800c7fe: d003 beq.n 800c808 + 800c7f2: 4b23 ldr r3, [pc, #140] ; (800c880 ) + 800c7f4: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800c7f8: 089b lsrs r3, r3, #2 + 800c7fa: f003 0301 and.w r3, r3, #1 + 800c7fe: b2db uxtb r3, r3 + 800c800: 2b00 cmp r3, #0 + 800c802: d003 beq.n 800c80c { /* When the netif is fully configured this function must be called */ netif_set_up(&gnetif); - 800c800: 481e ldr r0, [pc, #120] ; (800c87c ) - 800c802: f004 fd41 bl 8011288 - 800c806: e002 b.n 800c80e + 800c804: 481e ldr r0, [pc, #120] ; (800c880 ) + 800c806: f004 fd47 bl 8011298 + 800c80a: e002 b.n 800c812 } else { /* When the netif link is down this function must be called */ netif_set_down(&gnetif); - 800c808: 481c ldr r0, [pc, #112] ; (800c87c ) - 800c80a: f004 fda9 bl 8011360 + 800c80c: 481c ldr r0, [pc, #112] ; (800c880 ) + 800c80e: f004 fdaf bl 8011370 } /* Set the link callback function, this function is called on change of link status*/ netif_set_link_callback(&gnetif, ethernetif_update_config); - 800c80e: 491c ldr r1, [pc, #112] ; (800c880 ) - 800c810: 481a ldr r0, [pc, #104] ; (800c87c ) - 800c812: f004 fe3f bl 8011494 + 800c812: 491c ldr r1, [pc, #112] ; (800c884 ) + 800c814: 481a ldr r0, [pc, #104] ; (800c880 ) + 800c816: f004 fe45 bl 80114a4 /* create a binary semaphore used for informing ethernetif of frame reception */ osSemaphoreDef(Netif_SEM); - 800c816: 2300 movs r3, #0 - 800c818: 623b str r3, [r7, #32] 800c81a: 2300 movs r3, #0 - 800c81c: 627b str r3, [r7, #36] ; 0x24 + 800c81c: 623b str r3, [r7, #32] + 800c81e: 2300 movs r3, #0 + 800c820: 627b str r3, [r7, #36] ; 0x24 Netif_LinkSemaphore = osSemaphoreCreate(osSemaphore(Netif_SEM) , 1 ); - 800c81e: f107 0320 add.w r3, r7, #32 - 800c822: 2101 movs r1, #1 - 800c824: 4618 mov r0, r3 - 800c826: f000 fd75 bl 800d314 - 800c82a: 4602 mov r2, r0 - 800c82c: 4b15 ldr r3, [pc, #84] ; (800c884 ) - 800c82e: 601a str r2, [r3, #0] + 800c822: f107 0320 add.w r3, r7, #32 + 800c826: 2101 movs r1, #1 + 800c828: 4618 mov r0, r3 + 800c82a: f000 fd75 bl 800d318 + 800c82e: 4602 mov r2, r0 + 800c830: 4b15 ldr r3, [pc, #84] ; (800c888 ) + 800c832: 601a str r2, [r3, #0] link_arg.netif = &gnetif; - 800c830: 4b15 ldr r3, [pc, #84] ; (800c888 ) - 800c832: 4a12 ldr r2, [pc, #72] ; (800c87c ) - 800c834: 601a str r2, [r3, #0] + 800c834: 4b15 ldr r3, [pc, #84] ; (800c88c ) + 800c836: 4a12 ldr r2, [pc, #72] ; (800c880 ) + 800c838: 601a str r2, [r3, #0] link_arg.semaphore = Netif_LinkSemaphore; - 800c836: 4b13 ldr r3, [pc, #76] ; (800c884 ) - 800c838: 681b ldr r3, [r3, #0] - 800c83a: 4a13 ldr r2, [pc, #76] ; (800c888 ) - 800c83c: 6053 str r3, [r2, #4] + 800c83a: 4b13 ldr r3, [pc, #76] ; (800c888 ) + 800c83c: 681b ldr r3, [r3, #0] + 800c83e: 4a13 ldr r2, [pc, #76] ; (800c88c ) + 800c840: 6053 str r3, [r2, #4] /* Create the Ethernet link handler thread */ /* USER CODE BEGIN OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ osThreadDef(LinkThr, ethernetif_set_link, osPriorityBelowNormal, 0, configMINIMAL_STACK_SIZE * 2); - 800c83e: 4b13 ldr r3, [pc, #76] ; (800c88c ) - 800c840: 1d3c adds r4, r7, #4 - 800c842: 461d mov r5, r3 - 800c844: cd0f ldmia r5!, {r0, r1, r2, r3} - 800c846: c40f stmia r4!, {r0, r1, r2, r3} - 800c848: e895 0007 ldmia.w r5, {r0, r1, r2} - 800c84c: e884 0007 stmia.w r4, {r0, r1, r2} + 800c842: 4b13 ldr r3, [pc, #76] ; (800c890 ) + 800c844: 1d3c adds r4, r7, #4 + 800c846: 461d mov r5, r3 + 800c848: cd0f ldmia r5!, {r0, r1, r2, r3} + 800c84a: c40f stmia r4!, {r0, r1, r2, r3} + 800c84c: e895 0007 ldmia.w r5, {r0, r1, r2} + 800c850: e884 0007 stmia.w r4, {r0, r1, r2} osThreadCreate (osThread(LinkThr), &link_arg); - 800c850: 1d3b adds r3, r7, #4 - 800c852: 490d ldr r1, [pc, #52] ; (800c888 ) - 800c854: 4618 mov r0, r3 - 800c856: f000 fc60 bl 800d11a + 800c854: 1d3b adds r3, r7, #4 + 800c856: 490d ldr r1, [pc, #52] ; (800c88c ) + 800c858: 4618 mov r0, r3 + 800c85a: f000 fc60 bl 800d11e /* USER CODE END OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ /* Start DHCP negotiation for a network interface (IPv4) */ dhcp_start(&gnetif); - 800c85a: 4808 ldr r0, [pc, #32] ; (800c87c ) - 800c85c: f00b ff7c bl 8018758 + 800c85e: 4808 ldr r0, [pc, #32] ; (800c880 ) + 800c860: f00b ff82 bl 8018768 /* USER CODE BEGIN 3 */ /* USER CODE END 3 */ } - 800c860: bf00 nop - 800c862: 3728 adds r7, #40 ; 0x28 - 800c864: 46bd mov sp, r7 - 800c866: bdb0 pop {r4, r5, r7, pc} - 800c868: 20008fc4 .word 0x20008fc4 - 800c86c: 20008fc8 .word 0x20008fc8 - 800c870: 20008fcc .word 0x20008fcc - 800c874: 08010329 .word 0x08010329 - 800c878: 0800cea9 .word 0x0800cea9 - 800c87c: 20008f8c .word 0x20008f8c - 800c880: 0800cf8d .word 0x0800cf8d - 800c884: 20000578 .word 0x20000578 - 800c888: 20008f84 .word 0x20008f84 - 800c88c: 0801d8c8 .word 0x0801d8c8 - -0800c890 : + 800c864: bf00 nop + 800c866: 3728 adds r7, #40 ; 0x28 + 800c868: 46bd mov sp, r7 + 800c86a: bdb0 pop {r4, r5, r7, pc} + 800c86c: 20008fc4 .word 0x20008fc4 + 800c870: 20008fc8 .word 0x20008fc8 + 800c874: 20008fcc .word 0x20008fcc + 800c878: 08010339 .word 0x08010339 + 800c87c: 0800cead .word 0x0800cead + 800c880: 20008f8c .word 0x20008f8c + 800c884: 0800cf91 .word 0x0800cf91 + 800c888: 20000578 .word 0x20000578 + 800c88c: 20008f84 .word 0x20008f84 + 800c890: 0801d8d8 .word 0x0801d8d8 + +0800c894 : /* USER CODE END 3 */ /* Private functions ---------------------------------------------------------*/ void HAL_ETH_MspInit(ETH_HandleTypeDef* ethHandle) { - 800c890: b580 push {r7, lr} - 800c892: b08e sub sp, #56 ; 0x38 - 800c894: af00 add r7, sp, #0 - 800c896: 6078 str r0, [r7, #4] + 800c894: b580 push {r7, lr} + 800c896: b08e sub sp, #56 ; 0x38 + 800c898: af00 add r7, sp, #0 + 800c89a: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800c898: f107 0324 add.w r3, r7, #36 ; 0x24 - 800c89c: 2200 movs r2, #0 - 800c89e: 601a str r2, [r3, #0] - 800c8a0: 605a str r2, [r3, #4] - 800c8a2: 609a str r2, [r3, #8] - 800c8a4: 60da str r2, [r3, #12] - 800c8a6: 611a str r2, [r3, #16] + 800c89c: f107 0324 add.w r3, r7, #36 ; 0x24 + 800c8a0: 2200 movs r2, #0 + 800c8a2: 601a str r2, [r3, #0] + 800c8a4: 605a str r2, [r3, #4] + 800c8a6: 609a str r2, [r3, #8] + 800c8a8: 60da str r2, [r3, #12] + 800c8aa: 611a str r2, [r3, #16] if(ethHandle->Instance==ETH) - 800c8a8: 687b ldr r3, [r7, #4] - 800c8aa: 681b ldr r3, [r3, #0] - 800c8ac: 4a44 ldr r2, [pc, #272] ; (800c9c0 ) - 800c8ae: 4293 cmp r3, r2 - 800c8b0: f040 8081 bne.w 800c9b6 + 800c8ac: 687b ldr r3, [r7, #4] + 800c8ae: 681b ldr r3, [r3, #0] + 800c8b0: 4a44 ldr r2, [pc, #272] ; (800c9c4 ) + 800c8b2: 4293 cmp r3, r2 + 800c8b4: f040 8081 bne.w 800c9ba { /* USER CODE BEGIN ETH_MspInit 0 */ /* USER CODE END ETH_MspInit 0 */ /* Enable Peripheral clock */ __HAL_RCC_ETH_CLK_ENABLE(); - 800c8b4: 4b43 ldr r3, [pc, #268] ; (800c9c4 ) - 800c8b6: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c8b8: 4a42 ldr r2, [pc, #264] ; (800c9c4 ) - 800c8ba: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 - 800c8be: 6313 str r3, [r2, #48] ; 0x30 - 800c8c0: 4b40 ldr r3, [pc, #256] ; (800c9c4 ) - 800c8c2: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c8c4: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 - 800c8c8: 623b str r3, [r7, #32] - 800c8ca: 6a3b ldr r3, [r7, #32] - 800c8cc: 4b3d ldr r3, [pc, #244] ; (800c9c4 ) - 800c8ce: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c8d0: 4a3c ldr r2, [pc, #240] ; (800c9c4 ) - 800c8d2: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 - 800c8d6: 6313 str r3, [r2, #48] ; 0x30 - 800c8d8: 4b3a ldr r3, [pc, #232] ; (800c9c4 ) - 800c8da: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c8dc: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 - 800c8e0: 61fb str r3, [r7, #28] - 800c8e2: 69fb ldr r3, [r7, #28] - 800c8e4: 4b37 ldr r3, [pc, #220] ; (800c9c4 ) - 800c8e6: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c8e8: 4a36 ldr r2, [pc, #216] ; (800c9c4 ) - 800c8ea: f043 6300 orr.w r3, r3, #134217728 ; 0x8000000 - 800c8ee: 6313 str r3, [r2, #48] ; 0x30 - 800c8f0: 4b34 ldr r3, [pc, #208] ; (800c9c4 ) - 800c8f2: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c8f4: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 - 800c8f8: 61bb str r3, [r7, #24] - 800c8fa: 69bb ldr r3, [r7, #24] + 800c8b8: 4b43 ldr r3, [pc, #268] ; (800c9c8 ) + 800c8ba: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c8bc: 4a42 ldr r2, [pc, #264] ; (800c9c8 ) + 800c8be: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 + 800c8c2: 6313 str r3, [r2, #48] ; 0x30 + 800c8c4: 4b40 ldr r3, [pc, #256] ; (800c9c8 ) + 800c8c6: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c8c8: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 + 800c8cc: 623b str r3, [r7, #32] + 800c8ce: 6a3b ldr r3, [r7, #32] + 800c8d0: 4b3d ldr r3, [pc, #244] ; (800c9c8 ) + 800c8d2: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c8d4: 4a3c ldr r2, [pc, #240] ; (800c9c8 ) + 800c8d6: f043 6380 orr.w r3, r3, #67108864 ; 0x4000000 + 800c8da: 6313 str r3, [r2, #48] ; 0x30 + 800c8dc: 4b3a ldr r3, [pc, #232] ; (800c9c8 ) + 800c8de: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c8e0: f003 6380 and.w r3, r3, #67108864 ; 0x4000000 + 800c8e4: 61fb str r3, [r7, #28] + 800c8e6: 69fb ldr r3, [r7, #28] + 800c8e8: 4b37 ldr r3, [pc, #220] ; (800c9c8 ) + 800c8ea: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c8ec: 4a36 ldr r2, [pc, #216] ; (800c9c8 ) + 800c8ee: f043 6300 orr.w r3, r3, #134217728 ; 0x8000000 + 800c8f2: 6313 str r3, [r2, #48] ; 0x30 + 800c8f4: 4b34 ldr r3, [pc, #208] ; (800c9c8 ) + 800c8f6: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c8f8: f003 6300 and.w r3, r3, #134217728 ; 0x8000000 + 800c8fc: 61bb str r3, [r7, #24] + 800c8fe: 69bb ldr r3, [r7, #24] __HAL_RCC_GPIOG_CLK_ENABLE(); - 800c8fc: 4b31 ldr r3, [pc, #196] ; (800c9c4 ) - 800c8fe: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c900: 4a30 ldr r2, [pc, #192] ; (800c9c4 ) - 800c902: f043 0340 orr.w r3, r3, #64 ; 0x40 - 800c906: 6313 str r3, [r2, #48] ; 0x30 - 800c908: 4b2e ldr r3, [pc, #184] ; (800c9c4 ) - 800c90a: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c90c: f003 0340 and.w r3, r3, #64 ; 0x40 - 800c910: 617b str r3, [r7, #20] - 800c912: 697b ldr r3, [r7, #20] + 800c900: 4b31 ldr r3, [pc, #196] ; (800c9c8 ) + 800c902: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c904: 4a30 ldr r2, [pc, #192] ; (800c9c8 ) + 800c906: f043 0340 orr.w r3, r3, #64 ; 0x40 + 800c90a: 6313 str r3, [r2, #48] ; 0x30 + 800c90c: 4b2e ldr r3, [pc, #184] ; (800c9c8 ) + 800c90e: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c910: f003 0340 and.w r3, r3, #64 ; 0x40 + 800c914: 617b str r3, [r7, #20] + 800c916: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOC_CLK_ENABLE(); - 800c914: 4b2b ldr r3, [pc, #172] ; (800c9c4 ) - 800c916: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c918: 4a2a ldr r2, [pc, #168] ; (800c9c4 ) - 800c91a: f043 0304 orr.w r3, r3, #4 - 800c91e: 6313 str r3, [r2, #48] ; 0x30 - 800c920: 4b28 ldr r3, [pc, #160] ; (800c9c4 ) - 800c922: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c924: f003 0304 and.w r3, r3, #4 - 800c928: 613b str r3, [r7, #16] - 800c92a: 693b ldr r3, [r7, #16] + 800c918: 4b2b ldr r3, [pc, #172] ; (800c9c8 ) + 800c91a: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c91c: 4a2a ldr r2, [pc, #168] ; (800c9c8 ) + 800c91e: f043 0304 orr.w r3, r3, #4 + 800c922: 6313 str r3, [r2, #48] ; 0x30 + 800c924: 4b28 ldr r3, [pc, #160] ; (800c9c8 ) + 800c926: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c928: f003 0304 and.w r3, r3, #4 + 800c92c: 613b str r3, [r7, #16] + 800c92e: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); - 800c92c: 4b25 ldr r3, [pc, #148] ; (800c9c4 ) - 800c92e: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c930: 4a24 ldr r2, [pc, #144] ; (800c9c4 ) - 800c932: f043 0301 orr.w r3, r3, #1 - 800c936: 6313 str r3, [r2, #48] ; 0x30 - 800c938: 4b22 ldr r3, [pc, #136] ; (800c9c4 ) - 800c93a: 6b1b ldr r3, [r3, #48] ; 0x30 - 800c93c: f003 0301 and.w r3, r3, #1 - 800c940: 60fb str r3, [r7, #12] - 800c942: 68fb ldr r3, [r7, #12] + 800c930: 4b25 ldr r3, [pc, #148] ; (800c9c8 ) + 800c932: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c934: 4a24 ldr r2, [pc, #144] ; (800c9c8 ) + 800c936: f043 0301 orr.w r3, r3, #1 + 800c93a: 6313 str r3, [r2, #48] ; 0x30 + 800c93c: 4b22 ldr r3, [pc, #136] ; (800c9c8 ) + 800c93e: 6b1b ldr r3, [r3, #48] ; 0x30 + 800c940: f003 0301 and.w r3, r3, #1 + 800c944: 60fb str r3, [r7, #12] + 800c946: 68fb ldr r3, [r7, #12] PC4 ------> ETH_RXD0 PA2 ------> ETH_MDIO PC5 ------> ETH_RXD1 PA7 ------> ETH_CRS_DV */ GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_13|GPIO_PIN_11; - 800c944: f44f 43d0 mov.w r3, #26624 ; 0x6800 - 800c948: 627b str r3, [r7, #36] ; 0x24 + 800c948: f44f 43d0 mov.w r3, #26624 ; 0x6800 + 800c94c: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800c94a: 2302 movs r3, #2 - 800c94c: 62bb str r3, [r7, #40] ; 0x28 + 800c94e: 2302 movs r3, #2 + 800c950: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 800c94e: 2300 movs r3, #0 - 800c950: 62fb str r3, [r7, #44] ; 0x2c + 800c952: 2300 movs r3, #0 + 800c954: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800c952: 2303 movs r3, #3 - 800c954: 633b str r3, [r7, #48] ; 0x30 + 800c956: 2303 movs r3, #3 + 800c958: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 800c956: 230b movs r3, #11 - 800c958: 637b str r3, [r7, #52] ; 0x34 + 800c95a: 230b movs r3, #11 + 800c95c: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOG, &GPIO_InitStruct); - 800c95a: f107 0324 add.w r3, r7, #36 ; 0x24 - 800c95e: 4619 mov r1, r3 - 800c960: 4819 ldr r0, [pc, #100] ; (800c9c8 ) - 800c962: f7fa fe8b bl 800767c + 800c95e: f107 0324 add.w r3, r7, #36 ; 0x24 + 800c962: 4619 mov r1, r3 + 800c964: 4819 ldr r0, [pc, #100] ; (800c9cc ) + 800c966: f7fa fe8b bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_4|GPIO_PIN_5; - 800c966: 2332 movs r3, #50 ; 0x32 - 800c968: 627b str r3, [r7, #36] ; 0x24 + 800c96a: 2332 movs r3, #50 ; 0x32 + 800c96c: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800c96a: 2302 movs r3, #2 - 800c96c: 62bb str r3, [r7, #40] ; 0x28 + 800c96e: 2302 movs r3, #2 + 800c970: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 800c96e: 2300 movs r3, #0 - 800c970: 62fb str r3, [r7, #44] ; 0x2c + 800c972: 2300 movs r3, #0 + 800c974: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800c972: 2303 movs r3, #3 - 800c974: 633b str r3, [r7, #48] ; 0x30 + 800c976: 2303 movs r3, #3 + 800c978: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 800c976: 230b movs r3, #11 - 800c978: 637b str r3, [r7, #52] ; 0x34 + 800c97a: 230b movs r3, #11 + 800c97c: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 800c97a: f107 0324 add.w r3, r7, #36 ; 0x24 - 800c97e: 4619 mov r1, r3 - 800c980: 4812 ldr r0, [pc, #72] ; (800c9cc ) - 800c982: f7fa fe7b bl 800767c + 800c97e: f107 0324 add.w r3, r7, #36 ; 0x24 + 800c982: 4619 mov r1, r3 + 800c984: 4812 ldr r0, [pc, #72] ; (800c9d0 ) + 800c986: f7fa fe7b bl 8007680 GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_7; - 800c986: 2386 movs r3, #134 ; 0x86 - 800c988: 627b str r3, [r7, #36] ; 0x24 + 800c98a: 2386 movs r3, #134 ; 0x86 + 800c98c: 627b str r3, [r7, #36] ; 0x24 GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800c98a: 2302 movs r3, #2 - 800c98c: 62bb str r3, [r7, #40] ; 0x28 + 800c98e: 2302 movs r3, #2 + 800c990: 62bb str r3, [r7, #40] ; 0x28 GPIO_InitStruct.Pull = GPIO_NOPULL; - 800c98e: 2300 movs r3, #0 - 800c990: 62fb str r3, [r7, #44] ; 0x2c + 800c992: 2300 movs r3, #0 + 800c994: 62fb str r3, [r7, #44] ; 0x2c GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800c992: 2303 movs r3, #3 - 800c994: 633b str r3, [r7, #48] ; 0x30 + 800c996: 2303 movs r3, #3 + 800c998: 633b str r3, [r7, #48] ; 0x30 GPIO_InitStruct.Alternate = GPIO_AF11_ETH; - 800c996: 230b movs r3, #11 - 800c998: 637b str r3, [r7, #52] ; 0x34 + 800c99a: 230b movs r3, #11 + 800c99c: 637b str r3, [r7, #52] ; 0x34 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 800c99a: f107 0324 add.w r3, r7, #36 ; 0x24 - 800c99e: 4619 mov r1, r3 - 800c9a0: 480b ldr r0, [pc, #44] ; (800c9d0 ) - 800c9a2: f7fa fe6b bl 800767c + 800c99e: f107 0324 add.w r3, r7, #36 ; 0x24 + 800c9a2: 4619 mov r1, r3 + 800c9a4: 480b ldr r0, [pc, #44] ; (800c9d4 ) + 800c9a6: f7fa fe6b bl 8007680 /* Peripheral interrupt init */ HAL_NVIC_SetPriority(ETH_IRQn, 5, 0); - 800c9a6: 2200 movs r2, #0 - 800c9a8: 2105 movs r1, #5 - 800c9aa: 203d movs r0, #61 ; 0x3d - 800c9ac: f7f8 feb6 bl 800571c + 800c9aa: 2200 movs r2, #0 + 800c9ac: 2105 movs r1, #5 + 800c9ae: 203d movs r0, #61 ; 0x3d + 800c9b0: f7f8 feb6 bl 8005720 HAL_NVIC_EnableIRQ(ETH_IRQn); - 800c9b0: 203d movs r0, #61 ; 0x3d - 800c9b2: f7f8 fecf bl 8005754 + 800c9b4: 203d movs r0, #61 ; 0x3d + 800c9b6: f7f8 fecf bl 8005758 /* USER CODE BEGIN ETH_MspInit 1 */ /* USER CODE END ETH_MspInit 1 */ } } - 800c9b6: bf00 nop - 800c9b8: 3738 adds r7, #56 ; 0x38 - 800c9ba: 46bd mov sp, r7 - 800c9bc: bd80 pop {r7, pc} - 800c9be: bf00 nop - 800c9c0: 40028000 .word 0x40028000 - 800c9c4: 40023800 .word 0x40023800 - 800c9c8: 40021800 .word 0x40021800 - 800c9cc: 40020800 .word 0x40020800 - 800c9d0: 40020000 .word 0x40020000 + 800c9ba: bf00 nop + 800c9bc: 3738 adds r7, #56 ; 0x38 + 800c9be: 46bd mov sp, r7 + 800c9c0: bd80 pop {r7, pc} + 800c9c2: bf00 nop + 800c9c4: 40028000 .word 0x40028000 + 800c9c8: 40023800 .word 0x40023800 + 800c9cc: 40021800 .word 0x40021800 + 800c9d0: 40020800 .word 0x40020800 + 800c9d4: 40020000 .word 0x40020000 -0800c9d4 : +0800c9d8 : * @brief Ethernet Rx Transfer completed callback * @param heth: ETH handle * @retval None */ void HAL_ETH_RxCpltCallback(ETH_HandleTypeDef *heth) { - 800c9d4: b580 push {r7, lr} - 800c9d6: b082 sub sp, #8 - 800c9d8: af00 add r7, sp, #0 - 800c9da: 6078 str r0, [r7, #4] + 800c9d8: b580 push {r7, lr} + 800c9da: b082 sub sp, #8 + 800c9dc: af00 add r7, sp, #0 + 800c9de: 6078 str r0, [r7, #4] osSemaphoreRelease(s_xSemaphore); - 800c9dc: 4b04 ldr r3, [pc, #16] ; (800c9f0 ) - 800c9de: 681b ldr r3, [r3, #0] - 800c9e0: 4618 mov r0, r3 - 800c9e2: f000 fd25 bl 800d430 -} - 800c9e6: bf00 nop - 800c9e8: 3708 adds r7, #8 - 800c9ea: 46bd mov sp, r7 - 800c9ec: bd80 pop {r7, pc} - 800c9ee: bf00 nop - 800c9f0: 2000057c .word 0x2000057c - -0800c9f4 : + 800c9e0: 4b04 ldr r3, [pc, #16] ; (800c9f4 ) + 800c9e2: 681b ldr r3, [r3, #0] + 800c9e4: 4618 mov r0, r3 + 800c9e6: f000 fd25 bl 800d434 +} + 800c9ea: bf00 nop + 800c9ec: 3708 adds r7, #8 + 800c9ee: 46bd mov sp, r7 + 800c9f0: bd80 pop {r7, pc} + 800c9f2: bf00 nop + 800c9f4: 2000057c .word 0x2000057c + +0800c9f8 : * * @param netif the already initialized lwip network interface structure * for this ethernetif */ static void low_level_init(struct netif *netif) { - 800c9f4: b5b0 push {r4, r5, r7, lr} - 800c9f6: b090 sub sp, #64 ; 0x40 - 800c9f8: af00 add r7, sp, #0 - 800c9fa: 6078 str r0, [r7, #4] + 800c9f8: b5b0 push {r4, r5, r7, lr} + 800c9fa: b090 sub sp, #64 ; 0x40 + 800c9fc: af00 add r7, sp, #0 + 800c9fe: 6078 str r0, [r7, #4] uint32_t regvalue = 0; - 800c9fc: 2300 movs r3, #0 - 800c9fe: 63bb str r3, [r7, #56] ; 0x38 + 800ca00: 2300 movs r3, #0 + 800ca02: 63bb str r3, [r7, #56] ; 0x38 HAL_StatusTypeDef hal_eth_init_status; /* Init ETH */ uint8_t MACAddr[6] ; heth.Instance = ETH; - 800ca00: 4b60 ldr r3, [pc, #384] ; (800cb84 ) - 800ca02: 4a61 ldr r2, [pc, #388] ; (800cb88 ) - 800ca04: 601a str r2, [r3, #0] + 800ca04: 4b60 ldr r3, [pc, #384] ; (800cb88 ) + 800ca06: 4a61 ldr r2, [pc, #388] ; (800cb8c ) + 800ca08: 601a str r2, [r3, #0] heth.Init.AutoNegotiation = ETH_AUTONEGOTIATION_ENABLE; - 800ca06: 4b5f ldr r3, [pc, #380] ; (800cb84 ) - 800ca08: 2201 movs r2, #1 - 800ca0a: 605a str r2, [r3, #4] + 800ca0a: 4b5f ldr r3, [pc, #380] ; (800cb88 ) + 800ca0c: 2201 movs r2, #1 + 800ca0e: 605a str r2, [r3, #4] heth.Init.Speed = ETH_SPEED_100M; - 800ca0c: 4b5d ldr r3, [pc, #372] ; (800cb84 ) - 800ca0e: f44f 4280 mov.w r2, #16384 ; 0x4000 - 800ca12: 609a str r2, [r3, #8] + 800ca10: 4b5d ldr r3, [pc, #372] ; (800cb88 ) + 800ca12: f44f 4280 mov.w r2, #16384 ; 0x4000 + 800ca16: 609a str r2, [r3, #8] heth.Init.DuplexMode = ETH_MODE_FULLDUPLEX; - 800ca14: 4b5b ldr r3, [pc, #364] ; (800cb84 ) - 800ca16: f44f 6200 mov.w r2, #2048 ; 0x800 - 800ca1a: 60da str r2, [r3, #12] + 800ca18: 4b5b ldr r3, [pc, #364] ; (800cb88 ) + 800ca1a: f44f 6200 mov.w r2, #2048 ; 0x800 + 800ca1e: 60da str r2, [r3, #12] heth.Init.PhyAddress = LAN8742A_PHY_ADDRESS; - 800ca1c: 4b59 ldr r3, [pc, #356] ; (800cb84 ) - 800ca1e: 2201 movs r2, #1 - 800ca20: 821a strh r2, [r3, #16] + 800ca20: 4b59 ldr r3, [pc, #356] ; (800cb88 ) + 800ca22: 2201 movs r2, #1 + 800ca24: 821a strh r2, [r3, #16] MACAddr[0] = 0x00; - 800ca22: 2300 movs r3, #0 - 800ca24: f887 3030 strb.w r3, [r7, #48] ; 0x30 + 800ca26: 2300 movs r3, #0 + 800ca28: f887 3030 strb.w r3, [r7, #48] ; 0x30 MACAddr[1] = 0x80; - 800ca28: 2380 movs r3, #128 ; 0x80 - 800ca2a: f887 3031 strb.w r3, [r7, #49] ; 0x31 + 800ca2c: 2380 movs r3, #128 ; 0x80 + 800ca2e: f887 3031 strb.w r3, [r7, #49] ; 0x31 MACAddr[2] = 0xE1; - 800ca2e: 23e1 movs r3, #225 ; 0xe1 - 800ca30: f887 3032 strb.w r3, [r7, #50] ; 0x32 + 800ca32: 23e1 movs r3, #225 ; 0xe1 + 800ca34: f887 3032 strb.w r3, [r7, #50] ; 0x32 MACAddr[3] = 0x00; - 800ca34: 2300 movs r3, #0 - 800ca36: f887 3033 strb.w r3, [r7, #51] ; 0x33 + 800ca38: 2300 movs r3, #0 + 800ca3a: f887 3033 strb.w r3, [r7, #51] ; 0x33 MACAddr[4] = 0x00; - 800ca3a: 2300 movs r3, #0 - 800ca3c: f887 3034 strb.w r3, [r7, #52] ; 0x34 + 800ca3e: 2300 movs r3, #0 + 800ca40: f887 3034 strb.w r3, [r7, #52] ; 0x34 MACAddr[5] = 0x00; - 800ca40: 2300 movs r3, #0 - 800ca42: f887 3035 strb.w r3, [r7, #53] ; 0x35 + 800ca44: 2300 movs r3, #0 + 800ca46: f887 3035 strb.w r3, [r7, #53] ; 0x35 heth.Init.MACAddr = &MACAddr[0]; - 800ca46: 4a4f ldr r2, [pc, #316] ; (800cb84 ) - 800ca48: f107 0330 add.w r3, r7, #48 ; 0x30 - 800ca4c: 6153 str r3, [r2, #20] + 800ca4a: 4a4f ldr r2, [pc, #316] ; (800cb88 ) + 800ca4c: f107 0330 add.w r3, r7, #48 ; 0x30 + 800ca50: 6153 str r3, [r2, #20] heth.Init.RxMode = ETH_RXINTERRUPT_MODE; - 800ca4e: 4b4d ldr r3, [pc, #308] ; (800cb84 ) - 800ca50: 2201 movs r2, #1 - 800ca52: 619a str r2, [r3, #24] + 800ca52: 4b4d ldr r3, [pc, #308] ; (800cb88 ) + 800ca54: 2201 movs r2, #1 + 800ca56: 619a str r2, [r3, #24] heth.Init.ChecksumMode = ETH_CHECKSUM_BY_HARDWARE; - 800ca54: 4b4b ldr r3, [pc, #300] ; (800cb84 ) - 800ca56: 2200 movs r2, #0 - 800ca58: 61da str r2, [r3, #28] + 800ca58: 4b4b ldr r3, [pc, #300] ; (800cb88 ) + 800ca5a: 2200 movs r2, #0 + 800ca5c: 61da str r2, [r3, #28] heth.Init.MediaInterface = ETH_MEDIA_INTERFACE_RMII; - 800ca5a: 4b4a ldr r3, [pc, #296] ; (800cb84 ) - 800ca5c: f44f 0200 mov.w r2, #8388608 ; 0x800000 - 800ca60: 621a str r2, [r3, #32] + 800ca5e: 4b4a ldr r3, [pc, #296] ; (800cb88 ) + 800ca60: f44f 0200 mov.w r2, #8388608 ; 0x800000 + 800ca64: 621a str r2, [r3, #32] /* USER CODE BEGIN MACADDRESS */ /* USER CODE END MACADDRESS */ hal_eth_init_status = HAL_ETH_Init(&heth); - 800ca62: 4848 ldr r0, [pc, #288] ; (800cb84 ) - 800ca64: f7f9 fc84 bl 8006370 - 800ca68: 4603 mov r3, r0 - 800ca6a: f887 303f strb.w r3, [r7, #63] ; 0x3f + 800ca66: 4848 ldr r0, [pc, #288] ; (800cb88 ) + 800ca68: f7f9 fc84 bl 8006374 + 800ca6c: 4603 mov r3, r0 + 800ca6e: f887 303f strb.w r3, [r7, #63] ; 0x3f if (hal_eth_init_status == HAL_OK) - 800ca6e: f897 303f ldrb.w r3, [r7, #63] ; 0x3f - 800ca72: 2b00 cmp r3, #0 - 800ca74: d108 bne.n 800ca88 + 800ca72: f897 303f ldrb.w r3, [r7, #63] ; 0x3f + 800ca76: 2b00 cmp r3, #0 + 800ca78: d108 bne.n 800ca8c { /* Set netif link flag */ netif->flags |= NETIF_FLAG_LINK_UP; - 800ca76: 687b ldr r3, [r7, #4] - 800ca78: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800ca7c: f043 0304 orr.w r3, r3, #4 - 800ca80: b2da uxtb r2, r3 - 800ca82: 687b ldr r3, [r7, #4] - 800ca84: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 800ca7a: 687b ldr r3, [r7, #4] + 800ca7c: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800ca80: f043 0304 orr.w r3, r3, #4 + 800ca84: b2da uxtb r2, r3 + 800ca86: 687b ldr r3, [r7, #4] + 800ca88: f883 2031 strb.w r2, [r3, #49] ; 0x31 } /* Initialize Tx Descriptors list: Chain Mode */ HAL_ETH_DMATxDescListInit(&heth, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB); - 800ca88: 2304 movs r3, #4 - 800ca8a: 4a40 ldr r2, [pc, #256] ; (800cb8c ) - 800ca8c: 4940 ldr r1, [pc, #256] ; (800cb90 ) - 800ca8e: 483d ldr r0, [pc, #244] ; (800cb84 ) - 800ca90: f7f9 fe0a bl 80066a8 + 800ca8c: 2304 movs r3, #4 + 800ca8e: 4a40 ldr r2, [pc, #256] ; (800cb90 ) + 800ca90: 4940 ldr r1, [pc, #256] ; (800cb94 ) + 800ca92: 483d ldr r0, [pc, #244] ; (800cb88 ) + 800ca94: f7f9 fe0a bl 80066ac /* Initialize Rx Descriptors list: Chain Mode */ HAL_ETH_DMARxDescListInit(&heth, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB); - 800ca94: 2304 movs r3, #4 - 800ca96: 4a3f ldr r2, [pc, #252] ; (800cb94 ) - 800ca98: 493f ldr r1, [pc, #252] ; (800cb98 ) - 800ca9a: 483a ldr r0, [pc, #232] ; (800cb84 ) - 800ca9c: f7f9 fe6d bl 800677a + 800ca98: 2304 movs r3, #4 + 800ca9a: 4a3f ldr r2, [pc, #252] ; (800cb98 ) + 800ca9c: 493f ldr r1, [pc, #252] ; (800cb9c ) + 800ca9e: 483a ldr r0, [pc, #232] ; (800cb88 ) + 800caa0: f7f9 fe6d bl 800677e #if LWIP_ARP || LWIP_ETHERNET /* set MAC hardware address length */ netif->hwaddr_len = ETH_HWADDR_LEN; - 800caa0: 687b ldr r3, [r7, #4] - 800caa2: 2206 movs r2, #6 - 800caa4: f883 2030 strb.w r2, [r3, #48] ; 0x30 + 800caa4: 687b ldr r3, [r7, #4] + 800caa6: 2206 movs r2, #6 + 800caa8: f883 2030 strb.w r2, [r3, #48] ; 0x30 /* set MAC hardware address */ netif->hwaddr[0] = heth.Init.MACAddr[0]; - 800caa8: 4b36 ldr r3, [pc, #216] ; (800cb84 ) - 800caaa: 695b ldr r3, [r3, #20] - 800caac: 781a ldrb r2, [r3, #0] - 800caae: 687b ldr r3, [r7, #4] - 800cab0: f883 202a strb.w r2, [r3, #42] ; 0x2a + 800caac: 4b36 ldr r3, [pc, #216] ; (800cb88 ) + 800caae: 695b ldr r3, [r3, #20] + 800cab0: 781a ldrb r2, [r3, #0] + 800cab2: 687b ldr r3, [r7, #4] + 800cab4: f883 202a strb.w r2, [r3, #42] ; 0x2a netif->hwaddr[1] = heth.Init.MACAddr[1]; - 800cab4: 4b33 ldr r3, [pc, #204] ; (800cb84 ) - 800cab6: 695b ldr r3, [r3, #20] - 800cab8: 785a ldrb r2, [r3, #1] - 800caba: 687b ldr r3, [r7, #4] - 800cabc: f883 202b strb.w r2, [r3, #43] ; 0x2b + 800cab8: 4b33 ldr r3, [pc, #204] ; (800cb88 ) + 800caba: 695b ldr r3, [r3, #20] + 800cabc: 785a ldrb r2, [r3, #1] + 800cabe: 687b ldr r3, [r7, #4] + 800cac0: f883 202b strb.w r2, [r3, #43] ; 0x2b netif->hwaddr[2] = heth.Init.MACAddr[2]; - 800cac0: 4b30 ldr r3, [pc, #192] ; (800cb84 ) - 800cac2: 695b ldr r3, [r3, #20] - 800cac4: 789a ldrb r2, [r3, #2] - 800cac6: 687b ldr r3, [r7, #4] - 800cac8: f883 202c strb.w r2, [r3, #44] ; 0x2c + 800cac4: 4b30 ldr r3, [pc, #192] ; (800cb88 ) + 800cac6: 695b ldr r3, [r3, #20] + 800cac8: 789a ldrb r2, [r3, #2] + 800caca: 687b ldr r3, [r7, #4] + 800cacc: f883 202c strb.w r2, [r3, #44] ; 0x2c netif->hwaddr[3] = heth.Init.MACAddr[3]; - 800cacc: 4b2d ldr r3, [pc, #180] ; (800cb84 ) - 800cace: 695b ldr r3, [r3, #20] - 800cad0: 78da ldrb r2, [r3, #3] - 800cad2: 687b ldr r3, [r7, #4] - 800cad4: f883 202d strb.w r2, [r3, #45] ; 0x2d + 800cad0: 4b2d ldr r3, [pc, #180] ; (800cb88 ) + 800cad2: 695b ldr r3, [r3, #20] + 800cad4: 78da ldrb r2, [r3, #3] + 800cad6: 687b ldr r3, [r7, #4] + 800cad8: f883 202d strb.w r2, [r3, #45] ; 0x2d netif->hwaddr[4] = heth.Init.MACAddr[4]; - 800cad8: 4b2a ldr r3, [pc, #168] ; (800cb84 ) - 800cada: 695b ldr r3, [r3, #20] - 800cadc: 791a ldrb r2, [r3, #4] - 800cade: 687b ldr r3, [r7, #4] - 800cae0: f883 202e strb.w r2, [r3, #46] ; 0x2e + 800cadc: 4b2a ldr r3, [pc, #168] ; (800cb88 ) + 800cade: 695b ldr r3, [r3, #20] + 800cae0: 791a ldrb r2, [r3, #4] + 800cae2: 687b ldr r3, [r7, #4] + 800cae4: f883 202e strb.w r2, [r3, #46] ; 0x2e netif->hwaddr[5] = heth.Init.MACAddr[5]; - 800cae4: 4b27 ldr r3, [pc, #156] ; (800cb84 ) - 800cae6: 695b ldr r3, [r3, #20] - 800cae8: 795a ldrb r2, [r3, #5] - 800caea: 687b ldr r3, [r7, #4] - 800caec: f883 202f strb.w r2, [r3, #47] ; 0x2f + 800cae8: 4b27 ldr r3, [pc, #156] ; (800cb88 ) + 800caea: 695b ldr r3, [r3, #20] + 800caec: 795a ldrb r2, [r3, #5] + 800caee: 687b ldr r3, [r7, #4] + 800caf0: f883 202f strb.w r2, [r3, #47] ; 0x2f /* maximum transfer unit */ netif->mtu = 1500; - 800caf0: 687b ldr r3, [r7, #4] - 800caf2: f240 52dc movw r2, #1500 ; 0x5dc - 800caf6: 851a strh r2, [r3, #40] ; 0x28 + 800caf4: 687b ldr r3, [r7, #4] + 800caf6: f240 52dc movw r2, #1500 ; 0x5dc + 800cafa: 851a strh r2, [r3, #40] ; 0x28 /* Accept broadcast address and ARP traffic */ /* don't set NETIF_FLAG_ETHARP if this device is not an ethernet one */ #if LWIP_ARP netif->flags |= NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP; - 800caf8: 687b ldr r3, [r7, #4] - 800cafa: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800cafe: f043 030a orr.w r3, r3, #10 - 800cb02: b2da uxtb r2, r3 - 800cb04: 687b ldr r3, [r7, #4] - 800cb06: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 800cafc: 687b ldr r3, [r7, #4] + 800cafe: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800cb02: f043 030a orr.w r3, r3, #10 + 800cb06: b2da uxtb r2, r3 + 800cb08: 687b ldr r3, [r7, #4] + 800cb0a: f883 2031 strb.w r2, [r3, #49] ; 0x31 #else netif->flags |= NETIF_FLAG_BROADCAST; #endif /* LWIP_ARP */ /* create a binary semaphore used for informing ethernetif of frame reception */ osSemaphoreDef(SEM); - 800cb0a: 2300 movs r3, #0 - 800cb0c: 62bb str r3, [r7, #40] ; 0x28 800cb0e: 2300 movs r3, #0 - 800cb10: 62fb str r3, [r7, #44] ; 0x2c + 800cb10: 62bb str r3, [r7, #40] ; 0x28 + 800cb12: 2300 movs r3, #0 + 800cb14: 62fb str r3, [r7, #44] ; 0x2c s_xSemaphore = osSemaphoreCreate(osSemaphore(SEM), 1); - 800cb12: f107 0328 add.w r3, r7, #40 ; 0x28 - 800cb16: 2101 movs r1, #1 - 800cb18: 4618 mov r0, r3 - 800cb1a: f000 fbfb bl 800d314 - 800cb1e: 4602 mov r2, r0 - 800cb20: 4b1e ldr r3, [pc, #120] ; (800cb9c ) - 800cb22: 601a str r2, [r3, #0] + 800cb16: f107 0328 add.w r3, r7, #40 ; 0x28 + 800cb1a: 2101 movs r1, #1 + 800cb1c: 4618 mov r0, r3 + 800cb1e: f000 fbfb bl 800d318 + 800cb22: 4602 mov r2, r0 + 800cb24: 4b1e ldr r3, [pc, #120] ; (800cba0 ) + 800cb26: 601a str r2, [r3, #0] /* create the task that handles the ETH_MAC */ /* USER CODE BEGIN OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ osThreadDef(EthIf, ethernetif_input, osPriorityRealtime, 0, INTERFACE_THREAD_STACK_SIZE); - 800cb24: 4b1e ldr r3, [pc, #120] ; (800cba0 ) - 800cb26: f107 040c add.w r4, r7, #12 - 800cb2a: 461d mov r5, r3 - 800cb2c: cd0f ldmia r5!, {r0, r1, r2, r3} - 800cb2e: c40f stmia r4!, {r0, r1, r2, r3} - 800cb30: e895 0007 ldmia.w r5, {r0, r1, r2} - 800cb34: e884 0007 stmia.w r4, {r0, r1, r2} + 800cb28: 4b1e ldr r3, [pc, #120] ; (800cba4 ) + 800cb2a: f107 040c add.w r4, r7, #12 + 800cb2e: 461d mov r5, r3 + 800cb30: cd0f ldmia r5!, {r0, r1, r2, r3} + 800cb32: c40f stmia r4!, {r0, r1, r2, r3} + 800cb34: e895 0007 ldmia.w r5, {r0, r1, r2} + 800cb38: e884 0007 stmia.w r4, {r0, r1, r2} osThreadCreate (osThread(EthIf), netif); - 800cb38: f107 030c add.w r3, r7, #12 - 800cb3c: 6879 ldr r1, [r7, #4] - 800cb3e: 4618 mov r0, r3 - 800cb40: f000 faeb bl 800d11a + 800cb3c: f107 030c add.w r3, r7, #12 + 800cb40: 6879 ldr r1, [r7, #4] + 800cb42: 4618 mov r0, r3 + 800cb44: f000 faeb bl 800d11e /* USER CODE END OS_THREAD_DEF_CREATE_CMSIS_RTOS_V1 */ /* Enable MAC and DMA transmission and reception */ HAL_ETH_Start(&heth); - 800cb44: 480f ldr r0, [pc, #60] ; (800cb84 ) - 800cb46: f7fa f940 bl 8006dca + 800cb48: 480f ldr r0, [pc, #60] ; (800cb88 ) + 800cb4a: f7fa f940 bl 8006dce /* USER CODE BEGIN PHY_PRE_CONFIG */ /* USER CODE END PHY_PRE_CONFIG */ /* Read Register Configuration */ HAL_ETH_ReadPHYRegister(&heth, PHY_ISFR, ®value); - 800cb4a: f107 0338 add.w r3, r7, #56 ; 0x38 - 800cb4e: 461a mov r2, r3 - 800cb50: 211d movs r1, #29 - 800cb52: 480c ldr r0, [pc, #48] ; (800cb84 ) - 800cb54: f7fa f86b bl 8006c2e + 800cb4e: f107 0338 add.w r3, r7, #56 ; 0x38 + 800cb52: 461a mov r2, r3 + 800cb54: 211d movs r1, #29 + 800cb56: 480c ldr r0, [pc, #48] ; (800cb88 ) + 800cb58: f7fa f86b bl 8006c32 regvalue |= (PHY_ISFR_INT4); - 800cb58: 6bbb ldr r3, [r7, #56] ; 0x38 - 800cb5a: f043 030b orr.w r3, r3, #11 - 800cb5e: 63bb str r3, [r7, #56] ; 0x38 + 800cb5c: 6bbb ldr r3, [r7, #56] ; 0x38 + 800cb5e: f043 030b orr.w r3, r3, #11 + 800cb62: 63bb str r3, [r7, #56] ; 0x38 /* Enable Interrupt on change of link status */ HAL_ETH_WritePHYRegister(&heth, PHY_ISFR , regvalue ); - 800cb60: 6bbb ldr r3, [r7, #56] ; 0x38 - 800cb62: 461a mov r2, r3 - 800cb64: 211d movs r1, #29 - 800cb66: 4807 ldr r0, [pc, #28] ; (800cb84 ) - 800cb68: f7fa f8c9 bl 8006cfe + 800cb64: 6bbb ldr r3, [r7, #56] ; 0x38 + 800cb66: 461a mov r2, r3 + 800cb68: 211d movs r1, #29 + 800cb6a: 4807 ldr r0, [pc, #28] ; (800cb88 ) + 800cb6c: f7fa f8c9 bl 8006d02 /* Read Register Configuration */ HAL_ETH_ReadPHYRegister(&heth, PHY_ISFR , ®value); - 800cb6c: f107 0338 add.w r3, r7, #56 ; 0x38 - 800cb70: 461a mov r2, r3 - 800cb72: 211d movs r1, #29 - 800cb74: 4803 ldr r0, [pc, #12] ; (800cb84 ) - 800cb76: f7fa f85a bl 8006c2e + 800cb70: f107 0338 add.w r3, r7, #56 ; 0x38 + 800cb74: 461a mov r2, r3 + 800cb76: 211d movs r1, #29 + 800cb78: 4803 ldr r0, [pc, #12] ; (800cb88 ) + 800cb7a: f7fa f85a bl 8006c32 #endif /* LWIP_ARP || LWIP_ETHERNET */ /* USER CODE BEGIN LOW_LEVEL_INIT */ /* USER CODE END LOW_LEVEL_INIT */ } - 800cb7a: bf00 nop - 800cb7c: 3740 adds r7, #64 ; 0x40 - 800cb7e: 46bd mov sp, r7 - 800cb80: bdb0 pop {r4, r5, r7, pc} - 800cb82: bf00 nop - 800cb84: 2000a8a0 .word 0x2000a8a0 - 800cb88: 40028000 .word 0x40028000 - 800cb8c: 2000a8e8 .word 0x2000a8e8 - 800cb90: 20008fd0 .word 0x20008fd0 - 800cb94: 20009050 .word 0x20009050 - 800cb98: 2000a820 .word 0x2000a820 - 800cb9c: 2000057c .word 0x2000057c - 800cba0: 0801d8ec .word 0x0801d8ec - -0800cba4 : + 800cb7e: bf00 nop + 800cb80: 3740 adds r7, #64 ; 0x40 + 800cb82: 46bd mov sp, r7 + 800cb84: bdb0 pop {r4, r5, r7, pc} + 800cb86: bf00 nop + 800cb88: 2000a8a0 .word 0x2000a8a0 + 800cb8c: 40028000 .word 0x40028000 + 800cb90: 2000a8e8 .word 0x2000a8e8 + 800cb94: 20008fd0 .word 0x20008fd0 + 800cb98: 20009050 .word 0x20009050 + 800cb9c: 2000a820 .word 0x2000a820 + 800cba0: 2000057c .word 0x2000057c + 800cba4: 0801d8fc .word 0x0801d8fc + +0800cba8 : * to become availale since the stack doesn't retry to send a packet * dropped because of memory failure (except for the TCP timers). */ static err_t low_level_output(struct netif *netif, struct pbuf *p) { - 800cba4: b580 push {r7, lr} - 800cba6: b08a sub sp, #40 ; 0x28 - 800cba8: af00 add r7, sp, #0 - 800cbaa: 6078 str r0, [r7, #4] - 800cbac: 6039 str r1, [r7, #0] + 800cba8: b580 push {r7, lr} + 800cbaa: b08a sub sp, #40 ; 0x28 + 800cbac: af00 add r7, sp, #0 + 800cbae: 6078 str r0, [r7, #4] + 800cbb0: 6039 str r1, [r7, #0] err_t errval; struct pbuf *q; uint8_t *buffer = (uint8_t *)(heth.TxDesc->Buffer1Addr); - 800cbae: 4b4b ldr r3, [pc, #300] ; (800ccdc ) - 800cbb0: 6adb ldr r3, [r3, #44] ; 0x2c - 800cbb2: 689b ldr r3, [r3, #8] - 800cbb4: 61fb str r3, [r7, #28] + 800cbb2: 4b4b ldr r3, [pc, #300] ; (800cce0 ) + 800cbb4: 6adb ldr r3, [r3, #44] ; 0x2c + 800cbb6: 689b ldr r3, [r3, #8] + 800cbb8: 61fb str r3, [r7, #28] __IO ETH_DMADescTypeDef *DmaTxDesc; uint32_t framelength = 0; - 800cbb6: 2300 movs r3, #0 - 800cbb8: 617b str r3, [r7, #20] - uint32_t bufferoffset = 0; 800cbba: 2300 movs r3, #0 - 800cbbc: 613b str r3, [r7, #16] - uint32_t byteslefttocopy = 0; + 800cbbc: 617b str r3, [r7, #20] + uint32_t bufferoffset = 0; 800cbbe: 2300 movs r3, #0 - 800cbc0: 60fb str r3, [r7, #12] - uint32_t payloadoffset = 0; + 800cbc0: 613b str r3, [r7, #16] + uint32_t byteslefttocopy = 0; 800cbc2: 2300 movs r3, #0 - 800cbc4: 60bb str r3, [r7, #8] + 800cbc4: 60fb str r3, [r7, #12] + uint32_t payloadoffset = 0; + 800cbc6: 2300 movs r3, #0 + 800cbc8: 60bb str r3, [r7, #8] DmaTxDesc = heth.TxDesc; - 800cbc6: 4b45 ldr r3, [pc, #276] ; (800ccdc ) - 800cbc8: 6adb ldr r3, [r3, #44] ; 0x2c - 800cbca: 61bb str r3, [r7, #24] + 800cbca: 4b45 ldr r3, [pc, #276] ; (800cce0 ) + 800cbcc: 6adb ldr r3, [r3, #44] ; 0x2c + 800cbce: 61bb str r3, [r7, #24] bufferoffset = 0; - 800cbcc: 2300 movs r3, #0 - 800cbce: 613b str r3, [r7, #16] + 800cbd0: 2300 movs r3, #0 + 800cbd2: 613b str r3, [r7, #16] /* copy frame from pbufs to driver buffers */ for(q = p; q != NULL; q = q->next) - 800cbd0: 683b ldr r3, [r7, #0] - 800cbd2: 623b str r3, [r7, #32] - 800cbd4: e05a b.n 800cc8c + 800cbd4: 683b ldr r3, [r7, #0] + 800cbd6: 623b str r3, [r7, #32] + 800cbd8: e05a b.n 800cc90 { /* Is this buffer available? If not, goto error */ if((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) - 800cbd6: 69bb ldr r3, [r7, #24] - 800cbd8: 681b ldr r3, [r3, #0] - 800cbda: 2b00 cmp r3, #0 - 800cbdc: da03 bge.n 800cbe6 + 800cbda: 69bb ldr r3, [r7, #24] + 800cbdc: 681b ldr r3, [r3, #0] + 800cbde: 2b00 cmp r3, #0 + 800cbe0: da03 bge.n 800cbea { errval = ERR_USE; - 800cbde: 23f8 movs r3, #248 ; 0xf8 - 800cbe0: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800cbe2: 23f8 movs r3, #248 ; 0xf8 + 800cbe4: f887 3027 strb.w r3, [r7, #39] ; 0x27 goto error; - 800cbe4: e05c b.n 800cca0 + 800cbe8: e05c b.n 800cca4 } /* Get bytes in current lwIP buffer */ byteslefttocopy = q->len; - 800cbe6: 6a3b ldr r3, [r7, #32] - 800cbe8: 895b ldrh r3, [r3, #10] - 800cbea: 60fb str r3, [r7, #12] + 800cbea: 6a3b ldr r3, [r7, #32] + 800cbec: 895b ldrh r3, [r3, #10] + 800cbee: 60fb str r3, [r7, #12] payloadoffset = 0; - 800cbec: 2300 movs r3, #0 - 800cbee: 60bb str r3, [r7, #8] + 800cbf0: 2300 movs r3, #0 + 800cbf2: 60bb str r3, [r7, #8] /* Check if the length of data to copy is bigger than Tx buffer size*/ while( (byteslefttocopy + bufferoffset) > ETH_TX_BUF_SIZE ) - 800cbf0: e02f b.n 800cc52 + 800cbf4: e02f b.n 800cc56 { /* Copy data to Tx buffer*/ memcpy( (uint8_t*)((uint8_t*)buffer + bufferoffset), (uint8_t*)((uint8_t*)q->payload + payloadoffset), (ETH_TX_BUF_SIZE - bufferoffset) ); - 800cbf2: 69fa ldr r2, [r7, #28] - 800cbf4: 693b ldr r3, [r7, #16] - 800cbf6: 18d0 adds r0, r2, r3 - 800cbf8: 6a3b ldr r3, [r7, #32] - 800cbfa: 685a ldr r2, [r3, #4] - 800cbfc: 68bb ldr r3, [r7, #8] - 800cbfe: 18d1 adds r1, r2, r3 - 800cc00: 693a ldr r2, [r7, #16] - 800cc02: f240 53f4 movw r3, #1524 ; 0x5f4 - 800cc06: 1a9b subs r3, r3, r2 - 800cc08: 461a mov r2, r3 - 800cc0a: f00f fcf0 bl 801c5ee + 800cbf6: 69fa ldr r2, [r7, #28] + 800cbf8: 693b ldr r3, [r7, #16] + 800cbfa: 18d0 adds r0, r2, r3 + 800cbfc: 6a3b ldr r3, [r7, #32] + 800cbfe: 685a ldr r2, [r3, #4] + 800cc00: 68bb ldr r3, [r7, #8] + 800cc02: 18d1 adds r1, r2, r3 + 800cc04: 693a ldr r2, [r7, #16] + 800cc06: f240 53f4 movw r3, #1524 ; 0x5f4 + 800cc0a: 1a9b subs r3, r3, r2 + 800cc0c: 461a mov r2, r3 + 800cc0e: f00f fcf6 bl 801c5fe /* Point to next descriptor */ DmaTxDesc = (ETH_DMADescTypeDef *)(DmaTxDesc->Buffer2NextDescAddr); - 800cc0e: 69bb ldr r3, [r7, #24] - 800cc10: 68db ldr r3, [r3, #12] - 800cc12: 61bb str r3, [r7, #24] + 800cc12: 69bb ldr r3, [r7, #24] + 800cc14: 68db ldr r3, [r3, #12] + 800cc16: 61bb str r3, [r7, #24] /* Check if the buffer is available */ if((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) - 800cc14: 69bb ldr r3, [r7, #24] - 800cc16: 681b ldr r3, [r3, #0] - 800cc18: 2b00 cmp r3, #0 - 800cc1a: da03 bge.n 800cc24 + 800cc18: 69bb ldr r3, [r7, #24] + 800cc1a: 681b ldr r3, [r3, #0] + 800cc1c: 2b00 cmp r3, #0 + 800cc1e: da03 bge.n 800cc28 { errval = ERR_USE; - 800cc1c: 23f8 movs r3, #248 ; 0xf8 - 800cc1e: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800cc20: 23f8 movs r3, #248 ; 0xf8 + 800cc22: f887 3027 strb.w r3, [r7, #39] ; 0x27 goto error; - 800cc22: e03d b.n 800cca0 + 800cc26: e03d b.n 800cca4 } buffer = (uint8_t *)(DmaTxDesc->Buffer1Addr); - 800cc24: 69bb ldr r3, [r7, #24] - 800cc26: 689b ldr r3, [r3, #8] - 800cc28: 61fb str r3, [r7, #28] + 800cc28: 69bb ldr r3, [r7, #24] + 800cc2a: 689b ldr r3, [r3, #8] + 800cc2c: 61fb str r3, [r7, #28] byteslefttocopy = byteslefttocopy - (ETH_TX_BUF_SIZE - bufferoffset); - 800cc2a: 693a ldr r2, [r7, #16] - 800cc2c: 68fb ldr r3, [r7, #12] - 800cc2e: 4413 add r3, r2 - 800cc30: f2a3 53f4 subw r3, r3, #1524 ; 0x5f4 - 800cc34: 60fb str r3, [r7, #12] + 800cc2e: 693a ldr r2, [r7, #16] + 800cc30: 68fb ldr r3, [r7, #12] + 800cc32: 4413 add r3, r2 + 800cc34: f2a3 53f4 subw r3, r3, #1524 ; 0x5f4 + 800cc38: 60fb str r3, [r7, #12] payloadoffset = payloadoffset + (ETH_TX_BUF_SIZE - bufferoffset); - 800cc36: 68ba ldr r2, [r7, #8] - 800cc38: 693b ldr r3, [r7, #16] - 800cc3a: 1ad3 subs r3, r2, r3 - 800cc3c: f203 53f4 addw r3, r3, #1524 ; 0x5f4 - 800cc40: 60bb str r3, [r7, #8] + 800cc3a: 68ba ldr r2, [r7, #8] + 800cc3c: 693b ldr r3, [r7, #16] + 800cc3e: 1ad3 subs r3, r2, r3 + 800cc40: f203 53f4 addw r3, r3, #1524 ; 0x5f4 + 800cc44: 60bb str r3, [r7, #8] framelength = framelength + (ETH_TX_BUF_SIZE - bufferoffset); - 800cc42: 697a ldr r2, [r7, #20] - 800cc44: 693b ldr r3, [r7, #16] - 800cc46: 1ad3 subs r3, r2, r3 - 800cc48: f203 53f4 addw r3, r3, #1524 ; 0x5f4 - 800cc4c: 617b str r3, [r7, #20] + 800cc46: 697a ldr r2, [r7, #20] + 800cc48: 693b ldr r3, [r7, #16] + 800cc4a: 1ad3 subs r3, r2, r3 + 800cc4c: f203 53f4 addw r3, r3, #1524 ; 0x5f4 + 800cc50: 617b str r3, [r7, #20] bufferoffset = 0; - 800cc4e: 2300 movs r3, #0 - 800cc50: 613b str r3, [r7, #16] + 800cc52: 2300 movs r3, #0 + 800cc54: 613b str r3, [r7, #16] while( (byteslefttocopy + bufferoffset) > ETH_TX_BUF_SIZE ) - 800cc52: 68fa ldr r2, [r7, #12] - 800cc54: 693b ldr r3, [r7, #16] - 800cc56: 4413 add r3, r2 - 800cc58: f240 52f4 movw r2, #1524 ; 0x5f4 - 800cc5c: 4293 cmp r3, r2 - 800cc5e: d8c8 bhi.n 800cbf2 + 800cc56: 68fa ldr r2, [r7, #12] + 800cc58: 693b ldr r3, [r7, #16] + 800cc5a: 4413 add r3, r2 + 800cc5c: f240 52f4 movw r2, #1524 ; 0x5f4 + 800cc60: 4293 cmp r3, r2 + 800cc62: d8c8 bhi.n 800cbf6 } /* Copy the remaining bytes */ memcpy( (uint8_t*)((uint8_t*)buffer + bufferoffset), (uint8_t*)((uint8_t*)q->payload + payloadoffset), byteslefttocopy ); - 800cc60: 69fa ldr r2, [r7, #28] - 800cc62: 693b ldr r3, [r7, #16] - 800cc64: 18d0 adds r0, r2, r3 - 800cc66: 6a3b ldr r3, [r7, #32] - 800cc68: 685a ldr r2, [r3, #4] - 800cc6a: 68bb ldr r3, [r7, #8] - 800cc6c: 4413 add r3, r2 - 800cc6e: 68fa ldr r2, [r7, #12] - 800cc70: 4619 mov r1, r3 - 800cc72: f00f fcbc bl 801c5ee + 800cc64: 69fa ldr r2, [r7, #28] + 800cc66: 693b ldr r3, [r7, #16] + 800cc68: 18d0 adds r0, r2, r3 + 800cc6a: 6a3b ldr r3, [r7, #32] + 800cc6c: 685a ldr r2, [r3, #4] + 800cc6e: 68bb ldr r3, [r7, #8] + 800cc70: 4413 add r3, r2 + 800cc72: 68fa ldr r2, [r7, #12] + 800cc74: 4619 mov r1, r3 + 800cc76: f00f fcc2 bl 801c5fe bufferoffset = bufferoffset + byteslefttocopy; - 800cc76: 693a ldr r2, [r7, #16] - 800cc78: 68fb ldr r3, [r7, #12] - 800cc7a: 4413 add r3, r2 - 800cc7c: 613b str r3, [r7, #16] + 800cc7a: 693a ldr r2, [r7, #16] + 800cc7c: 68fb ldr r3, [r7, #12] + 800cc7e: 4413 add r3, r2 + 800cc80: 613b str r3, [r7, #16] framelength = framelength + byteslefttocopy; - 800cc7e: 697a ldr r2, [r7, #20] - 800cc80: 68fb ldr r3, [r7, #12] - 800cc82: 4413 add r3, r2 - 800cc84: 617b str r3, [r7, #20] + 800cc82: 697a ldr r2, [r7, #20] + 800cc84: 68fb ldr r3, [r7, #12] + 800cc86: 4413 add r3, r2 + 800cc88: 617b str r3, [r7, #20] for(q = p; q != NULL; q = q->next) - 800cc86: 6a3b ldr r3, [r7, #32] - 800cc88: 681b ldr r3, [r3, #0] - 800cc8a: 623b str r3, [r7, #32] - 800cc8c: 6a3b ldr r3, [r7, #32] - 800cc8e: 2b00 cmp r3, #0 - 800cc90: d1a1 bne.n 800cbd6 + 800cc8a: 6a3b ldr r3, [r7, #32] + 800cc8c: 681b ldr r3, [r3, #0] + 800cc8e: 623b str r3, [r7, #32] + 800cc90: 6a3b ldr r3, [r7, #32] + 800cc92: 2b00 cmp r3, #0 + 800cc94: d1a1 bne.n 800cbda } /* Prepare transmit descriptors to give to DMA */ HAL_ETH_TransmitFrame(&heth, framelength); - 800cc92: 6979 ldr r1, [r7, #20] - 800cc94: 4811 ldr r0, [pc, #68] ; (800ccdc ) - 800cc96: f7f9 fddd bl 8006854 + 800cc96: 6979 ldr r1, [r7, #20] + 800cc98: 4811 ldr r0, [pc, #68] ; (800cce0 ) + 800cc9a: f7f9 fddd bl 8006858 errval = ERR_OK; - 800cc9a: 2300 movs r3, #0 - 800cc9c: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800cc9e: 2300 movs r3, #0 + 800cca0: f887 3027 strb.w r3, [r7, #39] ; 0x27 error: /* When Transmit Underflow flag is set, clear it and issue a Transmit Poll Demand to resume transmission */ if ((heth.Instance->DMASR & ETH_DMASR_TUS) != (uint32_t)RESET) - 800cca0: 4b0e ldr r3, [pc, #56] ; (800ccdc ) - 800cca2: 681a ldr r2, [r3, #0] - 800cca4: f241 0314 movw r3, #4116 ; 0x1014 - 800cca8: 4413 add r3, r2 - 800ccaa: 681b ldr r3, [r3, #0] - 800ccac: f003 0320 and.w r3, r3, #32 - 800ccb0: 2b00 cmp r3, #0 - 800ccb2: d00d beq.n 800ccd0 + 800cca4: 4b0e ldr r3, [pc, #56] ; (800cce0 ) + 800cca6: 681a ldr r2, [r3, #0] + 800cca8: f241 0314 movw r3, #4116 ; 0x1014 + 800ccac: 4413 add r3, r2 + 800ccae: 681b ldr r3, [r3, #0] + 800ccb0: f003 0320 and.w r3, r3, #32 + 800ccb4: 2b00 cmp r3, #0 + 800ccb6: d00d beq.n 800ccd4 { /* Clear TUS ETHERNET DMA flag */ heth.Instance->DMASR = ETH_DMASR_TUS; - 800ccb4: 4b09 ldr r3, [pc, #36] ; (800ccdc ) - 800ccb6: 681a ldr r2, [r3, #0] - 800ccb8: f241 0314 movw r3, #4116 ; 0x1014 - 800ccbc: 4413 add r3, r2 - 800ccbe: 2220 movs r2, #32 - 800ccc0: 601a str r2, [r3, #0] + 800ccb8: 4b09 ldr r3, [pc, #36] ; (800cce0 ) + 800ccba: 681a ldr r2, [r3, #0] + 800ccbc: f241 0314 movw r3, #4116 ; 0x1014 + 800ccc0: 4413 add r3, r2 + 800ccc2: 2220 movs r2, #32 + 800ccc4: 601a str r2, [r3, #0] /* Resume DMA transmission*/ heth.Instance->DMATPDR = 0; - 800ccc2: 4b06 ldr r3, [pc, #24] ; (800ccdc ) - 800ccc4: 681a ldr r2, [r3, #0] - 800ccc6: f241 0304 movw r3, #4100 ; 0x1004 - 800ccca: 4413 add r3, r2 - 800cccc: 2200 movs r2, #0 - 800ccce: 601a str r2, [r3, #0] + 800ccc6: 4b06 ldr r3, [pc, #24] ; (800cce0 ) + 800ccc8: 681a ldr r2, [r3, #0] + 800ccca: f241 0304 movw r3, #4100 ; 0x1004 + 800ccce: 4413 add r3, r2 + 800ccd0: 2200 movs r2, #0 + 800ccd2: 601a str r2, [r3, #0] } return errval; - 800ccd0: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 + 800ccd4: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 } - 800ccd4: 4618 mov r0, r3 - 800ccd6: 3728 adds r7, #40 ; 0x28 - 800ccd8: 46bd mov sp, r7 - 800ccda: bd80 pop {r7, pc} - 800ccdc: 2000a8a0 .word 0x2000a8a0 + 800ccd8: 4618 mov r0, r3 + 800ccda: 3728 adds r7, #40 ; 0x28 + 800ccdc: 46bd mov sp, r7 + 800ccde: bd80 pop {r7, pc} + 800cce0: 2000a8a0 .word 0x2000a8a0 -0800cce0 : +0800cce4 : * @param netif the lwip network interface structure for this ethernetif * @return a pbuf filled with the received packet (including MAC header) * NULL on memory error */ static struct pbuf * low_level_input(struct netif *netif) { - 800cce0: b580 push {r7, lr} - 800cce2: b08c sub sp, #48 ; 0x30 - 800cce4: af00 add r7, sp, #0 - 800cce6: 6078 str r0, [r7, #4] + 800cce4: b580 push {r7, lr} + 800cce6: b08c sub sp, #48 ; 0x30 + 800cce8: af00 add r7, sp, #0 + 800ccea: 6078 str r0, [r7, #4] struct pbuf *p = NULL; - 800cce8: 2300 movs r3, #0 - 800ccea: 62fb str r3, [r7, #44] ; 0x2c - struct pbuf *q = NULL; 800ccec: 2300 movs r3, #0 - 800ccee: 62bb str r3, [r7, #40] ; 0x28 - uint16_t len = 0; + 800ccee: 62fb str r3, [r7, #44] ; 0x2c + struct pbuf *q = NULL; 800ccf0: 2300 movs r3, #0 - 800ccf2: 81fb strh r3, [r7, #14] + 800ccf2: 62bb str r3, [r7, #40] ; 0x28 + uint16_t len = 0; + 800ccf4: 2300 movs r3, #0 + 800ccf6: 81fb strh r3, [r7, #14] uint8_t *buffer; __IO ETH_DMADescTypeDef *dmarxdesc; uint32_t bufferoffset = 0; - 800ccf4: 2300 movs r3, #0 - 800ccf6: 61fb str r3, [r7, #28] - uint32_t payloadoffset = 0; 800ccf8: 2300 movs r3, #0 - 800ccfa: 61bb str r3, [r7, #24] - uint32_t byteslefttocopy = 0; + 800ccfa: 61fb str r3, [r7, #28] + uint32_t payloadoffset = 0; 800ccfc: 2300 movs r3, #0 - 800ccfe: 617b str r3, [r7, #20] - uint32_t i=0; + 800ccfe: 61bb str r3, [r7, #24] + uint32_t byteslefttocopy = 0; 800cd00: 2300 movs r3, #0 - 800cd02: 613b str r3, [r7, #16] + 800cd02: 617b str r3, [r7, #20] + uint32_t i=0; + 800cd04: 2300 movs r3, #0 + 800cd06: 613b str r3, [r7, #16] /* get received frame */ if (HAL_ETH_GetReceivedFrame_IT(&heth) != HAL_OK) - 800cd04: 484f ldr r0, [pc, #316] ; (800ce44 ) - 800cd06: f7f9 fe8f bl 8006a28 - 800cd0a: 4603 mov r3, r0 - 800cd0c: 2b00 cmp r3, #0 - 800cd0e: d001 beq.n 800cd14 + 800cd08: 484f ldr r0, [pc, #316] ; (800ce48 ) + 800cd0a: f7f9 fe8f bl 8006a2c + 800cd0e: 4603 mov r3, r0 + 800cd10: 2b00 cmp r3, #0 + 800cd12: d001 beq.n 800cd18 return NULL; - 800cd10: 2300 movs r3, #0 - 800cd12: e092 b.n 800ce3a + 800cd14: 2300 movs r3, #0 + 800cd16: e092 b.n 800ce3e /* Obtain the size of the packet and put it into the "len" variable. */ len = heth.RxFrameInfos.length; - 800cd14: 4b4b ldr r3, [pc, #300] ; (800ce44 ) - 800cd16: 6bdb ldr r3, [r3, #60] ; 0x3c - 800cd18: 81fb strh r3, [r7, #14] + 800cd18: 4b4b ldr r3, [pc, #300] ; (800ce48 ) + 800cd1a: 6bdb ldr r3, [r3, #60] ; 0x3c + 800cd1c: 81fb strh r3, [r7, #14] buffer = (uint8_t *)heth.RxFrameInfos.buffer; - 800cd1a: 4b4a ldr r3, [pc, #296] ; (800ce44 ) - 800cd1c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800cd1e: 627b str r3, [r7, #36] ; 0x24 + 800cd1e: 4b4a ldr r3, [pc, #296] ; (800ce48 ) + 800cd20: 6c1b ldr r3, [r3, #64] ; 0x40 + 800cd22: 627b str r3, [r7, #36] ; 0x24 if (len > 0) - 800cd20: 89fb ldrh r3, [r7, #14] - 800cd22: 2b00 cmp r3, #0 - 800cd24: d007 beq.n 800cd36 + 800cd24: 89fb ldrh r3, [r7, #14] + 800cd26: 2b00 cmp r3, #0 + 800cd28: d007 beq.n 800cd3a { /* We allocate a pbuf chain of pbufs from the Lwip buffer pool */ p = pbuf_alloc(PBUF_RAW, len, PBUF_POOL); - 800cd26: 89fb ldrh r3, [r7, #14] - 800cd28: f44f 72c1 mov.w r2, #386 ; 0x182 - 800cd2c: 4619 mov r1, r3 - 800cd2e: 2000 movs r0, #0 - 800cd30: f004 fc7a bl 8011628 - 800cd34: 62f8 str r0, [r7, #44] ; 0x2c + 800cd2a: 89fb ldrh r3, [r7, #14] + 800cd2c: f44f 72c1 mov.w r2, #386 ; 0x182 + 800cd30: 4619 mov r1, r3 + 800cd32: 2000 movs r0, #0 + 800cd34: f004 fc80 bl 8011638 + 800cd38: 62f8 str r0, [r7, #44] ; 0x2c } if (p != NULL) - 800cd36: 6afb ldr r3, [r7, #44] ; 0x2c - 800cd38: 2b00 cmp r3, #0 - 800cd3a: d04b beq.n 800cdd4 + 800cd3a: 6afb ldr r3, [r7, #44] ; 0x2c + 800cd3c: 2b00 cmp r3, #0 + 800cd3e: d04b beq.n 800cdd8 { dmarxdesc = heth.RxFrameInfos.FSRxDesc; - 800cd3c: 4b41 ldr r3, [pc, #260] ; (800ce44 ) - 800cd3e: 6b1b ldr r3, [r3, #48] ; 0x30 - 800cd40: 623b str r3, [r7, #32] + 800cd40: 4b41 ldr r3, [pc, #260] ; (800ce48 ) + 800cd42: 6b1b ldr r3, [r3, #48] ; 0x30 + 800cd44: 623b str r3, [r7, #32] bufferoffset = 0; - 800cd42: 2300 movs r3, #0 - 800cd44: 61fb str r3, [r7, #28] + 800cd46: 2300 movs r3, #0 + 800cd48: 61fb str r3, [r7, #28] for(q = p; q != NULL; q = q->next) - 800cd46: 6afb ldr r3, [r7, #44] ; 0x2c - 800cd48: 62bb str r3, [r7, #40] ; 0x28 - 800cd4a: e040 b.n 800cdce + 800cd4a: 6afb ldr r3, [r7, #44] ; 0x2c + 800cd4c: 62bb str r3, [r7, #40] ; 0x28 + 800cd4e: e040 b.n 800cdd2 { byteslefttocopy = q->len; - 800cd4c: 6abb ldr r3, [r7, #40] ; 0x28 - 800cd4e: 895b ldrh r3, [r3, #10] - 800cd50: 617b str r3, [r7, #20] + 800cd50: 6abb ldr r3, [r7, #40] ; 0x28 + 800cd52: 895b ldrh r3, [r3, #10] + 800cd54: 617b str r3, [r7, #20] payloadoffset = 0; - 800cd52: 2300 movs r3, #0 - 800cd54: 61bb str r3, [r7, #24] + 800cd56: 2300 movs r3, #0 + 800cd58: 61bb str r3, [r7, #24] /* Check if the length of bytes to copy in current pbuf is bigger than Rx buffer size*/ while( (byteslefttocopy + bufferoffset) > ETH_RX_BUF_SIZE ) - 800cd56: e021 b.n 800cd9c + 800cd5a: e021 b.n 800cda0 { /* Copy data to pbuf */ memcpy( (uint8_t*)((uint8_t*)q->payload + payloadoffset), (uint8_t*)((uint8_t*)buffer + bufferoffset), (ETH_RX_BUF_SIZE - bufferoffset)); - 800cd58: 6abb ldr r3, [r7, #40] ; 0x28 - 800cd5a: 685a ldr r2, [r3, #4] - 800cd5c: 69bb ldr r3, [r7, #24] - 800cd5e: 18d0 adds r0, r2, r3 - 800cd60: 6a7a ldr r2, [r7, #36] ; 0x24 - 800cd62: 69fb ldr r3, [r7, #28] - 800cd64: 18d1 adds r1, r2, r3 - 800cd66: 69fa ldr r2, [r7, #28] - 800cd68: f240 53f4 movw r3, #1524 ; 0x5f4 - 800cd6c: 1a9b subs r3, r3, r2 - 800cd6e: 461a mov r2, r3 - 800cd70: f00f fc3d bl 801c5ee + 800cd5c: 6abb ldr r3, [r7, #40] ; 0x28 + 800cd5e: 685a ldr r2, [r3, #4] + 800cd60: 69bb ldr r3, [r7, #24] + 800cd62: 18d0 adds r0, r2, r3 + 800cd64: 6a7a ldr r2, [r7, #36] ; 0x24 + 800cd66: 69fb ldr r3, [r7, #28] + 800cd68: 18d1 adds r1, r2, r3 + 800cd6a: 69fa ldr r2, [r7, #28] + 800cd6c: f240 53f4 movw r3, #1524 ; 0x5f4 + 800cd70: 1a9b subs r3, r3, r2 + 800cd72: 461a mov r2, r3 + 800cd74: f00f fc43 bl 801c5fe /* Point to next descriptor */ dmarxdesc = (ETH_DMADescTypeDef *)(dmarxdesc->Buffer2NextDescAddr); - 800cd74: 6a3b ldr r3, [r7, #32] - 800cd76: 68db ldr r3, [r3, #12] - 800cd78: 623b str r3, [r7, #32] + 800cd78: 6a3b ldr r3, [r7, #32] + 800cd7a: 68db ldr r3, [r3, #12] + 800cd7c: 623b str r3, [r7, #32] buffer = (uint8_t *)(dmarxdesc->Buffer1Addr); - 800cd7a: 6a3b ldr r3, [r7, #32] - 800cd7c: 689b ldr r3, [r3, #8] - 800cd7e: 627b str r3, [r7, #36] ; 0x24 + 800cd7e: 6a3b ldr r3, [r7, #32] + 800cd80: 689b ldr r3, [r3, #8] + 800cd82: 627b str r3, [r7, #36] ; 0x24 byteslefttocopy = byteslefttocopy - (ETH_RX_BUF_SIZE - bufferoffset); - 800cd80: 69fa ldr r2, [r7, #28] - 800cd82: 697b ldr r3, [r7, #20] - 800cd84: 4413 add r3, r2 - 800cd86: f2a3 53f4 subw r3, r3, #1524 ; 0x5f4 - 800cd8a: 617b str r3, [r7, #20] + 800cd84: 69fa ldr r2, [r7, #28] + 800cd86: 697b ldr r3, [r7, #20] + 800cd88: 4413 add r3, r2 + 800cd8a: f2a3 53f4 subw r3, r3, #1524 ; 0x5f4 + 800cd8e: 617b str r3, [r7, #20] payloadoffset = payloadoffset + (ETH_RX_BUF_SIZE - bufferoffset); - 800cd8c: 69ba ldr r2, [r7, #24] - 800cd8e: 69fb ldr r3, [r7, #28] - 800cd90: 1ad3 subs r3, r2, r3 - 800cd92: f203 53f4 addw r3, r3, #1524 ; 0x5f4 - 800cd96: 61bb str r3, [r7, #24] + 800cd90: 69ba ldr r2, [r7, #24] + 800cd92: 69fb ldr r3, [r7, #28] + 800cd94: 1ad3 subs r3, r2, r3 + 800cd96: f203 53f4 addw r3, r3, #1524 ; 0x5f4 + 800cd9a: 61bb str r3, [r7, #24] bufferoffset = 0; - 800cd98: 2300 movs r3, #0 - 800cd9a: 61fb str r3, [r7, #28] + 800cd9c: 2300 movs r3, #0 + 800cd9e: 61fb str r3, [r7, #28] while( (byteslefttocopy + bufferoffset) > ETH_RX_BUF_SIZE ) - 800cd9c: 697a ldr r2, [r7, #20] - 800cd9e: 69fb ldr r3, [r7, #28] - 800cda0: 4413 add r3, r2 - 800cda2: f240 52f4 movw r2, #1524 ; 0x5f4 - 800cda6: 4293 cmp r3, r2 - 800cda8: d8d6 bhi.n 800cd58 + 800cda0: 697a ldr r2, [r7, #20] + 800cda2: 69fb ldr r3, [r7, #28] + 800cda4: 4413 add r3, r2 + 800cda6: f240 52f4 movw r2, #1524 ; 0x5f4 + 800cdaa: 4293 cmp r3, r2 + 800cdac: d8d6 bhi.n 800cd5c } /* Copy remaining data in pbuf */ memcpy( (uint8_t*)((uint8_t*)q->payload + payloadoffset), (uint8_t*)((uint8_t*)buffer + bufferoffset), byteslefttocopy); - 800cdaa: 6abb ldr r3, [r7, #40] ; 0x28 - 800cdac: 685a ldr r2, [r3, #4] - 800cdae: 69bb ldr r3, [r7, #24] - 800cdb0: 18d0 adds r0, r2, r3 - 800cdb2: 6a7a ldr r2, [r7, #36] ; 0x24 - 800cdb4: 69fb ldr r3, [r7, #28] - 800cdb6: 4413 add r3, r2 - 800cdb8: 697a ldr r2, [r7, #20] - 800cdba: 4619 mov r1, r3 - 800cdbc: f00f fc17 bl 801c5ee + 800cdae: 6abb ldr r3, [r7, #40] ; 0x28 + 800cdb0: 685a ldr r2, [r3, #4] + 800cdb2: 69bb ldr r3, [r7, #24] + 800cdb4: 18d0 adds r0, r2, r3 + 800cdb6: 6a7a ldr r2, [r7, #36] ; 0x24 + 800cdb8: 69fb ldr r3, [r7, #28] + 800cdba: 4413 add r3, r2 + 800cdbc: 697a ldr r2, [r7, #20] + 800cdbe: 4619 mov r1, r3 + 800cdc0: f00f fc1d bl 801c5fe bufferoffset = bufferoffset + byteslefttocopy; - 800cdc0: 69fa ldr r2, [r7, #28] - 800cdc2: 697b ldr r3, [r7, #20] - 800cdc4: 4413 add r3, r2 - 800cdc6: 61fb str r3, [r7, #28] + 800cdc4: 69fa ldr r2, [r7, #28] + 800cdc6: 697b ldr r3, [r7, #20] + 800cdc8: 4413 add r3, r2 + 800cdca: 61fb str r3, [r7, #28] for(q = p; q != NULL; q = q->next) - 800cdc8: 6abb ldr r3, [r7, #40] ; 0x28 - 800cdca: 681b ldr r3, [r3, #0] - 800cdcc: 62bb str r3, [r7, #40] ; 0x28 - 800cdce: 6abb ldr r3, [r7, #40] ; 0x28 - 800cdd0: 2b00 cmp r3, #0 - 800cdd2: d1bb bne.n 800cd4c + 800cdcc: 6abb ldr r3, [r7, #40] ; 0x28 + 800cdce: 681b ldr r3, [r3, #0] + 800cdd0: 62bb str r3, [r7, #40] ; 0x28 + 800cdd2: 6abb ldr r3, [r7, #40] ; 0x28 + 800cdd4: 2b00 cmp r3, #0 + 800cdd6: d1bb bne.n 800cd50 } } /* Release descriptors to DMA */ /* Point to first descriptor */ dmarxdesc = heth.RxFrameInfos.FSRxDesc; - 800cdd4: 4b1b ldr r3, [pc, #108] ; (800ce44 ) - 800cdd6: 6b1b ldr r3, [r3, #48] ; 0x30 - 800cdd8: 623b str r3, [r7, #32] + 800cdd8: 4b1b ldr r3, [pc, #108] ; (800ce48 ) + 800cdda: 6b1b ldr r3, [r3, #48] ; 0x30 + 800cddc: 623b str r3, [r7, #32] /* Set Own bit in Rx descriptors: gives the buffers back to DMA */ for (i=0; i< heth.RxFrameInfos.SegCount; i++) - 800cdda: 2300 movs r3, #0 - 800cddc: 613b str r3, [r7, #16] - 800cdde: e00b b.n 800cdf8 + 800cdde: 2300 movs r3, #0 + 800cde0: 613b str r3, [r7, #16] + 800cde2: e00b b.n 800cdfc { dmarxdesc->Status |= ETH_DMARXDESC_OWN; - 800cde0: 6a3b ldr r3, [r7, #32] - 800cde2: 681b ldr r3, [r3, #0] - 800cde4: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 - 800cde8: 6a3b ldr r3, [r7, #32] - 800cdea: 601a str r2, [r3, #0] - dmarxdesc = (ETH_DMADescTypeDef *)(dmarxdesc->Buffer2NextDescAddr); + 800cde4: 6a3b ldr r3, [r7, #32] + 800cde6: 681b ldr r3, [r3, #0] + 800cde8: f043 4200 orr.w r2, r3, #2147483648 ; 0x80000000 800cdec: 6a3b ldr r3, [r7, #32] - 800cdee: 68db ldr r3, [r3, #12] - 800cdf0: 623b str r3, [r7, #32] + 800cdee: 601a str r2, [r3, #0] + dmarxdesc = (ETH_DMADescTypeDef *)(dmarxdesc->Buffer2NextDescAddr); + 800cdf0: 6a3b ldr r3, [r7, #32] + 800cdf2: 68db ldr r3, [r3, #12] + 800cdf4: 623b str r3, [r7, #32] for (i=0; i< heth.RxFrameInfos.SegCount; i++) - 800cdf2: 693b ldr r3, [r7, #16] - 800cdf4: 3301 adds r3, #1 - 800cdf6: 613b str r3, [r7, #16] - 800cdf8: 4b12 ldr r3, [pc, #72] ; (800ce44 ) - 800cdfa: 6b9b ldr r3, [r3, #56] ; 0x38 - 800cdfc: 693a ldr r2, [r7, #16] - 800cdfe: 429a cmp r2, r3 - 800ce00: d3ee bcc.n 800cde0 + 800cdf6: 693b ldr r3, [r7, #16] + 800cdf8: 3301 adds r3, #1 + 800cdfa: 613b str r3, [r7, #16] + 800cdfc: 4b12 ldr r3, [pc, #72] ; (800ce48 ) + 800cdfe: 6b9b ldr r3, [r3, #56] ; 0x38 + 800ce00: 693a ldr r2, [r7, #16] + 800ce02: 429a cmp r2, r3 + 800ce04: d3ee bcc.n 800cde4 } /* Clear Segment_Count */ heth.RxFrameInfos.SegCount =0; - 800ce02: 4b10 ldr r3, [pc, #64] ; (800ce44 ) - 800ce04: 2200 movs r2, #0 - 800ce06: 639a str r2, [r3, #56] ; 0x38 + 800ce06: 4b10 ldr r3, [pc, #64] ; (800ce48 ) + 800ce08: 2200 movs r2, #0 + 800ce0a: 639a str r2, [r3, #56] ; 0x38 /* When Rx Buffer unavailable flag is set: clear it and resume reception */ if ((heth.Instance->DMASR & ETH_DMASR_RBUS) != (uint32_t)RESET) - 800ce08: 4b0e ldr r3, [pc, #56] ; (800ce44 ) - 800ce0a: 681a ldr r2, [r3, #0] - 800ce0c: f241 0314 movw r3, #4116 ; 0x1014 - 800ce10: 4413 add r3, r2 - 800ce12: 681b ldr r3, [r3, #0] - 800ce14: f003 0380 and.w r3, r3, #128 ; 0x80 - 800ce18: 2b00 cmp r3, #0 - 800ce1a: d00d beq.n 800ce38 + 800ce0c: 4b0e ldr r3, [pc, #56] ; (800ce48 ) + 800ce0e: 681a ldr r2, [r3, #0] + 800ce10: f241 0314 movw r3, #4116 ; 0x1014 + 800ce14: 4413 add r3, r2 + 800ce16: 681b ldr r3, [r3, #0] + 800ce18: f003 0380 and.w r3, r3, #128 ; 0x80 + 800ce1c: 2b00 cmp r3, #0 + 800ce1e: d00d beq.n 800ce3c { /* Clear RBUS ETHERNET DMA flag */ heth.Instance->DMASR = ETH_DMASR_RBUS; - 800ce1c: 4b09 ldr r3, [pc, #36] ; (800ce44 ) - 800ce1e: 681a ldr r2, [r3, #0] - 800ce20: f241 0314 movw r3, #4116 ; 0x1014 - 800ce24: 4413 add r3, r2 - 800ce26: 2280 movs r2, #128 ; 0x80 - 800ce28: 601a str r2, [r3, #0] + 800ce20: 4b09 ldr r3, [pc, #36] ; (800ce48 ) + 800ce22: 681a ldr r2, [r3, #0] + 800ce24: f241 0314 movw r3, #4116 ; 0x1014 + 800ce28: 4413 add r3, r2 + 800ce2a: 2280 movs r2, #128 ; 0x80 + 800ce2c: 601a str r2, [r3, #0] /* Resume DMA reception */ heth.Instance->DMARPDR = 0; - 800ce2a: 4b06 ldr r3, [pc, #24] ; (800ce44 ) - 800ce2c: 681a ldr r2, [r3, #0] - 800ce2e: f241 0308 movw r3, #4104 ; 0x1008 - 800ce32: 4413 add r3, r2 - 800ce34: 2200 movs r2, #0 - 800ce36: 601a str r2, [r3, #0] + 800ce2e: 4b06 ldr r3, [pc, #24] ; (800ce48 ) + 800ce30: 681a ldr r2, [r3, #0] + 800ce32: f241 0308 movw r3, #4104 ; 0x1008 + 800ce36: 4413 add r3, r2 + 800ce38: 2200 movs r2, #0 + 800ce3a: 601a str r2, [r3, #0] } return p; - 800ce38: 6afb ldr r3, [r7, #44] ; 0x2c + 800ce3c: 6afb ldr r3, [r7, #44] ; 0x2c } - 800ce3a: 4618 mov r0, r3 - 800ce3c: 3730 adds r7, #48 ; 0x30 - 800ce3e: 46bd mov sp, r7 - 800ce40: bd80 pop {r7, pc} - 800ce42: bf00 nop - 800ce44: 2000a8a0 .word 0x2000a8a0 + 800ce3e: 4618 mov r0, r3 + 800ce40: 3730 adds r7, #48 ; 0x30 + 800ce42: 46bd mov sp, r7 + 800ce44: bd80 pop {r7, pc} + 800ce46: bf00 nop + 800ce48: 2000a8a0 .word 0x2000a8a0 -0800ce48 : +0800ce4c : * the appropriate input function is called. * * @param netif the lwip network interface structure for this ethernetif */ void ethernetif_input(void const * argument) { - 800ce48: b580 push {r7, lr} - 800ce4a: b084 sub sp, #16 - 800ce4c: af00 add r7, sp, #0 - 800ce4e: 6078 str r0, [r7, #4] + 800ce4c: b580 push {r7, lr} + 800ce4e: b084 sub sp, #16 + 800ce50: af00 add r7, sp, #0 + 800ce52: 6078 str r0, [r7, #4] struct pbuf *p; struct netif *netif = (struct netif *) argument; - 800ce50: 687b ldr r3, [r7, #4] - 800ce52: 60fb str r3, [r7, #12] + 800ce54: 687b ldr r3, [r7, #4] + 800ce56: 60fb str r3, [r7, #12] for( ;; ) { if (osSemaphoreWait(s_xSemaphore, TIME_WAITING_FOR_INPUT) == osOK) - 800ce54: 4b12 ldr r3, [pc, #72] ; (800cea0 ) - 800ce56: 681b ldr r3, [r3, #0] - 800ce58: f04f 31ff mov.w r1, #4294967295 - 800ce5c: 4618 mov r0, r3 - 800ce5e: f000 fa99 bl 800d394 - 800ce62: 4603 mov r3, r0 - 800ce64: 2b00 cmp r3, #0 - 800ce66: d1f5 bne.n 800ce54 + 800ce58: 4b12 ldr r3, [pc, #72] ; (800cea4 ) + 800ce5a: 681b ldr r3, [r3, #0] + 800ce5c: f04f 31ff mov.w r1, #4294967295 + 800ce60: 4618 mov r0, r3 + 800ce62: f000 fa99 bl 800d398 + 800ce66: 4603 mov r3, r0 + 800ce68: 2b00 cmp r3, #0 + 800ce6a: d1f5 bne.n 800ce58 { do { LOCK_TCPIP_CORE(); - 800ce68: 480e ldr r0, [pc, #56] ; (800cea4 ) - 800ce6a: f00f fb2d bl 801c4c8 + 800ce6c: 480e ldr r0, [pc, #56] ; (800cea8 ) + 800ce6e: f00f fb33 bl 801c4d8 p = low_level_input( netif ); - 800ce6e: 68f8 ldr r0, [r7, #12] - 800ce70: f7ff ff36 bl 800cce0 - 800ce74: 60b8 str r0, [r7, #8] + 800ce72: 68f8 ldr r0, [r7, #12] + 800ce74: f7ff ff36 bl 800cce4 + 800ce78: 60b8 str r0, [r7, #8] if (p != NULL) - 800ce76: 68bb ldr r3, [r7, #8] - 800ce78: 2b00 cmp r3, #0 - 800ce7a: d00a beq.n 800ce92 + 800ce7a: 68bb ldr r3, [r7, #8] + 800ce7c: 2b00 cmp r3, #0 + 800ce7e: d00a beq.n 800ce96 { if (netif->input( p, netif) != ERR_OK ) - 800ce7c: 68fb ldr r3, [r7, #12] - 800ce7e: 691b ldr r3, [r3, #16] - 800ce80: 68f9 ldr r1, [r7, #12] - 800ce82: 68b8 ldr r0, [r7, #8] - 800ce84: 4798 blx r3 - 800ce86: 4603 mov r3, r0 - 800ce88: 2b00 cmp r3, #0 - 800ce8a: d002 beq.n 800ce92 + 800ce80: 68fb ldr r3, [r7, #12] + 800ce82: 691b ldr r3, [r3, #16] + 800ce84: 68f9 ldr r1, [r7, #12] + 800ce86: 68b8 ldr r0, [r7, #8] + 800ce88: 4798 blx r3 + 800ce8a: 4603 mov r3, r0 + 800ce8c: 2b00 cmp r3, #0 + 800ce8e: d002 beq.n 800ce96 { pbuf_free(p); - 800ce8c: 68b8 ldr r0, [r7, #8] - 800ce8e: f004 feab bl 8011be8 + 800ce90: 68b8 ldr r0, [r7, #8] + 800ce92: f004 feb1 bl 8011bf8 } } UNLOCK_TCPIP_CORE(); - 800ce92: 4804 ldr r0, [pc, #16] ; (800cea4 ) - 800ce94: f00f fb27 bl 801c4e6 + 800ce96: 4804 ldr r0, [pc, #16] ; (800cea8 ) + 800ce98: f00f fb2d bl 801c4f6 } while(p!=NULL); - 800ce98: 68bb ldr r3, [r7, #8] - 800ce9a: 2b00 cmp r3, #0 - 800ce9c: d1e4 bne.n 800ce68 + 800ce9c: 68bb ldr r3, [r7, #8] + 800ce9e: 2b00 cmp r3, #0 + 800cea0: d1e4 bne.n 800ce6c if (osSemaphoreWait(s_xSemaphore, TIME_WAITING_FOR_INPUT) == osOK) - 800ce9e: e7d9 b.n 800ce54 - 800cea0: 2000057c .word 0x2000057c - 800cea4: 2000c0b8 .word 0x2000c0b8 + 800cea2: e7d9 b.n 800ce58 + 800cea4: 2000057c .word 0x2000057c + 800cea8: 2000c0b8 .word 0x2000c0b8 -0800cea8 : +0800ceac : * @return ERR_OK if the loopif is initialized * ERR_MEM if private data couldn't be allocated * any other err_t on error */ err_t ethernetif_init(struct netif *netif) { - 800cea8: b580 push {r7, lr} - 800ceaa: b082 sub sp, #8 - 800ceac: af00 add r7, sp, #0 - 800ceae: 6078 str r0, [r7, #4] + 800ceac: b580 push {r7, lr} + 800ceae: b082 sub sp, #8 + 800ceb0: af00 add r7, sp, #0 + 800ceb2: 6078 str r0, [r7, #4] LWIP_ASSERT("netif != NULL", (netif != NULL)); - 800ceb0: 687b ldr r3, [r7, #4] - 800ceb2: 2b00 cmp r3, #0 - 800ceb4: d106 bne.n 800cec4 - 800ceb6: 4b0e ldr r3, [pc, #56] ; (800cef0 ) - 800ceb8: f240 222b movw r2, #555 ; 0x22b - 800cebc: 490d ldr r1, [pc, #52] ; (800cef4 ) - 800cebe: 480e ldr r0, [pc, #56] ; (800cef8 ) - 800cec0: f00f fbc2 bl 801c648 + 800ceb4: 687b ldr r3, [r7, #4] + 800ceb6: 2b00 cmp r3, #0 + 800ceb8: d106 bne.n 800cec8 + 800ceba: 4b0e ldr r3, [pc, #56] ; (800cef4 ) + 800cebc: f240 222b movw r2, #555 ; 0x22b + 800cec0: 490d ldr r1, [pc, #52] ; (800cef8 ) + 800cec2: 480e ldr r0, [pc, #56] ; (800cefc ) + 800cec4: f00f fbc8 bl 801c658 #if LWIP_NETIF_HOSTNAME /* Initialize interface hostname */ netif->hostname = "lwip"; #endif /* LWIP_NETIF_HOSTNAME */ netif->name[0] = IFNAME0; - 800cec4: 687b ldr r3, [r7, #4] - 800cec6: 2273 movs r2, #115 ; 0x73 - 800cec8: f883 2032 strb.w r2, [r3, #50] ; 0x32 + 800cec8: 687b ldr r3, [r7, #4] + 800ceca: 2273 movs r2, #115 ; 0x73 + 800cecc: f883 2032 strb.w r2, [r3, #50] ; 0x32 netif->name[1] = IFNAME1; - 800cecc: 687b ldr r3, [r7, #4] - 800cece: 2274 movs r2, #116 ; 0x74 - 800ced0: f883 2033 strb.w r2, [r3, #51] ; 0x33 + 800ced0: 687b ldr r3, [r7, #4] + 800ced2: 2274 movs r2, #116 ; 0x74 + 800ced4: f883 2033 strb.w r2, [r3, #51] ; 0x33 * is available...) */ #if LWIP_IPV4 #if LWIP_ARP || LWIP_ETHERNET #if LWIP_ARP netif->output = etharp_output; - 800ced4: 687b ldr r3, [r7, #4] - 800ced6: 4a09 ldr r2, [pc, #36] ; (800cefc ) - 800ced8: 615a str r2, [r3, #20] + 800ced8: 687b ldr r3, [r7, #4] + 800ceda: 4a09 ldr r2, [pc, #36] ; (800cf00 ) + 800cedc: 615a str r2, [r3, #20] #if LWIP_IPV6 netif->output_ip6 = ethip6_output; #endif /* LWIP_IPV6 */ netif->linkoutput = low_level_output; - 800ceda: 687b ldr r3, [r7, #4] - 800cedc: 4a08 ldr r2, [pc, #32] ; (800cf00 ) - 800cede: 619a str r2, [r3, #24] + 800cede: 687b ldr r3, [r7, #4] + 800cee0: 4a08 ldr r2, [pc, #32] ; (800cf04 ) + 800cee2: 619a str r2, [r3, #24] /* initialize the hardware */ low_level_init(netif); - 800cee0: 6878 ldr r0, [r7, #4] - 800cee2: f7ff fd87 bl 800c9f4 + 800cee4: 6878 ldr r0, [r7, #4] + 800cee6: f7ff fd87 bl 800c9f8 return ERR_OK; - 800cee6: 2300 movs r3, #0 -} - 800cee8: 4618 mov r0, r3 - 800ceea: 3708 adds r7, #8 - 800ceec: 46bd mov sp, r7 - 800ceee: bd80 pop {r7, pc} - 800cef0: 0801d908 .word 0x0801d908 - 800cef4: 0801d924 .word 0x0801d924 + 800ceea: 2300 movs r3, #0 +} + 800ceec: 4618 mov r0, r3 + 800ceee: 3708 adds r7, #8 + 800cef0: 46bd mov sp, r7 + 800cef2: bd80 pop {r7, pc} + 800cef4: 0801d918 .word 0x0801d918 800cef8: 0801d934 .word 0x0801d934 - 800cefc: 0801a645 .word 0x0801a645 - 800cf00: 0800cba5 .word 0x0800cba5 + 800cefc: 0801d944 .word 0x0801d944 + 800cf00: 0801a655 .word 0x0801a655 + 800cf04: 0800cba9 .word 0x0800cba9 -0800cf04 : +0800cf08 : * when LWIP_TIMERS == 1 and NO_SYS == 1 * @param None * @retval Time */ u32_t sys_now(void) { - 800cf04: b580 push {r7, lr} - 800cf06: af00 add r7, sp, #0 + 800cf08: b580 push {r7, lr} + 800cf0a: af00 add r7, sp, #0 return HAL_GetTick(); - 800cf08: f7f7 ffda bl 8004ec0 - 800cf0c: 4603 mov r3, r0 + 800cf0c: f7f7 ffda bl 8004ec4 + 800cf10: 4603 mov r3, r0 } - 800cf0e: 4618 mov r0, r3 - 800cf10: bd80 pop {r7, pc} + 800cf12: 4618 mov r0, r3 + 800cf14: bd80 pop {r7, pc} ... -0800cf14 : +0800cf18 : * @param netif: the network interface * @retval None */ void ethernetif_set_link(void const *argument) { - 800cf14: b580 push {r7, lr} - 800cf16: b084 sub sp, #16 - 800cf18: af00 add r7, sp, #0 - 800cf1a: 6078 str r0, [r7, #4] + 800cf18: b580 push {r7, lr} + 800cf1a: b084 sub sp, #16 + 800cf1c: af00 add r7, sp, #0 + 800cf1e: 6078 str r0, [r7, #4] uint32_t regvalue = 0; - 800cf1c: 2300 movs r3, #0 - 800cf1e: 60bb str r3, [r7, #8] + 800cf20: 2300 movs r3, #0 + 800cf22: 60bb str r3, [r7, #8] struct link_str *link_arg = (struct link_str *)argument; - 800cf20: 687b ldr r3, [r7, #4] - 800cf22: 60fb str r3, [r7, #12] + 800cf24: 687b ldr r3, [r7, #4] + 800cf26: 60fb str r3, [r7, #12] for(;;) { /* Read PHY_BSR*/ HAL_ETH_ReadPHYRegister(&heth, PHY_BSR, ®value); - 800cf24: f107 0308 add.w r3, r7, #8 - 800cf28: 461a mov r2, r3 - 800cf2a: 2101 movs r1, #1 - 800cf2c: 4816 ldr r0, [pc, #88] ; (800cf88 ) - 800cf2e: f7f9 fe7e bl 8006c2e + 800cf28: f107 0308 add.w r3, r7, #8 + 800cf2c: 461a mov r2, r3 + 800cf2e: 2101 movs r1, #1 + 800cf30: 4816 ldr r0, [pc, #88] ; (800cf8c ) + 800cf32: f7f9 fe7e bl 8006c32 regvalue &= PHY_LINKED_STATUS; - 800cf32: 68bb ldr r3, [r7, #8] - 800cf34: f003 0304 and.w r3, r3, #4 - 800cf38: 60bb str r3, [r7, #8] + 800cf36: 68bb ldr r3, [r7, #8] + 800cf38: f003 0304 and.w r3, r3, #4 + 800cf3c: 60bb str r3, [r7, #8] /* Check whether the netif link down and the PHY link is up */ if(!netif_is_link_up(link_arg->netif) && (regvalue)) - 800cf3a: 68fb ldr r3, [r7, #12] - 800cf3c: 681b ldr r3, [r3, #0] - 800cf3e: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800cf42: f003 0304 and.w r3, r3, #4 - 800cf46: 2b00 cmp r3, #0 - 800cf48: d108 bne.n 800cf5c - 800cf4a: 68bb ldr r3, [r7, #8] - 800cf4c: 2b00 cmp r3, #0 - 800cf4e: d005 beq.n 800cf5c + 800cf3e: 68fb ldr r3, [r7, #12] + 800cf40: 681b ldr r3, [r3, #0] + 800cf42: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800cf46: f003 0304 and.w r3, r3, #4 + 800cf4a: 2b00 cmp r3, #0 + 800cf4c: d108 bne.n 800cf60 + 800cf4e: 68bb ldr r3, [r7, #8] + 800cf50: 2b00 cmp r3, #0 + 800cf52: d005 beq.n 800cf60 { /* network cable is connected */ netif_set_link_up(link_arg->netif); - 800cf50: 68fb ldr r3, [r7, #12] - 800cf52: 681b ldr r3, [r3, #0] - 800cf54: 4618 mov r0, r3 - 800cf56: f004 fa35 bl 80113c4 - 800cf5a: e011 b.n 800cf80 + 800cf54: 68fb ldr r3, [r7, #12] + 800cf56: 681b ldr r3, [r3, #0] + 800cf58: 4618 mov r0, r3 + 800cf5a: f004 fa3b bl 80113d4 + 800cf5e: e011 b.n 800cf84 } else if(netif_is_link_up(link_arg->netif) && (!regvalue)) - 800cf5c: 68fb ldr r3, [r7, #12] - 800cf5e: 681b ldr r3, [r3, #0] - 800cf60: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800cf64: 089b lsrs r3, r3, #2 - 800cf66: f003 0301 and.w r3, r3, #1 - 800cf6a: b2db uxtb r3, r3 - 800cf6c: 2b00 cmp r3, #0 - 800cf6e: d007 beq.n 800cf80 - 800cf70: 68bb ldr r3, [r7, #8] - 800cf72: 2b00 cmp r3, #0 - 800cf74: d104 bne.n 800cf80 + 800cf60: 68fb ldr r3, [r7, #12] + 800cf62: 681b ldr r3, [r3, #0] + 800cf64: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800cf68: 089b lsrs r3, r3, #2 + 800cf6a: f003 0301 and.w r3, r3, #1 + 800cf6e: b2db uxtb r3, r3 + 800cf70: 2b00 cmp r3, #0 + 800cf72: d007 beq.n 800cf84 + 800cf74: 68bb ldr r3, [r7, #8] + 800cf76: 2b00 cmp r3, #0 + 800cf78: d104 bne.n 800cf84 { /* network cable is dis-connected */ netif_set_link_down(link_arg->netif); - 800cf76: 68fb ldr r3, [r7, #12] - 800cf78: 681b ldr r3, [r3, #0] - 800cf7a: 4618 mov r0, r3 - 800cf7c: f004 fa5a bl 8011434 + 800cf7a: 68fb ldr r3, [r7, #12] + 800cf7c: 681b ldr r3, [r3, #0] + 800cf7e: 4618 mov r0, r3 + 800cf80: f004 fa60 bl 8011444 } /* Suspend thread for 200 ms */ osDelay(200); - 800cf80: 20c8 movs r0, #200 ; 0xc8 - 800cf82: f000 f916 bl 800d1b2 + 800cf84: 20c8 movs r0, #200 ; 0xc8 + 800cf86: f000 f916 bl 800d1b6 HAL_ETH_ReadPHYRegister(&heth, PHY_BSR, ®value); - 800cf86: e7cd b.n 800cf24 - 800cf88: 2000a8a0 .word 0x2000a8a0 + 800cf8a: e7cd b.n 800cf28 + 800cf8c: 2000a8a0 .word 0x2000a8a0 -0800cf8c : +0800cf90 : * to update low level driver configuration. * @param netif: The network interface * @retval None */ void ethernetif_update_config(struct netif *netif) { - 800cf8c: b580 push {r7, lr} - 800cf8e: b084 sub sp, #16 - 800cf90: af00 add r7, sp, #0 - 800cf92: 6078 str r0, [r7, #4] + 800cf90: b580 push {r7, lr} + 800cf92: b084 sub sp, #16 + 800cf94: af00 add r7, sp, #0 + 800cf96: 6078 str r0, [r7, #4] __IO uint32_t tickstart = 0; - 800cf94: 2300 movs r3, #0 - 800cf96: 60fb str r3, [r7, #12] - uint32_t regvalue = 0; 800cf98: 2300 movs r3, #0 - 800cf9a: 60bb str r3, [r7, #8] + 800cf9a: 60fb str r3, [r7, #12] + uint32_t regvalue = 0; + 800cf9c: 2300 movs r3, #0 + 800cf9e: 60bb str r3, [r7, #8] if(netif_is_link_up(netif)) - 800cf9c: 687b ldr r3, [r7, #4] - 800cf9e: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 800cfa2: 089b lsrs r3, r3, #2 - 800cfa4: f003 0301 and.w r3, r3, #1 - 800cfa8: b2db uxtb r3, r3 - 800cfaa: 2b00 cmp r3, #0 - 800cfac: d05d beq.n 800d06a + 800cfa0: 687b ldr r3, [r7, #4] + 800cfa2: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 800cfa6: 089b lsrs r3, r3, #2 + 800cfa8: f003 0301 and.w r3, r3, #1 + 800cfac: b2db uxtb r3, r3 + 800cfae: 2b00 cmp r3, #0 + 800cfb0: d05d beq.n 800d06e { /* Restart the auto-negotiation */ if(heth.Init.AutoNegotiation != ETH_AUTONEGOTIATION_DISABLE) - 800cfae: 4b34 ldr r3, [pc, #208] ; (800d080 ) - 800cfb0: 685b ldr r3, [r3, #4] - 800cfb2: 2b00 cmp r3, #0 - 800cfb4: d03f beq.n 800d036 + 800cfb2: 4b34 ldr r3, [pc, #208] ; (800d084 ) + 800cfb4: 685b ldr r3, [r3, #4] + 800cfb6: 2b00 cmp r3, #0 + 800cfb8: d03f beq.n 800d03a { /* Enable Auto-Negotiation */ HAL_ETH_WritePHYRegister(&heth, PHY_BCR, PHY_AUTONEGOTIATION); - 800cfb6: f44f 5280 mov.w r2, #4096 ; 0x1000 - 800cfba: 2100 movs r1, #0 - 800cfbc: 4830 ldr r0, [pc, #192] ; (800d080 ) - 800cfbe: f7f9 fe9e bl 8006cfe + 800cfba: f44f 5280 mov.w r2, #4096 ; 0x1000 + 800cfbe: 2100 movs r1, #0 + 800cfc0: 4830 ldr r0, [pc, #192] ; (800d084 ) + 800cfc2: f7f9 fe9e bl 8006d02 /* Get tick */ tickstart = HAL_GetTick(); - 800cfc2: f7f7 ff7d bl 8004ec0 - 800cfc6: 4603 mov r3, r0 - 800cfc8: 60fb str r3, [r7, #12] + 800cfc6: f7f7 ff7d bl 8004ec4 + 800cfca: 4603 mov r3, r0 + 800cfcc: 60fb str r3, [r7, #12] /* Wait until the auto-negotiation will be completed */ do { HAL_ETH_ReadPHYRegister(&heth, PHY_BSR, ®value); - 800cfca: f107 0308 add.w r3, r7, #8 - 800cfce: 461a mov r2, r3 - 800cfd0: 2101 movs r1, #1 - 800cfd2: 482b ldr r0, [pc, #172] ; (800d080 ) - 800cfd4: f7f9 fe2b bl 8006c2e + 800cfce: f107 0308 add.w r3, r7, #8 + 800cfd2: 461a mov r2, r3 + 800cfd4: 2101 movs r1, #1 + 800cfd6: 482b ldr r0, [pc, #172] ; (800d084 ) + 800cfd8: f7f9 fe2b bl 8006c32 /* Check for the Timeout ( 1s ) */ if((HAL_GetTick() - tickstart ) > 1000) - 800cfd8: f7f7 ff72 bl 8004ec0 - 800cfdc: 4602 mov r2, r0 - 800cfde: 68fb ldr r3, [r7, #12] - 800cfe0: 1ad3 subs r3, r2, r3 - 800cfe2: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 - 800cfe6: d828 bhi.n 800d03a + 800cfdc: f7f7 ff72 bl 8004ec4 + 800cfe0: 4602 mov r2, r0 + 800cfe2: 68fb ldr r3, [r7, #12] + 800cfe4: 1ad3 subs r3, r2, r3 + 800cfe6: f5b3 7f7a cmp.w r3, #1000 ; 0x3e8 + 800cfea: d828 bhi.n 800d03e { /* In case of timeout */ goto error; } } while (((regvalue & PHY_AUTONEGO_COMPLETE) != PHY_AUTONEGO_COMPLETE)); - 800cfe8: 68bb ldr r3, [r7, #8] - 800cfea: f003 0320 and.w r3, r3, #32 - 800cfee: 2b00 cmp r3, #0 - 800cff0: d0eb beq.n 800cfca + 800cfec: 68bb ldr r3, [r7, #8] + 800cfee: f003 0320 and.w r3, r3, #32 + 800cff2: 2b00 cmp r3, #0 + 800cff4: d0eb beq.n 800cfce /* Read the result of the auto-negotiation */ HAL_ETH_ReadPHYRegister(&heth, PHY_SR, ®value); - 800cff2: f107 0308 add.w r3, r7, #8 - 800cff6: 461a mov r2, r3 - 800cff8: 211f movs r1, #31 - 800cffa: 4821 ldr r0, [pc, #132] ; (800d080 ) - 800cffc: f7f9 fe17 bl 8006c2e + 800cff6: f107 0308 add.w r3, r7, #8 + 800cffa: 461a mov r2, r3 + 800cffc: 211f movs r1, #31 + 800cffe: 4821 ldr r0, [pc, #132] ; (800d084 ) + 800d000: f7f9 fe17 bl 8006c32 /* Configure the MAC with the Duplex Mode fixed by the auto-negotiation process */ if((regvalue & PHY_DUPLEX_STATUS) != (uint32_t)RESET) - 800d000: 68bb ldr r3, [r7, #8] - 800d002: f003 0310 and.w r3, r3, #16 - 800d006: 2b00 cmp r3, #0 - 800d008: d004 beq.n 800d014 + 800d004: 68bb ldr r3, [r7, #8] + 800d006: f003 0310 and.w r3, r3, #16 + 800d00a: 2b00 cmp r3, #0 + 800d00c: d004 beq.n 800d018 { /* Set Ethernet duplex mode to Full-duplex following the auto-negotiation */ heth.Init.DuplexMode = ETH_MODE_FULLDUPLEX; - 800d00a: 4b1d ldr r3, [pc, #116] ; (800d080 ) - 800d00c: f44f 6200 mov.w r2, #2048 ; 0x800 - 800d010: 60da str r2, [r3, #12] - 800d012: e002 b.n 800d01a + 800d00e: 4b1d ldr r3, [pc, #116] ; (800d084 ) + 800d010: f44f 6200 mov.w r2, #2048 ; 0x800 + 800d014: 60da str r2, [r3, #12] + 800d016: e002 b.n 800d01e } else { /* Set Ethernet duplex mode to Half-duplex following the auto-negotiation */ heth.Init.DuplexMode = ETH_MODE_HALFDUPLEX; - 800d014: 4b1a ldr r3, [pc, #104] ; (800d080 ) - 800d016: 2200 movs r2, #0 - 800d018: 60da str r2, [r3, #12] + 800d018: 4b1a ldr r3, [pc, #104] ; (800d084 ) + 800d01a: 2200 movs r2, #0 + 800d01c: 60da str r2, [r3, #12] } /* Configure the MAC with the speed fixed by the auto-negotiation process */ if(regvalue & PHY_SPEED_STATUS) - 800d01a: 68bb ldr r3, [r7, #8] - 800d01c: f003 0304 and.w r3, r3, #4 - 800d020: 2b00 cmp r3, #0 - 800d022: d003 beq.n 800d02c + 800d01e: 68bb ldr r3, [r7, #8] + 800d020: f003 0304 and.w r3, r3, #4 + 800d024: 2b00 cmp r3, #0 + 800d026: d003 beq.n 800d030 { /* Set Ethernet speed to 10M following the auto-negotiation */ heth.Init.Speed = ETH_SPEED_10M; - 800d024: 4b16 ldr r3, [pc, #88] ; (800d080 ) - 800d026: 2200 movs r2, #0 - 800d028: 609a str r2, [r3, #8] - 800d02a: e016 b.n 800d05a + 800d028: 4b16 ldr r3, [pc, #88] ; (800d084 ) + 800d02a: 2200 movs r2, #0 + 800d02c: 609a str r2, [r3, #8] + 800d02e: e016 b.n 800d05e } else { /* Set Ethernet speed to 100M following the auto-negotiation */ heth.Init.Speed = ETH_SPEED_100M; - 800d02c: 4b14 ldr r3, [pc, #80] ; (800d080 ) - 800d02e: f44f 4280 mov.w r2, #16384 ; 0x4000 - 800d032: 609a str r2, [r3, #8] - 800d034: e011 b.n 800d05a + 800d030: 4b14 ldr r3, [pc, #80] ; (800d084 ) + 800d032: f44f 4280 mov.w r2, #16384 ; 0x4000 + 800d036: 609a str r2, [r3, #8] + 800d038: e011 b.n 800d05e } } else /* AutoNegotiation Disable */ { error : - 800d036: bf00 nop - 800d038: e000 b.n 800d03c - goto error; 800d03a: bf00 nop + 800d03c: e000 b.n 800d040 + goto error; + 800d03e: bf00 nop /* Check parameters */ assert_param(IS_ETH_SPEED(heth.Init.Speed)); assert_param(IS_ETH_DUPLEX_MODE(heth.Init.DuplexMode)); /* Set MAC Speed and Duplex Mode to PHY */ HAL_ETH_WritePHYRegister(&heth, PHY_BCR, ((uint16_t)(heth.Init.DuplexMode >> 3) | - 800d03c: 4b10 ldr r3, [pc, #64] ; (800d080 ) - 800d03e: 68db ldr r3, [r3, #12] - 800d040: 08db lsrs r3, r3, #3 - 800d042: b29a uxth r2, r3 + 800d040: 4b10 ldr r3, [pc, #64] ; (800d084 ) + 800d042: 68db ldr r3, [r3, #12] + 800d044: 08db lsrs r3, r3, #3 + 800d046: b29a uxth r2, r3 (uint16_t)(heth.Init.Speed >> 1))); - 800d044: 4b0e ldr r3, [pc, #56] ; (800d080 ) - 800d046: 689b ldr r3, [r3, #8] - 800d048: 085b lsrs r3, r3, #1 - 800d04a: b29b uxth r3, r3 - HAL_ETH_WritePHYRegister(&heth, PHY_BCR, ((uint16_t)(heth.Init.DuplexMode >> 3) | - 800d04c: 4313 orrs r3, r2 + 800d048: 4b0e ldr r3, [pc, #56] ; (800d084 ) + 800d04a: 689b ldr r3, [r3, #8] + 800d04c: 085b lsrs r3, r3, #1 800d04e: b29b uxth r3, r3 - 800d050: 461a mov r2, r3 - 800d052: 2100 movs r1, #0 - 800d054: 480a ldr r0, [pc, #40] ; (800d080 ) - 800d056: f7f9 fe52 bl 8006cfe + HAL_ETH_WritePHYRegister(&heth, PHY_BCR, ((uint16_t)(heth.Init.DuplexMode >> 3) | + 800d050: 4313 orrs r3, r2 + 800d052: b29b uxth r3, r3 + 800d054: 461a mov r2, r3 + 800d056: 2100 movs r1, #0 + 800d058: 480a ldr r0, [pc, #40] ; (800d084 ) + 800d05a: f7f9 fe52 bl 8006d02 } /* ETHERNET MAC Re-Configuration */ HAL_ETH_ConfigMAC(&heth, (ETH_MACInitTypeDef *) NULL); - 800d05a: 2100 movs r1, #0 - 800d05c: 4808 ldr r0, [pc, #32] ; (800d080 ) - 800d05e: f7f9 ff13 bl 8006e88 + 800d05e: 2100 movs r1, #0 + 800d060: 4808 ldr r0, [pc, #32] ; (800d084 ) + 800d062: f7f9 ff13 bl 8006e8c /* Restart MAC interface */ HAL_ETH_Start(&heth); - 800d062: 4807 ldr r0, [pc, #28] ; (800d080 ) - 800d064: f7f9 feb1 bl 8006dca - 800d068: e002 b.n 800d070 + 800d066: 4807 ldr r0, [pc, #28] ; (800d084 ) + 800d068: f7f9 feb1 bl 8006dce + 800d06c: e002 b.n 800d074 } else { /* Stop MAC interface */ HAL_ETH_Stop(&heth); - 800d06a: 4805 ldr r0, [pc, #20] ; (800d080 ) - 800d06c: f7f9 fedc bl 8006e28 + 800d06e: 4805 ldr r0, [pc, #20] ; (800d084 ) + 800d070: f7f9 fedc bl 8006e2c } ethernetif_notify_conn_changed(netif); - 800d070: 6878 ldr r0, [r7, #4] - 800d072: f000 f807 bl 800d084 + 800d074: 6878 ldr r0, [r7, #4] + 800d076: f000 f807 bl 800d088 } - 800d076: bf00 nop - 800d078: 3710 adds r7, #16 - 800d07a: 46bd mov sp, r7 - 800d07c: bd80 pop {r7, pc} - 800d07e: bf00 nop - 800d080: 2000a8a0 .word 0x2000a8a0 + 800d07a: bf00 nop + 800d07c: 3710 adds r7, #16 + 800d07e: 46bd mov sp, r7 + 800d080: bd80 pop {r7, pc} + 800d082: bf00 nop + 800d084: 2000a8a0 .word 0x2000a8a0 -0800d084 : +0800d088 : * @brief This function notify user about link status changement. * @param netif: the network interface * @retval None */ __weak void ethernetif_notify_conn_changed(struct netif *netif) { - 800d084: b480 push {r7} - 800d086: b083 sub sp, #12 - 800d088: af00 add r7, sp, #0 - 800d08a: 6078 str r0, [r7, #4] + 800d088: b480 push {r7} + 800d08a: b083 sub sp, #12 + 800d08c: af00 add r7, sp, #0 + 800d08e: 6078 str r0, [r7, #4] /* NOTE : This is function could be implemented in user file when the callback is needed, */ } - 800d08c: bf00 nop - 800d08e: 370c adds r7, #12 - 800d090: 46bd mov sp, r7 - 800d092: f85d 7b04 ldr.w r7, [sp], #4 - 800d096: 4770 bx lr + 800d090: bf00 nop + 800d092: 370c adds r7, #12 + 800d094: 46bd mov sp, r7 + 800d096: f85d 7b04 ldr.w r7, [sp], #4 + 800d09a: 4770 bx lr -0800d098 : +0800d09c : extern void xPortSysTickHandler(void); /* Convert from CMSIS type osPriority to FreeRTOS priority number */ static unsigned portBASE_TYPE makeFreeRtosPriority (osPriority priority) { - 800d098: b480 push {r7} - 800d09a: b085 sub sp, #20 - 800d09c: af00 add r7, sp, #0 - 800d09e: 4603 mov r3, r0 - 800d0a0: 80fb strh r3, [r7, #6] + 800d09c: b480 push {r7} + 800d09e: b085 sub sp, #20 + 800d0a0: af00 add r7, sp, #0 + 800d0a2: 4603 mov r3, r0 + 800d0a4: 80fb strh r3, [r7, #6] unsigned portBASE_TYPE fpriority = tskIDLE_PRIORITY; - 800d0a2: 2300 movs r3, #0 - 800d0a4: 60fb str r3, [r7, #12] + 800d0a6: 2300 movs r3, #0 + 800d0a8: 60fb str r3, [r7, #12] if (priority != osPriorityError) { - 800d0a6: f9b7 3006 ldrsh.w r3, [r7, #6] - 800d0aa: 2b84 cmp r3, #132 ; 0x84 - 800d0ac: d005 beq.n 800d0ba + 800d0aa: f9b7 3006 ldrsh.w r3, [r7, #6] + 800d0ae: 2b84 cmp r3, #132 ; 0x84 + 800d0b0: d005 beq.n 800d0be fpriority += (priority - osPriorityIdle); - 800d0ae: f9b7 2006 ldrsh.w r2, [r7, #6] - 800d0b2: 68fb ldr r3, [r7, #12] - 800d0b4: 4413 add r3, r2 - 800d0b6: 3303 adds r3, #3 - 800d0b8: 60fb str r3, [r7, #12] + 800d0b2: f9b7 2006 ldrsh.w r2, [r7, #6] + 800d0b6: 68fb ldr r3, [r7, #12] + 800d0b8: 4413 add r3, r2 + 800d0ba: 3303 adds r3, #3 + 800d0bc: 60fb str r3, [r7, #12] } return fpriority; - 800d0ba: 68fb ldr r3, [r7, #12] + 800d0be: 68fb ldr r3, [r7, #12] } - 800d0bc: 4618 mov r0, r3 - 800d0be: 3714 adds r7, #20 - 800d0c0: 46bd mov sp, r7 - 800d0c2: f85d 7b04 ldr.w r7, [sp], #4 - 800d0c6: 4770 bx lr + 800d0c0: 4618 mov r0, r3 + 800d0c2: 3714 adds r7, #20 + 800d0c4: 46bd mov sp, r7 + 800d0c6: f85d 7b04 ldr.w r7, [sp], #4 + 800d0ca: 4770 bx lr -0800d0c8 : +0800d0cc : #endif /* Determine whether we are in thread mode or handler mode. */ static int inHandlerMode (void) { - 800d0c8: b480 push {r7} - 800d0ca: b083 sub sp, #12 - 800d0cc: af00 add r7, sp, #0 + 800d0cc: b480 push {r7} + 800d0ce: b083 sub sp, #12 + 800d0d0: af00 add r7, sp, #0 */ __STATIC_FORCEINLINE uint32_t __get_IPSR(void) { uint32_t result; __ASM volatile ("MRS %0, ipsr" : "=r" (result) ); - 800d0ce: f3ef 8305 mrs r3, IPSR - 800d0d2: 607b str r3, [r7, #4] + 800d0d2: f3ef 8305 mrs r3, IPSR + 800d0d6: 607b str r3, [r7, #4] return(result); - 800d0d4: 687b ldr r3, [r7, #4] + 800d0d8: 687b ldr r3, [r7, #4] return __get_IPSR() != 0; - 800d0d6: 2b00 cmp r3, #0 - 800d0d8: bf14 ite ne - 800d0da: 2301 movne r3, #1 - 800d0dc: 2300 moveq r3, #0 - 800d0de: b2db uxtb r3, r3 -} - 800d0e0: 4618 mov r0, r3 - 800d0e2: 370c adds r7, #12 - 800d0e4: 46bd mov sp, r7 - 800d0e6: f85d 7b04 ldr.w r7, [sp], #4 - 800d0ea: 4770 bx lr - -0800d0ec : + 800d0da: 2b00 cmp r3, #0 + 800d0dc: bf14 ite ne + 800d0de: 2301 movne r3, #1 + 800d0e0: 2300 moveq r3, #0 + 800d0e2: b2db uxtb r3, r3 +} + 800d0e4: 4618 mov r0, r3 + 800d0e6: 370c adds r7, #12 + 800d0e8: 46bd mov sp, r7 + 800d0ea: f85d 7b04 ldr.w r7, [sp], #4 + 800d0ee: 4770 bx lr + +0800d0f0 : * @param argument pointer that is passed to the thread function as start argument. * @retval status code that indicates the execution status of the function * @note MUST REMAIN UNCHANGED: \b osKernelStart shall be consistent in every CMSIS-RTOS. */ osStatus osKernelStart (void) { - 800d0ec: b580 push {r7, lr} - 800d0ee: af00 add r7, sp, #0 + 800d0f0: b580 push {r7, lr} + 800d0f2: af00 add r7, sp, #0 vTaskStartScheduler(); - 800d0f0: f001 fd8e bl 800ec10 + 800d0f4: f001 fd8e bl 800ec14 return osOK; - 800d0f4: 2300 movs r3, #0 + 800d0f8: 2300 movs r3, #0 } - 800d0f6: 4618 mov r0, r3 - 800d0f8: bd80 pop {r7, pc} + 800d0fa: 4618 mov r0, r3 + 800d0fc: bd80 pop {r7, pc} -0800d0fa : +0800d0fe : * @param None * @retval None * @note MUST REMAIN UNCHANGED: \b osKernelSysTick shall be consistent in every CMSIS-RTOS. */ uint32_t osKernelSysTick(void) { - 800d0fa: b580 push {r7, lr} - 800d0fc: af00 add r7, sp, #0 + 800d0fe: b580 push {r7, lr} + 800d100: af00 add r7, sp, #0 if (inHandlerMode()) { - 800d0fe: f7ff ffe3 bl 800d0c8 - 800d102: 4603 mov r3, r0 - 800d104: 2b00 cmp r3, #0 - 800d106: d003 beq.n 800d110 + 800d102: f7ff ffe3 bl 800d0cc + 800d106: 4603 mov r3, r0 + 800d108: 2b00 cmp r3, #0 + 800d10a: d003 beq.n 800d114 return xTaskGetTickCountFromISR(); - 800d108: f001 fea0 bl 800ee4c - 800d10c: 4603 mov r3, r0 - 800d10e: e002 b.n 800d116 + 800d10c: f001 fea0 bl 800ee50 + 800d110: 4603 mov r3, r0 + 800d112: e002 b.n 800d11a } else { return xTaskGetTickCount(); - 800d110: f001 fe8c bl 800ee2c - 800d114: 4603 mov r3, r0 + 800d114: f001 fe8c bl 800ee30 + 800d118: 4603 mov r3, r0 } } - 800d116: 4618 mov r0, r3 - 800d118: bd80 pop {r7, pc} + 800d11a: 4618 mov r0, r3 + 800d11c: bd80 pop {r7, pc} -0800d11a : +0800d11e : * @param argument pointer that is passed to the thread function as start argument. * @retval thread ID for reference by other functions or NULL in case of error. * @note MUST REMAIN UNCHANGED: \b osThreadCreate shall be consistent in every CMSIS-RTOS. */ osThreadId osThreadCreate (const osThreadDef_t *thread_def, void *argument) { - 800d11a: b5f0 push {r4, r5, r6, r7, lr} - 800d11c: b089 sub sp, #36 ; 0x24 - 800d11e: af04 add r7, sp, #16 - 800d120: 6078 str r0, [r7, #4] - 800d122: 6039 str r1, [r7, #0] + 800d11e: b5f0 push {r4, r5, r6, r7, lr} + 800d120: b089 sub sp, #36 ; 0x24 + 800d122: af04 add r7, sp, #16 + 800d124: 6078 str r0, [r7, #4] + 800d126: 6039 str r1, [r7, #0] TaskHandle_t handle; #if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) if((thread_def->buffer != NULL) && (thread_def->controlblock != NULL)) { - 800d124: 687b ldr r3, [r7, #4] - 800d126: 695b ldr r3, [r3, #20] - 800d128: 2b00 cmp r3, #0 - 800d12a: d020 beq.n 800d16e - 800d12c: 687b ldr r3, [r7, #4] - 800d12e: 699b ldr r3, [r3, #24] - 800d130: 2b00 cmp r3, #0 - 800d132: d01c beq.n 800d16e + 800d128: 687b ldr r3, [r7, #4] + 800d12a: 695b ldr r3, [r3, #20] + 800d12c: 2b00 cmp r3, #0 + 800d12e: d020 beq.n 800d172 + 800d130: 687b ldr r3, [r7, #4] + 800d132: 699b ldr r3, [r3, #24] + 800d134: 2b00 cmp r3, #0 + 800d136: d01c beq.n 800d172 handle = xTaskCreateStatic((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 800d134: 687b ldr r3, [r7, #4] - 800d136: 685c ldr r4, [r3, #4] 800d138: 687b ldr r3, [r7, #4] - 800d13a: 681d ldr r5, [r3, #0] + 800d13a: 685c ldr r4, [r3, #4] 800d13c: 687b ldr r3, [r7, #4] - 800d13e: 691e ldr r6, [r3, #16] + 800d13e: 681d ldr r5, [r3, #0] 800d140: 687b ldr r3, [r7, #4] - 800d142: f9b3 3008 ldrsh.w r3, [r3, #8] - 800d146: 4618 mov r0, r3 - 800d148: f7ff ffa6 bl 800d098 - 800d14c: 4601 mov r1, r0 + 800d142: 691e ldr r6, [r3, #16] + 800d144: 687b ldr r3, [r7, #4] + 800d146: f9b3 3008 ldrsh.w r3, [r3, #8] + 800d14a: 4618 mov r0, r3 + 800d14c: f7ff ffa6 bl 800d09c + 800d150: 4601 mov r1, r0 thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), thread_def->buffer, thread_def->controlblock); - 800d14e: 687b ldr r3, [r7, #4] - 800d150: 695b ldr r3, [r3, #20] - 800d152: 687a ldr r2, [r7, #4] - 800d154: 6992 ldr r2, [r2, #24] + 800d152: 687b ldr r3, [r7, #4] + 800d154: 695b ldr r3, [r3, #20] + 800d156: 687a ldr r2, [r7, #4] + 800d158: 6992 ldr r2, [r2, #24] handle = xTaskCreateStatic((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 800d156: 9202 str r2, [sp, #8] - 800d158: 9301 str r3, [sp, #4] - 800d15a: 9100 str r1, [sp, #0] - 800d15c: 683b ldr r3, [r7, #0] - 800d15e: 4632 mov r2, r6 - 800d160: 4629 mov r1, r5 - 800d162: 4620 mov r0, r4 - 800d164: f001 fafb bl 800e75e - 800d168: 4603 mov r3, r0 - 800d16a: 60fb str r3, [r7, #12] - 800d16c: e01c b.n 800d1a8 + 800d15a: 9202 str r2, [sp, #8] + 800d15c: 9301 str r3, [sp, #4] + 800d15e: 9100 str r1, [sp, #0] + 800d160: 683b ldr r3, [r7, #0] + 800d162: 4632 mov r2, r6 + 800d164: 4629 mov r1, r5 + 800d166: 4620 mov r0, r4 + 800d168: f001 fafb bl 800e762 + 800d16c: 4603 mov r3, r0 + 800d16e: 60fb str r3, [r7, #12] + 800d170: e01c b.n 800d1ac } else { if (xTaskCreate((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 800d16e: 687b ldr r3, [r7, #4] - 800d170: 685c ldr r4, [r3, #4] 800d172: 687b ldr r3, [r7, #4] - 800d174: 681d ldr r5, [r3, #0] - thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), + 800d174: 685c ldr r4, [r3, #4] 800d176: 687b ldr r3, [r7, #4] - 800d178: 691b ldr r3, [r3, #16] + 800d178: 681d ldr r5, [r3, #0] + thread_def->stacksize, argument, makeFreeRtosPriority(thread_def->tpriority), + 800d17a: 687b ldr r3, [r7, #4] + 800d17c: 691b ldr r3, [r3, #16] if (xTaskCreate((TaskFunction_t)thread_def->pthread,(const portCHAR *)thread_def->name, - 800d17a: b29e uxth r6, r3 - 800d17c: 687b ldr r3, [r7, #4] - 800d17e: f9b3 3008 ldrsh.w r3, [r3, #8] - 800d182: 4618 mov r0, r3 - 800d184: f7ff ff88 bl 800d098 - 800d188: 4602 mov r2, r0 - 800d18a: f107 030c add.w r3, r7, #12 - 800d18e: 9301 str r3, [sp, #4] - 800d190: 9200 str r2, [sp, #0] - 800d192: 683b ldr r3, [r7, #0] - 800d194: 4632 mov r2, r6 - 800d196: 4629 mov r1, r5 - 800d198: 4620 mov r0, r4 - 800d19a: f001 fb40 bl 800e81e - 800d19e: 4603 mov r3, r0 - 800d1a0: 2b01 cmp r3, #1 - 800d1a2: d001 beq.n 800d1a8 + 800d17e: b29e uxth r6, r3 + 800d180: 687b ldr r3, [r7, #4] + 800d182: f9b3 3008 ldrsh.w r3, [r3, #8] + 800d186: 4618 mov r0, r3 + 800d188: f7ff ff88 bl 800d09c + 800d18c: 4602 mov r2, r0 + 800d18e: f107 030c add.w r3, r7, #12 + 800d192: 9301 str r3, [sp, #4] + 800d194: 9200 str r2, [sp, #0] + 800d196: 683b ldr r3, [r7, #0] + 800d198: 4632 mov r2, r6 + 800d19a: 4629 mov r1, r5 + 800d19c: 4620 mov r0, r4 + 800d19e: f001 fb40 bl 800e822 + 800d1a2: 4603 mov r3, r0 + 800d1a4: 2b01 cmp r3, #1 + 800d1a6: d001 beq.n 800d1ac &handle) != pdPASS) { return NULL; - 800d1a4: 2300 movs r3, #0 - 800d1a6: e000 b.n 800d1aa + 800d1a8: 2300 movs r3, #0 + 800d1aa: e000 b.n 800d1ae &handle) != pdPASS) { return NULL; } #endif return handle; - 800d1a8: 68fb ldr r3, [r7, #12] + 800d1ac: 68fb ldr r3, [r7, #12] } - 800d1aa: 4618 mov r0, r3 - 800d1ac: 3714 adds r7, #20 - 800d1ae: 46bd mov sp, r7 - 800d1b0: bdf0 pop {r4, r5, r6, r7, pc} + 800d1ae: 4618 mov r0, r3 + 800d1b0: 3714 adds r7, #20 + 800d1b2: 46bd mov sp, r7 + 800d1b4: bdf0 pop {r4, r5, r6, r7, pc} -0800d1b2 : +0800d1b6 : * @brief Wait for Timeout (Time Delay) * @param millisec time delay value * @retval status code that indicates the execution status of the function. */ osStatus osDelay (uint32_t millisec) { - 800d1b2: b580 push {r7, lr} - 800d1b4: b084 sub sp, #16 - 800d1b6: af00 add r7, sp, #0 - 800d1b8: 6078 str r0, [r7, #4] + 800d1b6: b580 push {r7, lr} + 800d1b8: b084 sub sp, #16 + 800d1ba: af00 add r7, sp, #0 + 800d1bc: 6078 str r0, [r7, #4] #if INCLUDE_vTaskDelay TickType_t ticks = millisec / portTICK_PERIOD_MS; - 800d1ba: 687b ldr r3, [r7, #4] - 800d1bc: 60fb str r3, [r7, #12] + 800d1be: 687b ldr r3, [r7, #4] + 800d1c0: 60fb str r3, [r7, #12] vTaskDelay(ticks ? ticks : 1); /* Minimum delay = 1 tick */ - 800d1be: 68fb ldr r3, [r7, #12] - 800d1c0: 2b00 cmp r3, #0 - 800d1c2: d001 beq.n 800d1c8 - 800d1c4: 68fb ldr r3, [r7, #12] - 800d1c6: e000 b.n 800d1ca - 800d1c8: 2301 movs r3, #1 - 800d1ca: 4618 mov r0, r3 - 800d1cc: f001 fcea bl 800eba4 + 800d1c2: 68fb ldr r3, [r7, #12] + 800d1c4: 2b00 cmp r3, #0 + 800d1c6: d001 beq.n 800d1cc + 800d1c8: 68fb ldr r3, [r7, #12] + 800d1ca: e000 b.n 800d1ce + 800d1cc: 2301 movs r3, #1 + 800d1ce: 4618 mov r0, r3 + 800d1d0: f001 fcea bl 800eba8 return osOK; - 800d1d0: 2300 movs r3, #0 + 800d1d4: 2300 movs r3, #0 #else (void) millisec; return osErrorResource; #endif } - 800d1d2: 4618 mov r0, r3 - 800d1d4: 3710 adds r7, #16 - 800d1d6: 46bd mov sp, r7 - 800d1d8: bd80 pop {r7, pc} + 800d1d6: 4618 mov r0, r3 + 800d1d8: 3710 adds r7, #16 + 800d1da: 46bd mov sp, r7 + 800d1dc: bd80 pop {r7, pc} -0800d1da : +0800d1de : * @param mutex_def mutex definition referenced with \ref osMutex. * @retval mutex ID for reference by other functions or NULL in case of error. * @note MUST REMAIN UNCHANGED: \b osMutexCreate shall be consistent in every CMSIS-RTOS. */ osMutexId osMutexCreate (const osMutexDef_t *mutex_def) { - 800d1da: b580 push {r7, lr} - 800d1dc: b082 sub sp, #8 - 800d1de: af00 add r7, sp, #0 - 800d1e0: 6078 str r0, [r7, #4] + 800d1de: b580 push {r7, lr} + 800d1e0: b082 sub sp, #8 + 800d1e2: af00 add r7, sp, #0 + 800d1e4: 6078 str r0, [r7, #4] #if ( configUSE_MUTEXES == 1) #if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) if (mutex_def->controlblock != NULL) { - 800d1e2: 687b ldr r3, [r7, #4] - 800d1e4: 685b ldr r3, [r3, #4] - 800d1e6: 2b00 cmp r3, #0 - 800d1e8: d007 beq.n 800d1fa + 800d1e6: 687b ldr r3, [r7, #4] + 800d1e8: 685b ldr r3, [r3, #4] + 800d1ea: 2b00 cmp r3, #0 + 800d1ec: d007 beq.n 800d1fe return xSemaphoreCreateMutexStatic( mutex_def->controlblock ); - 800d1ea: 687b ldr r3, [r7, #4] - 800d1ec: 685b ldr r3, [r3, #4] - 800d1ee: 4619 mov r1, r3 - 800d1f0: 2001 movs r0, #1 - 800d1f2: f000 fc5e bl 800dab2 - 800d1f6: 4603 mov r3, r0 - 800d1f8: e003 b.n 800d202 + 800d1ee: 687b ldr r3, [r7, #4] + 800d1f0: 685b ldr r3, [r3, #4] + 800d1f2: 4619 mov r1, r3 + 800d1f4: 2001 movs r0, #1 + 800d1f6: f000 fc5e bl 800dab6 + 800d1fa: 4603 mov r3, r0 + 800d1fc: e003 b.n 800d206 } else { return xSemaphoreCreateMutex(); - 800d1fa: 2001 movs r0, #1 - 800d1fc: f000 fc41 bl 800da82 - 800d200: 4603 mov r3, r0 + 800d1fe: 2001 movs r0, #1 + 800d200: f000 fc41 bl 800da86 + 800d204: 4603 mov r3, r0 return xSemaphoreCreateMutex(); #endif #else return NULL; #endif } - 800d202: 4618 mov r0, r3 - 800d204: 3708 adds r7, #8 - 800d206: 46bd mov sp, r7 - 800d208: bd80 pop {r7, pc} + 800d206: 4618 mov r0, r3 + 800d208: 3708 adds r7, #8 + 800d20a: 46bd mov sp, r7 + 800d20c: bd80 pop {r7, pc} ... -0800d20c : +0800d210 : * @param millisec timeout value or 0 in case of no time-out. * @retval status code that indicates the execution status of the function. * @note MUST REMAIN UNCHANGED: \b osMutexWait shall be consistent in every CMSIS-RTOS. */ osStatus osMutexWait (osMutexId mutex_id, uint32_t millisec) { - 800d20c: b580 push {r7, lr} - 800d20e: b084 sub sp, #16 - 800d210: af00 add r7, sp, #0 - 800d212: 6078 str r0, [r7, #4] - 800d214: 6039 str r1, [r7, #0] + 800d210: b580 push {r7, lr} + 800d212: b084 sub sp, #16 + 800d214: af00 add r7, sp, #0 + 800d216: 6078 str r0, [r7, #4] + 800d218: 6039 str r1, [r7, #0] TickType_t ticks; portBASE_TYPE taskWoken = pdFALSE; - 800d216: 2300 movs r3, #0 - 800d218: 60bb str r3, [r7, #8] + 800d21a: 2300 movs r3, #0 + 800d21c: 60bb str r3, [r7, #8] if (mutex_id == NULL) { - 800d21a: 687b ldr r3, [r7, #4] - 800d21c: 2b00 cmp r3, #0 - 800d21e: d101 bne.n 800d224 + 800d21e: 687b ldr r3, [r7, #4] + 800d220: 2b00 cmp r3, #0 + 800d222: d101 bne.n 800d228 return osErrorParameter; - 800d220: 2380 movs r3, #128 ; 0x80 - 800d222: e03a b.n 800d29a + 800d224: 2380 movs r3, #128 ; 0x80 + 800d226: e03a b.n 800d29e } ticks = 0; - 800d224: 2300 movs r3, #0 - 800d226: 60fb str r3, [r7, #12] + 800d228: 2300 movs r3, #0 + 800d22a: 60fb str r3, [r7, #12] if (millisec == osWaitForever) { - 800d228: 683b ldr r3, [r7, #0] - 800d22a: f1b3 3fff cmp.w r3, #4294967295 - 800d22e: d103 bne.n 800d238 + 800d22c: 683b ldr r3, [r7, #0] + 800d22e: f1b3 3fff cmp.w r3, #4294967295 + 800d232: d103 bne.n 800d23c ticks = portMAX_DELAY; - 800d230: f04f 33ff mov.w r3, #4294967295 - 800d234: 60fb str r3, [r7, #12] - 800d236: e009 b.n 800d24c + 800d234: f04f 33ff mov.w r3, #4294967295 + 800d238: 60fb str r3, [r7, #12] + 800d23a: e009 b.n 800d250 } else if (millisec != 0) { - 800d238: 683b ldr r3, [r7, #0] - 800d23a: 2b00 cmp r3, #0 - 800d23c: d006 beq.n 800d24c + 800d23c: 683b ldr r3, [r7, #0] + 800d23e: 2b00 cmp r3, #0 + 800d240: d006 beq.n 800d250 ticks = millisec / portTICK_PERIOD_MS; - 800d23e: 683b ldr r3, [r7, #0] - 800d240: 60fb str r3, [r7, #12] + 800d242: 683b ldr r3, [r7, #0] + 800d244: 60fb str r3, [r7, #12] if (ticks == 0) { - 800d242: 68fb ldr r3, [r7, #12] - 800d244: 2b00 cmp r3, #0 - 800d246: d101 bne.n 800d24c + 800d246: 68fb ldr r3, [r7, #12] + 800d248: 2b00 cmp r3, #0 + 800d24a: d101 bne.n 800d250 ticks = 1; - 800d248: 2301 movs r3, #1 - 800d24a: 60fb str r3, [r7, #12] + 800d24c: 2301 movs r3, #1 + 800d24e: 60fb str r3, [r7, #12] } } if (inHandlerMode()) { - 800d24c: f7ff ff3c bl 800d0c8 - 800d250: 4603 mov r3, r0 - 800d252: 2b00 cmp r3, #0 - 800d254: d017 beq.n 800d286 + 800d250: f7ff ff3c bl 800d0cc + 800d254: 4603 mov r3, r0 + 800d256: 2b00 cmp r3, #0 + 800d258: d017 beq.n 800d28a if (xSemaphoreTakeFromISR(mutex_id, &taskWoken) != pdTRUE) { - 800d256: f107 0308 add.w r3, r7, #8 - 800d25a: 461a mov r2, r3 - 800d25c: 2100 movs r1, #0 - 800d25e: 6878 ldr r0, [r7, #4] - 800d260: f001 f8d2 bl 800e408 - 800d264: 4603 mov r3, r0 - 800d266: 2b01 cmp r3, #1 - 800d268: d001 beq.n 800d26e + 800d25a: f107 0308 add.w r3, r7, #8 + 800d25e: 461a mov r2, r3 + 800d260: 2100 movs r1, #0 + 800d262: 6878 ldr r0, [r7, #4] + 800d264: f001 f8d2 bl 800e40c + 800d268: 4603 mov r3, r0 + 800d26a: 2b01 cmp r3, #1 + 800d26c: d001 beq.n 800d272 return osErrorOS; - 800d26a: 23ff movs r3, #255 ; 0xff - 800d26c: e015 b.n 800d29a + 800d26e: 23ff movs r3, #255 ; 0xff + 800d270: e015 b.n 800d29e } portEND_SWITCHING_ISR(taskWoken); - 800d26e: 68bb ldr r3, [r7, #8] - 800d270: 2b00 cmp r3, #0 - 800d272: d011 beq.n 800d298 - 800d274: 4b0b ldr r3, [pc, #44] ; (800d2a4 ) - 800d276: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800d27a: 601a str r2, [r3, #0] - 800d27c: f3bf 8f4f dsb sy - 800d280: f3bf 8f6f isb sy - 800d284: e008 b.n 800d298 + 800d272: 68bb ldr r3, [r7, #8] + 800d274: 2b00 cmp r3, #0 + 800d276: d011 beq.n 800d29c + 800d278: 4b0b ldr r3, [pc, #44] ; (800d2a8 ) + 800d27a: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800d27e: 601a str r2, [r3, #0] + 800d280: f3bf 8f4f dsb sy + 800d284: f3bf 8f6f isb sy + 800d288: e008 b.n 800d29c } else if (xSemaphoreTake(mutex_id, ticks) != pdTRUE) { - 800d286: 68f9 ldr r1, [r7, #12] - 800d288: 6878 ldr r0, [r7, #4] - 800d28a: f000 ffad bl 800e1e8 - 800d28e: 4603 mov r3, r0 - 800d290: 2b01 cmp r3, #1 - 800d292: d001 beq.n 800d298 + 800d28a: 68f9 ldr r1, [r7, #12] + 800d28c: 6878 ldr r0, [r7, #4] + 800d28e: f000 ffad bl 800e1ec + 800d292: 4603 mov r3, r0 + 800d294: 2b01 cmp r3, #1 + 800d296: d001 beq.n 800d29c return osErrorOS; - 800d294: 23ff movs r3, #255 ; 0xff - 800d296: e000 b.n 800d29a + 800d298: 23ff movs r3, #255 ; 0xff + 800d29a: e000 b.n 800d29e } return osOK; - 800d298: 2300 movs r3, #0 + 800d29c: 2300 movs r3, #0 } - 800d29a: 4618 mov r0, r3 - 800d29c: 3710 adds r7, #16 - 800d29e: 46bd mov sp, r7 - 800d2a0: bd80 pop {r7, pc} - 800d2a2: bf00 nop - 800d2a4: e000ed04 .word 0xe000ed04 + 800d29e: 4618 mov r0, r3 + 800d2a0: 3710 adds r7, #16 + 800d2a2: 46bd mov sp, r7 + 800d2a4: bd80 pop {r7, pc} + 800d2a6: bf00 nop + 800d2a8: e000ed04 .word 0xe000ed04 -0800d2a8 : +0800d2ac : * @param mutex_id mutex ID obtained by \ref osMutexCreate. * @retval status code that indicates the execution status of the function. * @note MUST REMAIN UNCHANGED: \b osMutexRelease shall be consistent in every CMSIS-RTOS. */ osStatus osMutexRelease (osMutexId mutex_id) { - 800d2a8: b580 push {r7, lr} - 800d2aa: b084 sub sp, #16 - 800d2ac: af00 add r7, sp, #0 - 800d2ae: 6078 str r0, [r7, #4] + 800d2ac: b580 push {r7, lr} + 800d2ae: b084 sub sp, #16 + 800d2b0: af00 add r7, sp, #0 + 800d2b2: 6078 str r0, [r7, #4] osStatus result = osOK; - 800d2b0: 2300 movs r3, #0 - 800d2b2: 60fb str r3, [r7, #12] - portBASE_TYPE taskWoken = pdFALSE; 800d2b4: 2300 movs r3, #0 - 800d2b6: 60bb str r3, [r7, #8] + 800d2b6: 60fb str r3, [r7, #12] + portBASE_TYPE taskWoken = pdFALSE; + 800d2b8: 2300 movs r3, #0 + 800d2ba: 60bb str r3, [r7, #8] if (inHandlerMode()) { - 800d2b8: f7ff ff06 bl 800d0c8 - 800d2bc: 4603 mov r3, r0 - 800d2be: 2b00 cmp r3, #0 - 800d2c0: d016 beq.n 800d2f0 + 800d2bc: f7ff ff06 bl 800d0cc + 800d2c0: 4603 mov r3, r0 + 800d2c2: 2b00 cmp r3, #0 + 800d2c4: d016 beq.n 800d2f4 if (xSemaphoreGiveFromISR(mutex_id, &taskWoken) != pdTRUE) { - 800d2c2: f107 0308 add.w r3, r7, #8 - 800d2c6: 4619 mov r1, r3 - 800d2c8: 6878 ldr r0, [r7, #4] - 800d2ca: f000 fe19 bl 800df00 - 800d2ce: 4603 mov r3, r0 - 800d2d0: 2b01 cmp r3, #1 - 800d2d2: d001 beq.n 800d2d8 + 800d2c6: f107 0308 add.w r3, r7, #8 + 800d2ca: 4619 mov r1, r3 + 800d2cc: 6878 ldr r0, [r7, #4] + 800d2ce: f000 fe19 bl 800df04 + 800d2d2: 4603 mov r3, r0 + 800d2d4: 2b01 cmp r3, #1 + 800d2d6: d001 beq.n 800d2dc return osErrorOS; - 800d2d4: 23ff movs r3, #255 ; 0xff - 800d2d6: e017 b.n 800d308 + 800d2d8: 23ff movs r3, #255 ; 0xff + 800d2da: e017 b.n 800d30c } portEND_SWITCHING_ISR(taskWoken); - 800d2d8: 68bb ldr r3, [r7, #8] - 800d2da: 2b00 cmp r3, #0 - 800d2dc: d013 beq.n 800d306 - 800d2de: 4b0c ldr r3, [pc, #48] ; (800d310 ) - 800d2e0: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800d2e4: 601a str r2, [r3, #0] - 800d2e6: f3bf 8f4f dsb sy - 800d2ea: f3bf 8f6f isb sy - 800d2ee: e00a b.n 800d306 + 800d2dc: 68bb ldr r3, [r7, #8] + 800d2de: 2b00 cmp r3, #0 + 800d2e0: d013 beq.n 800d30a + 800d2e2: 4b0c ldr r3, [pc, #48] ; (800d314 ) + 800d2e4: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800d2e8: 601a str r2, [r3, #0] + 800d2ea: f3bf 8f4f dsb sy + 800d2ee: f3bf 8f6f isb sy + 800d2f2: e00a b.n 800d30a } else if (xSemaphoreGive(mutex_id) != pdTRUE) - 800d2f0: 2300 movs r3, #0 - 800d2f2: 2200 movs r2, #0 - 800d2f4: 2100 movs r1, #0 - 800d2f6: 6878 ldr r0, [r7, #4] - 800d2f8: f000 fc64 bl 800dbc4 - 800d2fc: 4603 mov r3, r0 - 800d2fe: 2b01 cmp r3, #1 - 800d300: d001 beq.n 800d306 + 800d2f4: 2300 movs r3, #0 + 800d2f6: 2200 movs r2, #0 + 800d2f8: 2100 movs r1, #0 + 800d2fa: 6878 ldr r0, [r7, #4] + 800d2fc: f000 fc64 bl 800dbc8 + 800d300: 4603 mov r3, r0 + 800d302: 2b01 cmp r3, #1 + 800d304: d001 beq.n 800d30a { result = osErrorOS; - 800d302: 23ff movs r3, #255 ; 0xff - 800d304: 60fb str r3, [r7, #12] + 800d306: 23ff movs r3, #255 ; 0xff + 800d308: 60fb str r3, [r7, #12] } return result; - 800d306: 68fb ldr r3, [r7, #12] + 800d30a: 68fb ldr r3, [r7, #12] } - 800d308: 4618 mov r0, r3 - 800d30a: 3710 adds r7, #16 - 800d30c: 46bd mov sp, r7 - 800d30e: bd80 pop {r7, pc} - 800d310: e000ed04 .word 0xe000ed04 + 800d30c: 4618 mov r0, r3 + 800d30e: 3710 adds r7, #16 + 800d310: 46bd mov sp, r7 + 800d312: bd80 pop {r7, pc} + 800d314: e000ed04 .word 0xe000ed04 -0800d314 : +0800d318 : * @param count number of available resources. * @retval semaphore ID for reference by other functions or NULL in case of error. * @note MUST REMAIN UNCHANGED: \b osSemaphoreCreate shall be consistent in every CMSIS-RTOS. */ osSemaphoreId osSemaphoreCreate (const osSemaphoreDef_t *semaphore_def, int32_t count) { - 800d314: b580 push {r7, lr} - 800d316: b086 sub sp, #24 - 800d318: af02 add r7, sp, #8 - 800d31a: 6078 str r0, [r7, #4] - 800d31c: 6039 str r1, [r7, #0] + 800d318: b580 push {r7, lr} + 800d31a: b086 sub sp, #24 + 800d31c: af02 add r7, sp, #8 + 800d31e: 6078 str r0, [r7, #4] + 800d320: 6039 str r1, [r7, #0] #if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) osSemaphoreId sema; if (semaphore_def->controlblock != NULL){ - 800d31e: 687b ldr r3, [r7, #4] - 800d320: 685b ldr r3, [r3, #4] - 800d322: 2b00 cmp r3, #0 - 800d324: d017 beq.n 800d356 + 800d322: 687b ldr r3, [r7, #4] + 800d324: 685b ldr r3, [r3, #4] + 800d326: 2b00 cmp r3, #0 + 800d328: d017 beq.n 800d35a if (count == 1) { - 800d326: 683b ldr r3, [r7, #0] - 800d328: 2b01 cmp r3, #1 - 800d32a: d10b bne.n 800d344 + 800d32a: 683b ldr r3, [r7, #0] + 800d32c: 2b01 cmp r3, #1 + 800d32e: d10b bne.n 800d348 return xSemaphoreCreateBinaryStatic( semaphore_def->controlblock ); - 800d32c: 687b ldr r3, [r7, #4] - 800d32e: 685a ldr r2, [r3, #4] - 800d330: 2303 movs r3, #3 - 800d332: 9300 str r3, [sp, #0] - 800d334: 4613 mov r3, r2 - 800d336: 2200 movs r2, #0 - 800d338: 2100 movs r1, #0 - 800d33a: 2001 movs r0, #1 - 800d33c: f000 faaa bl 800d894 - 800d340: 4603 mov r3, r0 - 800d342: e023 b.n 800d38c + 800d330: 687b ldr r3, [r7, #4] + 800d332: 685a ldr r2, [r3, #4] + 800d334: 2303 movs r3, #3 + 800d336: 9300 str r3, [sp, #0] + 800d338: 4613 mov r3, r2 + 800d33a: 2200 movs r2, #0 + 800d33c: 2100 movs r1, #0 + 800d33e: 2001 movs r0, #1 + 800d340: f000 faaa bl 800d898 + 800d344: 4603 mov r3, r0 + 800d346: e023 b.n 800d390 } else { #if (configUSE_COUNTING_SEMAPHORES == 1 ) return xSemaphoreCreateCountingStatic( count, count, semaphore_def->controlblock ); - 800d344: 6838 ldr r0, [r7, #0] - 800d346: 6839 ldr r1, [r7, #0] - 800d348: 687b ldr r3, [r7, #4] - 800d34a: 685b ldr r3, [r3, #4] - 800d34c: 461a mov r2, r3 - 800d34e: f000 fbcb bl 800dae8 - 800d352: 4603 mov r3, r0 - 800d354: e01a b.n 800d38c + 800d348: 6838 ldr r0, [r7, #0] + 800d34a: 6839 ldr r1, [r7, #0] + 800d34c: 687b ldr r3, [r7, #4] + 800d34e: 685b ldr r3, [r3, #4] + 800d350: 461a mov r2, r3 + 800d352: f000 fbcb bl 800daec + 800d356: 4603 mov r3, r0 + 800d358: e01a b.n 800d390 return NULL; #endif } } else { if (count == 1) { - 800d356: 683b ldr r3, [r7, #0] - 800d358: 2b01 cmp r3, #1 - 800d35a: d110 bne.n 800d37e + 800d35a: 683b ldr r3, [r7, #0] + 800d35c: 2b01 cmp r3, #1 + 800d35e: d110 bne.n 800d382 vSemaphoreCreateBinary(sema); - 800d35c: 2203 movs r2, #3 - 800d35e: 2100 movs r1, #0 - 800d360: 2001 movs r0, #1 - 800d362: f000 fb14 bl 800d98e - 800d366: 60f8 str r0, [r7, #12] - 800d368: 68fb ldr r3, [r7, #12] - 800d36a: 2b00 cmp r3, #0 - 800d36c: d005 beq.n 800d37a - 800d36e: 2300 movs r3, #0 - 800d370: 2200 movs r2, #0 - 800d372: 2100 movs r1, #0 - 800d374: 68f8 ldr r0, [r7, #12] - 800d376: f000 fc25 bl 800dbc4 + 800d360: 2203 movs r2, #3 + 800d362: 2100 movs r1, #0 + 800d364: 2001 movs r0, #1 + 800d366: f000 fb14 bl 800d992 + 800d36a: 60f8 str r0, [r7, #12] + 800d36c: 68fb ldr r3, [r7, #12] + 800d36e: 2b00 cmp r3, #0 + 800d370: d005 beq.n 800d37e + 800d372: 2300 movs r3, #0 + 800d374: 2200 movs r2, #0 + 800d376: 2100 movs r1, #0 + 800d378: 68f8 ldr r0, [r7, #12] + 800d37a: f000 fc25 bl 800dbc8 return sema; - 800d37a: 68fb ldr r3, [r7, #12] - 800d37c: e006 b.n 800d38c + 800d37e: 68fb ldr r3, [r7, #12] + 800d380: e006 b.n 800d390 } else { #if (configUSE_COUNTING_SEMAPHORES == 1 ) return xSemaphoreCreateCounting(count, count); - 800d37e: 683b ldr r3, [r7, #0] - 800d380: 683a ldr r2, [r7, #0] - 800d382: 4611 mov r1, r2 - 800d384: 4618 mov r0, r3 - 800d386: f000 fbe8 bl 800db5a - 800d38a: 4603 mov r3, r0 + 800d382: 683b ldr r3, [r7, #0] + 800d384: 683a ldr r2, [r7, #0] + 800d386: 4611 mov r1, r2 + 800d388: 4618 mov r0, r3 + 800d38a: f000 fbe8 bl 800db5e + 800d38e: 4603 mov r3, r0 #else return NULL; #endif } #endif } - 800d38c: 4618 mov r0, r3 - 800d38e: 3710 adds r7, #16 - 800d390: 46bd mov sp, r7 - 800d392: bd80 pop {r7, pc} + 800d390: 4618 mov r0, r3 + 800d392: 3710 adds r7, #16 + 800d394: 46bd mov sp, r7 + 800d396: bd80 pop {r7, pc} -0800d394 : +0800d398 : * @param millisec timeout value or 0 in case of no time-out. * @retval number of available tokens, or -1 in case of incorrect parameters. * @note MUST REMAIN UNCHANGED: \b osSemaphoreWait shall be consistent in every CMSIS-RTOS. */ int32_t osSemaphoreWait (osSemaphoreId semaphore_id, uint32_t millisec) { - 800d394: b580 push {r7, lr} - 800d396: b084 sub sp, #16 - 800d398: af00 add r7, sp, #0 - 800d39a: 6078 str r0, [r7, #4] - 800d39c: 6039 str r1, [r7, #0] + 800d398: b580 push {r7, lr} + 800d39a: b084 sub sp, #16 + 800d39c: af00 add r7, sp, #0 + 800d39e: 6078 str r0, [r7, #4] + 800d3a0: 6039 str r1, [r7, #0] TickType_t ticks; portBASE_TYPE taskWoken = pdFALSE; - 800d39e: 2300 movs r3, #0 - 800d3a0: 60bb str r3, [r7, #8] + 800d3a2: 2300 movs r3, #0 + 800d3a4: 60bb str r3, [r7, #8] if (semaphore_id == NULL) { - 800d3a2: 687b ldr r3, [r7, #4] - 800d3a4: 2b00 cmp r3, #0 - 800d3a6: d101 bne.n 800d3ac + 800d3a6: 687b ldr r3, [r7, #4] + 800d3a8: 2b00 cmp r3, #0 + 800d3aa: d101 bne.n 800d3b0 return osErrorParameter; - 800d3a8: 2380 movs r3, #128 ; 0x80 - 800d3aa: e03a b.n 800d422 + 800d3ac: 2380 movs r3, #128 ; 0x80 + 800d3ae: e03a b.n 800d426 } ticks = 0; - 800d3ac: 2300 movs r3, #0 - 800d3ae: 60fb str r3, [r7, #12] + 800d3b0: 2300 movs r3, #0 + 800d3b2: 60fb str r3, [r7, #12] if (millisec == osWaitForever) { - 800d3b0: 683b ldr r3, [r7, #0] - 800d3b2: f1b3 3fff cmp.w r3, #4294967295 - 800d3b6: d103 bne.n 800d3c0 + 800d3b4: 683b ldr r3, [r7, #0] + 800d3b6: f1b3 3fff cmp.w r3, #4294967295 + 800d3ba: d103 bne.n 800d3c4 ticks = portMAX_DELAY; - 800d3b8: f04f 33ff mov.w r3, #4294967295 - 800d3bc: 60fb str r3, [r7, #12] - 800d3be: e009 b.n 800d3d4 + 800d3bc: f04f 33ff mov.w r3, #4294967295 + 800d3c0: 60fb str r3, [r7, #12] + 800d3c2: e009 b.n 800d3d8 } else if (millisec != 0) { - 800d3c0: 683b ldr r3, [r7, #0] - 800d3c2: 2b00 cmp r3, #0 - 800d3c4: d006 beq.n 800d3d4 + 800d3c4: 683b ldr r3, [r7, #0] + 800d3c6: 2b00 cmp r3, #0 + 800d3c8: d006 beq.n 800d3d8 ticks = millisec / portTICK_PERIOD_MS; - 800d3c6: 683b ldr r3, [r7, #0] - 800d3c8: 60fb str r3, [r7, #12] + 800d3ca: 683b ldr r3, [r7, #0] + 800d3cc: 60fb str r3, [r7, #12] if (ticks == 0) { - 800d3ca: 68fb ldr r3, [r7, #12] - 800d3cc: 2b00 cmp r3, #0 - 800d3ce: d101 bne.n 800d3d4 + 800d3ce: 68fb ldr r3, [r7, #12] + 800d3d0: 2b00 cmp r3, #0 + 800d3d2: d101 bne.n 800d3d8 ticks = 1; - 800d3d0: 2301 movs r3, #1 - 800d3d2: 60fb str r3, [r7, #12] + 800d3d4: 2301 movs r3, #1 + 800d3d6: 60fb str r3, [r7, #12] } } if (inHandlerMode()) { - 800d3d4: f7ff fe78 bl 800d0c8 - 800d3d8: 4603 mov r3, r0 - 800d3da: 2b00 cmp r3, #0 - 800d3dc: d017 beq.n 800d40e + 800d3d8: f7ff fe78 bl 800d0cc + 800d3dc: 4603 mov r3, r0 + 800d3de: 2b00 cmp r3, #0 + 800d3e0: d017 beq.n 800d412 if (xSemaphoreTakeFromISR(semaphore_id, &taskWoken) != pdTRUE) { - 800d3de: f107 0308 add.w r3, r7, #8 - 800d3e2: 461a mov r2, r3 - 800d3e4: 2100 movs r1, #0 - 800d3e6: 6878 ldr r0, [r7, #4] - 800d3e8: f001 f80e bl 800e408 - 800d3ec: 4603 mov r3, r0 - 800d3ee: 2b01 cmp r3, #1 - 800d3f0: d001 beq.n 800d3f6 + 800d3e2: f107 0308 add.w r3, r7, #8 + 800d3e6: 461a mov r2, r3 + 800d3e8: 2100 movs r1, #0 + 800d3ea: 6878 ldr r0, [r7, #4] + 800d3ec: f001 f80e bl 800e40c + 800d3f0: 4603 mov r3, r0 + 800d3f2: 2b01 cmp r3, #1 + 800d3f4: d001 beq.n 800d3fa return osErrorOS; - 800d3f2: 23ff movs r3, #255 ; 0xff - 800d3f4: e015 b.n 800d422 + 800d3f6: 23ff movs r3, #255 ; 0xff + 800d3f8: e015 b.n 800d426 } portEND_SWITCHING_ISR(taskWoken); - 800d3f6: 68bb ldr r3, [r7, #8] - 800d3f8: 2b00 cmp r3, #0 - 800d3fa: d011 beq.n 800d420 - 800d3fc: 4b0b ldr r3, [pc, #44] ; (800d42c ) - 800d3fe: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800d402: 601a str r2, [r3, #0] - 800d404: f3bf 8f4f dsb sy - 800d408: f3bf 8f6f isb sy - 800d40c: e008 b.n 800d420 + 800d3fa: 68bb ldr r3, [r7, #8] + 800d3fc: 2b00 cmp r3, #0 + 800d3fe: d011 beq.n 800d424 + 800d400: 4b0b ldr r3, [pc, #44] ; (800d430 ) + 800d402: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800d406: 601a str r2, [r3, #0] + 800d408: f3bf 8f4f dsb sy + 800d40c: f3bf 8f6f isb sy + 800d410: e008 b.n 800d424 } else if (xSemaphoreTake(semaphore_id, ticks) != pdTRUE) { - 800d40e: 68f9 ldr r1, [r7, #12] - 800d410: 6878 ldr r0, [r7, #4] - 800d412: f000 fee9 bl 800e1e8 - 800d416: 4603 mov r3, r0 - 800d418: 2b01 cmp r3, #1 - 800d41a: d001 beq.n 800d420 + 800d412: 68f9 ldr r1, [r7, #12] + 800d414: 6878 ldr r0, [r7, #4] + 800d416: f000 fee9 bl 800e1ec + 800d41a: 4603 mov r3, r0 + 800d41c: 2b01 cmp r3, #1 + 800d41e: d001 beq.n 800d424 return osErrorOS; - 800d41c: 23ff movs r3, #255 ; 0xff - 800d41e: e000 b.n 800d422 + 800d420: 23ff movs r3, #255 ; 0xff + 800d422: e000 b.n 800d426 } return osOK; - 800d420: 2300 movs r3, #0 + 800d424: 2300 movs r3, #0 } - 800d422: 4618 mov r0, r3 - 800d424: 3710 adds r7, #16 - 800d426: 46bd mov sp, r7 - 800d428: bd80 pop {r7, pc} - 800d42a: bf00 nop - 800d42c: e000ed04 .word 0xe000ed04 + 800d426: 4618 mov r0, r3 + 800d428: 3710 adds r7, #16 + 800d42a: 46bd mov sp, r7 + 800d42c: bd80 pop {r7, pc} + 800d42e: bf00 nop + 800d430: e000ed04 .word 0xe000ed04 -0800d430 : +0800d434 : * @param semaphore_id semaphore object referenced with \ref osSemaphore. * @retval status code that indicates the execution status of the function. * @note MUST REMAIN UNCHANGED: \b osSemaphoreRelease shall be consistent in every CMSIS-RTOS. */ osStatus osSemaphoreRelease (osSemaphoreId semaphore_id) { - 800d430: b580 push {r7, lr} - 800d432: b084 sub sp, #16 - 800d434: af00 add r7, sp, #0 - 800d436: 6078 str r0, [r7, #4] + 800d434: b580 push {r7, lr} + 800d436: b084 sub sp, #16 + 800d438: af00 add r7, sp, #0 + 800d43a: 6078 str r0, [r7, #4] osStatus result = osOK; - 800d438: 2300 movs r3, #0 - 800d43a: 60fb str r3, [r7, #12] - portBASE_TYPE taskWoken = pdFALSE; 800d43c: 2300 movs r3, #0 - 800d43e: 60bb str r3, [r7, #8] + 800d43e: 60fb str r3, [r7, #12] + portBASE_TYPE taskWoken = pdFALSE; + 800d440: 2300 movs r3, #0 + 800d442: 60bb str r3, [r7, #8] if (inHandlerMode()) { - 800d440: f7ff fe42 bl 800d0c8 - 800d444: 4603 mov r3, r0 - 800d446: 2b00 cmp r3, #0 - 800d448: d016 beq.n 800d478 + 800d444: f7ff fe42 bl 800d0cc + 800d448: 4603 mov r3, r0 + 800d44a: 2b00 cmp r3, #0 + 800d44c: d016 beq.n 800d47c if (xSemaphoreGiveFromISR(semaphore_id, &taskWoken) != pdTRUE) { - 800d44a: f107 0308 add.w r3, r7, #8 - 800d44e: 4619 mov r1, r3 - 800d450: 6878 ldr r0, [r7, #4] - 800d452: f000 fd55 bl 800df00 - 800d456: 4603 mov r3, r0 - 800d458: 2b01 cmp r3, #1 - 800d45a: d001 beq.n 800d460 + 800d44e: f107 0308 add.w r3, r7, #8 + 800d452: 4619 mov r1, r3 + 800d454: 6878 ldr r0, [r7, #4] + 800d456: f000 fd55 bl 800df04 + 800d45a: 4603 mov r3, r0 + 800d45c: 2b01 cmp r3, #1 + 800d45e: d001 beq.n 800d464 return osErrorOS; - 800d45c: 23ff movs r3, #255 ; 0xff - 800d45e: e017 b.n 800d490 + 800d460: 23ff movs r3, #255 ; 0xff + 800d462: e017 b.n 800d494 } portEND_SWITCHING_ISR(taskWoken); - 800d460: 68bb ldr r3, [r7, #8] - 800d462: 2b00 cmp r3, #0 - 800d464: d013 beq.n 800d48e - 800d466: 4b0c ldr r3, [pc, #48] ; (800d498 ) - 800d468: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800d46c: 601a str r2, [r3, #0] - 800d46e: f3bf 8f4f dsb sy - 800d472: f3bf 8f6f isb sy - 800d476: e00a b.n 800d48e + 800d464: 68bb ldr r3, [r7, #8] + 800d466: 2b00 cmp r3, #0 + 800d468: d013 beq.n 800d492 + 800d46a: 4b0c ldr r3, [pc, #48] ; (800d49c ) + 800d46c: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800d470: 601a str r2, [r3, #0] + 800d472: f3bf 8f4f dsb sy + 800d476: f3bf 8f6f isb sy + 800d47a: e00a b.n 800d492 } else { if (xSemaphoreGive(semaphore_id) != pdTRUE) { - 800d478: 2300 movs r3, #0 - 800d47a: 2200 movs r2, #0 - 800d47c: 2100 movs r1, #0 - 800d47e: 6878 ldr r0, [r7, #4] - 800d480: f000 fba0 bl 800dbc4 - 800d484: 4603 mov r3, r0 - 800d486: 2b01 cmp r3, #1 - 800d488: d001 beq.n 800d48e + 800d47c: 2300 movs r3, #0 + 800d47e: 2200 movs r2, #0 + 800d480: 2100 movs r1, #0 + 800d482: 6878 ldr r0, [r7, #4] + 800d484: f000 fba0 bl 800dbc8 + 800d488: 4603 mov r3, r0 + 800d48a: 2b01 cmp r3, #1 + 800d48c: d001 beq.n 800d492 result = osErrorOS; - 800d48a: 23ff movs r3, #255 ; 0xff - 800d48c: 60fb str r3, [r7, #12] + 800d48e: 23ff movs r3, #255 ; 0xff + 800d490: 60fb str r3, [r7, #12] } } return result; - 800d48e: 68fb ldr r3, [r7, #12] + 800d492: 68fb ldr r3, [r7, #12] } - 800d490: 4618 mov r0, r3 - 800d492: 3710 adds r7, #16 - 800d494: 46bd mov sp, r7 - 800d496: bd80 pop {r7, pc} - 800d498: e000ed04 .word 0xe000ed04 + 800d494: 4618 mov r0, r3 + 800d496: 3710 adds r7, #16 + 800d498: 46bd mov sp, r7 + 800d49a: bd80 pop {r7, pc} + 800d49c: e000ed04 .word 0xe000ed04 -0800d49c : +0800d4a0 : * @param thread_id thread ID (obtained by \ref osThreadCreate or \ref osThreadGetId) or NULL. * @retval message queue ID for reference by other functions or NULL in case of error. * @note MUST REMAIN UNCHANGED: \b osMessageCreate shall be consistent in every CMSIS-RTOS. */ osMessageQId osMessageCreate (const osMessageQDef_t *queue_def, osThreadId thread_id) { - 800d49c: b590 push {r4, r7, lr} - 800d49e: b085 sub sp, #20 - 800d4a0: af02 add r7, sp, #8 - 800d4a2: 6078 str r0, [r7, #4] - 800d4a4: 6039 str r1, [r7, #0] + 800d4a0: b590 push {r4, r7, lr} + 800d4a2: b085 sub sp, #20 + 800d4a4: af02 add r7, sp, #8 + 800d4a6: 6078 str r0, [r7, #4] + 800d4a8: 6039 str r1, [r7, #0] (void) thread_id; #if( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) if ((queue_def->buffer != NULL) && (queue_def->controlblock != NULL)) { - 800d4a6: 687b ldr r3, [r7, #4] - 800d4a8: 689b ldr r3, [r3, #8] - 800d4aa: 2b00 cmp r3, #0 - 800d4ac: d012 beq.n 800d4d4 - 800d4ae: 687b ldr r3, [r7, #4] - 800d4b0: 68db ldr r3, [r3, #12] - 800d4b2: 2b00 cmp r3, #0 - 800d4b4: d00e beq.n 800d4d4 + 800d4aa: 687b ldr r3, [r7, #4] + 800d4ac: 689b ldr r3, [r3, #8] + 800d4ae: 2b00 cmp r3, #0 + 800d4b0: d012 beq.n 800d4d8 + 800d4b2: 687b ldr r3, [r7, #4] + 800d4b4: 68db ldr r3, [r3, #12] + 800d4b6: 2b00 cmp r3, #0 + 800d4b8: d00e beq.n 800d4d8 return xQueueCreateStatic(queue_def->queue_sz, queue_def->item_sz, queue_def->buffer, queue_def->controlblock); - 800d4b6: 687b ldr r3, [r7, #4] - 800d4b8: 6818 ldr r0, [r3, #0] 800d4ba: 687b ldr r3, [r7, #4] - 800d4bc: 6859 ldr r1, [r3, #4] + 800d4bc: 6818 ldr r0, [r3, #0] 800d4be: 687b ldr r3, [r7, #4] - 800d4c0: 689a ldr r2, [r3, #8] + 800d4c0: 6859 ldr r1, [r3, #4] 800d4c2: 687b ldr r3, [r7, #4] - 800d4c4: 68dc ldr r4, [r3, #12] - 800d4c6: 2300 movs r3, #0 - 800d4c8: 9300 str r3, [sp, #0] - 800d4ca: 4623 mov r3, r4 - 800d4cc: f000 f9e2 bl 800d894 - 800d4d0: 4603 mov r3, r0 - 800d4d2: e008 b.n 800d4e6 + 800d4c4: 689a ldr r2, [r3, #8] + 800d4c6: 687b ldr r3, [r7, #4] + 800d4c8: 68dc ldr r4, [r3, #12] + 800d4ca: 2300 movs r3, #0 + 800d4cc: 9300 str r3, [sp, #0] + 800d4ce: 4623 mov r3, r4 + 800d4d0: f000 f9e2 bl 800d898 + 800d4d4: 4603 mov r3, r0 + 800d4d6: e008 b.n 800d4ea } else { return xQueueCreate(queue_def->queue_sz, queue_def->item_sz); - 800d4d4: 687b ldr r3, [r7, #4] - 800d4d6: 6818 ldr r0, [r3, #0] 800d4d8: 687b ldr r3, [r7, #4] - 800d4da: 685b ldr r3, [r3, #4] - 800d4dc: 2200 movs r2, #0 - 800d4de: 4619 mov r1, r3 - 800d4e0: f000 fa55 bl 800d98e - 800d4e4: 4603 mov r3, r0 + 800d4da: 6818 ldr r0, [r3, #0] + 800d4dc: 687b ldr r3, [r7, #4] + 800d4de: 685b ldr r3, [r3, #4] + 800d4e0: 2200 movs r2, #0 + 800d4e2: 4619 mov r1, r3 + 800d4e4: f000 fa55 bl 800d992 + 800d4e8: 4603 mov r3, r0 #elif ( configSUPPORT_STATIC_ALLOCATION == 1 ) return xQueueCreateStatic(queue_def->queue_sz, queue_def->item_sz, queue_def->buffer, queue_def->controlblock); #else return xQueueCreate(queue_def->queue_sz, queue_def->item_sz); #endif } - 800d4e6: 4618 mov r0, r3 - 800d4e8: 370c adds r7, #12 - 800d4ea: 46bd mov sp, r7 - 800d4ec: bd90 pop {r4, r7, pc} + 800d4ea: 4618 mov r0, r3 + 800d4ec: 370c adds r7, #12 + 800d4ee: 46bd mov sp, r7 + 800d4f0: bd90 pop {r4, r7, pc} ... -0800d4f0 : +0800d4f4 : * @param millisec timeout value or 0 in case of no time-out. * @retval status code that indicates the execution status of the function. * @note MUST REMAIN UNCHANGED: \b osMessagePut shall be consistent in every CMSIS-RTOS. */ osStatus osMessagePut (osMessageQId queue_id, uint32_t info, uint32_t millisec) { - 800d4f0: b580 push {r7, lr} - 800d4f2: b086 sub sp, #24 - 800d4f4: af00 add r7, sp, #0 - 800d4f6: 60f8 str r0, [r7, #12] - 800d4f8: 60b9 str r1, [r7, #8] - 800d4fa: 607a str r2, [r7, #4] + 800d4f4: b580 push {r7, lr} + 800d4f6: b086 sub sp, #24 + 800d4f8: af00 add r7, sp, #0 + 800d4fa: 60f8 str r0, [r7, #12] + 800d4fc: 60b9 str r1, [r7, #8] + 800d4fe: 607a str r2, [r7, #4] portBASE_TYPE taskWoken = pdFALSE; - 800d4fc: 2300 movs r3, #0 - 800d4fe: 613b str r3, [r7, #16] + 800d500: 2300 movs r3, #0 + 800d502: 613b str r3, [r7, #16] TickType_t ticks; ticks = millisec / portTICK_PERIOD_MS; - 800d500: 687b ldr r3, [r7, #4] - 800d502: 617b str r3, [r7, #20] + 800d504: 687b ldr r3, [r7, #4] + 800d506: 617b str r3, [r7, #20] if (ticks == 0) { - 800d504: 697b ldr r3, [r7, #20] - 800d506: 2b00 cmp r3, #0 - 800d508: d101 bne.n 800d50e + 800d508: 697b ldr r3, [r7, #20] + 800d50a: 2b00 cmp r3, #0 + 800d50c: d101 bne.n 800d512 ticks = 1; - 800d50a: 2301 movs r3, #1 - 800d50c: 617b str r3, [r7, #20] + 800d50e: 2301 movs r3, #1 + 800d510: 617b str r3, [r7, #20] } if (inHandlerMode()) { - 800d50e: f7ff fddb bl 800d0c8 - 800d512: 4603 mov r3, r0 - 800d514: 2b00 cmp r3, #0 - 800d516: d018 beq.n 800d54a + 800d512: f7ff fddb bl 800d0cc + 800d516: 4603 mov r3, r0 + 800d518: 2b00 cmp r3, #0 + 800d51a: d018 beq.n 800d54e if (xQueueSendFromISR(queue_id, &info, &taskWoken) != pdTRUE) { - 800d518: f107 0210 add.w r2, r7, #16 - 800d51c: f107 0108 add.w r1, r7, #8 - 800d520: 2300 movs r3, #0 - 800d522: 68f8 ldr r0, [r7, #12] - 800d524: f000 fc50 bl 800ddc8 - 800d528: 4603 mov r3, r0 - 800d52a: 2b01 cmp r3, #1 - 800d52c: d001 beq.n 800d532 + 800d51c: f107 0210 add.w r2, r7, #16 + 800d520: f107 0108 add.w r1, r7, #8 + 800d524: 2300 movs r3, #0 + 800d526: 68f8 ldr r0, [r7, #12] + 800d528: f000 fc50 bl 800ddcc + 800d52c: 4603 mov r3, r0 + 800d52e: 2b01 cmp r3, #1 + 800d530: d001 beq.n 800d536 return osErrorOS; - 800d52e: 23ff movs r3, #255 ; 0xff - 800d530: e018 b.n 800d564 + 800d532: 23ff movs r3, #255 ; 0xff + 800d534: e018 b.n 800d568 } portEND_SWITCHING_ISR(taskWoken); - 800d532: 693b ldr r3, [r7, #16] - 800d534: 2b00 cmp r3, #0 - 800d536: d014 beq.n 800d562 - 800d538: 4b0c ldr r3, [pc, #48] ; (800d56c ) - 800d53a: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800d53e: 601a str r2, [r3, #0] - 800d540: f3bf 8f4f dsb sy - 800d544: f3bf 8f6f isb sy - 800d548: e00b b.n 800d562 + 800d536: 693b ldr r3, [r7, #16] + 800d538: 2b00 cmp r3, #0 + 800d53a: d014 beq.n 800d566 + 800d53c: 4b0c ldr r3, [pc, #48] ; (800d570 ) + 800d53e: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800d542: 601a str r2, [r3, #0] + 800d544: f3bf 8f4f dsb sy + 800d548: f3bf 8f6f isb sy + 800d54c: e00b b.n 800d566 } else { if (xQueueSend(queue_id, &info, ticks) != pdTRUE) { - 800d54a: f107 0108 add.w r1, r7, #8 - 800d54e: 2300 movs r3, #0 - 800d550: 697a ldr r2, [r7, #20] - 800d552: 68f8 ldr r0, [r7, #12] - 800d554: f000 fb36 bl 800dbc4 - 800d558: 4603 mov r3, r0 - 800d55a: 2b01 cmp r3, #1 - 800d55c: d001 beq.n 800d562 + 800d54e: f107 0108 add.w r1, r7, #8 + 800d552: 2300 movs r3, #0 + 800d554: 697a ldr r2, [r7, #20] + 800d556: 68f8 ldr r0, [r7, #12] + 800d558: f000 fb36 bl 800dbc8 + 800d55c: 4603 mov r3, r0 + 800d55e: 2b01 cmp r3, #1 + 800d560: d001 beq.n 800d566 return osErrorOS; - 800d55e: 23ff movs r3, #255 ; 0xff - 800d560: e000 b.n 800d564 + 800d562: 23ff movs r3, #255 ; 0xff + 800d564: e000 b.n 800d568 } } return osOK; - 800d562: 2300 movs r3, #0 + 800d566: 2300 movs r3, #0 } - 800d564: 4618 mov r0, r3 - 800d566: 3718 adds r7, #24 - 800d568: 46bd mov sp, r7 - 800d56a: bd80 pop {r7, pc} - 800d56c: e000ed04 .word 0xe000ed04 + 800d568: 4618 mov r0, r3 + 800d56a: 3718 adds r7, #24 + 800d56c: 46bd mov sp, r7 + 800d56e: bd80 pop {r7, pc} + 800d570: e000ed04 .word 0xe000ed04 -0800d570 : +0800d574 : * @param millisec timeout value or 0 in case of no time-out. * @retval event information that includes status code. * @note MUST REMAIN UNCHANGED: \b osMessageGet shall be consistent in every CMSIS-RTOS. */ osEvent osMessageGet (osMessageQId queue_id, uint32_t millisec) { - 800d570: b590 push {r4, r7, lr} - 800d572: b08b sub sp, #44 ; 0x2c - 800d574: af00 add r7, sp, #0 - 800d576: 60f8 str r0, [r7, #12] - 800d578: 60b9 str r1, [r7, #8] - 800d57a: 607a str r2, [r7, #4] + 800d574: b590 push {r4, r7, lr} + 800d576: b08b sub sp, #44 ; 0x2c + 800d578: af00 add r7, sp, #0 + 800d57a: 60f8 str r0, [r7, #12] + 800d57c: 60b9 str r1, [r7, #8] + 800d57e: 607a str r2, [r7, #4] portBASE_TYPE taskWoken; TickType_t ticks; osEvent event; event.def.message_id = queue_id; - 800d57c: 68bb ldr r3, [r7, #8] - 800d57e: 61fb str r3, [r7, #28] + 800d580: 68bb ldr r3, [r7, #8] + 800d582: 61fb str r3, [r7, #28] event.value.v = 0; - 800d580: 2300 movs r3, #0 - 800d582: 61bb str r3, [r7, #24] + 800d584: 2300 movs r3, #0 + 800d586: 61bb str r3, [r7, #24] if (queue_id == NULL) { - 800d584: 68bb ldr r3, [r7, #8] - 800d586: 2b00 cmp r3, #0 - 800d588: d10a bne.n 800d5a0 + 800d588: 68bb ldr r3, [r7, #8] + 800d58a: 2b00 cmp r3, #0 + 800d58c: d10a bne.n 800d5a4 event.status = osErrorParameter; - 800d58a: 2380 movs r3, #128 ; 0x80 - 800d58c: 617b str r3, [r7, #20] + 800d58e: 2380 movs r3, #128 ; 0x80 + 800d590: 617b str r3, [r7, #20] return event; - 800d58e: 68fb ldr r3, [r7, #12] - 800d590: 461c mov r4, r3 - 800d592: f107 0314 add.w r3, r7, #20 - 800d596: e893 0007 ldmia.w r3, {r0, r1, r2} - 800d59a: e884 0007 stmia.w r4, {r0, r1, r2} - 800d59e: e054 b.n 800d64a + 800d592: 68fb ldr r3, [r7, #12] + 800d594: 461c mov r4, r3 + 800d596: f107 0314 add.w r3, r7, #20 + 800d59a: e893 0007 ldmia.w r3, {r0, r1, r2} + 800d59e: e884 0007 stmia.w r4, {r0, r1, r2} + 800d5a2: e054 b.n 800d64e } taskWoken = pdFALSE; - 800d5a0: 2300 movs r3, #0 - 800d5a2: 623b str r3, [r7, #32] + 800d5a4: 2300 movs r3, #0 + 800d5a6: 623b str r3, [r7, #32] ticks = 0; - 800d5a4: 2300 movs r3, #0 - 800d5a6: 627b str r3, [r7, #36] ; 0x24 + 800d5a8: 2300 movs r3, #0 + 800d5aa: 627b str r3, [r7, #36] ; 0x24 if (millisec == osWaitForever) { - 800d5a8: 687b ldr r3, [r7, #4] - 800d5aa: f1b3 3fff cmp.w r3, #4294967295 - 800d5ae: d103 bne.n 800d5b8 + 800d5ac: 687b ldr r3, [r7, #4] + 800d5ae: f1b3 3fff cmp.w r3, #4294967295 + 800d5b2: d103 bne.n 800d5bc ticks = portMAX_DELAY; - 800d5b0: f04f 33ff mov.w r3, #4294967295 - 800d5b4: 627b str r3, [r7, #36] ; 0x24 - 800d5b6: e009 b.n 800d5cc + 800d5b4: f04f 33ff mov.w r3, #4294967295 + 800d5b8: 627b str r3, [r7, #36] ; 0x24 + 800d5ba: e009 b.n 800d5d0 } else if (millisec != 0) { - 800d5b8: 687b ldr r3, [r7, #4] - 800d5ba: 2b00 cmp r3, #0 - 800d5bc: d006 beq.n 800d5cc + 800d5bc: 687b ldr r3, [r7, #4] + 800d5be: 2b00 cmp r3, #0 + 800d5c0: d006 beq.n 800d5d0 ticks = millisec / portTICK_PERIOD_MS; - 800d5be: 687b ldr r3, [r7, #4] - 800d5c0: 627b str r3, [r7, #36] ; 0x24 + 800d5c2: 687b ldr r3, [r7, #4] + 800d5c4: 627b str r3, [r7, #36] ; 0x24 if (ticks == 0) { - 800d5c2: 6a7b ldr r3, [r7, #36] ; 0x24 - 800d5c4: 2b00 cmp r3, #0 - 800d5c6: d101 bne.n 800d5cc + 800d5c6: 6a7b ldr r3, [r7, #36] ; 0x24 + 800d5c8: 2b00 cmp r3, #0 + 800d5ca: d101 bne.n 800d5d0 ticks = 1; - 800d5c8: 2301 movs r3, #1 - 800d5ca: 627b str r3, [r7, #36] ; 0x24 + 800d5cc: 2301 movs r3, #1 + 800d5ce: 627b str r3, [r7, #36] ; 0x24 } } if (inHandlerMode()) { - 800d5cc: f7ff fd7c bl 800d0c8 - 800d5d0: 4603 mov r3, r0 - 800d5d2: 2b00 cmp r3, #0 - 800d5d4: d01c beq.n 800d610 + 800d5d0: f7ff fd7c bl 800d0cc + 800d5d4: 4603 mov r3, r0 + 800d5d6: 2b00 cmp r3, #0 + 800d5d8: d01c beq.n 800d614 if (xQueueReceiveFromISR(queue_id, &event.value.v, &taskWoken) == pdTRUE) { - 800d5d6: f107 0220 add.w r2, r7, #32 - 800d5da: f107 0314 add.w r3, r7, #20 - 800d5de: 3304 adds r3, #4 - 800d5e0: 4619 mov r1, r3 - 800d5e2: 68b8 ldr r0, [r7, #8] - 800d5e4: f000 ff10 bl 800e408 - 800d5e8: 4603 mov r3, r0 - 800d5ea: 2b01 cmp r3, #1 - 800d5ec: d102 bne.n 800d5f4 + 800d5da: f107 0220 add.w r2, r7, #32 + 800d5de: f107 0314 add.w r3, r7, #20 + 800d5e2: 3304 adds r3, #4 + 800d5e4: 4619 mov r1, r3 + 800d5e6: 68b8 ldr r0, [r7, #8] + 800d5e8: f000 ff10 bl 800e40c + 800d5ec: 4603 mov r3, r0 + 800d5ee: 2b01 cmp r3, #1 + 800d5f0: d102 bne.n 800d5f8 /* We have mail */ event.status = osEventMessage; - 800d5ee: 2310 movs r3, #16 - 800d5f0: 617b str r3, [r7, #20] - 800d5f2: e001 b.n 800d5f8 + 800d5f2: 2310 movs r3, #16 + 800d5f4: 617b str r3, [r7, #20] + 800d5f6: e001 b.n 800d5fc } else { event.status = osOK; - 800d5f4: 2300 movs r3, #0 - 800d5f6: 617b str r3, [r7, #20] + 800d5f8: 2300 movs r3, #0 + 800d5fa: 617b str r3, [r7, #20] } portEND_SWITCHING_ISR(taskWoken); - 800d5f8: 6a3b ldr r3, [r7, #32] - 800d5fa: 2b00 cmp r3, #0 - 800d5fc: d01d beq.n 800d63a - 800d5fe: 4b15 ldr r3, [pc, #84] ; (800d654 ) - 800d600: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800d604: 601a str r2, [r3, #0] - 800d606: f3bf 8f4f dsb sy - 800d60a: f3bf 8f6f isb sy - 800d60e: e014 b.n 800d63a + 800d5fc: 6a3b ldr r3, [r7, #32] + 800d5fe: 2b00 cmp r3, #0 + 800d600: d01d beq.n 800d63e + 800d602: 4b15 ldr r3, [pc, #84] ; (800d658 ) + 800d604: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800d608: 601a str r2, [r3, #0] + 800d60a: f3bf 8f4f dsb sy + 800d60e: f3bf 8f6f isb sy + 800d612: e014 b.n 800d63e } else { if (xQueueReceive(queue_id, &event.value.v, ticks) == pdTRUE) { - 800d610: f107 0314 add.w r3, r7, #20 - 800d614: 3304 adds r3, #4 - 800d616: 6a7a ldr r2, [r7, #36] ; 0x24 - 800d618: 4619 mov r1, r3 - 800d61a: 68b8 ldr r0, [r7, #8] - 800d61c: f000 fd02 bl 800e024 - 800d620: 4603 mov r3, r0 - 800d622: 2b01 cmp r3, #1 - 800d624: d102 bne.n 800d62c + 800d614: f107 0314 add.w r3, r7, #20 + 800d618: 3304 adds r3, #4 + 800d61a: 6a7a ldr r2, [r7, #36] ; 0x24 + 800d61c: 4619 mov r1, r3 + 800d61e: 68b8 ldr r0, [r7, #8] + 800d620: f000 fd02 bl 800e028 + 800d624: 4603 mov r3, r0 + 800d626: 2b01 cmp r3, #1 + 800d628: d102 bne.n 800d630 /* We have mail */ event.status = osEventMessage; - 800d626: 2310 movs r3, #16 - 800d628: 617b str r3, [r7, #20] - 800d62a: e006 b.n 800d63a + 800d62a: 2310 movs r3, #16 + 800d62c: 617b str r3, [r7, #20] + 800d62e: e006 b.n 800d63e } else { event.status = (ticks == 0) ? osOK : osEventTimeout; - 800d62c: 6a7b ldr r3, [r7, #36] ; 0x24 - 800d62e: 2b00 cmp r3, #0 - 800d630: d101 bne.n 800d636 - 800d632: 2300 movs r3, #0 - 800d634: e000 b.n 800d638 - 800d636: 2340 movs r3, #64 ; 0x40 - 800d638: 617b str r3, [r7, #20] + 800d630: 6a7b ldr r3, [r7, #36] ; 0x24 + 800d632: 2b00 cmp r3, #0 + 800d634: d101 bne.n 800d63a + 800d636: 2300 movs r3, #0 + 800d638: e000 b.n 800d63c + 800d63a: 2340 movs r3, #64 ; 0x40 + 800d63c: 617b str r3, [r7, #20] } } return event; - 800d63a: 68fb ldr r3, [r7, #12] - 800d63c: 461c mov r4, r3 - 800d63e: f107 0314 add.w r3, r7, #20 - 800d642: e893 0007 ldmia.w r3, {r0, r1, r2} - 800d646: e884 0007 stmia.w r4, {r0, r1, r2} -} - 800d64a: 68f8 ldr r0, [r7, #12] - 800d64c: 372c adds r7, #44 ; 0x2c - 800d64e: 46bd mov sp, r7 - 800d650: bd90 pop {r4, r7, pc} - 800d652: bf00 nop - 800d654: e000ed04 .word 0xe000ed04 - -0800d658 : + 800d63e: 68fb ldr r3, [r7, #12] + 800d640: 461c mov r4, r3 + 800d642: f107 0314 add.w r3, r7, #20 + 800d646: e893 0007 ldmia.w r3, {r0, r1, r2} + 800d64a: e884 0007 stmia.w r4, {r0, r1, r2} +} + 800d64e: 68f8 ldr r0, [r7, #12] + 800d650: 372c adds r7, #44 ; 0x2c + 800d652: 46bd mov sp, r7 + 800d654: bd90 pop {r4, r7, pc} + 800d656: bf00 nop + 800d658: e000ed04 .word 0xe000ed04 + +0800d65c : /*----------------------------------------------------------- * PUBLIC LIST API documented in list.h *----------------------------------------------------------*/ void vListInitialise( List_t * const pxList ) { - 800d658: b480 push {r7} - 800d65a: b083 sub sp, #12 - 800d65c: af00 add r7, sp, #0 - 800d65e: 6078 str r0, [r7, #4] + 800d65c: b480 push {r7} + 800d65e: b083 sub sp, #12 + 800d660: af00 add r7, sp, #0 + 800d662: 6078 str r0, [r7, #4] /* The list structure contains a list item which is used to mark the end of the list. To initialise the list the list end is inserted as the only list entry. */ pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ - 800d660: 687b ldr r3, [r7, #4] - 800d662: f103 0208 add.w r2, r3, #8 - 800d666: 687b ldr r3, [r7, #4] - 800d668: 605a str r2, [r3, #4] + 800d664: 687b ldr r3, [r7, #4] + 800d666: f103 0208 add.w r2, r3, #8 + 800d66a: 687b ldr r3, [r7, #4] + 800d66c: 605a str r2, [r3, #4] /* The list end value is the highest possible value in the list to ensure it remains at the end of the list. */ pxList->xListEnd.xItemValue = portMAX_DELAY; - 800d66a: 687b ldr r3, [r7, #4] - 800d66c: f04f 32ff mov.w r2, #4294967295 - 800d670: 609a str r2, [r3, #8] + 800d66e: 687b ldr r3, [r7, #4] + 800d670: f04f 32ff mov.w r2, #4294967295 + 800d674: 609a str r2, [r3, #8] /* The list end next and previous pointers point to itself so we know when the list is empty. */ pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ - 800d672: 687b ldr r3, [r7, #4] - 800d674: f103 0208 add.w r2, r3, #8 - 800d678: 687b ldr r3, [r7, #4] - 800d67a: 60da str r2, [r3, #12] - pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ + 800d676: 687b ldr r3, [r7, #4] + 800d678: f103 0208 add.w r2, r3, #8 800d67c: 687b ldr r3, [r7, #4] - 800d67e: f103 0208 add.w r2, r3, #8 - 800d682: 687b ldr r3, [r7, #4] - 800d684: 611a str r2, [r3, #16] + 800d67e: 60da str r2, [r3, #12] + pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */ + 800d680: 687b ldr r3, [r7, #4] + 800d682: f103 0208 add.w r2, r3, #8 + 800d686: 687b ldr r3, [r7, #4] + 800d688: 611a str r2, [r3, #16] pxList->uxNumberOfItems = ( UBaseType_t ) 0U; - 800d686: 687b ldr r3, [r7, #4] - 800d688: 2200 movs r2, #0 - 800d68a: 601a str r2, [r3, #0] + 800d68a: 687b ldr r3, [r7, #4] + 800d68c: 2200 movs r2, #0 + 800d68e: 601a str r2, [r3, #0] /* Write known values into the list if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList ); listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList ); } - 800d68c: bf00 nop - 800d68e: 370c adds r7, #12 - 800d690: 46bd mov sp, r7 - 800d692: f85d 7b04 ldr.w r7, [sp], #4 - 800d696: 4770 bx lr + 800d690: bf00 nop + 800d692: 370c adds r7, #12 + 800d694: 46bd mov sp, r7 + 800d696: f85d 7b04 ldr.w r7, [sp], #4 + 800d69a: 4770 bx lr -0800d698 : +0800d69c : /*-----------------------------------------------------------*/ void vListInitialiseItem( ListItem_t * const pxItem ) { - 800d698: b480 push {r7} - 800d69a: b083 sub sp, #12 - 800d69c: af00 add r7, sp, #0 - 800d69e: 6078 str r0, [r7, #4] + 800d69c: b480 push {r7} + 800d69e: b083 sub sp, #12 + 800d6a0: af00 add r7, sp, #0 + 800d6a2: 6078 str r0, [r7, #4] /* Make sure the list item is not recorded as being on a list. */ pxItem->pxContainer = NULL; - 800d6a0: 687b ldr r3, [r7, #4] - 800d6a2: 2200 movs r2, #0 - 800d6a4: 611a str r2, [r3, #16] + 800d6a4: 687b ldr r3, [r7, #4] + 800d6a6: 2200 movs r2, #0 + 800d6a8: 611a str r2, [r3, #16] /* Write known values into the list item if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */ listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ); listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ); } - 800d6a6: bf00 nop - 800d6a8: 370c adds r7, #12 - 800d6aa: 46bd mov sp, r7 - 800d6ac: f85d 7b04 ldr.w r7, [sp], #4 - 800d6b0: 4770 bx lr + 800d6aa: bf00 nop + 800d6ac: 370c adds r7, #12 + 800d6ae: 46bd mov sp, r7 + 800d6b0: f85d 7b04 ldr.w r7, [sp], #4 + 800d6b4: 4770 bx lr -0800d6b2 : +0800d6b6 : /*-----------------------------------------------------------*/ void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem ) { - 800d6b2: b480 push {r7} - 800d6b4: b085 sub sp, #20 - 800d6b6: af00 add r7, sp, #0 - 800d6b8: 6078 str r0, [r7, #4] - 800d6ba: 6039 str r1, [r7, #0] + 800d6b6: b480 push {r7} + 800d6b8: b085 sub sp, #20 + 800d6ba: af00 add r7, sp, #0 + 800d6bc: 6078 str r0, [r7, #4] + 800d6be: 6039 str r1, [r7, #0] ListItem_t * const pxIndex = pxList->pxIndex; - 800d6bc: 687b ldr r3, [r7, #4] - 800d6be: 685b ldr r3, [r3, #4] - 800d6c0: 60fb str r3, [r7, #12] + 800d6c0: 687b ldr r3, [r7, #4] + 800d6c2: 685b ldr r3, [r3, #4] + 800d6c4: 60fb str r3, [r7, #12] listTEST_LIST_ITEM_INTEGRITY( pxNewListItem ); /* Insert a new list item into pxList, but rather than sort the list, makes the new list item the last item to be removed by a call to listGET_OWNER_OF_NEXT_ENTRY(). */ pxNewListItem->pxNext = pxIndex; - 800d6c2: 683b ldr r3, [r7, #0] - 800d6c4: 68fa ldr r2, [r7, #12] - 800d6c6: 605a str r2, [r3, #4] + 800d6c6: 683b ldr r3, [r7, #0] + 800d6c8: 68fa ldr r2, [r7, #12] + 800d6ca: 605a str r2, [r3, #4] pxNewListItem->pxPrevious = pxIndex->pxPrevious; - 800d6c8: 68fb ldr r3, [r7, #12] - 800d6ca: 689a ldr r2, [r3, #8] - 800d6cc: 683b ldr r3, [r7, #0] - 800d6ce: 609a str r2, [r3, #8] + 800d6cc: 68fb ldr r3, [r7, #12] + 800d6ce: 689a ldr r2, [r3, #8] + 800d6d0: 683b ldr r3, [r7, #0] + 800d6d2: 609a str r2, [r3, #8] /* Only used during decision coverage testing. */ mtCOVERAGE_TEST_DELAY(); pxIndex->pxPrevious->pxNext = pxNewListItem; - 800d6d0: 68fb ldr r3, [r7, #12] - 800d6d2: 689b ldr r3, [r3, #8] - 800d6d4: 683a ldr r2, [r7, #0] - 800d6d6: 605a str r2, [r3, #4] + 800d6d4: 68fb ldr r3, [r7, #12] + 800d6d6: 689b ldr r3, [r3, #8] + 800d6d8: 683a ldr r2, [r7, #0] + 800d6da: 605a str r2, [r3, #4] pxIndex->pxPrevious = pxNewListItem; - 800d6d8: 68fb ldr r3, [r7, #12] - 800d6da: 683a ldr r2, [r7, #0] - 800d6dc: 609a str r2, [r3, #8] + 800d6dc: 68fb ldr r3, [r7, #12] + 800d6de: 683a ldr r2, [r7, #0] + 800d6e0: 609a str r2, [r3, #8] /* Remember which list the item is in. */ pxNewListItem->pxContainer = pxList; - 800d6de: 683b ldr r3, [r7, #0] - 800d6e0: 687a ldr r2, [r7, #4] - 800d6e2: 611a str r2, [r3, #16] + 800d6e2: 683b ldr r3, [r7, #0] + 800d6e4: 687a ldr r2, [r7, #4] + 800d6e6: 611a str r2, [r3, #16] ( pxList->uxNumberOfItems )++; - 800d6e4: 687b ldr r3, [r7, #4] - 800d6e6: 681b ldr r3, [r3, #0] - 800d6e8: 1c5a adds r2, r3, #1 - 800d6ea: 687b ldr r3, [r7, #4] - 800d6ec: 601a str r2, [r3, #0] -} - 800d6ee: bf00 nop - 800d6f0: 3714 adds r7, #20 - 800d6f2: 46bd mov sp, r7 - 800d6f4: f85d 7b04 ldr.w r7, [sp], #4 - 800d6f8: 4770 bx lr - -0800d6fa : + 800d6e8: 687b ldr r3, [r7, #4] + 800d6ea: 681b ldr r3, [r3, #0] + 800d6ec: 1c5a adds r2, r3, #1 + 800d6ee: 687b ldr r3, [r7, #4] + 800d6f0: 601a str r2, [r3, #0] +} + 800d6f2: bf00 nop + 800d6f4: 3714 adds r7, #20 + 800d6f6: 46bd mov sp, r7 + 800d6f8: f85d 7b04 ldr.w r7, [sp], #4 + 800d6fc: 4770 bx lr + +0800d6fe : /*-----------------------------------------------------------*/ void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem ) { - 800d6fa: b480 push {r7} - 800d6fc: b085 sub sp, #20 - 800d6fe: af00 add r7, sp, #0 - 800d700: 6078 str r0, [r7, #4] - 800d702: 6039 str r1, [r7, #0] + 800d6fe: b480 push {r7} + 800d700: b085 sub sp, #20 + 800d702: af00 add r7, sp, #0 + 800d704: 6078 str r0, [r7, #4] + 800d706: 6039 str r1, [r7, #0] ListItem_t *pxIterator; const TickType_t xValueOfInsertion = pxNewListItem->xItemValue; - 800d704: 683b ldr r3, [r7, #0] - 800d706: 681b ldr r3, [r3, #0] - 800d708: 60bb str r3, [r7, #8] + 800d708: 683b ldr r3, [r7, #0] + 800d70a: 681b ldr r3, [r3, #0] + 800d70c: 60bb str r3, [r7, #8] new list item should be placed after it. This ensures that TCBs which are stored in ready lists (all of which have the same xItemValue value) get a share of the CPU. However, if the xItemValue is the same as the back marker the iteration loop below will not end. Therefore the value is checked first, and the algorithm slightly modified if necessary. */ if( xValueOfInsertion == portMAX_DELAY ) - 800d70a: 68bb ldr r3, [r7, #8] - 800d70c: f1b3 3fff cmp.w r3, #4294967295 - 800d710: d103 bne.n 800d71a + 800d70e: 68bb ldr r3, [r7, #8] + 800d710: f1b3 3fff cmp.w r3, #4294967295 + 800d714: d103 bne.n 800d71e { pxIterator = pxList->xListEnd.pxPrevious; - 800d712: 687b ldr r3, [r7, #4] - 800d714: 691b ldr r3, [r3, #16] - 800d716: 60fb str r3, [r7, #12] - 800d718: e00c b.n 800d734 + 800d716: 687b ldr r3, [r7, #4] + 800d718: 691b ldr r3, [r3, #16] + 800d71a: 60fb str r3, [r7, #12] + 800d71c: e00c b.n 800d738 4) Using a queue or semaphore before it has been initialised or before the scheduler has been started (are interrupts firing before vTaskStartScheduler() has been called?). **********************************************************************/ for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */ - 800d71a: 687b ldr r3, [r7, #4] - 800d71c: 3308 adds r3, #8 - 800d71e: 60fb str r3, [r7, #12] - 800d720: e002 b.n 800d728 - 800d722: 68fb ldr r3, [r7, #12] - 800d724: 685b ldr r3, [r3, #4] - 800d726: 60fb str r3, [r7, #12] - 800d728: 68fb ldr r3, [r7, #12] - 800d72a: 685b ldr r3, [r3, #4] - 800d72c: 681b ldr r3, [r3, #0] - 800d72e: 68ba ldr r2, [r7, #8] - 800d730: 429a cmp r2, r3 - 800d732: d2f6 bcs.n 800d722 + 800d71e: 687b ldr r3, [r7, #4] + 800d720: 3308 adds r3, #8 + 800d722: 60fb str r3, [r7, #12] + 800d724: e002 b.n 800d72c + 800d726: 68fb ldr r3, [r7, #12] + 800d728: 685b ldr r3, [r3, #4] + 800d72a: 60fb str r3, [r7, #12] + 800d72c: 68fb ldr r3, [r7, #12] + 800d72e: 685b ldr r3, [r3, #4] + 800d730: 681b ldr r3, [r3, #0] + 800d732: 68ba ldr r2, [r7, #8] + 800d734: 429a cmp r2, r3 + 800d736: d2f6 bcs.n 800d726 /* There is nothing to do here, just iterating to the wanted insertion position. */ } } pxNewListItem->pxNext = pxIterator->pxNext; - 800d734: 68fb ldr r3, [r7, #12] - 800d736: 685a ldr r2, [r3, #4] - 800d738: 683b ldr r3, [r7, #0] - 800d73a: 605a str r2, [r3, #4] - pxNewListItem->pxNext->pxPrevious = pxNewListItem; + 800d738: 68fb ldr r3, [r7, #12] + 800d73a: 685a ldr r2, [r3, #4] 800d73c: 683b ldr r3, [r7, #0] - 800d73e: 685b ldr r3, [r3, #4] - 800d740: 683a ldr r2, [r7, #0] - 800d742: 609a str r2, [r3, #8] + 800d73e: 605a str r2, [r3, #4] + pxNewListItem->pxNext->pxPrevious = pxNewListItem; + 800d740: 683b ldr r3, [r7, #0] + 800d742: 685b ldr r3, [r3, #4] + 800d744: 683a ldr r2, [r7, #0] + 800d746: 609a str r2, [r3, #8] pxNewListItem->pxPrevious = pxIterator; - 800d744: 683b ldr r3, [r7, #0] - 800d746: 68fa ldr r2, [r7, #12] - 800d748: 609a str r2, [r3, #8] + 800d748: 683b ldr r3, [r7, #0] + 800d74a: 68fa ldr r2, [r7, #12] + 800d74c: 609a str r2, [r3, #8] pxIterator->pxNext = pxNewListItem; - 800d74a: 68fb ldr r3, [r7, #12] - 800d74c: 683a ldr r2, [r7, #0] - 800d74e: 605a str r2, [r3, #4] + 800d74e: 68fb ldr r3, [r7, #12] + 800d750: 683a ldr r2, [r7, #0] + 800d752: 605a str r2, [r3, #4] /* Remember which list the item is in. This allows fast removal of the item later. */ pxNewListItem->pxContainer = pxList; - 800d750: 683b ldr r3, [r7, #0] - 800d752: 687a ldr r2, [r7, #4] - 800d754: 611a str r2, [r3, #16] + 800d754: 683b ldr r3, [r7, #0] + 800d756: 687a ldr r2, [r7, #4] + 800d758: 611a str r2, [r3, #16] ( pxList->uxNumberOfItems )++; - 800d756: 687b ldr r3, [r7, #4] - 800d758: 681b ldr r3, [r3, #0] - 800d75a: 1c5a adds r2, r3, #1 - 800d75c: 687b ldr r3, [r7, #4] - 800d75e: 601a str r2, [r3, #0] -} - 800d760: bf00 nop - 800d762: 3714 adds r7, #20 - 800d764: 46bd mov sp, r7 - 800d766: f85d 7b04 ldr.w r7, [sp], #4 - 800d76a: 4770 bx lr - -0800d76c : + 800d75a: 687b ldr r3, [r7, #4] + 800d75c: 681b ldr r3, [r3, #0] + 800d75e: 1c5a adds r2, r3, #1 + 800d760: 687b ldr r3, [r7, #4] + 800d762: 601a str r2, [r3, #0] +} + 800d764: bf00 nop + 800d766: 3714 adds r7, #20 + 800d768: 46bd mov sp, r7 + 800d76a: f85d 7b04 ldr.w r7, [sp], #4 + 800d76e: 4770 bx lr + +0800d770 : /*-----------------------------------------------------------*/ UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) { - 800d76c: b480 push {r7} - 800d76e: b085 sub sp, #20 - 800d770: af00 add r7, sp, #0 - 800d772: 6078 str r0, [r7, #4] + 800d770: b480 push {r7} + 800d772: b085 sub sp, #20 + 800d774: af00 add r7, sp, #0 + 800d776: 6078 str r0, [r7, #4] /* The list item knows which list it is in. Obtain the list from the list item. */ List_t * const pxList = pxItemToRemove->pxContainer; - 800d774: 687b ldr r3, [r7, #4] - 800d776: 691b ldr r3, [r3, #16] - 800d778: 60fb str r3, [r7, #12] + 800d778: 687b ldr r3, [r7, #4] + 800d77a: 691b ldr r3, [r3, #16] + 800d77c: 60fb str r3, [r7, #12] pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious; - 800d77a: 687b ldr r3, [r7, #4] - 800d77c: 685b ldr r3, [r3, #4] - 800d77e: 687a ldr r2, [r7, #4] - 800d780: 6892 ldr r2, [r2, #8] - 800d782: 609a str r2, [r3, #8] + 800d77e: 687b ldr r3, [r7, #4] + 800d780: 685b ldr r3, [r3, #4] + 800d782: 687a ldr r2, [r7, #4] + 800d784: 6892 ldr r2, [r2, #8] + 800d786: 609a str r2, [r3, #8] pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext; - 800d784: 687b ldr r3, [r7, #4] - 800d786: 689b ldr r3, [r3, #8] - 800d788: 687a ldr r2, [r7, #4] - 800d78a: 6852 ldr r2, [r2, #4] - 800d78c: 605a str r2, [r3, #4] + 800d788: 687b ldr r3, [r7, #4] + 800d78a: 689b ldr r3, [r3, #8] + 800d78c: 687a ldr r2, [r7, #4] + 800d78e: 6852 ldr r2, [r2, #4] + 800d790: 605a str r2, [r3, #4] /* Only used during decision coverage testing. */ mtCOVERAGE_TEST_DELAY(); /* Make sure the index is left pointing to a valid item. */ if( pxList->pxIndex == pxItemToRemove ) - 800d78e: 68fb ldr r3, [r7, #12] - 800d790: 685b ldr r3, [r3, #4] - 800d792: 687a ldr r2, [r7, #4] - 800d794: 429a cmp r2, r3 - 800d796: d103 bne.n 800d7a0 + 800d792: 68fb ldr r3, [r7, #12] + 800d794: 685b ldr r3, [r3, #4] + 800d796: 687a ldr r2, [r7, #4] + 800d798: 429a cmp r2, r3 + 800d79a: d103 bne.n 800d7a4 { pxList->pxIndex = pxItemToRemove->pxPrevious; - 800d798: 687b ldr r3, [r7, #4] - 800d79a: 689a ldr r2, [r3, #8] - 800d79c: 68fb ldr r3, [r7, #12] - 800d79e: 605a str r2, [r3, #4] + 800d79c: 687b ldr r3, [r7, #4] + 800d79e: 689a ldr r2, [r3, #8] + 800d7a0: 68fb ldr r3, [r7, #12] + 800d7a2: 605a str r2, [r3, #4] else { mtCOVERAGE_TEST_MARKER(); } pxItemToRemove->pxContainer = NULL; - 800d7a0: 687b ldr r3, [r7, #4] - 800d7a2: 2200 movs r2, #0 - 800d7a4: 611a str r2, [r3, #16] + 800d7a4: 687b ldr r3, [r7, #4] + 800d7a6: 2200 movs r2, #0 + 800d7a8: 611a str r2, [r3, #16] ( pxList->uxNumberOfItems )--; - 800d7a6: 68fb ldr r3, [r7, #12] - 800d7a8: 681b ldr r3, [r3, #0] - 800d7aa: 1e5a subs r2, r3, #1 - 800d7ac: 68fb ldr r3, [r7, #12] - 800d7ae: 601a str r2, [r3, #0] + 800d7aa: 68fb ldr r3, [r7, #12] + 800d7ac: 681b ldr r3, [r3, #0] + 800d7ae: 1e5a subs r2, r3, #1 + 800d7b0: 68fb ldr r3, [r7, #12] + 800d7b2: 601a str r2, [r3, #0] return pxList->uxNumberOfItems; - 800d7b0: 68fb ldr r3, [r7, #12] - 800d7b2: 681b ldr r3, [r3, #0] + 800d7b4: 68fb ldr r3, [r7, #12] + 800d7b6: 681b ldr r3, [r3, #0] } - 800d7b4: 4618 mov r0, r3 - 800d7b6: 3714 adds r7, #20 - 800d7b8: 46bd mov sp, r7 - 800d7ba: f85d 7b04 ldr.w r7, [sp], #4 - 800d7be: 4770 bx lr + 800d7b8: 4618 mov r0, r3 + 800d7ba: 3714 adds r7, #20 + 800d7bc: 46bd mov sp, r7 + 800d7be: f85d 7b04 ldr.w r7, [sp], #4 + 800d7c2: 4770 bx lr -0800d7c0 : +0800d7c4 : } \ taskEXIT_CRITICAL() /*-----------------------------------------------------------*/ BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue ) { - 800d7c0: b580 push {r7, lr} - 800d7c2: b084 sub sp, #16 - 800d7c4: af00 add r7, sp, #0 - 800d7c6: 6078 str r0, [r7, #4] - 800d7c8: 6039 str r1, [r7, #0] + 800d7c4: b580 push {r7, lr} + 800d7c6: b084 sub sp, #16 + 800d7c8: af00 add r7, sp, #0 + 800d7ca: 6078 str r0, [r7, #4] + 800d7cc: 6039 str r1, [r7, #0] Queue_t * const pxQueue = xQueue; - 800d7ca: 687b ldr r3, [r7, #4] - 800d7cc: 60fb str r3, [r7, #12] + 800d7ce: 687b ldr r3, [r7, #4] + 800d7d0: 60fb str r3, [r7, #12] configASSERT( pxQueue ); - 800d7ce: 68fb ldr r3, [r7, #12] - 800d7d0: 2b00 cmp r3, #0 - 800d7d2: d10b bne.n 800d7ec + 800d7d2: 68fb ldr r3, [r7, #12] + 800d7d4: 2b00 cmp r3, #0 + 800d7d6: d10b bne.n 800d7f0 portFORCE_INLINE static void vPortRaiseBASEPRI( void ) { uint32_t ulNewBASEPRI; __asm volatile - 800d7d4: f04f 0350 mov.w r3, #80 ; 0x50 - 800d7d8: b672 cpsid i - 800d7da: f383 8811 msr BASEPRI, r3 - 800d7de: f3bf 8f6f isb sy - 800d7e2: f3bf 8f4f dsb sy - 800d7e6: b662 cpsie i - 800d7e8: 60bb str r3, [r7, #8] - 800d7ea: e7fe b.n 800d7ea + 800d7d8: f04f 0350 mov.w r3, #80 ; 0x50 + 800d7dc: b672 cpsid i + 800d7de: f383 8811 msr BASEPRI, r3 + 800d7e2: f3bf 8f6f isb sy + 800d7e6: f3bf 8f4f dsb sy + 800d7ea: b662 cpsie i + 800d7ec: 60bb str r3, [r7, #8] + 800d7ee: e7fe b.n 800d7ee taskENTER_CRITICAL(); - 800d7ec: f002 f9a4 bl 800fb38 + 800d7f0: f002 f9aa bl 800fb48 { pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ - 800d7f0: 68fb ldr r3, [r7, #12] - 800d7f2: 681a ldr r2, [r3, #0] 800d7f4: 68fb ldr r3, [r7, #12] - 800d7f6: 6bdb ldr r3, [r3, #60] ; 0x3c - 800d7f8: 68f9 ldr r1, [r7, #12] - 800d7fa: 6c09 ldr r1, [r1, #64] ; 0x40 - 800d7fc: fb01 f303 mul.w r3, r1, r3 - 800d800: 441a add r2, r3 - 800d802: 68fb ldr r3, [r7, #12] - 800d804: 609a str r2, [r3, #8] - pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U; + 800d7f6: 681a ldr r2, [r3, #0] + 800d7f8: 68fb ldr r3, [r7, #12] + 800d7fa: 6bdb ldr r3, [r3, #60] ; 0x3c + 800d7fc: 68f9 ldr r1, [r7, #12] + 800d7fe: 6c09 ldr r1, [r1, #64] ; 0x40 + 800d800: fb01 f303 mul.w r3, r1, r3 + 800d804: 441a add r2, r3 800d806: 68fb ldr r3, [r7, #12] - 800d808: 2200 movs r2, #0 - 800d80a: 639a str r2, [r3, #56] ; 0x38 + 800d808: 609a str r2, [r3, #8] + pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U; + 800d80a: 68fb ldr r3, [r7, #12] + 800d80c: 2200 movs r2, #0 + 800d80e: 639a str r2, [r3, #56] ; 0x38 pxQueue->pcWriteTo = pxQueue->pcHead; - 800d80c: 68fb ldr r3, [r7, #12] - 800d80e: 681a ldr r2, [r3, #0] 800d810: 68fb ldr r3, [r7, #12] - 800d812: 605a str r2, [r3, #4] - pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ + 800d812: 681a ldr r2, [r3, #0] 800d814: 68fb ldr r3, [r7, #12] - 800d816: 681a ldr r2, [r3, #0] + 800d816: 605a str r2, [r3, #4] + pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ 800d818: 68fb ldr r3, [r7, #12] - 800d81a: 6bdb ldr r3, [r3, #60] ; 0x3c - 800d81c: 3b01 subs r3, #1 - 800d81e: 68f9 ldr r1, [r7, #12] - 800d820: 6c09 ldr r1, [r1, #64] ; 0x40 - 800d822: fb01 f303 mul.w r3, r1, r3 - 800d826: 441a add r2, r3 - 800d828: 68fb ldr r3, [r7, #12] - 800d82a: 60da str r2, [r3, #12] - pxQueue->cRxLock = queueUNLOCKED; + 800d81a: 681a ldr r2, [r3, #0] + 800d81c: 68fb ldr r3, [r7, #12] + 800d81e: 6bdb ldr r3, [r3, #60] ; 0x3c + 800d820: 3b01 subs r3, #1 + 800d822: 68f9 ldr r1, [r7, #12] + 800d824: 6c09 ldr r1, [r1, #64] ; 0x40 + 800d826: fb01 f303 mul.w r3, r1, r3 + 800d82a: 441a add r2, r3 800d82c: 68fb ldr r3, [r7, #12] - 800d82e: 22ff movs r2, #255 ; 0xff - 800d830: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800d82e: 60da str r2, [r3, #12] + pxQueue->cRxLock = queueUNLOCKED; + 800d830: 68fb ldr r3, [r7, #12] + 800d832: 22ff movs r2, #255 ; 0xff + 800d834: f883 2044 strb.w r2, [r3, #68] ; 0x44 pxQueue->cTxLock = queueUNLOCKED; - 800d834: 68fb ldr r3, [r7, #12] - 800d836: 22ff movs r2, #255 ; 0xff - 800d838: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800d838: 68fb ldr r3, [r7, #12] + 800d83a: 22ff movs r2, #255 ; 0xff + 800d83c: f883 2045 strb.w r2, [r3, #69] ; 0x45 if( xNewQueue == pdFALSE ) - 800d83c: 683b ldr r3, [r7, #0] - 800d83e: 2b00 cmp r3, #0 - 800d840: d114 bne.n 800d86c + 800d840: 683b ldr r3, [r7, #0] + 800d842: 2b00 cmp r3, #0 + 800d844: d114 bne.n 800d870 /* If there are tasks blocked waiting to read from the queue, then the tasks will remain blocked as after this function exits the queue will still be empty. If there are tasks blocked waiting to write to the queue, then one should be unblocked as after this function exits it will be possible to write to it. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - 800d842: 68fb ldr r3, [r7, #12] - 800d844: 691b ldr r3, [r3, #16] - 800d846: 2b00 cmp r3, #0 - 800d848: d01a beq.n 800d880 + 800d846: 68fb ldr r3, [r7, #12] + 800d848: 691b ldr r3, [r3, #16] + 800d84a: 2b00 cmp r3, #0 + 800d84c: d01a beq.n 800d884 { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 800d84a: 68fb ldr r3, [r7, #12] - 800d84c: 3310 adds r3, #16 - 800d84e: 4618 mov r0, r3 - 800d850: f001 fc70 bl 800f134 - 800d854: 4603 mov r3, r0 - 800d856: 2b00 cmp r3, #0 - 800d858: d012 beq.n 800d880 + 800d84e: 68fb ldr r3, [r7, #12] + 800d850: 3310 adds r3, #16 + 800d852: 4618 mov r0, r3 + 800d854: f001 fc70 bl 800f138 + 800d858: 4603 mov r3, r0 + 800d85a: 2b00 cmp r3, #0 + 800d85c: d012 beq.n 800d884 { queueYIELD_IF_USING_PREEMPTION(); - 800d85a: 4b0d ldr r3, [pc, #52] ; (800d890 ) - 800d85c: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800d860: 601a str r2, [r3, #0] - 800d862: f3bf 8f4f dsb sy - 800d866: f3bf 8f6f isb sy - 800d86a: e009 b.n 800d880 + 800d85e: 4b0d ldr r3, [pc, #52] ; (800d894 ) + 800d860: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800d864: 601a str r2, [r3, #0] + 800d866: f3bf 8f4f dsb sy + 800d86a: f3bf 8f6f isb sy + 800d86e: e009 b.n 800d884 } } else { /* Ensure the event queues start in the correct state. */ vListInitialise( &( pxQueue->xTasksWaitingToSend ) ); - 800d86c: 68fb ldr r3, [r7, #12] - 800d86e: 3310 adds r3, #16 - 800d870: 4618 mov r0, r3 - 800d872: f7ff fef1 bl 800d658 + 800d870: 68fb ldr r3, [r7, #12] + 800d872: 3310 adds r3, #16 + 800d874: 4618 mov r0, r3 + 800d876: f7ff fef1 bl 800d65c vListInitialise( &( pxQueue->xTasksWaitingToReceive ) ); - 800d876: 68fb ldr r3, [r7, #12] - 800d878: 3324 adds r3, #36 ; 0x24 - 800d87a: 4618 mov r0, r3 - 800d87c: f7ff feec bl 800d658 + 800d87a: 68fb ldr r3, [r7, #12] + 800d87c: 3324 adds r3, #36 ; 0x24 + 800d87e: 4618 mov r0, r3 + 800d880: f7ff feec bl 800d65c } } taskEXIT_CRITICAL(); - 800d880: f002 f98c bl 800fb9c + 800d884: f002 f992 bl 800fbac /* A value is returned for calling semantic consistency with previous versions. */ return pdPASS; - 800d884: 2301 movs r3, #1 + 800d888: 2301 movs r3, #1 } - 800d886: 4618 mov r0, r3 - 800d888: 3710 adds r7, #16 - 800d88a: 46bd mov sp, r7 - 800d88c: bd80 pop {r7, pc} - 800d88e: bf00 nop - 800d890: e000ed04 .word 0xe000ed04 + 800d88a: 4618 mov r0, r3 + 800d88c: 3710 adds r7, #16 + 800d88e: 46bd mov sp, r7 + 800d890: bd80 pop {r7, pc} + 800d892: bf00 nop + 800d894: e000ed04 .word 0xe000ed04 -0800d894 : +0800d898 : /*-----------------------------------------------------------*/ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType ) { - 800d894: b580 push {r7, lr} - 800d896: b08e sub sp, #56 ; 0x38 - 800d898: af02 add r7, sp, #8 - 800d89a: 60f8 str r0, [r7, #12] - 800d89c: 60b9 str r1, [r7, #8] - 800d89e: 607a str r2, [r7, #4] - 800d8a0: 603b str r3, [r7, #0] + 800d898: b580 push {r7, lr} + 800d89a: b08e sub sp, #56 ; 0x38 + 800d89c: af02 add r7, sp, #8 + 800d89e: 60f8 str r0, [r7, #12] + 800d8a0: 60b9 str r1, [r7, #8] + 800d8a2: 607a str r2, [r7, #4] + 800d8a4: 603b str r3, [r7, #0] Queue_t *pxNewQueue; configASSERT( uxQueueLength > ( UBaseType_t ) 0 ); - 800d8a2: 68fb ldr r3, [r7, #12] - 800d8a4: 2b00 cmp r3, #0 - 800d8a6: d10b bne.n 800d8c0 - 800d8a8: f04f 0350 mov.w r3, #80 ; 0x50 - 800d8ac: b672 cpsid i - 800d8ae: f383 8811 msr BASEPRI, r3 - 800d8b2: f3bf 8f6f isb sy - 800d8b6: f3bf 8f4f dsb sy - 800d8ba: b662 cpsie i - 800d8bc: 62bb str r3, [r7, #40] ; 0x28 - 800d8be: e7fe b.n 800d8be + 800d8a6: 68fb ldr r3, [r7, #12] + 800d8a8: 2b00 cmp r3, #0 + 800d8aa: d10b bne.n 800d8c4 + 800d8ac: f04f 0350 mov.w r3, #80 ; 0x50 + 800d8b0: b672 cpsid i + 800d8b2: f383 8811 msr BASEPRI, r3 + 800d8b6: f3bf 8f6f isb sy + 800d8ba: f3bf 8f4f dsb sy + 800d8be: b662 cpsie i + 800d8c0: 62bb str r3, [r7, #40] ; 0x28 + 800d8c2: e7fe b.n 800d8c2 /* The StaticQueue_t structure and the queue storage area must be supplied. */ configASSERT( pxStaticQueue != NULL ); - 800d8c0: 683b ldr r3, [r7, #0] - 800d8c2: 2b00 cmp r3, #0 - 800d8c4: d10b bne.n 800d8de - 800d8c6: f04f 0350 mov.w r3, #80 ; 0x50 - 800d8ca: b672 cpsid i - 800d8cc: f383 8811 msr BASEPRI, r3 - 800d8d0: f3bf 8f6f isb sy - 800d8d4: f3bf 8f4f dsb sy - 800d8d8: b662 cpsie i - 800d8da: 627b str r3, [r7, #36] ; 0x24 - 800d8dc: e7fe b.n 800d8dc + 800d8c4: 683b ldr r3, [r7, #0] + 800d8c6: 2b00 cmp r3, #0 + 800d8c8: d10b bne.n 800d8e2 + 800d8ca: f04f 0350 mov.w r3, #80 ; 0x50 + 800d8ce: b672 cpsid i + 800d8d0: f383 8811 msr BASEPRI, r3 + 800d8d4: f3bf 8f6f isb sy + 800d8d8: f3bf 8f4f dsb sy + 800d8dc: b662 cpsie i + 800d8de: 627b str r3, [r7, #36] ; 0x24 + 800d8e0: e7fe b.n 800d8e0 /* A queue storage area should be provided if the item size is not 0, and should not be provided if the item size is 0. */ configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) ); - 800d8de: 687b ldr r3, [r7, #4] - 800d8e0: 2b00 cmp r3, #0 - 800d8e2: d002 beq.n 800d8ea - 800d8e4: 68bb ldr r3, [r7, #8] - 800d8e6: 2b00 cmp r3, #0 - 800d8e8: d001 beq.n 800d8ee - 800d8ea: 2301 movs r3, #1 - 800d8ec: e000 b.n 800d8f0 - 800d8ee: 2300 movs r3, #0 - 800d8f0: 2b00 cmp r3, #0 - 800d8f2: d10b bne.n 800d90c - 800d8f4: f04f 0350 mov.w r3, #80 ; 0x50 - 800d8f8: b672 cpsid i - 800d8fa: f383 8811 msr BASEPRI, r3 - 800d8fe: f3bf 8f6f isb sy - 800d902: f3bf 8f4f dsb sy - 800d906: b662 cpsie i - 800d908: 623b str r3, [r7, #32] - 800d90a: e7fe b.n 800d90a + 800d8e2: 687b ldr r3, [r7, #4] + 800d8e4: 2b00 cmp r3, #0 + 800d8e6: d002 beq.n 800d8ee + 800d8e8: 68bb ldr r3, [r7, #8] + 800d8ea: 2b00 cmp r3, #0 + 800d8ec: d001 beq.n 800d8f2 + 800d8ee: 2301 movs r3, #1 + 800d8f0: e000 b.n 800d8f4 + 800d8f2: 2300 movs r3, #0 + 800d8f4: 2b00 cmp r3, #0 + 800d8f6: d10b bne.n 800d910 + 800d8f8: f04f 0350 mov.w r3, #80 ; 0x50 + 800d8fc: b672 cpsid i + 800d8fe: f383 8811 msr BASEPRI, r3 + 800d902: f3bf 8f6f isb sy + 800d906: f3bf 8f4f dsb sy + 800d90a: b662 cpsie i + 800d90c: 623b str r3, [r7, #32] + 800d90e: e7fe b.n 800d90e configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) ); - 800d90c: 687b ldr r3, [r7, #4] - 800d90e: 2b00 cmp r3, #0 - 800d910: d102 bne.n 800d918 - 800d912: 68bb ldr r3, [r7, #8] - 800d914: 2b00 cmp r3, #0 - 800d916: d101 bne.n 800d91c - 800d918: 2301 movs r3, #1 - 800d91a: e000 b.n 800d91e - 800d91c: 2300 movs r3, #0 - 800d91e: 2b00 cmp r3, #0 - 800d920: d10b bne.n 800d93a - 800d922: f04f 0350 mov.w r3, #80 ; 0x50 - 800d926: b672 cpsid i - 800d928: f383 8811 msr BASEPRI, r3 - 800d92c: f3bf 8f6f isb sy - 800d930: f3bf 8f4f dsb sy - 800d934: b662 cpsie i - 800d936: 61fb str r3, [r7, #28] - 800d938: e7fe b.n 800d938 + 800d910: 687b ldr r3, [r7, #4] + 800d912: 2b00 cmp r3, #0 + 800d914: d102 bne.n 800d91c + 800d916: 68bb ldr r3, [r7, #8] + 800d918: 2b00 cmp r3, #0 + 800d91a: d101 bne.n 800d920 + 800d91c: 2301 movs r3, #1 + 800d91e: e000 b.n 800d922 + 800d920: 2300 movs r3, #0 + 800d922: 2b00 cmp r3, #0 + 800d924: d10b bne.n 800d93e + 800d926: f04f 0350 mov.w r3, #80 ; 0x50 + 800d92a: b672 cpsid i + 800d92c: f383 8811 msr BASEPRI, r3 + 800d930: f3bf 8f6f isb sy + 800d934: f3bf 8f4f dsb sy + 800d938: b662 cpsie i + 800d93a: 61fb str r3, [r7, #28] + 800d93c: e7fe b.n 800d93c #if( configASSERT_DEFINED == 1 ) { /* Sanity check that the size of the structure used to declare a variable of type StaticQueue_t or StaticSemaphore_t equals the size of the real queue and semaphore structures. */ volatile size_t xSize = sizeof( StaticQueue_t ); - 800d93a: 2348 movs r3, #72 ; 0x48 - 800d93c: 617b str r3, [r7, #20] + 800d93e: 2348 movs r3, #72 ; 0x48 + 800d940: 617b str r3, [r7, #20] configASSERT( xSize == sizeof( Queue_t ) ); - 800d93e: 697b ldr r3, [r7, #20] - 800d940: 2b48 cmp r3, #72 ; 0x48 - 800d942: d00b beq.n 800d95c - 800d944: f04f 0350 mov.w r3, #80 ; 0x50 - 800d948: b672 cpsid i - 800d94a: f383 8811 msr BASEPRI, r3 - 800d94e: f3bf 8f6f isb sy - 800d952: f3bf 8f4f dsb sy - 800d956: b662 cpsie i - 800d958: 61bb str r3, [r7, #24] - 800d95a: e7fe b.n 800d95a + 800d942: 697b ldr r3, [r7, #20] + 800d944: 2b48 cmp r3, #72 ; 0x48 + 800d946: d00b beq.n 800d960 + 800d948: f04f 0350 mov.w r3, #80 ; 0x50 + 800d94c: b672 cpsid i + 800d94e: f383 8811 msr BASEPRI, r3 + 800d952: f3bf 8f6f isb sy + 800d956: f3bf 8f4f dsb sy + 800d95a: b662 cpsie i + 800d95c: 61bb str r3, [r7, #24] + 800d95e: e7fe b.n 800d95e ( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */ - 800d95c: 697b ldr r3, [r7, #20] + 800d960: 697b ldr r3, [r7, #20] #endif /* configASSERT_DEFINED */ /* The address of a statically allocated queue was passed in, use it. The address of a statically allocated storage area was also passed in but is already set. */ pxNewQueue = ( Queue_t * ) pxStaticQueue; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */ - 800d95e: 683b ldr r3, [r7, #0] - 800d960: 62fb str r3, [r7, #44] ; 0x2c + 800d962: 683b ldr r3, [r7, #0] + 800d964: 62fb str r3, [r7, #44] ; 0x2c if( pxNewQueue != NULL ) - 800d962: 6afb ldr r3, [r7, #44] ; 0x2c - 800d964: 2b00 cmp r3, #0 - 800d966: d00d beq.n 800d984 + 800d966: 6afb ldr r3, [r7, #44] ; 0x2c + 800d968: 2b00 cmp r3, #0 + 800d96a: d00d beq.n 800d988 #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) { /* Queues can be allocated wither statically or dynamically, so note this queue was allocated statically in case the queue is later deleted. */ pxNewQueue->ucStaticallyAllocated = pdTRUE; - 800d968: 6afb ldr r3, [r7, #44] ; 0x2c - 800d96a: 2201 movs r2, #1 - 800d96c: f883 2046 strb.w r2, [r3, #70] ; 0x46 + 800d96c: 6afb ldr r3, [r7, #44] ; 0x2c + 800d96e: 2201 movs r2, #1 + 800d970: f883 2046 strb.w r2, [r3, #70] ; 0x46 } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); - 800d970: f897 2038 ldrb.w r2, [r7, #56] ; 0x38 - 800d974: 6afb ldr r3, [r7, #44] ; 0x2c - 800d976: 9300 str r3, [sp, #0] - 800d978: 4613 mov r3, r2 - 800d97a: 687a ldr r2, [r7, #4] - 800d97c: 68b9 ldr r1, [r7, #8] - 800d97e: 68f8 ldr r0, [r7, #12] - 800d980: f000 f846 bl 800da10 + 800d974: f897 2038 ldrb.w r2, [r7, #56] ; 0x38 + 800d978: 6afb ldr r3, [r7, #44] ; 0x2c + 800d97a: 9300 str r3, [sp, #0] + 800d97c: 4613 mov r3, r2 + 800d97e: 687a ldr r2, [r7, #4] + 800d980: 68b9 ldr r1, [r7, #8] + 800d982: 68f8 ldr r0, [r7, #12] + 800d984: f000 f846 bl 800da14 { traceQUEUE_CREATE_FAILED( ucQueueType ); mtCOVERAGE_TEST_MARKER(); } return pxNewQueue; - 800d984: 6afb ldr r3, [r7, #44] ; 0x2c + 800d988: 6afb ldr r3, [r7, #44] ; 0x2c } - 800d986: 4618 mov r0, r3 - 800d988: 3730 adds r7, #48 ; 0x30 - 800d98a: 46bd mov sp, r7 - 800d98c: bd80 pop {r7, pc} + 800d98a: 4618 mov r0, r3 + 800d98c: 3730 adds r7, #48 ; 0x30 + 800d98e: 46bd mov sp, r7 + 800d990: bd80 pop {r7, pc} -0800d98e : +0800d992 : /*-----------------------------------------------------------*/ #if( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) QueueHandle_t xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType ) { - 800d98e: b580 push {r7, lr} - 800d990: b08a sub sp, #40 ; 0x28 - 800d992: af02 add r7, sp, #8 - 800d994: 60f8 str r0, [r7, #12] - 800d996: 60b9 str r1, [r7, #8] - 800d998: 4613 mov r3, r2 - 800d99a: 71fb strb r3, [r7, #7] + 800d992: b580 push {r7, lr} + 800d994: b08a sub sp, #40 ; 0x28 + 800d996: af02 add r7, sp, #8 + 800d998: 60f8 str r0, [r7, #12] + 800d99a: 60b9 str r1, [r7, #8] + 800d99c: 4613 mov r3, r2 + 800d99e: 71fb strb r3, [r7, #7] Queue_t *pxNewQueue; size_t xQueueSizeInBytes; uint8_t *pucQueueStorage; configASSERT( uxQueueLength > ( UBaseType_t ) 0 ); - 800d99c: 68fb ldr r3, [r7, #12] - 800d99e: 2b00 cmp r3, #0 - 800d9a0: d10b bne.n 800d9ba - 800d9a2: f04f 0350 mov.w r3, #80 ; 0x50 - 800d9a6: b672 cpsid i - 800d9a8: f383 8811 msr BASEPRI, r3 - 800d9ac: f3bf 8f6f isb sy - 800d9b0: f3bf 8f4f dsb sy - 800d9b4: b662 cpsie i - 800d9b6: 613b str r3, [r7, #16] - 800d9b8: e7fe b.n 800d9b8 + 800d9a0: 68fb ldr r3, [r7, #12] + 800d9a2: 2b00 cmp r3, #0 + 800d9a4: d10b bne.n 800d9be + 800d9a6: f04f 0350 mov.w r3, #80 ; 0x50 + 800d9aa: b672 cpsid i + 800d9ac: f383 8811 msr BASEPRI, r3 + 800d9b0: f3bf 8f6f isb sy + 800d9b4: f3bf 8f4f dsb sy + 800d9b8: b662 cpsie i + 800d9ba: 613b str r3, [r7, #16] + 800d9bc: e7fe b.n 800d9bc if( uxItemSize == ( UBaseType_t ) 0 ) - 800d9ba: 68bb ldr r3, [r7, #8] - 800d9bc: 2b00 cmp r3, #0 - 800d9be: d102 bne.n 800d9c6 + 800d9be: 68bb ldr r3, [r7, #8] + 800d9c0: 2b00 cmp r3, #0 + 800d9c2: d102 bne.n 800d9ca { /* There is not going to be a queue storage area. */ xQueueSizeInBytes = ( size_t ) 0; - 800d9c0: 2300 movs r3, #0 - 800d9c2: 61fb str r3, [r7, #28] - 800d9c4: e004 b.n 800d9d0 + 800d9c4: 2300 movs r3, #0 + 800d9c6: 61fb str r3, [r7, #28] + 800d9c8: e004 b.n 800d9d4 } else { /* Allocate enough space to hold the maximum number of items that can be in the queue at any time. */ xQueueSizeInBytes = ( size_t ) ( uxQueueLength * uxItemSize ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - 800d9c6: 68fb ldr r3, [r7, #12] - 800d9c8: 68ba ldr r2, [r7, #8] - 800d9ca: fb02 f303 mul.w r3, r2, r3 - 800d9ce: 61fb str r3, [r7, #28] + 800d9ca: 68fb ldr r3, [r7, #12] + 800d9cc: 68ba ldr r2, [r7, #8] + 800d9ce: fb02 f303 mul.w r3, r2, r3 + 800d9d2: 61fb str r3, [r7, #28] alignment requirements of the Queue_t structure - which in this case is an int8_t *. Therefore, whenever the stack alignment requirements are greater than or equal to the pointer to char requirements the cast is safe. In other cases alignment requirements are not strict (one or two bytes). */ pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e9079 see comment above. */ - 800d9d0: 69fb ldr r3, [r7, #28] - 800d9d2: 3348 adds r3, #72 ; 0x48 - 800d9d4: 4618 mov r0, r3 - 800d9d6: f002 f9d1 bl 800fd7c - 800d9da: 61b8 str r0, [r7, #24] + 800d9d4: 69fb ldr r3, [r7, #28] + 800d9d6: 3348 adds r3, #72 ; 0x48 + 800d9d8: 4618 mov r0, r3 + 800d9da: f002 f9d7 bl 800fd8c + 800d9de: 61b8 str r0, [r7, #24] if( pxNewQueue != NULL ) - 800d9dc: 69bb ldr r3, [r7, #24] - 800d9de: 2b00 cmp r3, #0 - 800d9e0: d011 beq.n 800da06 + 800d9e0: 69bb ldr r3, [r7, #24] + 800d9e2: 2b00 cmp r3, #0 + 800d9e4: d011 beq.n 800da0a { /* Jump past the queue structure to find the location of the queue storage area. */ pucQueueStorage = ( uint8_t * ) pxNewQueue; - 800d9e2: 69bb ldr r3, [r7, #24] - 800d9e4: 617b str r3, [r7, #20] + 800d9e6: 69bb ldr r3, [r7, #24] + 800d9e8: 617b str r3, [r7, #20] pucQueueStorage += sizeof( Queue_t ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */ - 800d9e6: 697b ldr r3, [r7, #20] - 800d9e8: 3348 adds r3, #72 ; 0x48 - 800d9ea: 617b str r3, [r7, #20] + 800d9ea: 697b ldr r3, [r7, #20] + 800d9ec: 3348 adds r3, #72 ; 0x48 + 800d9ee: 617b str r3, [r7, #20] #if( configSUPPORT_STATIC_ALLOCATION == 1 ) { /* Queues can be created either statically or dynamically, so note this task was created dynamically in case it is later deleted. */ pxNewQueue->ucStaticallyAllocated = pdFALSE; - 800d9ec: 69bb ldr r3, [r7, #24] - 800d9ee: 2200 movs r2, #0 - 800d9f0: f883 2046 strb.w r2, [r3, #70] ; 0x46 + 800d9f0: 69bb ldr r3, [r7, #24] + 800d9f2: 2200 movs r2, #0 + 800d9f4: f883 2046 strb.w r2, [r3, #70] ; 0x46 } #endif /* configSUPPORT_STATIC_ALLOCATION */ prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); - 800d9f4: 79fa ldrb r2, [r7, #7] - 800d9f6: 69bb ldr r3, [r7, #24] - 800d9f8: 9300 str r3, [sp, #0] - 800d9fa: 4613 mov r3, r2 - 800d9fc: 697a ldr r2, [r7, #20] - 800d9fe: 68b9 ldr r1, [r7, #8] - 800da00: 68f8 ldr r0, [r7, #12] - 800da02: f000 f805 bl 800da10 + 800d9f8: 79fa ldrb r2, [r7, #7] + 800d9fa: 69bb ldr r3, [r7, #24] + 800d9fc: 9300 str r3, [sp, #0] + 800d9fe: 4613 mov r3, r2 + 800da00: 697a ldr r2, [r7, #20] + 800da02: 68b9 ldr r1, [r7, #8] + 800da04: 68f8 ldr r0, [r7, #12] + 800da06: f000 f805 bl 800da14 { traceQUEUE_CREATE_FAILED( ucQueueType ); mtCOVERAGE_TEST_MARKER(); } return pxNewQueue; - 800da06: 69bb ldr r3, [r7, #24] + 800da0a: 69bb ldr r3, [r7, #24] } - 800da08: 4618 mov r0, r3 - 800da0a: 3720 adds r7, #32 - 800da0c: 46bd mov sp, r7 - 800da0e: bd80 pop {r7, pc} + 800da0c: 4618 mov r0, r3 + 800da0e: 3720 adds r7, #32 + 800da10: 46bd mov sp, r7 + 800da12: bd80 pop {r7, pc} -0800da10 : +0800da14 : #endif /* configSUPPORT_STATIC_ALLOCATION */ /*-----------------------------------------------------------*/ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue ) { - 800da10: b580 push {r7, lr} - 800da12: b084 sub sp, #16 - 800da14: af00 add r7, sp, #0 - 800da16: 60f8 str r0, [r7, #12] - 800da18: 60b9 str r1, [r7, #8] - 800da1a: 607a str r2, [r7, #4] - 800da1c: 70fb strb r3, [r7, #3] + 800da14: b580 push {r7, lr} + 800da16: b084 sub sp, #16 + 800da18: af00 add r7, sp, #0 + 800da1a: 60f8 str r0, [r7, #12] + 800da1c: 60b9 str r1, [r7, #8] + 800da1e: 607a str r2, [r7, #4] + 800da20: 70fb strb r3, [r7, #3] /* Remove compiler warnings about unused parameters should configUSE_TRACE_FACILITY not be set to 1. */ ( void ) ucQueueType; if( uxItemSize == ( UBaseType_t ) 0 ) - 800da1e: 68bb ldr r3, [r7, #8] - 800da20: 2b00 cmp r3, #0 - 800da22: d103 bne.n 800da2c + 800da22: 68bb ldr r3, [r7, #8] + 800da24: 2b00 cmp r3, #0 + 800da26: d103 bne.n 800da30 { /* No RAM was allocated for the queue storage area, but PC head cannot be set to NULL because NULL is used as a key to say the queue is used as a mutex. Therefore just set pcHead to point to the queue as a benign value that is known to be within the memory map. */ pxNewQueue->pcHead = ( int8_t * ) pxNewQueue; - 800da24: 69bb ldr r3, [r7, #24] - 800da26: 69ba ldr r2, [r7, #24] - 800da28: 601a str r2, [r3, #0] - 800da2a: e002 b.n 800da32 + 800da28: 69bb ldr r3, [r7, #24] + 800da2a: 69ba ldr r2, [r7, #24] + 800da2c: 601a str r2, [r3, #0] + 800da2e: e002 b.n 800da36 } else { /* Set the head to the start of the queue storage area. */ pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage; - 800da2c: 69bb ldr r3, [r7, #24] - 800da2e: 687a ldr r2, [r7, #4] - 800da30: 601a str r2, [r3, #0] + 800da30: 69bb ldr r3, [r7, #24] + 800da32: 687a ldr r2, [r7, #4] + 800da34: 601a str r2, [r3, #0] } /* Initialise the queue members as described where the queue type is defined. */ pxNewQueue->uxLength = uxQueueLength; - 800da32: 69bb ldr r3, [r7, #24] - 800da34: 68fa ldr r2, [r7, #12] - 800da36: 63da str r2, [r3, #60] ; 0x3c + 800da36: 69bb ldr r3, [r7, #24] + 800da38: 68fa ldr r2, [r7, #12] + 800da3a: 63da str r2, [r3, #60] ; 0x3c pxNewQueue->uxItemSize = uxItemSize; - 800da38: 69bb ldr r3, [r7, #24] - 800da3a: 68ba ldr r2, [r7, #8] - 800da3c: 641a str r2, [r3, #64] ; 0x40 + 800da3c: 69bb ldr r3, [r7, #24] + 800da3e: 68ba ldr r2, [r7, #8] + 800da40: 641a str r2, [r3, #64] ; 0x40 ( void ) xQueueGenericReset( pxNewQueue, pdTRUE ); - 800da3e: 2101 movs r1, #1 - 800da40: 69b8 ldr r0, [r7, #24] - 800da42: f7ff febd bl 800d7c0 + 800da42: 2101 movs r1, #1 + 800da44: 69b8 ldr r0, [r7, #24] + 800da46: f7ff febd bl 800d7c4 pxNewQueue->pxQueueSetContainer = NULL; } #endif /* configUSE_QUEUE_SETS */ traceQUEUE_CREATE( pxNewQueue ); } - 800da46: bf00 nop - 800da48: 3710 adds r7, #16 - 800da4a: 46bd mov sp, r7 - 800da4c: bd80 pop {r7, pc} + 800da4a: bf00 nop + 800da4c: 3710 adds r7, #16 + 800da4e: 46bd mov sp, r7 + 800da50: bd80 pop {r7, pc} -0800da4e : +0800da52 : /*-----------------------------------------------------------*/ #if( configUSE_MUTEXES == 1 ) static void prvInitialiseMutex( Queue_t *pxNewQueue ) { - 800da4e: b580 push {r7, lr} - 800da50: b082 sub sp, #8 - 800da52: af00 add r7, sp, #0 - 800da54: 6078 str r0, [r7, #4] + 800da52: b580 push {r7, lr} + 800da54: b082 sub sp, #8 + 800da56: af00 add r7, sp, #0 + 800da58: 6078 str r0, [r7, #4] if( pxNewQueue != NULL ) - 800da56: 687b ldr r3, [r7, #4] - 800da58: 2b00 cmp r3, #0 - 800da5a: d00e beq.n 800da7a + 800da5a: 687b ldr r3, [r7, #4] + 800da5c: 2b00 cmp r3, #0 + 800da5e: d00e beq.n 800da7e { /* The queue create function will set all the queue structure members correctly for a generic queue, but this function is creating a mutex. Overwrite those members that need to be set differently - in particular the information required for priority inheritance. */ pxNewQueue->u.xSemaphore.xMutexHolder = NULL; - 800da5c: 687b ldr r3, [r7, #4] - 800da5e: 2200 movs r2, #0 - 800da60: 609a str r2, [r3, #8] + 800da60: 687b ldr r3, [r7, #4] + 800da62: 2200 movs r2, #0 + 800da64: 609a str r2, [r3, #8] pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX; - 800da62: 687b ldr r3, [r7, #4] - 800da64: 2200 movs r2, #0 - 800da66: 601a str r2, [r3, #0] + 800da66: 687b ldr r3, [r7, #4] + 800da68: 2200 movs r2, #0 + 800da6a: 601a str r2, [r3, #0] /* In case this is a recursive mutex. */ pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0; - 800da68: 687b ldr r3, [r7, #4] - 800da6a: 2200 movs r2, #0 - 800da6c: 60da str r2, [r3, #12] + 800da6c: 687b ldr r3, [r7, #4] + 800da6e: 2200 movs r2, #0 + 800da70: 60da str r2, [r3, #12] traceCREATE_MUTEX( pxNewQueue ); /* Start with the semaphore in the expected state. */ ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK ); - 800da6e: 2300 movs r3, #0 - 800da70: 2200 movs r2, #0 - 800da72: 2100 movs r1, #0 - 800da74: 6878 ldr r0, [r7, #4] - 800da76: f000 f8a5 bl 800dbc4 + 800da72: 2300 movs r3, #0 + 800da74: 2200 movs r2, #0 + 800da76: 2100 movs r1, #0 + 800da78: 6878 ldr r0, [r7, #4] + 800da7a: f000 f8a5 bl 800dbc8 } else { traceCREATE_MUTEX_FAILED(); } } - 800da7a: bf00 nop - 800da7c: 3708 adds r7, #8 - 800da7e: 46bd mov sp, r7 - 800da80: bd80 pop {r7, pc} + 800da7e: bf00 nop + 800da80: 3708 adds r7, #8 + 800da82: 46bd mov sp, r7 + 800da84: bd80 pop {r7, pc} -0800da82 : +0800da86 : /*-----------------------------------------------------------*/ #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) QueueHandle_t xQueueCreateMutex( const uint8_t ucQueueType ) { - 800da82: b580 push {r7, lr} - 800da84: b086 sub sp, #24 - 800da86: af00 add r7, sp, #0 - 800da88: 4603 mov r3, r0 - 800da8a: 71fb strb r3, [r7, #7] + 800da86: b580 push {r7, lr} + 800da88: b086 sub sp, #24 + 800da8a: af00 add r7, sp, #0 + 800da8c: 4603 mov r3, r0 + 800da8e: 71fb strb r3, [r7, #7] QueueHandle_t xNewQueue; const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; - 800da8c: 2301 movs r3, #1 - 800da8e: 617b str r3, [r7, #20] - 800da90: 2300 movs r3, #0 - 800da92: 613b str r3, [r7, #16] + 800da90: 2301 movs r3, #1 + 800da92: 617b str r3, [r7, #20] + 800da94: 2300 movs r3, #0 + 800da96: 613b str r3, [r7, #16] xNewQueue = xQueueGenericCreate( uxMutexLength, uxMutexSize, ucQueueType ); - 800da94: 79fb ldrb r3, [r7, #7] - 800da96: 461a mov r2, r3 - 800da98: 6939 ldr r1, [r7, #16] - 800da9a: 6978 ldr r0, [r7, #20] - 800da9c: f7ff ff77 bl 800d98e - 800daa0: 60f8 str r0, [r7, #12] + 800da98: 79fb ldrb r3, [r7, #7] + 800da9a: 461a mov r2, r3 + 800da9c: 6939 ldr r1, [r7, #16] + 800da9e: 6978 ldr r0, [r7, #20] + 800daa0: f7ff ff77 bl 800d992 + 800daa4: 60f8 str r0, [r7, #12] prvInitialiseMutex( ( Queue_t * ) xNewQueue ); - 800daa2: 68f8 ldr r0, [r7, #12] - 800daa4: f7ff ffd3 bl 800da4e + 800daa6: 68f8 ldr r0, [r7, #12] + 800daa8: f7ff ffd3 bl 800da52 return xNewQueue; - 800daa8: 68fb ldr r3, [r7, #12] + 800daac: 68fb ldr r3, [r7, #12] } - 800daaa: 4618 mov r0, r3 - 800daac: 3718 adds r7, #24 - 800daae: 46bd mov sp, r7 - 800dab0: bd80 pop {r7, pc} + 800daae: 4618 mov r0, r3 + 800dab0: 3718 adds r7, #24 + 800dab2: 46bd mov sp, r7 + 800dab4: bd80 pop {r7, pc} -0800dab2 : +0800dab6 : /*-----------------------------------------------------------*/ #if( ( configUSE_MUTEXES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) QueueHandle_t xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue ) { - 800dab2: b580 push {r7, lr} - 800dab4: b088 sub sp, #32 - 800dab6: af02 add r7, sp, #8 - 800dab8: 4603 mov r3, r0 - 800daba: 6039 str r1, [r7, #0] - 800dabc: 71fb strb r3, [r7, #7] + 800dab6: b580 push {r7, lr} + 800dab8: b088 sub sp, #32 + 800daba: af02 add r7, sp, #8 + 800dabc: 4603 mov r3, r0 + 800dabe: 6039 str r1, [r7, #0] + 800dac0: 71fb strb r3, [r7, #7] QueueHandle_t xNewQueue; const UBaseType_t uxMutexLength = ( UBaseType_t ) 1, uxMutexSize = ( UBaseType_t ) 0; - 800dabe: 2301 movs r3, #1 - 800dac0: 617b str r3, [r7, #20] - 800dac2: 2300 movs r3, #0 - 800dac4: 613b str r3, [r7, #16] + 800dac2: 2301 movs r3, #1 + 800dac4: 617b str r3, [r7, #20] + 800dac6: 2300 movs r3, #0 + 800dac8: 613b str r3, [r7, #16] /* Prevent compiler warnings about unused parameters if configUSE_TRACE_FACILITY does not equal 1. */ ( void ) ucQueueType; xNewQueue = xQueueGenericCreateStatic( uxMutexLength, uxMutexSize, NULL, pxStaticQueue, ucQueueType ); - 800dac6: 79fb ldrb r3, [r7, #7] - 800dac8: 9300 str r3, [sp, #0] - 800daca: 683b ldr r3, [r7, #0] - 800dacc: 2200 movs r2, #0 - 800dace: 6939 ldr r1, [r7, #16] - 800dad0: 6978 ldr r0, [r7, #20] - 800dad2: f7ff fedf bl 800d894 - 800dad6: 60f8 str r0, [r7, #12] + 800daca: 79fb ldrb r3, [r7, #7] + 800dacc: 9300 str r3, [sp, #0] + 800dace: 683b ldr r3, [r7, #0] + 800dad0: 2200 movs r2, #0 + 800dad2: 6939 ldr r1, [r7, #16] + 800dad4: 6978 ldr r0, [r7, #20] + 800dad6: f7ff fedf bl 800d898 + 800dada: 60f8 str r0, [r7, #12] prvInitialiseMutex( ( Queue_t * ) xNewQueue ); - 800dad8: 68f8 ldr r0, [r7, #12] - 800dada: f7ff ffb8 bl 800da4e + 800dadc: 68f8 ldr r0, [r7, #12] + 800dade: f7ff ffb8 bl 800da52 return xNewQueue; - 800dade: 68fb ldr r3, [r7, #12] + 800dae2: 68fb ldr r3, [r7, #12] } - 800dae0: 4618 mov r0, r3 - 800dae2: 3718 adds r7, #24 - 800dae4: 46bd mov sp, r7 - 800dae6: bd80 pop {r7, pc} + 800dae4: 4618 mov r0, r3 + 800dae6: 3718 adds r7, #24 + 800dae8: 46bd mov sp, r7 + 800daea: bd80 pop {r7, pc} -0800dae8 : +0800daec : /*-----------------------------------------------------------*/ #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) ) QueueHandle_t xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue ) { - 800dae8: b580 push {r7, lr} - 800daea: b08a sub sp, #40 ; 0x28 - 800daec: af02 add r7, sp, #8 - 800daee: 60f8 str r0, [r7, #12] - 800daf0: 60b9 str r1, [r7, #8] - 800daf2: 607a str r2, [r7, #4] + 800daec: b580 push {r7, lr} + 800daee: b08a sub sp, #40 ; 0x28 + 800daf0: af02 add r7, sp, #8 + 800daf2: 60f8 str r0, [r7, #12] + 800daf4: 60b9 str r1, [r7, #8] + 800daf6: 607a str r2, [r7, #4] QueueHandle_t xHandle; configASSERT( uxMaxCount != 0 ); - 800daf4: 68fb ldr r3, [r7, #12] - 800daf6: 2b00 cmp r3, #0 - 800daf8: d10b bne.n 800db12 - 800dafa: f04f 0350 mov.w r3, #80 ; 0x50 - 800dafe: b672 cpsid i - 800db00: f383 8811 msr BASEPRI, r3 - 800db04: f3bf 8f6f isb sy - 800db08: f3bf 8f4f dsb sy - 800db0c: b662 cpsie i - 800db0e: 61bb str r3, [r7, #24] - 800db10: e7fe b.n 800db10 + 800daf8: 68fb ldr r3, [r7, #12] + 800dafa: 2b00 cmp r3, #0 + 800dafc: d10b bne.n 800db16 + 800dafe: f04f 0350 mov.w r3, #80 ; 0x50 + 800db02: b672 cpsid i + 800db04: f383 8811 msr BASEPRI, r3 + 800db08: f3bf 8f6f isb sy + 800db0c: f3bf 8f4f dsb sy + 800db10: b662 cpsie i + 800db12: 61bb str r3, [r7, #24] + 800db14: e7fe b.n 800db14 configASSERT( uxInitialCount <= uxMaxCount ); - 800db12: 68ba ldr r2, [r7, #8] - 800db14: 68fb ldr r3, [r7, #12] - 800db16: 429a cmp r2, r3 - 800db18: d90b bls.n 800db32 - 800db1a: f04f 0350 mov.w r3, #80 ; 0x50 - 800db1e: b672 cpsid i - 800db20: f383 8811 msr BASEPRI, r3 - 800db24: f3bf 8f6f isb sy - 800db28: f3bf 8f4f dsb sy - 800db2c: b662 cpsie i - 800db2e: 617b str r3, [r7, #20] - 800db30: e7fe b.n 800db30 + 800db16: 68ba ldr r2, [r7, #8] + 800db18: 68fb ldr r3, [r7, #12] + 800db1a: 429a cmp r2, r3 + 800db1c: d90b bls.n 800db36 + 800db1e: f04f 0350 mov.w r3, #80 ; 0x50 + 800db22: b672 cpsid i + 800db24: f383 8811 msr BASEPRI, r3 + 800db28: f3bf 8f6f isb sy + 800db2c: f3bf 8f4f dsb sy + 800db30: b662 cpsie i + 800db32: 617b str r3, [r7, #20] + 800db34: e7fe b.n 800db34 xHandle = xQueueGenericCreateStatic( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, NULL, pxStaticQueue, queueQUEUE_TYPE_COUNTING_SEMAPHORE ); - 800db32: 2302 movs r3, #2 - 800db34: 9300 str r3, [sp, #0] - 800db36: 687b ldr r3, [r7, #4] - 800db38: 2200 movs r2, #0 - 800db3a: 2100 movs r1, #0 - 800db3c: 68f8 ldr r0, [r7, #12] - 800db3e: f7ff fea9 bl 800d894 - 800db42: 61f8 str r0, [r7, #28] + 800db36: 2302 movs r3, #2 + 800db38: 9300 str r3, [sp, #0] + 800db3a: 687b ldr r3, [r7, #4] + 800db3c: 2200 movs r2, #0 + 800db3e: 2100 movs r1, #0 + 800db40: 68f8 ldr r0, [r7, #12] + 800db42: f7ff fea9 bl 800d898 + 800db46: 61f8 str r0, [r7, #28] if( xHandle != NULL ) - 800db44: 69fb ldr r3, [r7, #28] - 800db46: 2b00 cmp r3, #0 - 800db48: d002 beq.n 800db50 + 800db48: 69fb ldr r3, [r7, #28] + 800db4a: 2b00 cmp r3, #0 + 800db4c: d002 beq.n 800db54 { ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount; - 800db4a: 69fb ldr r3, [r7, #28] - 800db4c: 68ba ldr r2, [r7, #8] - 800db4e: 639a str r2, [r3, #56] ; 0x38 + 800db4e: 69fb ldr r3, [r7, #28] + 800db50: 68ba ldr r2, [r7, #8] + 800db52: 639a str r2, [r3, #56] ; 0x38 else { traceCREATE_COUNTING_SEMAPHORE_FAILED(); } return xHandle; - 800db50: 69fb ldr r3, [r7, #28] + 800db54: 69fb ldr r3, [r7, #28] } - 800db52: 4618 mov r0, r3 - 800db54: 3720 adds r7, #32 - 800db56: 46bd mov sp, r7 - 800db58: bd80 pop {r7, pc} + 800db56: 4618 mov r0, r3 + 800db58: 3720 adds r7, #32 + 800db5a: 46bd mov sp, r7 + 800db5c: bd80 pop {r7, pc} -0800db5a : +0800db5e : /*-----------------------------------------------------------*/ #if( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) QueueHandle_t xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount ) { - 800db5a: b580 push {r7, lr} - 800db5c: b086 sub sp, #24 - 800db5e: af00 add r7, sp, #0 - 800db60: 6078 str r0, [r7, #4] - 800db62: 6039 str r1, [r7, #0] + 800db5e: b580 push {r7, lr} + 800db60: b086 sub sp, #24 + 800db62: af00 add r7, sp, #0 + 800db64: 6078 str r0, [r7, #4] + 800db66: 6039 str r1, [r7, #0] QueueHandle_t xHandle; configASSERT( uxMaxCount != 0 ); - 800db64: 687b ldr r3, [r7, #4] - 800db66: 2b00 cmp r3, #0 - 800db68: d10b bne.n 800db82 - 800db6a: f04f 0350 mov.w r3, #80 ; 0x50 - 800db6e: b672 cpsid i - 800db70: f383 8811 msr BASEPRI, r3 - 800db74: f3bf 8f6f isb sy - 800db78: f3bf 8f4f dsb sy - 800db7c: b662 cpsie i - 800db7e: 613b str r3, [r7, #16] - 800db80: e7fe b.n 800db80 + 800db68: 687b ldr r3, [r7, #4] + 800db6a: 2b00 cmp r3, #0 + 800db6c: d10b bne.n 800db86 + 800db6e: f04f 0350 mov.w r3, #80 ; 0x50 + 800db72: b672 cpsid i + 800db74: f383 8811 msr BASEPRI, r3 + 800db78: f3bf 8f6f isb sy + 800db7c: f3bf 8f4f dsb sy + 800db80: b662 cpsie i + 800db82: 613b str r3, [r7, #16] + 800db84: e7fe b.n 800db84 configASSERT( uxInitialCount <= uxMaxCount ); - 800db82: 683a ldr r2, [r7, #0] - 800db84: 687b ldr r3, [r7, #4] - 800db86: 429a cmp r2, r3 - 800db88: d90b bls.n 800dba2 - 800db8a: f04f 0350 mov.w r3, #80 ; 0x50 - 800db8e: b672 cpsid i - 800db90: f383 8811 msr BASEPRI, r3 - 800db94: f3bf 8f6f isb sy - 800db98: f3bf 8f4f dsb sy - 800db9c: b662 cpsie i - 800db9e: 60fb str r3, [r7, #12] - 800dba0: e7fe b.n 800dba0 + 800db86: 683a ldr r2, [r7, #0] + 800db88: 687b ldr r3, [r7, #4] + 800db8a: 429a cmp r2, r3 + 800db8c: d90b bls.n 800dba6 + 800db8e: f04f 0350 mov.w r3, #80 ; 0x50 + 800db92: b672 cpsid i + 800db94: f383 8811 msr BASEPRI, r3 + 800db98: f3bf 8f6f isb sy + 800db9c: f3bf 8f4f dsb sy + 800dba0: b662 cpsie i + 800dba2: 60fb str r3, [r7, #12] + 800dba4: e7fe b.n 800dba4 xHandle = xQueueGenericCreate( uxMaxCount, queueSEMAPHORE_QUEUE_ITEM_LENGTH, queueQUEUE_TYPE_COUNTING_SEMAPHORE ); - 800dba2: 2202 movs r2, #2 - 800dba4: 2100 movs r1, #0 - 800dba6: 6878 ldr r0, [r7, #4] - 800dba8: f7ff fef1 bl 800d98e - 800dbac: 6178 str r0, [r7, #20] + 800dba6: 2202 movs r2, #2 + 800dba8: 2100 movs r1, #0 + 800dbaa: 6878 ldr r0, [r7, #4] + 800dbac: f7ff fef1 bl 800d992 + 800dbb0: 6178 str r0, [r7, #20] if( xHandle != NULL ) - 800dbae: 697b ldr r3, [r7, #20] - 800dbb0: 2b00 cmp r3, #0 - 800dbb2: d002 beq.n 800dbba + 800dbb2: 697b ldr r3, [r7, #20] + 800dbb4: 2b00 cmp r3, #0 + 800dbb6: d002 beq.n 800dbbe { ( ( Queue_t * ) xHandle )->uxMessagesWaiting = uxInitialCount; - 800dbb4: 697b ldr r3, [r7, #20] - 800dbb6: 683a ldr r2, [r7, #0] - 800dbb8: 639a str r2, [r3, #56] ; 0x38 + 800dbb8: 697b ldr r3, [r7, #20] + 800dbba: 683a ldr r2, [r7, #0] + 800dbbc: 639a str r2, [r3, #56] ; 0x38 else { traceCREATE_COUNTING_SEMAPHORE_FAILED(); } return xHandle; - 800dbba: 697b ldr r3, [r7, #20] + 800dbbe: 697b ldr r3, [r7, #20] } - 800dbbc: 4618 mov r0, r3 - 800dbbe: 3718 adds r7, #24 - 800dbc0: 46bd mov sp, r7 - 800dbc2: bd80 pop {r7, pc} + 800dbc0: 4618 mov r0, r3 + 800dbc2: 3718 adds r7, #24 + 800dbc4: 46bd mov sp, r7 + 800dbc6: bd80 pop {r7, pc} -0800dbc4 : +0800dbc8 : #endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */ /*-----------------------------------------------------------*/ BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition ) { - 800dbc4: b580 push {r7, lr} - 800dbc6: b08e sub sp, #56 ; 0x38 - 800dbc8: af00 add r7, sp, #0 - 800dbca: 60f8 str r0, [r7, #12] - 800dbcc: 60b9 str r1, [r7, #8] - 800dbce: 607a str r2, [r7, #4] - 800dbd0: 603b str r3, [r7, #0] + 800dbc8: b580 push {r7, lr} + 800dbca: b08e sub sp, #56 ; 0x38 + 800dbcc: af00 add r7, sp, #0 + 800dbce: 60f8 str r0, [r7, #12] + 800dbd0: 60b9 str r1, [r7, #8] + 800dbd2: 607a str r2, [r7, #4] + 800dbd4: 603b str r3, [r7, #0] BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired; - 800dbd2: 2300 movs r3, #0 - 800dbd4: 637b str r3, [r7, #52] ; 0x34 + 800dbd6: 2300 movs r3, #0 + 800dbd8: 637b str r3, [r7, #52] ; 0x34 TimeOut_t xTimeOut; Queue_t * const pxQueue = xQueue; - 800dbd6: 68fb ldr r3, [r7, #12] - 800dbd8: 633b str r3, [r7, #48] ; 0x30 + 800dbda: 68fb ldr r3, [r7, #12] + 800dbdc: 633b str r3, [r7, #48] ; 0x30 configASSERT( pxQueue ); - 800dbda: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dbdc: 2b00 cmp r3, #0 - 800dbde: d10b bne.n 800dbf8 - 800dbe0: f04f 0350 mov.w r3, #80 ; 0x50 - 800dbe4: b672 cpsid i - 800dbe6: f383 8811 msr BASEPRI, r3 - 800dbea: f3bf 8f6f isb sy - 800dbee: f3bf 8f4f dsb sy - 800dbf2: b662 cpsie i - 800dbf4: 62bb str r3, [r7, #40] ; 0x28 - 800dbf6: e7fe b.n 800dbf6 + 800dbde: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dbe0: 2b00 cmp r3, #0 + 800dbe2: d10b bne.n 800dbfc + 800dbe4: f04f 0350 mov.w r3, #80 ; 0x50 + 800dbe8: b672 cpsid i + 800dbea: f383 8811 msr BASEPRI, r3 + 800dbee: f3bf 8f6f isb sy + 800dbf2: f3bf 8f4f dsb sy + 800dbf6: b662 cpsie i + 800dbf8: 62bb str r3, [r7, #40] ; 0x28 + 800dbfa: e7fe b.n 800dbfa configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - 800dbf8: 68bb ldr r3, [r7, #8] - 800dbfa: 2b00 cmp r3, #0 - 800dbfc: d103 bne.n 800dc06 - 800dbfe: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dc00: 6c1b ldr r3, [r3, #64] ; 0x40 - 800dc02: 2b00 cmp r3, #0 - 800dc04: d101 bne.n 800dc0a - 800dc06: 2301 movs r3, #1 - 800dc08: e000 b.n 800dc0c - 800dc0a: 2300 movs r3, #0 - 800dc0c: 2b00 cmp r3, #0 - 800dc0e: d10b bne.n 800dc28 - 800dc10: f04f 0350 mov.w r3, #80 ; 0x50 - 800dc14: b672 cpsid i - 800dc16: f383 8811 msr BASEPRI, r3 - 800dc1a: f3bf 8f6f isb sy - 800dc1e: f3bf 8f4f dsb sy - 800dc22: b662 cpsie i - 800dc24: 627b str r3, [r7, #36] ; 0x24 - 800dc26: e7fe b.n 800dc26 + 800dbfc: 68bb ldr r3, [r7, #8] + 800dbfe: 2b00 cmp r3, #0 + 800dc00: d103 bne.n 800dc0a + 800dc02: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dc04: 6c1b ldr r3, [r3, #64] ; 0x40 + 800dc06: 2b00 cmp r3, #0 + 800dc08: d101 bne.n 800dc0e + 800dc0a: 2301 movs r3, #1 + 800dc0c: e000 b.n 800dc10 + 800dc0e: 2300 movs r3, #0 + 800dc10: 2b00 cmp r3, #0 + 800dc12: d10b bne.n 800dc2c + 800dc14: f04f 0350 mov.w r3, #80 ; 0x50 + 800dc18: b672 cpsid i + 800dc1a: f383 8811 msr BASEPRI, r3 + 800dc1e: f3bf 8f6f isb sy + 800dc22: f3bf 8f4f dsb sy + 800dc26: b662 cpsie i + 800dc28: 627b str r3, [r7, #36] ; 0x24 + 800dc2a: e7fe b.n 800dc2a configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) ); - 800dc28: 683b ldr r3, [r7, #0] - 800dc2a: 2b02 cmp r3, #2 - 800dc2c: d103 bne.n 800dc36 - 800dc2e: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dc30: 6bdb ldr r3, [r3, #60] ; 0x3c - 800dc32: 2b01 cmp r3, #1 - 800dc34: d101 bne.n 800dc3a - 800dc36: 2301 movs r3, #1 - 800dc38: e000 b.n 800dc3c - 800dc3a: 2300 movs r3, #0 - 800dc3c: 2b00 cmp r3, #0 - 800dc3e: d10b bne.n 800dc58 - 800dc40: f04f 0350 mov.w r3, #80 ; 0x50 - 800dc44: b672 cpsid i - 800dc46: f383 8811 msr BASEPRI, r3 - 800dc4a: f3bf 8f6f isb sy - 800dc4e: f3bf 8f4f dsb sy - 800dc52: b662 cpsie i - 800dc54: 623b str r3, [r7, #32] - 800dc56: e7fe b.n 800dc56 + 800dc2c: 683b ldr r3, [r7, #0] + 800dc2e: 2b02 cmp r3, #2 + 800dc30: d103 bne.n 800dc3a + 800dc32: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dc34: 6bdb ldr r3, [r3, #60] ; 0x3c + 800dc36: 2b01 cmp r3, #1 + 800dc38: d101 bne.n 800dc3e + 800dc3a: 2301 movs r3, #1 + 800dc3c: e000 b.n 800dc40 + 800dc3e: 2300 movs r3, #0 + 800dc40: 2b00 cmp r3, #0 + 800dc42: d10b bne.n 800dc5c + 800dc44: f04f 0350 mov.w r3, #80 ; 0x50 + 800dc48: b672 cpsid i + 800dc4a: f383 8811 msr BASEPRI, r3 + 800dc4e: f3bf 8f6f isb sy + 800dc52: f3bf 8f4f dsb sy + 800dc56: b662 cpsie i + 800dc58: 623b str r3, [r7, #32] + 800dc5a: e7fe b.n 800dc5a #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - 800dc58: f001 fc2c bl 800f4b4 - 800dc5c: 4603 mov r3, r0 - 800dc5e: 2b00 cmp r3, #0 - 800dc60: d102 bne.n 800dc68 - 800dc62: 687b ldr r3, [r7, #4] - 800dc64: 2b00 cmp r3, #0 - 800dc66: d101 bne.n 800dc6c - 800dc68: 2301 movs r3, #1 - 800dc6a: e000 b.n 800dc6e - 800dc6c: 2300 movs r3, #0 - 800dc6e: 2b00 cmp r3, #0 - 800dc70: d10b bne.n 800dc8a - 800dc72: f04f 0350 mov.w r3, #80 ; 0x50 - 800dc76: b672 cpsid i - 800dc78: f383 8811 msr BASEPRI, r3 - 800dc7c: f3bf 8f6f isb sy - 800dc80: f3bf 8f4f dsb sy - 800dc84: b662 cpsie i - 800dc86: 61fb str r3, [r7, #28] - 800dc88: e7fe b.n 800dc88 + 800dc5c: f001 fc2c bl 800f4b8 + 800dc60: 4603 mov r3, r0 + 800dc62: 2b00 cmp r3, #0 + 800dc64: d102 bne.n 800dc6c + 800dc66: 687b ldr r3, [r7, #4] + 800dc68: 2b00 cmp r3, #0 + 800dc6a: d101 bne.n 800dc70 + 800dc6c: 2301 movs r3, #1 + 800dc6e: e000 b.n 800dc72 + 800dc70: 2300 movs r3, #0 + 800dc72: 2b00 cmp r3, #0 + 800dc74: d10b bne.n 800dc8e + 800dc76: f04f 0350 mov.w r3, #80 ; 0x50 + 800dc7a: b672 cpsid i + 800dc7c: f383 8811 msr BASEPRI, r3 + 800dc80: f3bf 8f6f isb sy + 800dc84: f3bf 8f4f dsb sy + 800dc88: b662 cpsie i + 800dc8a: 61fb str r3, [r7, #28] + 800dc8c: e7fe b.n 800dc8c /*lint -save -e904 This function relaxes the coding standard somewhat to allow return statements within the function itself. This is done in the interest of execution time efficiency. */ for( ;; ) { taskENTER_CRITICAL(); - 800dc8a: f001 ff55 bl 800fb38 + 800dc8e: f001 ff5b bl 800fb48 { /* Is there room on the queue now? The running task must be the highest priority task wanting to access the queue. If the head item in the queue is to be overwritten then it does not matter if the queue is full. */ if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) ) - 800dc8e: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dc90: 6b9a ldr r2, [r3, #56] ; 0x38 800dc92: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dc94: 6bdb ldr r3, [r3, #60] ; 0x3c - 800dc96: 429a cmp r2, r3 - 800dc98: d302 bcc.n 800dca0 - 800dc9a: 683b ldr r3, [r7, #0] - 800dc9c: 2b02 cmp r3, #2 - 800dc9e: d129 bne.n 800dcf4 + 800dc94: 6b9a ldr r2, [r3, #56] ; 0x38 + 800dc96: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dc98: 6bdb ldr r3, [r3, #60] ; 0x3c + 800dc9a: 429a cmp r2, r3 + 800dc9c: d302 bcc.n 800dca4 + 800dc9e: 683b ldr r3, [r7, #0] + 800dca0: 2b02 cmp r3, #2 + 800dca2: d129 bne.n 800dcf8 } } } #else /* configUSE_QUEUE_SETS */ { xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition ); - 800dca0: 683a ldr r2, [r7, #0] - 800dca2: 68b9 ldr r1, [r7, #8] - 800dca4: 6b38 ldr r0, [r7, #48] ; 0x30 - 800dca6: f000 fc4a bl 800e53e - 800dcaa: 62f8 str r0, [r7, #44] ; 0x2c + 800dca4: 683a ldr r2, [r7, #0] + 800dca6: 68b9 ldr r1, [r7, #8] + 800dca8: 6b38 ldr r0, [r7, #48] ; 0x30 + 800dcaa: f000 fc4a bl 800e542 + 800dcae: 62f8 str r0, [r7, #44] ; 0x2c /* If there was a task waiting for data to arrive on the queue then unblock it now. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - 800dcac: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dcae: 6a5b ldr r3, [r3, #36] ; 0x24 - 800dcb0: 2b00 cmp r3, #0 - 800dcb2: d010 beq.n 800dcd6 + 800dcb0: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dcb2: 6a5b ldr r3, [r3, #36] ; 0x24 + 800dcb4: 2b00 cmp r3, #0 + 800dcb6: d010 beq.n 800dcda { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - 800dcb4: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dcb6: 3324 adds r3, #36 ; 0x24 - 800dcb8: 4618 mov r0, r3 - 800dcba: f001 fa3b bl 800f134 - 800dcbe: 4603 mov r3, r0 - 800dcc0: 2b00 cmp r3, #0 - 800dcc2: d013 beq.n 800dcec + 800dcb8: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dcba: 3324 adds r3, #36 ; 0x24 + 800dcbc: 4618 mov r0, r3 + 800dcbe: f001 fa3b bl 800f138 + 800dcc2: 4603 mov r3, r0 + 800dcc4: 2b00 cmp r3, #0 + 800dcc6: d013 beq.n 800dcf0 { /* The unblocked task has a priority higher than our own so yield immediately. Yes it is ok to do this from within the critical section - the kernel takes care of that. */ queueYIELD_IF_USING_PREEMPTION(); - 800dcc4: 4b3f ldr r3, [pc, #252] ; (800ddc4 ) - 800dcc6: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800dcca: 601a str r2, [r3, #0] - 800dccc: f3bf 8f4f dsb sy - 800dcd0: f3bf 8f6f isb sy - 800dcd4: e00a b.n 800dcec + 800dcc8: 4b3f ldr r3, [pc, #252] ; (800ddc8 ) + 800dcca: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800dcce: 601a str r2, [r3, #0] + 800dcd0: f3bf 8f4f dsb sy + 800dcd4: f3bf 8f6f isb sy + 800dcd8: e00a b.n 800dcf0 else { mtCOVERAGE_TEST_MARKER(); } } else if( xYieldRequired != pdFALSE ) - 800dcd6: 6afb ldr r3, [r7, #44] ; 0x2c - 800dcd8: 2b00 cmp r3, #0 - 800dcda: d007 beq.n 800dcec + 800dcda: 6afb ldr r3, [r7, #44] ; 0x2c + 800dcdc: 2b00 cmp r3, #0 + 800dcde: d007 beq.n 800dcf0 { /* This path is a special case that will only get executed if the task was holding multiple mutexes and the mutexes were given back in an order that is different to that in which they were taken. */ queueYIELD_IF_USING_PREEMPTION(); - 800dcdc: 4b39 ldr r3, [pc, #228] ; (800ddc4 ) - 800dcde: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800dce2: 601a str r2, [r3, #0] - 800dce4: f3bf 8f4f dsb sy - 800dce8: f3bf 8f6f isb sy + 800dce0: 4b39 ldr r3, [pc, #228] ; (800ddc8 ) + 800dce2: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800dce6: 601a str r2, [r3, #0] + 800dce8: f3bf 8f4f dsb sy + 800dcec: f3bf 8f6f isb sy mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_QUEUE_SETS */ taskEXIT_CRITICAL(); - 800dcec: f001 ff56 bl 800fb9c + 800dcf0: f001 ff5c bl 800fbac return pdPASS; - 800dcf0: 2301 movs r3, #1 - 800dcf2: e063 b.n 800ddbc + 800dcf4: 2301 movs r3, #1 + 800dcf6: e063 b.n 800ddc0 } else { if( xTicksToWait == ( TickType_t ) 0 ) - 800dcf4: 687b ldr r3, [r7, #4] - 800dcf6: 2b00 cmp r3, #0 - 800dcf8: d103 bne.n 800dd02 + 800dcf8: 687b ldr r3, [r7, #4] + 800dcfa: 2b00 cmp r3, #0 + 800dcfc: d103 bne.n 800dd06 { /* The queue was full and no block time is specified (or the block time has expired) so leave now. */ taskEXIT_CRITICAL(); - 800dcfa: f001 ff4f bl 800fb9c + 800dcfe: f001 ff55 bl 800fbac /* Return to the original privilege level before exiting the function. */ traceQUEUE_SEND_FAILED( pxQueue ); return errQUEUE_FULL; - 800dcfe: 2300 movs r3, #0 - 800dd00: e05c b.n 800ddbc + 800dd02: 2300 movs r3, #0 + 800dd04: e05c b.n 800ddc0 } else if( xEntryTimeSet == pdFALSE ) - 800dd02: 6b7b ldr r3, [r7, #52] ; 0x34 - 800dd04: 2b00 cmp r3, #0 - 800dd06: d106 bne.n 800dd16 + 800dd06: 6b7b ldr r3, [r7, #52] ; 0x34 + 800dd08: 2b00 cmp r3, #0 + 800dd0a: d106 bne.n 800dd1a { /* The queue was full and a block time was specified so configure the timeout structure. */ vTaskInternalSetTimeOutState( &xTimeOut ); - 800dd08: f107 0314 add.w r3, r7, #20 - 800dd0c: 4618 mov r0, r3 - 800dd0e: f001 fa75 bl 800f1fc + 800dd0c: f107 0314 add.w r3, r7, #20 + 800dd10: 4618 mov r0, r3 + 800dd12: f001 fa75 bl 800f200 xEntryTimeSet = pdTRUE; - 800dd12: 2301 movs r3, #1 - 800dd14: 637b str r3, [r7, #52] ; 0x34 + 800dd16: 2301 movs r3, #1 + 800dd18: 637b str r3, [r7, #52] ; 0x34 /* Entry time was already set. */ mtCOVERAGE_TEST_MARKER(); } } } taskEXIT_CRITICAL(); - 800dd16: f001 ff41 bl 800fb9c + 800dd1a: f001 ff47 bl 800fbac /* Interrupts and other tasks can send to and receive from the queue now the critical section has been exited. */ vTaskSuspendAll(); - 800dd1a: f000 ffdb bl 800ecd4 + 800dd1e: f000 ffdb bl 800ecd8 prvLockQueue( pxQueue ); - 800dd1e: f001 ff0b bl 800fb38 - 800dd22: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dd24: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 800dd28: b25b sxtb r3, r3 - 800dd2a: f1b3 3fff cmp.w r3, #4294967295 - 800dd2e: d103 bne.n 800dd38 - 800dd30: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dd32: 2200 movs r2, #0 - 800dd34: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 800dd38: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dd3a: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 800dd3e: b25b sxtb r3, r3 - 800dd40: f1b3 3fff cmp.w r3, #4294967295 - 800dd44: d103 bne.n 800dd4e - 800dd46: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dd48: 2200 movs r2, #0 - 800dd4a: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 800dd4e: f001 ff25 bl 800fb9c + 800dd22: f001 ff11 bl 800fb48 + 800dd26: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dd28: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 + 800dd2c: b25b sxtb r3, r3 + 800dd2e: f1b3 3fff cmp.w r3, #4294967295 + 800dd32: d103 bne.n 800dd3c + 800dd34: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dd36: 2200 movs r2, #0 + 800dd38: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800dd3c: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dd3e: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 800dd42: b25b sxtb r3, r3 + 800dd44: f1b3 3fff cmp.w r3, #4294967295 + 800dd48: d103 bne.n 800dd52 + 800dd4a: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dd4c: 2200 movs r2, #0 + 800dd4e: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800dd52: f001 ff2b bl 800fbac /* Update the timeout state to see if it has expired yet. */ if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - 800dd52: 1d3a adds r2, r7, #4 - 800dd54: f107 0314 add.w r3, r7, #20 - 800dd58: 4611 mov r1, r2 - 800dd5a: 4618 mov r0, r3 - 800dd5c: f001 fa64 bl 800f228 - 800dd60: 4603 mov r3, r0 - 800dd62: 2b00 cmp r3, #0 - 800dd64: d124 bne.n 800ddb0 + 800dd56: 1d3a adds r2, r7, #4 + 800dd58: f107 0314 add.w r3, r7, #20 + 800dd5c: 4611 mov r1, r2 + 800dd5e: 4618 mov r0, r3 + 800dd60: f001 fa64 bl 800f22c + 800dd64: 4603 mov r3, r0 + 800dd66: 2b00 cmp r3, #0 + 800dd68: d124 bne.n 800ddb4 { if( prvIsQueueFull( pxQueue ) != pdFALSE ) - 800dd66: 6b38 ldr r0, [r7, #48] ; 0x30 - 800dd68: f000 fce1 bl 800e72e - 800dd6c: 4603 mov r3, r0 - 800dd6e: 2b00 cmp r3, #0 - 800dd70: d018 beq.n 800dda4 + 800dd6a: 6b38 ldr r0, [r7, #48] ; 0x30 + 800dd6c: f000 fce1 bl 800e732 + 800dd70: 4603 mov r3, r0 + 800dd72: 2b00 cmp r3, #0 + 800dd74: d018 beq.n 800dda8 { traceBLOCKING_ON_QUEUE_SEND( pxQueue ); vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait ); - 800dd72: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dd74: 3310 adds r3, #16 - 800dd76: 687a ldr r2, [r7, #4] - 800dd78: 4611 mov r1, r2 - 800dd7a: 4618 mov r0, r3 - 800dd7c: f001 f9b4 bl 800f0e8 + 800dd76: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dd78: 3310 adds r3, #16 + 800dd7a: 687a ldr r2, [r7, #4] + 800dd7c: 4611 mov r1, r2 + 800dd7e: 4618 mov r0, r3 + 800dd80: f001 f9b4 bl 800f0ec /* Unlocking the queue means queue events can effect the event list. It is possible that interrupts occurring now remove this task from the event list again - but as the scheduler is suspended the task will go onto the pending ready last instead of the actual ready list. */ prvUnlockQueue( pxQueue ); - 800dd80: 6b38 ldr r0, [r7, #48] ; 0x30 - 800dd82: f000 fc6c bl 800e65e + 800dd84: 6b38 ldr r0, [r7, #48] ; 0x30 + 800dd86: f000 fc6c bl 800e662 /* Resuming the scheduler will move tasks from the pending ready list into the ready list - so it is feasible that this task is already in a ready list before it yields - in which case the yield will not cause a context switch unless there is also a higher priority task in the pending ready list. */ if( xTaskResumeAll() == pdFALSE ) - 800dd86: f000 ffb3 bl 800ecf0 - 800dd8a: 4603 mov r3, r0 - 800dd8c: 2b00 cmp r3, #0 - 800dd8e: f47f af7c bne.w 800dc8a + 800dd8a: f000 ffb3 bl 800ecf4 + 800dd8e: 4603 mov r3, r0 + 800dd90: 2b00 cmp r3, #0 + 800dd92: f47f af7c bne.w 800dc8e { portYIELD_WITHIN_API(); - 800dd92: 4b0c ldr r3, [pc, #48] ; (800ddc4 ) - 800dd94: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800dd98: 601a str r2, [r3, #0] - 800dd9a: f3bf 8f4f dsb sy - 800dd9e: f3bf 8f6f isb sy - 800dda2: e772 b.n 800dc8a + 800dd96: 4b0c ldr r3, [pc, #48] ; (800ddc8 ) + 800dd98: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800dd9c: 601a str r2, [r3, #0] + 800dd9e: f3bf 8f4f dsb sy + 800dda2: f3bf 8f6f isb sy + 800dda6: e772 b.n 800dc8e } } else { /* Try again. */ prvUnlockQueue( pxQueue ); - 800dda4: 6b38 ldr r0, [r7, #48] ; 0x30 - 800dda6: f000 fc5a bl 800e65e + 800dda8: 6b38 ldr r0, [r7, #48] ; 0x30 + 800ddaa: f000 fc5a bl 800e662 ( void ) xTaskResumeAll(); - 800ddaa: f000 ffa1 bl 800ecf0 - 800ddae: e76c b.n 800dc8a + 800ddae: f000 ffa1 bl 800ecf4 + 800ddb2: e76c b.n 800dc8e } } else { /* The timeout has expired. */ prvUnlockQueue( pxQueue ); - 800ddb0: 6b38 ldr r0, [r7, #48] ; 0x30 - 800ddb2: f000 fc54 bl 800e65e + 800ddb4: 6b38 ldr r0, [r7, #48] ; 0x30 + 800ddb6: f000 fc54 bl 800e662 ( void ) xTaskResumeAll(); - 800ddb6: f000 ff9b bl 800ecf0 + 800ddba: f000 ff9b bl 800ecf4 traceQUEUE_SEND_FAILED( pxQueue ); return errQUEUE_FULL; - 800ddba: 2300 movs r3, #0 + 800ddbe: 2300 movs r3, #0 } } /*lint -restore */ } - 800ddbc: 4618 mov r0, r3 - 800ddbe: 3738 adds r7, #56 ; 0x38 - 800ddc0: 46bd mov sp, r7 - 800ddc2: bd80 pop {r7, pc} - 800ddc4: e000ed04 .word 0xe000ed04 + 800ddc0: 4618 mov r0, r3 + 800ddc2: 3738 adds r7, #56 ; 0x38 + 800ddc4: 46bd mov sp, r7 + 800ddc6: bd80 pop {r7, pc} + 800ddc8: e000ed04 .word 0xe000ed04 -0800ddc8 : +0800ddcc : /*-----------------------------------------------------------*/ BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition ) { - 800ddc8: b580 push {r7, lr} - 800ddca: b08e sub sp, #56 ; 0x38 - 800ddcc: af00 add r7, sp, #0 - 800ddce: 60f8 str r0, [r7, #12] - 800ddd0: 60b9 str r1, [r7, #8] - 800ddd2: 607a str r2, [r7, #4] - 800ddd4: 603b str r3, [r7, #0] + 800ddcc: b580 push {r7, lr} + 800ddce: b08e sub sp, #56 ; 0x38 + 800ddd0: af00 add r7, sp, #0 + 800ddd2: 60f8 str r0, [r7, #12] + 800ddd4: 60b9 str r1, [r7, #8] + 800ddd6: 607a str r2, [r7, #4] + 800ddd8: 603b str r3, [r7, #0] BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; Queue_t * const pxQueue = xQueue; - 800ddd6: 68fb ldr r3, [r7, #12] - 800ddd8: 633b str r3, [r7, #48] ; 0x30 + 800ddda: 68fb ldr r3, [r7, #12] + 800dddc: 633b str r3, [r7, #48] ; 0x30 configASSERT( pxQueue ); - 800ddda: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dddc: 2b00 cmp r3, #0 - 800ddde: d10b bne.n 800ddf8 - 800dde0: f04f 0350 mov.w r3, #80 ; 0x50 - 800dde4: b672 cpsid i - 800dde6: f383 8811 msr BASEPRI, r3 - 800ddea: f3bf 8f6f isb sy - 800ddee: f3bf 8f4f dsb sy - 800ddf2: b662 cpsie i - 800ddf4: 627b str r3, [r7, #36] ; 0x24 - 800ddf6: e7fe b.n 800ddf6 + 800ddde: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dde0: 2b00 cmp r3, #0 + 800dde2: d10b bne.n 800ddfc + 800dde4: f04f 0350 mov.w r3, #80 ; 0x50 + 800dde8: b672 cpsid i + 800ddea: f383 8811 msr BASEPRI, r3 + 800ddee: f3bf 8f6f isb sy + 800ddf2: f3bf 8f4f dsb sy + 800ddf6: b662 cpsie i + 800ddf8: 627b str r3, [r7, #36] ; 0x24 + 800ddfa: e7fe b.n 800ddfa configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - 800ddf8: 68bb ldr r3, [r7, #8] - 800ddfa: 2b00 cmp r3, #0 - 800ddfc: d103 bne.n 800de06 - 800ddfe: 6b3b ldr r3, [r7, #48] ; 0x30 - 800de00: 6c1b ldr r3, [r3, #64] ; 0x40 - 800de02: 2b00 cmp r3, #0 - 800de04: d101 bne.n 800de0a - 800de06: 2301 movs r3, #1 - 800de08: e000 b.n 800de0c - 800de0a: 2300 movs r3, #0 - 800de0c: 2b00 cmp r3, #0 - 800de0e: d10b bne.n 800de28 - 800de10: f04f 0350 mov.w r3, #80 ; 0x50 - 800de14: b672 cpsid i - 800de16: f383 8811 msr BASEPRI, r3 - 800de1a: f3bf 8f6f isb sy - 800de1e: f3bf 8f4f dsb sy - 800de22: b662 cpsie i - 800de24: 623b str r3, [r7, #32] - 800de26: e7fe b.n 800de26 + 800ddfc: 68bb ldr r3, [r7, #8] + 800ddfe: 2b00 cmp r3, #0 + 800de00: d103 bne.n 800de0a + 800de02: 6b3b ldr r3, [r7, #48] ; 0x30 + 800de04: 6c1b ldr r3, [r3, #64] ; 0x40 + 800de06: 2b00 cmp r3, #0 + 800de08: d101 bne.n 800de0e + 800de0a: 2301 movs r3, #1 + 800de0c: e000 b.n 800de10 + 800de0e: 2300 movs r3, #0 + 800de10: 2b00 cmp r3, #0 + 800de12: d10b bne.n 800de2c + 800de14: f04f 0350 mov.w r3, #80 ; 0x50 + 800de18: b672 cpsid i + 800de1a: f383 8811 msr BASEPRI, r3 + 800de1e: f3bf 8f6f isb sy + 800de22: f3bf 8f4f dsb sy + 800de26: b662 cpsie i + 800de28: 623b str r3, [r7, #32] + 800de2a: e7fe b.n 800de2a configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) ); - 800de28: 683b ldr r3, [r7, #0] - 800de2a: 2b02 cmp r3, #2 - 800de2c: d103 bne.n 800de36 - 800de2e: 6b3b ldr r3, [r7, #48] ; 0x30 - 800de30: 6bdb ldr r3, [r3, #60] ; 0x3c - 800de32: 2b01 cmp r3, #1 - 800de34: d101 bne.n 800de3a - 800de36: 2301 movs r3, #1 - 800de38: e000 b.n 800de3c - 800de3a: 2300 movs r3, #0 - 800de3c: 2b00 cmp r3, #0 - 800de3e: d10b bne.n 800de58 - 800de40: f04f 0350 mov.w r3, #80 ; 0x50 - 800de44: b672 cpsid i - 800de46: f383 8811 msr BASEPRI, r3 - 800de4a: f3bf 8f6f isb sy - 800de4e: f3bf 8f4f dsb sy - 800de52: b662 cpsie i - 800de54: 61fb str r3, [r7, #28] - 800de56: e7fe b.n 800de56 + 800de2c: 683b ldr r3, [r7, #0] + 800de2e: 2b02 cmp r3, #2 + 800de30: d103 bne.n 800de3a + 800de32: 6b3b ldr r3, [r7, #48] ; 0x30 + 800de34: 6bdb ldr r3, [r3, #60] ; 0x3c + 800de36: 2b01 cmp r3, #1 + 800de38: d101 bne.n 800de3e + 800de3a: 2301 movs r3, #1 + 800de3c: e000 b.n 800de40 + 800de3e: 2300 movs r3, #0 + 800de40: 2b00 cmp r3, #0 + 800de42: d10b bne.n 800de5c + 800de44: f04f 0350 mov.w r3, #80 ; 0x50 + 800de48: b672 cpsid i + 800de4a: f383 8811 msr BASEPRI, r3 + 800de4e: f3bf 8f6f isb sy + 800de52: f3bf 8f4f dsb sy + 800de56: b662 cpsie i + 800de58: 61fb str r3, [r7, #28] + 800de5a: e7fe b.n 800de5a that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); - 800de58: f001 ff4e bl 800fcf8 + 800de5c: f001 ff54 bl 800fd08 portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void ) { uint32_t ulOriginalBASEPRI, ulNewBASEPRI; __asm volatile - 800de5c: f3ef 8211 mrs r2, BASEPRI - 800de60: f04f 0350 mov.w r3, #80 ; 0x50 - 800de64: b672 cpsid i - 800de66: f383 8811 msr BASEPRI, r3 - 800de6a: f3bf 8f6f isb sy - 800de6e: f3bf 8f4f dsb sy - 800de72: b662 cpsie i - 800de74: 61ba str r2, [r7, #24] - 800de76: 617b str r3, [r7, #20] + 800de60: f3ef 8211 mrs r2, BASEPRI + 800de64: f04f 0350 mov.w r3, #80 ; 0x50 + 800de68: b672 cpsid i + 800de6a: f383 8811 msr BASEPRI, r3 + 800de6e: f3bf 8f6f isb sy + 800de72: f3bf 8f4f dsb sy + 800de76: b662 cpsie i + 800de78: 61ba str r2, [r7, #24] + 800de7a: 617b str r3, [r7, #20] :"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory" ); /* This return will not be reached but is necessary to prevent compiler warnings. */ return ulOriginalBASEPRI; - 800de78: 69bb ldr r3, [r7, #24] + 800de7c: 69bb ldr r3, [r7, #24] /* Similar to xQueueGenericSend, except without blocking if there is no room in the queue. Also don't directly wake a task that was blocked on a queue read, instead return a flag to say whether a context switch is required or not (i.e. has a task with a higher priority than us been woken by this post). */ uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - 800de7a: 62fb str r3, [r7, #44] ; 0x2c + 800de7e: 62fb str r3, [r7, #44] ; 0x2c { if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) ) - 800de7c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800de7e: 6b9a ldr r2, [r3, #56] ; 0x38 800de80: 6b3b ldr r3, [r7, #48] ; 0x30 - 800de82: 6bdb ldr r3, [r3, #60] ; 0x3c - 800de84: 429a cmp r2, r3 - 800de86: d302 bcc.n 800de8e - 800de88: 683b ldr r3, [r7, #0] - 800de8a: 2b02 cmp r3, #2 - 800de8c: d12c bne.n 800dee8 + 800de82: 6b9a ldr r2, [r3, #56] ; 0x38 + 800de84: 6b3b ldr r3, [r7, #48] ; 0x30 + 800de86: 6bdb ldr r3, [r3, #60] ; 0x3c + 800de88: 429a cmp r2, r3 + 800de8a: d302 bcc.n 800de92 + 800de8c: 683b ldr r3, [r7, #0] + 800de8e: 2b02 cmp r3, #2 + 800de90: d12c bne.n 800deec { const int8_t cTxLock = pxQueue->cTxLock; - 800de8e: 6b3b ldr r3, [r7, #48] ; 0x30 - 800de90: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 800de94: f887 302b strb.w r3, [r7, #43] ; 0x2b + 800de92: 6b3b ldr r3, [r7, #48] ; 0x30 + 800de94: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 800de98: f887 302b strb.w r3, [r7, #43] ; 0x2b /* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a semaphore or mutex. That means prvCopyDataToQueue() cannot result in a task disinheriting a priority and prvCopyDataToQueue() can be called here even though the disinherit function does not check if the scheduler is suspended before accessing the ready lists. */ ( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition ); - 800de98: 683a ldr r2, [r7, #0] - 800de9a: 68b9 ldr r1, [r7, #8] - 800de9c: 6b38 ldr r0, [r7, #48] ; 0x30 - 800de9e: f000 fb4e bl 800e53e + 800de9c: 683a ldr r2, [r7, #0] + 800de9e: 68b9 ldr r1, [r7, #8] + 800dea0: 6b38 ldr r0, [r7, #48] ; 0x30 + 800dea2: f000 fb4e bl 800e542 /* The event list is not altered if the queue is locked. This will be done when the queue is unlocked later. */ if( cTxLock == queueUNLOCKED ) - 800dea2: f997 302b ldrsb.w r3, [r7, #43] ; 0x2b - 800dea6: f1b3 3fff cmp.w r3, #4294967295 - 800deaa: d112 bne.n 800ded2 + 800dea6: f997 302b ldrsb.w r3, [r7, #43] ; 0x2b + 800deaa: f1b3 3fff cmp.w r3, #4294967295 + 800deae: d112 bne.n 800ded6 } } } #else /* configUSE_QUEUE_SETS */ { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - 800deac: 6b3b ldr r3, [r7, #48] ; 0x30 - 800deae: 6a5b ldr r3, [r3, #36] ; 0x24 - 800deb0: 2b00 cmp r3, #0 - 800deb2: d016 beq.n 800dee2 + 800deb0: 6b3b ldr r3, [r7, #48] ; 0x30 + 800deb2: 6a5b ldr r3, [r3, #36] ; 0x24 + 800deb4: 2b00 cmp r3, #0 + 800deb6: d016 beq.n 800dee6 { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - 800deb4: 6b3b ldr r3, [r7, #48] ; 0x30 - 800deb6: 3324 adds r3, #36 ; 0x24 - 800deb8: 4618 mov r0, r3 - 800deba: f001 f93b bl 800f134 - 800debe: 4603 mov r3, r0 - 800dec0: 2b00 cmp r3, #0 - 800dec2: d00e beq.n 800dee2 + 800deb8: 6b3b ldr r3, [r7, #48] ; 0x30 + 800deba: 3324 adds r3, #36 ; 0x24 + 800debc: 4618 mov r0, r3 + 800debe: f001 f93b bl 800f138 + 800dec2: 4603 mov r3, r0 + 800dec4: 2b00 cmp r3, #0 + 800dec6: d00e beq.n 800dee6 { /* The task waiting has a higher priority so record that a context switch is required. */ if( pxHigherPriorityTaskWoken != NULL ) - 800dec4: 687b ldr r3, [r7, #4] - 800dec6: 2b00 cmp r3, #0 - 800dec8: d00b beq.n 800dee2 + 800dec8: 687b ldr r3, [r7, #4] + 800deca: 2b00 cmp r3, #0 + 800decc: d00b beq.n 800dee6 { *pxHigherPriorityTaskWoken = pdTRUE; - 800deca: 687b ldr r3, [r7, #4] - 800decc: 2201 movs r2, #1 - 800dece: 601a str r2, [r3, #0] - 800ded0: e007 b.n 800dee2 + 800dece: 687b ldr r3, [r7, #4] + 800ded0: 2201 movs r2, #1 + 800ded2: 601a str r2, [r3, #0] + 800ded4: e007 b.n 800dee6 } else { /* Increment the lock count so the task that unlocks the queue knows that data was posted while it was locked. */ pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 ); - 800ded2: f897 302b ldrb.w r3, [r7, #43] ; 0x2b - 800ded6: 3301 adds r3, #1 - 800ded8: b2db uxtb r3, r3 - 800deda: b25a sxtb r2, r3 - 800dedc: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dede: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800ded6: f897 302b ldrb.w r3, [r7, #43] ; 0x2b + 800deda: 3301 adds r3, #1 + 800dedc: b2db uxtb r3, r3 + 800dede: b25a sxtb r2, r3 + 800dee0: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dee2: f883 2045 strb.w r2, [r3, #69] ; 0x45 } xReturn = pdPASS; - 800dee2: 2301 movs r3, #1 - 800dee4: 637b str r3, [r7, #52] ; 0x34 + 800dee6: 2301 movs r3, #1 + 800dee8: 637b str r3, [r7, #52] ; 0x34 { - 800dee6: e001 b.n 800deec + 800deea: e001 b.n 800def0 } else { traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ); xReturn = errQUEUE_FULL; - 800dee8: 2300 movs r3, #0 - 800deea: 637b str r3, [r7, #52] ; 0x34 - 800deec: 6afb ldr r3, [r7, #44] ; 0x2c - 800deee: 613b str r3, [r7, #16] + 800deec: 2300 movs r3, #0 + 800deee: 637b str r3, [r7, #52] ; 0x34 + 800def0: 6afb ldr r3, [r7, #44] ; 0x2c + 800def2: 613b str r3, [r7, #16] } /*-----------------------------------------------------------*/ portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue ) { __asm volatile - 800def0: 693b ldr r3, [r7, #16] - 800def2: f383 8811 msr BASEPRI, r3 + 800def4: 693b ldr r3, [r7, #16] + 800def6: f383 8811 msr BASEPRI, r3 } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; - 800def6: 6b7b ldr r3, [r7, #52] ; 0x34 + 800defa: 6b7b ldr r3, [r7, #52] ; 0x34 } - 800def8: 4618 mov r0, r3 - 800defa: 3738 adds r7, #56 ; 0x38 - 800defc: 46bd mov sp, r7 - 800defe: bd80 pop {r7, pc} + 800defc: 4618 mov r0, r3 + 800defe: 3738 adds r7, #56 ; 0x38 + 800df00: 46bd mov sp, r7 + 800df02: bd80 pop {r7, pc} -0800df00 : +0800df04 : /*-----------------------------------------------------------*/ BaseType_t xQueueGiveFromISR( QueueHandle_t xQueue, BaseType_t * const pxHigherPriorityTaskWoken ) { - 800df00: b580 push {r7, lr} - 800df02: b08e sub sp, #56 ; 0x38 - 800df04: af00 add r7, sp, #0 - 800df06: 6078 str r0, [r7, #4] - 800df08: 6039 str r1, [r7, #0] + 800df04: b580 push {r7, lr} + 800df06: b08e sub sp, #56 ; 0x38 + 800df08: af00 add r7, sp, #0 + 800df0a: 6078 str r0, [r7, #4] + 800df0c: 6039 str r1, [r7, #0] BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; Queue_t * const pxQueue = xQueue; - 800df0a: 687b ldr r3, [r7, #4] - 800df0c: 633b str r3, [r7, #48] ; 0x30 + 800df0e: 687b ldr r3, [r7, #4] + 800df10: 633b str r3, [r7, #48] ; 0x30 item size is 0. Don't directly wake a task that was blocked on a queue read, instead return a flag to say whether a context switch is required or not (i.e. has a task with a higher priority than us been woken by this post). */ configASSERT( pxQueue ); - 800df0e: 6b3b ldr r3, [r7, #48] ; 0x30 - 800df10: 2b00 cmp r3, #0 - 800df12: d10b bne.n 800df2c + 800df12: 6b3b ldr r3, [r7, #48] ; 0x30 + 800df14: 2b00 cmp r3, #0 + 800df16: d10b bne.n 800df30 __asm volatile - 800df14: f04f 0350 mov.w r3, #80 ; 0x50 - 800df18: b672 cpsid i - 800df1a: f383 8811 msr BASEPRI, r3 - 800df1e: f3bf 8f6f isb sy - 800df22: f3bf 8f4f dsb sy - 800df26: b662 cpsie i - 800df28: 623b str r3, [r7, #32] - 800df2a: e7fe b.n 800df2a + 800df18: f04f 0350 mov.w r3, #80 ; 0x50 + 800df1c: b672 cpsid i + 800df1e: f383 8811 msr BASEPRI, r3 + 800df22: f3bf 8f6f isb sy + 800df26: f3bf 8f4f dsb sy + 800df2a: b662 cpsie i + 800df2c: 623b str r3, [r7, #32] + 800df2e: e7fe b.n 800df2e /* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR() if the item size is not 0. */ configASSERT( pxQueue->uxItemSize == 0 ); - 800df2c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800df2e: 6c1b ldr r3, [r3, #64] ; 0x40 - 800df30: 2b00 cmp r3, #0 - 800df32: d00b beq.n 800df4c - 800df34: f04f 0350 mov.w r3, #80 ; 0x50 - 800df38: b672 cpsid i - 800df3a: f383 8811 msr BASEPRI, r3 - 800df3e: f3bf 8f6f isb sy - 800df42: f3bf 8f4f dsb sy - 800df46: b662 cpsie i - 800df48: 61fb str r3, [r7, #28] - 800df4a: e7fe b.n 800df4a + 800df30: 6b3b ldr r3, [r7, #48] ; 0x30 + 800df32: 6c1b ldr r3, [r3, #64] ; 0x40 + 800df34: 2b00 cmp r3, #0 + 800df36: d00b beq.n 800df50 + 800df38: f04f 0350 mov.w r3, #80 ; 0x50 + 800df3c: b672 cpsid i + 800df3e: f383 8811 msr BASEPRI, r3 + 800df42: f3bf 8f6f isb sy + 800df46: f3bf 8f4f dsb sy + 800df4a: b662 cpsie i + 800df4c: 61fb str r3, [r7, #28] + 800df4e: e7fe b.n 800df4e /* Normally a mutex would not be given from an interrupt, especially if there is a mutex holder, as priority inheritance makes no sense for an interrupts, only tasks. */ configASSERT( !( ( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) && ( pxQueue->u.xSemaphore.xMutexHolder != NULL ) ) ); - 800df4c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800df4e: 681b ldr r3, [r3, #0] - 800df50: 2b00 cmp r3, #0 - 800df52: d103 bne.n 800df5c - 800df54: 6b3b ldr r3, [r7, #48] ; 0x30 - 800df56: 689b ldr r3, [r3, #8] - 800df58: 2b00 cmp r3, #0 - 800df5a: d101 bne.n 800df60 - 800df5c: 2301 movs r3, #1 - 800df5e: e000 b.n 800df62 - 800df60: 2300 movs r3, #0 - 800df62: 2b00 cmp r3, #0 - 800df64: d10b bne.n 800df7e - 800df66: f04f 0350 mov.w r3, #80 ; 0x50 - 800df6a: b672 cpsid i - 800df6c: f383 8811 msr BASEPRI, r3 - 800df70: f3bf 8f6f isb sy - 800df74: f3bf 8f4f dsb sy - 800df78: b662 cpsie i - 800df7a: 61bb str r3, [r7, #24] - 800df7c: e7fe b.n 800df7c + 800df50: 6b3b ldr r3, [r7, #48] ; 0x30 + 800df52: 681b ldr r3, [r3, #0] + 800df54: 2b00 cmp r3, #0 + 800df56: d103 bne.n 800df60 + 800df58: 6b3b ldr r3, [r7, #48] ; 0x30 + 800df5a: 689b ldr r3, [r3, #8] + 800df5c: 2b00 cmp r3, #0 + 800df5e: d101 bne.n 800df64 + 800df60: 2301 movs r3, #1 + 800df62: e000 b.n 800df66 + 800df64: 2300 movs r3, #0 + 800df66: 2b00 cmp r3, #0 + 800df68: d10b bne.n 800df82 + 800df6a: f04f 0350 mov.w r3, #80 ; 0x50 + 800df6e: b672 cpsid i + 800df70: f383 8811 msr BASEPRI, r3 + 800df74: f3bf 8f6f isb sy + 800df78: f3bf 8f4f dsb sy + 800df7c: b662 cpsie i + 800df7e: 61bb str r3, [r7, #24] + 800df80: e7fe b.n 800df80 that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); - 800df7e: f001 febb bl 800fcf8 + 800df82: f001 fec1 bl 800fd08 __asm volatile - 800df82: f3ef 8211 mrs r2, BASEPRI - 800df86: f04f 0350 mov.w r3, #80 ; 0x50 - 800df8a: b672 cpsid i - 800df8c: f383 8811 msr BASEPRI, r3 - 800df90: f3bf 8f6f isb sy - 800df94: f3bf 8f4f dsb sy - 800df98: b662 cpsie i - 800df9a: 617a str r2, [r7, #20] - 800df9c: 613b str r3, [r7, #16] + 800df86: f3ef 8211 mrs r2, BASEPRI + 800df8a: f04f 0350 mov.w r3, #80 ; 0x50 + 800df8e: b672 cpsid i + 800df90: f383 8811 msr BASEPRI, r3 + 800df94: f3bf 8f6f isb sy + 800df98: f3bf 8f4f dsb sy + 800df9c: b662 cpsie i + 800df9e: 617a str r2, [r7, #20] + 800dfa0: 613b str r3, [r7, #16] return ulOriginalBASEPRI; - 800df9e: 697b ldr r3, [r7, #20] + 800dfa2: 697b ldr r3, [r7, #20] uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - 800dfa0: 62fb str r3, [r7, #44] ; 0x2c + 800dfa4: 62fb str r3, [r7, #44] ; 0x2c { const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - 800dfa2: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dfa4: 6b9b ldr r3, [r3, #56] ; 0x38 - 800dfa6: 62bb str r3, [r7, #40] ; 0x28 + 800dfa6: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dfa8: 6b9b ldr r3, [r3, #56] ; 0x38 + 800dfaa: 62bb str r3, [r7, #40] ; 0x28 /* When the queue is used to implement a semaphore no data is ever moved through the queue but it is still valid to see if the queue 'has space'. */ if( uxMessagesWaiting < pxQueue->uxLength ) - 800dfa8: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dfaa: 6bdb ldr r3, [r3, #60] ; 0x3c - 800dfac: 6aba ldr r2, [r7, #40] ; 0x28 - 800dfae: 429a cmp r2, r3 - 800dfb0: d22b bcs.n 800e00a + 800dfac: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dfae: 6bdb ldr r3, [r3, #60] ; 0x3c + 800dfb0: 6aba ldr r2, [r7, #40] ; 0x28 + 800dfb2: 429a cmp r2, r3 + 800dfb4: d22b bcs.n 800e00e { const int8_t cTxLock = pxQueue->cTxLock; - 800dfb2: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dfb4: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 800dfb8: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800dfb6: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dfb8: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 800dfbc: f887 3027 strb.w r3, [r7, #39] ; 0x27 holder - and if there is a mutex holder then the mutex cannot be given from an ISR. As this is the ISR version of the function it can be assumed there is no mutex holder and no need to determine if priority disinheritance is needed. Simply increase the count of messages (semaphores) available. */ pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1; - 800dfbc: 6abb ldr r3, [r7, #40] ; 0x28 - 800dfbe: 1c5a adds r2, r3, #1 - 800dfc0: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dfc2: 639a str r2, [r3, #56] ; 0x38 + 800dfc0: 6abb ldr r3, [r7, #40] ; 0x28 + 800dfc2: 1c5a adds r2, r3, #1 + 800dfc4: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dfc6: 639a str r2, [r3, #56] ; 0x38 /* The event list is not altered if the queue is locked. This will be done when the queue is unlocked later. */ if( cTxLock == queueUNLOCKED ) - 800dfc4: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 800dfc8: f1b3 3fff cmp.w r3, #4294967295 - 800dfcc: d112 bne.n 800dff4 + 800dfc8: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 + 800dfcc: f1b3 3fff cmp.w r3, #4294967295 + 800dfd0: d112 bne.n 800dff8 } } } #else /* configUSE_QUEUE_SETS */ { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - 800dfce: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dfd0: 6a5b ldr r3, [r3, #36] ; 0x24 - 800dfd2: 2b00 cmp r3, #0 - 800dfd4: d016 beq.n 800e004 + 800dfd2: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dfd4: 6a5b ldr r3, [r3, #36] ; 0x24 + 800dfd6: 2b00 cmp r3, #0 + 800dfd8: d016 beq.n 800e008 { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - 800dfd6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800dfd8: 3324 adds r3, #36 ; 0x24 - 800dfda: 4618 mov r0, r3 - 800dfdc: f001 f8aa bl 800f134 - 800dfe0: 4603 mov r3, r0 - 800dfe2: 2b00 cmp r3, #0 - 800dfe4: d00e beq.n 800e004 + 800dfda: 6b3b ldr r3, [r7, #48] ; 0x30 + 800dfdc: 3324 adds r3, #36 ; 0x24 + 800dfde: 4618 mov r0, r3 + 800dfe0: f001 f8aa bl 800f138 + 800dfe4: 4603 mov r3, r0 + 800dfe6: 2b00 cmp r3, #0 + 800dfe8: d00e beq.n 800e008 { /* The task waiting has a higher priority so record that a context switch is required. */ if( pxHigherPriorityTaskWoken != NULL ) - 800dfe6: 683b ldr r3, [r7, #0] - 800dfe8: 2b00 cmp r3, #0 - 800dfea: d00b beq.n 800e004 + 800dfea: 683b ldr r3, [r7, #0] + 800dfec: 2b00 cmp r3, #0 + 800dfee: d00b beq.n 800e008 { *pxHigherPriorityTaskWoken = pdTRUE; - 800dfec: 683b ldr r3, [r7, #0] - 800dfee: 2201 movs r2, #1 - 800dff0: 601a str r2, [r3, #0] - 800dff2: e007 b.n 800e004 + 800dff0: 683b ldr r3, [r7, #0] + 800dff2: 2201 movs r2, #1 + 800dff4: 601a str r2, [r3, #0] + 800dff6: e007 b.n 800e008 } else { /* Increment the lock count so the task that unlocks the queue knows that data was posted while it was locked. */ pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 ); - 800dff4: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800dff8: 3301 adds r3, #1 - 800dffa: b2db uxtb r3, r3 - 800dffc: b25a sxtb r2, r3 - 800dffe: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e000: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800dff8: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800dffc: 3301 adds r3, #1 + 800dffe: b2db uxtb r3, r3 + 800e000: b25a sxtb r2, r3 + 800e002: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e004: f883 2045 strb.w r2, [r3, #69] ; 0x45 } xReturn = pdPASS; - 800e004: 2301 movs r3, #1 - 800e006: 637b str r3, [r7, #52] ; 0x34 - 800e008: e001 b.n 800e00e + 800e008: 2301 movs r3, #1 + 800e00a: 637b str r3, [r7, #52] ; 0x34 + 800e00c: e001 b.n 800e012 } else { traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue ); xReturn = errQUEUE_FULL; - 800e00a: 2300 movs r3, #0 - 800e00c: 637b str r3, [r7, #52] ; 0x34 - 800e00e: 6afb ldr r3, [r7, #44] ; 0x2c - 800e010: 60fb str r3, [r7, #12] + 800e00e: 2300 movs r3, #0 + 800e010: 637b str r3, [r7, #52] ; 0x34 + 800e012: 6afb ldr r3, [r7, #44] ; 0x2c + 800e014: 60fb str r3, [r7, #12] __asm volatile - 800e012: 68fb ldr r3, [r7, #12] - 800e014: f383 8811 msr BASEPRI, r3 + 800e016: 68fb ldr r3, [r7, #12] + 800e018: f383 8811 msr BASEPRI, r3 } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; - 800e018: 6b7b ldr r3, [r7, #52] ; 0x34 + 800e01c: 6b7b ldr r3, [r7, #52] ; 0x34 } - 800e01a: 4618 mov r0, r3 - 800e01c: 3738 adds r7, #56 ; 0x38 - 800e01e: 46bd mov sp, r7 - 800e020: bd80 pop {r7, pc} + 800e01e: 4618 mov r0, r3 + 800e020: 3738 adds r7, #56 ; 0x38 + 800e022: 46bd mov sp, r7 + 800e024: bd80 pop {r7, pc} ... -0800e024 : +0800e028 : /*-----------------------------------------------------------*/ BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait ) { - 800e024: b580 push {r7, lr} - 800e026: b08c sub sp, #48 ; 0x30 - 800e028: af00 add r7, sp, #0 - 800e02a: 60f8 str r0, [r7, #12] - 800e02c: 60b9 str r1, [r7, #8] - 800e02e: 607a str r2, [r7, #4] + 800e028: b580 push {r7, lr} + 800e02a: b08c sub sp, #48 ; 0x30 + 800e02c: af00 add r7, sp, #0 + 800e02e: 60f8 str r0, [r7, #12] + 800e030: 60b9 str r1, [r7, #8] + 800e032: 607a str r2, [r7, #4] BaseType_t xEntryTimeSet = pdFALSE; - 800e030: 2300 movs r3, #0 - 800e032: 62fb str r3, [r7, #44] ; 0x2c + 800e034: 2300 movs r3, #0 + 800e036: 62fb str r3, [r7, #44] ; 0x2c TimeOut_t xTimeOut; Queue_t * const pxQueue = xQueue; - 800e034: 68fb ldr r3, [r7, #12] - 800e036: 62bb str r3, [r7, #40] ; 0x28 + 800e038: 68fb ldr r3, [r7, #12] + 800e03a: 62bb str r3, [r7, #40] ; 0x28 /* Check the pointer is not NULL. */ configASSERT( ( pxQueue ) ); - 800e038: 6abb ldr r3, [r7, #40] ; 0x28 - 800e03a: 2b00 cmp r3, #0 - 800e03c: d10b bne.n 800e056 + 800e03c: 6abb ldr r3, [r7, #40] ; 0x28 + 800e03e: 2b00 cmp r3, #0 + 800e040: d10b bne.n 800e05a __asm volatile - 800e03e: f04f 0350 mov.w r3, #80 ; 0x50 - 800e042: b672 cpsid i - 800e044: f383 8811 msr BASEPRI, r3 - 800e048: f3bf 8f6f isb sy - 800e04c: f3bf 8f4f dsb sy - 800e050: b662 cpsie i - 800e052: 623b str r3, [r7, #32] - 800e054: e7fe b.n 800e054 + 800e042: f04f 0350 mov.w r3, #80 ; 0x50 + 800e046: b672 cpsid i + 800e048: f383 8811 msr BASEPRI, r3 + 800e04c: f3bf 8f6f isb sy + 800e050: f3bf 8f4f dsb sy + 800e054: b662 cpsie i + 800e056: 623b str r3, [r7, #32] + 800e058: e7fe b.n 800e058 /* The buffer into which data is received can only be NULL if the data size is zero (so no data is copied into the buffer. */ configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) ); - 800e056: 68bb ldr r3, [r7, #8] - 800e058: 2b00 cmp r3, #0 - 800e05a: d103 bne.n 800e064 - 800e05c: 6abb ldr r3, [r7, #40] ; 0x28 - 800e05e: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e060: 2b00 cmp r3, #0 - 800e062: d101 bne.n 800e068 - 800e064: 2301 movs r3, #1 - 800e066: e000 b.n 800e06a - 800e068: 2300 movs r3, #0 - 800e06a: 2b00 cmp r3, #0 - 800e06c: d10b bne.n 800e086 - 800e06e: f04f 0350 mov.w r3, #80 ; 0x50 - 800e072: b672 cpsid i - 800e074: f383 8811 msr BASEPRI, r3 - 800e078: f3bf 8f6f isb sy - 800e07c: f3bf 8f4f dsb sy - 800e080: b662 cpsie i - 800e082: 61fb str r3, [r7, #28] - 800e084: e7fe b.n 800e084 + 800e05a: 68bb ldr r3, [r7, #8] + 800e05c: 2b00 cmp r3, #0 + 800e05e: d103 bne.n 800e068 + 800e060: 6abb ldr r3, [r7, #40] ; 0x28 + 800e062: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e064: 2b00 cmp r3, #0 + 800e066: d101 bne.n 800e06c + 800e068: 2301 movs r3, #1 + 800e06a: e000 b.n 800e06e + 800e06c: 2300 movs r3, #0 + 800e06e: 2b00 cmp r3, #0 + 800e070: d10b bne.n 800e08a + 800e072: f04f 0350 mov.w r3, #80 ; 0x50 + 800e076: b672 cpsid i + 800e078: f383 8811 msr BASEPRI, r3 + 800e07c: f3bf 8f6f isb sy + 800e080: f3bf 8f4f dsb sy + 800e084: b662 cpsie i + 800e086: 61fb str r3, [r7, #28] + 800e088: e7fe b.n 800e088 /* Cannot block if the scheduler is suspended. */ #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - 800e086: f001 fa15 bl 800f4b4 - 800e08a: 4603 mov r3, r0 - 800e08c: 2b00 cmp r3, #0 - 800e08e: d102 bne.n 800e096 - 800e090: 687b ldr r3, [r7, #4] - 800e092: 2b00 cmp r3, #0 - 800e094: d101 bne.n 800e09a - 800e096: 2301 movs r3, #1 - 800e098: e000 b.n 800e09c - 800e09a: 2300 movs r3, #0 - 800e09c: 2b00 cmp r3, #0 - 800e09e: d10b bne.n 800e0b8 - 800e0a0: f04f 0350 mov.w r3, #80 ; 0x50 - 800e0a4: b672 cpsid i - 800e0a6: f383 8811 msr BASEPRI, r3 - 800e0aa: f3bf 8f6f isb sy - 800e0ae: f3bf 8f4f dsb sy - 800e0b2: b662 cpsie i - 800e0b4: 61bb str r3, [r7, #24] - 800e0b6: e7fe b.n 800e0b6 + 800e08a: f001 fa15 bl 800f4b8 + 800e08e: 4603 mov r3, r0 + 800e090: 2b00 cmp r3, #0 + 800e092: d102 bne.n 800e09a + 800e094: 687b ldr r3, [r7, #4] + 800e096: 2b00 cmp r3, #0 + 800e098: d101 bne.n 800e09e + 800e09a: 2301 movs r3, #1 + 800e09c: e000 b.n 800e0a0 + 800e09e: 2300 movs r3, #0 + 800e0a0: 2b00 cmp r3, #0 + 800e0a2: d10b bne.n 800e0bc + 800e0a4: f04f 0350 mov.w r3, #80 ; 0x50 + 800e0a8: b672 cpsid i + 800e0aa: f383 8811 msr BASEPRI, r3 + 800e0ae: f3bf 8f6f isb sy + 800e0b2: f3bf 8f4f dsb sy + 800e0b6: b662 cpsie i + 800e0b8: 61bb str r3, [r7, #24] + 800e0ba: e7fe b.n 800e0ba /*lint -save -e904 This function relaxes the coding standard somewhat to allow return statements within the function itself. This is done in the interest of execution time efficiency. */ for( ;; ) { taskENTER_CRITICAL(); - 800e0b8: f001 fd3e bl 800fb38 + 800e0bc: f001 fd44 bl 800fb48 { const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - 800e0bc: 6abb ldr r3, [r7, #40] ; 0x28 - 800e0be: 6b9b ldr r3, [r3, #56] ; 0x38 - 800e0c0: 627b str r3, [r7, #36] ; 0x24 + 800e0c0: 6abb ldr r3, [r7, #40] ; 0x28 + 800e0c2: 6b9b ldr r3, [r3, #56] ; 0x38 + 800e0c4: 627b str r3, [r7, #36] ; 0x24 /* Is there data in the queue now? To be running the calling task must be the highest priority task wanting to access the queue. */ if( uxMessagesWaiting > ( UBaseType_t ) 0 ) - 800e0c2: 6a7b ldr r3, [r7, #36] ; 0x24 - 800e0c4: 2b00 cmp r3, #0 - 800e0c6: d01f beq.n 800e108 + 800e0c6: 6a7b ldr r3, [r7, #36] ; 0x24 + 800e0c8: 2b00 cmp r3, #0 + 800e0ca: d01f beq.n 800e10c { /* Data available, remove one item. */ prvCopyDataFromQueue( pxQueue, pvBuffer ); - 800e0c8: 68b9 ldr r1, [r7, #8] - 800e0ca: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800e0cc: f000 faa1 bl 800e612 + 800e0cc: 68b9 ldr r1, [r7, #8] + 800e0ce: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800e0d0: f000 faa1 bl 800e616 traceQUEUE_RECEIVE( pxQueue ); pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1; - 800e0d0: 6a7b ldr r3, [r7, #36] ; 0x24 - 800e0d2: 1e5a subs r2, r3, #1 - 800e0d4: 6abb ldr r3, [r7, #40] ; 0x28 - 800e0d6: 639a str r2, [r3, #56] ; 0x38 + 800e0d4: 6a7b ldr r3, [r7, #36] ; 0x24 + 800e0d6: 1e5a subs r2, r3, #1 + 800e0d8: 6abb ldr r3, [r7, #40] ; 0x28 + 800e0da: 639a str r2, [r3, #56] ; 0x38 /* There is now space in the queue, were any tasks waiting to post to the queue? If so, unblock the highest priority waiting task. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - 800e0d8: 6abb ldr r3, [r7, #40] ; 0x28 - 800e0da: 691b ldr r3, [r3, #16] - 800e0dc: 2b00 cmp r3, #0 - 800e0de: d00f beq.n 800e100 + 800e0dc: 6abb ldr r3, [r7, #40] ; 0x28 + 800e0de: 691b ldr r3, [r3, #16] + 800e0e0: 2b00 cmp r3, #0 + 800e0e2: d00f beq.n 800e104 { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 800e0e0: 6abb ldr r3, [r7, #40] ; 0x28 - 800e0e2: 3310 adds r3, #16 - 800e0e4: 4618 mov r0, r3 - 800e0e6: f001 f825 bl 800f134 - 800e0ea: 4603 mov r3, r0 - 800e0ec: 2b00 cmp r3, #0 - 800e0ee: d007 beq.n 800e100 + 800e0e4: 6abb ldr r3, [r7, #40] ; 0x28 + 800e0e6: 3310 adds r3, #16 + 800e0e8: 4618 mov r0, r3 + 800e0ea: f001 f825 bl 800f138 + 800e0ee: 4603 mov r3, r0 + 800e0f0: 2b00 cmp r3, #0 + 800e0f2: d007 beq.n 800e104 { queueYIELD_IF_USING_PREEMPTION(); - 800e0f0: 4b3c ldr r3, [pc, #240] ; (800e1e4 ) - 800e0f2: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800e0f6: 601a str r2, [r3, #0] - 800e0f8: f3bf 8f4f dsb sy - 800e0fc: f3bf 8f6f isb sy + 800e0f4: 4b3c ldr r3, [pc, #240] ; (800e1e8 ) + 800e0f6: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800e0fa: 601a str r2, [r3, #0] + 800e0fc: f3bf 8f4f dsb sy + 800e100: f3bf 8f6f isb sy else { mtCOVERAGE_TEST_MARKER(); } taskEXIT_CRITICAL(); - 800e100: f001 fd4c bl 800fb9c + 800e104: f001 fd52 bl 800fbac return pdPASS; - 800e104: 2301 movs r3, #1 - 800e106: e069 b.n 800e1dc + 800e108: 2301 movs r3, #1 + 800e10a: e069 b.n 800e1e0 } else { if( xTicksToWait == ( TickType_t ) 0 ) - 800e108: 687b ldr r3, [r7, #4] - 800e10a: 2b00 cmp r3, #0 - 800e10c: d103 bne.n 800e116 + 800e10c: 687b ldr r3, [r7, #4] + 800e10e: 2b00 cmp r3, #0 + 800e110: d103 bne.n 800e11a { /* The queue was empty and no block time is specified (or the block time has expired) so leave now. */ taskEXIT_CRITICAL(); - 800e10e: f001 fd45 bl 800fb9c + 800e112: f001 fd4b bl 800fbac traceQUEUE_RECEIVE_FAILED( pxQueue ); return errQUEUE_EMPTY; - 800e112: 2300 movs r3, #0 - 800e114: e062 b.n 800e1dc + 800e116: 2300 movs r3, #0 + 800e118: e062 b.n 800e1e0 } else if( xEntryTimeSet == pdFALSE ) - 800e116: 6afb ldr r3, [r7, #44] ; 0x2c - 800e118: 2b00 cmp r3, #0 - 800e11a: d106 bne.n 800e12a + 800e11a: 6afb ldr r3, [r7, #44] ; 0x2c + 800e11c: 2b00 cmp r3, #0 + 800e11e: d106 bne.n 800e12e { /* The queue was empty and a block time was specified so configure the timeout structure. */ vTaskInternalSetTimeOutState( &xTimeOut ); - 800e11c: f107 0310 add.w r3, r7, #16 - 800e120: 4618 mov r0, r3 - 800e122: f001 f86b bl 800f1fc + 800e120: f107 0310 add.w r3, r7, #16 + 800e124: 4618 mov r0, r3 + 800e126: f001 f86b bl 800f200 xEntryTimeSet = pdTRUE; - 800e126: 2301 movs r3, #1 - 800e128: 62fb str r3, [r7, #44] ; 0x2c + 800e12a: 2301 movs r3, #1 + 800e12c: 62fb str r3, [r7, #44] ; 0x2c /* Entry time was already set. */ mtCOVERAGE_TEST_MARKER(); } } } taskEXIT_CRITICAL(); - 800e12a: f001 fd37 bl 800fb9c + 800e12e: f001 fd3d bl 800fbac /* Interrupts and other tasks can send to and receive from the queue now the critical section has been exited. */ vTaskSuspendAll(); - 800e12e: f000 fdd1 bl 800ecd4 + 800e132: f000 fdd1 bl 800ecd8 prvLockQueue( pxQueue ); - 800e132: f001 fd01 bl 800fb38 - 800e136: 6abb ldr r3, [r7, #40] ; 0x28 - 800e138: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 800e13c: b25b sxtb r3, r3 - 800e13e: f1b3 3fff cmp.w r3, #4294967295 - 800e142: d103 bne.n 800e14c - 800e144: 6abb ldr r3, [r7, #40] ; 0x28 - 800e146: 2200 movs r2, #0 - 800e148: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 800e14c: 6abb ldr r3, [r7, #40] ; 0x28 - 800e14e: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 800e152: b25b sxtb r3, r3 - 800e154: f1b3 3fff cmp.w r3, #4294967295 - 800e158: d103 bne.n 800e162 - 800e15a: 6abb ldr r3, [r7, #40] ; 0x28 - 800e15c: 2200 movs r2, #0 - 800e15e: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 800e162: f001 fd1b bl 800fb9c + 800e136: f001 fd07 bl 800fb48 + 800e13a: 6abb ldr r3, [r7, #40] ; 0x28 + 800e13c: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 + 800e140: b25b sxtb r3, r3 + 800e142: f1b3 3fff cmp.w r3, #4294967295 + 800e146: d103 bne.n 800e150 + 800e148: 6abb ldr r3, [r7, #40] ; 0x28 + 800e14a: 2200 movs r2, #0 + 800e14c: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800e150: 6abb ldr r3, [r7, #40] ; 0x28 + 800e152: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 800e156: b25b sxtb r3, r3 + 800e158: f1b3 3fff cmp.w r3, #4294967295 + 800e15c: d103 bne.n 800e166 + 800e15e: 6abb ldr r3, [r7, #40] ; 0x28 + 800e160: 2200 movs r2, #0 + 800e162: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800e166: f001 fd21 bl 800fbac /* Update the timeout state to see if it has expired yet. */ if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - 800e166: 1d3a adds r2, r7, #4 - 800e168: f107 0310 add.w r3, r7, #16 - 800e16c: 4611 mov r1, r2 - 800e16e: 4618 mov r0, r3 - 800e170: f001 f85a bl 800f228 - 800e174: 4603 mov r3, r0 - 800e176: 2b00 cmp r3, #0 - 800e178: d123 bne.n 800e1c2 + 800e16a: 1d3a adds r2, r7, #4 + 800e16c: f107 0310 add.w r3, r7, #16 + 800e170: 4611 mov r1, r2 + 800e172: 4618 mov r0, r3 + 800e174: f001 f85a bl 800f22c + 800e178: 4603 mov r3, r0 + 800e17a: 2b00 cmp r3, #0 + 800e17c: d123 bne.n 800e1c6 { /* The timeout has not expired. If the queue is still empty place the task on the list of tasks waiting to receive from the queue. */ if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) - 800e17a: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800e17c: f000 fac1 bl 800e702 - 800e180: 4603 mov r3, r0 - 800e182: 2b00 cmp r3, #0 - 800e184: d017 beq.n 800e1b6 + 800e17e: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800e180: f000 fac1 bl 800e706 + 800e184: 4603 mov r3, r0 + 800e186: 2b00 cmp r3, #0 + 800e188: d017 beq.n 800e1ba { traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ); vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); - 800e186: 6abb ldr r3, [r7, #40] ; 0x28 - 800e188: 3324 adds r3, #36 ; 0x24 - 800e18a: 687a ldr r2, [r7, #4] - 800e18c: 4611 mov r1, r2 - 800e18e: 4618 mov r0, r3 - 800e190: f000 ffaa bl 800f0e8 + 800e18a: 6abb ldr r3, [r7, #40] ; 0x28 + 800e18c: 3324 adds r3, #36 ; 0x24 + 800e18e: 687a ldr r2, [r7, #4] + 800e190: 4611 mov r1, r2 + 800e192: 4618 mov r0, r3 + 800e194: f000 ffaa bl 800f0ec prvUnlockQueue( pxQueue ); - 800e194: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800e196: f000 fa62 bl 800e65e + 800e198: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800e19a: f000 fa62 bl 800e662 if( xTaskResumeAll() == pdFALSE ) - 800e19a: f000 fda9 bl 800ecf0 - 800e19e: 4603 mov r3, r0 - 800e1a0: 2b00 cmp r3, #0 - 800e1a2: d189 bne.n 800e0b8 + 800e19e: f000 fda9 bl 800ecf4 + 800e1a2: 4603 mov r3, r0 + 800e1a4: 2b00 cmp r3, #0 + 800e1a6: d189 bne.n 800e0bc { portYIELD_WITHIN_API(); - 800e1a4: 4b0f ldr r3, [pc, #60] ; (800e1e4 ) - 800e1a6: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800e1aa: 601a str r2, [r3, #0] - 800e1ac: f3bf 8f4f dsb sy - 800e1b0: f3bf 8f6f isb sy - 800e1b4: e780 b.n 800e0b8 + 800e1a8: 4b0f ldr r3, [pc, #60] ; (800e1e8 ) + 800e1aa: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800e1ae: 601a str r2, [r3, #0] + 800e1b0: f3bf 8f4f dsb sy + 800e1b4: f3bf 8f6f isb sy + 800e1b8: e780 b.n 800e0bc } else { /* The queue contains data again. Loop back to try and read the data. */ prvUnlockQueue( pxQueue ); - 800e1b6: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800e1b8: f000 fa51 bl 800e65e + 800e1ba: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800e1bc: f000 fa51 bl 800e662 ( void ) xTaskResumeAll(); - 800e1bc: f000 fd98 bl 800ecf0 - 800e1c0: e77a b.n 800e0b8 + 800e1c0: f000 fd98 bl 800ecf4 + 800e1c4: e77a b.n 800e0bc } else { /* Timed out. If there is no data in the queue exit, otherwise loop back and attempt to read the data. */ prvUnlockQueue( pxQueue ); - 800e1c2: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800e1c4: f000 fa4b bl 800e65e + 800e1c6: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800e1c8: f000 fa4b bl 800e662 ( void ) xTaskResumeAll(); - 800e1c8: f000 fd92 bl 800ecf0 + 800e1cc: f000 fd92 bl 800ecf4 if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) - 800e1cc: 6ab8 ldr r0, [r7, #40] ; 0x28 - 800e1ce: f000 fa98 bl 800e702 - 800e1d2: 4603 mov r3, r0 - 800e1d4: 2b00 cmp r3, #0 - 800e1d6: f43f af6f beq.w 800e0b8 + 800e1d0: 6ab8 ldr r0, [r7, #40] ; 0x28 + 800e1d2: f000 fa98 bl 800e706 + 800e1d6: 4603 mov r3, r0 + 800e1d8: 2b00 cmp r3, #0 + 800e1da: f43f af6f beq.w 800e0bc { traceQUEUE_RECEIVE_FAILED( pxQueue ); return errQUEUE_EMPTY; - 800e1da: 2300 movs r3, #0 + 800e1de: 2300 movs r3, #0 { mtCOVERAGE_TEST_MARKER(); } } } /*lint -restore */ } - 800e1dc: 4618 mov r0, r3 - 800e1de: 3730 adds r7, #48 ; 0x30 - 800e1e0: 46bd mov sp, r7 - 800e1e2: bd80 pop {r7, pc} - 800e1e4: e000ed04 .word 0xe000ed04 + 800e1e0: 4618 mov r0, r3 + 800e1e2: 3730 adds r7, #48 ; 0x30 + 800e1e4: 46bd mov sp, r7 + 800e1e6: bd80 pop {r7, pc} + 800e1e8: e000ed04 .word 0xe000ed04 -0800e1e8 : +0800e1ec : /*-----------------------------------------------------------*/ BaseType_t xQueueSemaphoreTake( QueueHandle_t xQueue, TickType_t xTicksToWait ) { - 800e1e8: b580 push {r7, lr} - 800e1ea: b08e sub sp, #56 ; 0x38 - 800e1ec: af00 add r7, sp, #0 - 800e1ee: 6078 str r0, [r7, #4] - 800e1f0: 6039 str r1, [r7, #0] + 800e1ec: b580 push {r7, lr} + 800e1ee: b08e sub sp, #56 ; 0x38 + 800e1f0: af00 add r7, sp, #0 + 800e1f2: 6078 str r0, [r7, #4] + 800e1f4: 6039 str r1, [r7, #0] BaseType_t xEntryTimeSet = pdFALSE; - 800e1f2: 2300 movs r3, #0 - 800e1f4: 637b str r3, [r7, #52] ; 0x34 + 800e1f6: 2300 movs r3, #0 + 800e1f8: 637b str r3, [r7, #52] ; 0x34 TimeOut_t xTimeOut; Queue_t * const pxQueue = xQueue; - 800e1f6: 687b ldr r3, [r7, #4] - 800e1f8: 62fb str r3, [r7, #44] ; 0x2c + 800e1fa: 687b ldr r3, [r7, #4] + 800e1fc: 62fb str r3, [r7, #44] ; 0x2c #if( configUSE_MUTEXES == 1 ) BaseType_t xInheritanceOccurred = pdFALSE; - 800e1fa: 2300 movs r3, #0 - 800e1fc: 633b str r3, [r7, #48] ; 0x30 + 800e1fe: 2300 movs r3, #0 + 800e200: 633b str r3, [r7, #48] ; 0x30 #endif /* Check the queue pointer is not NULL. */ configASSERT( ( pxQueue ) ); - 800e1fe: 6afb ldr r3, [r7, #44] ; 0x2c - 800e200: 2b00 cmp r3, #0 - 800e202: d10b bne.n 800e21c - 800e204: f04f 0350 mov.w r3, #80 ; 0x50 - 800e208: b672 cpsid i - 800e20a: f383 8811 msr BASEPRI, r3 - 800e20e: f3bf 8f6f isb sy - 800e212: f3bf 8f4f dsb sy - 800e216: b662 cpsie i - 800e218: 623b str r3, [r7, #32] - 800e21a: e7fe b.n 800e21a + 800e202: 6afb ldr r3, [r7, #44] ; 0x2c + 800e204: 2b00 cmp r3, #0 + 800e206: d10b bne.n 800e220 + 800e208: f04f 0350 mov.w r3, #80 ; 0x50 + 800e20c: b672 cpsid i + 800e20e: f383 8811 msr BASEPRI, r3 + 800e212: f3bf 8f6f isb sy + 800e216: f3bf 8f4f dsb sy + 800e21a: b662 cpsie i + 800e21c: 623b str r3, [r7, #32] + 800e21e: e7fe b.n 800e21e /* Check this really is a semaphore, in which case the item size will be 0. */ configASSERT( pxQueue->uxItemSize == 0 ); - 800e21c: 6afb ldr r3, [r7, #44] ; 0x2c - 800e21e: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e220: 2b00 cmp r3, #0 - 800e222: d00b beq.n 800e23c - 800e224: f04f 0350 mov.w r3, #80 ; 0x50 - 800e228: b672 cpsid i - 800e22a: f383 8811 msr BASEPRI, r3 - 800e22e: f3bf 8f6f isb sy - 800e232: f3bf 8f4f dsb sy - 800e236: b662 cpsie i - 800e238: 61fb str r3, [r7, #28] - 800e23a: e7fe b.n 800e23a + 800e220: 6afb ldr r3, [r7, #44] ; 0x2c + 800e222: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e224: 2b00 cmp r3, #0 + 800e226: d00b beq.n 800e240 + 800e228: f04f 0350 mov.w r3, #80 ; 0x50 + 800e22c: b672 cpsid i + 800e22e: f383 8811 msr BASEPRI, r3 + 800e232: f3bf 8f6f isb sy + 800e236: f3bf 8f4f dsb sy + 800e23a: b662 cpsie i + 800e23c: 61fb str r3, [r7, #28] + 800e23e: e7fe b.n 800e23e /* Cannot block if the scheduler is suspended. */ #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) { configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) ); - 800e23c: f001 f93a bl 800f4b4 - 800e240: 4603 mov r3, r0 - 800e242: 2b00 cmp r3, #0 - 800e244: d102 bne.n 800e24c - 800e246: 683b ldr r3, [r7, #0] - 800e248: 2b00 cmp r3, #0 - 800e24a: d101 bne.n 800e250 - 800e24c: 2301 movs r3, #1 - 800e24e: e000 b.n 800e252 - 800e250: 2300 movs r3, #0 - 800e252: 2b00 cmp r3, #0 - 800e254: d10b bne.n 800e26e - 800e256: f04f 0350 mov.w r3, #80 ; 0x50 - 800e25a: b672 cpsid i - 800e25c: f383 8811 msr BASEPRI, r3 - 800e260: f3bf 8f6f isb sy - 800e264: f3bf 8f4f dsb sy - 800e268: b662 cpsie i - 800e26a: 61bb str r3, [r7, #24] - 800e26c: e7fe b.n 800e26c + 800e240: f001 f93a bl 800f4b8 + 800e244: 4603 mov r3, r0 + 800e246: 2b00 cmp r3, #0 + 800e248: d102 bne.n 800e250 + 800e24a: 683b ldr r3, [r7, #0] + 800e24c: 2b00 cmp r3, #0 + 800e24e: d101 bne.n 800e254 + 800e250: 2301 movs r3, #1 + 800e252: e000 b.n 800e256 + 800e254: 2300 movs r3, #0 + 800e256: 2b00 cmp r3, #0 + 800e258: d10b bne.n 800e272 + 800e25a: f04f 0350 mov.w r3, #80 ; 0x50 + 800e25e: b672 cpsid i + 800e260: f383 8811 msr BASEPRI, r3 + 800e264: f3bf 8f6f isb sy + 800e268: f3bf 8f4f dsb sy + 800e26c: b662 cpsie i + 800e26e: 61bb str r3, [r7, #24] + 800e270: e7fe b.n 800e270 /*lint -save -e904 This function relaxes the coding standard somewhat to allow return statements within the function itself. This is done in the interest of execution time efficiency. */ for( ;; ) { taskENTER_CRITICAL(); - 800e26e: f001 fc63 bl 800fb38 + 800e272: f001 fc69 bl 800fb48 { /* Semaphores are queues with an item size of 0, and where the number of messages in the queue is the semaphore's count value. */ const UBaseType_t uxSemaphoreCount = pxQueue->uxMessagesWaiting; - 800e272: 6afb ldr r3, [r7, #44] ; 0x2c - 800e274: 6b9b ldr r3, [r3, #56] ; 0x38 - 800e276: 62bb str r3, [r7, #40] ; 0x28 + 800e276: 6afb ldr r3, [r7, #44] ; 0x2c + 800e278: 6b9b ldr r3, [r3, #56] ; 0x38 + 800e27a: 62bb str r3, [r7, #40] ; 0x28 /* Is there data in the queue now? To be running the calling task must be the highest priority task wanting to access the queue. */ if( uxSemaphoreCount > ( UBaseType_t ) 0 ) - 800e278: 6abb ldr r3, [r7, #40] ; 0x28 - 800e27a: 2b00 cmp r3, #0 - 800e27c: d024 beq.n 800e2c8 + 800e27c: 6abb ldr r3, [r7, #40] ; 0x28 + 800e27e: 2b00 cmp r3, #0 + 800e280: d024 beq.n 800e2cc { traceQUEUE_RECEIVE( pxQueue ); /* Semaphores are queues with a data size of zero and where the messages waiting is the semaphore's count. Reduce the count. */ pxQueue->uxMessagesWaiting = uxSemaphoreCount - ( UBaseType_t ) 1; - 800e27e: 6abb ldr r3, [r7, #40] ; 0x28 - 800e280: 1e5a subs r2, r3, #1 - 800e282: 6afb ldr r3, [r7, #44] ; 0x2c - 800e284: 639a str r2, [r3, #56] ; 0x38 + 800e282: 6abb ldr r3, [r7, #40] ; 0x28 + 800e284: 1e5a subs r2, r3, #1 + 800e286: 6afb ldr r3, [r7, #44] ; 0x2c + 800e288: 639a str r2, [r3, #56] ; 0x38 #if ( configUSE_MUTEXES == 1 ) { if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - 800e286: 6afb ldr r3, [r7, #44] ; 0x2c - 800e288: 681b ldr r3, [r3, #0] - 800e28a: 2b00 cmp r3, #0 - 800e28c: d104 bne.n 800e298 + 800e28a: 6afb ldr r3, [r7, #44] ; 0x2c + 800e28c: 681b ldr r3, [r3, #0] + 800e28e: 2b00 cmp r3, #0 + 800e290: d104 bne.n 800e29c { /* Record the information required to implement priority inheritance should it become necessary. */ pxQueue->u.xSemaphore.xMutexHolder = pvTaskIncrementMutexHeldCount(); - 800e28e: f001 fad3 bl 800f838 - 800e292: 4602 mov r2, r0 - 800e294: 6afb ldr r3, [r7, #44] ; 0x2c - 800e296: 609a str r2, [r3, #8] + 800e292: f001 fad3 bl 800f83c + 800e296: 4602 mov r2, r0 + 800e298: 6afb ldr r3, [r7, #44] ; 0x2c + 800e29a: 609a str r2, [r3, #8] } #endif /* configUSE_MUTEXES */ /* Check to see if other tasks are blocked waiting to give the semaphore, and if so, unblock the highest priority such task. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - 800e298: 6afb ldr r3, [r7, #44] ; 0x2c - 800e29a: 691b ldr r3, [r3, #16] - 800e29c: 2b00 cmp r3, #0 - 800e29e: d00f beq.n 800e2c0 + 800e29c: 6afb ldr r3, [r7, #44] ; 0x2c + 800e29e: 691b ldr r3, [r3, #16] + 800e2a0: 2b00 cmp r3, #0 + 800e2a2: d00f beq.n 800e2c4 { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 800e2a0: 6afb ldr r3, [r7, #44] ; 0x2c - 800e2a2: 3310 adds r3, #16 - 800e2a4: 4618 mov r0, r3 - 800e2a6: f000 ff45 bl 800f134 - 800e2aa: 4603 mov r3, r0 - 800e2ac: 2b00 cmp r3, #0 - 800e2ae: d007 beq.n 800e2c0 + 800e2a4: 6afb ldr r3, [r7, #44] ; 0x2c + 800e2a6: 3310 adds r3, #16 + 800e2a8: 4618 mov r0, r3 + 800e2aa: f000 ff45 bl 800f138 + 800e2ae: 4603 mov r3, r0 + 800e2b0: 2b00 cmp r3, #0 + 800e2b2: d007 beq.n 800e2c4 { queueYIELD_IF_USING_PREEMPTION(); - 800e2b0: 4b54 ldr r3, [pc, #336] ; (800e404 ) - 800e2b2: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800e2b6: 601a str r2, [r3, #0] - 800e2b8: f3bf 8f4f dsb sy - 800e2bc: f3bf 8f6f isb sy + 800e2b4: 4b54 ldr r3, [pc, #336] ; (800e408 ) + 800e2b6: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800e2ba: 601a str r2, [r3, #0] + 800e2bc: f3bf 8f4f dsb sy + 800e2c0: f3bf 8f6f isb sy else { mtCOVERAGE_TEST_MARKER(); } taskEXIT_CRITICAL(); - 800e2c0: f001 fc6c bl 800fb9c + 800e2c4: f001 fc72 bl 800fbac return pdPASS; - 800e2c4: 2301 movs r3, #1 - 800e2c6: e098 b.n 800e3fa + 800e2c8: 2301 movs r3, #1 + 800e2ca: e098 b.n 800e3fe } else { if( xTicksToWait == ( TickType_t ) 0 ) - 800e2c8: 683b ldr r3, [r7, #0] - 800e2ca: 2b00 cmp r3, #0 - 800e2cc: d112 bne.n 800e2f4 + 800e2cc: 683b ldr r3, [r7, #0] + 800e2ce: 2b00 cmp r3, #0 + 800e2d0: d112 bne.n 800e2f8 /* For inheritance to have occurred there must have been an initial timeout, and an adjusted timeout cannot become 0, as if it were 0 the function would have exited. */ #if( configUSE_MUTEXES == 1 ) { configASSERT( xInheritanceOccurred == pdFALSE ); - 800e2ce: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e2d0: 2b00 cmp r3, #0 - 800e2d2: d00b beq.n 800e2ec - 800e2d4: f04f 0350 mov.w r3, #80 ; 0x50 - 800e2d8: b672 cpsid i - 800e2da: f383 8811 msr BASEPRI, r3 - 800e2de: f3bf 8f6f isb sy - 800e2e2: f3bf 8f4f dsb sy - 800e2e6: b662 cpsie i - 800e2e8: 617b str r3, [r7, #20] - 800e2ea: e7fe b.n 800e2ea + 800e2d2: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e2d4: 2b00 cmp r3, #0 + 800e2d6: d00b beq.n 800e2f0 + 800e2d8: f04f 0350 mov.w r3, #80 ; 0x50 + 800e2dc: b672 cpsid i + 800e2de: f383 8811 msr BASEPRI, r3 + 800e2e2: f3bf 8f6f isb sy + 800e2e6: f3bf 8f4f dsb sy + 800e2ea: b662 cpsie i + 800e2ec: 617b str r3, [r7, #20] + 800e2ee: e7fe b.n 800e2ee } #endif /* configUSE_MUTEXES */ /* The semaphore count was 0 and no block time is specified (or the block time has expired) so exit now. */ taskEXIT_CRITICAL(); - 800e2ec: f001 fc56 bl 800fb9c + 800e2f0: f001 fc5c bl 800fbac traceQUEUE_RECEIVE_FAILED( pxQueue ); return errQUEUE_EMPTY; - 800e2f0: 2300 movs r3, #0 - 800e2f2: e082 b.n 800e3fa + 800e2f4: 2300 movs r3, #0 + 800e2f6: e082 b.n 800e3fe } else if( xEntryTimeSet == pdFALSE ) - 800e2f4: 6b7b ldr r3, [r7, #52] ; 0x34 - 800e2f6: 2b00 cmp r3, #0 - 800e2f8: d106 bne.n 800e308 + 800e2f8: 6b7b ldr r3, [r7, #52] ; 0x34 + 800e2fa: 2b00 cmp r3, #0 + 800e2fc: d106 bne.n 800e30c { /* The semaphore count was 0 and a block time was specified so configure the timeout structure ready to block. */ vTaskInternalSetTimeOutState( &xTimeOut ); - 800e2fa: f107 030c add.w r3, r7, #12 - 800e2fe: 4618 mov r0, r3 - 800e300: f000 ff7c bl 800f1fc + 800e2fe: f107 030c add.w r3, r7, #12 + 800e302: 4618 mov r0, r3 + 800e304: f000 ff7c bl 800f200 xEntryTimeSet = pdTRUE; - 800e304: 2301 movs r3, #1 - 800e306: 637b str r3, [r7, #52] ; 0x34 + 800e308: 2301 movs r3, #1 + 800e30a: 637b str r3, [r7, #52] ; 0x34 /* Entry time was already set. */ mtCOVERAGE_TEST_MARKER(); } } } taskEXIT_CRITICAL(); - 800e308: f001 fc48 bl 800fb9c + 800e30c: f001 fc4e bl 800fbac /* Interrupts and other tasks can give to and take from the semaphore now the critical section has been exited. */ vTaskSuspendAll(); - 800e30c: f000 fce2 bl 800ecd4 + 800e310: f000 fce2 bl 800ecd8 prvLockQueue( pxQueue ); - 800e310: f001 fc12 bl 800fb38 - 800e314: 6afb ldr r3, [r7, #44] ; 0x2c - 800e316: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 800e31a: b25b sxtb r3, r3 - 800e31c: f1b3 3fff cmp.w r3, #4294967295 - 800e320: d103 bne.n 800e32a - 800e322: 6afb ldr r3, [r7, #44] ; 0x2c - 800e324: 2200 movs r2, #0 - 800e326: f883 2044 strb.w r2, [r3, #68] ; 0x44 - 800e32a: 6afb ldr r3, [r7, #44] ; 0x2c - 800e32c: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 800e330: b25b sxtb r3, r3 - 800e332: f1b3 3fff cmp.w r3, #4294967295 - 800e336: d103 bne.n 800e340 - 800e338: 6afb ldr r3, [r7, #44] ; 0x2c - 800e33a: 2200 movs r2, #0 - 800e33c: f883 2045 strb.w r2, [r3, #69] ; 0x45 - 800e340: f001 fc2c bl 800fb9c + 800e314: f001 fc18 bl 800fb48 + 800e318: 6afb ldr r3, [r7, #44] ; 0x2c + 800e31a: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 + 800e31e: b25b sxtb r3, r3 + 800e320: f1b3 3fff cmp.w r3, #4294967295 + 800e324: d103 bne.n 800e32e + 800e326: 6afb ldr r3, [r7, #44] ; 0x2c + 800e328: 2200 movs r2, #0 + 800e32a: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800e32e: 6afb ldr r3, [r7, #44] ; 0x2c + 800e330: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 800e334: b25b sxtb r3, r3 + 800e336: f1b3 3fff cmp.w r3, #4294967295 + 800e33a: d103 bne.n 800e344 + 800e33c: 6afb ldr r3, [r7, #44] ; 0x2c + 800e33e: 2200 movs r2, #0 + 800e340: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800e344: f001 fc32 bl 800fbac /* Update the timeout state to see if it has expired yet. */ if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE ) - 800e344: 463a mov r2, r7 - 800e346: f107 030c add.w r3, r7, #12 - 800e34a: 4611 mov r1, r2 - 800e34c: 4618 mov r0, r3 - 800e34e: f000 ff6b bl 800f228 - 800e352: 4603 mov r3, r0 - 800e354: 2b00 cmp r3, #0 - 800e356: d132 bne.n 800e3be + 800e348: 463a mov r2, r7 + 800e34a: f107 030c add.w r3, r7, #12 + 800e34e: 4611 mov r1, r2 + 800e350: 4618 mov r0, r3 + 800e352: f000 ff6b bl 800f22c + 800e356: 4603 mov r3, r0 + 800e358: 2b00 cmp r3, #0 + 800e35a: d132 bne.n 800e3c2 { /* A block time is specified and not expired. If the semaphore count is 0 then enter the Blocked state to wait for a semaphore to become available. As semaphores are implemented with queues the queue being empty is equivalent to the semaphore count being 0. */ if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) - 800e358: 6af8 ldr r0, [r7, #44] ; 0x2c - 800e35a: f000 f9d2 bl 800e702 - 800e35e: 4603 mov r3, r0 - 800e360: 2b00 cmp r3, #0 - 800e362: d026 beq.n 800e3b2 + 800e35c: 6af8 ldr r0, [r7, #44] ; 0x2c + 800e35e: f000 f9d2 bl 800e706 + 800e362: 4603 mov r3, r0 + 800e364: 2b00 cmp r3, #0 + 800e366: d026 beq.n 800e3b6 { traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue ); #if ( configUSE_MUTEXES == 1 ) { if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - 800e364: 6afb ldr r3, [r7, #44] ; 0x2c - 800e366: 681b ldr r3, [r3, #0] - 800e368: 2b00 cmp r3, #0 - 800e36a: d109 bne.n 800e380 + 800e368: 6afb ldr r3, [r7, #44] ; 0x2c + 800e36a: 681b ldr r3, [r3, #0] + 800e36c: 2b00 cmp r3, #0 + 800e36e: d109 bne.n 800e384 { taskENTER_CRITICAL(); - 800e36c: f001 fbe4 bl 800fb38 + 800e370: f001 fbea bl 800fb48 { xInheritanceOccurred = xTaskPriorityInherit( pxQueue->u.xSemaphore.xMutexHolder ); - 800e370: 6afb ldr r3, [r7, #44] ; 0x2c - 800e372: 689b ldr r3, [r3, #8] - 800e374: 4618 mov r0, r3 - 800e376: f001 f8bb bl 800f4f0 - 800e37a: 6338 str r0, [r7, #48] ; 0x30 + 800e374: 6afb ldr r3, [r7, #44] ; 0x2c + 800e376: 689b ldr r3, [r3, #8] + 800e378: 4618 mov r0, r3 + 800e37a: f001 f8bb bl 800f4f4 + 800e37e: 6338 str r0, [r7, #48] ; 0x30 } taskEXIT_CRITICAL(); - 800e37c: f001 fc0e bl 800fb9c + 800e380: f001 fc14 bl 800fbac mtCOVERAGE_TEST_MARKER(); } } #endif vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait ); - 800e380: 6afb ldr r3, [r7, #44] ; 0x2c - 800e382: 3324 adds r3, #36 ; 0x24 - 800e384: 683a ldr r2, [r7, #0] - 800e386: 4611 mov r1, r2 - 800e388: 4618 mov r0, r3 - 800e38a: f000 fead bl 800f0e8 + 800e384: 6afb ldr r3, [r7, #44] ; 0x2c + 800e386: 3324 adds r3, #36 ; 0x24 + 800e388: 683a ldr r2, [r7, #0] + 800e38a: 4611 mov r1, r2 + 800e38c: 4618 mov r0, r3 + 800e38e: f000 fead bl 800f0ec prvUnlockQueue( pxQueue ); - 800e38e: 6af8 ldr r0, [r7, #44] ; 0x2c - 800e390: f000 f965 bl 800e65e + 800e392: 6af8 ldr r0, [r7, #44] ; 0x2c + 800e394: f000 f965 bl 800e662 if( xTaskResumeAll() == pdFALSE ) - 800e394: f000 fcac bl 800ecf0 - 800e398: 4603 mov r3, r0 - 800e39a: 2b00 cmp r3, #0 - 800e39c: f47f af67 bne.w 800e26e + 800e398: f000 fcac bl 800ecf4 + 800e39c: 4603 mov r3, r0 + 800e39e: 2b00 cmp r3, #0 + 800e3a0: f47f af67 bne.w 800e272 { portYIELD_WITHIN_API(); - 800e3a0: 4b18 ldr r3, [pc, #96] ; (800e404 ) - 800e3a2: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800e3a6: 601a str r2, [r3, #0] - 800e3a8: f3bf 8f4f dsb sy - 800e3ac: f3bf 8f6f isb sy - 800e3b0: e75d b.n 800e26e + 800e3a4: 4b18 ldr r3, [pc, #96] ; (800e408 ) + 800e3a6: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800e3aa: 601a str r2, [r3, #0] + 800e3ac: f3bf 8f4f dsb sy + 800e3b0: f3bf 8f6f isb sy + 800e3b4: e75d b.n 800e272 } else { /* There was no timeout and the semaphore count was not 0, so attempt to take the semaphore again. */ prvUnlockQueue( pxQueue ); - 800e3b2: 6af8 ldr r0, [r7, #44] ; 0x2c - 800e3b4: f000 f953 bl 800e65e + 800e3b6: 6af8 ldr r0, [r7, #44] ; 0x2c + 800e3b8: f000 f953 bl 800e662 ( void ) xTaskResumeAll(); - 800e3b8: f000 fc9a bl 800ecf0 - 800e3bc: e757 b.n 800e26e + 800e3bc: f000 fc9a bl 800ecf4 + 800e3c0: e757 b.n 800e272 } } else { /* Timed out. */ prvUnlockQueue( pxQueue ); - 800e3be: 6af8 ldr r0, [r7, #44] ; 0x2c - 800e3c0: f000 f94d bl 800e65e + 800e3c2: 6af8 ldr r0, [r7, #44] ; 0x2c + 800e3c4: f000 f94d bl 800e662 ( void ) xTaskResumeAll(); - 800e3c4: f000 fc94 bl 800ecf0 + 800e3c8: f000 fc94 bl 800ecf4 /* If the semaphore count is 0 exit now as the timeout has expired. Otherwise return to attempt to take the semaphore that is known to be available. As semaphores are implemented by queues the queue being empty is equivalent to the semaphore count being 0. */ if( prvIsQueueEmpty( pxQueue ) != pdFALSE ) - 800e3c8: 6af8 ldr r0, [r7, #44] ; 0x2c - 800e3ca: f000 f99a bl 800e702 - 800e3ce: 4603 mov r3, r0 - 800e3d0: 2b00 cmp r3, #0 - 800e3d2: f43f af4c beq.w 800e26e + 800e3cc: 6af8 ldr r0, [r7, #44] ; 0x2c + 800e3ce: f000 f99a bl 800e706 + 800e3d2: 4603 mov r3, r0 + 800e3d4: 2b00 cmp r3, #0 + 800e3d6: f43f af4c beq.w 800e272 #if ( configUSE_MUTEXES == 1 ) { /* xInheritanceOccurred could only have be set if pxQueue->uxQueueType == queueQUEUE_IS_MUTEX so no need to test the mutex type again to check it is actually a mutex. */ if( xInheritanceOccurred != pdFALSE ) - 800e3d6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e3d8: 2b00 cmp r3, #0 - 800e3da: d00d beq.n 800e3f8 + 800e3da: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e3dc: 2b00 cmp r3, #0 + 800e3de: d00d beq.n 800e3fc { taskENTER_CRITICAL(); - 800e3dc: f001 fbac bl 800fb38 + 800e3e0: f001 fbb2 bl 800fb48 /* This task blocking on the mutex caused another task to inherit this task's priority. Now this task has timed out the priority should be disinherited again, but only as low as the next highest priority task that is waiting for the same mutex. */ uxHighestWaitingPriority = prvGetDisinheritPriorityAfterTimeout( pxQueue ); - 800e3e0: 6af8 ldr r0, [r7, #44] ; 0x2c - 800e3e2: f000 f894 bl 800e50e - 800e3e6: 6278 str r0, [r7, #36] ; 0x24 + 800e3e4: 6af8 ldr r0, [r7, #44] ; 0x2c + 800e3e6: f000 f894 bl 800e512 + 800e3ea: 6278 str r0, [r7, #36] ; 0x24 vTaskPriorityDisinheritAfterTimeout( pxQueue->u.xSemaphore.xMutexHolder, uxHighestWaitingPriority ); - 800e3e8: 6afb ldr r3, [r7, #44] ; 0x2c - 800e3ea: 689b ldr r3, [r3, #8] - 800e3ec: 6a79 ldr r1, [r7, #36] ; 0x24 - 800e3ee: 4618 mov r0, r3 - 800e3f0: f001 f986 bl 800f700 + 800e3ec: 6afb ldr r3, [r7, #44] ; 0x2c + 800e3ee: 689b ldr r3, [r3, #8] + 800e3f0: 6a79 ldr r1, [r7, #36] ; 0x24 + 800e3f2: 4618 mov r0, r3 + 800e3f4: f001 f986 bl 800f704 } taskEXIT_CRITICAL(); - 800e3f4: f001 fbd2 bl 800fb9c + 800e3f8: f001 fbd8 bl 800fbac } } #endif /* configUSE_MUTEXES */ traceQUEUE_RECEIVE_FAILED( pxQueue ); return errQUEUE_EMPTY; - 800e3f8: 2300 movs r3, #0 + 800e3fc: 2300 movs r3, #0 { mtCOVERAGE_TEST_MARKER(); } } } /*lint -restore */ } - 800e3fa: 4618 mov r0, r3 - 800e3fc: 3738 adds r7, #56 ; 0x38 - 800e3fe: 46bd mov sp, r7 - 800e400: bd80 pop {r7, pc} - 800e402: bf00 nop - 800e404: e000ed04 .word 0xe000ed04 + 800e3fe: 4618 mov r0, r3 + 800e400: 3738 adds r7, #56 ; 0x38 + 800e402: 46bd mov sp, r7 + 800e404: bd80 pop {r7, pc} + 800e406: bf00 nop + 800e408: e000ed04 .word 0xe000ed04 -0800e408 : +0800e40c : } /*lint -restore */ } /*-----------------------------------------------------------*/ BaseType_t xQueueReceiveFromISR( QueueHandle_t xQueue, void * const pvBuffer, BaseType_t * const pxHigherPriorityTaskWoken ) { - 800e408: b580 push {r7, lr} - 800e40a: b08e sub sp, #56 ; 0x38 - 800e40c: af00 add r7, sp, #0 - 800e40e: 60f8 str r0, [r7, #12] - 800e410: 60b9 str r1, [r7, #8] - 800e412: 607a str r2, [r7, #4] + 800e40c: b580 push {r7, lr} + 800e40e: b08e sub sp, #56 ; 0x38 + 800e410: af00 add r7, sp, #0 + 800e412: 60f8 str r0, [r7, #12] + 800e414: 60b9 str r1, [r7, #8] + 800e416: 607a str r2, [r7, #4] BaseType_t xReturn; UBaseType_t uxSavedInterruptStatus; Queue_t * const pxQueue = xQueue; - 800e414: 68fb ldr r3, [r7, #12] - 800e416: 633b str r3, [r7, #48] ; 0x30 + 800e418: 68fb ldr r3, [r7, #12] + 800e41a: 633b str r3, [r7, #48] ; 0x30 configASSERT( pxQueue ); - 800e418: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e41a: 2b00 cmp r3, #0 - 800e41c: d10b bne.n 800e436 - 800e41e: f04f 0350 mov.w r3, #80 ; 0x50 - 800e422: b672 cpsid i - 800e424: f383 8811 msr BASEPRI, r3 - 800e428: f3bf 8f6f isb sy - 800e42c: f3bf 8f4f dsb sy - 800e430: b662 cpsie i - 800e432: 623b str r3, [r7, #32] - 800e434: e7fe b.n 800e434 + 800e41c: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e41e: 2b00 cmp r3, #0 + 800e420: d10b bne.n 800e43a + 800e422: f04f 0350 mov.w r3, #80 ; 0x50 + 800e426: b672 cpsid i + 800e428: f383 8811 msr BASEPRI, r3 + 800e42c: f3bf 8f6f isb sy + 800e430: f3bf 8f4f dsb sy + 800e434: b662 cpsie i + 800e436: 623b str r3, [r7, #32] + 800e438: e7fe b.n 800e438 configASSERT( !( ( pvBuffer == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); - 800e436: 68bb ldr r3, [r7, #8] - 800e438: 2b00 cmp r3, #0 - 800e43a: d103 bne.n 800e444 - 800e43c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e43e: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e440: 2b00 cmp r3, #0 - 800e442: d101 bne.n 800e448 - 800e444: 2301 movs r3, #1 - 800e446: e000 b.n 800e44a - 800e448: 2300 movs r3, #0 - 800e44a: 2b00 cmp r3, #0 - 800e44c: d10b bne.n 800e466 - 800e44e: f04f 0350 mov.w r3, #80 ; 0x50 - 800e452: b672 cpsid i - 800e454: f383 8811 msr BASEPRI, r3 - 800e458: f3bf 8f6f isb sy - 800e45c: f3bf 8f4f dsb sy - 800e460: b662 cpsie i - 800e462: 61fb str r3, [r7, #28] - 800e464: e7fe b.n 800e464 + 800e43a: 68bb ldr r3, [r7, #8] + 800e43c: 2b00 cmp r3, #0 + 800e43e: d103 bne.n 800e448 + 800e440: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e442: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e444: 2b00 cmp r3, #0 + 800e446: d101 bne.n 800e44c + 800e448: 2301 movs r3, #1 + 800e44a: e000 b.n 800e44e + 800e44c: 2300 movs r3, #0 + 800e44e: 2b00 cmp r3, #0 + 800e450: d10b bne.n 800e46a + 800e452: f04f 0350 mov.w r3, #80 ; 0x50 + 800e456: b672 cpsid i + 800e458: f383 8811 msr BASEPRI, r3 + 800e45c: f3bf 8f6f isb sy + 800e460: f3bf 8f4f dsb sy + 800e464: b662 cpsie i + 800e466: 61fb str r3, [r7, #28] + 800e468: e7fe b.n 800e468 that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); - 800e466: f001 fc47 bl 800fcf8 + 800e46a: f001 fc4d bl 800fd08 __asm volatile - 800e46a: f3ef 8211 mrs r2, BASEPRI - 800e46e: f04f 0350 mov.w r3, #80 ; 0x50 - 800e472: b672 cpsid i - 800e474: f383 8811 msr BASEPRI, r3 - 800e478: f3bf 8f6f isb sy - 800e47c: f3bf 8f4f dsb sy - 800e480: b662 cpsie i - 800e482: 61ba str r2, [r7, #24] - 800e484: 617b str r3, [r7, #20] + 800e46e: f3ef 8211 mrs r2, BASEPRI + 800e472: f04f 0350 mov.w r3, #80 ; 0x50 + 800e476: b672 cpsid i + 800e478: f383 8811 msr BASEPRI, r3 + 800e47c: f3bf 8f6f isb sy + 800e480: f3bf 8f4f dsb sy + 800e484: b662 cpsie i + 800e486: 61ba str r2, [r7, #24] + 800e488: 617b str r3, [r7, #20] return ulOriginalBASEPRI; - 800e486: 69bb ldr r3, [r7, #24] + 800e48a: 69bb ldr r3, [r7, #24] uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR(); - 800e488: 62fb str r3, [r7, #44] ; 0x2c + 800e48c: 62fb str r3, [r7, #44] ; 0x2c { const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting; - 800e48a: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e48c: 6b9b ldr r3, [r3, #56] ; 0x38 - 800e48e: 62bb str r3, [r7, #40] ; 0x28 + 800e48e: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e490: 6b9b ldr r3, [r3, #56] ; 0x38 + 800e492: 62bb str r3, [r7, #40] ; 0x28 /* Cannot block in an ISR, so check there is data available. */ if( uxMessagesWaiting > ( UBaseType_t ) 0 ) - 800e490: 6abb ldr r3, [r7, #40] ; 0x28 - 800e492: 2b00 cmp r3, #0 - 800e494: d02f beq.n 800e4f6 + 800e494: 6abb ldr r3, [r7, #40] ; 0x28 + 800e496: 2b00 cmp r3, #0 + 800e498: d02f beq.n 800e4fa { const int8_t cRxLock = pxQueue->cRxLock; - 800e496: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e498: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 800e49c: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 800e49a: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e49c: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 + 800e4a0: f887 3027 strb.w r3, [r7, #39] ; 0x27 traceQUEUE_RECEIVE_FROM_ISR( pxQueue ); prvCopyDataFromQueue( pxQueue, pvBuffer ); - 800e4a0: 68b9 ldr r1, [r7, #8] - 800e4a2: 6b38 ldr r0, [r7, #48] ; 0x30 - 800e4a4: f000 f8b5 bl 800e612 + 800e4a4: 68b9 ldr r1, [r7, #8] + 800e4a6: 6b38 ldr r0, [r7, #48] ; 0x30 + 800e4a8: f000 f8b5 bl 800e616 pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1; - 800e4a8: 6abb ldr r3, [r7, #40] ; 0x28 - 800e4aa: 1e5a subs r2, r3, #1 - 800e4ac: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e4ae: 639a str r2, [r3, #56] ; 0x38 + 800e4ac: 6abb ldr r3, [r7, #40] ; 0x28 + 800e4ae: 1e5a subs r2, r3, #1 + 800e4b0: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e4b2: 639a str r2, [r3, #56] ; 0x38 /* If the queue is locked the event list will not be modified. Instead update the lock count so the task that unlocks the queue will know that an ISR has removed data while the queue was locked. */ if( cRxLock == queueUNLOCKED ) - 800e4b0: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 800e4b4: f1b3 3fff cmp.w r3, #4294967295 - 800e4b8: d112 bne.n 800e4e0 + 800e4b4: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 + 800e4b8: f1b3 3fff cmp.w r3, #4294967295 + 800e4bc: d112 bne.n 800e4e4 { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - 800e4ba: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e4bc: 691b ldr r3, [r3, #16] - 800e4be: 2b00 cmp r3, #0 - 800e4c0: d016 beq.n 800e4f0 + 800e4be: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e4c0: 691b ldr r3, [r3, #16] + 800e4c2: 2b00 cmp r3, #0 + 800e4c4: d016 beq.n 800e4f4 { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 800e4c2: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e4c4: 3310 adds r3, #16 - 800e4c6: 4618 mov r0, r3 - 800e4c8: f000 fe34 bl 800f134 - 800e4cc: 4603 mov r3, r0 - 800e4ce: 2b00 cmp r3, #0 - 800e4d0: d00e beq.n 800e4f0 + 800e4c6: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e4c8: 3310 adds r3, #16 + 800e4ca: 4618 mov r0, r3 + 800e4cc: f000 fe34 bl 800f138 + 800e4d0: 4603 mov r3, r0 + 800e4d2: 2b00 cmp r3, #0 + 800e4d4: d00e beq.n 800e4f4 { /* The task waiting has a higher priority than us so force a context switch. */ if( pxHigherPriorityTaskWoken != NULL ) - 800e4d2: 687b ldr r3, [r7, #4] - 800e4d4: 2b00 cmp r3, #0 - 800e4d6: d00b beq.n 800e4f0 + 800e4d6: 687b ldr r3, [r7, #4] + 800e4d8: 2b00 cmp r3, #0 + 800e4da: d00b beq.n 800e4f4 { *pxHigherPriorityTaskWoken = pdTRUE; - 800e4d8: 687b ldr r3, [r7, #4] - 800e4da: 2201 movs r2, #1 - 800e4dc: 601a str r2, [r3, #0] - 800e4de: e007 b.n 800e4f0 + 800e4dc: 687b ldr r3, [r7, #4] + 800e4de: 2201 movs r2, #1 + 800e4e0: 601a str r2, [r3, #0] + 800e4e2: e007 b.n 800e4f4 } else { /* Increment the lock count so the task that unlocks the queue knows that data was removed while it was locked. */ pxQueue->cRxLock = ( int8_t ) ( cRxLock + 1 ); - 800e4e0: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 800e4e4: 3301 adds r3, #1 - 800e4e6: b2db uxtb r3, r3 - 800e4e8: b25a sxtb r2, r3 - 800e4ea: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e4ec: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800e4e4: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 800e4e8: 3301 adds r3, #1 + 800e4ea: b2db uxtb r3, r3 + 800e4ec: b25a sxtb r2, r3 + 800e4ee: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e4f0: f883 2044 strb.w r2, [r3, #68] ; 0x44 } xReturn = pdPASS; - 800e4f0: 2301 movs r3, #1 - 800e4f2: 637b str r3, [r7, #52] ; 0x34 - 800e4f4: e001 b.n 800e4fa + 800e4f4: 2301 movs r3, #1 + 800e4f6: 637b str r3, [r7, #52] ; 0x34 + 800e4f8: e001 b.n 800e4fe } else { xReturn = pdFAIL; - 800e4f6: 2300 movs r3, #0 - 800e4f8: 637b str r3, [r7, #52] ; 0x34 - 800e4fa: 6afb ldr r3, [r7, #44] ; 0x2c - 800e4fc: 613b str r3, [r7, #16] + 800e4fa: 2300 movs r3, #0 + 800e4fc: 637b str r3, [r7, #52] ; 0x34 + 800e4fe: 6afb ldr r3, [r7, #44] ; 0x2c + 800e500: 613b str r3, [r7, #16] __asm volatile - 800e4fe: 693b ldr r3, [r7, #16] - 800e500: f383 8811 msr BASEPRI, r3 + 800e502: 693b ldr r3, [r7, #16] + 800e504: f383 8811 msr BASEPRI, r3 traceQUEUE_RECEIVE_FROM_ISR_FAILED( pxQueue ); } } portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; - 800e504: 6b7b ldr r3, [r7, #52] ; 0x34 + 800e508: 6b7b ldr r3, [r7, #52] ; 0x34 } - 800e506: 4618 mov r0, r3 - 800e508: 3738 adds r7, #56 ; 0x38 - 800e50a: 46bd mov sp, r7 - 800e50c: bd80 pop {r7, pc} + 800e50a: 4618 mov r0, r3 + 800e50c: 3738 adds r7, #56 ; 0x38 + 800e50e: 46bd mov sp, r7 + 800e510: bd80 pop {r7, pc} -0800e50e : +0800e512 : /*-----------------------------------------------------------*/ #if( configUSE_MUTEXES == 1 ) static UBaseType_t prvGetDisinheritPriorityAfterTimeout( const Queue_t * const pxQueue ) { - 800e50e: b480 push {r7} - 800e510: b085 sub sp, #20 - 800e512: af00 add r7, sp, #0 - 800e514: 6078 str r0, [r7, #4] + 800e512: b480 push {r7} + 800e514: b085 sub sp, #20 + 800e516: af00 add r7, sp, #0 + 800e518: 6078 str r0, [r7, #4] priority, but the waiting task times out, then the holder should disinherit the priority - but only down to the highest priority of any other tasks that are waiting for the same mutex. For this purpose, return the priority of the highest priority task that is waiting for the mutex. */ if( listCURRENT_LIST_LENGTH( &( pxQueue->xTasksWaitingToReceive ) ) > 0U ) - 800e516: 687b ldr r3, [r7, #4] - 800e518: 6a5b ldr r3, [r3, #36] ; 0x24 - 800e51a: 2b00 cmp r3, #0 - 800e51c: d006 beq.n 800e52c + 800e51a: 687b ldr r3, [r7, #4] + 800e51c: 6a5b ldr r3, [r3, #36] ; 0x24 + 800e51e: 2b00 cmp r3, #0 + 800e520: d006 beq.n 800e530 { uxHighestPriorityOfWaitingTasks = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) listGET_ITEM_VALUE_OF_HEAD_ENTRY( &( pxQueue->xTasksWaitingToReceive ) ); - 800e51e: 687b ldr r3, [r7, #4] - 800e520: 6b1b ldr r3, [r3, #48] ; 0x30 - 800e522: 681b ldr r3, [r3, #0] - 800e524: f1c3 0307 rsb r3, r3, #7 - 800e528: 60fb str r3, [r7, #12] - 800e52a: e001 b.n 800e530 + 800e522: 687b ldr r3, [r7, #4] + 800e524: 6b1b ldr r3, [r3, #48] ; 0x30 + 800e526: 681b ldr r3, [r3, #0] + 800e528: f1c3 0307 rsb r3, r3, #7 + 800e52c: 60fb str r3, [r7, #12] + 800e52e: e001 b.n 800e534 } else { uxHighestPriorityOfWaitingTasks = tskIDLE_PRIORITY; - 800e52c: 2300 movs r3, #0 - 800e52e: 60fb str r3, [r7, #12] + 800e530: 2300 movs r3, #0 + 800e532: 60fb str r3, [r7, #12] } return uxHighestPriorityOfWaitingTasks; - 800e530: 68fb ldr r3, [r7, #12] + 800e534: 68fb ldr r3, [r7, #12] } - 800e532: 4618 mov r0, r3 - 800e534: 3714 adds r7, #20 - 800e536: 46bd mov sp, r7 - 800e538: f85d 7b04 ldr.w r7, [sp], #4 - 800e53c: 4770 bx lr + 800e536: 4618 mov r0, r3 + 800e538: 3714 adds r7, #20 + 800e53a: 46bd mov sp, r7 + 800e53c: f85d 7b04 ldr.w r7, [sp], #4 + 800e540: 4770 bx lr -0800e53e : +0800e542 : #endif /* configUSE_MUTEXES */ /*-----------------------------------------------------------*/ static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition ) { - 800e53e: b580 push {r7, lr} - 800e540: b086 sub sp, #24 - 800e542: af00 add r7, sp, #0 - 800e544: 60f8 str r0, [r7, #12] - 800e546: 60b9 str r1, [r7, #8] - 800e548: 607a str r2, [r7, #4] + 800e542: b580 push {r7, lr} + 800e544: b086 sub sp, #24 + 800e546: af00 add r7, sp, #0 + 800e548: 60f8 str r0, [r7, #12] + 800e54a: 60b9 str r1, [r7, #8] + 800e54c: 607a str r2, [r7, #4] BaseType_t xReturn = pdFALSE; - 800e54a: 2300 movs r3, #0 - 800e54c: 617b str r3, [r7, #20] + 800e54e: 2300 movs r3, #0 + 800e550: 617b str r3, [r7, #20] UBaseType_t uxMessagesWaiting; /* This function is called from a critical section. */ uxMessagesWaiting = pxQueue->uxMessagesWaiting; - 800e54e: 68fb ldr r3, [r7, #12] - 800e550: 6b9b ldr r3, [r3, #56] ; 0x38 - 800e552: 613b str r3, [r7, #16] + 800e552: 68fb ldr r3, [r7, #12] + 800e554: 6b9b ldr r3, [r3, #56] ; 0x38 + 800e556: 613b str r3, [r7, #16] if( pxQueue->uxItemSize == ( UBaseType_t ) 0 ) - 800e554: 68fb ldr r3, [r7, #12] - 800e556: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e558: 2b00 cmp r3, #0 - 800e55a: d10d bne.n 800e578 + 800e558: 68fb ldr r3, [r7, #12] + 800e55a: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e55c: 2b00 cmp r3, #0 + 800e55e: d10d bne.n 800e57c { #if ( configUSE_MUTEXES == 1 ) { if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX ) - 800e55c: 68fb ldr r3, [r7, #12] - 800e55e: 681b ldr r3, [r3, #0] - 800e560: 2b00 cmp r3, #0 - 800e562: d14d bne.n 800e600 + 800e560: 68fb ldr r3, [r7, #12] + 800e562: 681b ldr r3, [r3, #0] + 800e564: 2b00 cmp r3, #0 + 800e566: d14d bne.n 800e604 { /* The mutex is no longer being held. */ xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder ); - 800e564: 68fb ldr r3, [r7, #12] - 800e566: 689b ldr r3, [r3, #8] - 800e568: 4618 mov r0, r3 - 800e56a: f001 f841 bl 800f5f0 - 800e56e: 6178 str r0, [r7, #20] + 800e568: 68fb ldr r3, [r7, #12] + 800e56a: 689b ldr r3, [r3, #8] + 800e56c: 4618 mov r0, r3 + 800e56e: f001 f841 bl 800f5f4 + 800e572: 6178 str r0, [r7, #20] pxQueue->u.xSemaphore.xMutexHolder = NULL; - 800e570: 68fb ldr r3, [r7, #12] - 800e572: 2200 movs r2, #0 - 800e574: 609a str r2, [r3, #8] - 800e576: e043 b.n 800e600 + 800e574: 68fb ldr r3, [r7, #12] + 800e576: 2200 movs r2, #0 + 800e578: 609a str r2, [r3, #8] + 800e57a: e043 b.n 800e604 mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_MUTEXES */ } else if( xPosition == queueSEND_TO_BACK ) - 800e578: 687b ldr r3, [r7, #4] - 800e57a: 2b00 cmp r3, #0 - 800e57c: d119 bne.n 800e5b2 + 800e57c: 687b ldr r3, [r7, #4] + 800e57e: 2b00 cmp r3, #0 + 800e580: d119 bne.n 800e5b6 { ( void ) memcpy( ( void * ) pxQueue->pcWriteTo, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports, plus previous logic ensures a null pointer can only be passed to memcpy() if the copy size is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */ - 800e57e: 68fb ldr r3, [r7, #12] - 800e580: 6858 ldr r0, [r3, #4] 800e582: 68fb ldr r3, [r7, #12] - 800e584: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e586: 461a mov r2, r3 - 800e588: 68b9 ldr r1, [r7, #8] - 800e58a: f00e f830 bl 801c5ee + 800e584: 6858 ldr r0, [r3, #4] + 800e586: 68fb ldr r3, [r7, #12] + 800e588: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e58a: 461a mov r2, r3 + 800e58c: 68b9 ldr r1, [r7, #8] + 800e58e: f00e f836 bl 801c5fe pxQueue->pcWriteTo += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */ - 800e58e: 68fb ldr r3, [r7, #12] - 800e590: 685a ldr r2, [r3, #4] 800e592: 68fb ldr r3, [r7, #12] - 800e594: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e596: 441a add r2, r3 - 800e598: 68fb ldr r3, [r7, #12] - 800e59a: 605a str r2, [r3, #4] - if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */ + 800e594: 685a ldr r2, [r3, #4] + 800e596: 68fb ldr r3, [r7, #12] + 800e598: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e59a: 441a add r2, r3 800e59c: 68fb ldr r3, [r7, #12] - 800e59e: 685a ldr r2, [r3, #4] + 800e59e: 605a str r2, [r3, #4] + if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */ 800e5a0: 68fb ldr r3, [r7, #12] - 800e5a2: 689b ldr r3, [r3, #8] - 800e5a4: 429a cmp r2, r3 - 800e5a6: d32b bcc.n 800e600 + 800e5a2: 685a ldr r2, [r3, #4] + 800e5a4: 68fb ldr r3, [r7, #12] + 800e5a6: 689b ldr r3, [r3, #8] + 800e5a8: 429a cmp r2, r3 + 800e5aa: d32b bcc.n 800e604 { pxQueue->pcWriteTo = pxQueue->pcHead; - 800e5a8: 68fb ldr r3, [r7, #12] - 800e5aa: 681a ldr r2, [r3, #0] 800e5ac: 68fb ldr r3, [r7, #12] - 800e5ae: 605a str r2, [r3, #4] - 800e5b0: e026 b.n 800e600 + 800e5ae: 681a ldr r2, [r3, #0] + 800e5b0: 68fb ldr r3, [r7, #12] + 800e5b2: 605a str r2, [r3, #4] + 800e5b4: e026 b.n 800e604 mtCOVERAGE_TEST_MARKER(); } } else { ( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */ - 800e5b2: 68fb ldr r3, [r7, #12] - 800e5b4: 68d8 ldr r0, [r3, #12] 800e5b6: 68fb ldr r3, [r7, #12] - 800e5b8: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e5ba: 461a mov r2, r3 - 800e5bc: 68b9 ldr r1, [r7, #8] - 800e5be: f00e f816 bl 801c5ee + 800e5b8: 68d8 ldr r0, [r3, #12] + 800e5ba: 68fb ldr r3, [r7, #12] + 800e5bc: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e5be: 461a mov r2, r3 + 800e5c0: 68b9 ldr r1, [r7, #8] + 800e5c2: f00e f81c bl 801c5fe pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize; - 800e5c2: 68fb ldr r3, [r7, #12] - 800e5c4: 68da ldr r2, [r3, #12] 800e5c6: 68fb ldr r3, [r7, #12] - 800e5c8: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e5ca: 425b negs r3, r3 - 800e5cc: 441a add r2, r3 - 800e5ce: 68fb ldr r3, [r7, #12] - 800e5d0: 60da str r2, [r3, #12] - if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */ + 800e5c8: 68da ldr r2, [r3, #12] + 800e5ca: 68fb ldr r3, [r7, #12] + 800e5cc: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e5ce: 425b negs r3, r3 + 800e5d0: 441a add r2, r3 800e5d2: 68fb ldr r3, [r7, #12] - 800e5d4: 68da ldr r2, [r3, #12] + 800e5d4: 60da str r2, [r3, #12] + if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */ 800e5d6: 68fb ldr r3, [r7, #12] - 800e5d8: 681b ldr r3, [r3, #0] - 800e5da: 429a cmp r2, r3 - 800e5dc: d207 bcs.n 800e5ee + 800e5d8: 68da ldr r2, [r3, #12] + 800e5da: 68fb ldr r3, [r7, #12] + 800e5dc: 681b ldr r3, [r3, #0] + 800e5de: 429a cmp r2, r3 + 800e5e0: d207 bcs.n 800e5f2 { pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize ); - 800e5de: 68fb ldr r3, [r7, #12] - 800e5e0: 689a ldr r2, [r3, #8] 800e5e2: 68fb ldr r3, [r7, #12] - 800e5e4: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e5e6: 425b negs r3, r3 - 800e5e8: 441a add r2, r3 - 800e5ea: 68fb ldr r3, [r7, #12] - 800e5ec: 60da str r2, [r3, #12] + 800e5e4: 689a ldr r2, [r3, #8] + 800e5e6: 68fb ldr r3, [r7, #12] + 800e5e8: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e5ea: 425b negs r3, r3 + 800e5ec: 441a add r2, r3 + 800e5ee: 68fb ldr r3, [r7, #12] + 800e5f0: 60da str r2, [r3, #12] else { mtCOVERAGE_TEST_MARKER(); } if( xPosition == queueOVERWRITE ) - 800e5ee: 687b ldr r3, [r7, #4] - 800e5f0: 2b02 cmp r3, #2 - 800e5f2: d105 bne.n 800e600 + 800e5f2: 687b ldr r3, [r7, #4] + 800e5f4: 2b02 cmp r3, #2 + 800e5f6: d105 bne.n 800e604 { if( uxMessagesWaiting > ( UBaseType_t ) 0 ) - 800e5f4: 693b ldr r3, [r7, #16] - 800e5f6: 2b00 cmp r3, #0 - 800e5f8: d002 beq.n 800e600 + 800e5f8: 693b ldr r3, [r7, #16] + 800e5fa: 2b00 cmp r3, #0 + 800e5fc: d002 beq.n 800e604 { /* An item is not being added but overwritten, so subtract one from the recorded number of items in the queue so when one is added again below the number of recorded items remains correct. */ --uxMessagesWaiting; - 800e5fa: 693b ldr r3, [r7, #16] - 800e5fc: 3b01 subs r3, #1 - 800e5fe: 613b str r3, [r7, #16] + 800e5fe: 693b ldr r3, [r7, #16] + 800e600: 3b01 subs r3, #1 + 800e602: 613b str r3, [r7, #16] { mtCOVERAGE_TEST_MARKER(); } } pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1; - 800e600: 693b ldr r3, [r7, #16] - 800e602: 1c5a adds r2, r3, #1 - 800e604: 68fb ldr r3, [r7, #12] - 800e606: 639a str r2, [r3, #56] ; 0x38 + 800e604: 693b ldr r3, [r7, #16] + 800e606: 1c5a adds r2, r3, #1 + 800e608: 68fb ldr r3, [r7, #12] + 800e60a: 639a str r2, [r3, #56] ; 0x38 return xReturn; - 800e608: 697b ldr r3, [r7, #20] + 800e60c: 697b ldr r3, [r7, #20] } - 800e60a: 4618 mov r0, r3 - 800e60c: 3718 adds r7, #24 - 800e60e: 46bd mov sp, r7 - 800e610: bd80 pop {r7, pc} + 800e60e: 4618 mov r0, r3 + 800e610: 3718 adds r7, #24 + 800e612: 46bd mov sp, r7 + 800e614: bd80 pop {r7, pc} -0800e612 : +0800e616 : /*-----------------------------------------------------------*/ static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer ) { - 800e612: b580 push {r7, lr} - 800e614: b082 sub sp, #8 - 800e616: af00 add r7, sp, #0 - 800e618: 6078 str r0, [r7, #4] - 800e61a: 6039 str r1, [r7, #0] + 800e616: b580 push {r7, lr} + 800e618: b082 sub sp, #8 + 800e61a: af00 add r7, sp, #0 + 800e61c: 6078 str r0, [r7, #4] + 800e61e: 6039 str r1, [r7, #0] if( pxQueue->uxItemSize != ( UBaseType_t ) 0 ) - 800e61c: 687b ldr r3, [r7, #4] - 800e61e: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e620: 2b00 cmp r3, #0 - 800e622: d018 beq.n 800e656 + 800e620: 687b ldr r3, [r7, #4] + 800e622: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e624: 2b00 cmp r3, #0 + 800e626: d018 beq.n 800e65a { pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */ - 800e624: 687b ldr r3, [r7, #4] - 800e626: 68da ldr r2, [r3, #12] 800e628: 687b ldr r3, [r7, #4] - 800e62a: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e62c: 441a add r2, r3 - 800e62e: 687b ldr r3, [r7, #4] - 800e630: 60da str r2, [r3, #12] - if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */ + 800e62a: 68da ldr r2, [r3, #12] + 800e62c: 687b ldr r3, [r7, #4] + 800e62e: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e630: 441a add r2, r3 800e632: 687b ldr r3, [r7, #4] - 800e634: 68da ldr r2, [r3, #12] + 800e634: 60da str r2, [r3, #12] + if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */ 800e636: 687b ldr r3, [r7, #4] - 800e638: 689b ldr r3, [r3, #8] - 800e63a: 429a cmp r2, r3 - 800e63c: d303 bcc.n 800e646 + 800e638: 68da ldr r2, [r3, #12] + 800e63a: 687b ldr r3, [r7, #4] + 800e63c: 689b ldr r3, [r3, #8] + 800e63e: 429a cmp r2, r3 + 800e640: d303 bcc.n 800e64a { pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead; - 800e63e: 687b ldr r3, [r7, #4] - 800e640: 681a ldr r2, [r3, #0] 800e642: 687b ldr r3, [r7, #4] - 800e644: 60da str r2, [r3, #12] + 800e644: 681a ldr r2, [r3, #0] + 800e646: 687b ldr r3, [r7, #4] + 800e648: 60da str r2, [r3, #12] } else { mtCOVERAGE_TEST_MARKER(); } ( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */ - 800e646: 687b ldr r3, [r7, #4] - 800e648: 68d9 ldr r1, [r3, #12] 800e64a: 687b ldr r3, [r7, #4] - 800e64c: 6c1b ldr r3, [r3, #64] ; 0x40 - 800e64e: 461a mov r2, r3 - 800e650: 6838 ldr r0, [r7, #0] - 800e652: f00d ffcc bl 801c5ee + 800e64c: 68d9 ldr r1, [r3, #12] + 800e64e: 687b ldr r3, [r7, #4] + 800e650: 6c1b ldr r3, [r3, #64] ; 0x40 + 800e652: 461a mov r2, r3 + 800e654: 6838 ldr r0, [r7, #0] + 800e656: f00d ffd2 bl 801c5fe } } - 800e656: bf00 nop - 800e658: 3708 adds r7, #8 - 800e65a: 46bd mov sp, r7 - 800e65c: bd80 pop {r7, pc} + 800e65a: bf00 nop + 800e65c: 3708 adds r7, #8 + 800e65e: 46bd mov sp, r7 + 800e660: bd80 pop {r7, pc} -0800e65e : +0800e662 : /*-----------------------------------------------------------*/ static void prvUnlockQueue( Queue_t * const pxQueue ) { - 800e65e: b580 push {r7, lr} - 800e660: b084 sub sp, #16 - 800e662: af00 add r7, sp, #0 - 800e664: 6078 str r0, [r7, #4] + 800e662: b580 push {r7, lr} + 800e664: b084 sub sp, #16 + 800e666: af00 add r7, sp, #0 + 800e668: 6078 str r0, [r7, #4] /* The lock counts contains the number of extra data items placed or removed from the queue while the queue was locked. When a queue is locked items can be added or removed, but the event lists cannot be updated. */ taskENTER_CRITICAL(); - 800e666: f001 fa67 bl 800fb38 + 800e66a: f001 fa6d bl 800fb48 { int8_t cTxLock = pxQueue->cTxLock; - 800e66a: 687b ldr r3, [r7, #4] - 800e66c: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 - 800e670: 73fb strb r3, [r7, #15] + 800e66e: 687b ldr r3, [r7, #4] + 800e670: f893 3045 ldrb.w r3, [r3, #69] ; 0x45 + 800e674: 73fb strb r3, [r7, #15] /* See if data was added to the queue while it was locked. */ while( cTxLock > queueLOCKED_UNMODIFIED ) - 800e672: e011 b.n 800e698 + 800e676: e011 b.n 800e69c } #else /* configUSE_QUEUE_SETS */ { /* Tasks that are removed from the event list will get added to the pending ready list as the scheduler is still suspended. */ if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) - 800e674: 687b ldr r3, [r7, #4] - 800e676: 6a5b ldr r3, [r3, #36] ; 0x24 - 800e678: 2b00 cmp r3, #0 - 800e67a: d012 beq.n 800e6a2 + 800e678: 687b ldr r3, [r7, #4] + 800e67a: 6a5b ldr r3, [r3, #36] ; 0x24 + 800e67c: 2b00 cmp r3, #0 + 800e67e: d012 beq.n 800e6a6 { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE ) - 800e67c: 687b ldr r3, [r7, #4] - 800e67e: 3324 adds r3, #36 ; 0x24 - 800e680: 4618 mov r0, r3 - 800e682: f000 fd57 bl 800f134 - 800e686: 4603 mov r3, r0 - 800e688: 2b00 cmp r3, #0 - 800e68a: d001 beq.n 800e690 + 800e680: 687b ldr r3, [r7, #4] + 800e682: 3324 adds r3, #36 ; 0x24 + 800e684: 4618 mov r0, r3 + 800e686: f000 fd57 bl 800f138 + 800e68a: 4603 mov r3, r0 + 800e68c: 2b00 cmp r3, #0 + 800e68e: d001 beq.n 800e694 { /* The task waiting has a higher priority so record that a context switch is required. */ vTaskMissedYield(); - 800e68c: f000 fe30 bl 800f2f0 + 800e690: f000 fe30 bl 800f2f4 break; } } #endif /* configUSE_QUEUE_SETS */ --cTxLock; - 800e690: 7bfb ldrb r3, [r7, #15] - 800e692: 3b01 subs r3, #1 - 800e694: b2db uxtb r3, r3 - 800e696: 73fb strb r3, [r7, #15] + 800e694: 7bfb ldrb r3, [r7, #15] + 800e696: 3b01 subs r3, #1 + 800e698: b2db uxtb r3, r3 + 800e69a: 73fb strb r3, [r7, #15] while( cTxLock > queueLOCKED_UNMODIFIED ) - 800e698: f997 300f ldrsb.w r3, [r7, #15] - 800e69c: 2b00 cmp r3, #0 - 800e69e: dce9 bgt.n 800e674 - 800e6a0: e000 b.n 800e6a4 + 800e69c: f997 300f ldrsb.w r3, [r7, #15] + 800e6a0: 2b00 cmp r3, #0 + 800e6a2: dce9 bgt.n 800e678 + 800e6a4: e000 b.n 800e6a8 break; - 800e6a2: bf00 nop + 800e6a6: bf00 nop } pxQueue->cTxLock = queueUNLOCKED; - 800e6a4: 687b ldr r3, [r7, #4] - 800e6a6: 22ff movs r2, #255 ; 0xff - 800e6a8: f883 2045 strb.w r2, [r3, #69] ; 0x45 + 800e6a8: 687b ldr r3, [r7, #4] + 800e6aa: 22ff movs r2, #255 ; 0xff + 800e6ac: f883 2045 strb.w r2, [r3, #69] ; 0x45 } taskEXIT_CRITICAL(); - 800e6ac: f001 fa76 bl 800fb9c + 800e6b0: f001 fa7c bl 800fbac /* Do the same for the Rx lock. */ taskENTER_CRITICAL(); - 800e6b0: f001 fa42 bl 800fb38 + 800e6b4: f001 fa48 bl 800fb48 { int8_t cRxLock = pxQueue->cRxLock; - 800e6b4: 687b ldr r3, [r7, #4] - 800e6b6: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 - 800e6ba: 73bb strb r3, [r7, #14] + 800e6b8: 687b ldr r3, [r7, #4] + 800e6ba: f893 3044 ldrb.w r3, [r3, #68] ; 0x44 + 800e6be: 73bb strb r3, [r7, #14] while( cRxLock > queueLOCKED_UNMODIFIED ) - 800e6bc: e011 b.n 800e6e2 + 800e6c0: e011 b.n 800e6e6 { if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE ) - 800e6be: 687b ldr r3, [r7, #4] - 800e6c0: 691b ldr r3, [r3, #16] - 800e6c2: 2b00 cmp r3, #0 - 800e6c4: d012 beq.n 800e6ec + 800e6c2: 687b ldr r3, [r7, #4] + 800e6c4: 691b ldr r3, [r3, #16] + 800e6c6: 2b00 cmp r3, #0 + 800e6c8: d012 beq.n 800e6f0 { if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE ) - 800e6c6: 687b ldr r3, [r7, #4] - 800e6c8: 3310 adds r3, #16 - 800e6ca: 4618 mov r0, r3 - 800e6cc: f000 fd32 bl 800f134 - 800e6d0: 4603 mov r3, r0 - 800e6d2: 2b00 cmp r3, #0 - 800e6d4: d001 beq.n 800e6da + 800e6ca: 687b ldr r3, [r7, #4] + 800e6cc: 3310 adds r3, #16 + 800e6ce: 4618 mov r0, r3 + 800e6d0: f000 fd32 bl 800f138 + 800e6d4: 4603 mov r3, r0 + 800e6d6: 2b00 cmp r3, #0 + 800e6d8: d001 beq.n 800e6de { vTaskMissedYield(); - 800e6d6: f000 fe0b bl 800f2f0 + 800e6da: f000 fe0b bl 800f2f4 else { mtCOVERAGE_TEST_MARKER(); } --cRxLock; - 800e6da: 7bbb ldrb r3, [r7, #14] - 800e6dc: 3b01 subs r3, #1 - 800e6de: b2db uxtb r3, r3 - 800e6e0: 73bb strb r3, [r7, #14] + 800e6de: 7bbb ldrb r3, [r7, #14] + 800e6e0: 3b01 subs r3, #1 + 800e6e2: b2db uxtb r3, r3 + 800e6e4: 73bb strb r3, [r7, #14] while( cRxLock > queueLOCKED_UNMODIFIED ) - 800e6e2: f997 300e ldrsb.w r3, [r7, #14] - 800e6e6: 2b00 cmp r3, #0 - 800e6e8: dce9 bgt.n 800e6be - 800e6ea: e000 b.n 800e6ee + 800e6e6: f997 300e ldrsb.w r3, [r7, #14] + 800e6ea: 2b00 cmp r3, #0 + 800e6ec: dce9 bgt.n 800e6c2 + 800e6ee: e000 b.n 800e6f2 } else { break; - 800e6ec: bf00 nop + 800e6f0: bf00 nop } } pxQueue->cRxLock = queueUNLOCKED; - 800e6ee: 687b ldr r3, [r7, #4] - 800e6f0: 22ff movs r2, #255 ; 0xff - 800e6f2: f883 2044 strb.w r2, [r3, #68] ; 0x44 + 800e6f2: 687b ldr r3, [r7, #4] + 800e6f4: 22ff movs r2, #255 ; 0xff + 800e6f6: f883 2044 strb.w r2, [r3, #68] ; 0x44 } taskEXIT_CRITICAL(); - 800e6f6: f001 fa51 bl 800fb9c + 800e6fa: f001 fa57 bl 800fbac } - 800e6fa: bf00 nop - 800e6fc: 3710 adds r7, #16 - 800e6fe: 46bd mov sp, r7 - 800e700: bd80 pop {r7, pc} + 800e6fe: bf00 nop + 800e700: 3710 adds r7, #16 + 800e702: 46bd mov sp, r7 + 800e704: bd80 pop {r7, pc} -0800e702 : +0800e706 : /*-----------------------------------------------------------*/ static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue ) { - 800e702: b580 push {r7, lr} - 800e704: b084 sub sp, #16 - 800e706: af00 add r7, sp, #0 - 800e708: 6078 str r0, [r7, #4] + 800e706: b580 push {r7, lr} + 800e708: b084 sub sp, #16 + 800e70a: af00 add r7, sp, #0 + 800e70c: 6078 str r0, [r7, #4] BaseType_t xReturn; taskENTER_CRITICAL(); - 800e70a: f001 fa15 bl 800fb38 + 800e70e: f001 fa1b bl 800fb48 { if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 ) - 800e70e: 687b ldr r3, [r7, #4] - 800e710: 6b9b ldr r3, [r3, #56] ; 0x38 - 800e712: 2b00 cmp r3, #0 - 800e714: d102 bne.n 800e71c + 800e712: 687b ldr r3, [r7, #4] + 800e714: 6b9b ldr r3, [r3, #56] ; 0x38 + 800e716: 2b00 cmp r3, #0 + 800e718: d102 bne.n 800e720 { xReturn = pdTRUE; - 800e716: 2301 movs r3, #1 - 800e718: 60fb str r3, [r7, #12] - 800e71a: e001 b.n 800e720 + 800e71a: 2301 movs r3, #1 + 800e71c: 60fb str r3, [r7, #12] + 800e71e: e001 b.n 800e724 } else { xReturn = pdFALSE; - 800e71c: 2300 movs r3, #0 - 800e71e: 60fb str r3, [r7, #12] + 800e720: 2300 movs r3, #0 + 800e722: 60fb str r3, [r7, #12] } } taskEXIT_CRITICAL(); - 800e720: f001 fa3c bl 800fb9c + 800e724: f001 fa42 bl 800fbac return xReturn; - 800e724: 68fb ldr r3, [r7, #12] + 800e728: 68fb ldr r3, [r7, #12] } - 800e726: 4618 mov r0, r3 - 800e728: 3710 adds r7, #16 - 800e72a: 46bd mov sp, r7 - 800e72c: bd80 pop {r7, pc} + 800e72a: 4618 mov r0, r3 + 800e72c: 3710 adds r7, #16 + 800e72e: 46bd mov sp, r7 + 800e730: bd80 pop {r7, pc} -0800e72e : +0800e732 : return xReturn; } /*lint !e818 xQueue could not be pointer to const because it is a typedef. */ /*-----------------------------------------------------------*/ static BaseType_t prvIsQueueFull( const Queue_t *pxQueue ) { - 800e72e: b580 push {r7, lr} - 800e730: b084 sub sp, #16 - 800e732: af00 add r7, sp, #0 - 800e734: 6078 str r0, [r7, #4] + 800e732: b580 push {r7, lr} + 800e734: b084 sub sp, #16 + 800e736: af00 add r7, sp, #0 + 800e738: 6078 str r0, [r7, #4] BaseType_t xReturn; taskENTER_CRITICAL(); - 800e736: f001 f9ff bl 800fb38 + 800e73a: f001 fa05 bl 800fb48 { if( pxQueue->uxMessagesWaiting == pxQueue->uxLength ) - 800e73a: 687b ldr r3, [r7, #4] - 800e73c: 6b9a ldr r2, [r3, #56] ; 0x38 800e73e: 687b ldr r3, [r7, #4] - 800e740: 6bdb ldr r3, [r3, #60] ; 0x3c - 800e742: 429a cmp r2, r3 - 800e744: d102 bne.n 800e74c + 800e740: 6b9a ldr r2, [r3, #56] ; 0x38 + 800e742: 687b ldr r3, [r7, #4] + 800e744: 6bdb ldr r3, [r3, #60] ; 0x3c + 800e746: 429a cmp r2, r3 + 800e748: d102 bne.n 800e750 { xReturn = pdTRUE; - 800e746: 2301 movs r3, #1 - 800e748: 60fb str r3, [r7, #12] - 800e74a: e001 b.n 800e750 + 800e74a: 2301 movs r3, #1 + 800e74c: 60fb str r3, [r7, #12] + 800e74e: e001 b.n 800e754 } else { xReturn = pdFALSE; - 800e74c: 2300 movs r3, #0 - 800e74e: 60fb str r3, [r7, #12] + 800e750: 2300 movs r3, #0 + 800e752: 60fb str r3, [r7, #12] } } taskEXIT_CRITICAL(); - 800e750: f001 fa24 bl 800fb9c + 800e754: f001 fa2a bl 800fbac return xReturn; - 800e754: 68fb ldr r3, [r7, #12] + 800e758: 68fb ldr r3, [r7, #12] } - 800e756: 4618 mov r0, r3 - 800e758: 3710 adds r7, #16 - 800e75a: 46bd mov sp, r7 - 800e75c: bd80 pop {r7, pc} + 800e75a: 4618 mov r0, r3 + 800e75c: 3710 adds r7, #16 + 800e75e: 46bd mov sp, r7 + 800e760: bd80 pop {r7, pc} -0800e75e : +0800e762 : const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, StackType_t * const puxStackBuffer, StaticTask_t * const pxTaskBuffer ) { - 800e75e: b580 push {r7, lr} - 800e760: b08e sub sp, #56 ; 0x38 - 800e762: af04 add r7, sp, #16 - 800e764: 60f8 str r0, [r7, #12] - 800e766: 60b9 str r1, [r7, #8] - 800e768: 607a str r2, [r7, #4] - 800e76a: 603b str r3, [r7, #0] + 800e762: b580 push {r7, lr} + 800e764: b08e sub sp, #56 ; 0x38 + 800e766: af04 add r7, sp, #16 + 800e768: 60f8 str r0, [r7, #12] + 800e76a: 60b9 str r1, [r7, #8] + 800e76c: 607a str r2, [r7, #4] + 800e76e: 603b str r3, [r7, #0] TCB_t *pxNewTCB; TaskHandle_t xReturn; configASSERT( puxStackBuffer != NULL ); - 800e76c: 6b7b ldr r3, [r7, #52] ; 0x34 - 800e76e: 2b00 cmp r3, #0 - 800e770: d10b bne.n 800e78a + 800e770: 6b7b ldr r3, [r7, #52] ; 0x34 + 800e772: 2b00 cmp r3, #0 + 800e774: d10b bne.n 800e78e __asm volatile - 800e772: f04f 0350 mov.w r3, #80 ; 0x50 - 800e776: b672 cpsid i - 800e778: f383 8811 msr BASEPRI, r3 - 800e77c: f3bf 8f6f isb sy - 800e780: f3bf 8f4f dsb sy - 800e784: b662 cpsie i - 800e786: 623b str r3, [r7, #32] - 800e788: e7fe b.n 800e788 + 800e776: f04f 0350 mov.w r3, #80 ; 0x50 + 800e77a: b672 cpsid i + 800e77c: f383 8811 msr BASEPRI, r3 + 800e780: f3bf 8f6f isb sy + 800e784: f3bf 8f4f dsb sy + 800e788: b662 cpsie i + 800e78a: 623b str r3, [r7, #32] + 800e78c: e7fe b.n 800e78c configASSERT( pxTaskBuffer != NULL ); - 800e78a: 6bbb ldr r3, [r7, #56] ; 0x38 - 800e78c: 2b00 cmp r3, #0 - 800e78e: d10b bne.n 800e7a8 - 800e790: f04f 0350 mov.w r3, #80 ; 0x50 - 800e794: b672 cpsid i - 800e796: f383 8811 msr BASEPRI, r3 - 800e79a: f3bf 8f6f isb sy - 800e79e: f3bf 8f4f dsb sy - 800e7a2: b662 cpsie i - 800e7a4: 61fb str r3, [r7, #28] - 800e7a6: e7fe b.n 800e7a6 + 800e78e: 6bbb ldr r3, [r7, #56] ; 0x38 + 800e790: 2b00 cmp r3, #0 + 800e792: d10b bne.n 800e7ac + 800e794: f04f 0350 mov.w r3, #80 ; 0x50 + 800e798: b672 cpsid i + 800e79a: f383 8811 msr BASEPRI, r3 + 800e79e: f3bf 8f6f isb sy + 800e7a2: f3bf 8f4f dsb sy + 800e7a6: b662 cpsie i + 800e7a8: 61fb str r3, [r7, #28] + 800e7aa: e7fe b.n 800e7aa #if( configASSERT_DEFINED == 1 ) { /* Sanity check that the size of the structure used to declare a variable of type StaticTask_t equals the size of the real task structure. */ volatile size_t xSize = sizeof( StaticTask_t ); - 800e7a8: 2358 movs r3, #88 ; 0x58 - 800e7aa: 613b str r3, [r7, #16] + 800e7ac: 2358 movs r3, #88 ; 0x58 + 800e7ae: 613b str r3, [r7, #16] configASSERT( xSize == sizeof( TCB_t ) ); - 800e7ac: 693b ldr r3, [r7, #16] - 800e7ae: 2b58 cmp r3, #88 ; 0x58 - 800e7b0: d00b beq.n 800e7ca - 800e7b2: f04f 0350 mov.w r3, #80 ; 0x50 - 800e7b6: b672 cpsid i - 800e7b8: f383 8811 msr BASEPRI, r3 - 800e7bc: f3bf 8f6f isb sy - 800e7c0: f3bf 8f4f dsb sy - 800e7c4: b662 cpsie i - 800e7c6: 61bb str r3, [r7, #24] - 800e7c8: e7fe b.n 800e7c8 + 800e7b0: 693b ldr r3, [r7, #16] + 800e7b2: 2b58 cmp r3, #88 ; 0x58 + 800e7b4: d00b beq.n 800e7ce + 800e7b6: f04f 0350 mov.w r3, #80 ; 0x50 + 800e7ba: b672 cpsid i + 800e7bc: f383 8811 msr BASEPRI, r3 + 800e7c0: f3bf 8f6f isb sy + 800e7c4: f3bf 8f4f dsb sy + 800e7c8: b662 cpsie i + 800e7ca: 61bb str r3, [r7, #24] + 800e7cc: e7fe b.n 800e7cc ( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */ - 800e7ca: 693b ldr r3, [r7, #16] + 800e7ce: 693b ldr r3, [r7, #16] } #endif /* configASSERT_DEFINED */ if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) ) - 800e7cc: 6bbb ldr r3, [r7, #56] ; 0x38 - 800e7ce: 2b00 cmp r3, #0 - 800e7d0: d01e beq.n 800e810 - 800e7d2: 6b7b ldr r3, [r7, #52] ; 0x34 - 800e7d4: 2b00 cmp r3, #0 - 800e7d6: d01b beq.n 800e810 + 800e7d0: 6bbb ldr r3, [r7, #56] ; 0x38 + 800e7d2: 2b00 cmp r3, #0 + 800e7d4: d01e beq.n 800e814 + 800e7d6: 6b7b ldr r3, [r7, #52] ; 0x34 + 800e7d8: 2b00 cmp r3, #0 + 800e7da: d01b beq.n 800e814 { /* The memory used for the task's TCB and stack are passed into this function - use them. */ pxNewTCB = ( TCB_t * ) pxTaskBuffer; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */ - 800e7d8: 6bbb ldr r3, [r7, #56] ; 0x38 - 800e7da: 627b str r3, [r7, #36] ; 0x24 + 800e7dc: 6bbb ldr r3, [r7, #56] ; 0x38 + 800e7de: 627b str r3, [r7, #36] ; 0x24 pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer; - 800e7dc: 6a7b ldr r3, [r7, #36] ; 0x24 - 800e7de: 6b7a ldr r2, [r7, #52] ; 0x34 - 800e7e0: 631a str r2, [r3, #48] ; 0x30 + 800e7e0: 6a7b ldr r3, [r7, #36] ; 0x24 + 800e7e2: 6b7a ldr r2, [r7, #52] ; 0x34 + 800e7e4: 631a str r2, [r3, #48] ; 0x30 #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */ { /* Tasks can be created statically or dynamically, so note this task was created statically in case the task is later deleted. */ pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB; - 800e7e2: 6a7b ldr r3, [r7, #36] ; 0x24 - 800e7e4: 2202 movs r2, #2 - 800e7e6: f883 2055 strb.w r2, [r3, #85] ; 0x55 + 800e7e6: 6a7b ldr r3, [r7, #36] ; 0x24 + 800e7e8: 2202 movs r2, #2 + 800e7ea: f883 2055 strb.w r2, [r3, #85] ; 0x55 } #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL ); - 800e7ea: 2300 movs r3, #0 - 800e7ec: 9303 str r3, [sp, #12] - 800e7ee: 6a7b ldr r3, [r7, #36] ; 0x24 - 800e7f0: 9302 str r3, [sp, #8] - 800e7f2: f107 0314 add.w r3, r7, #20 - 800e7f6: 9301 str r3, [sp, #4] - 800e7f8: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e7fa: 9300 str r3, [sp, #0] - 800e7fc: 683b ldr r3, [r7, #0] - 800e7fe: 687a ldr r2, [r7, #4] - 800e800: 68b9 ldr r1, [r7, #8] - 800e802: 68f8 ldr r0, [r7, #12] - 800e804: f000 f850 bl 800e8a8 + 800e7ee: 2300 movs r3, #0 + 800e7f0: 9303 str r3, [sp, #12] + 800e7f2: 6a7b ldr r3, [r7, #36] ; 0x24 + 800e7f4: 9302 str r3, [sp, #8] + 800e7f6: f107 0314 add.w r3, r7, #20 + 800e7fa: 9301 str r3, [sp, #4] + 800e7fc: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e7fe: 9300 str r3, [sp, #0] + 800e800: 683b ldr r3, [r7, #0] + 800e802: 687a ldr r2, [r7, #4] + 800e804: 68b9 ldr r1, [r7, #8] + 800e806: 68f8 ldr r0, [r7, #12] + 800e808: f000 f850 bl 800e8ac prvAddNewTaskToReadyList( pxNewTCB ); - 800e808: 6a78 ldr r0, [r7, #36] ; 0x24 - 800e80a: f000 f8e1 bl 800e9d0 - 800e80e: e001 b.n 800e814 + 800e80c: 6a78 ldr r0, [r7, #36] ; 0x24 + 800e80e: f000 f8e1 bl 800e9d4 + 800e812: e001 b.n 800e818 } else { xReturn = NULL; - 800e810: 2300 movs r3, #0 - 800e812: 617b str r3, [r7, #20] + 800e814: 2300 movs r3, #0 + 800e816: 617b str r3, [r7, #20] } return xReturn; - 800e814: 697b ldr r3, [r7, #20] + 800e818: 697b ldr r3, [r7, #20] } - 800e816: 4618 mov r0, r3 - 800e818: 3728 adds r7, #40 ; 0x28 - 800e81a: 46bd mov sp, r7 - 800e81c: bd80 pop {r7, pc} + 800e81a: 4618 mov r0, r3 + 800e81c: 3728 adds r7, #40 ; 0x28 + 800e81e: 46bd mov sp, r7 + 800e820: bd80 pop {r7, pc} -0800e81e : +0800e822 : const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ const configSTACK_DEPTH_TYPE usStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask ) { - 800e81e: b580 push {r7, lr} - 800e820: b08c sub sp, #48 ; 0x30 - 800e822: af04 add r7, sp, #16 - 800e824: 60f8 str r0, [r7, #12] - 800e826: 60b9 str r1, [r7, #8] - 800e828: 603b str r3, [r7, #0] - 800e82a: 4613 mov r3, r2 - 800e82c: 80fb strh r3, [r7, #6] + 800e822: b580 push {r7, lr} + 800e824: b08c sub sp, #48 ; 0x30 + 800e826: af04 add r7, sp, #16 + 800e828: 60f8 str r0, [r7, #12] + 800e82a: 60b9 str r1, [r7, #8] + 800e82c: 603b str r3, [r7, #0] + 800e82e: 4613 mov r3, r2 + 800e830: 80fb strh r3, [r7, #6] #else /* portSTACK_GROWTH */ { StackType_t *pxStack; /* Allocate space for the stack used by the task being created. */ pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */ - 800e82e: 88fb ldrh r3, [r7, #6] - 800e830: 009b lsls r3, r3, #2 - 800e832: 4618 mov r0, r3 - 800e834: f001 faa2 bl 800fd7c - 800e838: 6178 str r0, [r7, #20] + 800e832: 88fb ldrh r3, [r7, #6] + 800e834: 009b lsls r3, r3, #2 + 800e836: 4618 mov r0, r3 + 800e838: f001 faa8 bl 800fd8c + 800e83c: 6178 str r0, [r7, #20] if( pxStack != NULL ) - 800e83a: 697b ldr r3, [r7, #20] - 800e83c: 2b00 cmp r3, #0 - 800e83e: d00e beq.n 800e85e + 800e83e: 697b ldr r3, [r7, #20] + 800e840: 2b00 cmp r3, #0 + 800e842: d00e beq.n 800e862 { /* Allocate space for the TCB. */ pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */ - 800e840: 2058 movs r0, #88 ; 0x58 - 800e842: f001 fa9b bl 800fd7c - 800e846: 61f8 str r0, [r7, #28] + 800e844: 2058 movs r0, #88 ; 0x58 + 800e846: f001 faa1 bl 800fd8c + 800e84a: 61f8 str r0, [r7, #28] if( pxNewTCB != NULL ) - 800e848: 69fb ldr r3, [r7, #28] - 800e84a: 2b00 cmp r3, #0 - 800e84c: d003 beq.n 800e856 + 800e84c: 69fb ldr r3, [r7, #28] + 800e84e: 2b00 cmp r3, #0 + 800e850: d003 beq.n 800e85a { /* Store the stack location in the TCB. */ pxNewTCB->pxStack = pxStack; - 800e84e: 69fb ldr r3, [r7, #28] - 800e850: 697a ldr r2, [r7, #20] - 800e852: 631a str r2, [r3, #48] ; 0x30 - 800e854: e005 b.n 800e862 + 800e852: 69fb ldr r3, [r7, #28] + 800e854: 697a ldr r2, [r7, #20] + 800e856: 631a str r2, [r3, #48] ; 0x30 + 800e858: e005 b.n 800e866 } else { /* The stack cannot be used as the TCB was not created. Free it again. */ vPortFree( pxStack ); - 800e856: 6978 ldr r0, [r7, #20] - 800e858: f001 fb5c bl 800ff14 - 800e85c: e001 b.n 800e862 + 800e85a: 6978 ldr r0, [r7, #20] + 800e85c: f001 fb62 bl 800ff24 + 800e860: e001 b.n 800e866 } } else { pxNewTCB = NULL; - 800e85e: 2300 movs r3, #0 - 800e860: 61fb str r3, [r7, #28] + 800e862: 2300 movs r3, #0 + 800e864: 61fb str r3, [r7, #28] } } #endif /* portSTACK_GROWTH */ if( pxNewTCB != NULL ) - 800e862: 69fb ldr r3, [r7, #28] - 800e864: 2b00 cmp r3, #0 - 800e866: d017 beq.n 800e898 + 800e866: 69fb ldr r3, [r7, #28] + 800e868: 2b00 cmp r3, #0 + 800e86a: d017 beq.n 800e89c { #if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */ { /* Tasks can be created statically or dynamically, so note this task was created dynamically in case it is later deleted. */ pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB; - 800e868: 69fb ldr r3, [r7, #28] - 800e86a: 2200 movs r2, #0 - 800e86c: f883 2055 strb.w r2, [r3, #85] ; 0x55 + 800e86c: 69fb ldr r3, [r7, #28] + 800e86e: 2200 movs r2, #0 + 800e870: f883 2055 strb.w r2, [r3, #85] ; 0x55 } #endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */ prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL ); - 800e870: 88fa ldrh r2, [r7, #6] - 800e872: 2300 movs r3, #0 - 800e874: 9303 str r3, [sp, #12] - 800e876: 69fb ldr r3, [r7, #28] - 800e878: 9302 str r3, [sp, #8] - 800e87a: 6afb ldr r3, [r7, #44] ; 0x2c - 800e87c: 9301 str r3, [sp, #4] - 800e87e: 6abb ldr r3, [r7, #40] ; 0x28 - 800e880: 9300 str r3, [sp, #0] - 800e882: 683b ldr r3, [r7, #0] - 800e884: 68b9 ldr r1, [r7, #8] - 800e886: 68f8 ldr r0, [r7, #12] - 800e888: f000 f80e bl 800e8a8 + 800e874: 88fa ldrh r2, [r7, #6] + 800e876: 2300 movs r3, #0 + 800e878: 9303 str r3, [sp, #12] + 800e87a: 69fb ldr r3, [r7, #28] + 800e87c: 9302 str r3, [sp, #8] + 800e87e: 6afb ldr r3, [r7, #44] ; 0x2c + 800e880: 9301 str r3, [sp, #4] + 800e882: 6abb ldr r3, [r7, #40] ; 0x28 + 800e884: 9300 str r3, [sp, #0] + 800e886: 683b ldr r3, [r7, #0] + 800e888: 68b9 ldr r1, [r7, #8] + 800e88a: 68f8 ldr r0, [r7, #12] + 800e88c: f000 f80e bl 800e8ac prvAddNewTaskToReadyList( pxNewTCB ); - 800e88c: 69f8 ldr r0, [r7, #28] - 800e88e: f000 f89f bl 800e9d0 + 800e890: 69f8 ldr r0, [r7, #28] + 800e892: f000 f89f bl 800e9d4 xReturn = pdPASS; - 800e892: 2301 movs r3, #1 - 800e894: 61bb str r3, [r7, #24] - 800e896: e002 b.n 800e89e + 800e896: 2301 movs r3, #1 + 800e898: 61bb str r3, [r7, #24] + 800e89a: e002 b.n 800e8a2 } else { xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY; - 800e898: f04f 33ff mov.w r3, #4294967295 - 800e89c: 61bb str r3, [r7, #24] + 800e89c: f04f 33ff mov.w r3, #4294967295 + 800e8a0: 61bb str r3, [r7, #24] } return xReturn; - 800e89e: 69bb ldr r3, [r7, #24] + 800e8a2: 69bb ldr r3, [r7, #24] } - 800e8a0: 4618 mov r0, r3 - 800e8a2: 3720 adds r7, #32 - 800e8a4: 46bd mov sp, r7 - 800e8a6: bd80 pop {r7, pc} + 800e8a4: 4618 mov r0, r3 + 800e8a6: 3720 adds r7, #32 + 800e8a8: 46bd mov sp, r7 + 800e8aa: bd80 pop {r7, pc} -0800e8a8 : +0800e8ac : void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask, TCB_t *pxNewTCB, const MemoryRegion_t * const xRegions ) { - 800e8a8: b580 push {r7, lr} - 800e8aa: b088 sub sp, #32 - 800e8ac: af00 add r7, sp, #0 - 800e8ae: 60f8 str r0, [r7, #12] - 800e8b0: 60b9 str r1, [r7, #8] - 800e8b2: 607a str r2, [r7, #4] - 800e8b4: 603b str r3, [r7, #0] + 800e8ac: b580 push {r7, lr} + 800e8ae: b088 sub sp, #32 + 800e8b0: af00 add r7, sp, #0 + 800e8b2: 60f8 str r0, [r7, #12] + 800e8b4: 60b9 str r1, [r7, #8] + 800e8b6: 607a str r2, [r7, #4] + 800e8b8: 603b str r3, [r7, #0] /* Avoid dependency on memset() if it is not required. */ #if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 ) { /* Fill the stack with a known value to assist debugging. */ ( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) ); - 800e8b6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e8b8: 6b18 ldr r0, [r3, #48] ; 0x30 - 800e8ba: 687b ldr r3, [r7, #4] - 800e8bc: 009b lsls r3, r3, #2 - 800e8be: 461a mov r2, r3 - 800e8c0: 21a5 movs r1, #165 ; 0xa5 - 800e8c2: f00d feb8 bl 801c636 + 800e8ba: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e8bc: 6b18 ldr r0, [r3, #48] ; 0x30 + 800e8be: 687b ldr r3, [r7, #4] + 800e8c0: 009b lsls r3, r3, #2 + 800e8c2: 461a mov r2, r3 + 800e8c4: 21a5 movs r1, #165 ; 0xa5 + 800e8c6: f00d febe bl 801c646 grows from high memory to low (as per the 80x86) or vice versa. portSTACK_GROWTH is used to make the result positive or negative as required by the port. */ #if( portSTACK_GROWTH < 0 ) { pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] ); - 800e8c6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e8c8: 6b1a ldr r2, [r3, #48] ; 0x30 - 800e8ca: 6879 ldr r1, [r7, #4] - 800e8cc: f06f 4340 mvn.w r3, #3221225472 ; 0xc0000000 - 800e8d0: 440b add r3, r1 - 800e8d2: 009b lsls r3, r3, #2 - 800e8d4: 4413 add r3, r2 - 800e8d6: 61bb str r3, [r7, #24] + 800e8ca: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e8cc: 6b1a ldr r2, [r3, #48] ; 0x30 + 800e8ce: 6879 ldr r1, [r7, #4] + 800e8d0: f06f 4340 mvn.w r3, #3221225472 ; 0xc0000000 + 800e8d4: 440b add r3, r1 + 800e8d6: 009b lsls r3, r3, #2 + 800e8d8: 4413 add r3, r2 + 800e8da: 61bb str r3, [r7, #24] pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) ); /*lint !e923 !e9033 !e9078 MISRA exception. Avoiding casts between pointers and integers is not practical. Size differences accounted for using portPOINTER_SIZE_TYPE type. Checked by assert(). */ - 800e8d8: 69bb ldr r3, [r7, #24] - 800e8da: f023 0307 bic.w r3, r3, #7 - 800e8de: 61bb str r3, [r7, #24] + 800e8dc: 69bb ldr r3, [r7, #24] + 800e8de: f023 0307 bic.w r3, r3, #7 + 800e8e2: 61bb str r3, [r7, #24] /* Check the alignment of the calculated top of stack is correct. */ configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) ); - 800e8e0: 69bb ldr r3, [r7, #24] - 800e8e2: f003 0307 and.w r3, r3, #7 - 800e8e6: 2b00 cmp r3, #0 - 800e8e8: d00b beq.n 800e902 - 800e8ea: f04f 0350 mov.w r3, #80 ; 0x50 - 800e8ee: b672 cpsid i - 800e8f0: f383 8811 msr BASEPRI, r3 - 800e8f4: f3bf 8f6f isb sy - 800e8f8: f3bf 8f4f dsb sy - 800e8fc: b662 cpsie i - 800e8fe: 617b str r3, [r7, #20] - 800e900: e7fe b.n 800e900 + 800e8e4: 69bb ldr r3, [r7, #24] + 800e8e6: f003 0307 and.w r3, r3, #7 + 800e8ea: 2b00 cmp r3, #0 + 800e8ec: d00b beq.n 800e906 + 800e8ee: f04f 0350 mov.w r3, #80 ; 0x50 + 800e8f2: b672 cpsid i + 800e8f4: f383 8811 msr BASEPRI, r3 + 800e8f8: f3bf 8f6f isb sy + 800e8fc: f3bf 8f4f dsb sy + 800e900: b662 cpsie i + 800e902: 617b str r3, [r7, #20] + 800e904: e7fe b.n 800e904 pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 ); } #endif /* portSTACK_GROWTH */ /* Store the task name in the TCB. */ if( pcName != NULL ) - 800e902: 68bb ldr r3, [r7, #8] - 800e904: 2b00 cmp r3, #0 - 800e906: d01f beq.n 800e948 + 800e906: 68bb ldr r3, [r7, #8] + 800e908: 2b00 cmp r3, #0 + 800e90a: d01f beq.n 800e94c { for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ ) - 800e908: 2300 movs r3, #0 - 800e90a: 61fb str r3, [r7, #28] - 800e90c: e012 b.n 800e934 + 800e90c: 2300 movs r3, #0 + 800e90e: 61fb str r3, [r7, #28] + 800e910: e012 b.n 800e938 { pxNewTCB->pcTaskName[ x ] = pcName[ x ]; - 800e90e: 68ba ldr r2, [r7, #8] - 800e910: 69fb ldr r3, [r7, #28] - 800e912: 4413 add r3, r2 - 800e914: 7819 ldrb r1, [r3, #0] - 800e916: 6b3a ldr r2, [r7, #48] ; 0x30 - 800e918: 69fb ldr r3, [r7, #28] - 800e91a: 4413 add r3, r2 - 800e91c: 3334 adds r3, #52 ; 0x34 - 800e91e: 460a mov r2, r1 - 800e920: 701a strb r2, [r3, #0] + 800e912: 68ba ldr r2, [r7, #8] + 800e914: 69fb ldr r3, [r7, #28] + 800e916: 4413 add r3, r2 + 800e918: 7819 ldrb r1, [r3, #0] + 800e91a: 6b3a ldr r2, [r7, #48] ; 0x30 + 800e91c: 69fb ldr r3, [r7, #28] + 800e91e: 4413 add r3, r2 + 800e920: 3334 adds r3, #52 ; 0x34 + 800e922: 460a mov r2, r1 + 800e924: 701a strb r2, [r3, #0] /* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than configMAX_TASK_NAME_LEN characters just in case the memory after the string is not accessible (extremely unlikely). */ if( pcName[ x ] == ( char ) 0x00 ) - 800e922: 68ba ldr r2, [r7, #8] - 800e924: 69fb ldr r3, [r7, #28] - 800e926: 4413 add r3, r2 - 800e928: 781b ldrb r3, [r3, #0] - 800e92a: 2b00 cmp r3, #0 - 800e92c: d006 beq.n 800e93c + 800e926: 68ba ldr r2, [r7, #8] + 800e928: 69fb ldr r3, [r7, #28] + 800e92a: 4413 add r3, r2 + 800e92c: 781b ldrb r3, [r3, #0] + 800e92e: 2b00 cmp r3, #0 + 800e930: d006 beq.n 800e940 for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ ) - 800e92e: 69fb ldr r3, [r7, #28] - 800e930: 3301 adds r3, #1 - 800e932: 61fb str r3, [r7, #28] - 800e934: 69fb ldr r3, [r7, #28] - 800e936: 2b0f cmp r3, #15 - 800e938: d9e9 bls.n 800e90e - 800e93a: e000 b.n 800e93e + 800e932: 69fb ldr r3, [r7, #28] + 800e934: 3301 adds r3, #1 + 800e936: 61fb str r3, [r7, #28] + 800e938: 69fb ldr r3, [r7, #28] + 800e93a: 2b0f cmp r3, #15 + 800e93c: d9e9 bls.n 800e912 + 800e93e: e000 b.n 800e942 { break; - 800e93c: bf00 nop + 800e940: bf00 nop } } /* Ensure the name string is terminated in the case that the string length was greater or equal to configMAX_TASK_NAME_LEN. */ pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0'; - 800e93e: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e940: 2200 movs r2, #0 - 800e942: f883 2043 strb.w r2, [r3, #67] ; 0x43 - 800e946: e003 b.n 800e950 + 800e942: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e944: 2200 movs r2, #0 + 800e946: f883 2043 strb.w r2, [r3, #67] ; 0x43 + 800e94a: e003 b.n 800e954 } else { /* The task has not been given a name, so just ensure there is a NULL terminator when it is read out. */ pxNewTCB->pcTaskName[ 0 ] = 0x00; - 800e948: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e94a: 2200 movs r2, #0 - 800e94c: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 800e94c: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e94e: 2200 movs r2, #0 + 800e950: f883 2034 strb.w r2, [r3, #52] ; 0x34 } /* This is used as an array index so must ensure it's not too large. First remove the privilege bit if one is present. */ if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES ) - 800e950: 6abb ldr r3, [r7, #40] ; 0x28 - 800e952: 2b06 cmp r3, #6 - 800e954: d901 bls.n 800e95a + 800e954: 6abb ldr r3, [r7, #40] ; 0x28 + 800e956: 2b06 cmp r3, #6 + 800e958: d901 bls.n 800e95e { uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U; - 800e956: 2306 movs r3, #6 - 800e958: 62bb str r3, [r7, #40] ; 0x28 + 800e95a: 2306 movs r3, #6 + 800e95c: 62bb str r3, [r7, #40] ; 0x28 else { mtCOVERAGE_TEST_MARKER(); } pxNewTCB->uxPriority = uxPriority; - 800e95a: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e95c: 6aba ldr r2, [r7, #40] ; 0x28 - 800e95e: 62da str r2, [r3, #44] ; 0x2c + 800e95e: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e960: 6aba ldr r2, [r7, #40] ; 0x28 + 800e962: 62da str r2, [r3, #44] ; 0x2c #if ( configUSE_MUTEXES == 1 ) { pxNewTCB->uxBasePriority = uxPriority; - 800e960: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e962: 6aba ldr r2, [r7, #40] ; 0x28 - 800e964: 645a str r2, [r3, #68] ; 0x44 + 800e964: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e966: 6aba ldr r2, [r7, #40] ; 0x28 + 800e968: 645a str r2, [r3, #68] ; 0x44 pxNewTCB->uxMutexesHeld = 0; - 800e966: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e968: 2200 movs r2, #0 - 800e96a: 649a str r2, [r3, #72] ; 0x48 + 800e96a: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e96c: 2200 movs r2, #0 + 800e96e: 649a str r2, [r3, #72] ; 0x48 } #endif /* configUSE_MUTEXES */ vListInitialiseItem( &( pxNewTCB->xStateListItem ) ); - 800e96c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e96e: 3304 adds r3, #4 - 800e970: 4618 mov r0, r3 - 800e972: f7fe fe91 bl 800d698 + 800e970: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e972: 3304 adds r3, #4 + 800e974: 4618 mov r0, r3 + 800e976: f7fe fe91 bl 800d69c vListInitialiseItem( &( pxNewTCB->xEventListItem ) ); - 800e976: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e978: 3318 adds r3, #24 - 800e97a: 4618 mov r0, r3 - 800e97c: f7fe fe8c bl 800d698 + 800e97a: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e97c: 3318 adds r3, #24 + 800e97e: 4618 mov r0, r3 + 800e980: f7fe fe8c bl 800d69c /* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get back to the containing TCB from a generic item in a list. */ listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB ); - 800e980: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e982: 6b3a ldr r2, [r7, #48] ; 0x30 - 800e984: 611a str r2, [r3, #16] + 800e984: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e986: 6b3a ldr r2, [r7, #48] ; 0x30 + 800e988: 611a str r2, [r3, #16] /* Event lists are always in priority order. */ listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - 800e986: 6abb ldr r3, [r7, #40] ; 0x28 - 800e988: f1c3 0207 rsb r2, r3, #7 - 800e98c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e98e: 619a str r2, [r3, #24] - listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB ); + 800e98a: 6abb ldr r3, [r7, #40] ; 0x28 + 800e98c: f1c3 0207 rsb r2, r3, #7 800e990: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e992: 6b3a ldr r2, [r7, #48] ; 0x30 - 800e994: 625a str r2, [r3, #36] ; 0x24 + 800e992: 619a str r2, [r3, #24] + listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB ); + 800e994: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e996: 6b3a ldr r2, [r7, #48] ; 0x30 + 800e998: 625a str r2, [r3, #36] ; 0x24 } #endif /* portCRITICAL_NESTING_IN_TCB */ #if ( configUSE_APPLICATION_TASK_TAG == 1 ) { pxNewTCB->pxTaskTag = NULL; - 800e996: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e998: 2200 movs r2, #0 - 800e99a: 64da str r2, [r3, #76] ; 0x4c + 800e99a: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e99c: 2200 movs r2, #0 + 800e99e: 64da str r2, [r3, #76] ; 0x4c } #endif #if ( configUSE_TASK_NOTIFICATIONS == 1 ) { pxNewTCB->ulNotifiedValue = 0; - 800e99c: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e99e: 2200 movs r2, #0 - 800e9a0: 651a str r2, [r3, #80] ; 0x50 + 800e9a0: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e9a2: 2200 movs r2, #0 + 800e9a4: 651a str r2, [r3, #80] ; 0x50 pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION; - 800e9a2: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e9a4: 2200 movs r2, #0 - 800e9a6: f883 2054 strb.w r2, [r3, #84] ; 0x54 + 800e9a6: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e9a8: 2200 movs r2, #0 + 800e9aa: f883 2054 strb.w r2, [r3, #84] ; 0x54 } #endif /* portSTACK_GROWTH */ } #else /* portHAS_STACK_OVERFLOW_CHECKING */ { pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters ); - 800e9aa: 683a ldr r2, [r7, #0] - 800e9ac: 68f9 ldr r1, [r7, #12] - 800e9ae: 69b8 ldr r0, [r7, #24] - 800e9b0: f000 ffbc bl 800f92c - 800e9b4: 4602 mov r2, r0 - 800e9b6: 6b3b ldr r3, [r7, #48] ; 0x30 - 800e9b8: 601a str r2, [r3, #0] + 800e9ae: 683a ldr r2, [r7, #0] + 800e9b0: 68f9 ldr r1, [r7, #12] + 800e9b2: 69b8 ldr r0, [r7, #24] + 800e9b4: f000 ffbc bl 800f930 + 800e9b8: 4602 mov r2, r0 + 800e9ba: 6b3b ldr r3, [r7, #48] ; 0x30 + 800e9bc: 601a str r2, [r3, #0] } #endif /* portHAS_STACK_OVERFLOW_CHECKING */ } #endif /* portUSING_MPU_WRAPPERS */ if( pxCreatedTask != NULL ) - 800e9ba: 6afb ldr r3, [r7, #44] ; 0x2c - 800e9bc: 2b00 cmp r3, #0 - 800e9be: d002 beq.n 800e9c6 + 800e9be: 6afb ldr r3, [r7, #44] ; 0x2c + 800e9c0: 2b00 cmp r3, #0 + 800e9c2: d002 beq.n 800e9ca { /* Pass the handle out in an anonymous way. The handle can be used to change the created task's priority, delete the created task, etc.*/ *pxCreatedTask = ( TaskHandle_t ) pxNewTCB; - 800e9c0: 6afb ldr r3, [r7, #44] ; 0x2c - 800e9c2: 6b3a ldr r2, [r7, #48] ; 0x30 - 800e9c4: 601a str r2, [r3, #0] + 800e9c4: 6afb ldr r3, [r7, #44] ; 0x2c + 800e9c6: 6b3a ldr r2, [r7, #48] ; 0x30 + 800e9c8: 601a str r2, [r3, #0] } else { mtCOVERAGE_TEST_MARKER(); } } - 800e9c6: bf00 nop - 800e9c8: 3720 adds r7, #32 - 800e9ca: 46bd mov sp, r7 - 800e9cc: bd80 pop {r7, pc} + 800e9ca: bf00 nop + 800e9cc: 3720 adds r7, #32 + 800e9ce: 46bd mov sp, r7 + 800e9d0: bd80 pop {r7, pc} ... -0800e9d0 : +0800e9d4 : /*-----------------------------------------------------------*/ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB ) { - 800e9d0: b580 push {r7, lr} - 800e9d2: b082 sub sp, #8 - 800e9d4: af00 add r7, sp, #0 - 800e9d6: 6078 str r0, [r7, #4] + 800e9d4: b580 push {r7, lr} + 800e9d6: b082 sub sp, #8 + 800e9d8: af00 add r7, sp, #0 + 800e9da: 6078 str r0, [r7, #4] /* Ensure interrupts don't access the task lists while the lists are being updated. */ taskENTER_CRITICAL(); - 800e9d8: f001 f8ae bl 800fb38 + 800e9dc: f001 f8b4 bl 800fb48 { uxCurrentNumberOfTasks++; - 800e9dc: 4b2a ldr r3, [pc, #168] ; (800ea88 ) - 800e9de: 681b ldr r3, [r3, #0] - 800e9e0: 3301 adds r3, #1 - 800e9e2: 4a29 ldr r2, [pc, #164] ; (800ea88 ) - 800e9e4: 6013 str r3, [r2, #0] + 800e9e0: 4b2a ldr r3, [pc, #168] ; (800ea8c ) + 800e9e2: 681b ldr r3, [r3, #0] + 800e9e4: 3301 adds r3, #1 + 800e9e6: 4a29 ldr r2, [pc, #164] ; (800ea8c ) + 800e9e8: 6013 str r3, [r2, #0] if( pxCurrentTCB == NULL ) - 800e9e6: 4b29 ldr r3, [pc, #164] ; (800ea8c ) - 800e9e8: 681b ldr r3, [r3, #0] - 800e9ea: 2b00 cmp r3, #0 - 800e9ec: d109 bne.n 800ea02 + 800e9ea: 4b29 ldr r3, [pc, #164] ; (800ea90 ) + 800e9ec: 681b ldr r3, [r3, #0] + 800e9ee: 2b00 cmp r3, #0 + 800e9f0: d109 bne.n 800ea06 { /* There are no other tasks, or all the other tasks are in the suspended state - make this the current task. */ pxCurrentTCB = pxNewTCB; - 800e9ee: 4a27 ldr r2, [pc, #156] ; (800ea8c ) - 800e9f0: 687b ldr r3, [r7, #4] - 800e9f2: 6013 str r3, [r2, #0] + 800e9f2: 4a27 ldr r2, [pc, #156] ; (800ea90 ) + 800e9f4: 687b ldr r3, [r7, #4] + 800e9f6: 6013 str r3, [r2, #0] if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 ) - 800e9f4: 4b24 ldr r3, [pc, #144] ; (800ea88 ) - 800e9f6: 681b ldr r3, [r3, #0] - 800e9f8: 2b01 cmp r3, #1 - 800e9fa: d110 bne.n 800ea1e + 800e9f8: 4b24 ldr r3, [pc, #144] ; (800ea8c ) + 800e9fa: 681b ldr r3, [r3, #0] + 800e9fc: 2b01 cmp r3, #1 + 800e9fe: d110 bne.n 800ea22 { /* This is the first task to be created so do the preliminary initialisation required. We will not recover if this call fails, but we will report the failure. */ prvInitialiseTaskLists(); - 800e9fc: f000 fc9e bl 800f33c - 800ea00: e00d b.n 800ea1e + 800ea00: f000 fc9e bl 800f340 + 800ea04: e00d b.n 800ea22 else { /* If the scheduler is not already running, make this task the current task if it is the highest priority task to be created so far. */ if( xSchedulerRunning == pdFALSE ) - 800ea02: 4b23 ldr r3, [pc, #140] ; (800ea90 ) - 800ea04: 681b ldr r3, [r3, #0] - 800ea06: 2b00 cmp r3, #0 - 800ea08: d109 bne.n 800ea1e + 800ea06: 4b23 ldr r3, [pc, #140] ; (800ea94 ) + 800ea08: 681b ldr r3, [r3, #0] + 800ea0a: 2b00 cmp r3, #0 + 800ea0c: d109 bne.n 800ea22 { if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority ) - 800ea0a: 4b20 ldr r3, [pc, #128] ; (800ea8c ) - 800ea0c: 681b ldr r3, [r3, #0] - 800ea0e: 6ada ldr r2, [r3, #44] ; 0x2c - 800ea10: 687b ldr r3, [r7, #4] - 800ea12: 6adb ldr r3, [r3, #44] ; 0x2c - 800ea14: 429a cmp r2, r3 - 800ea16: d802 bhi.n 800ea1e + 800ea0e: 4b20 ldr r3, [pc, #128] ; (800ea90 ) + 800ea10: 681b ldr r3, [r3, #0] + 800ea12: 6ada ldr r2, [r3, #44] ; 0x2c + 800ea14: 687b ldr r3, [r7, #4] + 800ea16: 6adb ldr r3, [r3, #44] ; 0x2c + 800ea18: 429a cmp r2, r3 + 800ea1a: d802 bhi.n 800ea22 { pxCurrentTCB = pxNewTCB; - 800ea18: 4a1c ldr r2, [pc, #112] ; (800ea8c ) - 800ea1a: 687b ldr r3, [r7, #4] - 800ea1c: 6013 str r3, [r2, #0] + 800ea1c: 4a1c ldr r2, [pc, #112] ; (800ea90 ) + 800ea1e: 687b ldr r3, [r7, #4] + 800ea20: 6013 str r3, [r2, #0] { mtCOVERAGE_TEST_MARKER(); } } uxTaskNumber++; - 800ea1e: 4b1d ldr r3, [pc, #116] ; (800ea94 ) - 800ea20: 681b ldr r3, [r3, #0] - 800ea22: 3301 adds r3, #1 - 800ea24: 4a1b ldr r2, [pc, #108] ; (800ea94 ) - 800ea26: 6013 str r3, [r2, #0] + 800ea22: 4b1d ldr r3, [pc, #116] ; (800ea98 ) + 800ea24: 681b ldr r3, [r3, #0] + 800ea26: 3301 adds r3, #1 + 800ea28: 4a1b ldr r2, [pc, #108] ; (800ea98 ) + 800ea2a: 6013 str r3, [r2, #0] pxNewTCB->uxTCBNumber = uxTaskNumber; } #endif /* configUSE_TRACE_FACILITY */ traceTASK_CREATE( pxNewTCB ); prvAddTaskToReadyList( pxNewTCB ); - 800ea28: 687b ldr r3, [r7, #4] - 800ea2a: 6adb ldr r3, [r3, #44] ; 0x2c - 800ea2c: 2201 movs r2, #1 - 800ea2e: 409a lsls r2, r3 - 800ea30: 4b19 ldr r3, [pc, #100] ; (800ea98 ) - 800ea32: 681b ldr r3, [r3, #0] - 800ea34: 4313 orrs r3, r2 - 800ea36: 4a18 ldr r2, [pc, #96] ; (800ea98 ) - 800ea38: 6013 str r3, [r2, #0] - 800ea3a: 687b ldr r3, [r7, #4] - 800ea3c: 6ada ldr r2, [r3, #44] ; 0x2c - 800ea3e: 4613 mov r3, r2 - 800ea40: 009b lsls r3, r3, #2 - 800ea42: 4413 add r3, r2 + 800ea2c: 687b ldr r3, [r7, #4] + 800ea2e: 6adb ldr r3, [r3, #44] ; 0x2c + 800ea30: 2201 movs r2, #1 + 800ea32: 409a lsls r2, r3 + 800ea34: 4b19 ldr r3, [pc, #100] ; (800ea9c ) + 800ea36: 681b ldr r3, [r3, #0] + 800ea38: 4313 orrs r3, r2 + 800ea3a: 4a18 ldr r2, [pc, #96] ; (800ea9c ) + 800ea3c: 6013 str r3, [r2, #0] + 800ea3e: 687b ldr r3, [r7, #4] + 800ea40: 6ada ldr r2, [r3, #44] ; 0x2c + 800ea42: 4613 mov r3, r2 800ea44: 009b lsls r3, r3, #2 - 800ea46: 4a15 ldr r2, [pc, #84] ; (800ea9c ) - 800ea48: 441a add r2, r3 - 800ea4a: 687b ldr r3, [r7, #4] - 800ea4c: 3304 adds r3, #4 - 800ea4e: 4619 mov r1, r3 - 800ea50: 4610 mov r0, r2 - 800ea52: f7fe fe2e bl 800d6b2 + 800ea46: 4413 add r3, r2 + 800ea48: 009b lsls r3, r3, #2 + 800ea4a: 4a15 ldr r2, [pc, #84] ; (800eaa0 ) + 800ea4c: 441a add r2, r3 + 800ea4e: 687b ldr r3, [r7, #4] + 800ea50: 3304 adds r3, #4 + 800ea52: 4619 mov r1, r3 + 800ea54: 4610 mov r0, r2 + 800ea56: f7fe fe2e bl 800d6b6 portSETUP_TCB( pxNewTCB ); } taskEXIT_CRITICAL(); - 800ea56: f001 f8a1 bl 800fb9c + 800ea5a: f001 f8a7 bl 800fbac if( xSchedulerRunning != pdFALSE ) - 800ea5a: 4b0d ldr r3, [pc, #52] ; (800ea90 ) - 800ea5c: 681b ldr r3, [r3, #0] - 800ea5e: 2b00 cmp r3, #0 - 800ea60: d00e beq.n 800ea80 + 800ea5e: 4b0d ldr r3, [pc, #52] ; (800ea94 ) + 800ea60: 681b ldr r3, [r3, #0] + 800ea62: 2b00 cmp r3, #0 + 800ea64: d00e beq.n 800ea84 { /* If the created task is of a higher priority than the current task then it should run now. */ if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority ) - 800ea62: 4b0a ldr r3, [pc, #40] ; (800ea8c ) - 800ea64: 681b ldr r3, [r3, #0] - 800ea66: 6ada ldr r2, [r3, #44] ; 0x2c - 800ea68: 687b ldr r3, [r7, #4] - 800ea6a: 6adb ldr r3, [r3, #44] ; 0x2c - 800ea6c: 429a cmp r2, r3 - 800ea6e: d207 bcs.n 800ea80 + 800ea66: 4b0a ldr r3, [pc, #40] ; (800ea90 ) + 800ea68: 681b ldr r3, [r3, #0] + 800ea6a: 6ada ldr r2, [r3, #44] ; 0x2c + 800ea6c: 687b ldr r3, [r7, #4] + 800ea6e: 6adb ldr r3, [r3, #44] ; 0x2c + 800ea70: 429a cmp r2, r3 + 800ea72: d207 bcs.n 800ea84 { taskYIELD_IF_USING_PREEMPTION(); - 800ea70: 4b0b ldr r3, [pc, #44] ; (800eaa0 ) - 800ea72: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800ea76: 601a str r2, [r3, #0] - 800ea78: f3bf 8f4f dsb sy - 800ea7c: f3bf 8f6f isb sy + 800ea74: 4b0b ldr r3, [pc, #44] ; (800eaa4 ) + 800ea76: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800ea7a: 601a str r2, [r3, #0] + 800ea7c: f3bf 8f4f dsb sy + 800ea80: f3bf 8f6f isb sy } else { mtCOVERAGE_TEST_MARKER(); } } - 800ea80: bf00 nop - 800ea82: 3708 adds r7, #8 - 800ea84: 46bd mov sp, r7 - 800ea86: bd80 pop {r7, pc} - 800ea88: 20000680 .word 0x20000680 - 800ea8c: 20000580 .word 0x20000580 - 800ea90: 2000068c .word 0x2000068c - 800ea94: 2000069c .word 0x2000069c - 800ea98: 20000688 .word 0x20000688 - 800ea9c: 20000584 .word 0x20000584 - 800eaa0: e000ed04 .word 0xe000ed04 - -0800eaa4 : + 800ea84: bf00 nop + 800ea86: 3708 adds r7, #8 + 800ea88: 46bd mov sp, r7 + 800ea8a: bd80 pop {r7, pc} + 800ea8c: 20000680 .word 0x20000680 + 800ea90: 20000580 .word 0x20000580 + 800ea94: 2000068c .word 0x2000068c + 800ea98: 2000069c .word 0x2000069c + 800ea9c: 20000688 .word 0x20000688 + 800eaa0: 20000584 .word 0x20000584 + 800eaa4: e000ed04 .word 0xe000ed04 + +0800eaa8 : /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskDelayUntil == 1 ) void vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement ) { - 800eaa4: b580 push {r7, lr} - 800eaa6: b08a sub sp, #40 ; 0x28 - 800eaa8: af00 add r7, sp, #0 - 800eaaa: 6078 str r0, [r7, #4] - 800eaac: 6039 str r1, [r7, #0] + 800eaa8: b580 push {r7, lr} + 800eaaa: b08a sub sp, #40 ; 0x28 + 800eaac: af00 add r7, sp, #0 + 800eaae: 6078 str r0, [r7, #4] + 800eab0: 6039 str r1, [r7, #0] TickType_t xTimeToWake; BaseType_t xAlreadyYielded, xShouldDelay = pdFALSE; - 800eaae: 2300 movs r3, #0 - 800eab0: 627b str r3, [r7, #36] ; 0x24 + 800eab2: 2300 movs r3, #0 + 800eab4: 627b str r3, [r7, #36] ; 0x24 configASSERT( pxPreviousWakeTime ); - 800eab2: 687b ldr r3, [r7, #4] - 800eab4: 2b00 cmp r3, #0 - 800eab6: d10b bne.n 800ead0 - 800eab8: f04f 0350 mov.w r3, #80 ; 0x50 - 800eabc: b672 cpsid i - 800eabe: f383 8811 msr BASEPRI, r3 - 800eac2: f3bf 8f6f isb sy - 800eac6: f3bf 8f4f dsb sy - 800eaca: b662 cpsie i - 800eacc: 617b str r3, [r7, #20] - 800eace: e7fe b.n 800eace + 800eab6: 687b ldr r3, [r7, #4] + 800eab8: 2b00 cmp r3, #0 + 800eaba: d10b bne.n 800ead4 + 800eabc: f04f 0350 mov.w r3, #80 ; 0x50 + 800eac0: b672 cpsid i + 800eac2: f383 8811 msr BASEPRI, r3 + 800eac6: f3bf 8f6f isb sy + 800eaca: f3bf 8f4f dsb sy + 800eace: b662 cpsie i + 800ead0: 617b str r3, [r7, #20] + 800ead2: e7fe b.n 800ead2 configASSERT( ( xTimeIncrement > 0U ) ); - 800ead0: 683b ldr r3, [r7, #0] - 800ead2: 2b00 cmp r3, #0 - 800ead4: d10b bne.n 800eaee - 800ead6: f04f 0350 mov.w r3, #80 ; 0x50 - 800eada: b672 cpsid i - 800eadc: f383 8811 msr BASEPRI, r3 - 800eae0: f3bf 8f6f isb sy - 800eae4: f3bf 8f4f dsb sy - 800eae8: b662 cpsie i - 800eaea: 613b str r3, [r7, #16] - 800eaec: e7fe b.n 800eaec + 800ead4: 683b ldr r3, [r7, #0] + 800ead6: 2b00 cmp r3, #0 + 800ead8: d10b bne.n 800eaf2 + 800eada: f04f 0350 mov.w r3, #80 ; 0x50 + 800eade: b672 cpsid i + 800eae0: f383 8811 msr BASEPRI, r3 + 800eae4: f3bf 8f6f isb sy + 800eae8: f3bf 8f4f dsb sy + 800eaec: b662 cpsie i + 800eaee: 613b str r3, [r7, #16] + 800eaf0: e7fe b.n 800eaf0 configASSERT( uxSchedulerSuspended == 0 ); - 800eaee: 4b2a ldr r3, [pc, #168] ; (800eb98 ) - 800eaf0: 681b ldr r3, [r3, #0] - 800eaf2: 2b00 cmp r3, #0 - 800eaf4: d00b beq.n 800eb0e - 800eaf6: f04f 0350 mov.w r3, #80 ; 0x50 - 800eafa: b672 cpsid i - 800eafc: f383 8811 msr BASEPRI, r3 - 800eb00: f3bf 8f6f isb sy - 800eb04: f3bf 8f4f dsb sy - 800eb08: b662 cpsie i - 800eb0a: 60fb str r3, [r7, #12] - 800eb0c: e7fe b.n 800eb0c + 800eaf2: 4b2a ldr r3, [pc, #168] ; (800eb9c ) + 800eaf4: 681b ldr r3, [r3, #0] + 800eaf6: 2b00 cmp r3, #0 + 800eaf8: d00b beq.n 800eb12 + 800eafa: f04f 0350 mov.w r3, #80 ; 0x50 + 800eafe: b672 cpsid i + 800eb00: f383 8811 msr BASEPRI, r3 + 800eb04: f3bf 8f6f isb sy + 800eb08: f3bf 8f4f dsb sy + 800eb0c: b662 cpsie i + 800eb0e: 60fb str r3, [r7, #12] + 800eb10: e7fe b.n 800eb10 vTaskSuspendAll(); - 800eb0e: f000 f8e1 bl 800ecd4 + 800eb12: f000 f8e1 bl 800ecd8 { /* Minor optimisation. The tick count cannot change in this block. */ const TickType_t xConstTickCount = xTickCount; - 800eb12: 4b22 ldr r3, [pc, #136] ; (800eb9c ) - 800eb14: 681b ldr r3, [r3, #0] - 800eb16: 623b str r3, [r7, #32] + 800eb16: 4b22 ldr r3, [pc, #136] ; (800eba0 ) + 800eb18: 681b ldr r3, [r3, #0] + 800eb1a: 623b str r3, [r7, #32] /* Generate the tick time at which the task wants to wake. */ xTimeToWake = *pxPreviousWakeTime + xTimeIncrement; - 800eb18: 687b ldr r3, [r7, #4] - 800eb1a: 681b ldr r3, [r3, #0] - 800eb1c: 683a ldr r2, [r7, #0] - 800eb1e: 4413 add r3, r2 - 800eb20: 61fb str r3, [r7, #28] + 800eb1c: 687b ldr r3, [r7, #4] + 800eb1e: 681b ldr r3, [r3, #0] + 800eb20: 683a ldr r2, [r7, #0] + 800eb22: 4413 add r3, r2 + 800eb24: 61fb str r3, [r7, #28] if( xConstTickCount < *pxPreviousWakeTime ) - 800eb22: 687b ldr r3, [r7, #4] - 800eb24: 681b ldr r3, [r3, #0] - 800eb26: 6a3a ldr r2, [r7, #32] - 800eb28: 429a cmp r2, r3 - 800eb2a: d20b bcs.n 800eb44 + 800eb26: 687b ldr r3, [r7, #4] + 800eb28: 681b ldr r3, [r3, #0] + 800eb2a: 6a3a ldr r2, [r7, #32] + 800eb2c: 429a cmp r2, r3 + 800eb2e: d20b bcs.n 800eb48 /* The tick count has overflowed since this function was lasted called. In this case the only time we should ever actually delay is if the wake time has also overflowed, and the wake time is greater than the tick time. When this is the case it is as if neither time had overflowed. */ if( ( xTimeToWake < *pxPreviousWakeTime ) && ( xTimeToWake > xConstTickCount ) ) - 800eb2c: 687b ldr r3, [r7, #4] - 800eb2e: 681b ldr r3, [r3, #0] - 800eb30: 69fa ldr r2, [r7, #28] - 800eb32: 429a cmp r2, r3 - 800eb34: d211 bcs.n 800eb5a - 800eb36: 69fa ldr r2, [r7, #28] - 800eb38: 6a3b ldr r3, [r7, #32] - 800eb3a: 429a cmp r2, r3 - 800eb3c: d90d bls.n 800eb5a + 800eb30: 687b ldr r3, [r7, #4] + 800eb32: 681b ldr r3, [r3, #0] + 800eb34: 69fa ldr r2, [r7, #28] + 800eb36: 429a cmp r2, r3 + 800eb38: d211 bcs.n 800eb5e + 800eb3a: 69fa ldr r2, [r7, #28] + 800eb3c: 6a3b ldr r3, [r7, #32] + 800eb3e: 429a cmp r2, r3 + 800eb40: d90d bls.n 800eb5e { xShouldDelay = pdTRUE; - 800eb3e: 2301 movs r3, #1 - 800eb40: 627b str r3, [r7, #36] ; 0x24 - 800eb42: e00a b.n 800eb5a + 800eb42: 2301 movs r3, #1 + 800eb44: 627b str r3, [r7, #36] ; 0x24 + 800eb46: e00a b.n 800eb5e else { /* The tick time has not overflowed. In this case we will delay if either the wake time has overflowed, and/or the tick time is less than the wake time. */ if( ( xTimeToWake < *pxPreviousWakeTime ) || ( xTimeToWake > xConstTickCount ) ) - 800eb44: 687b ldr r3, [r7, #4] - 800eb46: 681b ldr r3, [r3, #0] - 800eb48: 69fa ldr r2, [r7, #28] - 800eb4a: 429a cmp r2, r3 - 800eb4c: d303 bcc.n 800eb56 - 800eb4e: 69fa ldr r2, [r7, #28] - 800eb50: 6a3b ldr r3, [r7, #32] - 800eb52: 429a cmp r2, r3 - 800eb54: d901 bls.n 800eb5a + 800eb48: 687b ldr r3, [r7, #4] + 800eb4a: 681b ldr r3, [r3, #0] + 800eb4c: 69fa ldr r2, [r7, #28] + 800eb4e: 429a cmp r2, r3 + 800eb50: d303 bcc.n 800eb5a + 800eb52: 69fa ldr r2, [r7, #28] + 800eb54: 6a3b ldr r3, [r7, #32] + 800eb56: 429a cmp r2, r3 + 800eb58: d901 bls.n 800eb5e { xShouldDelay = pdTRUE; - 800eb56: 2301 movs r3, #1 - 800eb58: 627b str r3, [r7, #36] ; 0x24 + 800eb5a: 2301 movs r3, #1 + 800eb5c: 627b str r3, [r7, #36] ; 0x24 mtCOVERAGE_TEST_MARKER(); } } /* Update the wake time ready for the next call. */ *pxPreviousWakeTime = xTimeToWake; - 800eb5a: 687b ldr r3, [r7, #4] - 800eb5c: 69fa ldr r2, [r7, #28] - 800eb5e: 601a str r2, [r3, #0] + 800eb5e: 687b ldr r3, [r7, #4] + 800eb60: 69fa ldr r2, [r7, #28] + 800eb62: 601a str r2, [r3, #0] if( xShouldDelay != pdFALSE ) - 800eb60: 6a7b ldr r3, [r7, #36] ; 0x24 - 800eb62: 2b00 cmp r3, #0 - 800eb64: d006 beq.n 800eb74 + 800eb64: 6a7b ldr r3, [r7, #36] ; 0x24 + 800eb66: 2b00 cmp r3, #0 + 800eb68: d006 beq.n 800eb78 { traceTASK_DELAY_UNTIL( xTimeToWake ); /* prvAddCurrentTaskToDelayedList() needs the block time, not the time to wake, so subtract the current tick count. */ prvAddCurrentTaskToDelayedList( xTimeToWake - xConstTickCount, pdFALSE ); - 800eb66: 69fa ldr r2, [r7, #28] - 800eb68: 6a3b ldr r3, [r7, #32] - 800eb6a: 1ad3 subs r3, r2, r3 - 800eb6c: 2100 movs r1, #0 - 800eb6e: 4618 mov r0, r3 - 800eb70: f000 fe76 bl 800f860 + 800eb6a: 69fa ldr r2, [r7, #28] + 800eb6c: 6a3b ldr r3, [r7, #32] + 800eb6e: 1ad3 subs r3, r2, r3 + 800eb70: 2100 movs r1, #0 + 800eb72: 4618 mov r0, r3 + 800eb74: f000 fe76 bl 800f864 else { mtCOVERAGE_TEST_MARKER(); } } xAlreadyYielded = xTaskResumeAll(); - 800eb74: f000 f8bc bl 800ecf0 - 800eb78: 61b8 str r0, [r7, #24] + 800eb78: f000 f8bc bl 800ecf4 + 800eb7c: 61b8 str r0, [r7, #24] /* Force a reschedule if xTaskResumeAll has not already done so, we may have put ourselves to sleep. */ if( xAlreadyYielded == pdFALSE ) - 800eb7a: 69bb ldr r3, [r7, #24] - 800eb7c: 2b00 cmp r3, #0 - 800eb7e: d107 bne.n 800eb90 + 800eb7e: 69bb ldr r3, [r7, #24] + 800eb80: 2b00 cmp r3, #0 + 800eb82: d107 bne.n 800eb94 { portYIELD_WITHIN_API(); - 800eb80: 4b07 ldr r3, [pc, #28] ; (800eba0 ) - 800eb82: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800eb86: 601a str r2, [r3, #0] - 800eb88: f3bf 8f4f dsb sy - 800eb8c: f3bf 8f6f isb sy + 800eb84: 4b07 ldr r3, [pc, #28] ; (800eba4 ) + 800eb86: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800eb8a: 601a str r2, [r3, #0] + 800eb8c: f3bf 8f4f dsb sy + 800eb90: f3bf 8f6f isb sy } else { mtCOVERAGE_TEST_MARKER(); } } - 800eb90: bf00 nop - 800eb92: 3728 adds r7, #40 ; 0x28 - 800eb94: 46bd mov sp, r7 - 800eb96: bd80 pop {r7, pc} - 800eb98: 200006a8 .word 0x200006a8 - 800eb9c: 20000684 .word 0x20000684 - 800eba0: e000ed04 .word 0xe000ed04 - -0800eba4 : + 800eb94: bf00 nop + 800eb96: 3728 adds r7, #40 ; 0x28 + 800eb98: 46bd mov sp, r7 + 800eb9a: bd80 pop {r7, pc} + 800eb9c: 200006a8 .word 0x200006a8 + 800eba0: 20000684 .word 0x20000684 + 800eba4: e000ed04 .word 0xe000ed04 + +0800eba8 : /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskDelay == 1 ) void vTaskDelay( const TickType_t xTicksToDelay ) { - 800eba4: b580 push {r7, lr} - 800eba6: b084 sub sp, #16 - 800eba8: af00 add r7, sp, #0 - 800ebaa: 6078 str r0, [r7, #4] + 800eba8: b580 push {r7, lr} + 800ebaa: b084 sub sp, #16 + 800ebac: af00 add r7, sp, #0 + 800ebae: 6078 str r0, [r7, #4] BaseType_t xAlreadyYielded = pdFALSE; - 800ebac: 2300 movs r3, #0 - 800ebae: 60fb str r3, [r7, #12] + 800ebb0: 2300 movs r3, #0 + 800ebb2: 60fb str r3, [r7, #12] /* A delay time of zero just forces a reschedule. */ if( xTicksToDelay > ( TickType_t ) 0U ) - 800ebb0: 687b ldr r3, [r7, #4] - 800ebb2: 2b00 cmp r3, #0 - 800ebb4: d018 beq.n 800ebe8 + 800ebb4: 687b ldr r3, [r7, #4] + 800ebb6: 2b00 cmp r3, #0 + 800ebb8: d018 beq.n 800ebec { configASSERT( uxSchedulerSuspended == 0 ); - 800ebb6: 4b14 ldr r3, [pc, #80] ; (800ec08 ) - 800ebb8: 681b ldr r3, [r3, #0] - 800ebba: 2b00 cmp r3, #0 - 800ebbc: d00b beq.n 800ebd6 - 800ebbe: f04f 0350 mov.w r3, #80 ; 0x50 - 800ebc2: b672 cpsid i - 800ebc4: f383 8811 msr BASEPRI, r3 - 800ebc8: f3bf 8f6f isb sy - 800ebcc: f3bf 8f4f dsb sy - 800ebd0: b662 cpsie i - 800ebd2: 60bb str r3, [r7, #8] - 800ebd4: e7fe b.n 800ebd4 + 800ebba: 4b14 ldr r3, [pc, #80] ; (800ec0c ) + 800ebbc: 681b ldr r3, [r3, #0] + 800ebbe: 2b00 cmp r3, #0 + 800ebc0: d00b beq.n 800ebda + 800ebc2: f04f 0350 mov.w r3, #80 ; 0x50 + 800ebc6: b672 cpsid i + 800ebc8: f383 8811 msr BASEPRI, r3 + 800ebcc: f3bf 8f6f isb sy + 800ebd0: f3bf 8f4f dsb sy + 800ebd4: b662 cpsie i + 800ebd6: 60bb str r3, [r7, #8] + 800ebd8: e7fe b.n 800ebd8 vTaskSuspendAll(); - 800ebd6: f000 f87d bl 800ecd4 + 800ebda: f000 f87d bl 800ecd8 list or removed from the blocked list until the scheduler is resumed. This task cannot be in an event list as it is the currently executing task. */ prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE ); - 800ebda: 2100 movs r1, #0 - 800ebdc: 6878 ldr r0, [r7, #4] - 800ebde: f000 fe3f bl 800f860 + 800ebde: 2100 movs r1, #0 + 800ebe0: 6878 ldr r0, [r7, #4] + 800ebe2: f000 fe3f bl 800f864 } xAlreadyYielded = xTaskResumeAll(); - 800ebe2: f000 f885 bl 800ecf0 - 800ebe6: 60f8 str r0, [r7, #12] + 800ebe6: f000 f885 bl 800ecf4 + 800ebea: 60f8 str r0, [r7, #12] mtCOVERAGE_TEST_MARKER(); } /* Force a reschedule if xTaskResumeAll has not already done so, we may have put ourselves to sleep. */ if( xAlreadyYielded == pdFALSE ) - 800ebe8: 68fb ldr r3, [r7, #12] - 800ebea: 2b00 cmp r3, #0 - 800ebec: d107 bne.n 800ebfe + 800ebec: 68fb ldr r3, [r7, #12] + 800ebee: 2b00 cmp r3, #0 + 800ebf0: d107 bne.n 800ec02 { portYIELD_WITHIN_API(); - 800ebee: 4b07 ldr r3, [pc, #28] ; (800ec0c ) - 800ebf0: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800ebf4: 601a str r2, [r3, #0] - 800ebf6: f3bf 8f4f dsb sy - 800ebfa: f3bf 8f6f isb sy + 800ebf2: 4b07 ldr r3, [pc, #28] ; (800ec10 ) + 800ebf4: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800ebf8: 601a str r2, [r3, #0] + 800ebfa: f3bf 8f4f dsb sy + 800ebfe: f3bf 8f6f isb sy } else { mtCOVERAGE_TEST_MARKER(); } } - 800ebfe: bf00 nop - 800ec00: 3710 adds r7, #16 - 800ec02: 46bd mov sp, r7 - 800ec04: bd80 pop {r7, pc} - 800ec06: bf00 nop - 800ec08: 200006a8 .word 0x200006a8 - 800ec0c: e000ed04 .word 0xe000ed04 + 800ec02: bf00 nop + 800ec04: 3710 adds r7, #16 + 800ec06: 46bd mov sp, r7 + 800ec08: bd80 pop {r7, pc} + 800ec0a: bf00 nop + 800ec0c: 200006a8 .word 0x200006a8 + 800ec10: e000ed04 .word 0xe000ed04 -0800ec10 : +0800ec14 : #endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */ /*-----------------------------------------------------------*/ void vTaskStartScheduler( void ) { - 800ec10: b580 push {r7, lr} - 800ec12: b08a sub sp, #40 ; 0x28 - 800ec14: af04 add r7, sp, #16 + 800ec14: b580 push {r7, lr} + 800ec16: b08a sub sp, #40 ; 0x28 + 800ec18: af04 add r7, sp, #16 BaseType_t xReturn; /* Add the idle task at the lowest priority. */ #if( configSUPPORT_STATIC_ALLOCATION == 1 ) { StaticTask_t *pxIdleTaskTCBBuffer = NULL; - 800ec16: 2300 movs r3, #0 - 800ec18: 60bb str r3, [r7, #8] - StackType_t *pxIdleTaskStackBuffer = NULL; 800ec1a: 2300 movs r3, #0 - 800ec1c: 607b str r3, [r7, #4] + 800ec1c: 60bb str r3, [r7, #8] + StackType_t *pxIdleTaskStackBuffer = NULL; + 800ec1e: 2300 movs r3, #0 + 800ec20: 607b str r3, [r7, #4] uint32_t ulIdleTaskStackSize; /* The Idle task is created using user provided RAM - obtain the address of the RAM then create the idle task. */ vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize ); - 800ec1e: 463a mov r2, r7 - 800ec20: 1d39 adds r1, r7, #4 - 800ec22: f107 0308 add.w r3, r7, #8 - 800ec26: 4618 mov r0, r3 - 800ec28: f7f1 fcdc bl 80005e4 + 800ec22: 463a mov r2, r7 + 800ec24: 1d39 adds r1, r7, #4 + 800ec26: f107 0308 add.w r3, r7, #8 + 800ec2a: 4618 mov r0, r3 + 800ec2c: f7f1 fcda bl 80005e4 xIdleTaskHandle = xTaskCreateStatic( prvIdleTask, - 800ec2c: 6839 ldr r1, [r7, #0] - 800ec2e: 687b ldr r3, [r7, #4] - 800ec30: 68ba ldr r2, [r7, #8] - 800ec32: 9202 str r2, [sp, #8] - 800ec34: 9301 str r3, [sp, #4] - 800ec36: 2300 movs r3, #0 - 800ec38: 9300 str r3, [sp, #0] + 800ec30: 6839 ldr r1, [r7, #0] + 800ec32: 687b ldr r3, [r7, #4] + 800ec34: 68ba ldr r2, [r7, #8] + 800ec36: 9202 str r2, [sp, #8] + 800ec38: 9301 str r3, [sp, #4] 800ec3a: 2300 movs r3, #0 - 800ec3c: 460a mov r2, r1 - 800ec3e: 491f ldr r1, [pc, #124] ; (800ecbc ) - 800ec40: 481f ldr r0, [pc, #124] ; (800ecc0 ) - 800ec42: f7ff fd8c bl 800e75e - 800ec46: 4602 mov r2, r0 - 800ec48: 4b1e ldr r3, [pc, #120] ; (800ecc4 ) - 800ec4a: 601a str r2, [r3, #0] + 800ec3c: 9300 str r3, [sp, #0] + 800ec3e: 2300 movs r3, #0 + 800ec40: 460a mov r2, r1 + 800ec42: 491f ldr r1, [pc, #124] ; (800ecc0 ) + 800ec44: 481f ldr r0, [pc, #124] ; (800ecc4 ) + 800ec46: f7ff fd8c bl 800e762 + 800ec4a: 4602 mov r2, r0 + 800ec4c: 4b1e ldr r3, [pc, #120] ; (800ecc8 ) + 800ec4e: 601a str r2, [r3, #0] ( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */ portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */ pxIdleTaskStackBuffer, pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */ if( xIdleTaskHandle != NULL ) - 800ec4c: 4b1d ldr r3, [pc, #116] ; (800ecc4 ) - 800ec4e: 681b ldr r3, [r3, #0] - 800ec50: 2b00 cmp r3, #0 - 800ec52: d002 beq.n 800ec5a + 800ec50: 4b1d ldr r3, [pc, #116] ; (800ecc8 ) + 800ec52: 681b ldr r3, [r3, #0] + 800ec54: 2b00 cmp r3, #0 + 800ec56: d002 beq.n 800ec5e { xReturn = pdPASS; - 800ec54: 2301 movs r3, #1 - 800ec56: 617b str r3, [r7, #20] - 800ec58: e001 b.n 800ec5e + 800ec58: 2301 movs r3, #1 + 800ec5a: 617b str r3, [r7, #20] + 800ec5c: e001 b.n 800ec62 } else { xReturn = pdFAIL; - 800ec5a: 2300 movs r3, #0 - 800ec5c: 617b str r3, [r7, #20] + 800ec5e: 2300 movs r3, #0 + 800ec60: 617b str r3, [r7, #20] mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_TIMERS */ if( xReturn == pdPASS ) - 800ec5e: 697b ldr r3, [r7, #20] - 800ec60: 2b01 cmp r3, #1 - 800ec62: d117 bne.n 800ec94 - 800ec64: f04f 0350 mov.w r3, #80 ; 0x50 - 800ec68: b672 cpsid i - 800ec6a: f383 8811 msr BASEPRI, r3 - 800ec6e: f3bf 8f6f isb sy - 800ec72: f3bf 8f4f dsb sy - 800ec76: b662 cpsie i - 800ec78: 613b str r3, [r7, #16] + 800ec62: 697b ldr r3, [r7, #20] + 800ec64: 2b01 cmp r3, #1 + 800ec66: d117 bne.n 800ec98 + 800ec68: f04f 0350 mov.w r3, #80 ; 0x50 + 800ec6c: b672 cpsid i + 800ec6e: f383 8811 msr BASEPRI, r3 + 800ec72: f3bf 8f6f isb sy + 800ec76: f3bf 8f4f dsb sy + 800ec7a: b662 cpsie i + 800ec7c: 613b str r3, [r7, #16] structure specific to the task that will run first. */ _impure_ptr = &( pxCurrentTCB->xNewLib_reent ); } #endif /* configUSE_NEWLIB_REENTRANT */ xNextTaskUnblockTime = portMAX_DELAY; - 800ec7a: 4b13 ldr r3, [pc, #76] ; (800ecc8 ) - 800ec7c: f04f 32ff mov.w r2, #4294967295 - 800ec80: 601a str r2, [r3, #0] + 800ec7e: 4b13 ldr r3, [pc, #76] ; (800eccc ) + 800ec80: f04f 32ff mov.w r2, #4294967295 + 800ec84: 601a str r2, [r3, #0] xSchedulerRunning = pdTRUE; - 800ec82: 4b12 ldr r3, [pc, #72] ; (800eccc ) - 800ec84: 2201 movs r2, #1 - 800ec86: 601a str r2, [r3, #0] + 800ec86: 4b12 ldr r3, [pc, #72] ; (800ecd0 ) + 800ec88: 2201 movs r2, #1 + 800ec8a: 601a str r2, [r3, #0] xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT; - 800ec88: 4b11 ldr r3, [pc, #68] ; (800ecd0 ) - 800ec8a: 2200 movs r2, #0 - 800ec8c: 601a str r2, [r3, #0] + 800ec8c: 4b11 ldr r3, [pc, #68] ; (800ecd4 ) + 800ec8e: 2200 movs r2, #0 + 800ec90: 601a str r2, [r3, #0] traceTASK_SWITCHED_IN(); /* Setting up the timer tick is hardware specific and thus in the portable interface. */ if( xPortStartScheduler() != pdFALSE ) - 800ec8e: f000 fed7 bl 800fa40 + 800ec92: f000 fedd bl 800fa50 } /* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0, meaning xIdleTaskHandle is not used anywhere else. */ ( void ) xIdleTaskHandle; } - 800ec92: e00f b.n 800ecb4 + 800ec96: e00f b.n 800ecb8 configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ); - 800ec94: 697b ldr r3, [r7, #20] - 800ec96: f1b3 3fff cmp.w r3, #4294967295 - 800ec9a: d10b bne.n 800ecb4 - 800ec9c: f04f 0350 mov.w r3, #80 ; 0x50 - 800eca0: b672 cpsid i - 800eca2: f383 8811 msr BASEPRI, r3 - 800eca6: f3bf 8f6f isb sy - 800ecaa: f3bf 8f4f dsb sy - 800ecae: b662 cpsie i - 800ecb0: 60fb str r3, [r7, #12] - 800ecb2: e7fe b.n 800ecb2 -} - 800ecb4: bf00 nop - 800ecb6: 3718 adds r7, #24 - 800ecb8: 46bd mov sp, r7 - 800ecba: bd80 pop {r7, pc} - 800ecbc: 0801d95c .word 0x0801d95c - 800ecc0: 0800f309 .word 0x0800f309 - 800ecc4: 200006a4 .word 0x200006a4 - 800ecc8: 200006a0 .word 0x200006a0 - 800eccc: 2000068c .word 0x2000068c - 800ecd0: 20000684 .word 0x20000684 - -0800ecd4 : + 800ec98: 697b ldr r3, [r7, #20] + 800ec9a: f1b3 3fff cmp.w r3, #4294967295 + 800ec9e: d10b bne.n 800ecb8 + 800eca0: f04f 0350 mov.w r3, #80 ; 0x50 + 800eca4: b672 cpsid i + 800eca6: f383 8811 msr BASEPRI, r3 + 800ecaa: f3bf 8f6f isb sy + 800ecae: f3bf 8f4f dsb sy + 800ecb2: b662 cpsie i + 800ecb4: 60fb str r3, [r7, #12] + 800ecb6: e7fe b.n 800ecb6 +} + 800ecb8: bf00 nop + 800ecba: 3718 adds r7, #24 + 800ecbc: 46bd mov sp, r7 + 800ecbe: bd80 pop {r7, pc} + 800ecc0: 0801d96c .word 0x0801d96c + 800ecc4: 0800f30d .word 0x0800f30d + 800ecc8: 200006a4 .word 0x200006a4 + 800eccc: 200006a0 .word 0x200006a0 + 800ecd0: 2000068c .word 0x2000068c + 800ecd4: 20000684 .word 0x20000684 + +0800ecd8 : vPortEndScheduler(); } /*----------------------------------------------------------*/ void vTaskSuspendAll( void ) { - 800ecd4: b480 push {r7} - 800ecd6: af00 add r7, sp, #0 + 800ecd8: b480 push {r7} + 800ecda: af00 add r7, sp, #0 /* A critical section is not required as the variable is of type BaseType_t. Please read Richard Barry's reply in the following link to a post in the FreeRTOS support forum before reporting this as a bug! - http://goo.gl/wu4acr */ ++uxSchedulerSuspended; - 800ecd8: 4b04 ldr r3, [pc, #16] ; (800ecec ) - 800ecda: 681b ldr r3, [r3, #0] - 800ecdc: 3301 adds r3, #1 - 800ecde: 4a03 ldr r2, [pc, #12] ; (800ecec ) - 800ece0: 6013 str r3, [r2, #0] + 800ecdc: 4b04 ldr r3, [pc, #16] ; (800ecf0 ) + 800ecde: 681b ldr r3, [r3, #0] + 800ece0: 3301 adds r3, #1 + 800ece2: 4a03 ldr r2, [pc, #12] ; (800ecf0 ) + 800ece4: 6013 str r3, [r2, #0] portMEMORY_BARRIER(); } - 800ece2: bf00 nop - 800ece4: 46bd mov sp, r7 - 800ece6: f85d 7b04 ldr.w r7, [sp], #4 - 800ecea: 4770 bx lr - 800ecec: 200006a8 .word 0x200006a8 + 800ece6: bf00 nop + 800ece8: 46bd mov sp, r7 + 800ecea: f85d 7b04 ldr.w r7, [sp], #4 + 800ecee: 4770 bx lr + 800ecf0: 200006a8 .word 0x200006a8 -0800ecf0 : +0800ecf4 : #endif /* configUSE_TICKLESS_IDLE */ /*----------------------------------------------------------*/ BaseType_t xTaskResumeAll( void ) { - 800ecf0: b580 push {r7, lr} - 800ecf2: b084 sub sp, #16 - 800ecf4: af00 add r7, sp, #0 + 800ecf4: b580 push {r7, lr} + 800ecf6: b084 sub sp, #16 + 800ecf8: af00 add r7, sp, #0 TCB_t *pxTCB = NULL; - 800ecf6: 2300 movs r3, #0 - 800ecf8: 60fb str r3, [r7, #12] -BaseType_t xAlreadyYielded = pdFALSE; 800ecfa: 2300 movs r3, #0 - 800ecfc: 60bb str r3, [r7, #8] + 800ecfc: 60fb str r3, [r7, #12] +BaseType_t xAlreadyYielded = pdFALSE; + 800ecfe: 2300 movs r3, #0 + 800ed00: 60bb str r3, [r7, #8] /* If uxSchedulerSuspended is zero then this function does not match a previous call to vTaskSuspendAll(). */ configASSERT( uxSchedulerSuspended ); - 800ecfe: 4b42 ldr r3, [pc, #264] ; (800ee08 ) - 800ed00: 681b ldr r3, [r3, #0] - 800ed02: 2b00 cmp r3, #0 - 800ed04: d10b bne.n 800ed1e - 800ed06: f04f 0350 mov.w r3, #80 ; 0x50 - 800ed0a: b672 cpsid i - 800ed0c: f383 8811 msr BASEPRI, r3 - 800ed10: f3bf 8f6f isb sy - 800ed14: f3bf 8f4f dsb sy - 800ed18: b662 cpsie i - 800ed1a: 603b str r3, [r7, #0] - 800ed1c: e7fe b.n 800ed1c + 800ed02: 4b42 ldr r3, [pc, #264] ; (800ee0c ) + 800ed04: 681b ldr r3, [r3, #0] + 800ed06: 2b00 cmp r3, #0 + 800ed08: d10b bne.n 800ed22 + 800ed0a: f04f 0350 mov.w r3, #80 ; 0x50 + 800ed0e: b672 cpsid i + 800ed10: f383 8811 msr BASEPRI, r3 + 800ed14: f3bf 8f6f isb sy + 800ed18: f3bf 8f4f dsb sy + 800ed1c: b662 cpsie i + 800ed1e: 603b str r3, [r7, #0] + 800ed20: e7fe b.n 800ed20 /* It is possible that an ISR caused a task to be removed from an event list while the scheduler was suspended. If this was the case then the removed task will have been added to the xPendingReadyList. Once the scheduler has been resumed it is safe to move all the pending ready tasks from this list into their appropriate ready list. */ taskENTER_CRITICAL(); - 800ed1e: f000 ff0b bl 800fb38 + 800ed22: f000 ff11 bl 800fb48 { --uxSchedulerSuspended; - 800ed22: 4b39 ldr r3, [pc, #228] ; (800ee08 ) - 800ed24: 681b ldr r3, [r3, #0] - 800ed26: 3b01 subs r3, #1 - 800ed28: 4a37 ldr r2, [pc, #220] ; (800ee08 ) - 800ed2a: 6013 str r3, [r2, #0] + 800ed26: 4b39 ldr r3, [pc, #228] ; (800ee0c ) + 800ed28: 681b ldr r3, [r3, #0] + 800ed2a: 3b01 subs r3, #1 + 800ed2c: 4a37 ldr r2, [pc, #220] ; (800ee0c ) + 800ed2e: 6013 str r3, [r2, #0] if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - 800ed2c: 4b36 ldr r3, [pc, #216] ; (800ee08 ) - 800ed2e: 681b ldr r3, [r3, #0] - 800ed30: 2b00 cmp r3, #0 - 800ed32: d161 bne.n 800edf8 + 800ed30: 4b36 ldr r3, [pc, #216] ; (800ee0c ) + 800ed32: 681b ldr r3, [r3, #0] + 800ed34: 2b00 cmp r3, #0 + 800ed36: d161 bne.n 800edfc { if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U ) - 800ed34: 4b35 ldr r3, [pc, #212] ; (800ee0c ) - 800ed36: 681b ldr r3, [r3, #0] - 800ed38: 2b00 cmp r3, #0 - 800ed3a: d05d beq.n 800edf8 + 800ed38: 4b35 ldr r3, [pc, #212] ; (800ee10 ) + 800ed3a: 681b ldr r3, [r3, #0] + 800ed3c: 2b00 cmp r3, #0 + 800ed3e: d05d beq.n 800edfc { /* Move any readied tasks from the pending list into the appropriate ready list. */ while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE ) - 800ed3c: e02e b.n 800ed9c + 800ed40: e02e b.n 800eda0 { pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xPendingReadyList ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - 800ed3e: 4b34 ldr r3, [pc, #208] ; (800ee10 ) - 800ed40: 68db ldr r3, [r3, #12] - 800ed42: 68db ldr r3, [r3, #12] - 800ed44: 60fb str r3, [r7, #12] + 800ed42: 4b34 ldr r3, [pc, #208] ; (800ee14 ) + 800ed44: 68db ldr r3, [r3, #12] + 800ed46: 68db ldr r3, [r3, #12] + 800ed48: 60fb str r3, [r7, #12] ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - 800ed46: 68fb ldr r3, [r7, #12] - 800ed48: 3318 adds r3, #24 - 800ed4a: 4618 mov r0, r3 - 800ed4c: f7fe fd0e bl 800d76c + 800ed4a: 68fb ldr r3, [r7, #12] + 800ed4c: 3318 adds r3, #24 + 800ed4e: 4618 mov r0, r3 + 800ed50: f7fe fd0e bl 800d770 ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - 800ed50: 68fb ldr r3, [r7, #12] - 800ed52: 3304 adds r3, #4 - 800ed54: 4618 mov r0, r3 - 800ed56: f7fe fd09 bl 800d76c + 800ed54: 68fb ldr r3, [r7, #12] + 800ed56: 3304 adds r3, #4 + 800ed58: 4618 mov r0, r3 + 800ed5a: f7fe fd09 bl 800d770 prvAddTaskToReadyList( pxTCB ); - 800ed5a: 68fb ldr r3, [r7, #12] - 800ed5c: 6adb ldr r3, [r3, #44] ; 0x2c - 800ed5e: 2201 movs r2, #1 - 800ed60: 409a lsls r2, r3 - 800ed62: 4b2c ldr r3, [pc, #176] ; (800ee14 ) - 800ed64: 681b ldr r3, [r3, #0] - 800ed66: 4313 orrs r3, r2 - 800ed68: 4a2a ldr r2, [pc, #168] ; (800ee14 ) - 800ed6a: 6013 str r3, [r2, #0] - 800ed6c: 68fb ldr r3, [r7, #12] - 800ed6e: 6ada ldr r2, [r3, #44] ; 0x2c - 800ed70: 4613 mov r3, r2 - 800ed72: 009b lsls r3, r3, #2 - 800ed74: 4413 add r3, r2 + 800ed5e: 68fb ldr r3, [r7, #12] + 800ed60: 6adb ldr r3, [r3, #44] ; 0x2c + 800ed62: 2201 movs r2, #1 + 800ed64: 409a lsls r2, r3 + 800ed66: 4b2c ldr r3, [pc, #176] ; (800ee18 ) + 800ed68: 681b ldr r3, [r3, #0] + 800ed6a: 4313 orrs r3, r2 + 800ed6c: 4a2a ldr r2, [pc, #168] ; (800ee18 ) + 800ed6e: 6013 str r3, [r2, #0] + 800ed70: 68fb ldr r3, [r7, #12] + 800ed72: 6ada ldr r2, [r3, #44] ; 0x2c + 800ed74: 4613 mov r3, r2 800ed76: 009b lsls r3, r3, #2 - 800ed78: 4a27 ldr r2, [pc, #156] ; (800ee18 ) - 800ed7a: 441a add r2, r3 - 800ed7c: 68fb ldr r3, [r7, #12] - 800ed7e: 3304 adds r3, #4 - 800ed80: 4619 mov r1, r3 - 800ed82: 4610 mov r0, r2 - 800ed84: f7fe fc95 bl 800d6b2 + 800ed78: 4413 add r3, r2 + 800ed7a: 009b lsls r3, r3, #2 + 800ed7c: 4a27 ldr r2, [pc, #156] ; (800ee1c ) + 800ed7e: 441a add r2, r3 + 800ed80: 68fb ldr r3, [r7, #12] + 800ed82: 3304 adds r3, #4 + 800ed84: 4619 mov r1, r3 + 800ed86: 4610 mov r0, r2 + 800ed88: f7fe fc95 bl 800d6b6 /* If the moved task has a priority higher than the current task then a yield must be performed. */ if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) - 800ed88: 68fb ldr r3, [r7, #12] - 800ed8a: 6ada ldr r2, [r3, #44] ; 0x2c - 800ed8c: 4b23 ldr r3, [pc, #140] ; (800ee1c ) - 800ed8e: 681b ldr r3, [r3, #0] - 800ed90: 6adb ldr r3, [r3, #44] ; 0x2c - 800ed92: 429a cmp r2, r3 - 800ed94: d302 bcc.n 800ed9c + 800ed8c: 68fb ldr r3, [r7, #12] + 800ed8e: 6ada ldr r2, [r3, #44] ; 0x2c + 800ed90: 4b23 ldr r3, [pc, #140] ; (800ee20 ) + 800ed92: 681b ldr r3, [r3, #0] + 800ed94: 6adb ldr r3, [r3, #44] ; 0x2c + 800ed96: 429a cmp r2, r3 + 800ed98: d302 bcc.n 800eda0 { xYieldPending = pdTRUE; - 800ed96: 4b22 ldr r3, [pc, #136] ; (800ee20 ) - 800ed98: 2201 movs r2, #1 - 800ed9a: 601a str r2, [r3, #0] + 800ed9a: 4b22 ldr r3, [pc, #136] ; (800ee24 ) + 800ed9c: 2201 movs r2, #1 + 800ed9e: 601a str r2, [r3, #0] while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE ) - 800ed9c: 4b1c ldr r3, [pc, #112] ; (800ee10 ) - 800ed9e: 681b ldr r3, [r3, #0] - 800eda0: 2b00 cmp r3, #0 - 800eda2: d1cc bne.n 800ed3e + 800eda0: 4b1c ldr r3, [pc, #112] ; (800ee14 ) + 800eda2: 681b ldr r3, [r3, #0] + 800eda4: 2b00 cmp r3, #0 + 800eda6: d1cc bne.n 800ed42 { mtCOVERAGE_TEST_MARKER(); } } if( pxTCB != NULL ) - 800eda4: 68fb ldr r3, [r7, #12] - 800eda6: 2b00 cmp r3, #0 - 800eda8: d001 beq.n 800edae + 800eda8: 68fb ldr r3, [r7, #12] + 800edaa: 2b00 cmp r3, #0 + 800edac: d001 beq.n 800edb2 which may have prevented the next unblock time from being re-calculated, in which case re-calculate it now. Mainly important for low power tickless implementations, where this can prevent an unnecessary exit from low power state. */ prvResetNextTaskUnblockTime(); - 800edaa: f000 fb63 bl 800f474 + 800edae: f000 fb63 bl 800f478 /* If any ticks occurred while the scheduler was suspended then they should be processed now. This ensures the tick count does not slip, and that any delayed tasks are resumed at the correct time. */ { UBaseType_t uxPendedCounts = uxPendedTicks; /* Non-volatile copy. */ - 800edae: 4b1d ldr r3, [pc, #116] ; (800ee24 ) - 800edb0: 681b ldr r3, [r3, #0] - 800edb2: 607b str r3, [r7, #4] + 800edb2: 4b1d ldr r3, [pc, #116] ; (800ee28 ) + 800edb4: 681b ldr r3, [r3, #0] + 800edb6: 607b str r3, [r7, #4] if( uxPendedCounts > ( UBaseType_t ) 0U ) - 800edb4: 687b ldr r3, [r7, #4] - 800edb6: 2b00 cmp r3, #0 - 800edb8: d010 beq.n 800eddc + 800edb8: 687b ldr r3, [r7, #4] + 800edba: 2b00 cmp r3, #0 + 800edbc: d010 beq.n 800ede0 { do { if( xTaskIncrementTick() != pdFALSE ) - 800edba: f000 f859 bl 800ee70 - 800edbe: 4603 mov r3, r0 - 800edc0: 2b00 cmp r3, #0 - 800edc2: d002 beq.n 800edca + 800edbe: f000 f859 bl 800ee74 + 800edc2: 4603 mov r3, r0 + 800edc4: 2b00 cmp r3, #0 + 800edc6: d002 beq.n 800edce { xYieldPending = pdTRUE; - 800edc4: 4b16 ldr r3, [pc, #88] ; (800ee20 ) - 800edc6: 2201 movs r2, #1 - 800edc8: 601a str r2, [r3, #0] + 800edc8: 4b16 ldr r3, [pc, #88] ; (800ee24 ) + 800edca: 2201 movs r2, #1 + 800edcc: 601a str r2, [r3, #0] } else { mtCOVERAGE_TEST_MARKER(); } --uxPendedCounts; - 800edca: 687b ldr r3, [r7, #4] - 800edcc: 3b01 subs r3, #1 - 800edce: 607b str r3, [r7, #4] + 800edce: 687b ldr r3, [r7, #4] + 800edd0: 3b01 subs r3, #1 + 800edd2: 607b str r3, [r7, #4] } while( uxPendedCounts > ( UBaseType_t ) 0U ); - 800edd0: 687b ldr r3, [r7, #4] - 800edd2: 2b00 cmp r3, #0 - 800edd4: d1f1 bne.n 800edba + 800edd4: 687b ldr r3, [r7, #4] + 800edd6: 2b00 cmp r3, #0 + 800edd8: d1f1 bne.n 800edbe uxPendedTicks = 0; - 800edd6: 4b13 ldr r3, [pc, #76] ; (800ee24 ) - 800edd8: 2200 movs r2, #0 - 800edda: 601a str r2, [r3, #0] + 800edda: 4b13 ldr r3, [pc, #76] ; (800ee28 ) + 800eddc: 2200 movs r2, #0 + 800edde: 601a str r2, [r3, #0] { mtCOVERAGE_TEST_MARKER(); } } if( xYieldPending != pdFALSE ) - 800eddc: 4b10 ldr r3, [pc, #64] ; (800ee20 ) - 800edde: 681b ldr r3, [r3, #0] - 800ede0: 2b00 cmp r3, #0 - 800ede2: d009 beq.n 800edf8 + 800ede0: 4b10 ldr r3, [pc, #64] ; (800ee24 ) + 800ede2: 681b ldr r3, [r3, #0] + 800ede4: 2b00 cmp r3, #0 + 800ede6: d009 beq.n 800edfc { #if( configUSE_PREEMPTION != 0 ) { xAlreadyYielded = pdTRUE; - 800ede4: 2301 movs r3, #1 - 800ede6: 60bb str r3, [r7, #8] + 800ede8: 2301 movs r3, #1 + 800edea: 60bb str r3, [r7, #8] } #endif taskYIELD_IF_USING_PREEMPTION(); - 800ede8: 4b0f ldr r3, [pc, #60] ; (800ee28 ) - 800edea: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800edee: 601a str r2, [r3, #0] - 800edf0: f3bf 8f4f dsb sy - 800edf4: f3bf 8f6f isb sy + 800edec: 4b0f ldr r3, [pc, #60] ; (800ee2c ) + 800edee: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800edf2: 601a str r2, [r3, #0] + 800edf4: f3bf 8f4f dsb sy + 800edf8: f3bf 8f6f isb sy else { mtCOVERAGE_TEST_MARKER(); } } taskEXIT_CRITICAL(); - 800edf8: f000 fed0 bl 800fb9c + 800edfc: f000 fed6 bl 800fbac return xAlreadyYielded; - 800edfc: 68bb ldr r3, [r7, #8] -} - 800edfe: 4618 mov r0, r3 - 800ee00: 3710 adds r7, #16 - 800ee02: 46bd mov sp, r7 - 800ee04: bd80 pop {r7, pc} - 800ee06: bf00 nop - 800ee08: 200006a8 .word 0x200006a8 - 800ee0c: 20000680 .word 0x20000680 - 800ee10: 20000640 .word 0x20000640 - 800ee14: 20000688 .word 0x20000688 - 800ee18: 20000584 .word 0x20000584 - 800ee1c: 20000580 .word 0x20000580 - 800ee20: 20000694 .word 0x20000694 - 800ee24: 20000690 .word 0x20000690 - 800ee28: e000ed04 .word 0xe000ed04 - -0800ee2c : + 800ee00: 68bb ldr r3, [r7, #8] +} + 800ee02: 4618 mov r0, r3 + 800ee04: 3710 adds r7, #16 + 800ee06: 46bd mov sp, r7 + 800ee08: bd80 pop {r7, pc} + 800ee0a: bf00 nop + 800ee0c: 200006a8 .word 0x200006a8 + 800ee10: 20000680 .word 0x20000680 + 800ee14: 20000640 .word 0x20000640 + 800ee18: 20000688 .word 0x20000688 + 800ee1c: 20000584 .word 0x20000584 + 800ee20: 20000580 .word 0x20000580 + 800ee24: 20000694 .word 0x20000694 + 800ee28: 20000690 .word 0x20000690 + 800ee2c: e000ed04 .word 0xe000ed04 + +0800ee30 : /*-----------------------------------------------------------*/ TickType_t xTaskGetTickCount( void ) { - 800ee2c: b480 push {r7} - 800ee2e: b083 sub sp, #12 - 800ee30: af00 add r7, sp, #0 + 800ee30: b480 push {r7} + 800ee32: b083 sub sp, #12 + 800ee34: af00 add r7, sp, #0 TickType_t xTicks; /* Critical section required if running on a 16 bit processor. */ portTICK_TYPE_ENTER_CRITICAL(); { xTicks = xTickCount; - 800ee32: 4b05 ldr r3, [pc, #20] ; (800ee48 ) - 800ee34: 681b ldr r3, [r3, #0] - 800ee36: 607b str r3, [r7, #4] + 800ee36: 4b05 ldr r3, [pc, #20] ; (800ee4c ) + 800ee38: 681b ldr r3, [r3, #0] + 800ee3a: 607b str r3, [r7, #4] } portTICK_TYPE_EXIT_CRITICAL(); return xTicks; - 800ee38: 687b ldr r3, [r7, #4] + 800ee3c: 687b ldr r3, [r7, #4] } - 800ee3a: 4618 mov r0, r3 - 800ee3c: 370c adds r7, #12 - 800ee3e: 46bd mov sp, r7 - 800ee40: f85d 7b04 ldr.w r7, [sp], #4 - 800ee44: 4770 bx lr - 800ee46: bf00 nop - 800ee48: 20000684 .word 0x20000684 + 800ee3e: 4618 mov r0, r3 + 800ee40: 370c adds r7, #12 + 800ee42: 46bd mov sp, r7 + 800ee44: f85d 7b04 ldr.w r7, [sp], #4 + 800ee48: 4770 bx lr + 800ee4a: bf00 nop + 800ee4c: 20000684 .word 0x20000684 -0800ee4c : +0800ee50 : /*-----------------------------------------------------------*/ TickType_t xTaskGetTickCountFromISR( void ) { - 800ee4c: b580 push {r7, lr} - 800ee4e: b082 sub sp, #8 - 800ee50: af00 add r7, sp, #0 + 800ee50: b580 push {r7, lr} + 800ee52: b082 sub sp, #8 + 800ee54: af00 add r7, sp, #0 that have been assigned a priority at or (logically) below the maximum system call interrupt priority. FreeRTOS maintains a separate interrupt safe API to ensure interrupt entry is as fast and as simple as possible. More information (albeit Cortex-M specific) is provided on the following link: https://www.freertos.org/RTOS-Cortex-M3-M4.html */ portASSERT_IF_INTERRUPT_PRIORITY_INVALID(); - 800ee52: f000 ff51 bl 800fcf8 + 800ee56: f000 ff57 bl 800fd08 uxSavedInterruptStatus = portTICK_TYPE_SET_INTERRUPT_MASK_FROM_ISR(); - 800ee56: 2300 movs r3, #0 - 800ee58: 607b str r3, [r7, #4] + 800ee5a: 2300 movs r3, #0 + 800ee5c: 607b str r3, [r7, #4] { xReturn = xTickCount; - 800ee5a: 4b04 ldr r3, [pc, #16] ; (800ee6c ) - 800ee5c: 681b ldr r3, [r3, #0] - 800ee5e: 603b str r3, [r7, #0] + 800ee5e: 4b04 ldr r3, [pc, #16] ; (800ee70 ) + 800ee60: 681b ldr r3, [r3, #0] + 800ee62: 603b str r3, [r7, #0] } portTICK_TYPE_CLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus ); return xReturn; - 800ee60: 683b ldr r3, [r7, #0] + 800ee64: 683b ldr r3, [r7, #0] } - 800ee62: 4618 mov r0, r3 - 800ee64: 3708 adds r7, #8 - 800ee66: 46bd mov sp, r7 - 800ee68: bd80 pop {r7, pc} - 800ee6a: bf00 nop - 800ee6c: 20000684 .word 0x20000684 + 800ee66: 4618 mov r0, r3 + 800ee68: 3708 adds r7, #8 + 800ee6a: 46bd mov sp, r7 + 800ee6c: bd80 pop {r7, pc} + 800ee6e: bf00 nop + 800ee70: 20000684 .word 0x20000684 -0800ee70 : +0800ee74 : #endif /* INCLUDE_xTaskAbortDelay */ /*----------------------------------------------------------*/ BaseType_t xTaskIncrementTick( void ) { - 800ee70: b580 push {r7, lr} - 800ee72: b086 sub sp, #24 - 800ee74: af00 add r7, sp, #0 + 800ee74: b580 push {r7, lr} + 800ee76: b086 sub sp, #24 + 800ee78: af00 add r7, sp, #0 TCB_t * pxTCB; TickType_t xItemValue; BaseType_t xSwitchRequired = pdFALSE; - 800ee76: 2300 movs r3, #0 - 800ee78: 617b str r3, [r7, #20] + 800ee7a: 2300 movs r3, #0 + 800ee7c: 617b str r3, [r7, #20] /* Called by the portable layer each time a tick interrupt occurs. Increments the tick then checks to see if the new tick value will cause any tasks to be unblocked. */ traceTASK_INCREMENT_TICK( xTickCount ); if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - 800ee7a: 4b4f ldr r3, [pc, #316] ; (800efb8 ) - 800ee7c: 681b ldr r3, [r3, #0] - 800ee7e: 2b00 cmp r3, #0 - 800ee80: f040 8089 bne.w 800ef96 + 800ee7e: 4b4f ldr r3, [pc, #316] ; (800efbc ) + 800ee80: 681b ldr r3, [r3, #0] + 800ee82: 2b00 cmp r3, #0 + 800ee84: f040 8089 bne.w 800ef9a { /* Minor optimisation. The tick count cannot change in this block. */ const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1; - 800ee84: 4b4d ldr r3, [pc, #308] ; (800efbc ) - 800ee86: 681b ldr r3, [r3, #0] - 800ee88: 3301 adds r3, #1 - 800ee8a: 613b str r3, [r7, #16] + 800ee88: 4b4d ldr r3, [pc, #308] ; (800efc0 ) + 800ee8a: 681b ldr r3, [r3, #0] + 800ee8c: 3301 adds r3, #1 + 800ee8e: 613b str r3, [r7, #16] /* Increment the RTOS tick, switching the delayed and overflowed delayed lists if it wraps to 0. */ xTickCount = xConstTickCount; - 800ee8c: 4a4b ldr r2, [pc, #300] ; (800efbc ) - 800ee8e: 693b ldr r3, [r7, #16] - 800ee90: 6013 str r3, [r2, #0] + 800ee90: 4a4b ldr r2, [pc, #300] ; (800efc0 ) + 800ee92: 693b ldr r3, [r7, #16] + 800ee94: 6013 str r3, [r2, #0] if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */ - 800ee92: 693b ldr r3, [r7, #16] - 800ee94: 2b00 cmp r3, #0 - 800ee96: d121 bne.n 800eedc + 800ee96: 693b ldr r3, [r7, #16] + 800ee98: 2b00 cmp r3, #0 + 800ee9a: d121 bne.n 800eee0 { taskSWITCH_DELAYED_LISTS(); - 800ee98: 4b49 ldr r3, [pc, #292] ; (800efc0 ) - 800ee9a: 681b ldr r3, [r3, #0] - 800ee9c: 681b ldr r3, [r3, #0] - 800ee9e: 2b00 cmp r3, #0 - 800eea0: d00b beq.n 800eeba - 800eea2: f04f 0350 mov.w r3, #80 ; 0x50 - 800eea6: b672 cpsid i - 800eea8: f383 8811 msr BASEPRI, r3 - 800eeac: f3bf 8f6f isb sy - 800eeb0: f3bf 8f4f dsb sy - 800eeb4: b662 cpsie i - 800eeb6: 603b str r3, [r7, #0] - 800eeb8: e7fe b.n 800eeb8 - 800eeba: 4b41 ldr r3, [pc, #260] ; (800efc0 ) - 800eebc: 681b ldr r3, [r3, #0] - 800eebe: 60fb str r3, [r7, #12] - 800eec0: 4b40 ldr r3, [pc, #256] ; (800efc4 ) - 800eec2: 681b ldr r3, [r3, #0] - 800eec4: 4a3e ldr r2, [pc, #248] ; (800efc0 ) - 800eec6: 6013 str r3, [r2, #0] - 800eec8: 4a3e ldr r2, [pc, #248] ; (800efc4 ) - 800eeca: 68fb ldr r3, [r7, #12] - 800eecc: 6013 str r3, [r2, #0] - 800eece: 4b3e ldr r3, [pc, #248] ; (800efc8 ) - 800eed0: 681b ldr r3, [r3, #0] - 800eed2: 3301 adds r3, #1 - 800eed4: 4a3c ldr r2, [pc, #240] ; (800efc8 ) - 800eed6: 6013 str r3, [r2, #0] - 800eed8: f000 facc bl 800f474 + 800ee9c: 4b49 ldr r3, [pc, #292] ; (800efc4 ) + 800ee9e: 681b ldr r3, [r3, #0] + 800eea0: 681b ldr r3, [r3, #0] + 800eea2: 2b00 cmp r3, #0 + 800eea4: d00b beq.n 800eebe + 800eea6: f04f 0350 mov.w r3, #80 ; 0x50 + 800eeaa: b672 cpsid i + 800eeac: f383 8811 msr BASEPRI, r3 + 800eeb0: f3bf 8f6f isb sy + 800eeb4: f3bf 8f4f dsb sy + 800eeb8: b662 cpsie i + 800eeba: 603b str r3, [r7, #0] + 800eebc: e7fe b.n 800eebc + 800eebe: 4b41 ldr r3, [pc, #260] ; (800efc4 ) + 800eec0: 681b ldr r3, [r3, #0] + 800eec2: 60fb str r3, [r7, #12] + 800eec4: 4b40 ldr r3, [pc, #256] ; (800efc8 ) + 800eec6: 681b ldr r3, [r3, #0] + 800eec8: 4a3e ldr r2, [pc, #248] ; (800efc4 ) + 800eeca: 6013 str r3, [r2, #0] + 800eecc: 4a3e ldr r2, [pc, #248] ; (800efc8 ) + 800eece: 68fb ldr r3, [r7, #12] + 800eed0: 6013 str r3, [r2, #0] + 800eed2: 4b3e ldr r3, [pc, #248] ; (800efcc ) + 800eed4: 681b ldr r3, [r3, #0] + 800eed6: 3301 adds r3, #1 + 800eed8: 4a3c ldr r2, [pc, #240] ; (800efcc ) + 800eeda: 6013 str r3, [r2, #0] + 800eedc: f000 facc bl 800f478 /* See if this tick has made a timeout expire. Tasks are stored in the queue in the order of their wake time - meaning once one task has been found whose block time has not expired there is no need to look any further down the list. */ if( xConstTickCount >= xNextTaskUnblockTime ) - 800eedc: 4b3b ldr r3, [pc, #236] ; (800efcc ) - 800eede: 681b ldr r3, [r3, #0] - 800eee0: 693a ldr r2, [r7, #16] - 800eee2: 429a cmp r2, r3 - 800eee4: d348 bcc.n 800ef78 + 800eee0: 4b3b ldr r3, [pc, #236] ; (800efd0 ) + 800eee2: 681b ldr r3, [r3, #0] + 800eee4: 693a ldr r2, [r7, #16] + 800eee6: 429a cmp r2, r3 + 800eee8: d348 bcc.n 800ef7c { for( ;; ) { if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) - 800eee6: 4b36 ldr r3, [pc, #216] ; (800efc0 ) - 800eee8: 681b ldr r3, [r3, #0] - 800eeea: 681b ldr r3, [r3, #0] - 800eeec: 2b00 cmp r3, #0 - 800eeee: d104 bne.n 800eefa + 800eeea: 4b36 ldr r3, [pc, #216] ; (800efc4 ) + 800eeec: 681b ldr r3, [r3, #0] + 800eeee: 681b ldr r3, [r3, #0] + 800eef0: 2b00 cmp r3, #0 + 800eef2: d104 bne.n 800eefe /* The delayed list is empty. Set xNextTaskUnblockTime to the maximum possible value so it is extremely unlikely that the if( xTickCount >= xNextTaskUnblockTime ) test will pass next time through. */ xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - 800eef0: 4b36 ldr r3, [pc, #216] ; (800efcc ) - 800eef2: f04f 32ff mov.w r2, #4294967295 - 800eef6: 601a str r2, [r3, #0] + 800eef4: 4b36 ldr r3, [pc, #216] ; (800efd0 ) + 800eef6: f04f 32ff mov.w r2, #4294967295 + 800eefa: 601a str r2, [r3, #0] break; - 800eef8: e03e b.n 800ef78 + 800eefc: e03e b.n 800ef7c { /* The delayed list is not empty, get the value of the item at the head of the delayed list. This is the time at which the task at the head of the delayed list must be removed from the Blocked state. */ pxTCB = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - 800eefa: 4b31 ldr r3, [pc, #196] ; (800efc0 ) - 800eefc: 681b ldr r3, [r3, #0] - 800eefe: 68db ldr r3, [r3, #12] - 800ef00: 68db ldr r3, [r3, #12] - 800ef02: 60bb str r3, [r7, #8] + 800eefe: 4b31 ldr r3, [pc, #196] ; (800efc4 ) + 800ef00: 681b ldr r3, [r3, #0] + 800ef02: 68db ldr r3, [r3, #12] + 800ef04: 68db ldr r3, [r3, #12] + 800ef06: 60bb str r3, [r7, #8] xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) ); - 800ef04: 68bb ldr r3, [r7, #8] - 800ef06: 685b ldr r3, [r3, #4] - 800ef08: 607b str r3, [r7, #4] + 800ef08: 68bb ldr r3, [r7, #8] + 800ef0a: 685b ldr r3, [r3, #4] + 800ef0c: 607b str r3, [r7, #4] if( xConstTickCount < xItemValue ) - 800ef0a: 693a ldr r2, [r7, #16] - 800ef0c: 687b ldr r3, [r7, #4] - 800ef0e: 429a cmp r2, r3 - 800ef10: d203 bcs.n 800ef1a + 800ef0e: 693a ldr r2, [r7, #16] + 800ef10: 687b ldr r3, [r7, #4] + 800ef12: 429a cmp r2, r3 + 800ef14: d203 bcs.n 800ef1e /* It is not time to unblock this item yet, but the item value is the time at which the task at the head of the blocked list must be removed from the Blocked state - so record the item value in xNextTaskUnblockTime. */ xNextTaskUnblockTime = xItemValue; - 800ef12: 4a2e ldr r2, [pc, #184] ; (800efcc ) - 800ef14: 687b ldr r3, [r7, #4] - 800ef16: 6013 str r3, [r2, #0] + 800ef16: 4a2e ldr r2, [pc, #184] ; (800efd0 ) + 800ef18: 687b ldr r3, [r7, #4] + 800ef1a: 6013 str r3, [r2, #0] break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */ - 800ef18: e02e b.n 800ef78 + 800ef1c: e02e b.n 800ef7c { mtCOVERAGE_TEST_MARKER(); } /* It is time to remove the item from the Blocked state. */ ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - 800ef1a: 68bb ldr r3, [r7, #8] - 800ef1c: 3304 adds r3, #4 - 800ef1e: 4618 mov r0, r3 - 800ef20: f7fe fc24 bl 800d76c + 800ef1e: 68bb ldr r3, [r7, #8] + 800ef20: 3304 adds r3, #4 + 800ef22: 4618 mov r0, r3 + 800ef24: f7fe fc24 bl 800d770 /* Is the task waiting on an event also? If so remove it from the event list. */ if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL ) - 800ef24: 68bb ldr r3, [r7, #8] - 800ef26: 6a9b ldr r3, [r3, #40] ; 0x28 - 800ef28: 2b00 cmp r3, #0 - 800ef2a: d004 beq.n 800ef36 + 800ef28: 68bb ldr r3, [r7, #8] + 800ef2a: 6a9b ldr r3, [r3, #40] ; 0x28 + 800ef2c: 2b00 cmp r3, #0 + 800ef2e: d004 beq.n 800ef3a { ( void ) uxListRemove( &( pxTCB->xEventListItem ) ); - 800ef2c: 68bb ldr r3, [r7, #8] - 800ef2e: 3318 adds r3, #24 - 800ef30: 4618 mov r0, r3 - 800ef32: f7fe fc1b bl 800d76c + 800ef30: 68bb ldr r3, [r7, #8] + 800ef32: 3318 adds r3, #24 + 800ef34: 4618 mov r0, r3 + 800ef36: f7fe fc1b bl 800d770 mtCOVERAGE_TEST_MARKER(); } /* Place the unblocked task into the appropriate ready list. */ prvAddTaskToReadyList( pxTCB ); - 800ef36: 68bb ldr r3, [r7, #8] - 800ef38: 6adb ldr r3, [r3, #44] ; 0x2c - 800ef3a: 2201 movs r2, #1 - 800ef3c: 409a lsls r2, r3 - 800ef3e: 4b24 ldr r3, [pc, #144] ; (800efd0 ) - 800ef40: 681b ldr r3, [r3, #0] - 800ef42: 4313 orrs r3, r2 - 800ef44: 4a22 ldr r2, [pc, #136] ; (800efd0 ) - 800ef46: 6013 str r3, [r2, #0] - 800ef48: 68bb ldr r3, [r7, #8] - 800ef4a: 6ada ldr r2, [r3, #44] ; 0x2c - 800ef4c: 4613 mov r3, r2 - 800ef4e: 009b lsls r3, r3, #2 - 800ef50: 4413 add r3, r2 + 800ef3a: 68bb ldr r3, [r7, #8] + 800ef3c: 6adb ldr r3, [r3, #44] ; 0x2c + 800ef3e: 2201 movs r2, #1 + 800ef40: 409a lsls r2, r3 + 800ef42: 4b24 ldr r3, [pc, #144] ; (800efd4 ) + 800ef44: 681b ldr r3, [r3, #0] + 800ef46: 4313 orrs r3, r2 + 800ef48: 4a22 ldr r2, [pc, #136] ; (800efd4 ) + 800ef4a: 6013 str r3, [r2, #0] + 800ef4c: 68bb ldr r3, [r7, #8] + 800ef4e: 6ada ldr r2, [r3, #44] ; 0x2c + 800ef50: 4613 mov r3, r2 800ef52: 009b lsls r3, r3, #2 - 800ef54: 4a1f ldr r2, [pc, #124] ; (800efd4 ) - 800ef56: 441a add r2, r3 - 800ef58: 68bb ldr r3, [r7, #8] - 800ef5a: 3304 adds r3, #4 - 800ef5c: 4619 mov r1, r3 - 800ef5e: 4610 mov r0, r2 - 800ef60: f7fe fba7 bl 800d6b2 + 800ef54: 4413 add r3, r2 + 800ef56: 009b lsls r3, r3, #2 + 800ef58: 4a1f ldr r2, [pc, #124] ; (800efd8 ) + 800ef5a: 441a add r2, r3 + 800ef5c: 68bb ldr r3, [r7, #8] + 800ef5e: 3304 adds r3, #4 + 800ef60: 4619 mov r1, r3 + 800ef62: 4610 mov r0, r2 + 800ef64: f7fe fba7 bl 800d6b6 { /* Preemption is on, but a context switch should only be performed if the unblocked task has a priority that is equal to or higher than the currently executing task. */ if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority ) - 800ef64: 68bb ldr r3, [r7, #8] - 800ef66: 6ada ldr r2, [r3, #44] ; 0x2c - 800ef68: 4b1b ldr r3, [pc, #108] ; (800efd8 ) - 800ef6a: 681b ldr r3, [r3, #0] - 800ef6c: 6adb ldr r3, [r3, #44] ; 0x2c - 800ef6e: 429a cmp r2, r3 - 800ef70: d3b9 bcc.n 800eee6 + 800ef68: 68bb ldr r3, [r7, #8] + 800ef6a: 6ada ldr r2, [r3, #44] ; 0x2c + 800ef6c: 4b1b ldr r3, [pc, #108] ; (800efdc ) + 800ef6e: 681b ldr r3, [r3, #0] + 800ef70: 6adb ldr r3, [r3, #44] ; 0x2c + 800ef72: 429a cmp r2, r3 + 800ef74: d3b9 bcc.n 800eeea { xSwitchRequired = pdTRUE; - 800ef72: 2301 movs r3, #1 - 800ef74: 617b str r3, [r7, #20] + 800ef76: 2301 movs r3, #1 + 800ef78: 617b str r3, [r7, #20] if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) - 800ef76: e7b6 b.n 800eee6 + 800ef7a: e7b6 b.n 800eeea /* Tasks of equal priority to the currently running task will share processing time (time slice) if preemption is on, and the application writer has not explicitly turned time slicing off. */ #if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) ) { if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 ) - 800ef78: 4b17 ldr r3, [pc, #92] ; (800efd8 ) - 800ef7a: 681b ldr r3, [r3, #0] - 800ef7c: 6ada ldr r2, [r3, #44] ; 0x2c - 800ef7e: 4915 ldr r1, [pc, #84] ; (800efd4 ) - 800ef80: 4613 mov r3, r2 - 800ef82: 009b lsls r3, r3, #2 - 800ef84: 4413 add r3, r2 + 800ef7c: 4b17 ldr r3, [pc, #92] ; (800efdc ) + 800ef7e: 681b ldr r3, [r3, #0] + 800ef80: 6ada ldr r2, [r3, #44] ; 0x2c + 800ef82: 4915 ldr r1, [pc, #84] ; (800efd8 ) + 800ef84: 4613 mov r3, r2 800ef86: 009b lsls r3, r3, #2 - 800ef88: 440b add r3, r1 - 800ef8a: 681b ldr r3, [r3, #0] - 800ef8c: 2b01 cmp r3, #1 - 800ef8e: d907 bls.n 800efa0 + 800ef88: 4413 add r3, r2 + 800ef8a: 009b lsls r3, r3, #2 + 800ef8c: 440b add r3, r1 + 800ef8e: 681b ldr r3, [r3, #0] + 800ef90: 2b01 cmp r3, #1 + 800ef92: d907 bls.n 800efa4 { xSwitchRequired = pdTRUE; - 800ef90: 2301 movs r3, #1 - 800ef92: 617b str r3, [r7, #20] - 800ef94: e004 b.n 800efa0 + 800ef94: 2301 movs r3, #1 + 800ef96: 617b str r3, [r7, #20] + 800ef98: e004 b.n 800efa4 } #endif /* configUSE_TICK_HOOK */ } else { ++uxPendedTicks; - 800ef96: 4b11 ldr r3, [pc, #68] ; (800efdc ) - 800ef98: 681b ldr r3, [r3, #0] - 800ef9a: 3301 adds r3, #1 - 800ef9c: 4a0f ldr r2, [pc, #60] ; (800efdc ) - 800ef9e: 6013 str r3, [r2, #0] + 800ef9a: 4b11 ldr r3, [pc, #68] ; (800efe0 ) + 800ef9c: 681b ldr r3, [r3, #0] + 800ef9e: 3301 adds r3, #1 + 800efa0: 4a0f ldr r2, [pc, #60] ; (800efe0 ) + 800efa2: 6013 str r3, [r2, #0] #endif } #if ( configUSE_PREEMPTION == 1 ) { if( xYieldPending != pdFALSE ) - 800efa0: 4b0f ldr r3, [pc, #60] ; (800efe0 ) - 800efa2: 681b ldr r3, [r3, #0] - 800efa4: 2b00 cmp r3, #0 - 800efa6: d001 beq.n 800efac + 800efa4: 4b0f ldr r3, [pc, #60] ; (800efe4 ) + 800efa6: 681b ldr r3, [r3, #0] + 800efa8: 2b00 cmp r3, #0 + 800efaa: d001 beq.n 800efb0 { xSwitchRequired = pdTRUE; - 800efa8: 2301 movs r3, #1 - 800efaa: 617b str r3, [r7, #20] + 800efac: 2301 movs r3, #1 + 800efae: 617b str r3, [r7, #20] mtCOVERAGE_TEST_MARKER(); } } #endif /* configUSE_PREEMPTION */ return xSwitchRequired; - 800efac: 697b ldr r3, [r7, #20] -} - 800efae: 4618 mov r0, r3 - 800efb0: 3718 adds r7, #24 - 800efb2: 46bd mov sp, r7 - 800efb4: bd80 pop {r7, pc} - 800efb6: bf00 nop - 800efb8: 200006a8 .word 0x200006a8 - 800efbc: 20000684 .word 0x20000684 - 800efc0: 20000638 .word 0x20000638 - 800efc4: 2000063c .word 0x2000063c - 800efc8: 20000698 .word 0x20000698 - 800efcc: 200006a0 .word 0x200006a0 - 800efd0: 20000688 .word 0x20000688 - 800efd4: 20000584 .word 0x20000584 - 800efd8: 20000580 .word 0x20000580 - 800efdc: 20000690 .word 0x20000690 - 800efe0: 20000694 .word 0x20000694 - -0800efe4 : + 800efb0: 697b ldr r3, [r7, #20] +} + 800efb2: 4618 mov r0, r3 + 800efb4: 3718 adds r7, #24 + 800efb6: 46bd mov sp, r7 + 800efb8: bd80 pop {r7, pc} + 800efba: bf00 nop + 800efbc: 200006a8 .word 0x200006a8 + 800efc0: 20000684 .word 0x20000684 + 800efc4: 20000638 .word 0x20000638 + 800efc8: 2000063c .word 0x2000063c + 800efcc: 20000698 .word 0x20000698 + 800efd0: 200006a0 .word 0x200006a0 + 800efd4: 20000688 .word 0x20000688 + 800efd8: 20000584 .word 0x20000584 + 800efdc: 20000580 .word 0x20000580 + 800efe0: 20000690 .word 0x20000690 + 800efe4: 20000694 .word 0x20000694 + +0800efe8 : #endif /* configUSE_APPLICATION_TASK_TAG */ /*-----------------------------------------------------------*/ void vTaskSwitchContext( void ) { - 800efe4: b580 push {r7, lr} - 800efe6: b088 sub sp, #32 - 800efe8: af00 add r7, sp, #0 + 800efe8: b580 push {r7, lr} + 800efea: b088 sub sp, #32 + 800efec: af00 add r7, sp, #0 if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE ) - 800efea: 4b3a ldr r3, [pc, #232] ; (800f0d4 ) - 800efec: 681b ldr r3, [r3, #0] - 800efee: 2b00 cmp r3, #0 - 800eff0: d003 beq.n 800effa + 800efee: 4b3a ldr r3, [pc, #232] ; (800f0d8 ) + 800eff0: 681b ldr r3, [r3, #0] + 800eff2: 2b00 cmp r3, #0 + 800eff4: d003 beq.n 800effe { /* The scheduler is currently suspended - do not allow a context switch. */ xYieldPending = pdTRUE; - 800eff2: 4b39 ldr r3, [pc, #228] ; (800f0d8 ) - 800eff4: 2201 movs r2, #1 - 800eff6: 601a str r2, [r3, #0] + 800eff6: 4b39 ldr r3, [pc, #228] ; (800f0dc ) + 800eff8: 2201 movs r2, #1 + 800effa: 601a str r2, [r3, #0] structure specific to this task. */ _impure_ptr = &( pxCurrentTCB->xNewLib_reent ); } #endif /* configUSE_NEWLIB_REENTRANT */ } } - 800eff8: e067 b.n 800f0ca + 800effc: e067 b.n 800f0ce xYieldPending = pdFALSE; - 800effa: 4b37 ldr r3, [pc, #220] ; (800f0d8 ) - 800effc: 2200 movs r2, #0 - 800effe: 601a str r2, [r3, #0] + 800effe: 4b37 ldr r3, [pc, #220] ; (800f0dc ) + 800f000: 2200 movs r2, #0 + 800f002: 601a str r2, [r3, #0] taskCHECK_FOR_STACK_OVERFLOW(); - 800f000: 4b36 ldr r3, [pc, #216] ; (800f0dc ) - 800f002: 681b ldr r3, [r3, #0] - 800f004: 6b1b ldr r3, [r3, #48] ; 0x30 - 800f006: 61fb str r3, [r7, #28] - 800f008: f04f 33a5 mov.w r3, #2779096485 ; 0xa5a5a5a5 - 800f00c: 61bb str r3, [r7, #24] - 800f00e: 69fb ldr r3, [r7, #28] - 800f010: 681b ldr r3, [r3, #0] - 800f012: 69ba ldr r2, [r7, #24] - 800f014: 429a cmp r2, r3 - 800f016: d111 bne.n 800f03c - 800f018: 69fb ldr r3, [r7, #28] - 800f01a: 3304 adds r3, #4 - 800f01c: 681b ldr r3, [r3, #0] - 800f01e: 69ba ldr r2, [r7, #24] - 800f020: 429a cmp r2, r3 - 800f022: d10b bne.n 800f03c - 800f024: 69fb ldr r3, [r7, #28] - 800f026: 3308 adds r3, #8 - 800f028: 681b ldr r3, [r3, #0] - 800f02a: 69ba ldr r2, [r7, #24] - 800f02c: 429a cmp r2, r3 - 800f02e: d105 bne.n 800f03c - 800f030: 69fb ldr r3, [r7, #28] - 800f032: 330c adds r3, #12 - 800f034: 681b ldr r3, [r3, #0] - 800f036: 69ba ldr r2, [r7, #24] - 800f038: 429a cmp r2, r3 - 800f03a: d008 beq.n 800f04e - 800f03c: 4b27 ldr r3, [pc, #156] ; (800f0dc ) - 800f03e: 681a ldr r2, [r3, #0] - 800f040: 4b26 ldr r3, [pc, #152] ; (800f0dc ) - 800f042: 681b ldr r3, [r3, #0] - 800f044: 3334 adds r3, #52 ; 0x34 - 800f046: 4619 mov r1, r3 - 800f048: 4610 mov r0, r2 - 800f04a: f7f1 fab8 bl 80005be + 800f004: 4b36 ldr r3, [pc, #216] ; (800f0e0 ) + 800f006: 681b ldr r3, [r3, #0] + 800f008: 6b1b ldr r3, [r3, #48] ; 0x30 + 800f00a: 61fb str r3, [r7, #28] + 800f00c: f04f 33a5 mov.w r3, #2779096485 ; 0xa5a5a5a5 + 800f010: 61bb str r3, [r7, #24] + 800f012: 69fb ldr r3, [r7, #28] + 800f014: 681b ldr r3, [r3, #0] + 800f016: 69ba ldr r2, [r7, #24] + 800f018: 429a cmp r2, r3 + 800f01a: d111 bne.n 800f040 + 800f01c: 69fb ldr r3, [r7, #28] + 800f01e: 3304 adds r3, #4 + 800f020: 681b ldr r3, [r3, #0] + 800f022: 69ba ldr r2, [r7, #24] + 800f024: 429a cmp r2, r3 + 800f026: d10b bne.n 800f040 + 800f028: 69fb ldr r3, [r7, #28] + 800f02a: 3308 adds r3, #8 + 800f02c: 681b ldr r3, [r3, #0] + 800f02e: 69ba ldr r2, [r7, #24] + 800f030: 429a cmp r2, r3 + 800f032: d105 bne.n 800f040 + 800f034: 69fb ldr r3, [r7, #28] + 800f036: 330c adds r3, #12 + 800f038: 681b ldr r3, [r3, #0] + 800f03a: 69ba ldr r2, [r7, #24] + 800f03c: 429a cmp r2, r3 + 800f03e: d008 beq.n 800f052 + 800f040: 4b27 ldr r3, [pc, #156] ; (800f0e0 ) + 800f042: 681a ldr r2, [r3, #0] + 800f044: 4b26 ldr r3, [pc, #152] ; (800f0e0 ) + 800f046: 681b ldr r3, [r3, #0] + 800f048: 3334 adds r3, #52 ; 0x34 + 800f04a: 4619 mov r1, r3 + 800f04c: 4610 mov r0, r2 + 800f04e: f7f1 fab6 bl 80005be taskSELECT_HIGHEST_PRIORITY_TASK(); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - 800f04e: 4b24 ldr r3, [pc, #144] ; (800f0e0 ) - 800f050: 681b ldr r3, [r3, #0] - 800f052: 60fb str r3, [r7, #12] + 800f052: 4b24 ldr r3, [pc, #144] ; (800f0e4 ) + 800f054: 681b ldr r3, [r3, #0] + 800f056: 60fb str r3, [r7, #12] __asm volatile ( "clz %0, %1" : "=r" ( ucReturn ) : "r" ( ulBitmap ) : "memory" ); - 800f054: 68fb ldr r3, [r7, #12] - 800f056: fab3 f383 clz r3, r3 - 800f05a: 72fb strb r3, [r7, #11] + 800f058: 68fb ldr r3, [r7, #12] + 800f05a: fab3 f383 clz r3, r3 + 800f05e: 72fb strb r3, [r7, #11] return ucReturn; - 800f05c: 7afb ldrb r3, [r7, #11] - 800f05e: f1c3 031f rsb r3, r3, #31 - 800f062: 617b str r3, [r7, #20] - 800f064: 491f ldr r1, [pc, #124] ; (800f0e4 ) - 800f066: 697a ldr r2, [r7, #20] - 800f068: 4613 mov r3, r2 - 800f06a: 009b lsls r3, r3, #2 - 800f06c: 4413 add r3, r2 + 800f060: 7afb ldrb r3, [r7, #11] + 800f062: f1c3 031f rsb r3, r3, #31 + 800f066: 617b str r3, [r7, #20] + 800f068: 491f ldr r1, [pc, #124] ; (800f0e8 ) + 800f06a: 697a ldr r2, [r7, #20] + 800f06c: 4613 mov r3, r2 800f06e: 009b lsls r3, r3, #2 - 800f070: 440b add r3, r1 - 800f072: 681b ldr r3, [r3, #0] - 800f074: 2b00 cmp r3, #0 - 800f076: d10b bne.n 800f090 + 800f070: 4413 add r3, r2 + 800f072: 009b lsls r3, r3, #2 + 800f074: 440b add r3, r1 + 800f076: 681b ldr r3, [r3, #0] + 800f078: 2b00 cmp r3, #0 + 800f07a: d10b bne.n 800f094 __asm volatile - 800f078: f04f 0350 mov.w r3, #80 ; 0x50 - 800f07c: b672 cpsid i - 800f07e: f383 8811 msr BASEPRI, r3 - 800f082: f3bf 8f6f isb sy - 800f086: f3bf 8f4f dsb sy - 800f08a: b662 cpsie i - 800f08c: 607b str r3, [r7, #4] - 800f08e: e7fe b.n 800f08e - 800f090: 697a ldr r2, [r7, #20] - 800f092: 4613 mov r3, r2 - 800f094: 009b lsls r3, r3, #2 - 800f096: 4413 add r3, r2 + 800f07c: f04f 0350 mov.w r3, #80 ; 0x50 + 800f080: b672 cpsid i + 800f082: f383 8811 msr BASEPRI, r3 + 800f086: f3bf 8f6f isb sy + 800f08a: f3bf 8f4f dsb sy + 800f08e: b662 cpsie i + 800f090: 607b str r3, [r7, #4] + 800f092: e7fe b.n 800f092 + 800f094: 697a ldr r2, [r7, #20] + 800f096: 4613 mov r3, r2 800f098: 009b lsls r3, r3, #2 - 800f09a: 4a12 ldr r2, [pc, #72] ; (800f0e4 ) - 800f09c: 4413 add r3, r2 - 800f09e: 613b str r3, [r7, #16] - 800f0a0: 693b ldr r3, [r7, #16] - 800f0a2: 685b ldr r3, [r3, #4] - 800f0a4: 685a ldr r2, [r3, #4] - 800f0a6: 693b ldr r3, [r7, #16] - 800f0a8: 605a str r2, [r3, #4] + 800f09a: 4413 add r3, r2 + 800f09c: 009b lsls r3, r3, #2 + 800f09e: 4a12 ldr r2, [pc, #72] ; (800f0e8 ) + 800f0a0: 4413 add r3, r2 + 800f0a2: 613b str r3, [r7, #16] + 800f0a4: 693b ldr r3, [r7, #16] + 800f0a6: 685b ldr r3, [r3, #4] + 800f0a8: 685a ldr r2, [r3, #4] 800f0aa: 693b ldr r3, [r7, #16] - 800f0ac: 685a ldr r2, [r3, #4] + 800f0ac: 605a str r2, [r3, #4] 800f0ae: 693b ldr r3, [r7, #16] - 800f0b0: 3308 adds r3, #8 - 800f0b2: 429a cmp r2, r3 - 800f0b4: d104 bne.n 800f0c0 - 800f0b6: 693b ldr r3, [r7, #16] - 800f0b8: 685b ldr r3, [r3, #4] - 800f0ba: 685a ldr r2, [r3, #4] - 800f0bc: 693b ldr r3, [r7, #16] - 800f0be: 605a str r2, [r3, #4] + 800f0b0: 685a ldr r2, [r3, #4] + 800f0b2: 693b ldr r3, [r7, #16] + 800f0b4: 3308 adds r3, #8 + 800f0b6: 429a cmp r2, r3 + 800f0b8: d104 bne.n 800f0c4 + 800f0ba: 693b ldr r3, [r7, #16] + 800f0bc: 685b ldr r3, [r3, #4] + 800f0be: 685a ldr r2, [r3, #4] 800f0c0: 693b ldr r3, [r7, #16] - 800f0c2: 685b ldr r3, [r3, #4] - 800f0c4: 68db ldr r3, [r3, #12] - 800f0c6: 4a05 ldr r2, [pc, #20] ; (800f0dc ) - 800f0c8: 6013 str r3, [r2, #0] -} - 800f0ca: bf00 nop - 800f0cc: 3720 adds r7, #32 - 800f0ce: 46bd mov sp, r7 - 800f0d0: bd80 pop {r7, pc} - 800f0d2: bf00 nop - 800f0d4: 200006a8 .word 0x200006a8 - 800f0d8: 20000694 .word 0x20000694 - 800f0dc: 20000580 .word 0x20000580 - 800f0e0: 20000688 .word 0x20000688 - 800f0e4: 20000584 .word 0x20000584 - -0800f0e8 : + 800f0c2: 605a str r2, [r3, #4] + 800f0c4: 693b ldr r3, [r7, #16] + 800f0c6: 685b ldr r3, [r3, #4] + 800f0c8: 68db ldr r3, [r3, #12] + 800f0ca: 4a05 ldr r2, [pc, #20] ; (800f0e0 ) + 800f0cc: 6013 str r3, [r2, #0] +} + 800f0ce: bf00 nop + 800f0d0: 3720 adds r7, #32 + 800f0d2: 46bd mov sp, r7 + 800f0d4: bd80 pop {r7, pc} + 800f0d6: bf00 nop + 800f0d8: 200006a8 .word 0x200006a8 + 800f0dc: 20000694 .word 0x20000694 + 800f0e0: 20000580 .word 0x20000580 + 800f0e4: 20000688 .word 0x20000688 + 800f0e8: 20000584 .word 0x20000584 + +0800f0ec : /*-----------------------------------------------------------*/ void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait ) { - 800f0e8: b580 push {r7, lr} - 800f0ea: b084 sub sp, #16 - 800f0ec: af00 add r7, sp, #0 - 800f0ee: 6078 str r0, [r7, #4] - 800f0f0: 6039 str r1, [r7, #0] + 800f0ec: b580 push {r7, lr} + 800f0ee: b084 sub sp, #16 + 800f0f0: af00 add r7, sp, #0 + 800f0f2: 6078 str r0, [r7, #4] + 800f0f4: 6039 str r1, [r7, #0] configASSERT( pxEventList ); - 800f0f2: 687b ldr r3, [r7, #4] - 800f0f4: 2b00 cmp r3, #0 - 800f0f6: d10b bne.n 800f110 - 800f0f8: f04f 0350 mov.w r3, #80 ; 0x50 - 800f0fc: b672 cpsid i - 800f0fe: f383 8811 msr BASEPRI, r3 - 800f102: f3bf 8f6f isb sy - 800f106: f3bf 8f4f dsb sy - 800f10a: b662 cpsie i - 800f10c: 60fb str r3, [r7, #12] - 800f10e: e7fe b.n 800f10e + 800f0f6: 687b ldr r3, [r7, #4] + 800f0f8: 2b00 cmp r3, #0 + 800f0fa: d10b bne.n 800f114 + 800f0fc: f04f 0350 mov.w r3, #80 ; 0x50 + 800f100: b672 cpsid i + 800f102: f383 8811 msr BASEPRI, r3 + 800f106: f3bf 8f6f isb sy + 800f10a: f3bf 8f4f dsb sy + 800f10e: b662 cpsie i + 800f110: 60fb str r3, [r7, #12] + 800f112: e7fe b.n 800f112 /* Place the event list item of the TCB in the appropriate event list. This is placed in the list in priority order so the highest priority task is the first to be woken by the event. The queue that contains the event list is locked, preventing simultaneous access from interrupts. */ vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) ); - 800f110: 4b07 ldr r3, [pc, #28] ; (800f130 ) - 800f112: 681b ldr r3, [r3, #0] - 800f114: 3318 adds r3, #24 - 800f116: 4619 mov r1, r3 - 800f118: 6878 ldr r0, [r7, #4] - 800f11a: f7fe faee bl 800d6fa + 800f114: 4b07 ldr r3, [pc, #28] ; (800f134 ) + 800f116: 681b ldr r3, [r3, #0] + 800f118: 3318 adds r3, #24 + 800f11a: 4619 mov r1, r3 + 800f11c: 6878 ldr r0, [r7, #4] + 800f11e: f7fe faee bl 800d6fe prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE ); - 800f11e: 2101 movs r1, #1 - 800f120: 6838 ldr r0, [r7, #0] - 800f122: f000 fb9d bl 800f860 + 800f122: 2101 movs r1, #1 + 800f124: 6838 ldr r0, [r7, #0] + 800f126: f000 fb9d bl 800f864 } - 800f126: bf00 nop - 800f128: 3710 adds r7, #16 - 800f12a: 46bd mov sp, r7 - 800f12c: bd80 pop {r7, pc} - 800f12e: bf00 nop - 800f130: 20000580 .word 0x20000580 + 800f12a: bf00 nop + 800f12c: 3710 adds r7, #16 + 800f12e: 46bd mov sp, r7 + 800f130: bd80 pop {r7, pc} + 800f132: bf00 nop + 800f134: 20000580 .word 0x20000580 -0800f134 : +0800f138 : #endif /* configUSE_TIMERS */ /*-----------------------------------------------------------*/ BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList ) { - 800f134: b580 push {r7, lr} - 800f136: b086 sub sp, #24 - 800f138: af00 add r7, sp, #0 - 800f13a: 6078 str r0, [r7, #4] + 800f138: b580 push {r7, lr} + 800f13a: b086 sub sp, #24 + 800f13c: af00 add r7, sp, #0 + 800f13e: 6078 str r0, [r7, #4] get called - the lock count on the queue will get modified instead. This means exclusive access to the event list is guaranteed here. This function assumes that a check has already been made to ensure that pxEventList is not empty. */ pxUnblockedTCB = listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - 800f13c: 687b ldr r3, [r7, #4] - 800f13e: 68db ldr r3, [r3, #12] - 800f140: 68db ldr r3, [r3, #12] - 800f142: 613b str r3, [r7, #16] + 800f140: 687b ldr r3, [r7, #4] + 800f142: 68db ldr r3, [r3, #12] + 800f144: 68db ldr r3, [r3, #12] + 800f146: 613b str r3, [r7, #16] configASSERT( pxUnblockedTCB ); - 800f144: 693b ldr r3, [r7, #16] - 800f146: 2b00 cmp r3, #0 - 800f148: d10b bne.n 800f162 - 800f14a: f04f 0350 mov.w r3, #80 ; 0x50 - 800f14e: b672 cpsid i - 800f150: f383 8811 msr BASEPRI, r3 - 800f154: f3bf 8f6f isb sy - 800f158: f3bf 8f4f dsb sy - 800f15c: b662 cpsie i - 800f15e: 60fb str r3, [r7, #12] - 800f160: e7fe b.n 800f160 + 800f148: 693b ldr r3, [r7, #16] + 800f14a: 2b00 cmp r3, #0 + 800f14c: d10b bne.n 800f166 + 800f14e: f04f 0350 mov.w r3, #80 ; 0x50 + 800f152: b672 cpsid i + 800f154: f383 8811 msr BASEPRI, r3 + 800f158: f3bf 8f6f isb sy + 800f15c: f3bf 8f4f dsb sy + 800f160: b662 cpsie i + 800f162: 60fb str r3, [r7, #12] + 800f164: e7fe b.n 800f164 ( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) ); - 800f162: 693b ldr r3, [r7, #16] - 800f164: 3318 adds r3, #24 - 800f166: 4618 mov r0, r3 - 800f168: f7fe fb00 bl 800d76c + 800f166: 693b ldr r3, [r7, #16] + 800f168: 3318 adds r3, #24 + 800f16a: 4618 mov r0, r3 + 800f16c: f7fe fb00 bl 800d770 if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - 800f16c: 4b1d ldr r3, [pc, #116] ; (800f1e4 ) - 800f16e: 681b ldr r3, [r3, #0] - 800f170: 2b00 cmp r3, #0 - 800f172: d11c bne.n 800f1ae + 800f170: 4b1d ldr r3, [pc, #116] ; (800f1e8 ) + 800f172: 681b ldr r3, [r3, #0] + 800f174: 2b00 cmp r3, #0 + 800f176: d11c bne.n 800f1b2 { ( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) ); - 800f174: 693b ldr r3, [r7, #16] - 800f176: 3304 adds r3, #4 - 800f178: 4618 mov r0, r3 - 800f17a: f7fe faf7 bl 800d76c + 800f178: 693b ldr r3, [r7, #16] + 800f17a: 3304 adds r3, #4 + 800f17c: 4618 mov r0, r3 + 800f17e: f7fe faf7 bl 800d770 prvAddTaskToReadyList( pxUnblockedTCB ); - 800f17e: 693b ldr r3, [r7, #16] - 800f180: 6adb ldr r3, [r3, #44] ; 0x2c - 800f182: 2201 movs r2, #1 - 800f184: 409a lsls r2, r3 - 800f186: 4b18 ldr r3, [pc, #96] ; (800f1e8 ) - 800f188: 681b ldr r3, [r3, #0] - 800f18a: 4313 orrs r3, r2 - 800f18c: 4a16 ldr r2, [pc, #88] ; (800f1e8 ) - 800f18e: 6013 str r3, [r2, #0] - 800f190: 693b ldr r3, [r7, #16] - 800f192: 6ada ldr r2, [r3, #44] ; 0x2c - 800f194: 4613 mov r3, r2 - 800f196: 009b lsls r3, r3, #2 - 800f198: 4413 add r3, r2 + 800f182: 693b ldr r3, [r7, #16] + 800f184: 6adb ldr r3, [r3, #44] ; 0x2c + 800f186: 2201 movs r2, #1 + 800f188: 409a lsls r2, r3 + 800f18a: 4b18 ldr r3, [pc, #96] ; (800f1ec ) + 800f18c: 681b ldr r3, [r3, #0] + 800f18e: 4313 orrs r3, r2 + 800f190: 4a16 ldr r2, [pc, #88] ; (800f1ec ) + 800f192: 6013 str r3, [r2, #0] + 800f194: 693b ldr r3, [r7, #16] + 800f196: 6ada ldr r2, [r3, #44] ; 0x2c + 800f198: 4613 mov r3, r2 800f19a: 009b lsls r3, r3, #2 - 800f19c: 4a13 ldr r2, [pc, #76] ; (800f1ec ) - 800f19e: 441a add r2, r3 - 800f1a0: 693b ldr r3, [r7, #16] - 800f1a2: 3304 adds r3, #4 - 800f1a4: 4619 mov r1, r3 - 800f1a6: 4610 mov r0, r2 - 800f1a8: f7fe fa83 bl 800d6b2 - 800f1ac: e005 b.n 800f1ba + 800f19c: 4413 add r3, r2 + 800f19e: 009b lsls r3, r3, #2 + 800f1a0: 4a13 ldr r2, [pc, #76] ; (800f1f0 ) + 800f1a2: 441a add r2, r3 + 800f1a4: 693b ldr r3, [r7, #16] + 800f1a6: 3304 adds r3, #4 + 800f1a8: 4619 mov r1, r3 + 800f1aa: 4610 mov r0, r2 + 800f1ac: f7fe fa83 bl 800d6b6 + 800f1b0: e005 b.n 800f1be } else { /* The delayed and ready lists cannot be accessed, so hold this task pending until the scheduler is resumed. */ vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) ); - 800f1ae: 693b ldr r3, [r7, #16] - 800f1b0: 3318 adds r3, #24 - 800f1b2: 4619 mov r1, r3 - 800f1b4: 480e ldr r0, [pc, #56] ; (800f1f0 ) - 800f1b6: f7fe fa7c bl 800d6b2 + 800f1b2: 693b ldr r3, [r7, #16] + 800f1b4: 3318 adds r3, #24 + 800f1b6: 4619 mov r1, r3 + 800f1b8: 480e ldr r0, [pc, #56] ; (800f1f4 ) + 800f1ba: f7fe fa7c bl 800d6b6 } if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority ) - 800f1ba: 693b ldr r3, [r7, #16] - 800f1bc: 6ada ldr r2, [r3, #44] ; 0x2c - 800f1be: 4b0d ldr r3, [pc, #52] ; (800f1f4 ) - 800f1c0: 681b ldr r3, [r3, #0] - 800f1c2: 6adb ldr r3, [r3, #44] ; 0x2c - 800f1c4: 429a cmp r2, r3 - 800f1c6: d905 bls.n 800f1d4 + 800f1be: 693b ldr r3, [r7, #16] + 800f1c0: 6ada ldr r2, [r3, #44] ; 0x2c + 800f1c2: 4b0d ldr r3, [pc, #52] ; (800f1f8 ) + 800f1c4: 681b ldr r3, [r3, #0] + 800f1c6: 6adb ldr r3, [r3, #44] ; 0x2c + 800f1c8: 429a cmp r2, r3 + 800f1ca: d905 bls.n 800f1d8 { /* Return true if the task removed from the event list has a higher priority than the calling task. This allows the calling task to know if it should force a context switch now. */ xReturn = pdTRUE; - 800f1c8: 2301 movs r3, #1 - 800f1ca: 617b str r3, [r7, #20] + 800f1cc: 2301 movs r3, #1 + 800f1ce: 617b str r3, [r7, #20] /* Mark that a yield is pending in case the user is not using the "xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */ xYieldPending = pdTRUE; - 800f1cc: 4b0a ldr r3, [pc, #40] ; (800f1f8 ) - 800f1ce: 2201 movs r2, #1 - 800f1d0: 601a str r2, [r3, #0] - 800f1d2: e001 b.n 800f1d8 + 800f1d0: 4b0a ldr r3, [pc, #40] ; (800f1fc ) + 800f1d2: 2201 movs r2, #1 + 800f1d4: 601a str r2, [r3, #0] + 800f1d6: e001 b.n 800f1dc } else { xReturn = pdFALSE; - 800f1d4: 2300 movs r3, #0 - 800f1d6: 617b str r3, [r7, #20] + 800f1d8: 2300 movs r3, #0 + 800f1da: 617b str r3, [r7, #20] } return xReturn; - 800f1d8: 697b ldr r3, [r7, #20] -} - 800f1da: 4618 mov r0, r3 - 800f1dc: 3718 adds r7, #24 - 800f1de: 46bd mov sp, r7 - 800f1e0: bd80 pop {r7, pc} - 800f1e2: bf00 nop - 800f1e4: 200006a8 .word 0x200006a8 - 800f1e8: 20000688 .word 0x20000688 - 800f1ec: 20000584 .word 0x20000584 - 800f1f0: 20000640 .word 0x20000640 - 800f1f4: 20000580 .word 0x20000580 - 800f1f8: 20000694 .word 0x20000694 - -0800f1fc : + 800f1dc: 697b ldr r3, [r7, #20] +} + 800f1de: 4618 mov r0, r3 + 800f1e0: 3718 adds r7, #24 + 800f1e2: 46bd mov sp, r7 + 800f1e4: bd80 pop {r7, pc} + 800f1e6: bf00 nop + 800f1e8: 200006a8 .word 0x200006a8 + 800f1ec: 20000688 .word 0x20000688 + 800f1f0: 20000584 .word 0x20000584 + 800f1f4: 20000640 .word 0x20000640 + 800f1f8: 20000580 .word 0x20000580 + 800f1fc: 20000694 .word 0x20000694 + +0800f200 : taskEXIT_CRITICAL(); } /*-----------------------------------------------------------*/ void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) { - 800f1fc: b480 push {r7} - 800f1fe: b083 sub sp, #12 - 800f200: af00 add r7, sp, #0 - 800f202: 6078 str r0, [r7, #4] + 800f200: b480 push {r7} + 800f202: b083 sub sp, #12 + 800f204: af00 add r7, sp, #0 + 800f206: 6078 str r0, [r7, #4] /* For internal use only as it does not use a critical section. */ pxTimeOut->xOverflowCount = xNumOfOverflows; - 800f204: 4b06 ldr r3, [pc, #24] ; (800f220 ) - 800f206: 681a ldr r2, [r3, #0] - 800f208: 687b ldr r3, [r7, #4] - 800f20a: 601a str r2, [r3, #0] + 800f208: 4b06 ldr r3, [pc, #24] ; (800f224 ) + 800f20a: 681a ldr r2, [r3, #0] + 800f20c: 687b ldr r3, [r7, #4] + 800f20e: 601a str r2, [r3, #0] pxTimeOut->xTimeOnEntering = xTickCount; - 800f20c: 4b05 ldr r3, [pc, #20] ; (800f224 ) - 800f20e: 681a ldr r2, [r3, #0] - 800f210: 687b ldr r3, [r7, #4] - 800f212: 605a str r2, [r3, #4] -} - 800f214: bf00 nop - 800f216: 370c adds r7, #12 - 800f218: 46bd mov sp, r7 - 800f21a: f85d 7b04 ldr.w r7, [sp], #4 - 800f21e: 4770 bx lr - 800f220: 20000698 .word 0x20000698 - 800f224: 20000684 .word 0x20000684 - -0800f228 : + 800f210: 4b05 ldr r3, [pc, #20] ; (800f228 ) + 800f212: 681a ldr r2, [r3, #0] + 800f214: 687b ldr r3, [r7, #4] + 800f216: 605a str r2, [r3, #4] +} + 800f218: bf00 nop + 800f21a: 370c adds r7, #12 + 800f21c: 46bd mov sp, r7 + 800f21e: f85d 7b04 ldr.w r7, [sp], #4 + 800f222: 4770 bx lr + 800f224: 20000698 .word 0x20000698 + 800f228: 20000684 .word 0x20000684 + +0800f22c : /*-----------------------------------------------------------*/ BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait ) { - 800f228: b580 push {r7, lr} - 800f22a: b088 sub sp, #32 - 800f22c: af00 add r7, sp, #0 - 800f22e: 6078 str r0, [r7, #4] - 800f230: 6039 str r1, [r7, #0] + 800f22c: b580 push {r7, lr} + 800f22e: b088 sub sp, #32 + 800f230: af00 add r7, sp, #0 + 800f232: 6078 str r0, [r7, #4] + 800f234: 6039 str r1, [r7, #0] BaseType_t xReturn; configASSERT( pxTimeOut ); - 800f232: 687b ldr r3, [r7, #4] - 800f234: 2b00 cmp r3, #0 - 800f236: d10b bne.n 800f250 - 800f238: f04f 0350 mov.w r3, #80 ; 0x50 - 800f23c: b672 cpsid i - 800f23e: f383 8811 msr BASEPRI, r3 - 800f242: f3bf 8f6f isb sy - 800f246: f3bf 8f4f dsb sy - 800f24a: b662 cpsie i - 800f24c: 613b str r3, [r7, #16] - 800f24e: e7fe b.n 800f24e + 800f236: 687b ldr r3, [r7, #4] + 800f238: 2b00 cmp r3, #0 + 800f23a: d10b bne.n 800f254 + 800f23c: f04f 0350 mov.w r3, #80 ; 0x50 + 800f240: b672 cpsid i + 800f242: f383 8811 msr BASEPRI, r3 + 800f246: f3bf 8f6f isb sy + 800f24a: f3bf 8f4f dsb sy + 800f24e: b662 cpsie i + 800f250: 613b str r3, [r7, #16] + 800f252: e7fe b.n 800f252 configASSERT( pxTicksToWait ); - 800f250: 683b ldr r3, [r7, #0] - 800f252: 2b00 cmp r3, #0 - 800f254: d10b bne.n 800f26e - 800f256: f04f 0350 mov.w r3, #80 ; 0x50 - 800f25a: b672 cpsid i - 800f25c: f383 8811 msr BASEPRI, r3 - 800f260: f3bf 8f6f isb sy - 800f264: f3bf 8f4f dsb sy - 800f268: b662 cpsie i - 800f26a: 60fb str r3, [r7, #12] - 800f26c: e7fe b.n 800f26c + 800f254: 683b ldr r3, [r7, #0] + 800f256: 2b00 cmp r3, #0 + 800f258: d10b bne.n 800f272 + 800f25a: f04f 0350 mov.w r3, #80 ; 0x50 + 800f25e: b672 cpsid i + 800f260: f383 8811 msr BASEPRI, r3 + 800f264: f3bf 8f6f isb sy + 800f268: f3bf 8f4f dsb sy + 800f26c: b662 cpsie i + 800f26e: 60fb str r3, [r7, #12] + 800f270: e7fe b.n 800f270 taskENTER_CRITICAL(); - 800f26e: f000 fc63 bl 800fb38 + 800f272: f000 fc69 bl 800fb48 { /* Minor optimisation. The tick count cannot change in this block. */ const TickType_t xConstTickCount = xTickCount; - 800f272: 4b1d ldr r3, [pc, #116] ; (800f2e8 ) - 800f274: 681b ldr r3, [r3, #0] - 800f276: 61bb str r3, [r7, #24] + 800f276: 4b1d ldr r3, [pc, #116] ; (800f2ec ) + 800f278: 681b ldr r3, [r3, #0] + 800f27a: 61bb str r3, [r7, #24] const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering; - 800f278: 687b ldr r3, [r7, #4] - 800f27a: 685b ldr r3, [r3, #4] - 800f27c: 69ba ldr r2, [r7, #24] - 800f27e: 1ad3 subs r3, r2, r3 - 800f280: 617b str r3, [r7, #20] + 800f27c: 687b ldr r3, [r7, #4] + 800f27e: 685b ldr r3, [r3, #4] + 800f280: 69ba ldr r2, [r7, #24] + 800f282: 1ad3 subs r3, r2, r3 + 800f284: 617b str r3, [r7, #20] } else #endif #if ( INCLUDE_vTaskSuspend == 1 ) if( *pxTicksToWait == portMAX_DELAY ) - 800f282: 683b ldr r3, [r7, #0] - 800f284: 681b ldr r3, [r3, #0] - 800f286: f1b3 3fff cmp.w r3, #4294967295 - 800f28a: d102 bne.n 800f292 + 800f286: 683b ldr r3, [r7, #0] + 800f288: 681b ldr r3, [r3, #0] + 800f28a: f1b3 3fff cmp.w r3, #4294967295 + 800f28e: d102 bne.n 800f296 { /* If INCLUDE_vTaskSuspend is set to 1 and the block time specified is the maximum block time then the task should block indefinitely, and therefore never time out. */ xReturn = pdFALSE; - 800f28c: 2300 movs r3, #0 - 800f28e: 61fb str r3, [r7, #28] - 800f290: e023 b.n 800f2da + 800f290: 2300 movs r3, #0 + 800f292: 61fb str r3, [r7, #28] + 800f294: e023 b.n 800f2de } else #endif if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */ - 800f292: 687b ldr r3, [r7, #4] - 800f294: 681a ldr r2, [r3, #0] - 800f296: 4b15 ldr r3, [pc, #84] ; (800f2ec ) - 800f298: 681b ldr r3, [r3, #0] - 800f29a: 429a cmp r2, r3 - 800f29c: d007 beq.n 800f2ae - 800f29e: 687b ldr r3, [r7, #4] - 800f2a0: 685b ldr r3, [r3, #4] - 800f2a2: 69ba ldr r2, [r7, #24] - 800f2a4: 429a cmp r2, r3 - 800f2a6: d302 bcc.n 800f2ae + 800f296: 687b ldr r3, [r7, #4] + 800f298: 681a ldr r2, [r3, #0] + 800f29a: 4b15 ldr r3, [pc, #84] ; (800f2f0 ) + 800f29c: 681b ldr r3, [r3, #0] + 800f29e: 429a cmp r2, r3 + 800f2a0: d007 beq.n 800f2b2 + 800f2a2: 687b ldr r3, [r7, #4] + 800f2a4: 685b ldr r3, [r3, #4] + 800f2a6: 69ba ldr r2, [r7, #24] + 800f2a8: 429a cmp r2, r3 + 800f2aa: d302 bcc.n 800f2b2 /* The tick count is greater than the time at which vTaskSetTimeout() was called, but has also overflowed since vTaskSetTimeOut() was called. It must have wrapped all the way around and gone past again. This passed since vTaskSetTimeout() was called. */ xReturn = pdTRUE; - 800f2a8: 2301 movs r3, #1 - 800f2aa: 61fb str r3, [r7, #28] - 800f2ac: e015 b.n 800f2da + 800f2ac: 2301 movs r3, #1 + 800f2ae: 61fb str r3, [r7, #28] + 800f2b0: e015 b.n 800f2de } else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */ - 800f2ae: 683b ldr r3, [r7, #0] - 800f2b0: 681b ldr r3, [r3, #0] - 800f2b2: 697a ldr r2, [r7, #20] - 800f2b4: 429a cmp r2, r3 - 800f2b6: d20b bcs.n 800f2d0 + 800f2b2: 683b ldr r3, [r7, #0] + 800f2b4: 681b ldr r3, [r3, #0] + 800f2b6: 697a ldr r2, [r7, #20] + 800f2b8: 429a cmp r2, r3 + 800f2ba: d20b bcs.n 800f2d4 { /* Not a genuine timeout. Adjust parameters for time remaining. */ *pxTicksToWait -= xElapsedTime; - 800f2b8: 683b ldr r3, [r7, #0] - 800f2ba: 681a ldr r2, [r3, #0] - 800f2bc: 697b ldr r3, [r7, #20] - 800f2be: 1ad2 subs r2, r2, r3 - 800f2c0: 683b ldr r3, [r7, #0] - 800f2c2: 601a str r2, [r3, #0] + 800f2bc: 683b ldr r3, [r7, #0] + 800f2be: 681a ldr r2, [r3, #0] + 800f2c0: 697b ldr r3, [r7, #20] + 800f2c2: 1ad2 subs r2, r2, r3 + 800f2c4: 683b ldr r3, [r7, #0] + 800f2c6: 601a str r2, [r3, #0] vTaskInternalSetTimeOutState( pxTimeOut ); - 800f2c4: 6878 ldr r0, [r7, #4] - 800f2c6: f7ff ff99 bl 800f1fc + 800f2c8: 6878 ldr r0, [r7, #4] + 800f2ca: f7ff ff99 bl 800f200 xReturn = pdFALSE; - 800f2ca: 2300 movs r3, #0 - 800f2cc: 61fb str r3, [r7, #28] - 800f2ce: e004 b.n 800f2da + 800f2ce: 2300 movs r3, #0 + 800f2d0: 61fb str r3, [r7, #28] + 800f2d2: e004 b.n 800f2de } else { *pxTicksToWait = 0; - 800f2d0: 683b ldr r3, [r7, #0] - 800f2d2: 2200 movs r2, #0 - 800f2d4: 601a str r2, [r3, #0] + 800f2d4: 683b ldr r3, [r7, #0] + 800f2d6: 2200 movs r2, #0 + 800f2d8: 601a str r2, [r3, #0] xReturn = pdTRUE; - 800f2d6: 2301 movs r3, #1 - 800f2d8: 61fb str r3, [r7, #28] + 800f2da: 2301 movs r3, #1 + 800f2dc: 61fb str r3, [r7, #28] } } taskEXIT_CRITICAL(); - 800f2da: f000 fc5f bl 800fb9c + 800f2de: f000 fc65 bl 800fbac return xReturn; - 800f2de: 69fb ldr r3, [r7, #28] + 800f2e2: 69fb ldr r3, [r7, #28] } - 800f2e0: 4618 mov r0, r3 - 800f2e2: 3720 adds r7, #32 - 800f2e4: 46bd mov sp, r7 - 800f2e6: bd80 pop {r7, pc} - 800f2e8: 20000684 .word 0x20000684 - 800f2ec: 20000698 .word 0x20000698 + 800f2e4: 4618 mov r0, r3 + 800f2e6: 3720 adds r7, #32 + 800f2e8: 46bd mov sp, r7 + 800f2ea: bd80 pop {r7, pc} + 800f2ec: 20000684 .word 0x20000684 + 800f2f0: 20000698 .word 0x20000698 -0800f2f0 : +0800f2f4 : /*-----------------------------------------------------------*/ void vTaskMissedYield( void ) { - 800f2f0: b480 push {r7} - 800f2f2: af00 add r7, sp, #0 + 800f2f4: b480 push {r7} + 800f2f6: af00 add r7, sp, #0 xYieldPending = pdTRUE; - 800f2f4: 4b03 ldr r3, [pc, #12] ; (800f304 ) - 800f2f6: 2201 movs r2, #1 - 800f2f8: 601a str r2, [r3, #0] + 800f2f8: 4b03 ldr r3, [pc, #12] ; (800f308 ) + 800f2fa: 2201 movs r2, #1 + 800f2fc: 601a str r2, [r3, #0] } - 800f2fa: bf00 nop - 800f2fc: 46bd mov sp, r7 - 800f2fe: f85d 7b04 ldr.w r7, [sp], #4 - 800f302: 4770 bx lr - 800f304: 20000694 .word 0x20000694 + 800f2fe: bf00 nop + 800f300: 46bd mov sp, r7 + 800f302: f85d 7b04 ldr.w r7, [sp], #4 + 800f306: 4770 bx lr + 800f308: 20000694 .word 0x20000694 -0800f308 : +0800f30c : * * void prvIdleTask( void *pvParameters ); * */ static portTASK_FUNCTION( prvIdleTask, pvParameters ) { - 800f308: b580 push {r7, lr} - 800f30a: b082 sub sp, #8 - 800f30c: af00 add r7, sp, #0 - 800f30e: 6078 str r0, [r7, #4] + 800f30c: b580 push {r7, lr} + 800f30e: b082 sub sp, #8 + 800f310: af00 add r7, sp, #0 + 800f312: 6078 str r0, [r7, #4] for( ;; ) { /* See if any tasks have deleted themselves - if so then the idle task is responsible for freeing the deleted task's TCB and stack. */ prvCheckTasksWaitingTermination(); - 800f310: f000 f854 bl 800f3bc + 800f314: f000 f854 bl 800f3c0 A critical region is not required here as we are just reading from the list, and an occasional incorrect value will not matter. If the ready list at the idle priority contains more than one task then a task other than the idle task is ready to execute. */ if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 ) - 800f314: 4b07 ldr r3, [pc, #28] ; (800f334 ) - 800f316: 681b ldr r3, [r3, #0] - 800f318: 2b01 cmp r3, #1 - 800f31a: d907 bls.n 800f32c + 800f318: 4b07 ldr r3, [pc, #28] ; (800f338 ) + 800f31a: 681b ldr r3, [r3, #0] + 800f31c: 2b01 cmp r3, #1 + 800f31e: d907 bls.n 800f330 { taskYIELD(); - 800f31c: 4b06 ldr r3, [pc, #24] ; (800f338 ) - 800f31e: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800f322: 601a str r2, [r3, #0] - 800f324: f3bf 8f4f dsb sy - 800f328: f3bf 8f6f isb sy + 800f320: 4b06 ldr r3, [pc, #24] ; (800f33c ) + 800f322: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800f326: 601a str r2, [r3, #0] + 800f328: f3bf 8f4f dsb sy + 800f32c: f3bf 8f6f isb sy /* Call the user defined function from within the idle task. This allows the application designer to add background functionality without the overhead of a separate task. NOTE: vApplicationIdleHook() MUST NOT, UNDER ANY CIRCUMSTANCES, CALL A FUNCTION THAT MIGHT BLOCK. */ vApplicationIdleHook(); - 800f32c: f7f1 f940 bl 80005b0 + 800f330: f7f1 f93e bl 80005b0 prvCheckTasksWaitingTermination(); - 800f330: e7ee b.n 800f310 - 800f332: bf00 nop - 800f334: 20000584 .word 0x20000584 - 800f338: e000ed04 .word 0xe000ed04 + 800f334: e7ee b.n 800f314 + 800f336: bf00 nop + 800f338: 20000584 .word 0x20000584 + 800f33c: e000ed04 .word 0xe000ed04 -0800f33c : +0800f340 : #endif /* portUSING_MPU_WRAPPERS */ /*-----------------------------------------------------------*/ static void prvInitialiseTaskLists( void ) { - 800f33c: b580 push {r7, lr} - 800f33e: b082 sub sp, #8 - 800f340: af00 add r7, sp, #0 + 800f340: b580 push {r7, lr} + 800f342: b082 sub sp, #8 + 800f344: af00 add r7, sp, #0 UBaseType_t uxPriority; for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ ) - 800f342: 2300 movs r3, #0 - 800f344: 607b str r3, [r7, #4] - 800f346: e00c b.n 800f362 + 800f346: 2300 movs r3, #0 + 800f348: 607b str r3, [r7, #4] + 800f34a: e00c b.n 800f366 { vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) ); - 800f348: 687a ldr r2, [r7, #4] - 800f34a: 4613 mov r3, r2 - 800f34c: 009b lsls r3, r3, #2 - 800f34e: 4413 add r3, r2 + 800f34c: 687a ldr r2, [r7, #4] + 800f34e: 4613 mov r3, r2 800f350: 009b lsls r3, r3, #2 - 800f352: 4a12 ldr r2, [pc, #72] ; (800f39c ) - 800f354: 4413 add r3, r2 - 800f356: 4618 mov r0, r3 - 800f358: f7fe f97e bl 800d658 + 800f352: 4413 add r3, r2 + 800f354: 009b lsls r3, r3, #2 + 800f356: 4a12 ldr r2, [pc, #72] ; (800f3a0 ) + 800f358: 4413 add r3, r2 + 800f35a: 4618 mov r0, r3 + 800f35c: f7fe f97e bl 800d65c for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ ) - 800f35c: 687b ldr r3, [r7, #4] - 800f35e: 3301 adds r3, #1 - 800f360: 607b str r3, [r7, #4] - 800f362: 687b ldr r3, [r7, #4] - 800f364: 2b06 cmp r3, #6 - 800f366: d9ef bls.n 800f348 + 800f360: 687b ldr r3, [r7, #4] + 800f362: 3301 adds r3, #1 + 800f364: 607b str r3, [r7, #4] + 800f366: 687b ldr r3, [r7, #4] + 800f368: 2b06 cmp r3, #6 + 800f36a: d9ef bls.n 800f34c } vListInitialise( &xDelayedTaskList1 ); - 800f368: 480d ldr r0, [pc, #52] ; (800f3a0 ) - 800f36a: f7fe f975 bl 800d658 + 800f36c: 480d ldr r0, [pc, #52] ; (800f3a4 ) + 800f36e: f7fe f975 bl 800d65c vListInitialise( &xDelayedTaskList2 ); - 800f36e: 480d ldr r0, [pc, #52] ; (800f3a4 ) - 800f370: f7fe f972 bl 800d658 + 800f372: 480d ldr r0, [pc, #52] ; (800f3a8 ) + 800f374: f7fe f972 bl 800d65c vListInitialise( &xPendingReadyList ); - 800f374: 480c ldr r0, [pc, #48] ; (800f3a8 ) - 800f376: f7fe f96f bl 800d658 + 800f378: 480c ldr r0, [pc, #48] ; (800f3ac ) + 800f37a: f7fe f96f bl 800d65c #if ( INCLUDE_vTaskDelete == 1 ) { vListInitialise( &xTasksWaitingTermination ); - 800f37a: 480c ldr r0, [pc, #48] ; (800f3ac ) - 800f37c: f7fe f96c bl 800d658 + 800f37e: 480c ldr r0, [pc, #48] ; (800f3b0 ) + 800f380: f7fe f96c bl 800d65c } #endif /* INCLUDE_vTaskDelete */ #if ( INCLUDE_vTaskSuspend == 1 ) { vListInitialise( &xSuspendedTaskList ); - 800f380: 480b ldr r0, [pc, #44] ; (800f3b0 ) - 800f382: f7fe f969 bl 800d658 + 800f384: 480b ldr r0, [pc, #44] ; (800f3b4 ) + 800f386: f7fe f969 bl 800d65c } #endif /* INCLUDE_vTaskSuspend */ /* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList using list2. */ pxDelayedTaskList = &xDelayedTaskList1; - 800f386: 4b0b ldr r3, [pc, #44] ; (800f3b4 ) - 800f388: 4a05 ldr r2, [pc, #20] ; (800f3a0 ) - 800f38a: 601a str r2, [r3, #0] + 800f38a: 4b0b ldr r3, [pc, #44] ; (800f3b8 ) + 800f38c: 4a05 ldr r2, [pc, #20] ; (800f3a4 ) + 800f38e: 601a str r2, [r3, #0] pxOverflowDelayedTaskList = &xDelayedTaskList2; - 800f38c: 4b0a ldr r3, [pc, #40] ; (800f3b8 ) - 800f38e: 4a05 ldr r2, [pc, #20] ; (800f3a4 ) - 800f390: 601a str r2, [r3, #0] -} - 800f392: bf00 nop - 800f394: 3708 adds r7, #8 - 800f396: 46bd mov sp, r7 - 800f398: bd80 pop {r7, pc} - 800f39a: bf00 nop - 800f39c: 20000584 .word 0x20000584 - 800f3a0: 20000610 .word 0x20000610 - 800f3a4: 20000624 .word 0x20000624 - 800f3a8: 20000640 .word 0x20000640 - 800f3ac: 20000654 .word 0x20000654 - 800f3b0: 2000066c .word 0x2000066c - 800f3b4: 20000638 .word 0x20000638 - 800f3b8: 2000063c .word 0x2000063c - -0800f3bc : + 800f390: 4b0a ldr r3, [pc, #40] ; (800f3bc ) + 800f392: 4a05 ldr r2, [pc, #20] ; (800f3a8 ) + 800f394: 601a str r2, [r3, #0] +} + 800f396: bf00 nop + 800f398: 3708 adds r7, #8 + 800f39a: 46bd mov sp, r7 + 800f39c: bd80 pop {r7, pc} + 800f39e: bf00 nop + 800f3a0: 20000584 .word 0x20000584 + 800f3a4: 20000610 .word 0x20000610 + 800f3a8: 20000624 .word 0x20000624 + 800f3ac: 20000640 .word 0x20000640 + 800f3b0: 20000654 .word 0x20000654 + 800f3b4: 2000066c .word 0x2000066c + 800f3b8: 20000638 .word 0x20000638 + 800f3bc: 2000063c .word 0x2000063c + +0800f3c0 : /*-----------------------------------------------------------*/ static void prvCheckTasksWaitingTermination( void ) { - 800f3bc: b580 push {r7, lr} - 800f3be: b082 sub sp, #8 - 800f3c0: af00 add r7, sp, #0 + 800f3c0: b580 push {r7, lr} + 800f3c2: b082 sub sp, #8 + 800f3c4: af00 add r7, sp, #0 { TCB_t *pxTCB; /* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL() being called too often in the idle task. */ while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U ) - 800f3c2: e019 b.n 800f3f8 + 800f3c6: e019 b.n 800f3fc { taskENTER_CRITICAL(); - 800f3c4: f000 fbb8 bl 800fb38 + 800f3c8: f000 fbbe bl 800fb48 { pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xTasksWaitingTermination ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - 800f3c8: 4b0f ldr r3, [pc, #60] ; (800f408 ) - 800f3ca: 68db ldr r3, [r3, #12] - 800f3cc: 68db ldr r3, [r3, #12] - 800f3ce: 607b str r3, [r7, #4] + 800f3cc: 4b0f ldr r3, [pc, #60] ; (800f40c ) + 800f3ce: 68db ldr r3, [r3, #12] + 800f3d0: 68db ldr r3, [r3, #12] + 800f3d2: 607b str r3, [r7, #4] ( void ) uxListRemove( &( pxTCB->xStateListItem ) ); - 800f3d0: 687b ldr r3, [r7, #4] - 800f3d2: 3304 adds r3, #4 - 800f3d4: 4618 mov r0, r3 - 800f3d6: f7fe f9c9 bl 800d76c + 800f3d4: 687b ldr r3, [r7, #4] + 800f3d6: 3304 adds r3, #4 + 800f3d8: 4618 mov r0, r3 + 800f3da: f7fe f9c9 bl 800d770 --uxCurrentNumberOfTasks; - 800f3da: 4b0c ldr r3, [pc, #48] ; (800f40c ) - 800f3dc: 681b ldr r3, [r3, #0] - 800f3de: 3b01 subs r3, #1 - 800f3e0: 4a0a ldr r2, [pc, #40] ; (800f40c ) - 800f3e2: 6013 str r3, [r2, #0] + 800f3de: 4b0c ldr r3, [pc, #48] ; (800f410 ) + 800f3e0: 681b ldr r3, [r3, #0] + 800f3e2: 3b01 subs r3, #1 + 800f3e4: 4a0a ldr r2, [pc, #40] ; (800f410 ) + 800f3e6: 6013 str r3, [r2, #0] --uxDeletedTasksWaitingCleanUp; - 800f3e4: 4b0a ldr r3, [pc, #40] ; (800f410 ) - 800f3e6: 681b ldr r3, [r3, #0] - 800f3e8: 3b01 subs r3, #1 - 800f3ea: 4a09 ldr r2, [pc, #36] ; (800f410 ) - 800f3ec: 6013 str r3, [r2, #0] + 800f3e8: 4b0a ldr r3, [pc, #40] ; (800f414 ) + 800f3ea: 681b ldr r3, [r3, #0] + 800f3ec: 3b01 subs r3, #1 + 800f3ee: 4a09 ldr r2, [pc, #36] ; (800f414 ) + 800f3f0: 6013 str r3, [r2, #0] } taskEXIT_CRITICAL(); - 800f3ee: f000 fbd5 bl 800fb9c + 800f3f2: f000 fbdb bl 800fbac prvDeleteTCB( pxTCB ); - 800f3f2: 6878 ldr r0, [r7, #4] - 800f3f4: f000 f80e bl 800f414 + 800f3f6: 6878 ldr r0, [r7, #4] + 800f3f8: f000 f80e bl 800f418 while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U ) - 800f3f8: 4b05 ldr r3, [pc, #20] ; (800f410 ) - 800f3fa: 681b ldr r3, [r3, #0] - 800f3fc: 2b00 cmp r3, #0 - 800f3fe: d1e1 bne.n 800f3c4 + 800f3fc: 4b05 ldr r3, [pc, #20] ; (800f414 ) + 800f3fe: 681b ldr r3, [r3, #0] + 800f400: 2b00 cmp r3, #0 + 800f402: d1e1 bne.n 800f3c8 } } #endif /* INCLUDE_vTaskDelete */ } - 800f400: bf00 nop - 800f402: 3708 adds r7, #8 - 800f404: 46bd mov sp, r7 - 800f406: bd80 pop {r7, pc} - 800f408: 20000654 .word 0x20000654 - 800f40c: 20000680 .word 0x20000680 - 800f410: 20000668 .word 0x20000668 + 800f404: bf00 nop + 800f406: 3708 adds r7, #8 + 800f408: 46bd mov sp, r7 + 800f40a: bd80 pop {r7, pc} + 800f40c: 20000654 .word 0x20000654 + 800f410: 20000680 .word 0x20000680 + 800f414: 20000668 .word 0x20000668 -0800f414 : +0800f418 : /*-----------------------------------------------------------*/ #if ( INCLUDE_vTaskDelete == 1 ) static void prvDeleteTCB( TCB_t *pxTCB ) { - 800f414: b580 push {r7, lr} - 800f416: b084 sub sp, #16 - 800f418: af00 add r7, sp, #0 - 800f41a: 6078 str r0, [r7, #4] + 800f418: b580 push {r7, lr} + 800f41a: b084 sub sp, #16 + 800f41c: af00 add r7, sp, #0 + 800f41e: 6078 str r0, [r7, #4] #elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */ { /* The task could have been allocated statically or dynamically, so check what was statically allocated before trying to free the memory. */ if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB ) - 800f41c: 687b ldr r3, [r7, #4] - 800f41e: f893 3055 ldrb.w r3, [r3, #85] ; 0x55 - 800f422: 2b00 cmp r3, #0 - 800f424: d108 bne.n 800f438 + 800f420: 687b ldr r3, [r7, #4] + 800f422: f893 3055 ldrb.w r3, [r3, #85] ; 0x55 + 800f426: 2b00 cmp r3, #0 + 800f428: d108 bne.n 800f43c { /* Both the stack and TCB were allocated dynamically, so both must be freed. */ vPortFree( pxTCB->pxStack ); - 800f426: 687b ldr r3, [r7, #4] - 800f428: 6b1b ldr r3, [r3, #48] ; 0x30 - 800f42a: 4618 mov r0, r3 - 800f42c: f000 fd72 bl 800ff14 + 800f42a: 687b ldr r3, [r7, #4] + 800f42c: 6b1b ldr r3, [r3, #48] ; 0x30 + 800f42e: 4618 mov r0, r3 + 800f430: f000 fd78 bl 800ff24 vPortFree( pxTCB ); - 800f430: 6878 ldr r0, [r7, #4] - 800f432: f000 fd6f bl 800ff14 + 800f434: 6878 ldr r0, [r7, #4] + 800f436: f000 fd75 bl 800ff24 configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB ); mtCOVERAGE_TEST_MARKER(); } } #endif /* configSUPPORT_DYNAMIC_ALLOCATION */ } - 800f436: e019 b.n 800f46c + 800f43a: e019 b.n 800f470 else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY ) - 800f438: 687b ldr r3, [r7, #4] - 800f43a: f893 3055 ldrb.w r3, [r3, #85] ; 0x55 - 800f43e: 2b01 cmp r3, #1 - 800f440: d103 bne.n 800f44a + 800f43c: 687b ldr r3, [r7, #4] + 800f43e: f893 3055 ldrb.w r3, [r3, #85] ; 0x55 + 800f442: 2b01 cmp r3, #1 + 800f444: d103 bne.n 800f44e vPortFree( pxTCB ); - 800f442: 6878 ldr r0, [r7, #4] - 800f444: f000 fd66 bl 800ff14 + 800f446: 6878 ldr r0, [r7, #4] + 800f448: f000 fd6c bl 800ff24 } - 800f448: e010 b.n 800f46c + 800f44c: e010 b.n 800f470 configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB ); - 800f44a: 687b ldr r3, [r7, #4] - 800f44c: f893 3055 ldrb.w r3, [r3, #85] ; 0x55 - 800f450: 2b02 cmp r3, #2 - 800f452: d00b beq.n 800f46c - 800f454: f04f 0350 mov.w r3, #80 ; 0x50 - 800f458: b672 cpsid i - 800f45a: f383 8811 msr BASEPRI, r3 - 800f45e: f3bf 8f6f isb sy - 800f462: f3bf 8f4f dsb sy - 800f466: b662 cpsie i - 800f468: 60fb str r3, [r7, #12] - 800f46a: e7fe b.n 800f46a + 800f44e: 687b ldr r3, [r7, #4] + 800f450: f893 3055 ldrb.w r3, [r3, #85] ; 0x55 + 800f454: 2b02 cmp r3, #2 + 800f456: d00b beq.n 800f470 + 800f458: f04f 0350 mov.w r3, #80 ; 0x50 + 800f45c: b672 cpsid i + 800f45e: f383 8811 msr BASEPRI, r3 + 800f462: f3bf 8f6f isb sy + 800f466: f3bf 8f4f dsb sy + 800f46a: b662 cpsie i + 800f46c: 60fb str r3, [r7, #12] + 800f46e: e7fe b.n 800f46e } - 800f46c: bf00 nop - 800f46e: 3710 adds r7, #16 - 800f470: 46bd mov sp, r7 - 800f472: bd80 pop {r7, pc} + 800f470: bf00 nop + 800f472: 3710 adds r7, #16 + 800f474: 46bd mov sp, r7 + 800f476: bd80 pop {r7, pc} -0800f474 : +0800f478 : #endif /* INCLUDE_vTaskDelete */ /*-----------------------------------------------------------*/ static void prvResetNextTaskUnblockTime( void ) { - 800f474: b480 push {r7} - 800f476: b083 sub sp, #12 - 800f478: af00 add r7, sp, #0 + 800f478: b480 push {r7} + 800f47a: b083 sub sp, #12 + 800f47c: af00 add r7, sp, #0 TCB_t *pxTCB; if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE ) - 800f47a: 4b0c ldr r3, [pc, #48] ; (800f4ac ) - 800f47c: 681b ldr r3, [r3, #0] - 800f47e: 681b ldr r3, [r3, #0] - 800f480: 2b00 cmp r3, #0 - 800f482: d104 bne.n 800f48e + 800f47e: 4b0c ldr r3, [pc, #48] ; (800f4b0 ) + 800f480: 681b ldr r3, [r3, #0] + 800f482: 681b ldr r3, [r3, #0] + 800f484: 2b00 cmp r3, #0 + 800f486: d104 bne.n 800f492 { /* The new current delayed list is empty. Set xNextTaskUnblockTime to the maximum possible value so it is extremely unlikely that the if( xTickCount >= xNextTaskUnblockTime ) test will pass until there is an item in the delayed list. */ xNextTaskUnblockTime = portMAX_DELAY; - 800f484: 4b0a ldr r3, [pc, #40] ; (800f4b0 ) - 800f486: f04f 32ff mov.w r2, #4294967295 - 800f48a: 601a str r2, [r3, #0] + 800f488: 4b0a ldr r3, [pc, #40] ; (800f4b4 ) + 800f48a: f04f 32ff mov.w r2, #4294967295 + 800f48e: 601a str r2, [r3, #0] which the task at the head of the delayed list should be removed from the Blocked state. */ ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) ); } } - 800f48c: e008 b.n 800f4a0 + 800f490: e008 b.n 800f4a4 ( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */ - 800f48e: 4b07 ldr r3, [pc, #28] ; (800f4ac ) - 800f490: 681b ldr r3, [r3, #0] - 800f492: 68db ldr r3, [r3, #12] - 800f494: 68db ldr r3, [r3, #12] - 800f496: 607b str r3, [r7, #4] + 800f492: 4b07 ldr r3, [pc, #28] ; (800f4b0 ) + 800f494: 681b ldr r3, [r3, #0] + 800f496: 68db ldr r3, [r3, #12] + 800f498: 68db ldr r3, [r3, #12] + 800f49a: 607b str r3, [r7, #4] xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) ); - 800f498: 687b ldr r3, [r7, #4] - 800f49a: 685b ldr r3, [r3, #4] - 800f49c: 4a04 ldr r2, [pc, #16] ; (800f4b0 ) - 800f49e: 6013 str r3, [r2, #0] -} - 800f4a0: bf00 nop - 800f4a2: 370c adds r7, #12 - 800f4a4: 46bd mov sp, r7 - 800f4a6: f85d 7b04 ldr.w r7, [sp], #4 - 800f4aa: 4770 bx lr - 800f4ac: 20000638 .word 0x20000638 - 800f4b0: 200006a0 .word 0x200006a0 - -0800f4b4 : + 800f49c: 687b ldr r3, [r7, #4] + 800f49e: 685b ldr r3, [r3, #4] + 800f4a0: 4a04 ldr r2, [pc, #16] ; (800f4b4 ) + 800f4a2: 6013 str r3, [r2, #0] +} + 800f4a4: bf00 nop + 800f4a6: 370c adds r7, #12 + 800f4a8: 46bd mov sp, r7 + 800f4aa: f85d 7b04 ldr.w r7, [sp], #4 + 800f4ae: 4770 bx lr + 800f4b0: 20000638 .word 0x20000638 + 800f4b4: 200006a0 .word 0x200006a0 + +0800f4b8 : /*-----------------------------------------------------------*/ #if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) ) BaseType_t xTaskGetSchedulerState( void ) { - 800f4b4: b480 push {r7} - 800f4b6: b083 sub sp, #12 - 800f4b8: af00 add r7, sp, #0 + 800f4b8: b480 push {r7} + 800f4ba: b083 sub sp, #12 + 800f4bc: af00 add r7, sp, #0 BaseType_t xReturn; if( xSchedulerRunning == pdFALSE ) - 800f4ba: 4b0b ldr r3, [pc, #44] ; (800f4e8 ) - 800f4bc: 681b ldr r3, [r3, #0] - 800f4be: 2b00 cmp r3, #0 - 800f4c0: d102 bne.n 800f4c8 + 800f4be: 4b0b ldr r3, [pc, #44] ; (800f4ec ) + 800f4c0: 681b ldr r3, [r3, #0] + 800f4c2: 2b00 cmp r3, #0 + 800f4c4: d102 bne.n 800f4cc { xReturn = taskSCHEDULER_NOT_STARTED; - 800f4c2: 2301 movs r3, #1 - 800f4c4: 607b str r3, [r7, #4] - 800f4c6: e008 b.n 800f4da + 800f4c6: 2301 movs r3, #1 + 800f4c8: 607b str r3, [r7, #4] + 800f4ca: e008 b.n 800f4de } else { if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE ) - 800f4c8: 4b08 ldr r3, [pc, #32] ; (800f4ec ) - 800f4ca: 681b ldr r3, [r3, #0] - 800f4cc: 2b00 cmp r3, #0 - 800f4ce: d102 bne.n 800f4d6 + 800f4cc: 4b08 ldr r3, [pc, #32] ; (800f4f0 ) + 800f4ce: 681b ldr r3, [r3, #0] + 800f4d0: 2b00 cmp r3, #0 + 800f4d2: d102 bne.n 800f4da { xReturn = taskSCHEDULER_RUNNING; - 800f4d0: 2302 movs r3, #2 - 800f4d2: 607b str r3, [r7, #4] - 800f4d4: e001 b.n 800f4da + 800f4d4: 2302 movs r3, #2 + 800f4d6: 607b str r3, [r7, #4] + 800f4d8: e001 b.n 800f4de } else { xReturn = taskSCHEDULER_SUSPENDED; - 800f4d6: 2300 movs r3, #0 - 800f4d8: 607b str r3, [r7, #4] + 800f4da: 2300 movs r3, #0 + 800f4dc: 607b str r3, [r7, #4] } } return xReturn; - 800f4da: 687b ldr r3, [r7, #4] + 800f4de: 687b ldr r3, [r7, #4] } - 800f4dc: 4618 mov r0, r3 - 800f4de: 370c adds r7, #12 - 800f4e0: 46bd mov sp, r7 - 800f4e2: f85d 7b04 ldr.w r7, [sp], #4 - 800f4e6: 4770 bx lr - 800f4e8: 2000068c .word 0x2000068c - 800f4ec: 200006a8 .word 0x200006a8 - -0800f4f0 : + 800f4e0: 4618 mov r0, r3 + 800f4e2: 370c adds r7, #12 + 800f4e4: 46bd mov sp, r7 + 800f4e6: f85d 7b04 ldr.w r7, [sp], #4 + 800f4ea: 4770 bx lr + 800f4ec: 2000068c .word 0x2000068c + 800f4f0: 200006a8 .word 0x200006a8 + +0800f4f4 : /*-----------------------------------------------------------*/ #if ( configUSE_MUTEXES == 1 ) BaseType_t xTaskPriorityInherit( TaskHandle_t const pxMutexHolder ) { - 800f4f0: b580 push {r7, lr} - 800f4f2: b084 sub sp, #16 - 800f4f4: af00 add r7, sp, #0 - 800f4f6: 6078 str r0, [r7, #4] + 800f4f4: b580 push {r7, lr} + 800f4f6: b084 sub sp, #16 + 800f4f8: af00 add r7, sp, #0 + 800f4fa: 6078 str r0, [r7, #4] TCB_t * const pxMutexHolderTCB = pxMutexHolder; - 800f4f8: 687b ldr r3, [r7, #4] - 800f4fa: 60bb str r3, [r7, #8] + 800f4fc: 687b ldr r3, [r7, #4] + 800f4fe: 60bb str r3, [r7, #8] BaseType_t xReturn = pdFALSE; - 800f4fc: 2300 movs r3, #0 - 800f4fe: 60fb str r3, [r7, #12] + 800f500: 2300 movs r3, #0 + 800f502: 60fb str r3, [r7, #12] /* If the mutex was given back by an interrupt while the queue was locked then the mutex holder might now be NULL. _RB_ Is this still needed as interrupts can no longer use mutexes? */ if( pxMutexHolder != NULL ) - 800f500: 687b ldr r3, [r7, #4] - 800f502: 2b00 cmp r3, #0 - 800f504: d069 beq.n 800f5da + 800f504: 687b ldr r3, [r7, #4] + 800f506: 2b00 cmp r3, #0 + 800f508: d069 beq.n 800f5de { /* If the holder of the mutex has a priority below the priority of the task attempting to obtain the mutex then it will temporarily inherit the priority of the task attempting to obtain the mutex. */ if( pxMutexHolderTCB->uxPriority < pxCurrentTCB->uxPriority ) - 800f506: 68bb ldr r3, [r7, #8] - 800f508: 6ada ldr r2, [r3, #44] ; 0x2c - 800f50a: 4b36 ldr r3, [pc, #216] ; (800f5e4 ) - 800f50c: 681b ldr r3, [r3, #0] - 800f50e: 6adb ldr r3, [r3, #44] ; 0x2c - 800f510: 429a cmp r2, r3 - 800f512: d259 bcs.n 800f5c8 + 800f50a: 68bb ldr r3, [r7, #8] + 800f50c: 6ada ldr r2, [r3, #44] ; 0x2c + 800f50e: 4b36 ldr r3, [pc, #216] ; (800f5e8 ) + 800f510: 681b ldr r3, [r3, #0] + 800f512: 6adb ldr r3, [r3, #44] ; 0x2c + 800f514: 429a cmp r2, r3 + 800f516: d259 bcs.n 800f5cc { /* Adjust the mutex holder state to account for its new priority. Only reset the event list item value if the value is not being used for anything else. */ if( ( listGET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL ) - 800f514: 68bb ldr r3, [r7, #8] - 800f516: 699b ldr r3, [r3, #24] - 800f518: 2b00 cmp r3, #0 - 800f51a: db06 blt.n 800f52a + 800f518: 68bb ldr r3, [r7, #8] + 800f51a: 699b ldr r3, [r3, #24] + 800f51c: 2b00 cmp r3, #0 + 800f51e: db06 blt.n 800f52e { listSET_LIST_ITEM_VALUE( &( pxMutexHolderTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxCurrentTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - 800f51c: 4b31 ldr r3, [pc, #196] ; (800f5e4 ) - 800f51e: 681b ldr r3, [r3, #0] - 800f520: 6adb ldr r3, [r3, #44] ; 0x2c - 800f522: f1c3 0207 rsb r2, r3, #7 - 800f526: 68bb ldr r3, [r7, #8] - 800f528: 619a str r2, [r3, #24] + 800f520: 4b31 ldr r3, [pc, #196] ; (800f5e8 ) + 800f522: 681b ldr r3, [r3, #0] + 800f524: 6adb ldr r3, [r3, #44] ; 0x2c + 800f526: f1c3 0207 rsb r2, r3, #7 + 800f52a: 68bb ldr r3, [r7, #8] + 800f52c: 619a str r2, [r3, #24] mtCOVERAGE_TEST_MARKER(); } /* If the task being modified is in the ready state it will need to be moved into a new list. */ if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ pxMutexHolderTCB->uxPriority ] ), &( pxMutexHolderTCB->xStateListItem ) ) != pdFALSE ) - 800f52a: 68bb ldr r3, [r7, #8] - 800f52c: 6959 ldr r1, [r3, #20] 800f52e: 68bb ldr r3, [r7, #8] - 800f530: 6ada ldr r2, [r3, #44] ; 0x2c - 800f532: 4613 mov r3, r2 - 800f534: 009b lsls r3, r3, #2 - 800f536: 4413 add r3, r2 + 800f530: 6959 ldr r1, [r3, #20] + 800f532: 68bb ldr r3, [r7, #8] + 800f534: 6ada ldr r2, [r3, #44] ; 0x2c + 800f536: 4613 mov r3, r2 800f538: 009b lsls r3, r3, #2 - 800f53a: 4a2b ldr r2, [pc, #172] ; (800f5e8 ) - 800f53c: 4413 add r3, r2 - 800f53e: 4299 cmp r1, r3 - 800f540: d13a bne.n 800f5b8 + 800f53a: 4413 add r3, r2 + 800f53c: 009b lsls r3, r3, #2 + 800f53e: 4a2b ldr r2, [pc, #172] ; (800f5ec ) + 800f540: 4413 add r3, r2 + 800f542: 4299 cmp r1, r3 + 800f544: d13a bne.n 800f5bc { if( uxListRemove( &( pxMutexHolderTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - 800f542: 68bb ldr r3, [r7, #8] - 800f544: 3304 adds r3, #4 - 800f546: 4618 mov r0, r3 - 800f548: f7fe f910 bl 800d76c - 800f54c: 4603 mov r3, r0 - 800f54e: 2b00 cmp r3, #0 - 800f550: d115 bne.n 800f57e + 800f546: 68bb ldr r3, [r7, #8] + 800f548: 3304 adds r3, #4 + 800f54a: 4618 mov r0, r3 + 800f54c: f7fe f910 bl 800d770 + 800f550: 4603 mov r3, r0 + 800f552: 2b00 cmp r3, #0 + 800f554: d115 bne.n 800f582 { taskRESET_READY_PRIORITY( pxMutexHolderTCB->uxPriority ); - 800f552: 68bb ldr r3, [r7, #8] - 800f554: 6ada ldr r2, [r3, #44] ; 0x2c - 800f556: 4924 ldr r1, [pc, #144] ; (800f5e8 ) - 800f558: 4613 mov r3, r2 - 800f55a: 009b lsls r3, r3, #2 - 800f55c: 4413 add r3, r2 + 800f556: 68bb ldr r3, [r7, #8] + 800f558: 6ada ldr r2, [r3, #44] ; 0x2c + 800f55a: 4924 ldr r1, [pc, #144] ; (800f5ec ) + 800f55c: 4613 mov r3, r2 800f55e: 009b lsls r3, r3, #2 - 800f560: 440b add r3, r1 - 800f562: 681b ldr r3, [r3, #0] - 800f564: 2b00 cmp r3, #0 - 800f566: d10a bne.n 800f57e - 800f568: 68bb ldr r3, [r7, #8] - 800f56a: 6adb ldr r3, [r3, #44] ; 0x2c - 800f56c: 2201 movs r2, #1 - 800f56e: fa02 f303 lsl.w r3, r2, r3 - 800f572: 43da mvns r2, r3 - 800f574: 4b1d ldr r3, [pc, #116] ; (800f5ec ) - 800f576: 681b ldr r3, [r3, #0] - 800f578: 4013 ands r3, r2 - 800f57a: 4a1c ldr r2, [pc, #112] ; (800f5ec ) - 800f57c: 6013 str r3, [r2, #0] + 800f560: 4413 add r3, r2 + 800f562: 009b lsls r3, r3, #2 + 800f564: 440b add r3, r1 + 800f566: 681b ldr r3, [r3, #0] + 800f568: 2b00 cmp r3, #0 + 800f56a: d10a bne.n 800f582 + 800f56c: 68bb ldr r3, [r7, #8] + 800f56e: 6adb ldr r3, [r3, #44] ; 0x2c + 800f570: 2201 movs r2, #1 + 800f572: fa02 f303 lsl.w r3, r2, r3 + 800f576: 43da mvns r2, r3 + 800f578: 4b1d ldr r3, [pc, #116] ; (800f5f0 ) + 800f57a: 681b ldr r3, [r3, #0] + 800f57c: 4013 ands r3, r2 + 800f57e: 4a1c ldr r2, [pc, #112] ; (800f5f0 ) + 800f580: 6013 str r3, [r2, #0] { mtCOVERAGE_TEST_MARKER(); } /* Inherit the priority before being moved into the new list. */ pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; - 800f57e: 4b19 ldr r3, [pc, #100] ; (800f5e4 ) - 800f580: 681b ldr r3, [r3, #0] - 800f582: 6ada ldr r2, [r3, #44] ; 0x2c - 800f584: 68bb ldr r3, [r7, #8] - 800f586: 62da str r2, [r3, #44] ; 0x2c - prvAddTaskToReadyList( pxMutexHolderTCB ); + 800f582: 4b19 ldr r3, [pc, #100] ; (800f5e8 ) + 800f584: 681b ldr r3, [r3, #0] + 800f586: 6ada ldr r2, [r3, #44] ; 0x2c 800f588: 68bb ldr r3, [r7, #8] - 800f58a: 6adb ldr r3, [r3, #44] ; 0x2c - 800f58c: 2201 movs r2, #1 - 800f58e: 409a lsls r2, r3 - 800f590: 4b16 ldr r3, [pc, #88] ; (800f5ec ) - 800f592: 681b ldr r3, [r3, #0] - 800f594: 4313 orrs r3, r2 - 800f596: 4a15 ldr r2, [pc, #84] ; (800f5ec ) - 800f598: 6013 str r3, [r2, #0] - 800f59a: 68bb ldr r3, [r7, #8] - 800f59c: 6ada ldr r2, [r3, #44] ; 0x2c - 800f59e: 4613 mov r3, r2 - 800f5a0: 009b lsls r3, r3, #2 - 800f5a2: 4413 add r3, r2 + 800f58a: 62da str r2, [r3, #44] ; 0x2c + prvAddTaskToReadyList( pxMutexHolderTCB ); + 800f58c: 68bb ldr r3, [r7, #8] + 800f58e: 6adb ldr r3, [r3, #44] ; 0x2c + 800f590: 2201 movs r2, #1 + 800f592: 409a lsls r2, r3 + 800f594: 4b16 ldr r3, [pc, #88] ; (800f5f0 ) + 800f596: 681b ldr r3, [r3, #0] + 800f598: 4313 orrs r3, r2 + 800f59a: 4a15 ldr r2, [pc, #84] ; (800f5f0 ) + 800f59c: 6013 str r3, [r2, #0] + 800f59e: 68bb ldr r3, [r7, #8] + 800f5a0: 6ada ldr r2, [r3, #44] ; 0x2c + 800f5a2: 4613 mov r3, r2 800f5a4: 009b lsls r3, r3, #2 - 800f5a6: 4a10 ldr r2, [pc, #64] ; (800f5e8 ) - 800f5a8: 441a add r2, r3 - 800f5aa: 68bb ldr r3, [r7, #8] - 800f5ac: 3304 adds r3, #4 - 800f5ae: 4619 mov r1, r3 - 800f5b0: 4610 mov r0, r2 - 800f5b2: f7fe f87e bl 800d6b2 - 800f5b6: e004 b.n 800f5c2 + 800f5a6: 4413 add r3, r2 + 800f5a8: 009b lsls r3, r3, #2 + 800f5aa: 4a10 ldr r2, [pc, #64] ; (800f5ec ) + 800f5ac: 441a add r2, r3 + 800f5ae: 68bb ldr r3, [r7, #8] + 800f5b0: 3304 adds r3, #4 + 800f5b2: 4619 mov r1, r3 + 800f5b4: 4610 mov r0, r2 + 800f5b6: f7fe f87e bl 800d6b6 + 800f5ba: e004 b.n 800f5c6 } else { /* Just inherit the priority. */ pxMutexHolderTCB->uxPriority = pxCurrentTCB->uxPriority; - 800f5b8: 4b0a ldr r3, [pc, #40] ; (800f5e4 ) - 800f5ba: 681b ldr r3, [r3, #0] - 800f5bc: 6ada ldr r2, [r3, #44] ; 0x2c - 800f5be: 68bb ldr r3, [r7, #8] - 800f5c0: 62da str r2, [r3, #44] ; 0x2c + 800f5bc: 4b0a ldr r3, [pc, #40] ; (800f5e8 ) + 800f5be: 681b ldr r3, [r3, #0] + 800f5c0: 6ada ldr r2, [r3, #44] ; 0x2c + 800f5c2: 68bb ldr r3, [r7, #8] + 800f5c4: 62da str r2, [r3, #44] ; 0x2c } traceTASK_PRIORITY_INHERIT( pxMutexHolderTCB, pxCurrentTCB->uxPriority ); /* Inheritance occurred. */ xReturn = pdTRUE; - 800f5c2: 2301 movs r3, #1 - 800f5c4: 60fb str r3, [r7, #12] - 800f5c6: e008 b.n 800f5da + 800f5c6: 2301 movs r3, #1 + 800f5c8: 60fb str r3, [r7, #12] + 800f5ca: e008 b.n 800f5de } else { if( pxMutexHolderTCB->uxBasePriority < pxCurrentTCB->uxPriority ) - 800f5c8: 68bb ldr r3, [r7, #8] - 800f5ca: 6c5a ldr r2, [r3, #68] ; 0x44 - 800f5cc: 4b05 ldr r3, [pc, #20] ; (800f5e4 ) - 800f5ce: 681b ldr r3, [r3, #0] - 800f5d0: 6adb ldr r3, [r3, #44] ; 0x2c - 800f5d2: 429a cmp r2, r3 - 800f5d4: d201 bcs.n 800f5da + 800f5cc: 68bb ldr r3, [r7, #8] + 800f5ce: 6c5a ldr r2, [r3, #68] ; 0x44 + 800f5d0: 4b05 ldr r3, [pc, #20] ; (800f5e8 ) + 800f5d2: 681b ldr r3, [r3, #0] + 800f5d4: 6adb ldr r3, [r3, #44] ; 0x2c + 800f5d6: 429a cmp r2, r3 + 800f5d8: d201 bcs.n 800f5de current priority of the mutex holder is not lower than the priority of the task attempting to take the mutex. Therefore the mutex holder must have already inherited a priority, but inheritance would have occurred if that had not been the case. */ xReturn = pdTRUE; - 800f5d6: 2301 movs r3, #1 - 800f5d8: 60fb str r3, [r7, #12] + 800f5da: 2301 movs r3, #1 + 800f5dc: 60fb str r3, [r7, #12] else { mtCOVERAGE_TEST_MARKER(); } return xReturn; - 800f5da: 68fb ldr r3, [r7, #12] + 800f5de: 68fb ldr r3, [r7, #12] } - 800f5dc: 4618 mov r0, r3 - 800f5de: 3710 adds r7, #16 - 800f5e0: 46bd mov sp, r7 - 800f5e2: bd80 pop {r7, pc} - 800f5e4: 20000580 .word 0x20000580 - 800f5e8: 20000584 .word 0x20000584 - 800f5ec: 20000688 .word 0x20000688 - -0800f5f0 : + 800f5e0: 4618 mov r0, r3 + 800f5e2: 3710 adds r7, #16 + 800f5e4: 46bd mov sp, r7 + 800f5e6: bd80 pop {r7, pc} + 800f5e8: 20000580 .word 0x20000580 + 800f5ec: 20000584 .word 0x20000584 + 800f5f0: 20000688 .word 0x20000688 + +0800f5f4 : /*-----------------------------------------------------------*/ #if ( configUSE_MUTEXES == 1 ) BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder ) { - 800f5f0: b580 push {r7, lr} - 800f5f2: b086 sub sp, #24 - 800f5f4: af00 add r7, sp, #0 - 800f5f6: 6078 str r0, [r7, #4] + 800f5f4: b580 push {r7, lr} + 800f5f6: b086 sub sp, #24 + 800f5f8: af00 add r7, sp, #0 + 800f5fa: 6078 str r0, [r7, #4] TCB_t * const pxTCB = pxMutexHolder; - 800f5f8: 687b ldr r3, [r7, #4] - 800f5fa: 613b str r3, [r7, #16] + 800f5fc: 687b ldr r3, [r7, #4] + 800f5fe: 613b str r3, [r7, #16] BaseType_t xReturn = pdFALSE; - 800f5fc: 2300 movs r3, #0 - 800f5fe: 617b str r3, [r7, #20] + 800f600: 2300 movs r3, #0 + 800f602: 617b str r3, [r7, #20] if( pxMutexHolder != NULL ) - 800f600: 687b ldr r3, [r7, #4] - 800f602: 2b00 cmp r3, #0 - 800f604: d070 beq.n 800f6e8 + 800f604: 687b ldr r3, [r7, #4] + 800f606: 2b00 cmp r3, #0 + 800f608: d070 beq.n 800f6ec { /* A task can only have an inherited priority if it holds the mutex. If the mutex is held by a task then it cannot be given from an interrupt, and if a mutex is given by the holding task then it must be the running state task. */ configASSERT( pxTCB == pxCurrentTCB ); - 800f606: 4b3b ldr r3, [pc, #236] ; (800f6f4 ) - 800f608: 681b ldr r3, [r3, #0] - 800f60a: 693a ldr r2, [r7, #16] - 800f60c: 429a cmp r2, r3 - 800f60e: d00b beq.n 800f628 - 800f610: f04f 0350 mov.w r3, #80 ; 0x50 - 800f614: b672 cpsid i - 800f616: f383 8811 msr BASEPRI, r3 - 800f61a: f3bf 8f6f isb sy - 800f61e: f3bf 8f4f dsb sy - 800f622: b662 cpsie i - 800f624: 60fb str r3, [r7, #12] - 800f626: e7fe b.n 800f626 + 800f60a: 4b3b ldr r3, [pc, #236] ; (800f6f8 ) + 800f60c: 681b ldr r3, [r3, #0] + 800f60e: 693a ldr r2, [r7, #16] + 800f610: 429a cmp r2, r3 + 800f612: d00b beq.n 800f62c + 800f614: f04f 0350 mov.w r3, #80 ; 0x50 + 800f618: b672 cpsid i + 800f61a: f383 8811 msr BASEPRI, r3 + 800f61e: f3bf 8f6f isb sy + 800f622: f3bf 8f4f dsb sy + 800f626: b662 cpsie i + 800f628: 60fb str r3, [r7, #12] + 800f62a: e7fe b.n 800f62a configASSERT( pxTCB->uxMutexesHeld ); - 800f628: 693b ldr r3, [r7, #16] - 800f62a: 6c9b ldr r3, [r3, #72] ; 0x48 - 800f62c: 2b00 cmp r3, #0 - 800f62e: d10b bne.n 800f648 - 800f630: f04f 0350 mov.w r3, #80 ; 0x50 - 800f634: b672 cpsid i - 800f636: f383 8811 msr BASEPRI, r3 - 800f63a: f3bf 8f6f isb sy - 800f63e: f3bf 8f4f dsb sy - 800f642: b662 cpsie i - 800f644: 60bb str r3, [r7, #8] - 800f646: e7fe b.n 800f646 + 800f62c: 693b ldr r3, [r7, #16] + 800f62e: 6c9b ldr r3, [r3, #72] ; 0x48 + 800f630: 2b00 cmp r3, #0 + 800f632: d10b bne.n 800f64c + 800f634: f04f 0350 mov.w r3, #80 ; 0x50 + 800f638: b672 cpsid i + 800f63a: f383 8811 msr BASEPRI, r3 + 800f63e: f3bf 8f6f isb sy + 800f642: f3bf 8f4f dsb sy + 800f646: b662 cpsie i + 800f648: 60bb str r3, [r7, #8] + 800f64a: e7fe b.n 800f64a ( pxTCB->uxMutexesHeld )--; - 800f648: 693b ldr r3, [r7, #16] - 800f64a: 6c9b ldr r3, [r3, #72] ; 0x48 - 800f64c: 1e5a subs r2, r3, #1 - 800f64e: 693b ldr r3, [r7, #16] - 800f650: 649a str r2, [r3, #72] ; 0x48 + 800f64c: 693b ldr r3, [r7, #16] + 800f64e: 6c9b ldr r3, [r3, #72] ; 0x48 + 800f650: 1e5a subs r2, r3, #1 + 800f652: 693b ldr r3, [r7, #16] + 800f654: 649a str r2, [r3, #72] ; 0x48 /* Has the holder of the mutex inherited the priority of another task? */ if( pxTCB->uxPriority != pxTCB->uxBasePriority ) - 800f652: 693b ldr r3, [r7, #16] - 800f654: 6ada ldr r2, [r3, #44] ; 0x2c 800f656: 693b ldr r3, [r7, #16] - 800f658: 6c5b ldr r3, [r3, #68] ; 0x44 - 800f65a: 429a cmp r2, r3 - 800f65c: d044 beq.n 800f6e8 + 800f658: 6ada ldr r2, [r3, #44] ; 0x2c + 800f65a: 693b ldr r3, [r7, #16] + 800f65c: 6c5b ldr r3, [r3, #68] ; 0x44 + 800f65e: 429a cmp r2, r3 + 800f660: d044 beq.n 800f6ec { /* Only disinherit if no other mutexes are held. */ if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 ) - 800f65e: 693b ldr r3, [r7, #16] - 800f660: 6c9b ldr r3, [r3, #72] ; 0x48 - 800f662: 2b00 cmp r3, #0 - 800f664: d140 bne.n 800f6e8 + 800f662: 693b ldr r3, [r7, #16] + 800f664: 6c9b ldr r3, [r3, #72] ; 0x48 + 800f666: 2b00 cmp r3, #0 + 800f668: d140 bne.n 800f6ec /* A task can only have an inherited priority if it holds the mutex. If the mutex is held by a task then it cannot be given from an interrupt, and if a mutex is given by the holding task then it must be the running state task. Remove the holding task from the ready list. */ if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - 800f666: 693b ldr r3, [r7, #16] - 800f668: 3304 adds r3, #4 - 800f66a: 4618 mov r0, r3 - 800f66c: f7fe f87e bl 800d76c - 800f670: 4603 mov r3, r0 - 800f672: 2b00 cmp r3, #0 - 800f674: d115 bne.n 800f6a2 + 800f66a: 693b ldr r3, [r7, #16] + 800f66c: 3304 adds r3, #4 + 800f66e: 4618 mov r0, r3 + 800f670: f7fe f87e bl 800d770 + 800f674: 4603 mov r3, r0 + 800f676: 2b00 cmp r3, #0 + 800f678: d115 bne.n 800f6a6 { taskRESET_READY_PRIORITY( pxTCB->uxPriority ); - 800f676: 693b ldr r3, [r7, #16] - 800f678: 6ada ldr r2, [r3, #44] ; 0x2c - 800f67a: 491f ldr r1, [pc, #124] ; (800f6f8 ) - 800f67c: 4613 mov r3, r2 - 800f67e: 009b lsls r3, r3, #2 - 800f680: 4413 add r3, r2 + 800f67a: 693b ldr r3, [r7, #16] + 800f67c: 6ada ldr r2, [r3, #44] ; 0x2c + 800f67e: 491f ldr r1, [pc, #124] ; (800f6fc ) + 800f680: 4613 mov r3, r2 800f682: 009b lsls r3, r3, #2 - 800f684: 440b add r3, r1 - 800f686: 681b ldr r3, [r3, #0] - 800f688: 2b00 cmp r3, #0 - 800f68a: d10a bne.n 800f6a2 - 800f68c: 693b ldr r3, [r7, #16] - 800f68e: 6adb ldr r3, [r3, #44] ; 0x2c - 800f690: 2201 movs r2, #1 - 800f692: fa02 f303 lsl.w r3, r2, r3 - 800f696: 43da mvns r2, r3 - 800f698: 4b18 ldr r3, [pc, #96] ; (800f6fc ) - 800f69a: 681b ldr r3, [r3, #0] - 800f69c: 4013 ands r3, r2 - 800f69e: 4a17 ldr r2, [pc, #92] ; (800f6fc ) - 800f6a0: 6013 str r3, [r2, #0] + 800f684: 4413 add r3, r2 + 800f686: 009b lsls r3, r3, #2 + 800f688: 440b add r3, r1 + 800f68a: 681b ldr r3, [r3, #0] + 800f68c: 2b00 cmp r3, #0 + 800f68e: d10a bne.n 800f6a6 + 800f690: 693b ldr r3, [r7, #16] + 800f692: 6adb ldr r3, [r3, #44] ; 0x2c + 800f694: 2201 movs r2, #1 + 800f696: fa02 f303 lsl.w r3, r2, r3 + 800f69a: 43da mvns r2, r3 + 800f69c: 4b18 ldr r3, [pc, #96] ; (800f700 ) + 800f69e: 681b ldr r3, [r3, #0] + 800f6a0: 4013 ands r3, r2 + 800f6a2: 4a17 ldr r2, [pc, #92] ; (800f700 ) + 800f6a4: 6013 str r3, [r2, #0] } /* Disinherit the priority before adding the task into the new ready list. */ traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority ); pxTCB->uxPriority = pxTCB->uxBasePriority; - 800f6a2: 693b ldr r3, [r7, #16] - 800f6a4: 6c5a ldr r2, [r3, #68] ; 0x44 800f6a6: 693b ldr r3, [r7, #16] - 800f6a8: 62da str r2, [r3, #44] ; 0x2c + 800f6a8: 6c5a ldr r2, [r3, #68] ; 0x44 + 800f6aa: 693b ldr r3, [r7, #16] + 800f6ac: 62da str r2, [r3, #44] ; 0x2c /* Reset the event list item value. It cannot be in use for any other purpose if this task is running, and it must be running to give back the mutex. */ listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - 800f6aa: 693b ldr r3, [r7, #16] - 800f6ac: 6adb ldr r3, [r3, #44] ; 0x2c - 800f6ae: f1c3 0207 rsb r2, r3, #7 - 800f6b2: 693b ldr r3, [r7, #16] - 800f6b4: 619a str r2, [r3, #24] - prvAddTaskToReadyList( pxTCB ); + 800f6ae: 693b ldr r3, [r7, #16] + 800f6b0: 6adb ldr r3, [r3, #44] ; 0x2c + 800f6b2: f1c3 0207 rsb r2, r3, #7 800f6b6: 693b ldr r3, [r7, #16] - 800f6b8: 6adb ldr r3, [r3, #44] ; 0x2c - 800f6ba: 2201 movs r2, #1 - 800f6bc: 409a lsls r2, r3 - 800f6be: 4b0f ldr r3, [pc, #60] ; (800f6fc ) - 800f6c0: 681b ldr r3, [r3, #0] - 800f6c2: 4313 orrs r3, r2 - 800f6c4: 4a0d ldr r2, [pc, #52] ; (800f6fc ) - 800f6c6: 6013 str r3, [r2, #0] - 800f6c8: 693b ldr r3, [r7, #16] - 800f6ca: 6ada ldr r2, [r3, #44] ; 0x2c - 800f6cc: 4613 mov r3, r2 - 800f6ce: 009b lsls r3, r3, #2 - 800f6d0: 4413 add r3, r2 + 800f6b8: 619a str r2, [r3, #24] + prvAddTaskToReadyList( pxTCB ); + 800f6ba: 693b ldr r3, [r7, #16] + 800f6bc: 6adb ldr r3, [r3, #44] ; 0x2c + 800f6be: 2201 movs r2, #1 + 800f6c0: 409a lsls r2, r3 + 800f6c2: 4b0f ldr r3, [pc, #60] ; (800f700 ) + 800f6c4: 681b ldr r3, [r3, #0] + 800f6c6: 4313 orrs r3, r2 + 800f6c8: 4a0d ldr r2, [pc, #52] ; (800f700 ) + 800f6ca: 6013 str r3, [r2, #0] + 800f6cc: 693b ldr r3, [r7, #16] + 800f6ce: 6ada ldr r2, [r3, #44] ; 0x2c + 800f6d0: 4613 mov r3, r2 800f6d2: 009b lsls r3, r3, #2 - 800f6d4: 4a08 ldr r2, [pc, #32] ; (800f6f8 ) - 800f6d6: 441a add r2, r3 - 800f6d8: 693b ldr r3, [r7, #16] - 800f6da: 3304 adds r3, #4 - 800f6dc: 4619 mov r1, r3 - 800f6de: 4610 mov r0, r2 - 800f6e0: f7fd ffe7 bl 800d6b2 + 800f6d4: 4413 add r3, r2 + 800f6d6: 009b lsls r3, r3, #2 + 800f6d8: 4a08 ldr r2, [pc, #32] ; (800f6fc ) + 800f6da: 441a add r2, r3 + 800f6dc: 693b ldr r3, [r7, #16] + 800f6de: 3304 adds r3, #4 + 800f6e0: 4619 mov r1, r3 + 800f6e2: 4610 mov r0, r2 + 800f6e4: f7fd ffe7 bl 800d6b6 in an order different to that in which they were taken. If a context switch did not occur when the first mutex was returned, even if a task was waiting on it, then a context switch should occur when the last mutex is returned whether a task is waiting on it or not. */ xReturn = pdTRUE; - 800f6e4: 2301 movs r3, #1 - 800f6e6: 617b str r3, [r7, #20] + 800f6e8: 2301 movs r3, #1 + 800f6ea: 617b str r3, [r7, #20] else { mtCOVERAGE_TEST_MARKER(); } return xReturn; - 800f6e8: 697b ldr r3, [r7, #20] + 800f6ec: 697b ldr r3, [r7, #20] } - 800f6ea: 4618 mov r0, r3 - 800f6ec: 3718 adds r7, #24 - 800f6ee: 46bd mov sp, r7 - 800f6f0: bd80 pop {r7, pc} - 800f6f2: bf00 nop - 800f6f4: 20000580 .word 0x20000580 - 800f6f8: 20000584 .word 0x20000584 - 800f6fc: 20000688 .word 0x20000688 - -0800f700 : + 800f6ee: 4618 mov r0, r3 + 800f6f0: 3718 adds r7, #24 + 800f6f2: 46bd mov sp, r7 + 800f6f4: bd80 pop {r7, pc} + 800f6f6: bf00 nop + 800f6f8: 20000580 .word 0x20000580 + 800f6fc: 20000584 .word 0x20000584 + 800f700: 20000688 .word 0x20000688 + +0800f704 : /*-----------------------------------------------------------*/ #if ( configUSE_MUTEXES == 1 ) void vTaskPriorityDisinheritAfterTimeout( TaskHandle_t const pxMutexHolder, UBaseType_t uxHighestPriorityWaitingTask ) { - 800f700: b580 push {r7, lr} - 800f702: b088 sub sp, #32 - 800f704: af00 add r7, sp, #0 - 800f706: 6078 str r0, [r7, #4] - 800f708: 6039 str r1, [r7, #0] + 800f704: b580 push {r7, lr} + 800f706: b088 sub sp, #32 + 800f708: af00 add r7, sp, #0 + 800f70a: 6078 str r0, [r7, #4] + 800f70c: 6039 str r1, [r7, #0] TCB_t * const pxTCB = pxMutexHolder; - 800f70a: 687b ldr r3, [r7, #4] - 800f70c: 61bb str r3, [r7, #24] + 800f70e: 687b ldr r3, [r7, #4] + 800f710: 61bb str r3, [r7, #24] UBaseType_t uxPriorityUsedOnEntry, uxPriorityToUse; const UBaseType_t uxOnlyOneMutexHeld = ( UBaseType_t ) 1; - 800f70e: 2301 movs r3, #1 - 800f710: 617b str r3, [r7, #20] + 800f712: 2301 movs r3, #1 + 800f714: 617b str r3, [r7, #20] if( pxMutexHolder != NULL ) - 800f712: 687b ldr r3, [r7, #4] - 800f714: 2b00 cmp r3, #0 - 800f716: f000 8085 beq.w 800f824 + 800f716: 687b ldr r3, [r7, #4] + 800f718: 2b00 cmp r3, #0 + 800f71a: f000 8085 beq.w 800f828 { /* If pxMutexHolder is not NULL then the holder must hold at least one mutex. */ configASSERT( pxTCB->uxMutexesHeld ); - 800f71a: 69bb ldr r3, [r7, #24] - 800f71c: 6c9b ldr r3, [r3, #72] ; 0x48 - 800f71e: 2b00 cmp r3, #0 - 800f720: d10b bne.n 800f73a - 800f722: f04f 0350 mov.w r3, #80 ; 0x50 - 800f726: b672 cpsid i - 800f728: f383 8811 msr BASEPRI, r3 - 800f72c: f3bf 8f6f isb sy - 800f730: f3bf 8f4f dsb sy - 800f734: b662 cpsie i - 800f736: 60fb str r3, [r7, #12] - 800f738: e7fe b.n 800f738 + 800f71e: 69bb ldr r3, [r7, #24] + 800f720: 6c9b ldr r3, [r3, #72] ; 0x48 + 800f722: 2b00 cmp r3, #0 + 800f724: d10b bne.n 800f73e + 800f726: f04f 0350 mov.w r3, #80 ; 0x50 + 800f72a: b672 cpsid i + 800f72c: f383 8811 msr BASEPRI, r3 + 800f730: f3bf 8f6f isb sy + 800f734: f3bf 8f4f dsb sy + 800f738: b662 cpsie i + 800f73a: 60fb str r3, [r7, #12] + 800f73c: e7fe b.n 800f73c /* Determine the priority to which the priority of the task that holds the mutex should be set. This will be the greater of the holding task's base priority and the priority of the highest priority task that is waiting to obtain the mutex. */ if( pxTCB->uxBasePriority < uxHighestPriorityWaitingTask ) - 800f73a: 69bb ldr r3, [r7, #24] - 800f73c: 6c5b ldr r3, [r3, #68] ; 0x44 - 800f73e: 683a ldr r2, [r7, #0] - 800f740: 429a cmp r2, r3 - 800f742: d902 bls.n 800f74a + 800f73e: 69bb ldr r3, [r7, #24] + 800f740: 6c5b ldr r3, [r3, #68] ; 0x44 + 800f742: 683a ldr r2, [r7, #0] + 800f744: 429a cmp r2, r3 + 800f746: d902 bls.n 800f74e { uxPriorityToUse = uxHighestPriorityWaitingTask; - 800f744: 683b ldr r3, [r7, #0] - 800f746: 61fb str r3, [r7, #28] - 800f748: e002 b.n 800f750 + 800f748: 683b ldr r3, [r7, #0] + 800f74a: 61fb str r3, [r7, #28] + 800f74c: e002 b.n 800f754 } else { uxPriorityToUse = pxTCB->uxBasePriority; - 800f74a: 69bb ldr r3, [r7, #24] - 800f74c: 6c5b ldr r3, [r3, #68] ; 0x44 - 800f74e: 61fb str r3, [r7, #28] + 800f74e: 69bb ldr r3, [r7, #24] + 800f750: 6c5b ldr r3, [r3, #68] ; 0x44 + 800f752: 61fb str r3, [r7, #28] } /* Does the priority need to change? */ if( pxTCB->uxPriority != uxPriorityToUse ) - 800f750: 69bb ldr r3, [r7, #24] - 800f752: 6adb ldr r3, [r3, #44] ; 0x2c - 800f754: 69fa ldr r2, [r7, #28] - 800f756: 429a cmp r2, r3 - 800f758: d064 beq.n 800f824 + 800f754: 69bb ldr r3, [r7, #24] + 800f756: 6adb ldr r3, [r3, #44] ; 0x2c + 800f758: 69fa ldr r2, [r7, #28] + 800f75a: 429a cmp r2, r3 + 800f75c: d064 beq.n 800f828 { /* Only disinherit if no other mutexes are held. This is a simplification in the priority inheritance implementation. If the task that holds the mutex is also holding other mutexes then the other mutexes may have caused the priority inheritance. */ if( pxTCB->uxMutexesHeld == uxOnlyOneMutexHeld ) - 800f75a: 69bb ldr r3, [r7, #24] - 800f75c: 6c9b ldr r3, [r3, #72] ; 0x48 - 800f75e: 697a ldr r2, [r7, #20] - 800f760: 429a cmp r2, r3 - 800f762: d15f bne.n 800f824 + 800f75e: 69bb ldr r3, [r7, #24] + 800f760: 6c9b ldr r3, [r3, #72] ; 0x48 + 800f762: 697a ldr r2, [r7, #20] + 800f764: 429a cmp r2, r3 + 800f766: d15f bne.n 800f828 { /* If a task has timed out because it already holds the mutex it was trying to obtain then it cannot of inherited its own priority. */ configASSERT( pxTCB != pxCurrentTCB ); - 800f764: 4b31 ldr r3, [pc, #196] ; (800f82c ) - 800f766: 681b ldr r3, [r3, #0] - 800f768: 69ba ldr r2, [r7, #24] - 800f76a: 429a cmp r2, r3 - 800f76c: d10b bne.n 800f786 - 800f76e: f04f 0350 mov.w r3, #80 ; 0x50 - 800f772: b672 cpsid i - 800f774: f383 8811 msr BASEPRI, r3 - 800f778: f3bf 8f6f isb sy - 800f77c: f3bf 8f4f dsb sy - 800f780: b662 cpsie i - 800f782: 60bb str r3, [r7, #8] - 800f784: e7fe b.n 800f784 + 800f768: 4b31 ldr r3, [pc, #196] ; (800f830 ) + 800f76a: 681b ldr r3, [r3, #0] + 800f76c: 69ba ldr r2, [r7, #24] + 800f76e: 429a cmp r2, r3 + 800f770: d10b bne.n 800f78a + 800f772: f04f 0350 mov.w r3, #80 ; 0x50 + 800f776: b672 cpsid i + 800f778: f383 8811 msr BASEPRI, r3 + 800f77c: f3bf 8f6f isb sy + 800f780: f3bf 8f4f dsb sy + 800f784: b662 cpsie i + 800f786: 60bb str r3, [r7, #8] + 800f788: e7fe b.n 800f788 /* Disinherit the priority, remembering the previous priority to facilitate determining the subject task's state. */ traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority ); uxPriorityUsedOnEntry = pxTCB->uxPriority; - 800f786: 69bb ldr r3, [r7, #24] - 800f788: 6adb ldr r3, [r3, #44] ; 0x2c - 800f78a: 613b str r3, [r7, #16] + 800f78a: 69bb ldr r3, [r7, #24] + 800f78c: 6adb ldr r3, [r3, #44] ; 0x2c + 800f78e: 613b str r3, [r7, #16] pxTCB->uxPriority = uxPriorityToUse; - 800f78c: 69bb ldr r3, [r7, #24] - 800f78e: 69fa ldr r2, [r7, #28] - 800f790: 62da str r2, [r3, #44] ; 0x2c + 800f790: 69bb ldr r3, [r7, #24] + 800f792: 69fa ldr r2, [r7, #28] + 800f794: 62da str r2, [r3, #44] ; 0x2c /* Only reset the event list item value if the value is not being used for anything else. */ if( ( listGET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ) ) & taskEVENT_LIST_ITEM_VALUE_IN_USE ) == 0UL ) - 800f792: 69bb ldr r3, [r7, #24] - 800f794: 699b ldr r3, [r3, #24] - 800f796: 2b00 cmp r3, #0 - 800f798: db04 blt.n 800f7a4 + 800f796: 69bb ldr r3, [r7, #24] + 800f798: 699b ldr r3, [r3, #24] + 800f79a: 2b00 cmp r3, #0 + 800f79c: db04 blt.n 800f7a8 { listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriorityToUse ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */ - 800f79a: 69fb ldr r3, [r7, #28] - 800f79c: f1c3 0207 rsb r2, r3, #7 - 800f7a0: 69bb ldr r3, [r7, #24] - 800f7a2: 619a str r2, [r3, #24] + 800f79e: 69fb ldr r3, [r7, #28] + 800f7a0: f1c3 0207 rsb r2, r3, #7 + 800f7a4: 69bb ldr r3, [r7, #24] + 800f7a6: 619a str r2, [r3, #24] then the task that holds the mutex could be in either the Ready, Blocked or Suspended states. Only remove the task from its current state list if it is in the Ready state as the task's priority is going to change and there is one Ready list per priority. */ if( listIS_CONTAINED_WITHIN( &( pxReadyTasksLists[ uxPriorityUsedOnEntry ] ), &( pxTCB->xStateListItem ) ) != pdFALSE ) - 800f7a4: 69bb ldr r3, [r7, #24] - 800f7a6: 6959 ldr r1, [r3, #20] - 800f7a8: 693a ldr r2, [r7, #16] - 800f7aa: 4613 mov r3, r2 - 800f7ac: 009b lsls r3, r3, #2 - 800f7ae: 4413 add r3, r2 + 800f7a8: 69bb ldr r3, [r7, #24] + 800f7aa: 6959 ldr r1, [r3, #20] + 800f7ac: 693a ldr r2, [r7, #16] + 800f7ae: 4613 mov r3, r2 800f7b0: 009b lsls r3, r3, #2 - 800f7b2: 4a1f ldr r2, [pc, #124] ; (800f830 ) - 800f7b4: 4413 add r3, r2 - 800f7b6: 4299 cmp r1, r3 - 800f7b8: d134 bne.n 800f824 + 800f7b2: 4413 add r3, r2 + 800f7b4: 009b lsls r3, r3, #2 + 800f7b6: 4a1f ldr r2, [pc, #124] ; (800f834 ) + 800f7b8: 4413 add r3, r2 + 800f7ba: 4299 cmp r1, r3 + 800f7bc: d134 bne.n 800f828 { if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - 800f7ba: 69bb ldr r3, [r7, #24] - 800f7bc: 3304 adds r3, #4 - 800f7be: 4618 mov r0, r3 - 800f7c0: f7fd ffd4 bl 800d76c - 800f7c4: 4603 mov r3, r0 - 800f7c6: 2b00 cmp r3, #0 - 800f7c8: d115 bne.n 800f7f6 + 800f7be: 69bb ldr r3, [r7, #24] + 800f7c0: 3304 adds r3, #4 + 800f7c2: 4618 mov r0, r3 + 800f7c4: f7fd ffd4 bl 800d770 + 800f7c8: 4603 mov r3, r0 + 800f7ca: 2b00 cmp r3, #0 + 800f7cc: d115 bne.n 800f7fa { taskRESET_READY_PRIORITY( pxTCB->uxPriority ); - 800f7ca: 69bb ldr r3, [r7, #24] - 800f7cc: 6ada ldr r2, [r3, #44] ; 0x2c - 800f7ce: 4918 ldr r1, [pc, #96] ; (800f830 ) - 800f7d0: 4613 mov r3, r2 - 800f7d2: 009b lsls r3, r3, #2 - 800f7d4: 4413 add r3, r2 + 800f7ce: 69bb ldr r3, [r7, #24] + 800f7d0: 6ada ldr r2, [r3, #44] ; 0x2c + 800f7d2: 4918 ldr r1, [pc, #96] ; (800f834 ) + 800f7d4: 4613 mov r3, r2 800f7d6: 009b lsls r3, r3, #2 - 800f7d8: 440b add r3, r1 - 800f7da: 681b ldr r3, [r3, #0] - 800f7dc: 2b00 cmp r3, #0 - 800f7de: d10a bne.n 800f7f6 - 800f7e0: 69bb ldr r3, [r7, #24] - 800f7e2: 6adb ldr r3, [r3, #44] ; 0x2c - 800f7e4: 2201 movs r2, #1 - 800f7e6: fa02 f303 lsl.w r3, r2, r3 - 800f7ea: 43da mvns r2, r3 - 800f7ec: 4b11 ldr r3, [pc, #68] ; (800f834 ) - 800f7ee: 681b ldr r3, [r3, #0] - 800f7f0: 4013 ands r3, r2 - 800f7f2: 4a10 ldr r2, [pc, #64] ; (800f834 ) - 800f7f4: 6013 str r3, [r2, #0] + 800f7d8: 4413 add r3, r2 + 800f7da: 009b lsls r3, r3, #2 + 800f7dc: 440b add r3, r1 + 800f7de: 681b ldr r3, [r3, #0] + 800f7e0: 2b00 cmp r3, #0 + 800f7e2: d10a bne.n 800f7fa + 800f7e4: 69bb ldr r3, [r7, #24] + 800f7e6: 6adb ldr r3, [r3, #44] ; 0x2c + 800f7e8: 2201 movs r2, #1 + 800f7ea: fa02 f303 lsl.w r3, r2, r3 + 800f7ee: 43da mvns r2, r3 + 800f7f0: 4b11 ldr r3, [pc, #68] ; (800f838 ) + 800f7f2: 681b ldr r3, [r3, #0] + 800f7f4: 4013 ands r3, r2 + 800f7f6: 4a10 ldr r2, [pc, #64] ; (800f838 ) + 800f7f8: 6013 str r3, [r2, #0] else { mtCOVERAGE_TEST_MARKER(); } prvAddTaskToReadyList( pxTCB ); - 800f7f6: 69bb ldr r3, [r7, #24] - 800f7f8: 6adb ldr r3, [r3, #44] ; 0x2c - 800f7fa: 2201 movs r2, #1 - 800f7fc: 409a lsls r2, r3 - 800f7fe: 4b0d ldr r3, [pc, #52] ; (800f834 ) - 800f800: 681b ldr r3, [r3, #0] - 800f802: 4313 orrs r3, r2 - 800f804: 4a0b ldr r2, [pc, #44] ; (800f834 ) - 800f806: 6013 str r3, [r2, #0] - 800f808: 69bb ldr r3, [r7, #24] - 800f80a: 6ada ldr r2, [r3, #44] ; 0x2c - 800f80c: 4613 mov r3, r2 - 800f80e: 009b lsls r3, r3, #2 - 800f810: 4413 add r3, r2 + 800f7fa: 69bb ldr r3, [r7, #24] + 800f7fc: 6adb ldr r3, [r3, #44] ; 0x2c + 800f7fe: 2201 movs r2, #1 + 800f800: 409a lsls r2, r3 + 800f802: 4b0d ldr r3, [pc, #52] ; (800f838 ) + 800f804: 681b ldr r3, [r3, #0] + 800f806: 4313 orrs r3, r2 + 800f808: 4a0b ldr r2, [pc, #44] ; (800f838 ) + 800f80a: 6013 str r3, [r2, #0] + 800f80c: 69bb ldr r3, [r7, #24] + 800f80e: 6ada ldr r2, [r3, #44] ; 0x2c + 800f810: 4613 mov r3, r2 800f812: 009b lsls r3, r3, #2 - 800f814: 4a06 ldr r2, [pc, #24] ; (800f830 ) - 800f816: 441a add r2, r3 - 800f818: 69bb ldr r3, [r7, #24] - 800f81a: 3304 adds r3, #4 - 800f81c: 4619 mov r1, r3 - 800f81e: 4610 mov r0, r2 - 800f820: f7fd ff47 bl 800d6b2 + 800f814: 4413 add r3, r2 + 800f816: 009b lsls r3, r3, #2 + 800f818: 4a06 ldr r2, [pc, #24] ; (800f834 ) + 800f81a: 441a add r2, r3 + 800f81c: 69bb ldr r3, [r7, #24] + 800f81e: 3304 adds r3, #4 + 800f820: 4619 mov r1, r3 + 800f822: 4610 mov r0, r2 + 800f824: f7fd ff47 bl 800d6b6 } else { mtCOVERAGE_TEST_MARKER(); } } - 800f824: bf00 nop - 800f826: 3720 adds r7, #32 - 800f828: 46bd mov sp, r7 - 800f82a: bd80 pop {r7, pc} - 800f82c: 20000580 .word 0x20000580 - 800f830: 20000584 .word 0x20000584 - 800f834: 20000688 .word 0x20000688 - -0800f838 : + 800f828: bf00 nop + 800f82a: 3720 adds r7, #32 + 800f82c: 46bd mov sp, r7 + 800f82e: bd80 pop {r7, pc} + 800f830: 20000580 .word 0x20000580 + 800f834: 20000584 .word 0x20000584 + 800f838: 20000688 .word 0x20000688 + +0800f83c : /*-----------------------------------------------------------*/ #if ( configUSE_MUTEXES == 1 ) TaskHandle_t pvTaskIncrementMutexHeldCount( void ) { - 800f838: b480 push {r7} - 800f83a: af00 add r7, sp, #0 + 800f83c: b480 push {r7} + 800f83e: af00 add r7, sp, #0 /* If xSemaphoreCreateMutex() is called before any tasks have been created then pxCurrentTCB will be NULL. */ if( pxCurrentTCB != NULL ) - 800f83c: 4b07 ldr r3, [pc, #28] ; (800f85c ) - 800f83e: 681b ldr r3, [r3, #0] - 800f840: 2b00 cmp r3, #0 - 800f842: d004 beq.n 800f84e + 800f840: 4b07 ldr r3, [pc, #28] ; (800f860 ) + 800f842: 681b ldr r3, [r3, #0] + 800f844: 2b00 cmp r3, #0 + 800f846: d004 beq.n 800f852 { ( pxCurrentTCB->uxMutexesHeld )++; - 800f844: 4b05 ldr r3, [pc, #20] ; (800f85c ) - 800f846: 681b ldr r3, [r3, #0] - 800f848: 6c9a ldr r2, [r3, #72] ; 0x48 - 800f84a: 3201 adds r2, #1 - 800f84c: 649a str r2, [r3, #72] ; 0x48 + 800f848: 4b05 ldr r3, [pc, #20] ; (800f860 ) + 800f84a: 681b ldr r3, [r3, #0] + 800f84c: 6c9a ldr r2, [r3, #72] ; 0x48 + 800f84e: 3201 adds r2, #1 + 800f850: 649a str r2, [r3, #72] ; 0x48 } return pxCurrentTCB; - 800f84e: 4b03 ldr r3, [pc, #12] ; (800f85c ) - 800f850: 681b ldr r3, [r3, #0] + 800f852: 4b03 ldr r3, [pc, #12] ; (800f860 ) + 800f854: 681b ldr r3, [r3, #0] } - 800f852: 4618 mov r0, r3 - 800f854: 46bd mov sp, r7 - 800f856: f85d 7b04 ldr.w r7, [sp], #4 - 800f85a: 4770 bx lr - 800f85c: 20000580 .word 0x20000580 + 800f856: 4618 mov r0, r3 + 800f858: 46bd mov sp, r7 + 800f85a: f85d 7b04 ldr.w r7, [sp], #4 + 800f85e: 4770 bx lr + 800f860: 20000580 .word 0x20000580 -0800f860 : +0800f864 : } #endif /*-----------------------------------------------------------*/ static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely ) { - 800f860: b580 push {r7, lr} - 800f862: b084 sub sp, #16 - 800f864: af00 add r7, sp, #0 - 800f866: 6078 str r0, [r7, #4] - 800f868: 6039 str r1, [r7, #0] + 800f864: b580 push {r7, lr} + 800f866: b084 sub sp, #16 + 800f868: af00 add r7, sp, #0 + 800f86a: 6078 str r0, [r7, #4] + 800f86c: 6039 str r1, [r7, #0] TickType_t xTimeToWake; const TickType_t xConstTickCount = xTickCount; - 800f86a: 4b29 ldr r3, [pc, #164] ; (800f910 ) - 800f86c: 681b ldr r3, [r3, #0] - 800f86e: 60fb str r3, [r7, #12] + 800f86e: 4b29 ldr r3, [pc, #164] ; (800f914 ) + 800f870: 681b ldr r3, [r3, #0] + 800f872: 60fb str r3, [r7, #12] } #endif /* Remove the task from the ready list before adding it to the blocked list as the same list item is used for both lists. */ if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 ) - 800f870: 4b28 ldr r3, [pc, #160] ; (800f914 ) - 800f872: 681b ldr r3, [r3, #0] - 800f874: 3304 adds r3, #4 - 800f876: 4618 mov r0, r3 - 800f878: f7fd ff78 bl 800d76c - 800f87c: 4603 mov r3, r0 - 800f87e: 2b00 cmp r3, #0 - 800f880: d10b bne.n 800f89a + 800f874: 4b28 ldr r3, [pc, #160] ; (800f918 ) + 800f876: 681b ldr r3, [r3, #0] + 800f878: 3304 adds r3, #4 + 800f87a: 4618 mov r0, r3 + 800f87c: f7fd ff78 bl 800d770 + 800f880: 4603 mov r3, r0 + 800f882: 2b00 cmp r3, #0 + 800f884: d10b bne.n 800f89e { /* The current task must be in a ready list, so there is no need to check, and the port reset macro can be called directly. */ portRESET_READY_PRIORITY( pxCurrentTCB->uxPriority, uxTopReadyPriority ); /*lint !e931 pxCurrentTCB cannot change as it is the calling task. pxCurrentTCB->uxPriority and uxTopReadyPriority cannot change as called with scheduler suspended or in a critical section. */ - 800f882: 4b24 ldr r3, [pc, #144] ; (800f914 ) - 800f884: 681b ldr r3, [r3, #0] - 800f886: 6adb ldr r3, [r3, #44] ; 0x2c - 800f888: 2201 movs r2, #1 - 800f88a: fa02 f303 lsl.w r3, r2, r3 - 800f88e: 43da mvns r2, r3 - 800f890: 4b21 ldr r3, [pc, #132] ; (800f918 ) - 800f892: 681b ldr r3, [r3, #0] - 800f894: 4013 ands r3, r2 - 800f896: 4a20 ldr r2, [pc, #128] ; (800f918 ) - 800f898: 6013 str r3, [r2, #0] + 800f886: 4b24 ldr r3, [pc, #144] ; (800f918 ) + 800f888: 681b ldr r3, [r3, #0] + 800f88a: 6adb ldr r3, [r3, #44] ; 0x2c + 800f88c: 2201 movs r2, #1 + 800f88e: fa02 f303 lsl.w r3, r2, r3 + 800f892: 43da mvns r2, r3 + 800f894: 4b21 ldr r3, [pc, #132] ; (800f91c ) + 800f896: 681b ldr r3, [r3, #0] + 800f898: 4013 ands r3, r2 + 800f89a: 4a20 ldr r2, [pc, #128] ; (800f91c ) + 800f89c: 6013 str r3, [r2, #0] mtCOVERAGE_TEST_MARKER(); } #if ( INCLUDE_vTaskSuspend == 1 ) { if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) ) - 800f89a: 687b ldr r3, [r7, #4] - 800f89c: f1b3 3fff cmp.w r3, #4294967295 - 800f8a0: d10a bne.n 800f8b8 - 800f8a2: 683b ldr r3, [r7, #0] - 800f8a4: 2b00 cmp r3, #0 - 800f8a6: d007 beq.n 800f8b8 + 800f89e: 687b ldr r3, [r7, #4] + 800f8a0: f1b3 3fff cmp.w r3, #4294967295 + 800f8a4: d10a bne.n 800f8bc + 800f8a6: 683b ldr r3, [r7, #0] + 800f8a8: 2b00 cmp r3, #0 + 800f8aa: d007 beq.n 800f8bc { /* Add the task to the suspended task list instead of a delayed task list to ensure it is not woken by a timing event. It will block indefinitely. */ vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) ); - 800f8a8: 4b1a ldr r3, [pc, #104] ; (800f914 ) - 800f8aa: 681b ldr r3, [r3, #0] - 800f8ac: 3304 adds r3, #4 - 800f8ae: 4619 mov r1, r3 - 800f8b0: 481a ldr r0, [pc, #104] ; (800f91c ) - 800f8b2: f7fd fefe bl 800d6b2 + 800f8ac: 4b1a ldr r3, [pc, #104] ; (800f918 ) + 800f8ae: 681b ldr r3, [r3, #0] + 800f8b0: 3304 adds r3, #4 + 800f8b2: 4619 mov r1, r3 + 800f8b4: 481a ldr r0, [pc, #104] ; (800f920 ) + 800f8b6: f7fd fefe bl 800d6b6 /* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */ ( void ) xCanBlockIndefinitely; } #endif /* INCLUDE_vTaskSuspend */ } - 800f8b6: e026 b.n 800f906 + 800f8ba: e026 b.n 800f90a xTimeToWake = xConstTickCount + xTicksToWait; - 800f8b8: 68fa ldr r2, [r7, #12] - 800f8ba: 687b ldr r3, [r7, #4] - 800f8bc: 4413 add r3, r2 - 800f8be: 60bb str r3, [r7, #8] + 800f8bc: 68fa ldr r2, [r7, #12] + 800f8be: 687b ldr r3, [r7, #4] + 800f8c0: 4413 add r3, r2 + 800f8c2: 60bb str r3, [r7, #8] listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake ); - 800f8c0: 4b14 ldr r3, [pc, #80] ; (800f914 ) - 800f8c2: 681b ldr r3, [r3, #0] - 800f8c4: 68ba ldr r2, [r7, #8] - 800f8c6: 605a str r2, [r3, #4] - if( xTimeToWake < xConstTickCount ) + 800f8c4: 4b14 ldr r3, [pc, #80] ; (800f918 ) + 800f8c6: 681b ldr r3, [r3, #0] 800f8c8: 68ba ldr r2, [r7, #8] - 800f8ca: 68fb ldr r3, [r7, #12] - 800f8cc: 429a cmp r2, r3 - 800f8ce: d209 bcs.n 800f8e4 + 800f8ca: 605a str r2, [r3, #4] + if( xTimeToWake < xConstTickCount ) + 800f8cc: 68ba ldr r2, [r7, #8] + 800f8ce: 68fb ldr r3, [r7, #12] + 800f8d0: 429a cmp r2, r3 + 800f8d2: d209 bcs.n 800f8e8 vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); - 800f8d0: 4b13 ldr r3, [pc, #76] ; (800f920 ) - 800f8d2: 681a ldr r2, [r3, #0] - 800f8d4: 4b0f ldr r3, [pc, #60] ; (800f914 ) - 800f8d6: 681b ldr r3, [r3, #0] - 800f8d8: 3304 adds r3, #4 - 800f8da: 4619 mov r1, r3 - 800f8dc: 4610 mov r0, r2 - 800f8de: f7fd ff0c bl 800d6fa -} - 800f8e2: e010 b.n 800f906 + 800f8d4: 4b13 ldr r3, [pc, #76] ; (800f924 ) + 800f8d6: 681a ldr r2, [r3, #0] + 800f8d8: 4b0f ldr r3, [pc, #60] ; (800f918 ) + 800f8da: 681b ldr r3, [r3, #0] + 800f8dc: 3304 adds r3, #4 + 800f8de: 4619 mov r1, r3 + 800f8e0: 4610 mov r0, r2 + 800f8e2: f7fd ff0c bl 800d6fe +} + 800f8e6: e010 b.n 800f90a vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) ); - 800f8e4: 4b0f ldr r3, [pc, #60] ; (800f924 ) - 800f8e6: 681a ldr r2, [r3, #0] - 800f8e8: 4b0a ldr r3, [pc, #40] ; (800f914 ) - 800f8ea: 681b ldr r3, [r3, #0] - 800f8ec: 3304 adds r3, #4 - 800f8ee: 4619 mov r1, r3 - 800f8f0: 4610 mov r0, r2 - 800f8f2: f7fd ff02 bl 800d6fa + 800f8e8: 4b0f ldr r3, [pc, #60] ; (800f928 ) + 800f8ea: 681a ldr r2, [r3, #0] + 800f8ec: 4b0a ldr r3, [pc, #40] ; (800f918 ) + 800f8ee: 681b ldr r3, [r3, #0] + 800f8f0: 3304 adds r3, #4 + 800f8f2: 4619 mov r1, r3 + 800f8f4: 4610 mov r0, r2 + 800f8f6: f7fd ff02 bl 800d6fe if( xTimeToWake < xNextTaskUnblockTime ) - 800f8f6: 4b0c ldr r3, [pc, #48] ; (800f928 ) - 800f8f8: 681b ldr r3, [r3, #0] - 800f8fa: 68ba ldr r2, [r7, #8] - 800f8fc: 429a cmp r2, r3 - 800f8fe: d202 bcs.n 800f906 + 800f8fa: 4b0c ldr r3, [pc, #48] ; (800f92c ) + 800f8fc: 681b ldr r3, [r3, #0] + 800f8fe: 68ba ldr r2, [r7, #8] + 800f900: 429a cmp r2, r3 + 800f902: d202 bcs.n 800f90a xNextTaskUnblockTime = xTimeToWake; - 800f900: 4a09 ldr r2, [pc, #36] ; (800f928 ) - 800f902: 68bb ldr r3, [r7, #8] - 800f904: 6013 str r3, [r2, #0] -} - 800f906: bf00 nop - 800f908: 3710 adds r7, #16 - 800f90a: 46bd mov sp, r7 - 800f90c: bd80 pop {r7, pc} - 800f90e: bf00 nop - 800f910: 20000684 .word 0x20000684 - 800f914: 20000580 .word 0x20000580 - 800f918: 20000688 .word 0x20000688 - 800f91c: 2000066c .word 0x2000066c - 800f920: 2000063c .word 0x2000063c - 800f924: 20000638 .word 0x20000638 - 800f928: 200006a0 .word 0x200006a0 - -0800f92c : + 800f904: 4a09 ldr r2, [pc, #36] ; (800f92c ) + 800f906: 68bb ldr r3, [r7, #8] + 800f908: 6013 str r3, [r2, #0] +} + 800f90a: bf00 nop + 800f90c: 3710 adds r7, #16 + 800f90e: 46bd mov sp, r7 + 800f910: bd80 pop {r7, pc} + 800f912: bf00 nop + 800f914: 20000684 .word 0x20000684 + 800f918: 20000580 .word 0x20000580 + 800f91c: 20000688 .word 0x20000688 + 800f920: 2000066c .word 0x2000066c + 800f924: 2000063c .word 0x2000063c + 800f928: 20000638 .word 0x20000638 + 800f92c: 200006a0 .word 0x200006a0 + +0800f930 : /* * See header file for description. */ StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) { - 800f92c: b480 push {r7} - 800f92e: b085 sub sp, #20 - 800f930: af00 add r7, sp, #0 - 800f932: 60f8 str r0, [r7, #12] - 800f934: 60b9 str r1, [r7, #8] - 800f936: 607a str r2, [r7, #4] + 800f930: b480 push {r7} + 800f932: b085 sub sp, #20 + 800f934: af00 add r7, sp, #0 + 800f936: 60f8 str r0, [r7, #12] + 800f938: 60b9 str r1, [r7, #8] + 800f93a: 607a str r2, [r7, #4] /* Simulate the stack frame as it would be created by a context switch interrupt. */ /* Offset added to account for the way the MCU uses the stack on entry/exit of interrupts, and to ensure alignment. */ pxTopOfStack--; - 800f938: 68fb ldr r3, [r7, #12] - 800f93a: 3b04 subs r3, #4 - 800f93c: 60fb str r3, [r7, #12] + 800f93c: 68fb ldr r3, [r7, #12] + 800f93e: 3b04 subs r3, #4 + 800f940: 60fb str r3, [r7, #12] *pxTopOfStack = portINITIAL_XPSR; /* xPSR */ - 800f93e: 68fb ldr r3, [r7, #12] - 800f940: f04f 7280 mov.w r2, #16777216 ; 0x1000000 - 800f944: 601a str r2, [r3, #0] + 800f942: 68fb ldr r3, [r7, #12] + 800f944: f04f 7280 mov.w r2, #16777216 ; 0x1000000 + 800f948: 601a str r2, [r3, #0] pxTopOfStack--; - 800f946: 68fb ldr r3, [r7, #12] - 800f948: 3b04 subs r3, #4 - 800f94a: 60fb str r3, [r7, #12] + 800f94a: 68fb ldr r3, [r7, #12] + 800f94c: 3b04 subs r3, #4 + 800f94e: 60fb str r3, [r7, #12] *pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */ - 800f94c: 68bb ldr r3, [r7, #8] - 800f94e: f023 0201 bic.w r2, r3, #1 - 800f952: 68fb ldr r3, [r7, #12] - 800f954: 601a str r2, [r3, #0] - pxTopOfStack--; + 800f950: 68bb ldr r3, [r7, #8] + 800f952: f023 0201 bic.w r2, r3, #1 800f956: 68fb ldr r3, [r7, #12] - 800f958: 3b04 subs r3, #4 - 800f95a: 60fb str r3, [r7, #12] + 800f958: 601a str r2, [r3, #0] + pxTopOfStack--; + 800f95a: 68fb ldr r3, [r7, #12] + 800f95c: 3b04 subs r3, #4 + 800f95e: 60fb str r3, [r7, #12] *pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */ - 800f95c: 4a0c ldr r2, [pc, #48] ; (800f990 ) - 800f95e: 68fb ldr r3, [r7, #12] - 800f960: 601a str r2, [r3, #0] + 800f960: 4a0c ldr r2, [pc, #48] ; (800f994 ) + 800f962: 68fb ldr r3, [r7, #12] + 800f964: 601a str r2, [r3, #0] /* Save code space by skipping register initialisation. */ pxTopOfStack -= 5; /* R12, R3, R2 and R1. */ - 800f962: 68fb ldr r3, [r7, #12] - 800f964: 3b14 subs r3, #20 - 800f966: 60fb str r3, [r7, #12] + 800f966: 68fb ldr r3, [r7, #12] + 800f968: 3b14 subs r3, #20 + 800f96a: 60fb str r3, [r7, #12] *pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */ - 800f968: 687a ldr r2, [r7, #4] - 800f96a: 68fb ldr r3, [r7, #12] - 800f96c: 601a str r2, [r3, #0] + 800f96c: 687a ldr r2, [r7, #4] + 800f96e: 68fb ldr r3, [r7, #12] + 800f970: 601a str r2, [r3, #0] /* A save method is being used that requires each task to maintain its own exec return value. */ pxTopOfStack--; - 800f96e: 68fb ldr r3, [r7, #12] - 800f970: 3b04 subs r3, #4 - 800f972: 60fb str r3, [r7, #12] + 800f972: 68fb ldr r3, [r7, #12] + 800f974: 3b04 subs r3, #4 + 800f976: 60fb str r3, [r7, #12] *pxTopOfStack = portINITIAL_EXC_RETURN; - 800f974: 68fb ldr r3, [r7, #12] - 800f976: f06f 0202 mvn.w r2, #2 - 800f97a: 601a str r2, [r3, #0] + 800f978: 68fb ldr r3, [r7, #12] + 800f97a: f06f 0202 mvn.w r2, #2 + 800f97e: 601a str r2, [r3, #0] pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */ - 800f97c: 68fb ldr r3, [r7, #12] - 800f97e: 3b20 subs r3, #32 - 800f980: 60fb str r3, [r7, #12] + 800f980: 68fb ldr r3, [r7, #12] + 800f982: 3b20 subs r3, #32 + 800f984: 60fb str r3, [r7, #12] return pxTopOfStack; - 800f982: 68fb ldr r3, [r7, #12] + 800f986: 68fb ldr r3, [r7, #12] } - 800f984: 4618 mov r0, r3 - 800f986: 3714 adds r7, #20 - 800f988: 46bd mov sp, r7 - 800f98a: f85d 7b04 ldr.w r7, [sp], #4 - 800f98e: 4770 bx lr - 800f990: 0800f995 .word 0x0800f995 + 800f988: 4618 mov r0, r3 + 800f98a: 3714 adds r7, #20 + 800f98c: 46bd mov sp, r7 + 800f98e: f85d 7b04 ldr.w r7, [sp], #4 + 800f992: 4770 bx lr + 800f994: 0800f999 .word 0x0800f999 -0800f994 : +0800f998 : /*-----------------------------------------------------------*/ static void prvTaskExitError( void ) { - 800f994: b480 push {r7} - 800f996: b085 sub sp, #20 - 800f998: af00 add r7, sp, #0 + 800f998: b480 push {r7} + 800f99a: b085 sub sp, #20 + 800f99c: af00 add r7, sp, #0 volatile uint32_t ulDummy = 0; - 800f99a: 2300 movs r3, #0 - 800f99c: 607b str r3, [r7, #4] + 800f99e: 2300 movs r3, #0 + 800f9a0: 607b str r3, [r7, #4] its caller as there is nothing to return to. If a task wants to exit it should instead call vTaskDelete( NULL ). Artificially force an assert() to be triggered if configASSERT() is defined, then stop here so application writers can catch the error. */ configASSERT( uxCriticalNesting == ~0UL ); - 800f99e: 4b13 ldr r3, [pc, #76] ; (800f9ec ) - 800f9a0: 681b ldr r3, [r3, #0] - 800f9a2: f1b3 3fff cmp.w r3, #4294967295 - 800f9a6: d00b beq.n 800f9c0 - 800f9a8: f04f 0350 mov.w r3, #80 ; 0x50 - 800f9ac: b672 cpsid i - 800f9ae: f383 8811 msr BASEPRI, r3 - 800f9b2: f3bf 8f6f isb sy - 800f9b6: f3bf 8f4f dsb sy - 800f9ba: b662 cpsie i - 800f9bc: 60fb str r3, [r7, #12] - 800f9be: e7fe b.n 800f9be - 800f9c0: f04f 0350 mov.w r3, #80 ; 0x50 - 800f9c4: b672 cpsid i - 800f9c6: f383 8811 msr BASEPRI, r3 - 800f9ca: f3bf 8f6f isb sy - 800f9ce: f3bf 8f4f dsb sy - 800f9d2: b662 cpsie i - 800f9d4: 60bb str r3, [r7, #8] + 800f9a2: 4b13 ldr r3, [pc, #76] ; (800f9f0 ) + 800f9a4: 681b ldr r3, [r3, #0] + 800f9a6: f1b3 3fff cmp.w r3, #4294967295 + 800f9aa: d00b beq.n 800f9c4 + 800f9ac: f04f 0350 mov.w r3, #80 ; 0x50 + 800f9b0: b672 cpsid i + 800f9b2: f383 8811 msr BASEPRI, r3 + 800f9b6: f3bf 8f6f isb sy + 800f9ba: f3bf 8f4f dsb sy + 800f9be: b662 cpsie i + 800f9c0: 60fb str r3, [r7, #12] + 800f9c2: e7fe b.n 800f9c2 + 800f9c4: f04f 0350 mov.w r3, #80 ; 0x50 + 800f9c8: b672 cpsid i + 800f9ca: f383 8811 msr BASEPRI, r3 + 800f9ce: f3bf 8f6f isb sy + 800f9d2: f3bf 8f4f dsb sy + 800f9d6: b662 cpsie i + 800f9d8: 60bb str r3, [r7, #8] portDISABLE_INTERRUPTS(); while( ulDummy == 0 ) - 800f9d6: bf00 nop - 800f9d8: 687b ldr r3, [r7, #4] - 800f9da: 2b00 cmp r3, #0 - 800f9dc: d0fc beq.n 800f9d8 + 800f9da: bf00 nop + 800f9dc: 687b ldr r3, [r7, #4] + 800f9de: 2b00 cmp r3, #0 + 800f9e0: d0fc beq.n 800f9dc about code appearing after this function is called - making ulDummy volatile makes the compiler think the function could return and therefore not output an 'unreachable code' warning for code that appears after it. */ } } - 800f9de: bf00 nop - 800f9e0: 3714 adds r7, #20 - 800f9e2: 46bd mov sp, r7 - 800f9e4: f85d 7b04 ldr.w r7, [sp], #4 - 800f9e8: 4770 bx lr - 800f9ea: bf00 nop - 800f9ec: 20000064 .word 0x20000064 + 800f9e2: bf00 nop + 800f9e4: 3714 adds r7, #20 + 800f9e6: 46bd mov sp, r7 + 800f9e8: f85d 7b04 ldr.w r7, [sp], #4 + 800f9ec: 4770 bx lr + 800f9ee: bf00 nop + 800f9f0: 20000064 .word 0x20000064 + ... -0800f9f0 : +0800fa00 : /*-----------------------------------------------------------*/ void vPortSVCHandler( void ) { __asm volatile ( - 800f9f0: 4b07 ldr r3, [pc, #28] ; (800fa10 ) - 800f9f2: 6819 ldr r1, [r3, #0] - 800f9f4: 6808 ldr r0, [r1, #0] - 800f9f6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800f9fa: f380 8809 msr PSP, r0 - 800f9fe: f3bf 8f6f isb sy - 800fa02: f04f 0000 mov.w r0, #0 - 800fa06: f380 8811 msr BASEPRI, r0 - 800fa0a: 4770 bx lr - 800fa0c: f3af 8000 nop.w - -0800fa10 : - 800fa10: 20000580 .word 0x20000580 + 800fa00: 4b07 ldr r3, [pc, #28] ; (800fa20 ) + 800fa02: 6819 ldr r1, [r3, #0] + 800fa04: 6808 ldr r0, [r1, #0] + 800fa06: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800fa0a: f380 8809 msr PSP, r0 + 800fa0e: f3bf 8f6f isb sy + 800fa12: f04f 0000 mov.w r0, #0 + 800fa16: f380 8811 msr BASEPRI, r0 + 800fa1a: 4770 bx lr + 800fa1c: f3af 8000 nop.w + +0800fa20 : + 800fa20: 20000580 .word 0x20000580 " bx r14 \n" " \n" " .align 4 \n" "pxCurrentTCBConst2: .word pxCurrentTCB \n" ); } - 800fa14: bf00 nop - 800fa16: bf00 nop + 800fa24: bf00 nop + 800fa26: bf00 nop -0800fa18 : +0800fa28 : { /* Start the first task. This also clears the bit that indicates the FPU is in use in case the FPU was used before the scheduler was started - which would otherwise result in the unnecessary leaving of space in the SVC stack for lazy saving of FPU registers. */ __asm volatile( - 800fa18: 4808 ldr r0, [pc, #32] ; (800fa3c ) - 800fa1a: 6800 ldr r0, [r0, #0] - 800fa1c: 6800 ldr r0, [r0, #0] - 800fa1e: f380 8808 msr MSP, r0 - 800fa22: f04f 0000 mov.w r0, #0 - 800fa26: f380 8814 msr CONTROL, r0 - 800fa2a: b662 cpsie i - 800fa2c: b661 cpsie f - 800fa2e: f3bf 8f4f dsb sy - 800fa32: f3bf 8f6f isb sy - 800fa36: df00 svc 0 - 800fa38: bf00 nop + 800fa28: 4808 ldr r0, [pc, #32] ; (800fa4c ) + 800fa2a: 6800 ldr r0, [r0, #0] + 800fa2c: 6800 ldr r0, [r0, #0] + 800fa2e: f380 8808 msr MSP, r0 + 800fa32: f04f 0000 mov.w r0, #0 + 800fa36: f380 8814 msr CONTROL, r0 + 800fa3a: b662 cpsie i + 800fa3c: b661 cpsie f + 800fa3e: f3bf 8f4f dsb sy + 800fa42: f3bf 8f6f isb sy + 800fa46: df00 svc 0 + 800fa48: bf00 nop " dsb \n" " isb \n" " svc 0 \n" /* System call to start first task. */ " nop \n" ); } - 800fa3a: bf00 nop - 800fa3c: e000ed08 .word 0xe000ed08 + 800fa4a: bf00 nop + 800fa4c: e000ed08 .word 0xe000ed08 -0800fa40 : +0800fa50 : /* * See header file for description. */ BaseType_t xPortStartScheduler( void ) { - 800fa40: b580 push {r7, lr} - 800fa42: b084 sub sp, #16 - 800fa44: af00 add r7, sp, #0 + 800fa50: b580 push {r7, lr} + 800fa52: b084 sub sp, #16 + 800fa54: af00 add r7, sp, #0 configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY ); #if( configASSERT_DEFINED == 1 ) { volatile uint32_t ulOriginalPriority; volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER ); - 800fa46: 4b36 ldr r3, [pc, #216] ; (800fb20 ) - 800fa48: 60fb str r3, [r7, #12] + 800fa56: 4b36 ldr r3, [pc, #216] ; (800fb30 ) + 800fa58: 60fb str r3, [r7, #12] functions can be called. ISR safe functions are those that end in "FromISR". FreeRTOS maintains separate thread and ISR API functions to ensure interrupt entry is as fast and simple as possible. Save the interrupt priority value that is about to be clobbered. */ ulOriginalPriority = *pucFirstUserPriorityRegister; - 800fa4a: 68fb ldr r3, [r7, #12] - 800fa4c: 781b ldrb r3, [r3, #0] - 800fa4e: b2db uxtb r3, r3 - 800fa50: 607b str r3, [r7, #4] + 800fa5a: 68fb ldr r3, [r7, #12] + 800fa5c: 781b ldrb r3, [r3, #0] + 800fa5e: b2db uxtb r3, r3 + 800fa60: 607b str r3, [r7, #4] /* Determine the number of priority bits available. First write to all possible bits. */ *pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE; - 800fa52: 68fb ldr r3, [r7, #12] - 800fa54: 22ff movs r2, #255 ; 0xff - 800fa56: 701a strb r2, [r3, #0] + 800fa62: 68fb ldr r3, [r7, #12] + 800fa64: 22ff movs r2, #255 ; 0xff + 800fa66: 701a strb r2, [r3, #0] /* Read the value back to see how many bits stuck. */ ucMaxPriorityValue = *pucFirstUserPriorityRegister; - 800fa58: 68fb ldr r3, [r7, #12] - 800fa5a: 781b ldrb r3, [r3, #0] - 800fa5c: b2db uxtb r3, r3 - 800fa5e: 70fb strb r3, [r7, #3] + 800fa68: 68fb ldr r3, [r7, #12] + 800fa6a: 781b ldrb r3, [r3, #0] + 800fa6c: b2db uxtb r3, r3 + 800fa6e: 70fb strb r3, [r7, #3] /* Use the same mask on the maximum system call priority. */ ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue; - 800fa60: 78fb ldrb r3, [r7, #3] - 800fa62: b2db uxtb r3, r3 - 800fa64: f003 0350 and.w r3, r3, #80 ; 0x50 - 800fa68: b2da uxtb r2, r3 - 800fa6a: 4b2e ldr r3, [pc, #184] ; (800fb24 ) - 800fa6c: 701a strb r2, [r3, #0] + 800fa70: 78fb ldrb r3, [r7, #3] + 800fa72: b2db uxtb r3, r3 + 800fa74: f003 0350 and.w r3, r3, #80 ; 0x50 + 800fa78: b2da uxtb r2, r3 + 800fa7a: 4b2e ldr r3, [pc, #184] ; (800fb34 ) + 800fa7c: 701a strb r2, [r3, #0] /* Calculate the maximum acceptable priority group value for the number of bits read back. */ ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS; - 800fa6e: 4b2e ldr r3, [pc, #184] ; (800fb28 ) - 800fa70: 2207 movs r2, #7 - 800fa72: 601a str r2, [r3, #0] + 800fa7e: 4b2e ldr r3, [pc, #184] ; (800fb38 ) + 800fa80: 2207 movs r2, #7 + 800fa82: 601a str r2, [r3, #0] while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE ) - 800fa74: e009 b.n 800fa8a + 800fa84: e009 b.n 800fa9a { ulMaxPRIGROUPValue--; - 800fa76: 4b2c ldr r3, [pc, #176] ; (800fb28 ) - 800fa78: 681b ldr r3, [r3, #0] - 800fa7a: 3b01 subs r3, #1 - 800fa7c: 4a2a ldr r2, [pc, #168] ; (800fb28 ) - 800fa7e: 6013 str r3, [r2, #0] + 800fa86: 4b2c ldr r3, [pc, #176] ; (800fb38 ) + 800fa88: 681b ldr r3, [r3, #0] + 800fa8a: 3b01 subs r3, #1 + 800fa8c: 4a2a ldr r2, [pc, #168] ; (800fb38 ) + 800fa8e: 6013 str r3, [r2, #0] ucMaxPriorityValue <<= ( uint8_t ) 0x01; - 800fa80: 78fb ldrb r3, [r7, #3] - 800fa82: b2db uxtb r3, r3 - 800fa84: 005b lsls r3, r3, #1 - 800fa86: b2db uxtb r3, r3 - 800fa88: 70fb strb r3, [r7, #3] + 800fa90: 78fb ldrb r3, [r7, #3] + 800fa92: b2db uxtb r3, r3 + 800fa94: 005b lsls r3, r3, #1 + 800fa96: b2db uxtb r3, r3 + 800fa98: 70fb strb r3, [r7, #3] while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE ) - 800fa8a: 78fb ldrb r3, [r7, #3] - 800fa8c: b2db uxtb r3, r3 - 800fa8e: f003 0380 and.w r3, r3, #128 ; 0x80 - 800fa92: 2b80 cmp r3, #128 ; 0x80 - 800fa94: d0ef beq.n 800fa76 + 800fa9a: 78fb ldrb r3, [r7, #3] + 800fa9c: b2db uxtb r3, r3 + 800fa9e: f003 0380 and.w r3, r3, #128 ; 0x80 + 800faa2: 2b80 cmp r3, #128 ; 0x80 + 800faa4: d0ef beq.n 800fa86 #ifdef configPRIO_BITS { /* Check the FreeRTOS configuration that defines the number of priority bits matches the number of priority bits actually queried from the hardware. */ configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS ); - 800fa96: 4b24 ldr r3, [pc, #144] ; (800fb28 ) - 800fa98: 681b ldr r3, [r3, #0] - 800fa9a: f1c3 0307 rsb r3, r3, #7 - 800fa9e: 2b04 cmp r3, #4 - 800faa0: d00b beq.n 800faba - 800faa2: f04f 0350 mov.w r3, #80 ; 0x50 - 800faa6: b672 cpsid i - 800faa8: f383 8811 msr BASEPRI, r3 - 800faac: f3bf 8f6f isb sy - 800fab0: f3bf 8f4f dsb sy - 800fab4: b662 cpsie i - 800fab6: 60bb str r3, [r7, #8] - 800fab8: e7fe b.n 800fab8 + 800faa6: 4b24 ldr r3, [pc, #144] ; (800fb38 ) + 800faa8: 681b ldr r3, [r3, #0] + 800faaa: f1c3 0307 rsb r3, r3, #7 + 800faae: 2b04 cmp r3, #4 + 800fab0: d00b beq.n 800faca + 800fab2: f04f 0350 mov.w r3, #80 ; 0x50 + 800fab6: b672 cpsid i + 800fab8: f383 8811 msr BASEPRI, r3 + 800fabc: f3bf 8f6f isb sy + 800fac0: f3bf 8f4f dsb sy + 800fac4: b662 cpsie i + 800fac6: 60bb str r3, [r7, #8] + 800fac8: e7fe b.n 800fac8 } #endif /* Shift the priority group value back to its position within the AIRCR register. */ ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT; - 800faba: 4b1b ldr r3, [pc, #108] ; (800fb28 ) - 800fabc: 681b ldr r3, [r3, #0] - 800fabe: 021b lsls r3, r3, #8 - 800fac0: 4a19 ldr r2, [pc, #100] ; (800fb28 ) - 800fac2: 6013 str r3, [r2, #0] + 800faca: 4b1b ldr r3, [pc, #108] ; (800fb38 ) + 800facc: 681b ldr r3, [r3, #0] + 800face: 021b lsls r3, r3, #8 + 800fad0: 4a19 ldr r2, [pc, #100] ; (800fb38 ) + 800fad2: 6013 str r3, [r2, #0] ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK; - 800fac4: 4b18 ldr r3, [pc, #96] ; (800fb28 ) - 800fac6: 681b ldr r3, [r3, #0] - 800fac8: f403 63e0 and.w r3, r3, #1792 ; 0x700 - 800facc: 4a16 ldr r2, [pc, #88] ; (800fb28 ) - 800face: 6013 str r3, [r2, #0] + 800fad4: 4b18 ldr r3, [pc, #96] ; (800fb38 ) + 800fad6: 681b ldr r3, [r3, #0] + 800fad8: f403 63e0 and.w r3, r3, #1792 ; 0x700 + 800fadc: 4a16 ldr r2, [pc, #88] ; (800fb38 ) + 800fade: 6013 str r3, [r2, #0] /* Restore the clobbered interrupt priority register to its original value. */ *pucFirstUserPriorityRegister = ulOriginalPriority; - 800fad0: 687b ldr r3, [r7, #4] - 800fad2: b2da uxtb r2, r3 - 800fad4: 68fb ldr r3, [r7, #12] - 800fad6: 701a strb r2, [r3, #0] + 800fae0: 687b ldr r3, [r7, #4] + 800fae2: b2da uxtb r2, r3 + 800fae4: 68fb ldr r3, [r7, #12] + 800fae6: 701a strb r2, [r3, #0] } #endif /* conifgASSERT_DEFINED */ /* Make PendSV and SysTick the lowest priority interrupts. */ portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI; - 800fad8: 4b14 ldr r3, [pc, #80] ; (800fb2c ) - 800fada: 681b ldr r3, [r3, #0] - 800fadc: 4a13 ldr r2, [pc, #76] ; (800fb2c ) - 800fade: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 - 800fae2: 6013 str r3, [r2, #0] + 800fae8: 4b14 ldr r3, [pc, #80] ; (800fb3c ) + 800faea: 681b ldr r3, [r3, #0] + 800faec: 4a13 ldr r2, [pc, #76] ; (800fb3c ) + 800faee: f443 0370 orr.w r3, r3, #15728640 ; 0xf00000 + 800faf2: 6013 str r3, [r2, #0] portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI; - 800fae4: 4b11 ldr r3, [pc, #68] ; (800fb2c ) - 800fae6: 681b ldr r3, [r3, #0] - 800fae8: 4a10 ldr r2, [pc, #64] ; (800fb2c ) - 800faea: f043 4370 orr.w r3, r3, #4026531840 ; 0xf0000000 - 800faee: 6013 str r3, [r2, #0] + 800faf4: 4b11 ldr r3, [pc, #68] ; (800fb3c ) + 800faf6: 681b ldr r3, [r3, #0] + 800faf8: 4a10 ldr r2, [pc, #64] ; (800fb3c ) + 800fafa: f043 4370 orr.w r3, r3, #4026531840 ; 0xf0000000 + 800fafe: 6013 str r3, [r2, #0] /* Start the timer that generates the tick ISR. Interrupts are disabled here already. */ vPortSetupTimerInterrupt(); - 800faf0: f000 f8d4 bl 800fc9c + 800fb00: f000 f8d4 bl 800fcac /* Initialise the critical nesting count ready for the first task. */ uxCriticalNesting = 0; - 800faf4: 4b0e ldr r3, [pc, #56] ; (800fb30 ) - 800faf6: 2200 movs r2, #0 - 800faf8: 601a str r2, [r3, #0] + 800fb04: 4b0e ldr r3, [pc, #56] ; (800fb40 ) + 800fb06: 2200 movs r2, #0 + 800fb08: 601a str r2, [r3, #0] /* Ensure the VFP is enabled - it should be anyway. */ vPortEnableVFP(); - 800fafa: f000 f8f3 bl 800fce4 + 800fb0a: f000 f8f3 bl 800fcf4 /* Lazy save always. */ *( portFPCCR ) |= portASPEN_AND_LSPEN_BITS; - 800fafe: 4b0d ldr r3, [pc, #52] ; (800fb34 ) - 800fb00: 681b ldr r3, [r3, #0] - 800fb02: 4a0c ldr r2, [pc, #48] ; (800fb34 ) - 800fb04: f043 4340 orr.w r3, r3, #3221225472 ; 0xc0000000 - 800fb08: 6013 str r3, [r2, #0] + 800fb0e: 4b0d ldr r3, [pc, #52] ; (800fb44 ) + 800fb10: 681b ldr r3, [r3, #0] + 800fb12: 4a0c ldr r2, [pc, #48] ; (800fb44 ) + 800fb14: f043 4340 orr.w r3, r3, #3221225472 ; 0xc0000000 + 800fb18: 6013 str r3, [r2, #0] /* Start the first task. */ prvPortStartFirstTask(); - 800fb0a: f7ff ff85 bl 800fa18 + 800fb1a: f7ff ff85 bl 800fa28 exit error function to prevent compiler warnings about a static function not being called in the case that the application writer overrides this functionality by defining configTASK_RETURN_ADDRESS. Call vTaskSwitchContext() so link time optimisation does not remove the symbol. */ vTaskSwitchContext(); - 800fb0e: f7ff fa69 bl 800efe4 + 800fb1e: f7ff fa63 bl 800efe8 prvTaskExitError(); - 800fb12: f7ff ff3f bl 800f994 + 800fb22: f7ff ff39 bl 800f998 /* Should not get here! */ return 0; - 800fb16: 2300 movs r3, #0 -} - 800fb18: 4618 mov r0, r3 - 800fb1a: 3710 adds r7, #16 - 800fb1c: 46bd mov sp, r7 - 800fb1e: bd80 pop {r7, pc} - 800fb20: e000e400 .word 0xe000e400 - 800fb24: 200006ac .word 0x200006ac - 800fb28: 200006b0 .word 0x200006b0 - 800fb2c: e000ed20 .word 0xe000ed20 - 800fb30: 20000064 .word 0x20000064 - 800fb34: e000ef34 .word 0xe000ef34 - -0800fb38 : + 800fb26: 2300 movs r3, #0 +} + 800fb28: 4618 mov r0, r3 + 800fb2a: 3710 adds r7, #16 + 800fb2c: 46bd mov sp, r7 + 800fb2e: bd80 pop {r7, pc} + 800fb30: e000e400 .word 0xe000e400 + 800fb34: 200006ac .word 0x200006ac + 800fb38: 200006b0 .word 0x200006b0 + 800fb3c: e000ed20 .word 0xe000ed20 + 800fb40: 20000064 .word 0x20000064 + 800fb44: e000ef34 .word 0xe000ef34 + +0800fb48 : configASSERT( uxCriticalNesting == 1000UL ); } /*-----------------------------------------------------------*/ void vPortEnterCritical( void ) { - 800fb38: b480 push {r7} - 800fb3a: b083 sub sp, #12 - 800fb3c: af00 add r7, sp, #0 - 800fb3e: f04f 0350 mov.w r3, #80 ; 0x50 - 800fb42: b672 cpsid i - 800fb44: f383 8811 msr BASEPRI, r3 - 800fb48: f3bf 8f6f isb sy - 800fb4c: f3bf 8f4f dsb sy - 800fb50: b662 cpsie i - 800fb52: 607b str r3, [r7, #4] + 800fb48: b480 push {r7} + 800fb4a: b083 sub sp, #12 + 800fb4c: af00 add r7, sp, #0 + 800fb4e: f04f 0350 mov.w r3, #80 ; 0x50 + 800fb52: b672 cpsid i + 800fb54: f383 8811 msr BASEPRI, r3 + 800fb58: f3bf 8f6f isb sy + 800fb5c: f3bf 8f4f dsb sy + 800fb60: b662 cpsie i + 800fb62: 607b str r3, [r7, #4] portDISABLE_INTERRUPTS(); uxCriticalNesting++; - 800fb54: 4b0f ldr r3, [pc, #60] ; (800fb94 ) - 800fb56: 681b ldr r3, [r3, #0] - 800fb58: 3301 adds r3, #1 - 800fb5a: 4a0e ldr r2, [pc, #56] ; (800fb94 ) - 800fb5c: 6013 str r3, [r2, #0] + 800fb64: 4b0f ldr r3, [pc, #60] ; (800fba4 ) + 800fb66: 681b ldr r3, [r3, #0] + 800fb68: 3301 adds r3, #1 + 800fb6a: 4a0e ldr r2, [pc, #56] ; (800fba4 ) + 800fb6c: 6013 str r3, [r2, #0] /* This is not the interrupt safe version of the enter critical function so assert() if it is being called from an interrupt context. Only API functions that end in "FromISR" can be used in an interrupt. Only assert if the critical nesting count is 1 to protect against recursive calls if the assert function also uses a critical section. */ if( uxCriticalNesting == 1 ) - 800fb5e: 4b0d ldr r3, [pc, #52] ; (800fb94 ) - 800fb60: 681b ldr r3, [r3, #0] - 800fb62: 2b01 cmp r3, #1 - 800fb64: d110 bne.n 800fb88 + 800fb6e: 4b0d ldr r3, [pc, #52] ; (800fba4 ) + 800fb70: 681b ldr r3, [r3, #0] + 800fb72: 2b01 cmp r3, #1 + 800fb74: d110 bne.n 800fb98 { configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 ); - 800fb66: 4b0c ldr r3, [pc, #48] ; (800fb98 ) - 800fb68: 681b ldr r3, [r3, #0] - 800fb6a: b2db uxtb r3, r3 - 800fb6c: 2b00 cmp r3, #0 - 800fb6e: d00b beq.n 800fb88 - 800fb70: f04f 0350 mov.w r3, #80 ; 0x50 - 800fb74: b672 cpsid i - 800fb76: f383 8811 msr BASEPRI, r3 - 800fb7a: f3bf 8f6f isb sy - 800fb7e: f3bf 8f4f dsb sy - 800fb82: b662 cpsie i - 800fb84: 603b str r3, [r7, #0] - 800fb86: e7fe b.n 800fb86 + 800fb76: 4b0c ldr r3, [pc, #48] ; (800fba8 ) + 800fb78: 681b ldr r3, [r3, #0] + 800fb7a: b2db uxtb r3, r3 + 800fb7c: 2b00 cmp r3, #0 + 800fb7e: d00b beq.n 800fb98 + 800fb80: f04f 0350 mov.w r3, #80 ; 0x50 + 800fb84: b672 cpsid i + 800fb86: f383 8811 msr BASEPRI, r3 + 800fb8a: f3bf 8f6f isb sy + 800fb8e: f3bf 8f4f dsb sy + 800fb92: b662 cpsie i + 800fb94: 603b str r3, [r7, #0] + 800fb96: e7fe b.n 800fb96 } } - 800fb88: bf00 nop - 800fb8a: 370c adds r7, #12 - 800fb8c: 46bd mov sp, r7 - 800fb8e: f85d 7b04 ldr.w r7, [sp], #4 - 800fb92: 4770 bx lr - 800fb94: 20000064 .word 0x20000064 - 800fb98: e000ed04 .word 0xe000ed04 + 800fb98: bf00 nop + 800fb9a: 370c adds r7, #12 + 800fb9c: 46bd mov sp, r7 + 800fb9e: f85d 7b04 ldr.w r7, [sp], #4 + 800fba2: 4770 bx lr + 800fba4: 20000064 .word 0x20000064 + 800fba8: e000ed04 .word 0xe000ed04 -0800fb9c : +0800fbac : /*-----------------------------------------------------------*/ void vPortExitCritical( void ) { - 800fb9c: b480 push {r7} - 800fb9e: b083 sub sp, #12 - 800fba0: af00 add r7, sp, #0 + 800fbac: b480 push {r7} + 800fbae: b083 sub sp, #12 + 800fbb0: af00 add r7, sp, #0 configASSERT( uxCriticalNesting ); - 800fba2: 4b12 ldr r3, [pc, #72] ; (800fbec ) - 800fba4: 681b ldr r3, [r3, #0] - 800fba6: 2b00 cmp r3, #0 - 800fba8: d10b bne.n 800fbc2 - 800fbaa: f04f 0350 mov.w r3, #80 ; 0x50 - 800fbae: b672 cpsid i - 800fbb0: f383 8811 msr BASEPRI, r3 - 800fbb4: f3bf 8f6f isb sy - 800fbb8: f3bf 8f4f dsb sy - 800fbbc: b662 cpsie i - 800fbbe: 607b str r3, [r7, #4] - 800fbc0: e7fe b.n 800fbc0 + 800fbb2: 4b12 ldr r3, [pc, #72] ; (800fbfc ) + 800fbb4: 681b ldr r3, [r3, #0] + 800fbb6: 2b00 cmp r3, #0 + 800fbb8: d10b bne.n 800fbd2 + 800fbba: f04f 0350 mov.w r3, #80 ; 0x50 + 800fbbe: b672 cpsid i + 800fbc0: f383 8811 msr BASEPRI, r3 + 800fbc4: f3bf 8f6f isb sy + 800fbc8: f3bf 8f4f dsb sy + 800fbcc: b662 cpsie i + 800fbce: 607b str r3, [r7, #4] + 800fbd0: e7fe b.n 800fbd0 uxCriticalNesting--; - 800fbc2: 4b0a ldr r3, [pc, #40] ; (800fbec ) - 800fbc4: 681b ldr r3, [r3, #0] - 800fbc6: 3b01 subs r3, #1 - 800fbc8: 4a08 ldr r2, [pc, #32] ; (800fbec ) - 800fbca: 6013 str r3, [r2, #0] + 800fbd2: 4b0a ldr r3, [pc, #40] ; (800fbfc ) + 800fbd4: 681b ldr r3, [r3, #0] + 800fbd6: 3b01 subs r3, #1 + 800fbd8: 4a08 ldr r2, [pc, #32] ; (800fbfc ) + 800fbda: 6013 str r3, [r2, #0] if( uxCriticalNesting == 0 ) - 800fbcc: 4b07 ldr r3, [pc, #28] ; (800fbec ) - 800fbce: 681b ldr r3, [r3, #0] - 800fbd0: 2b00 cmp r3, #0 - 800fbd2: d104 bne.n 800fbde - 800fbd4: 2300 movs r3, #0 - 800fbd6: 603b str r3, [r7, #0] + 800fbdc: 4b07 ldr r3, [pc, #28] ; (800fbfc ) + 800fbde: 681b ldr r3, [r3, #0] + 800fbe0: 2b00 cmp r3, #0 + 800fbe2: d104 bne.n 800fbee + 800fbe4: 2300 movs r3, #0 + 800fbe6: 603b str r3, [r7, #0] __asm volatile - 800fbd8: 683b ldr r3, [r7, #0] - 800fbda: f383 8811 msr BASEPRI, r3 + 800fbe8: 683b ldr r3, [r7, #0] + 800fbea: f383 8811 msr BASEPRI, r3 { portENABLE_INTERRUPTS(); } } - 800fbde: bf00 nop - 800fbe0: 370c adds r7, #12 - 800fbe2: 46bd mov sp, r7 - 800fbe4: f85d 7b04 ldr.w r7, [sp], #4 - 800fbe8: 4770 bx lr - 800fbea: bf00 nop - 800fbec: 20000064 .word 0x20000064 + 800fbee: bf00 nop + 800fbf0: 370c adds r7, #12 + 800fbf2: 46bd mov sp, r7 + 800fbf4: f85d 7b04 ldr.w r7, [sp], #4 + 800fbf8: 4770 bx lr + 800fbfa: bf00 nop + 800fbfc: 20000064 .word 0x20000064 -0800fbf0 : +0800fc00 : void xPortPendSVHandler( void ) { /* This is a naked function. */ __asm volatile - 800fbf0: f3ef 8009 mrs r0, PSP - 800fbf4: f3bf 8f6f isb sy - 800fbf8: 4b15 ldr r3, [pc, #84] ; (800fc50 ) - 800fbfa: 681a ldr r2, [r3, #0] - 800fbfc: f01e 0f10 tst.w lr, #16 - 800fc00: bf08 it eq - 800fc02: ed20 8a10 vstmdbeq r0!, {s16-s31} - 800fc06: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800fc0a: 6010 str r0, [r2, #0] - 800fc0c: e92d 0009 stmdb sp!, {r0, r3} - 800fc10: f04f 0050 mov.w r0, #80 ; 0x50 - 800fc14: b672 cpsid i - 800fc16: f380 8811 msr BASEPRI, r0 - 800fc1a: f3bf 8f4f dsb sy - 800fc1e: f3bf 8f6f isb sy - 800fc22: b662 cpsie i - 800fc24: f7ff f9de bl 800efe4 - 800fc28: f04f 0000 mov.w r0, #0 - 800fc2c: f380 8811 msr BASEPRI, r0 - 800fc30: bc09 pop {r0, r3} - 800fc32: 6819 ldr r1, [r3, #0] - 800fc34: 6808 ldr r0, [r1, #0] - 800fc36: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 800fc3a: f01e 0f10 tst.w lr, #16 - 800fc3e: bf08 it eq - 800fc40: ecb0 8a10 vldmiaeq r0!, {s16-s31} - 800fc44: f380 8809 msr PSP, r0 - 800fc48: f3bf 8f6f isb sy - 800fc4c: 4770 bx lr - 800fc4e: bf00 nop - -0800fc50 : - 800fc50: 20000580 .word 0x20000580 + 800fc00: f3ef 8009 mrs r0, PSP + 800fc04: f3bf 8f6f isb sy + 800fc08: 4b15 ldr r3, [pc, #84] ; (800fc60 ) + 800fc0a: 681a ldr r2, [r3, #0] + 800fc0c: f01e 0f10 tst.w lr, #16 + 800fc10: bf08 it eq + 800fc12: ed20 8a10 vstmdbeq r0!, {s16-s31} + 800fc16: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800fc1a: 6010 str r0, [r2, #0] + 800fc1c: e92d 0009 stmdb sp!, {r0, r3} + 800fc20: f04f 0050 mov.w r0, #80 ; 0x50 + 800fc24: b672 cpsid i + 800fc26: f380 8811 msr BASEPRI, r0 + 800fc2a: f3bf 8f4f dsb sy + 800fc2e: f3bf 8f6f isb sy + 800fc32: b662 cpsie i + 800fc34: f7ff f9d8 bl 800efe8 + 800fc38: f04f 0000 mov.w r0, #0 + 800fc3c: f380 8811 msr BASEPRI, r0 + 800fc40: bc09 pop {r0, r3} + 800fc42: 6819 ldr r1, [r3, #0] + 800fc44: 6808 ldr r0, [r1, #0] + 800fc46: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 800fc4a: f01e 0f10 tst.w lr, #16 + 800fc4e: bf08 it eq + 800fc50: ecb0 8a10 vldmiaeq r0!, {s16-s31} + 800fc54: f380 8809 msr PSP, r0 + 800fc58: f3bf 8f6f isb sy + 800fc5c: 4770 bx lr + 800fc5e: bf00 nop + +0800fc60 : + 800fc60: 20000580 .word 0x20000580 " \n" " .align 4 \n" "pxCurrentTCBConst: .word pxCurrentTCB \n" ::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY) ); } - 800fc54: bf00 nop - 800fc56: bf00 nop + 800fc64: bf00 nop + 800fc66: bf00 nop -0800fc58 : +0800fc68 : /*-----------------------------------------------------------*/ void xPortSysTickHandler( void ) { - 800fc58: b580 push {r7, lr} - 800fc5a: b082 sub sp, #8 - 800fc5c: af00 add r7, sp, #0 + 800fc68: b580 push {r7, lr} + 800fc6a: b082 sub sp, #8 + 800fc6c: af00 add r7, sp, #0 __asm volatile - 800fc5e: f04f 0350 mov.w r3, #80 ; 0x50 - 800fc62: b672 cpsid i - 800fc64: f383 8811 msr BASEPRI, r3 - 800fc68: f3bf 8f6f isb sy - 800fc6c: f3bf 8f4f dsb sy - 800fc70: b662 cpsie i - 800fc72: 607b str r3, [r7, #4] + 800fc6e: f04f 0350 mov.w r3, #80 ; 0x50 + 800fc72: b672 cpsid i + 800fc74: f383 8811 msr BASEPRI, r3 + 800fc78: f3bf 8f6f isb sy + 800fc7c: f3bf 8f4f dsb sy + 800fc80: b662 cpsie i + 800fc82: 607b str r3, [r7, #4] save and then restore the interrupt mask value as its value is already known. */ portDISABLE_INTERRUPTS(); { /* Increment the RTOS tick. */ if( xTaskIncrementTick() != pdFALSE ) - 800fc74: f7ff f8fc bl 800ee70 - 800fc78: 4603 mov r3, r0 - 800fc7a: 2b00 cmp r3, #0 - 800fc7c: d003 beq.n 800fc86 + 800fc84: f7ff f8f6 bl 800ee74 + 800fc88: 4603 mov r3, r0 + 800fc8a: 2b00 cmp r3, #0 + 800fc8c: d003 beq.n 800fc96 { /* A context switch is required. Context switching is performed in the PendSV interrupt. Pend the PendSV interrupt. */ portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT; - 800fc7e: 4b06 ldr r3, [pc, #24] ; (800fc98 ) - 800fc80: f04f 5280 mov.w r2, #268435456 ; 0x10000000 - 800fc84: 601a str r2, [r3, #0] - 800fc86: 2300 movs r3, #0 - 800fc88: 603b str r3, [r7, #0] + 800fc8e: 4b06 ldr r3, [pc, #24] ; (800fca8 ) + 800fc90: f04f 5280 mov.w r2, #268435456 ; 0x10000000 + 800fc94: 601a str r2, [r3, #0] + 800fc96: 2300 movs r3, #0 + 800fc98: 603b str r3, [r7, #0] __asm volatile - 800fc8a: 683b ldr r3, [r7, #0] - 800fc8c: f383 8811 msr BASEPRI, r3 + 800fc9a: 683b ldr r3, [r7, #0] + 800fc9c: f383 8811 msr BASEPRI, r3 } } portENABLE_INTERRUPTS(); } - 800fc90: bf00 nop - 800fc92: 3708 adds r7, #8 - 800fc94: 46bd mov sp, r7 - 800fc96: bd80 pop {r7, pc} - 800fc98: e000ed04 .word 0xe000ed04 + 800fca0: bf00 nop + 800fca2: 3708 adds r7, #8 + 800fca4: 46bd mov sp, r7 + 800fca6: bd80 pop {r7, pc} + 800fca8: e000ed04 .word 0xe000ed04 -0800fc9c : +0800fcac : /* * Setup the systick timer to generate the tick interrupts at the required * frequency. */ __attribute__(( weak )) void vPortSetupTimerInterrupt( void ) { - 800fc9c: b480 push {r7} - 800fc9e: af00 add r7, sp, #0 + 800fcac: b480 push {r7} + 800fcae: af00 add r7, sp, #0 ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ ); } #endif /* configUSE_TICKLESS_IDLE */ /* Stop and clear the SysTick. */ portNVIC_SYSTICK_CTRL_REG = 0UL; - 800fca0: 4b0b ldr r3, [pc, #44] ; (800fcd0 ) - 800fca2: 2200 movs r2, #0 - 800fca4: 601a str r2, [r3, #0] + 800fcb0: 4b0b ldr r3, [pc, #44] ; (800fce0 ) + 800fcb2: 2200 movs r2, #0 + 800fcb4: 601a str r2, [r3, #0] portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL; - 800fca6: 4b0b ldr r3, [pc, #44] ; (800fcd4 ) - 800fca8: 2200 movs r2, #0 - 800fcaa: 601a str r2, [r3, #0] + 800fcb6: 4b0b ldr r3, [pc, #44] ; (800fce4 ) + 800fcb8: 2200 movs r2, #0 + 800fcba: 601a str r2, [r3, #0] /* Configure SysTick to interrupt at the requested rate. */ portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL; - 800fcac: 4b0a ldr r3, [pc, #40] ; (800fcd8 ) - 800fcae: 681b ldr r3, [r3, #0] - 800fcb0: 4a0a ldr r2, [pc, #40] ; (800fcdc ) - 800fcb2: fba2 2303 umull r2, r3, r2, r3 - 800fcb6: 099b lsrs r3, r3, #6 - 800fcb8: 4a09 ldr r2, [pc, #36] ; (800fce0 ) - 800fcba: 3b01 subs r3, #1 - 800fcbc: 6013 str r3, [r2, #0] + 800fcbc: 4b0a ldr r3, [pc, #40] ; (800fce8 ) + 800fcbe: 681b ldr r3, [r3, #0] + 800fcc0: 4a0a ldr r2, [pc, #40] ; (800fcec ) + 800fcc2: fba2 2303 umull r2, r3, r2, r3 + 800fcc6: 099b lsrs r3, r3, #6 + 800fcc8: 4a09 ldr r2, [pc, #36] ; (800fcf0 ) + 800fcca: 3b01 subs r3, #1 + 800fccc: 6013 str r3, [r2, #0] portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT ); - 800fcbe: 4b04 ldr r3, [pc, #16] ; (800fcd0 ) - 800fcc0: 2207 movs r2, #7 - 800fcc2: 601a str r2, [r3, #0] -} - 800fcc4: bf00 nop - 800fcc6: 46bd mov sp, r7 - 800fcc8: f85d 7b04 ldr.w r7, [sp], #4 - 800fccc: 4770 bx lr - 800fcce: bf00 nop - 800fcd0: e000e010 .word 0xe000e010 - 800fcd4: e000e018 .word 0xe000e018 - 800fcd8: 20000058 .word 0x20000058 - 800fcdc: 10624dd3 .word 0x10624dd3 - 800fce0: e000e014 .word 0xe000e014 - -0800fce4 : + 800fcce: 4b04 ldr r3, [pc, #16] ; (800fce0 ) + 800fcd0: 2207 movs r2, #7 + 800fcd2: 601a str r2, [r3, #0] +} + 800fcd4: bf00 nop + 800fcd6: 46bd mov sp, r7 + 800fcd8: f85d 7b04 ldr.w r7, [sp], #4 + 800fcdc: 4770 bx lr + 800fcde: bf00 nop + 800fce0: e000e010 .word 0xe000e010 + 800fce4: e000e018 .word 0xe000e018 + 800fce8: 20000058 .word 0x20000058 + 800fcec: 10624dd3 .word 0x10624dd3 + 800fcf0: e000e014 .word 0xe000e014 + +0800fcf4 : /*-----------------------------------------------------------*/ /* This is a naked function. */ static void vPortEnableVFP( void ) { __asm volatile - 800fce4: f8df 000c ldr.w r0, [pc, #12] ; 800fcf4 - 800fce8: 6801 ldr r1, [r0, #0] - 800fcea: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000 - 800fcee: 6001 str r1, [r0, #0] - 800fcf0: 4770 bx lr + 800fcf4: f8df 000c ldr.w r0, [pc, #12] ; 800fd04 + 800fcf8: 6801 ldr r1, [r0, #0] + 800fcfa: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000 + 800fcfe: 6001 str r1, [r0, #0] + 800fd00: 4770 bx lr " \n" " orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */ " str r1, [r0] \n" " bx r14 " ); } - 800fcf2: bf00 nop - 800fcf4: e000ed88 .word 0xe000ed88 + 800fd02: bf00 nop + 800fd04: e000ed88 .word 0xe000ed88 -0800fcf8 : +0800fd08 : /*-----------------------------------------------------------*/ #if( configASSERT_DEFINED == 1 ) void vPortValidateInterruptPriority( void ) { - 800fcf8: b480 push {r7} - 800fcfa: b085 sub sp, #20 - 800fcfc: af00 add r7, sp, #0 + 800fd08: b480 push {r7} + 800fd0a: b085 sub sp, #20 + 800fd0c: af00 add r7, sp, #0 uint32_t ulCurrentInterrupt; uint8_t ucCurrentPriority; /* Obtain the number of the currently executing interrupt. */ __asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" ); - 800fcfe: f3ef 8305 mrs r3, IPSR - 800fd02: 60fb str r3, [r7, #12] + 800fd0e: f3ef 8305 mrs r3, IPSR + 800fd12: 60fb str r3, [r7, #12] /* Is the interrupt number a user defined interrupt? */ if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER ) - 800fd04: 68fb ldr r3, [r7, #12] - 800fd06: 2b0f cmp r3, #15 - 800fd08: d915 bls.n 800fd36 + 800fd14: 68fb ldr r3, [r7, #12] + 800fd16: 2b0f cmp r3, #15 + 800fd18: d915 bls.n 800fd46 { /* Look up the interrupt's priority. */ ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ]; - 800fd0a: 4a18 ldr r2, [pc, #96] ; (800fd6c ) - 800fd0c: 68fb ldr r3, [r7, #12] - 800fd0e: 4413 add r3, r2 - 800fd10: 781b ldrb r3, [r3, #0] - 800fd12: 72fb strb r3, [r7, #11] + 800fd1a: 4a18 ldr r2, [pc, #96] ; (800fd7c ) + 800fd1c: 68fb ldr r3, [r7, #12] + 800fd1e: 4413 add r3, r2 + 800fd20: 781b ldrb r3, [r3, #0] + 800fd22: 72fb strb r3, [r7, #11] interrupt entry is as fast and simple as possible. The following links provide detailed information: http://www.freertos.org/RTOS-Cortex-M3-M4.html http://www.freertos.org/FAQHelp.html */ configASSERT( ucCurrentPriority >= ucMaxSysCallPriority ); - 800fd14: 4b16 ldr r3, [pc, #88] ; (800fd70 ) - 800fd16: 781b ldrb r3, [r3, #0] - 800fd18: 7afa ldrb r2, [r7, #11] - 800fd1a: 429a cmp r2, r3 - 800fd1c: d20b bcs.n 800fd36 + 800fd24: 4b16 ldr r3, [pc, #88] ; (800fd80 ) + 800fd26: 781b ldrb r3, [r3, #0] + 800fd28: 7afa ldrb r2, [r7, #11] + 800fd2a: 429a cmp r2, r3 + 800fd2c: d20b bcs.n 800fd46 __asm volatile - 800fd1e: f04f 0350 mov.w r3, #80 ; 0x50 - 800fd22: b672 cpsid i - 800fd24: f383 8811 msr BASEPRI, r3 - 800fd28: f3bf 8f6f isb sy - 800fd2c: f3bf 8f4f dsb sy - 800fd30: b662 cpsie i - 800fd32: 607b str r3, [r7, #4] - 800fd34: e7fe b.n 800fd34 + 800fd2e: f04f 0350 mov.w r3, #80 ; 0x50 + 800fd32: b672 cpsid i + 800fd34: f383 8811 msr BASEPRI, r3 + 800fd38: f3bf 8f6f isb sy + 800fd3c: f3bf 8f4f dsb sy + 800fd40: b662 cpsie i + 800fd42: 607b str r3, [r7, #4] + 800fd44: e7fe b.n 800fd44 configuration then the correct setting can be achieved on all Cortex-M devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the scheduler. Note however that some vendor specific peripheral libraries assume a non-zero priority group setting, in which cases using a value of zero will result in unpredictable behaviour. */ configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue ); - 800fd36: 4b0f ldr r3, [pc, #60] ; (800fd74 ) - 800fd38: 681b ldr r3, [r3, #0] - 800fd3a: f403 62e0 and.w r2, r3, #1792 ; 0x700 - 800fd3e: 4b0e ldr r3, [pc, #56] ; (800fd78 ) - 800fd40: 681b ldr r3, [r3, #0] - 800fd42: 429a cmp r2, r3 - 800fd44: d90b bls.n 800fd5e - 800fd46: f04f 0350 mov.w r3, #80 ; 0x50 - 800fd4a: b672 cpsid i - 800fd4c: f383 8811 msr BASEPRI, r3 - 800fd50: f3bf 8f6f isb sy - 800fd54: f3bf 8f4f dsb sy - 800fd58: b662 cpsie i - 800fd5a: 603b str r3, [r7, #0] - 800fd5c: e7fe b.n 800fd5c + 800fd46: 4b0f ldr r3, [pc, #60] ; (800fd84 ) + 800fd48: 681b ldr r3, [r3, #0] + 800fd4a: f403 62e0 and.w r2, r3, #1792 ; 0x700 + 800fd4e: 4b0e ldr r3, [pc, #56] ; (800fd88 ) + 800fd50: 681b ldr r3, [r3, #0] + 800fd52: 429a cmp r2, r3 + 800fd54: d90b bls.n 800fd6e + 800fd56: f04f 0350 mov.w r3, #80 ; 0x50 + 800fd5a: b672 cpsid i + 800fd5c: f383 8811 msr BASEPRI, r3 + 800fd60: f3bf 8f6f isb sy + 800fd64: f3bf 8f4f dsb sy + 800fd68: b662 cpsie i + 800fd6a: 603b str r3, [r7, #0] + 800fd6c: e7fe b.n 800fd6c } - 800fd5e: bf00 nop - 800fd60: 3714 adds r7, #20 - 800fd62: 46bd mov sp, r7 - 800fd64: f85d 7b04 ldr.w r7, [sp], #4 - 800fd68: 4770 bx lr - 800fd6a: bf00 nop - 800fd6c: e000e3f0 .word 0xe000e3f0 - 800fd70: 200006ac .word 0x200006ac - 800fd74: e000ed0c .word 0xe000ed0c - 800fd78: 200006b0 .word 0x200006b0 - -0800fd7c : + 800fd6e: bf00 nop + 800fd70: 3714 adds r7, #20 + 800fd72: 46bd mov sp, r7 + 800fd74: f85d 7b04 ldr.w r7, [sp], #4 + 800fd78: 4770 bx lr + 800fd7a: bf00 nop + 800fd7c: e000e3f0 .word 0xe000e3f0 + 800fd80: 200006ac .word 0x200006ac + 800fd84: e000ed0c .word 0xe000ed0c + 800fd88: 200006b0 .word 0x200006b0 + +0800fd8c : static size_t xBlockAllocatedBit = 0; /*-----------------------------------------------------------*/ void *pvPortMalloc( size_t xWantedSize ) { - 800fd7c: b580 push {r7, lr} - 800fd7e: b08a sub sp, #40 ; 0x28 - 800fd80: af00 add r7, sp, #0 - 800fd82: 6078 str r0, [r7, #4] + 800fd8c: b580 push {r7, lr} + 800fd8e: b08a sub sp, #40 ; 0x28 + 800fd90: af00 add r7, sp, #0 + 800fd92: 6078 str r0, [r7, #4] BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink; void *pvReturn = NULL; - 800fd84: 2300 movs r3, #0 - 800fd86: 61fb str r3, [r7, #28] + 800fd94: 2300 movs r3, #0 + 800fd96: 61fb str r3, [r7, #28] vTaskSuspendAll(); - 800fd88: f7fe ffa4 bl 800ecd4 + 800fd98: f7fe ff9e bl 800ecd8 { /* If this is the first call to malloc then the heap will require initialisation to setup the list of free blocks. */ if( pxEnd == NULL ) - 800fd8c: 4b5c ldr r3, [pc, #368] ; (800ff00 ) - 800fd8e: 681b ldr r3, [r3, #0] - 800fd90: 2b00 cmp r3, #0 - 800fd92: d101 bne.n 800fd98 + 800fd9c: 4b5c ldr r3, [pc, #368] ; (800ff10 ) + 800fd9e: 681b ldr r3, [r3, #0] + 800fda0: 2b00 cmp r3, #0 + 800fda2: d101 bne.n 800fda8 { prvHeapInit(); - 800fd94: f000 f91a bl 800ffcc + 800fda4: f000 f91a bl 800ffdc /* Check the requested block size is not so large that the top bit is set. The top bit of the block size member of the BlockLink_t structure is used to determine who owns the block - the application or the kernel, so it must be free. */ if( ( xWantedSize & xBlockAllocatedBit ) == 0 ) - 800fd98: 4b5a ldr r3, [pc, #360] ; (800ff04 ) - 800fd9a: 681a ldr r2, [r3, #0] - 800fd9c: 687b ldr r3, [r7, #4] - 800fd9e: 4013 ands r3, r2 - 800fda0: 2b00 cmp r3, #0 - 800fda2: f040 8090 bne.w 800fec6 + 800fda8: 4b5a ldr r3, [pc, #360] ; (800ff14 ) + 800fdaa: 681a ldr r2, [r3, #0] + 800fdac: 687b ldr r3, [r7, #4] + 800fdae: 4013 ands r3, r2 + 800fdb0: 2b00 cmp r3, #0 + 800fdb2: f040 8090 bne.w 800fed6 { /* The wanted size is increased so it can contain a BlockLink_t structure in addition to the requested amount of bytes. */ if( xWantedSize > 0 ) - 800fda6: 687b ldr r3, [r7, #4] - 800fda8: 2b00 cmp r3, #0 - 800fdaa: d01e beq.n 800fdea + 800fdb6: 687b ldr r3, [r7, #4] + 800fdb8: 2b00 cmp r3, #0 + 800fdba: d01e beq.n 800fdfa { xWantedSize += xHeapStructSize; - 800fdac: 2208 movs r2, #8 - 800fdae: 687b ldr r3, [r7, #4] - 800fdb0: 4413 add r3, r2 - 800fdb2: 607b str r3, [r7, #4] + 800fdbc: 2208 movs r2, #8 + 800fdbe: 687b ldr r3, [r7, #4] + 800fdc0: 4413 add r3, r2 + 800fdc2: 607b str r3, [r7, #4] /* Ensure that blocks are always aligned to the required number of bytes. */ if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 ) - 800fdb4: 687b ldr r3, [r7, #4] - 800fdb6: f003 0307 and.w r3, r3, #7 - 800fdba: 2b00 cmp r3, #0 - 800fdbc: d015 beq.n 800fdea + 800fdc4: 687b ldr r3, [r7, #4] + 800fdc6: f003 0307 and.w r3, r3, #7 + 800fdca: 2b00 cmp r3, #0 + 800fdcc: d015 beq.n 800fdfa { /* Byte alignment required. */ xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) ); - 800fdbe: 687b ldr r3, [r7, #4] - 800fdc0: f023 0307 bic.w r3, r3, #7 - 800fdc4: 3308 adds r3, #8 - 800fdc6: 607b str r3, [r7, #4] + 800fdce: 687b ldr r3, [r7, #4] + 800fdd0: f023 0307 bic.w r3, r3, #7 + 800fdd4: 3308 adds r3, #8 + 800fdd6: 607b str r3, [r7, #4] configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 ); - 800fdc8: 687b ldr r3, [r7, #4] - 800fdca: f003 0307 and.w r3, r3, #7 - 800fdce: 2b00 cmp r3, #0 - 800fdd0: d00b beq.n 800fdea - 800fdd2: f04f 0350 mov.w r3, #80 ; 0x50 - 800fdd6: b672 cpsid i - 800fdd8: f383 8811 msr BASEPRI, r3 - 800fddc: f3bf 8f6f isb sy - 800fde0: f3bf 8f4f dsb sy - 800fde4: b662 cpsie i - 800fde6: 617b str r3, [r7, #20] - 800fde8: e7fe b.n 800fde8 + 800fdd8: 687b ldr r3, [r7, #4] + 800fdda: f003 0307 and.w r3, r3, #7 + 800fdde: 2b00 cmp r3, #0 + 800fde0: d00b beq.n 800fdfa + 800fde2: f04f 0350 mov.w r3, #80 ; 0x50 + 800fde6: b672 cpsid i + 800fde8: f383 8811 msr BASEPRI, r3 + 800fdec: f3bf 8f6f isb sy + 800fdf0: f3bf 8f4f dsb sy + 800fdf4: b662 cpsie i + 800fdf6: 617b str r3, [r7, #20] + 800fdf8: e7fe b.n 800fdf8 else { mtCOVERAGE_TEST_MARKER(); } if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) ) - 800fdea: 687b ldr r3, [r7, #4] - 800fdec: 2b00 cmp r3, #0 - 800fdee: d06a beq.n 800fec6 - 800fdf0: 4b45 ldr r3, [pc, #276] ; (800ff08 ) - 800fdf2: 681b ldr r3, [r3, #0] - 800fdf4: 687a ldr r2, [r7, #4] - 800fdf6: 429a cmp r2, r3 - 800fdf8: d865 bhi.n 800fec6 + 800fdfa: 687b ldr r3, [r7, #4] + 800fdfc: 2b00 cmp r3, #0 + 800fdfe: d06a beq.n 800fed6 + 800fe00: 4b45 ldr r3, [pc, #276] ; (800ff18 ) + 800fe02: 681b ldr r3, [r3, #0] + 800fe04: 687a ldr r2, [r7, #4] + 800fe06: 429a cmp r2, r3 + 800fe08: d865 bhi.n 800fed6 { /* Traverse the list from the start (lowest address) block until one of adequate size is found. */ pxPreviousBlock = &xStart; - 800fdfa: 4b44 ldr r3, [pc, #272] ; (800ff0c ) - 800fdfc: 623b str r3, [r7, #32] + 800fe0a: 4b44 ldr r3, [pc, #272] ; (800ff1c ) + 800fe0c: 623b str r3, [r7, #32] pxBlock = xStart.pxNextFreeBlock; - 800fdfe: 4b43 ldr r3, [pc, #268] ; (800ff0c ) - 800fe00: 681b ldr r3, [r3, #0] - 800fe02: 627b str r3, [r7, #36] ; 0x24 + 800fe0e: 4b43 ldr r3, [pc, #268] ; (800ff1c ) + 800fe10: 681b ldr r3, [r3, #0] + 800fe12: 627b str r3, [r7, #36] ; 0x24 while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) - 800fe04: e004 b.n 800fe10 + 800fe14: e004 b.n 800fe20 { pxPreviousBlock = pxBlock; - 800fe06: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fe08: 623b str r3, [r7, #32] + 800fe16: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fe18: 623b str r3, [r7, #32] pxBlock = pxBlock->pxNextFreeBlock; - 800fe0a: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fe0c: 681b ldr r3, [r3, #0] - 800fe0e: 627b str r3, [r7, #36] ; 0x24 - while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) - 800fe10: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fe12: 685b ldr r3, [r3, #4] - 800fe14: 687a ldr r2, [r7, #4] - 800fe16: 429a cmp r2, r3 - 800fe18: d903 bls.n 800fe22 800fe1a: 6a7b ldr r3, [r7, #36] ; 0x24 800fe1c: 681b ldr r3, [r3, #0] - 800fe1e: 2b00 cmp r3, #0 - 800fe20: d1f1 bne.n 800fe06 + 800fe1e: 627b str r3, [r7, #36] ; 0x24 + while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) ) + 800fe20: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fe22: 685b ldr r3, [r3, #4] + 800fe24: 687a ldr r2, [r7, #4] + 800fe26: 429a cmp r2, r3 + 800fe28: d903 bls.n 800fe32 + 800fe2a: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fe2c: 681b ldr r3, [r3, #0] + 800fe2e: 2b00 cmp r3, #0 + 800fe30: d1f1 bne.n 800fe16 } /* If the end marker was reached then a block of adequate size was not found. */ if( pxBlock != pxEnd ) - 800fe22: 4b37 ldr r3, [pc, #220] ; (800ff00 ) - 800fe24: 681b ldr r3, [r3, #0] - 800fe26: 6a7a ldr r2, [r7, #36] ; 0x24 - 800fe28: 429a cmp r2, r3 - 800fe2a: d04c beq.n 800fec6 + 800fe32: 4b37 ldr r3, [pc, #220] ; (800ff10 ) + 800fe34: 681b ldr r3, [r3, #0] + 800fe36: 6a7a ldr r2, [r7, #36] ; 0x24 + 800fe38: 429a cmp r2, r3 + 800fe3a: d04c beq.n 800fed6 { /* Return the memory space pointed to - jumping over the BlockLink_t structure at its start. */ pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize ); - 800fe2c: 6a3b ldr r3, [r7, #32] - 800fe2e: 681b ldr r3, [r3, #0] - 800fe30: 2208 movs r2, #8 - 800fe32: 4413 add r3, r2 - 800fe34: 61fb str r3, [r7, #28] + 800fe3c: 6a3b ldr r3, [r7, #32] + 800fe3e: 681b ldr r3, [r3, #0] + 800fe40: 2208 movs r2, #8 + 800fe42: 4413 add r3, r2 + 800fe44: 61fb str r3, [r7, #28] /* This block is being returned for use so must be taken out of the list of free blocks. */ pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock; - 800fe36: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fe38: 681a ldr r2, [r3, #0] - 800fe3a: 6a3b ldr r3, [r7, #32] - 800fe3c: 601a str r2, [r3, #0] + 800fe46: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fe48: 681a ldr r2, [r3, #0] + 800fe4a: 6a3b ldr r3, [r7, #32] + 800fe4c: 601a str r2, [r3, #0] /* If the block is larger than required it can be split into two. */ if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE ) - 800fe3e: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fe40: 685a ldr r2, [r3, #4] - 800fe42: 687b ldr r3, [r7, #4] - 800fe44: 1ad2 subs r2, r2, r3 - 800fe46: 2308 movs r3, #8 - 800fe48: 005b lsls r3, r3, #1 - 800fe4a: 429a cmp r2, r3 - 800fe4c: d920 bls.n 800fe90 + 800fe4e: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fe50: 685a ldr r2, [r3, #4] + 800fe52: 687b ldr r3, [r7, #4] + 800fe54: 1ad2 subs r2, r2, r3 + 800fe56: 2308 movs r3, #8 + 800fe58: 005b lsls r3, r3, #1 + 800fe5a: 429a cmp r2, r3 + 800fe5c: d920 bls.n 800fea0 { /* This block is to be split into two. Create a new block following the number of bytes requested. The void cast is used to prevent byte alignment warnings from the compiler. */ pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize ); - 800fe4e: 6a7a ldr r2, [r7, #36] ; 0x24 - 800fe50: 687b ldr r3, [r7, #4] - 800fe52: 4413 add r3, r2 - 800fe54: 61bb str r3, [r7, #24] + 800fe5e: 6a7a ldr r2, [r7, #36] ; 0x24 + 800fe60: 687b ldr r3, [r7, #4] + 800fe62: 4413 add r3, r2 + 800fe64: 61bb str r3, [r7, #24] configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 ); - 800fe56: 69bb ldr r3, [r7, #24] - 800fe58: f003 0307 and.w r3, r3, #7 - 800fe5c: 2b00 cmp r3, #0 - 800fe5e: d00b beq.n 800fe78 - 800fe60: f04f 0350 mov.w r3, #80 ; 0x50 - 800fe64: b672 cpsid i - 800fe66: f383 8811 msr BASEPRI, r3 - 800fe6a: f3bf 8f6f isb sy - 800fe6e: f3bf 8f4f dsb sy - 800fe72: b662 cpsie i - 800fe74: 613b str r3, [r7, #16] - 800fe76: e7fe b.n 800fe76 + 800fe66: 69bb ldr r3, [r7, #24] + 800fe68: f003 0307 and.w r3, r3, #7 + 800fe6c: 2b00 cmp r3, #0 + 800fe6e: d00b beq.n 800fe88 + 800fe70: f04f 0350 mov.w r3, #80 ; 0x50 + 800fe74: b672 cpsid i + 800fe76: f383 8811 msr BASEPRI, r3 + 800fe7a: f3bf 8f6f isb sy + 800fe7e: f3bf 8f4f dsb sy + 800fe82: b662 cpsie i + 800fe84: 613b str r3, [r7, #16] + 800fe86: e7fe b.n 800fe86 /* Calculate the sizes of two blocks split from the single block. */ pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize; - 800fe78: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fe7a: 685a ldr r2, [r3, #4] - 800fe7c: 687b ldr r3, [r7, #4] - 800fe7e: 1ad2 subs r2, r2, r3 - 800fe80: 69bb ldr r3, [r7, #24] - 800fe82: 605a str r2, [r3, #4] + 800fe88: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fe8a: 685a ldr r2, [r3, #4] + 800fe8c: 687b ldr r3, [r7, #4] + 800fe8e: 1ad2 subs r2, r2, r3 + 800fe90: 69bb ldr r3, [r7, #24] + 800fe92: 605a str r2, [r3, #4] pxBlock->xBlockSize = xWantedSize; - 800fe84: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fe86: 687a ldr r2, [r7, #4] - 800fe88: 605a str r2, [r3, #4] + 800fe94: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fe96: 687a ldr r2, [r7, #4] + 800fe98: 605a str r2, [r3, #4] /* Insert the new block into the list of free blocks. */ prvInsertBlockIntoFreeList( pxNewBlockLink ); - 800fe8a: 69b8 ldr r0, [r7, #24] - 800fe8c: f000 f900 bl 8010090 + 800fe9a: 69b8 ldr r0, [r7, #24] + 800fe9c: f000 f900 bl 80100a0 else { mtCOVERAGE_TEST_MARKER(); } xFreeBytesRemaining -= pxBlock->xBlockSize; - 800fe90: 4b1d ldr r3, [pc, #116] ; (800ff08 ) - 800fe92: 681a ldr r2, [r3, #0] - 800fe94: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fe96: 685b ldr r3, [r3, #4] - 800fe98: 1ad3 subs r3, r2, r3 - 800fe9a: 4a1b ldr r2, [pc, #108] ; (800ff08 ) - 800fe9c: 6013 str r3, [r2, #0] + 800fea0: 4b1d ldr r3, [pc, #116] ; (800ff18 ) + 800fea2: 681a ldr r2, [r3, #0] + 800fea4: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fea6: 685b ldr r3, [r3, #4] + 800fea8: 1ad3 subs r3, r2, r3 + 800feaa: 4a1b ldr r2, [pc, #108] ; (800ff18 ) + 800feac: 6013 str r3, [r2, #0] if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining ) - 800fe9e: 4b1a ldr r3, [pc, #104] ; (800ff08 ) - 800fea0: 681a ldr r2, [r3, #0] - 800fea2: 4b1b ldr r3, [pc, #108] ; (800ff10 ) - 800fea4: 681b ldr r3, [r3, #0] - 800fea6: 429a cmp r2, r3 - 800fea8: d203 bcs.n 800feb2 + 800feae: 4b1a ldr r3, [pc, #104] ; (800ff18 ) + 800feb0: 681a ldr r2, [r3, #0] + 800feb2: 4b1b ldr r3, [pc, #108] ; (800ff20 ) + 800feb4: 681b ldr r3, [r3, #0] + 800feb6: 429a cmp r2, r3 + 800feb8: d203 bcs.n 800fec2 { xMinimumEverFreeBytesRemaining = xFreeBytesRemaining; - 800feaa: 4b17 ldr r3, [pc, #92] ; (800ff08 ) - 800feac: 681b ldr r3, [r3, #0] - 800feae: 4a18 ldr r2, [pc, #96] ; (800ff10 ) - 800feb0: 6013 str r3, [r2, #0] + 800feba: 4b17 ldr r3, [pc, #92] ; (800ff18 ) + 800febc: 681b ldr r3, [r3, #0] + 800febe: 4a18 ldr r2, [pc, #96] ; (800ff20 ) + 800fec0: 6013 str r3, [r2, #0] mtCOVERAGE_TEST_MARKER(); } /* The block is being returned - it is allocated and owned by the application and has no "next" block. */ pxBlock->xBlockSize |= xBlockAllocatedBit; - 800feb2: 6a7b ldr r3, [r7, #36] ; 0x24 - 800feb4: 685a ldr r2, [r3, #4] - 800feb6: 4b13 ldr r3, [pc, #76] ; (800ff04 ) - 800feb8: 681b ldr r3, [r3, #0] - 800feba: 431a orrs r2, r3 - 800febc: 6a7b ldr r3, [r7, #36] ; 0x24 - 800febe: 605a str r2, [r3, #4] + 800fec2: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fec4: 685a ldr r2, [r3, #4] + 800fec6: 4b13 ldr r3, [pc, #76] ; (800ff14 ) + 800fec8: 681b ldr r3, [r3, #0] + 800feca: 431a orrs r2, r3 + 800fecc: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fece: 605a str r2, [r3, #4] pxBlock->pxNextFreeBlock = NULL; - 800fec0: 6a7b ldr r3, [r7, #36] ; 0x24 - 800fec2: 2200 movs r2, #0 - 800fec4: 601a str r2, [r3, #0] + 800fed0: 6a7b ldr r3, [r7, #36] ; 0x24 + 800fed2: 2200 movs r2, #0 + 800fed4: 601a str r2, [r3, #0] mtCOVERAGE_TEST_MARKER(); } traceMALLOC( pvReturn, xWantedSize ); } ( void ) xTaskResumeAll(); - 800fec6: f7fe ff13 bl 800ecf0 + 800fed6: f7fe ff0d bl 800ecf4 #if( configUSE_MALLOC_FAILED_HOOK == 1 ) { if( pvReturn == NULL ) - 800feca: 69fb ldr r3, [r7, #28] - 800fecc: 2b00 cmp r3, #0 - 800fece: d101 bne.n 800fed4 + 800feda: 69fb ldr r3, [r7, #28] + 800fedc: 2b00 cmp r3, #0 + 800fede: d101 bne.n 800fee4 { extern void vApplicationMallocFailedHook( void ); vApplicationMallocFailedHook(); - 800fed0: f7f0 fb80 bl 80005d4 + 800fee0: f7f0 fb78 bl 80005d4 mtCOVERAGE_TEST_MARKER(); } } #endif configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 ); - 800fed4: 69fb ldr r3, [r7, #28] - 800fed6: f003 0307 and.w r3, r3, #7 - 800feda: 2b00 cmp r3, #0 - 800fedc: d00b beq.n 800fef6 - 800fede: f04f 0350 mov.w r3, #80 ; 0x50 - 800fee2: b672 cpsid i - 800fee4: f383 8811 msr BASEPRI, r3 - 800fee8: f3bf 8f6f isb sy - 800feec: f3bf 8f4f dsb sy - 800fef0: b662 cpsie i - 800fef2: 60fb str r3, [r7, #12] - 800fef4: e7fe b.n 800fef4 + 800fee4: 69fb ldr r3, [r7, #28] + 800fee6: f003 0307 and.w r3, r3, #7 + 800feea: 2b00 cmp r3, #0 + 800feec: d00b beq.n 800ff06 + 800feee: f04f 0350 mov.w r3, #80 ; 0x50 + 800fef2: b672 cpsid i + 800fef4: f383 8811 msr BASEPRI, r3 + 800fef8: f3bf 8f6f isb sy + 800fefc: f3bf 8f4f dsb sy + 800ff00: b662 cpsie i + 800ff02: 60fb str r3, [r7, #12] + 800ff04: e7fe b.n 800ff04 return pvReturn; - 800fef6: 69fb ldr r3, [r7, #28] -} - 800fef8: 4618 mov r0, r3 - 800fefa: 3728 adds r7, #40 ; 0x28 - 800fefc: 46bd mov sp, r7 - 800fefe: bd80 pop {r7, pc} - 800ff00: 200086bc .word 0x200086bc - 800ff04: 200086c8 .word 0x200086c8 - 800ff08: 200086c0 .word 0x200086c0 - 800ff0c: 200086b4 .word 0x200086b4 - 800ff10: 200086c4 .word 0x200086c4 - -0800ff14 : + 800ff06: 69fb ldr r3, [r7, #28] +} + 800ff08: 4618 mov r0, r3 + 800ff0a: 3728 adds r7, #40 ; 0x28 + 800ff0c: 46bd mov sp, r7 + 800ff0e: bd80 pop {r7, pc} + 800ff10: 200086bc .word 0x200086bc + 800ff14: 200086c8 .word 0x200086c8 + 800ff18: 200086c0 .word 0x200086c0 + 800ff1c: 200086b4 .word 0x200086b4 + 800ff20: 200086c4 .word 0x200086c4 + +0800ff24 : /*-----------------------------------------------------------*/ void vPortFree( void *pv ) { - 800ff14: b580 push {r7, lr} - 800ff16: b086 sub sp, #24 - 800ff18: af00 add r7, sp, #0 - 800ff1a: 6078 str r0, [r7, #4] + 800ff24: b580 push {r7, lr} + 800ff26: b086 sub sp, #24 + 800ff28: af00 add r7, sp, #0 + 800ff2a: 6078 str r0, [r7, #4] uint8_t *puc = ( uint8_t * ) pv; - 800ff1c: 687b ldr r3, [r7, #4] - 800ff1e: 617b str r3, [r7, #20] + 800ff2c: 687b ldr r3, [r7, #4] + 800ff2e: 617b str r3, [r7, #20] BlockLink_t *pxLink; if( pv != NULL ) - 800ff20: 687b ldr r3, [r7, #4] - 800ff22: 2b00 cmp r3, #0 - 800ff24: d04a beq.n 800ffbc + 800ff30: 687b ldr r3, [r7, #4] + 800ff32: 2b00 cmp r3, #0 + 800ff34: d04a beq.n 800ffcc { /* The memory being freed will have an BlockLink_t structure immediately before it. */ puc -= xHeapStructSize; - 800ff26: 2308 movs r3, #8 - 800ff28: 425b negs r3, r3 - 800ff2a: 697a ldr r2, [r7, #20] - 800ff2c: 4413 add r3, r2 - 800ff2e: 617b str r3, [r7, #20] + 800ff36: 2308 movs r3, #8 + 800ff38: 425b negs r3, r3 + 800ff3a: 697a ldr r2, [r7, #20] + 800ff3c: 4413 add r3, r2 + 800ff3e: 617b str r3, [r7, #20] /* This casting is to keep the compiler from issuing warnings. */ pxLink = ( void * ) puc; - 800ff30: 697b ldr r3, [r7, #20] - 800ff32: 613b str r3, [r7, #16] + 800ff40: 697b ldr r3, [r7, #20] + 800ff42: 613b str r3, [r7, #16] /* Check the block is actually allocated. */ configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 ); - 800ff34: 693b ldr r3, [r7, #16] - 800ff36: 685a ldr r2, [r3, #4] - 800ff38: 4b22 ldr r3, [pc, #136] ; (800ffc4 ) - 800ff3a: 681b ldr r3, [r3, #0] - 800ff3c: 4013 ands r3, r2 - 800ff3e: 2b00 cmp r3, #0 - 800ff40: d10b bne.n 800ff5a - 800ff42: f04f 0350 mov.w r3, #80 ; 0x50 - 800ff46: b672 cpsid i - 800ff48: f383 8811 msr BASEPRI, r3 - 800ff4c: f3bf 8f6f isb sy - 800ff50: f3bf 8f4f dsb sy - 800ff54: b662 cpsie i - 800ff56: 60fb str r3, [r7, #12] - 800ff58: e7fe b.n 800ff58 + 800ff44: 693b ldr r3, [r7, #16] + 800ff46: 685a ldr r2, [r3, #4] + 800ff48: 4b22 ldr r3, [pc, #136] ; (800ffd4 ) + 800ff4a: 681b ldr r3, [r3, #0] + 800ff4c: 4013 ands r3, r2 + 800ff4e: 2b00 cmp r3, #0 + 800ff50: d10b bne.n 800ff6a + 800ff52: f04f 0350 mov.w r3, #80 ; 0x50 + 800ff56: b672 cpsid i + 800ff58: f383 8811 msr BASEPRI, r3 + 800ff5c: f3bf 8f6f isb sy + 800ff60: f3bf 8f4f dsb sy + 800ff64: b662 cpsie i + 800ff66: 60fb str r3, [r7, #12] + 800ff68: e7fe b.n 800ff68 configASSERT( pxLink->pxNextFreeBlock == NULL ); - 800ff5a: 693b ldr r3, [r7, #16] - 800ff5c: 681b ldr r3, [r3, #0] - 800ff5e: 2b00 cmp r3, #0 - 800ff60: d00b beq.n 800ff7a - 800ff62: f04f 0350 mov.w r3, #80 ; 0x50 - 800ff66: b672 cpsid i - 800ff68: f383 8811 msr BASEPRI, r3 - 800ff6c: f3bf 8f6f isb sy - 800ff70: f3bf 8f4f dsb sy - 800ff74: b662 cpsie i - 800ff76: 60bb str r3, [r7, #8] - 800ff78: e7fe b.n 800ff78 + 800ff6a: 693b ldr r3, [r7, #16] + 800ff6c: 681b ldr r3, [r3, #0] + 800ff6e: 2b00 cmp r3, #0 + 800ff70: d00b beq.n 800ff8a + 800ff72: f04f 0350 mov.w r3, #80 ; 0x50 + 800ff76: b672 cpsid i + 800ff78: f383 8811 msr BASEPRI, r3 + 800ff7c: f3bf 8f6f isb sy + 800ff80: f3bf 8f4f dsb sy + 800ff84: b662 cpsie i + 800ff86: 60bb str r3, [r7, #8] + 800ff88: e7fe b.n 800ff88 if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 ) - 800ff7a: 693b ldr r3, [r7, #16] - 800ff7c: 685a ldr r2, [r3, #4] - 800ff7e: 4b11 ldr r3, [pc, #68] ; (800ffc4 ) - 800ff80: 681b ldr r3, [r3, #0] - 800ff82: 4013 ands r3, r2 - 800ff84: 2b00 cmp r3, #0 - 800ff86: d019 beq.n 800ffbc + 800ff8a: 693b ldr r3, [r7, #16] + 800ff8c: 685a ldr r2, [r3, #4] + 800ff8e: 4b11 ldr r3, [pc, #68] ; (800ffd4 ) + 800ff90: 681b ldr r3, [r3, #0] + 800ff92: 4013 ands r3, r2 + 800ff94: 2b00 cmp r3, #0 + 800ff96: d019 beq.n 800ffcc { if( pxLink->pxNextFreeBlock == NULL ) - 800ff88: 693b ldr r3, [r7, #16] - 800ff8a: 681b ldr r3, [r3, #0] - 800ff8c: 2b00 cmp r3, #0 - 800ff8e: d115 bne.n 800ffbc + 800ff98: 693b ldr r3, [r7, #16] + 800ff9a: 681b ldr r3, [r3, #0] + 800ff9c: 2b00 cmp r3, #0 + 800ff9e: d115 bne.n 800ffcc { /* The block is being returned to the heap - it is no longer allocated. */ pxLink->xBlockSize &= ~xBlockAllocatedBit; - 800ff90: 693b ldr r3, [r7, #16] - 800ff92: 685a ldr r2, [r3, #4] - 800ff94: 4b0b ldr r3, [pc, #44] ; (800ffc4 ) - 800ff96: 681b ldr r3, [r3, #0] - 800ff98: 43db mvns r3, r3 - 800ff9a: 401a ands r2, r3 - 800ff9c: 693b ldr r3, [r7, #16] - 800ff9e: 605a str r2, [r3, #4] + 800ffa0: 693b ldr r3, [r7, #16] + 800ffa2: 685a ldr r2, [r3, #4] + 800ffa4: 4b0b ldr r3, [pc, #44] ; (800ffd4 ) + 800ffa6: 681b ldr r3, [r3, #0] + 800ffa8: 43db mvns r3, r3 + 800ffaa: 401a ands r2, r3 + 800ffac: 693b ldr r3, [r7, #16] + 800ffae: 605a str r2, [r3, #4] vTaskSuspendAll(); - 800ffa0: f7fe fe98 bl 800ecd4 + 800ffb0: f7fe fe92 bl 800ecd8 { /* Add this block to the list of free blocks. */ xFreeBytesRemaining += pxLink->xBlockSize; - 800ffa4: 693b ldr r3, [r7, #16] - 800ffa6: 685a ldr r2, [r3, #4] - 800ffa8: 4b07 ldr r3, [pc, #28] ; (800ffc8 ) - 800ffaa: 681b ldr r3, [r3, #0] - 800ffac: 4413 add r3, r2 - 800ffae: 4a06 ldr r2, [pc, #24] ; (800ffc8 ) - 800ffb0: 6013 str r3, [r2, #0] + 800ffb4: 693b ldr r3, [r7, #16] + 800ffb6: 685a ldr r2, [r3, #4] + 800ffb8: 4b07 ldr r3, [pc, #28] ; (800ffd8 ) + 800ffba: 681b ldr r3, [r3, #0] + 800ffbc: 4413 add r3, r2 + 800ffbe: 4a06 ldr r2, [pc, #24] ; (800ffd8 ) + 800ffc0: 6013 str r3, [r2, #0] traceFREE( pv, pxLink->xBlockSize ); prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) ); - 800ffb2: 6938 ldr r0, [r7, #16] - 800ffb4: f000 f86c bl 8010090 + 800ffc2: 6938 ldr r0, [r7, #16] + 800ffc4: f000 f86c bl 80100a0 } ( void ) xTaskResumeAll(); - 800ffb8: f7fe fe9a bl 800ecf0 + 800ffc8: f7fe fe94 bl 800ecf4 else { mtCOVERAGE_TEST_MARKER(); } } } - 800ffbc: bf00 nop - 800ffbe: 3718 adds r7, #24 - 800ffc0: 46bd mov sp, r7 - 800ffc2: bd80 pop {r7, pc} - 800ffc4: 200086c8 .word 0x200086c8 - 800ffc8: 200086c0 .word 0x200086c0 + 800ffcc: bf00 nop + 800ffce: 3718 adds r7, #24 + 800ffd0: 46bd mov sp, r7 + 800ffd2: bd80 pop {r7, pc} + 800ffd4: 200086c8 .word 0x200086c8 + 800ffd8: 200086c0 .word 0x200086c0 -0800ffcc : +0800ffdc : /* This just exists to keep the linker quiet. */ } /*-----------------------------------------------------------*/ static void prvHeapInit( void ) { - 800ffcc: b480 push {r7} - 800ffce: b085 sub sp, #20 - 800ffd0: af00 add r7, sp, #0 + 800ffdc: b480 push {r7} + 800ffde: b085 sub sp, #20 + 800ffe0: af00 add r7, sp, #0 BlockLink_t *pxFirstFreeBlock; uint8_t *pucAlignedHeap; size_t uxAddress; size_t xTotalHeapSize = configTOTAL_HEAP_SIZE; - 800ffd2: f44f 4300 mov.w r3, #32768 ; 0x8000 - 800ffd6: 60bb str r3, [r7, #8] + 800ffe2: f44f 4300 mov.w r3, #32768 ; 0x8000 + 800ffe6: 60bb str r3, [r7, #8] /* Ensure the heap starts on a correctly aligned boundary. */ uxAddress = ( size_t ) ucHeap; - 800ffd8: 4b27 ldr r3, [pc, #156] ; (8010078 ) - 800ffda: 60fb str r3, [r7, #12] + 800ffe8: 4b27 ldr r3, [pc, #156] ; (8010088 ) + 800ffea: 60fb str r3, [r7, #12] if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 ) - 800ffdc: 68fb ldr r3, [r7, #12] - 800ffde: f003 0307 and.w r3, r3, #7 - 800ffe2: 2b00 cmp r3, #0 - 800ffe4: d00c beq.n 8010000 + 800ffec: 68fb ldr r3, [r7, #12] + 800ffee: f003 0307 and.w r3, r3, #7 + 800fff2: 2b00 cmp r3, #0 + 800fff4: d00c beq.n 8010010 { uxAddress += ( portBYTE_ALIGNMENT - 1 ); - 800ffe6: 68fb ldr r3, [r7, #12] - 800ffe8: 3307 adds r3, #7 - 800ffea: 60fb str r3, [r7, #12] + 800fff6: 68fb ldr r3, [r7, #12] + 800fff8: 3307 adds r3, #7 + 800fffa: 60fb str r3, [r7, #12] uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); - 800ffec: 68fb ldr r3, [r7, #12] - 800ffee: f023 0307 bic.w r3, r3, #7 - 800fff2: 60fb str r3, [r7, #12] + 800fffc: 68fb ldr r3, [r7, #12] + 800fffe: f023 0307 bic.w r3, r3, #7 + 8010002: 60fb str r3, [r7, #12] xTotalHeapSize -= uxAddress - ( size_t ) ucHeap; - 800fff4: 68ba ldr r2, [r7, #8] - 800fff6: 68fb ldr r3, [r7, #12] - 800fff8: 1ad3 subs r3, r2, r3 - 800fffa: 4a1f ldr r2, [pc, #124] ; (8010078 ) - 800fffc: 4413 add r3, r2 - 800fffe: 60bb str r3, [r7, #8] + 8010004: 68ba ldr r2, [r7, #8] + 8010006: 68fb ldr r3, [r7, #12] + 8010008: 1ad3 subs r3, r2, r3 + 801000a: 4a1f ldr r2, [pc, #124] ; (8010088 ) + 801000c: 4413 add r3, r2 + 801000e: 60bb str r3, [r7, #8] } pucAlignedHeap = ( uint8_t * ) uxAddress; - 8010000: 68fb ldr r3, [r7, #12] - 8010002: 607b str r3, [r7, #4] + 8010010: 68fb ldr r3, [r7, #12] + 8010012: 607b str r3, [r7, #4] /* xStart is used to hold a pointer to the first item in the list of free blocks. The void cast is used to prevent compiler warnings. */ xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap; - 8010004: 4a1d ldr r2, [pc, #116] ; (801007c ) - 8010006: 687b ldr r3, [r7, #4] - 8010008: 6013 str r3, [r2, #0] + 8010014: 4a1d ldr r2, [pc, #116] ; (801008c ) + 8010016: 687b ldr r3, [r7, #4] + 8010018: 6013 str r3, [r2, #0] xStart.xBlockSize = ( size_t ) 0; - 801000a: 4b1c ldr r3, [pc, #112] ; (801007c ) - 801000c: 2200 movs r2, #0 - 801000e: 605a str r2, [r3, #4] + 801001a: 4b1c ldr r3, [pc, #112] ; (801008c ) + 801001c: 2200 movs r2, #0 + 801001e: 605a str r2, [r3, #4] /* pxEnd is used to mark the end of the list of free blocks and is inserted at the end of the heap space. */ uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize; - 8010010: 687b ldr r3, [r7, #4] - 8010012: 68ba ldr r2, [r7, #8] - 8010014: 4413 add r3, r2 - 8010016: 60fb str r3, [r7, #12] + 8010020: 687b ldr r3, [r7, #4] + 8010022: 68ba ldr r2, [r7, #8] + 8010024: 4413 add r3, r2 + 8010026: 60fb str r3, [r7, #12] uxAddress -= xHeapStructSize; - 8010018: 2208 movs r2, #8 - 801001a: 68fb ldr r3, [r7, #12] - 801001c: 1a9b subs r3, r3, r2 - 801001e: 60fb str r3, [r7, #12] + 8010028: 2208 movs r2, #8 + 801002a: 68fb ldr r3, [r7, #12] + 801002c: 1a9b subs r3, r3, r2 + 801002e: 60fb str r3, [r7, #12] uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK ); - 8010020: 68fb ldr r3, [r7, #12] - 8010022: f023 0307 bic.w r3, r3, #7 - 8010026: 60fb str r3, [r7, #12] + 8010030: 68fb ldr r3, [r7, #12] + 8010032: f023 0307 bic.w r3, r3, #7 + 8010036: 60fb str r3, [r7, #12] pxEnd = ( void * ) uxAddress; - 8010028: 68fb ldr r3, [r7, #12] - 801002a: 4a15 ldr r2, [pc, #84] ; (8010080 ) - 801002c: 6013 str r3, [r2, #0] + 8010038: 68fb ldr r3, [r7, #12] + 801003a: 4a15 ldr r2, [pc, #84] ; (8010090 ) + 801003c: 6013 str r3, [r2, #0] pxEnd->xBlockSize = 0; - 801002e: 4b14 ldr r3, [pc, #80] ; (8010080 ) - 8010030: 681b ldr r3, [r3, #0] - 8010032: 2200 movs r2, #0 - 8010034: 605a str r2, [r3, #4] + 801003e: 4b14 ldr r3, [pc, #80] ; (8010090 ) + 8010040: 681b ldr r3, [r3, #0] + 8010042: 2200 movs r2, #0 + 8010044: 605a str r2, [r3, #4] pxEnd->pxNextFreeBlock = NULL; - 8010036: 4b12 ldr r3, [pc, #72] ; (8010080 ) - 8010038: 681b ldr r3, [r3, #0] - 801003a: 2200 movs r2, #0 - 801003c: 601a str r2, [r3, #0] + 8010046: 4b12 ldr r3, [pc, #72] ; (8010090 ) + 8010048: 681b ldr r3, [r3, #0] + 801004a: 2200 movs r2, #0 + 801004c: 601a str r2, [r3, #0] /* To start with there is a single free block that is sized to take up the entire heap space, minus the space taken by pxEnd. */ pxFirstFreeBlock = ( void * ) pucAlignedHeap; - 801003e: 687b ldr r3, [r7, #4] - 8010040: 603b str r3, [r7, #0] + 801004e: 687b ldr r3, [r7, #4] + 8010050: 603b str r3, [r7, #0] pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock; - 8010042: 683b ldr r3, [r7, #0] - 8010044: 68fa ldr r2, [r7, #12] - 8010046: 1ad2 subs r2, r2, r3 - 8010048: 683b ldr r3, [r7, #0] - 801004a: 605a str r2, [r3, #4] + 8010052: 683b ldr r3, [r7, #0] + 8010054: 68fa ldr r2, [r7, #12] + 8010056: 1ad2 subs r2, r2, r3 + 8010058: 683b ldr r3, [r7, #0] + 801005a: 605a str r2, [r3, #4] pxFirstFreeBlock->pxNextFreeBlock = pxEnd; - 801004c: 4b0c ldr r3, [pc, #48] ; (8010080 ) - 801004e: 681a ldr r2, [r3, #0] - 8010050: 683b ldr r3, [r7, #0] - 8010052: 601a str r2, [r3, #0] + 801005c: 4b0c ldr r3, [pc, #48] ; (8010090 ) + 801005e: 681a ldr r2, [r3, #0] + 8010060: 683b ldr r3, [r7, #0] + 8010062: 601a str r2, [r3, #0] /* Only one block exists - and it covers the entire usable heap space. */ xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; - 8010054: 683b ldr r3, [r7, #0] - 8010056: 685b ldr r3, [r3, #4] - 8010058: 4a0a ldr r2, [pc, #40] ; (8010084 ) - 801005a: 6013 str r3, [r2, #0] + 8010064: 683b ldr r3, [r7, #0] + 8010066: 685b ldr r3, [r3, #4] + 8010068: 4a0a ldr r2, [pc, #40] ; (8010094 ) + 801006a: 6013 str r3, [r2, #0] xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize; - 801005c: 683b ldr r3, [r7, #0] - 801005e: 685b ldr r3, [r3, #4] - 8010060: 4a09 ldr r2, [pc, #36] ; (8010088 ) - 8010062: 6013 str r3, [r2, #0] + 801006c: 683b ldr r3, [r7, #0] + 801006e: 685b ldr r3, [r3, #4] + 8010070: 4a09 ldr r2, [pc, #36] ; (8010098 ) + 8010072: 6013 str r3, [r2, #0] /* Work out the position of the top bit in a size_t variable. */ xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 ); - 8010064: 4b09 ldr r3, [pc, #36] ; (801008c ) - 8010066: f04f 4200 mov.w r2, #2147483648 ; 0x80000000 - 801006a: 601a str r2, [r3, #0] -} - 801006c: bf00 nop - 801006e: 3714 adds r7, #20 - 8010070: 46bd mov sp, r7 - 8010072: f85d 7b04 ldr.w r7, [sp], #4 - 8010076: 4770 bx lr - 8010078: 200006b4 .word 0x200006b4 - 801007c: 200086b4 .word 0x200086b4 - 8010080: 200086bc .word 0x200086bc - 8010084: 200086c4 .word 0x200086c4 - 8010088: 200086c0 .word 0x200086c0 - 801008c: 200086c8 .word 0x200086c8 - -08010090 : + 8010074: 4b09 ldr r3, [pc, #36] ; (801009c ) + 8010076: f04f 4200 mov.w r2, #2147483648 ; 0x80000000 + 801007a: 601a str r2, [r3, #0] +} + 801007c: bf00 nop + 801007e: 3714 adds r7, #20 + 8010080: 46bd mov sp, r7 + 8010082: f85d 7b04 ldr.w r7, [sp], #4 + 8010086: 4770 bx lr + 8010088: 200006b4 .word 0x200006b4 + 801008c: 200086b4 .word 0x200086b4 + 8010090: 200086bc .word 0x200086bc + 8010094: 200086c4 .word 0x200086c4 + 8010098: 200086c0 .word 0x200086c0 + 801009c: 200086c8 .word 0x200086c8 + +080100a0 : /*-----------------------------------------------------------*/ static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert ) { - 8010090: b480 push {r7} - 8010092: b085 sub sp, #20 - 8010094: af00 add r7, sp, #0 - 8010096: 6078 str r0, [r7, #4] + 80100a0: b480 push {r7} + 80100a2: b085 sub sp, #20 + 80100a4: af00 add r7, sp, #0 + 80100a6: 6078 str r0, [r7, #4] BlockLink_t *pxIterator; uint8_t *puc; /* Iterate through the list until a block is found that has a higher address than the block being inserted. */ for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock ) - 8010098: 4b28 ldr r3, [pc, #160] ; (801013c ) - 801009a: 60fb str r3, [r7, #12] - 801009c: e002 b.n 80100a4 - 801009e: 68fb ldr r3, [r7, #12] - 80100a0: 681b ldr r3, [r3, #0] - 80100a2: 60fb str r3, [r7, #12] - 80100a4: 68fb ldr r3, [r7, #12] - 80100a6: 681b ldr r3, [r3, #0] - 80100a8: 687a ldr r2, [r7, #4] - 80100aa: 429a cmp r2, r3 - 80100ac: d8f7 bhi.n 801009e + 80100a8: 4b28 ldr r3, [pc, #160] ; (801014c ) + 80100aa: 60fb str r3, [r7, #12] + 80100ac: e002 b.n 80100b4 + 80100ae: 68fb ldr r3, [r7, #12] + 80100b0: 681b ldr r3, [r3, #0] + 80100b2: 60fb str r3, [r7, #12] + 80100b4: 68fb ldr r3, [r7, #12] + 80100b6: 681b ldr r3, [r3, #0] + 80100b8: 687a ldr r2, [r7, #4] + 80100ba: 429a cmp r2, r3 + 80100bc: d8f7 bhi.n 80100ae /* Nothing to do here, just iterate to the right position. */ } /* Do the block being inserted, and the block it is being inserted after make a contiguous block of memory? */ puc = ( uint8_t * ) pxIterator; - 80100ae: 68fb ldr r3, [r7, #12] - 80100b0: 60bb str r3, [r7, #8] + 80100be: 68fb ldr r3, [r7, #12] + 80100c0: 60bb str r3, [r7, #8] if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert ) - 80100b2: 68fb ldr r3, [r7, #12] - 80100b4: 685b ldr r3, [r3, #4] - 80100b6: 68ba ldr r2, [r7, #8] - 80100b8: 4413 add r3, r2 - 80100ba: 687a ldr r2, [r7, #4] - 80100bc: 429a cmp r2, r3 - 80100be: d108 bne.n 80100d2 + 80100c2: 68fb ldr r3, [r7, #12] + 80100c4: 685b ldr r3, [r3, #4] + 80100c6: 68ba ldr r2, [r7, #8] + 80100c8: 4413 add r3, r2 + 80100ca: 687a ldr r2, [r7, #4] + 80100cc: 429a cmp r2, r3 + 80100ce: d108 bne.n 80100e2 { pxIterator->xBlockSize += pxBlockToInsert->xBlockSize; - 80100c0: 68fb ldr r3, [r7, #12] - 80100c2: 685a ldr r2, [r3, #4] - 80100c4: 687b ldr r3, [r7, #4] - 80100c6: 685b ldr r3, [r3, #4] - 80100c8: 441a add r2, r3 - 80100ca: 68fb ldr r3, [r7, #12] - 80100cc: 605a str r2, [r3, #4] + 80100d0: 68fb ldr r3, [r7, #12] + 80100d2: 685a ldr r2, [r3, #4] + 80100d4: 687b ldr r3, [r7, #4] + 80100d6: 685b ldr r3, [r3, #4] + 80100d8: 441a add r2, r3 + 80100da: 68fb ldr r3, [r7, #12] + 80100dc: 605a str r2, [r3, #4] pxBlockToInsert = pxIterator; - 80100ce: 68fb ldr r3, [r7, #12] - 80100d0: 607b str r3, [r7, #4] + 80100de: 68fb ldr r3, [r7, #12] + 80100e0: 607b str r3, [r7, #4] mtCOVERAGE_TEST_MARKER(); } /* Do the block being inserted, and the block it is being inserted before make a contiguous block of memory? */ puc = ( uint8_t * ) pxBlockToInsert; - 80100d2: 687b ldr r3, [r7, #4] - 80100d4: 60bb str r3, [r7, #8] + 80100e2: 687b ldr r3, [r7, #4] + 80100e4: 60bb str r3, [r7, #8] if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock ) - 80100d6: 687b ldr r3, [r7, #4] - 80100d8: 685b ldr r3, [r3, #4] - 80100da: 68ba ldr r2, [r7, #8] - 80100dc: 441a add r2, r3 - 80100de: 68fb ldr r3, [r7, #12] - 80100e0: 681b ldr r3, [r3, #0] - 80100e2: 429a cmp r2, r3 - 80100e4: d118 bne.n 8010118 + 80100e6: 687b ldr r3, [r7, #4] + 80100e8: 685b ldr r3, [r3, #4] + 80100ea: 68ba ldr r2, [r7, #8] + 80100ec: 441a add r2, r3 + 80100ee: 68fb ldr r3, [r7, #12] + 80100f0: 681b ldr r3, [r3, #0] + 80100f2: 429a cmp r2, r3 + 80100f4: d118 bne.n 8010128 { if( pxIterator->pxNextFreeBlock != pxEnd ) - 80100e6: 68fb ldr r3, [r7, #12] - 80100e8: 681a ldr r2, [r3, #0] - 80100ea: 4b15 ldr r3, [pc, #84] ; (8010140 ) - 80100ec: 681b ldr r3, [r3, #0] - 80100ee: 429a cmp r2, r3 - 80100f0: d00d beq.n 801010e + 80100f6: 68fb ldr r3, [r7, #12] + 80100f8: 681a ldr r2, [r3, #0] + 80100fa: 4b15 ldr r3, [pc, #84] ; (8010150 ) + 80100fc: 681b ldr r3, [r3, #0] + 80100fe: 429a cmp r2, r3 + 8010100: d00d beq.n 801011e { /* Form one big block from the two blocks. */ pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize; - 80100f2: 687b ldr r3, [r7, #4] - 80100f4: 685a ldr r2, [r3, #4] - 80100f6: 68fb ldr r3, [r7, #12] - 80100f8: 681b ldr r3, [r3, #0] - 80100fa: 685b ldr r3, [r3, #4] - 80100fc: 441a add r2, r3 - 80100fe: 687b ldr r3, [r7, #4] - 8010100: 605a str r2, [r3, #4] + 8010102: 687b ldr r3, [r7, #4] + 8010104: 685a ldr r2, [r3, #4] + 8010106: 68fb ldr r3, [r7, #12] + 8010108: 681b ldr r3, [r3, #0] + 801010a: 685b ldr r3, [r3, #4] + 801010c: 441a add r2, r3 + 801010e: 687b ldr r3, [r7, #4] + 8010110: 605a str r2, [r3, #4] pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock; - 8010102: 68fb ldr r3, [r7, #12] - 8010104: 681b ldr r3, [r3, #0] - 8010106: 681a ldr r2, [r3, #0] - 8010108: 687b ldr r3, [r7, #4] - 801010a: 601a str r2, [r3, #0] - 801010c: e008 b.n 8010120 + 8010112: 68fb ldr r3, [r7, #12] + 8010114: 681b ldr r3, [r3, #0] + 8010116: 681a ldr r2, [r3, #0] + 8010118: 687b ldr r3, [r7, #4] + 801011a: 601a str r2, [r3, #0] + 801011c: e008 b.n 8010130 } else { pxBlockToInsert->pxNextFreeBlock = pxEnd; - 801010e: 4b0c ldr r3, [pc, #48] ; (8010140 ) - 8010110: 681a ldr r2, [r3, #0] - 8010112: 687b ldr r3, [r7, #4] - 8010114: 601a str r2, [r3, #0] - 8010116: e003 b.n 8010120 + 801011e: 4b0c ldr r3, [pc, #48] ; (8010150 ) + 8010120: 681a ldr r2, [r3, #0] + 8010122: 687b ldr r3, [r7, #4] + 8010124: 601a str r2, [r3, #0] + 8010126: e003 b.n 8010130 } } else { pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock; - 8010118: 68fb ldr r3, [r7, #12] - 801011a: 681a ldr r2, [r3, #0] - 801011c: 687b ldr r3, [r7, #4] - 801011e: 601a str r2, [r3, #0] + 8010128: 68fb ldr r3, [r7, #12] + 801012a: 681a ldr r2, [r3, #0] + 801012c: 687b ldr r3, [r7, #4] + 801012e: 601a str r2, [r3, #0] /* If the block being inserted plugged a gab, so was merged with the block before and the block after, then it's pxNextFreeBlock pointer will have already been set, and should not be set here as that would make it point to itself. */ if( pxIterator != pxBlockToInsert ) - 8010120: 68fa ldr r2, [r7, #12] - 8010122: 687b ldr r3, [r7, #4] - 8010124: 429a cmp r2, r3 - 8010126: d002 beq.n 801012e + 8010130: 68fa ldr r2, [r7, #12] + 8010132: 687b ldr r3, [r7, #4] + 8010134: 429a cmp r2, r3 + 8010136: d002 beq.n 801013e { pxIterator->pxNextFreeBlock = pxBlockToInsert; - 8010128: 68fb ldr r3, [r7, #12] - 801012a: 687a ldr r2, [r7, #4] - 801012c: 601a str r2, [r3, #0] + 8010138: 68fb ldr r3, [r7, #12] + 801013a: 687a ldr r2, [r7, #4] + 801013c: 601a str r2, [r3, #0] } else { mtCOVERAGE_TEST_MARKER(); } } - 801012e: bf00 nop - 8010130: 3714 adds r7, #20 - 8010132: 46bd mov sp, r7 - 8010134: f85d 7b04 ldr.w r7, [sp], #4 - 8010138: 4770 bx lr - 801013a: bf00 nop - 801013c: 200086b4 .word 0x200086b4 - 8010140: 200086bc .word 0x200086bc + 801013e: bf00 nop + 8010140: 3714 adds r7, #20 + 8010142: 46bd mov sp, r7 + 8010144: f85d 7b04 ldr.w r7, [sp], #4 + 8010148: 4770 bx lr + 801014a: bf00 nop + 801014c: 200086b4 .word 0x200086b4 + 8010150: 200086bc .word 0x200086bc -08010144 : +08010154 : * @param mbox the mbox to fetch the message from * @param msg the place to store the message */ static void tcpip_timeouts_mbox_fetch(sys_mbox_t *mbox, void **msg) { - 8010144: b580 push {r7, lr} - 8010146: b084 sub sp, #16 - 8010148: af00 add r7, sp, #0 - 801014a: 6078 str r0, [r7, #4] - 801014c: 6039 str r1, [r7, #0] + 8010154: b580 push {r7, lr} + 8010156: b084 sub sp, #16 + 8010158: af00 add r7, sp, #0 + 801015a: 6078 str r0, [r7, #4] + 801015c: 6039 str r1, [r7, #0] u32_t sleeptime, res; again: LWIP_ASSERT_CORE_LOCKED(); sleeptime = sys_timeouts_sleeptime(); - 801014e: f007 fa91 bl 8017674 - 8010152: 60f8 str r0, [r7, #12] + 801015e: f007 fa91 bl 8017684 + 8010162: 60f8 str r0, [r7, #12] if (sleeptime == SYS_TIMEOUTS_SLEEPTIME_INFINITE) { - 8010154: 68fb ldr r3, [r7, #12] - 8010156: f1b3 3fff cmp.w r3, #4294967295 - 801015a: d10b bne.n 8010174 + 8010164: 68fb ldr r3, [r7, #12] + 8010166: f1b3 3fff cmp.w r3, #4294967295 + 801016a: d10b bne.n 8010184 UNLOCK_TCPIP_CORE(); - 801015c: 4813 ldr r0, [pc, #76] ; (80101ac ) - 801015e: f00c f9c2 bl 801c4e6 + 801016c: 4813 ldr r0, [pc, #76] ; (80101bc ) + 801016e: f00c f9c2 bl 801c4f6 sys_arch_mbox_fetch(mbox, msg, 0); - 8010162: 2200 movs r2, #0 - 8010164: 6839 ldr r1, [r7, #0] - 8010166: 6878 ldr r0, [r7, #4] - 8010168: f00c f934 bl 801c3d4 + 8010172: 2200 movs r2, #0 + 8010174: 6839 ldr r1, [r7, #0] + 8010176: 6878 ldr r0, [r7, #4] + 8010178: f00c f934 bl 801c3e4 LOCK_TCPIP_CORE(); - 801016c: 480f ldr r0, [pc, #60] ; (80101ac ) - 801016e: f00c f9ab bl 801c4c8 + 801017c: 480f ldr r0, [pc, #60] ; (80101bc ) + 801017e: f00c f9ab bl 801c4d8 return; - 8010172: e018 b.n 80101a6 + 8010182: e018 b.n 80101b6 } else if (sleeptime == 0) { - 8010174: 68fb ldr r3, [r7, #12] - 8010176: 2b00 cmp r3, #0 - 8010178: d102 bne.n 8010180 + 8010184: 68fb ldr r3, [r7, #12] + 8010186: 2b00 cmp r3, #0 + 8010188: d102 bne.n 8010190 sys_check_timeouts(); - 801017a: f007 fa41 bl 8017600 + 801018a: f007 fa41 bl 8017610 /* We try again to fetch a message from the mbox. */ goto again; - 801017e: e7e6 b.n 801014e + 801018e: e7e6 b.n 801015e } UNLOCK_TCPIP_CORE(); - 8010180: 480a ldr r0, [pc, #40] ; (80101ac ) - 8010182: f00c f9b0 bl 801c4e6 + 8010190: 480a ldr r0, [pc, #40] ; (80101bc ) + 8010192: f00c f9b0 bl 801c4f6 res = sys_arch_mbox_fetch(mbox, msg, sleeptime); - 8010186: 68fa ldr r2, [r7, #12] - 8010188: 6839 ldr r1, [r7, #0] - 801018a: 6878 ldr r0, [r7, #4] - 801018c: f00c f922 bl 801c3d4 - 8010190: 60b8 str r0, [r7, #8] + 8010196: 68fa ldr r2, [r7, #12] + 8010198: 6839 ldr r1, [r7, #0] + 801019a: 6878 ldr r0, [r7, #4] + 801019c: f00c f922 bl 801c3e4 + 80101a0: 60b8 str r0, [r7, #8] LOCK_TCPIP_CORE(); - 8010192: 4806 ldr r0, [pc, #24] ; (80101ac ) - 8010194: f00c f998 bl 801c4c8 + 80101a2: 4806 ldr r0, [pc, #24] ; (80101bc ) + 80101a4: f00c f998 bl 801c4d8 if (res == SYS_ARCH_TIMEOUT) { - 8010198: 68bb ldr r3, [r7, #8] - 801019a: f1b3 3fff cmp.w r3, #4294967295 - 801019e: d102 bne.n 80101a6 + 80101a8: 68bb ldr r3, [r7, #8] + 80101aa: f1b3 3fff cmp.w r3, #4294967295 + 80101ae: d102 bne.n 80101b6 /* If a SYS_ARCH_TIMEOUT value is returned, a timeout occurred before a message could be fetched. */ sys_check_timeouts(); - 80101a0: f007 fa2e bl 8017600 + 80101b0: f007 fa2e bl 8017610 /* We try again to fetch a message from the mbox. */ goto again; - 80101a4: e7d3 b.n 801014e + 80101b4: e7d3 b.n 801015e } } - 80101a6: 3710 adds r7, #16 - 80101a8: 46bd mov sp, r7 - 80101aa: bd80 pop {r7, pc} - 80101ac: 2000c0b8 .word 0x2000c0b8 + 80101b6: 3710 adds r7, #16 + 80101b8: 46bd mov sp, r7 + 80101ba: bd80 pop {r7, pc} + 80101bc: 2000c0b8 .word 0x2000c0b8 -080101b0 : +080101c0 : * * @param arg unused argument */ static void tcpip_thread(void *arg) { - 80101b0: b580 push {r7, lr} - 80101b2: b084 sub sp, #16 - 80101b4: af00 add r7, sp, #0 - 80101b6: 6078 str r0, [r7, #4] + 80101c0: b580 push {r7, lr} + 80101c2: b084 sub sp, #16 + 80101c4: af00 add r7, sp, #0 + 80101c6: 6078 str r0, [r7, #4] struct tcpip_msg *msg; LWIP_UNUSED_ARG(arg); LWIP_MARK_TCPIP_THREAD(); LOCK_TCPIP_CORE(); - 80101b8: 4810 ldr r0, [pc, #64] ; (80101fc ) - 80101ba: f00c f985 bl 801c4c8 + 80101c8: 4810 ldr r0, [pc, #64] ; (801020c ) + 80101ca: f00c f985 bl 801c4d8 if (tcpip_init_done != NULL) { - 80101be: 4b10 ldr r3, [pc, #64] ; (8010200 ) - 80101c0: 681b ldr r3, [r3, #0] - 80101c2: 2b00 cmp r3, #0 - 80101c4: d005 beq.n 80101d2 + 80101ce: 4b10 ldr r3, [pc, #64] ; (8010210 ) + 80101d0: 681b ldr r3, [r3, #0] + 80101d2: 2b00 cmp r3, #0 + 80101d4: d005 beq.n 80101e2 tcpip_init_done(tcpip_init_done_arg); - 80101c6: 4b0e ldr r3, [pc, #56] ; (8010200 ) - 80101c8: 681b ldr r3, [r3, #0] - 80101ca: 4a0e ldr r2, [pc, #56] ; (8010204 ) - 80101cc: 6812 ldr r2, [r2, #0] - 80101ce: 4610 mov r0, r2 - 80101d0: 4798 blx r3 + 80101d6: 4b0e ldr r3, [pc, #56] ; (8010210 ) + 80101d8: 681b ldr r3, [r3, #0] + 80101da: 4a0e ldr r2, [pc, #56] ; (8010214 ) + 80101dc: 6812 ldr r2, [r2, #0] + 80101de: 4610 mov r0, r2 + 80101e0: 4798 blx r3 } while (1) { /* MAIN Loop */ LWIP_TCPIP_THREAD_ALIVE(); /* wait for a message, timeouts are processed while waiting */ TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg); - 80101d2: f107 030c add.w r3, r7, #12 - 80101d6: 4619 mov r1, r3 - 80101d8: 480b ldr r0, [pc, #44] ; (8010208 ) - 80101da: f7ff ffb3 bl 8010144 + 80101e2: f107 030c add.w r3, r7, #12 + 80101e6: 4619 mov r1, r3 + 80101e8: 480b ldr r0, [pc, #44] ; (8010218 ) + 80101ea: f7ff ffb3 bl 8010154 if (msg == NULL) { - 80101de: 68fb ldr r3, [r7, #12] - 80101e0: 2b00 cmp r3, #0 - 80101e2: d106 bne.n 80101f2 + 80101ee: 68fb ldr r3, [r7, #12] + 80101f0: 2b00 cmp r3, #0 + 80101f2: d106 bne.n 8010202 LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: NULL\n")); LWIP_ASSERT("tcpip_thread: invalid message", 0); - 80101e4: 4b09 ldr r3, [pc, #36] ; (801020c ) - 80101e6: 2291 movs r2, #145 ; 0x91 - 80101e8: 4909 ldr r1, [pc, #36] ; (8010210 ) - 80101ea: 480a ldr r0, [pc, #40] ; (8010214 ) - 80101ec: f00c fa2c bl 801c648 + 80101f4: 4b09 ldr r3, [pc, #36] ; (801021c ) + 80101f6: 2291 movs r2, #145 ; 0x91 + 80101f8: 4909 ldr r1, [pc, #36] ; (8010220 ) + 80101fa: 480a ldr r0, [pc, #40] ; (8010224 ) + 80101fc: f00c fa2c bl 801c658 continue; - 80101f0: e003 b.n 80101fa + 8010200: e003 b.n 801020a } tcpip_thread_handle_msg(msg); - 80101f2: 68fb ldr r3, [r7, #12] - 80101f4: 4618 mov r0, r3 - 80101f6: f000 f80f bl 8010218 + 8010202: 68fb ldr r3, [r7, #12] + 8010204: 4618 mov r0, r3 + 8010206: f000 f80f bl 8010228 TCPIP_MBOX_FETCH(&tcpip_mbox, (void **)&msg); - 80101fa: e7ea b.n 80101d2 - 80101fc: 2000c0b8 .word 0x2000c0b8 - 8010200: 200086cc .word 0x200086cc - 8010204: 200086d0 .word 0x200086d0 - 8010208: 200086d4 .word 0x200086d4 - 801020c: 0801d964 .word 0x0801d964 - 8010210: 0801d994 .word 0x0801d994 - 8010214: 0801d9b4 .word 0x0801d9b4 - -08010218 : + 801020a: e7ea b.n 80101e2 + 801020c: 2000c0b8 .word 0x2000c0b8 + 8010210: 200086cc .word 0x200086cc + 8010214: 200086d0 .word 0x200086d0 + 8010218: 200086d4 .word 0x200086d4 + 801021c: 0801d974 .word 0x0801d974 + 8010220: 0801d9a4 .word 0x0801d9a4 + 8010224: 0801d9c4 .word 0x0801d9c4 + +08010228 : /* Handle a single tcpip_msg * This is in its own function for access by tests only. */ static void tcpip_thread_handle_msg(struct tcpip_msg *msg) { - 8010218: b580 push {r7, lr} - 801021a: b082 sub sp, #8 - 801021c: af00 add r7, sp, #0 - 801021e: 6078 str r0, [r7, #4] + 8010228: b580 push {r7, lr} + 801022a: b082 sub sp, #8 + 801022c: af00 add r7, sp, #0 + 801022e: 6078 str r0, [r7, #4] switch (msg->type) { - 8010220: 687b ldr r3, [r7, #4] - 8010222: 781b ldrb r3, [r3, #0] - 8010224: 2b01 cmp r3, #1 - 8010226: d018 beq.n 801025a - 8010228: 2b02 cmp r3, #2 - 801022a: d021 beq.n 8010270 - 801022c: 2b00 cmp r3, #0 - 801022e: d126 bne.n 801027e + 8010230: 687b ldr r3, [r7, #4] + 8010232: 781b ldrb r3, [r3, #0] + 8010234: 2b01 cmp r3, #1 + 8010236: d018 beq.n 801026a + 8010238: 2b02 cmp r3, #2 + 801023a: d021 beq.n 8010280 + 801023c: 2b00 cmp r3, #0 + 801023e: d126 bne.n 801028e #endif /* !LWIP_TCPIP_CORE_LOCKING */ #if !LWIP_TCPIP_CORE_LOCKING_INPUT case TCPIP_MSG_INPKT: LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: PACKET %p\n", (void *)msg)); if (msg->msg.inp.input_fn(msg->msg.inp.p, msg->msg.inp.netif) != ERR_OK) { - 8010230: 687b ldr r3, [r7, #4] - 8010232: 68db ldr r3, [r3, #12] - 8010234: 687a ldr r2, [r7, #4] - 8010236: 6850 ldr r0, [r2, #4] - 8010238: 687a ldr r2, [r7, #4] - 801023a: 6892 ldr r2, [r2, #8] - 801023c: 4611 mov r1, r2 - 801023e: 4798 blx r3 - 8010240: 4603 mov r3, r0 - 8010242: 2b00 cmp r3, #0 - 8010244: d004 beq.n 8010250 + 8010240: 687b ldr r3, [r7, #4] + 8010242: 68db ldr r3, [r3, #12] + 8010244: 687a ldr r2, [r7, #4] + 8010246: 6850 ldr r0, [r2, #4] + 8010248: 687a ldr r2, [r7, #4] + 801024a: 6892 ldr r2, [r2, #8] + 801024c: 4611 mov r1, r2 + 801024e: 4798 blx r3 + 8010250: 4603 mov r3, r0 + 8010252: 2b00 cmp r3, #0 + 8010254: d004 beq.n 8010260 pbuf_free(msg->msg.inp.p); - 8010246: 687b ldr r3, [r7, #4] - 8010248: 685b ldr r3, [r3, #4] - 801024a: 4618 mov r0, r3 - 801024c: f001 fccc bl 8011be8 + 8010256: 687b ldr r3, [r7, #4] + 8010258: 685b ldr r3, [r3, #4] + 801025a: 4618 mov r0, r3 + 801025c: f001 fccc bl 8011bf8 } memp_free(MEMP_TCPIP_MSG_INPKT, msg); - 8010250: 6879 ldr r1, [r7, #4] - 8010252: 2009 movs r0, #9 - 8010254: f000 fe1c bl 8010e90 + 8010260: 6879 ldr r1, [r7, #4] + 8010262: 2009 movs r0, #9 + 8010264: f000 fe1c bl 8010ea0 break; - 8010258: e018 b.n 801028c + 8010268: e018 b.n 801029c break; #endif /* LWIP_TCPIP_TIMEOUT && LWIP_TIMERS */ case TCPIP_MSG_CALLBACK: LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK %p\n", (void *)msg)); msg->msg.cb.function(msg->msg.cb.ctx); - 801025a: 687b ldr r3, [r7, #4] - 801025c: 685b ldr r3, [r3, #4] - 801025e: 687a ldr r2, [r7, #4] - 8010260: 6892 ldr r2, [r2, #8] - 8010262: 4610 mov r0, r2 - 8010264: 4798 blx r3 + 801026a: 687b ldr r3, [r7, #4] + 801026c: 685b ldr r3, [r3, #4] + 801026e: 687a ldr r2, [r7, #4] + 8010270: 6892 ldr r2, [r2, #8] + 8010272: 4610 mov r0, r2 + 8010274: 4798 blx r3 memp_free(MEMP_TCPIP_MSG_API, msg); - 8010266: 6879 ldr r1, [r7, #4] - 8010268: 2008 movs r0, #8 - 801026a: f000 fe11 bl 8010e90 + 8010276: 6879 ldr r1, [r7, #4] + 8010278: 2008 movs r0, #8 + 801027a: f000 fe11 bl 8010ea0 break; - 801026e: e00d b.n 801028c + 801027e: e00d b.n 801029c case TCPIP_MSG_CALLBACK_STATIC: LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: CALLBACK_STATIC %p\n", (void *)msg)); msg->msg.cb.function(msg->msg.cb.ctx); - 8010270: 687b ldr r3, [r7, #4] - 8010272: 685b ldr r3, [r3, #4] - 8010274: 687a ldr r2, [r7, #4] - 8010276: 6892 ldr r2, [r2, #8] - 8010278: 4610 mov r0, r2 - 801027a: 4798 blx r3 + 8010280: 687b ldr r3, [r7, #4] + 8010282: 685b ldr r3, [r3, #4] + 8010284: 687a ldr r2, [r7, #4] + 8010286: 6892 ldr r2, [r2, #8] + 8010288: 4610 mov r0, r2 + 801028a: 4798 blx r3 break; - 801027c: e006 b.n 801028c + 801028c: e006 b.n 801029c default: LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_thread: invalid message: %d\n", msg->type)); LWIP_ASSERT("tcpip_thread: invalid message", 0); - 801027e: 4b05 ldr r3, [pc, #20] ; (8010294 ) - 8010280: 22cf movs r2, #207 ; 0xcf - 8010282: 4905 ldr r1, [pc, #20] ; (8010298 ) - 8010284: 4805 ldr r0, [pc, #20] ; (801029c ) - 8010286: f00c f9df bl 801c648 + 801028e: 4b05 ldr r3, [pc, #20] ; (80102a4 ) + 8010290: 22cf movs r2, #207 ; 0xcf + 8010292: 4905 ldr r1, [pc, #20] ; (80102a8 ) + 8010294: 4805 ldr r0, [pc, #20] ; (80102ac ) + 8010296: f00c f9df bl 801c658 break; - 801028a: bf00 nop + 801029a: bf00 nop } } - 801028c: bf00 nop - 801028e: 3708 adds r7, #8 - 8010290: 46bd mov sp, r7 - 8010292: bd80 pop {r7, pc} - 8010294: 0801d964 .word 0x0801d964 - 8010298: 0801d994 .word 0x0801d994 - 801029c: 0801d9b4 .word 0x0801d9b4 + 801029c: bf00 nop + 801029e: 3708 adds r7, #8 + 80102a0: 46bd mov sp, r7 + 80102a2: bd80 pop {r7, pc} + 80102a4: 0801d974 .word 0x0801d974 + 80102a8: 0801d9a4 .word 0x0801d9a4 + 80102ac: 0801d9c4 .word 0x0801d9c4 -080102a0 : +080102b0 : * @param inp the network interface on which the packet was received * @param input_fn input function to call */ err_t tcpip_inpkt(struct pbuf *p, struct netif *inp, netif_input_fn input_fn) { - 80102a0: b580 push {r7, lr} - 80102a2: b086 sub sp, #24 - 80102a4: af00 add r7, sp, #0 - 80102a6: 60f8 str r0, [r7, #12] - 80102a8: 60b9 str r1, [r7, #8] - 80102aa: 607a str r2, [r7, #4] + 80102b0: b580 push {r7, lr} + 80102b2: b086 sub sp, #24 + 80102b4: af00 add r7, sp, #0 + 80102b6: 60f8 str r0, [r7, #12] + 80102b8: 60b9 str r1, [r7, #8] + 80102ba: 607a str r2, [r7, #4] UNLOCK_TCPIP_CORE(); return ret; #else /* LWIP_TCPIP_CORE_LOCKING_INPUT */ struct tcpip_msg *msg; LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - 80102ac: 481a ldr r0, [pc, #104] ; (8010318 ) - 80102ae: f00c f8d0 bl 801c452 - 80102b2: 4603 mov r3, r0 - 80102b4: 2b00 cmp r3, #0 - 80102b6: d105 bne.n 80102c4 - 80102b8: 4b18 ldr r3, [pc, #96] ; (801031c ) - 80102ba: 22fc movs r2, #252 ; 0xfc - 80102bc: 4918 ldr r1, [pc, #96] ; (8010320 ) - 80102be: 4819 ldr r0, [pc, #100] ; (8010324 ) - 80102c0: f00c f9c2 bl 801c648 + 80102bc: 481a ldr r0, [pc, #104] ; (8010328 ) + 80102be: f00c f8d0 bl 801c462 + 80102c2: 4603 mov r3, r0 + 80102c4: 2b00 cmp r3, #0 + 80102c6: d105 bne.n 80102d4 + 80102c8: 4b18 ldr r3, [pc, #96] ; (801032c ) + 80102ca: 22fc movs r2, #252 ; 0xfc + 80102cc: 4918 ldr r1, [pc, #96] ; (8010330 ) + 80102ce: 4819 ldr r0, [pc, #100] ; (8010334 ) + 80102d0: f00c f9c2 bl 801c658 msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT); - 80102c4: 2009 movs r0, #9 - 80102c6: f000 fd91 bl 8010dec - 80102ca: 6178 str r0, [r7, #20] + 80102d4: 2009 movs r0, #9 + 80102d6: f000 fd91 bl 8010dfc + 80102da: 6178 str r0, [r7, #20] if (msg == NULL) { - 80102cc: 697b ldr r3, [r7, #20] - 80102ce: 2b00 cmp r3, #0 - 80102d0: d102 bne.n 80102d8 + 80102dc: 697b ldr r3, [r7, #20] + 80102de: 2b00 cmp r3, #0 + 80102e0: d102 bne.n 80102e8 return ERR_MEM; - 80102d2: f04f 33ff mov.w r3, #4294967295 - 80102d6: e01a b.n 801030e + 80102e2: f04f 33ff mov.w r3, #4294967295 + 80102e6: e01a b.n 801031e } msg->type = TCPIP_MSG_INPKT; - 80102d8: 697b ldr r3, [r7, #20] - 80102da: 2200 movs r2, #0 - 80102dc: 701a strb r2, [r3, #0] + 80102e8: 697b ldr r3, [r7, #20] + 80102ea: 2200 movs r2, #0 + 80102ec: 701a strb r2, [r3, #0] msg->msg.inp.p = p; - 80102de: 697b ldr r3, [r7, #20] - 80102e0: 68fa ldr r2, [r7, #12] - 80102e2: 605a str r2, [r3, #4] + 80102ee: 697b ldr r3, [r7, #20] + 80102f0: 68fa ldr r2, [r7, #12] + 80102f2: 605a str r2, [r3, #4] msg->msg.inp.netif = inp; - 80102e4: 697b ldr r3, [r7, #20] - 80102e6: 68ba ldr r2, [r7, #8] - 80102e8: 609a str r2, [r3, #8] + 80102f4: 697b ldr r3, [r7, #20] + 80102f6: 68ba ldr r2, [r7, #8] + 80102f8: 609a str r2, [r3, #8] msg->msg.inp.input_fn = input_fn; - 80102ea: 697b ldr r3, [r7, #20] - 80102ec: 687a ldr r2, [r7, #4] - 80102ee: 60da str r2, [r3, #12] + 80102fa: 697b ldr r3, [r7, #20] + 80102fc: 687a ldr r2, [r7, #4] + 80102fe: 60da str r2, [r3, #12] if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) { - 80102f0: 6979 ldr r1, [r7, #20] - 80102f2: 4809 ldr r0, [pc, #36] ; (8010318 ) - 80102f4: f00c f854 bl 801c3a0 - 80102f8: 4603 mov r3, r0 - 80102fa: 2b00 cmp r3, #0 - 80102fc: d006 beq.n 801030c + 8010300: 6979 ldr r1, [r7, #20] + 8010302: 4809 ldr r0, [pc, #36] ; (8010328 ) + 8010304: f00c f854 bl 801c3b0 + 8010308: 4603 mov r3, r0 + 801030a: 2b00 cmp r3, #0 + 801030c: d006 beq.n 801031c memp_free(MEMP_TCPIP_MSG_INPKT, msg); - 80102fe: 6979 ldr r1, [r7, #20] - 8010300: 2009 movs r0, #9 - 8010302: f000 fdc5 bl 8010e90 + 801030e: 6979 ldr r1, [r7, #20] + 8010310: 2009 movs r0, #9 + 8010312: f000 fdc5 bl 8010ea0 return ERR_MEM; - 8010306: f04f 33ff mov.w r3, #4294967295 - 801030a: e000 b.n 801030e + 8010316: f04f 33ff mov.w r3, #4294967295 + 801031a: e000 b.n 801031e } return ERR_OK; - 801030c: 2300 movs r3, #0 + 801031c: 2300 movs r3, #0 #endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */ } - 801030e: 4618 mov r0, r3 - 8010310: 3718 adds r7, #24 - 8010312: 46bd mov sp, r7 - 8010314: bd80 pop {r7, pc} - 8010316: bf00 nop - 8010318: 200086d4 .word 0x200086d4 - 801031c: 0801d964 .word 0x0801d964 - 8010320: 0801d9dc .word 0x0801d9dc - 8010324: 0801d9b4 .word 0x0801d9b4 - -08010328 : + 801031e: 4618 mov r0, r3 + 8010320: 3718 adds r7, #24 + 8010322: 46bd mov sp, r7 + 8010324: bd80 pop {r7, pc} + 8010326: bf00 nop + 8010328: 200086d4 .word 0x200086d4 + 801032c: 0801d974 .word 0x0801d974 + 8010330: 0801d9ec .word 0x0801d9ec + 8010334: 0801d9c4 .word 0x0801d9c4 + +08010338 : * NETIF_FLAG_ETHERNET flags) * @param inp the network interface on which the packet was received */ err_t tcpip_input(struct pbuf *p, struct netif *inp) { - 8010328: b580 push {r7, lr} - 801032a: b082 sub sp, #8 - 801032c: af00 add r7, sp, #0 - 801032e: 6078 str r0, [r7, #4] - 8010330: 6039 str r1, [r7, #0] + 8010338: b580 push {r7, lr} + 801033a: b082 sub sp, #8 + 801033c: af00 add r7, sp, #0 + 801033e: 6078 str r0, [r7, #4] + 8010340: 6039 str r1, [r7, #0] #if LWIP_ETHERNET if (inp->flags & (NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET)) { - 8010332: 683b ldr r3, [r7, #0] - 8010334: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8010338: f003 0318 and.w r3, r3, #24 - 801033c: 2b00 cmp r3, #0 - 801033e: d006 beq.n 801034e + 8010342: 683b ldr r3, [r7, #0] + 8010344: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8010348: f003 0318 and.w r3, r3, #24 + 801034c: 2b00 cmp r3, #0 + 801034e: d006 beq.n 801035e return tcpip_inpkt(p, inp, ethernet_input); - 8010340: 4a08 ldr r2, [pc, #32] ; (8010364 ) - 8010342: 6839 ldr r1, [r7, #0] - 8010344: 6878 ldr r0, [r7, #4] - 8010346: f7ff ffab bl 80102a0 - 801034a: 4603 mov r3, r0 - 801034c: e005 b.n 801035a + 8010350: 4a08 ldr r2, [pc, #32] ; (8010374 ) + 8010352: 6839 ldr r1, [r7, #0] + 8010354: 6878 ldr r0, [r7, #4] + 8010356: f7ff ffab bl 80102b0 + 801035a: 4603 mov r3, r0 + 801035c: e005 b.n 801036a } else #endif /* LWIP_ETHERNET */ return tcpip_inpkt(p, inp, ip_input); - 801034e: 4a06 ldr r2, [pc, #24] ; (8010368 ) - 8010350: 6839 ldr r1, [r7, #0] - 8010352: 6878 ldr r0, [r7, #4] - 8010354: f7ff ffa4 bl 80102a0 - 8010358: 4603 mov r3, r0 -} - 801035a: 4618 mov r0, r3 - 801035c: 3708 adds r7, #8 - 801035e: 46bd mov sp, r7 - 8010360: bd80 pop {r7, pc} - 8010362: bf00 nop - 8010364: 0801c1b1 .word 0x0801c1b1 - 8010368: 0801b095 .word 0x0801b095 - -0801036c : + 801035e: 4a06 ldr r2, [pc, #24] ; (8010378 ) + 8010360: 6839 ldr r1, [r7, #0] + 8010362: 6878 ldr r0, [r7, #4] + 8010364: f7ff ffa4 bl 80102b0 + 8010368: 4603 mov r3, r0 +} + 801036a: 4618 mov r0, r3 + 801036c: 3708 adds r7, #8 + 801036e: 46bd mov sp, r7 + 8010370: bd80 pop {r7, pc} + 8010372: bf00 nop + 8010374: 0801c1c1 .word 0x0801c1c1 + 8010378: 0801b0a5 .word 0x0801b0a5 + +0801037c : * * @see tcpip_callback */ err_t tcpip_try_callback(tcpip_callback_fn function, void *ctx) { - 801036c: b580 push {r7, lr} - 801036e: b084 sub sp, #16 - 8010370: af00 add r7, sp, #0 - 8010372: 6078 str r0, [r7, #4] - 8010374: 6039 str r1, [r7, #0] + 801037c: b580 push {r7, lr} + 801037e: b084 sub sp, #16 + 8010380: af00 add r7, sp, #0 + 8010382: 6078 str r0, [r7, #4] + 8010384: 6039 str r1, [r7, #0] struct tcpip_msg *msg; LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(tcpip_mbox)); - 8010376: 4819 ldr r0, [pc, #100] ; (80103dc ) - 8010378: f00c f86b bl 801c452 - 801037c: 4603 mov r3, r0 - 801037e: 2b00 cmp r3, #0 - 8010380: d106 bne.n 8010390 - 8010382: 4b17 ldr r3, [pc, #92] ; (80103e0 ) - 8010384: f240 125d movw r2, #349 ; 0x15d - 8010388: 4916 ldr r1, [pc, #88] ; (80103e4 ) - 801038a: 4817 ldr r0, [pc, #92] ; (80103e8 ) - 801038c: f00c f95c bl 801c648 + 8010386: 4819 ldr r0, [pc, #100] ; (80103ec ) + 8010388: f00c f86b bl 801c462 + 801038c: 4603 mov r3, r0 + 801038e: 2b00 cmp r3, #0 + 8010390: d106 bne.n 80103a0 + 8010392: 4b17 ldr r3, [pc, #92] ; (80103f0 ) + 8010394: f240 125d movw r2, #349 ; 0x15d + 8010398: 4916 ldr r1, [pc, #88] ; (80103f4 ) + 801039a: 4817 ldr r0, [pc, #92] ; (80103f8 ) + 801039c: f00c f95c bl 801c658 msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API); - 8010390: 2008 movs r0, #8 - 8010392: f000 fd2b bl 8010dec - 8010396: 60f8 str r0, [r7, #12] + 80103a0: 2008 movs r0, #8 + 80103a2: f000 fd2b bl 8010dfc + 80103a6: 60f8 str r0, [r7, #12] if (msg == NULL) { - 8010398: 68fb ldr r3, [r7, #12] - 801039a: 2b00 cmp r3, #0 - 801039c: d102 bne.n 80103a4 + 80103a8: 68fb ldr r3, [r7, #12] + 80103aa: 2b00 cmp r3, #0 + 80103ac: d102 bne.n 80103b4 return ERR_MEM; - 801039e: f04f 33ff mov.w r3, #4294967295 - 80103a2: e017 b.n 80103d4 + 80103ae: f04f 33ff mov.w r3, #4294967295 + 80103b2: e017 b.n 80103e4 } msg->type = TCPIP_MSG_CALLBACK; - 80103a4: 68fb ldr r3, [r7, #12] - 80103a6: 2201 movs r2, #1 - 80103a8: 701a strb r2, [r3, #0] + 80103b4: 68fb ldr r3, [r7, #12] + 80103b6: 2201 movs r2, #1 + 80103b8: 701a strb r2, [r3, #0] msg->msg.cb.function = function; - 80103aa: 68fb ldr r3, [r7, #12] - 80103ac: 687a ldr r2, [r7, #4] - 80103ae: 605a str r2, [r3, #4] + 80103ba: 68fb ldr r3, [r7, #12] + 80103bc: 687a ldr r2, [r7, #4] + 80103be: 605a str r2, [r3, #4] msg->msg.cb.ctx = ctx; - 80103b0: 68fb ldr r3, [r7, #12] - 80103b2: 683a ldr r2, [r7, #0] - 80103b4: 609a str r2, [r3, #8] + 80103c0: 68fb ldr r3, [r7, #12] + 80103c2: 683a ldr r2, [r7, #0] + 80103c4: 609a str r2, [r3, #8] if (sys_mbox_trypost(&tcpip_mbox, msg) != ERR_OK) { - 80103b6: 68f9 ldr r1, [r7, #12] - 80103b8: 4808 ldr r0, [pc, #32] ; (80103dc ) - 80103ba: f00b fff1 bl 801c3a0 - 80103be: 4603 mov r3, r0 - 80103c0: 2b00 cmp r3, #0 - 80103c2: d006 beq.n 80103d2 + 80103c6: 68f9 ldr r1, [r7, #12] + 80103c8: 4808 ldr r0, [pc, #32] ; (80103ec ) + 80103ca: f00b fff1 bl 801c3b0 + 80103ce: 4603 mov r3, r0 + 80103d0: 2b00 cmp r3, #0 + 80103d2: d006 beq.n 80103e2 memp_free(MEMP_TCPIP_MSG_API, msg); - 80103c4: 68f9 ldr r1, [r7, #12] - 80103c6: 2008 movs r0, #8 - 80103c8: f000 fd62 bl 8010e90 + 80103d4: 68f9 ldr r1, [r7, #12] + 80103d6: 2008 movs r0, #8 + 80103d8: f000 fd62 bl 8010ea0 return ERR_MEM; - 80103cc: f04f 33ff mov.w r3, #4294967295 - 80103d0: e000 b.n 80103d4 + 80103dc: f04f 33ff mov.w r3, #4294967295 + 80103e0: e000 b.n 80103e4 } return ERR_OK; - 80103d2: 2300 movs r3, #0 -} - 80103d4: 4618 mov r0, r3 - 80103d6: 3710 adds r7, #16 - 80103d8: 46bd mov sp, r7 - 80103da: bd80 pop {r7, pc} - 80103dc: 200086d4 .word 0x200086d4 - 80103e0: 0801d964 .word 0x0801d964 - 80103e4: 0801d9dc .word 0x0801d9dc - 80103e8: 0801d9b4 .word 0x0801d9b4 - -080103ec : + 80103e2: 2300 movs r3, #0 +} + 80103e4: 4618 mov r0, r3 + 80103e6: 3710 adds r7, #16 + 80103e8: 46bd mov sp, r7 + 80103ea: bd80 pop {r7, pc} + 80103ec: 200086d4 .word 0x200086d4 + 80103f0: 0801d974 .word 0x0801d974 + 80103f4: 0801d9ec .word 0x0801d9ec + 80103f8: 0801d9c4 .word 0x0801d9c4 + +080103fc : * @param initfunc a function to call when tcpip_thread is running and finished initializing * @param arg argument to pass to initfunc */ void tcpip_init(tcpip_init_done_fn initfunc, void *arg) { - 80103ec: b580 push {r7, lr} - 80103ee: b084 sub sp, #16 - 80103f0: af02 add r7, sp, #8 - 80103f2: 6078 str r0, [r7, #4] - 80103f4: 6039 str r1, [r7, #0] + 80103fc: b580 push {r7, lr} + 80103fe: b084 sub sp, #16 + 8010400: af02 add r7, sp, #8 + 8010402: 6078 str r0, [r7, #4] + 8010404: 6039 str r1, [r7, #0] lwip_init(); - 80103f6: f000 f871 bl 80104dc + 8010406: f000 f871 bl 80104ec tcpip_init_done = initfunc; - 80103fa: 4a17 ldr r2, [pc, #92] ; (8010458 ) - 80103fc: 687b ldr r3, [r7, #4] - 80103fe: 6013 str r3, [r2, #0] + 801040a: 4a17 ldr r2, [pc, #92] ; (8010468 ) + 801040c: 687b ldr r3, [r7, #4] + 801040e: 6013 str r3, [r2, #0] tcpip_init_done_arg = arg; - 8010400: 4a16 ldr r2, [pc, #88] ; (801045c ) - 8010402: 683b ldr r3, [r7, #0] - 8010404: 6013 str r3, [r2, #0] + 8010410: 4a16 ldr r2, [pc, #88] ; (801046c ) + 8010412: 683b ldr r3, [r7, #0] + 8010414: 6013 str r3, [r2, #0] if (sys_mbox_new(&tcpip_mbox, TCPIP_MBOX_SIZE) != ERR_OK) { - 8010406: 2106 movs r1, #6 - 8010408: 4815 ldr r0, [pc, #84] ; (8010460 ) - 801040a: f00b ffa7 bl 801c35c - 801040e: 4603 mov r3, r0 - 8010410: 2b00 cmp r3, #0 - 8010412: d006 beq.n 8010422 + 8010416: 2106 movs r1, #6 + 8010418: 4815 ldr r0, [pc, #84] ; (8010470 ) + 801041a: f00b ffa7 bl 801c36c + 801041e: 4603 mov r3, r0 + 8010420: 2b00 cmp r3, #0 + 8010422: d006 beq.n 8010432 LWIP_ASSERT("failed to create tcpip_thread mbox", 0); - 8010414: 4b13 ldr r3, [pc, #76] ; (8010464 ) - 8010416: f240 2261 movw r2, #609 ; 0x261 - 801041a: 4913 ldr r1, [pc, #76] ; (8010468 ) - 801041c: 4813 ldr r0, [pc, #76] ; (801046c ) - 801041e: f00c f913 bl 801c648 + 8010424: 4b13 ldr r3, [pc, #76] ; (8010474 ) + 8010426: f240 2261 movw r2, #609 ; 0x261 + 801042a: 4913 ldr r1, [pc, #76] ; (8010478 ) + 801042c: 4813 ldr r0, [pc, #76] ; (801047c ) + 801042e: f00c f913 bl 801c658 } #if LWIP_TCPIP_CORE_LOCKING if (sys_mutex_new(&lock_tcpip_core) != ERR_OK) { - 8010422: 4813 ldr r0, [pc, #76] ; (8010470 ) - 8010424: f00c f834 bl 801c490 - 8010428: 4603 mov r3, r0 - 801042a: 2b00 cmp r3, #0 - 801042c: d006 beq.n 801043c + 8010432: 4813 ldr r0, [pc, #76] ; (8010480 ) + 8010434: f00c f834 bl 801c4a0 + 8010438: 4603 mov r3, r0 + 801043a: 2b00 cmp r3, #0 + 801043c: d006 beq.n 801044c LWIP_ASSERT("failed to create lock_tcpip_core", 0); - 801042e: 4b0d ldr r3, [pc, #52] ; (8010464 ) - 8010430: f240 2265 movw r2, #613 ; 0x265 - 8010434: 490f ldr r1, [pc, #60] ; (8010474 ) - 8010436: 480d ldr r0, [pc, #52] ; (801046c ) - 8010438: f00c f906 bl 801c648 + 801043e: 4b0d ldr r3, [pc, #52] ; (8010474 ) + 8010440: f240 2265 movw r2, #613 ; 0x265 + 8010444: 490f ldr r1, [pc, #60] ; (8010484 ) + 8010446: 480d ldr r0, [pc, #52] ; (801047c ) + 8010448: f00c f906 bl 801c658 } #endif /* LWIP_TCPIP_CORE_LOCKING */ sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO); - 801043c: 2300 movs r3, #0 - 801043e: 9300 str r3, [sp, #0] - 8010440: f44f 6380 mov.w r3, #1024 ; 0x400 - 8010444: 2200 movs r2, #0 - 8010446: 490c ldr r1, [pc, #48] ; (8010478 ) - 8010448: 480c ldr r0, [pc, #48] ; (801047c ) - 801044a: f00c f859 bl 801c500 -} - 801044e: bf00 nop - 8010450: 3708 adds r7, #8 - 8010452: 46bd mov sp, r7 - 8010454: bd80 pop {r7, pc} - 8010456: bf00 nop - 8010458: 200086cc .word 0x200086cc - 801045c: 200086d0 .word 0x200086d0 - 8010460: 200086d4 .word 0x200086d4 - 8010464: 0801d964 .word 0x0801d964 - 8010468: 0801d9ec .word 0x0801d9ec - 801046c: 0801d9b4 .word 0x0801d9b4 - 8010470: 2000c0b8 .word 0x2000c0b8 - 8010474: 0801da10 .word 0x0801da10 - 8010478: 080101b1 .word 0x080101b1 - 801047c: 0801da34 .word 0x0801da34 - -08010480 : + 801044c: 2300 movs r3, #0 + 801044e: 9300 str r3, [sp, #0] + 8010450: f44f 6380 mov.w r3, #1024 ; 0x400 + 8010454: 2200 movs r2, #0 + 8010456: 490c ldr r1, [pc, #48] ; (8010488 ) + 8010458: 480c ldr r0, [pc, #48] ; (801048c ) + 801045a: f00c f859 bl 801c510 +} + 801045e: bf00 nop + 8010460: 3708 adds r7, #8 + 8010462: 46bd mov sp, r7 + 8010464: bd80 pop {r7, pc} + 8010466: bf00 nop + 8010468: 200086cc .word 0x200086cc + 801046c: 200086d0 .word 0x200086d0 + 8010470: 200086d4 .word 0x200086d4 + 8010474: 0801d974 .word 0x0801d974 + 8010478: 0801d9fc .word 0x0801d9fc + 801047c: 0801d9c4 .word 0x0801d9c4 + 8010480: 2000c0b8 .word 0x2000c0b8 + 8010484: 0801da20 .word 0x0801da20 + 8010488: 080101c1 .word 0x080101c1 + 801048c: 0801da44 .word 0x0801da44 + +08010490 : * @param n u16_t in host byte order * @return n in network byte order */ u16_t lwip_htons(u16_t n) { - 8010480: b480 push {r7} - 8010482: b083 sub sp, #12 - 8010484: af00 add r7, sp, #0 - 8010486: 4603 mov r3, r0 - 8010488: 80fb strh r3, [r7, #6] + 8010490: b480 push {r7} + 8010492: b083 sub sp, #12 + 8010494: af00 add r7, sp, #0 + 8010496: 4603 mov r3, r0 + 8010498: 80fb strh r3, [r7, #6] return PP_HTONS(n); - 801048a: 88fb ldrh r3, [r7, #6] - 801048c: 021b lsls r3, r3, #8 - 801048e: b21a sxth r2, r3 - 8010490: 88fb ldrh r3, [r7, #6] - 8010492: 0a1b lsrs r3, r3, #8 - 8010494: b29b uxth r3, r3 - 8010496: b21b sxth r3, r3 - 8010498: 4313 orrs r3, r2 - 801049a: b21b sxth r3, r3 - 801049c: b29b uxth r3, r3 -} - 801049e: 4618 mov r0, r3 - 80104a0: 370c adds r7, #12 - 80104a2: 46bd mov sp, r7 - 80104a4: f85d 7b04 ldr.w r7, [sp], #4 - 80104a8: 4770 bx lr - -080104aa : + 801049a: 88fb ldrh r3, [r7, #6] + 801049c: 021b lsls r3, r3, #8 + 801049e: b21a sxth r2, r3 + 80104a0: 88fb ldrh r3, [r7, #6] + 80104a2: 0a1b lsrs r3, r3, #8 + 80104a4: b29b uxth r3, r3 + 80104a6: b21b sxth r3, r3 + 80104a8: 4313 orrs r3, r2 + 80104aa: b21b sxth r3, r3 + 80104ac: b29b uxth r3, r3 +} + 80104ae: 4618 mov r0, r3 + 80104b0: 370c adds r7, #12 + 80104b2: 46bd mov sp, r7 + 80104b4: f85d 7b04 ldr.w r7, [sp], #4 + 80104b8: 4770 bx lr + +080104ba : * @param n u32_t in host byte order * @return n in network byte order */ u32_t lwip_htonl(u32_t n) { - 80104aa: b480 push {r7} - 80104ac: b083 sub sp, #12 - 80104ae: af00 add r7, sp, #0 - 80104b0: 6078 str r0, [r7, #4] + 80104ba: b480 push {r7} + 80104bc: b083 sub sp, #12 + 80104be: af00 add r7, sp, #0 + 80104c0: 6078 str r0, [r7, #4] return PP_HTONL(n); - 80104b2: 687b ldr r3, [r7, #4] - 80104b4: 061a lsls r2, r3, #24 - 80104b6: 687b ldr r3, [r7, #4] - 80104b8: 021b lsls r3, r3, #8 - 80104ba: f403 037f and.w r3, r3, #16711680 ; 0xff0000 - 80104be: 431a orrs r2, r3 - 80104c0: 687b ldr r3, [r7, #4] - 80104c2: 0a1b lsrs r3, r3, #8 - 80104c4: f403 437f and.w r3, r3, #65280 ; 0xff00 - 80104c8: 431a orrs r2, r3 - 80104ca: 687b ldr r3, [r7, #4] - 80104cc: 0e1b lsrs r3, r3, #24 - 80104ce: 4313 orrs r3, r2 -} - 80104d0: 4618 mov r0, r3 - 80104d2: 370c adds r7, #12 - 80104d4: 46bd mov sp, r7 - 80104d6: f85d 7b04 ldr.w r7, [sp], #4 - 80104da: 4770 bx lr - -080104dc : + 80104c2: 687b ldr r3, [r7, #4] + 80104c4: 061a lsls r2, r3, #24 + 80104c6: 687b ldr r3, [r7, #4] + 80104c8: 021b lsls r3, r3, #8 + 80104ca: f403 037f and.w r3, r3, #16711680 ; 0xff0000 + 80104ce: 431a orrs r2, r3 + 80104d0: 687b ldr r3, [r7, #4] + 80104d2: 0a1b lsrs r3, r3, #8 + 80104d4: f403 437f and.w r3, r3, #65280 ; 0xff00 + 80104d8: 431a orrs r2, r3 + 80104da: 687b ldr r3, [r7, #4] + 80104dc: 0e1b lsrs r3, r3, #24 + 80104de: 4313 orrs r3, r2 +} + 80104e0: 4618 mov r0, r3 + 80104e2: 370c adds r7, #12 + 80104e4: 46bd mov sp, r7 + 80104e6: f85d 7b04 ldr.w r7, [sp], #4 + 80104ea: 4770 bx lr + +080104ec : * Initialize all modules. * Use this in NO_SYS mode. Use tcpip_init() otherwise. */ void lwip_init(void) { - 80104dc: b580 push {r7, lr} - 80104de: b082 sub sp, #8 - 80104e0: af00 add r7, sp, #0 + 80104ec: b580 push {r7, lr} + 80104ee: b082 sub sp, #8 + 80104f0: af00 add r7, sp, #0 #ifndef LWIP_SKIP_CONST_CHECK int a = 0; - 80104e2: 2300 movs r3, #0 - 80104e4: 607b str r3, [r7, #4] + 80104f2: 2300 movs r3, #0 + 80104f4: 607b str r3, [r7, #4] #endif /* Modules initialization */ stats_init(); #if !NO_SYS sys_init(); - 80104e6: f00b ffc5 bl 801c474 + 80104f6: f00b ffc5 bl 801c484 #endif /* !NO_SYS */ mem_init(); - 80104ea: f000 f8d5 bl 8010698 + 80104fa: f000 f8d5 bl 80106a8 memp_init(); - 80104ee: f000 fc31 bl 8010d54 + 80104fe: f000 fc31 bl 8010d64 pbuf_init(); netif_init(); - 80104f2: f000 fcf7 bl 8010ee4 + 8010502: f000 fcf7 bl 8010ef4 #endif /* LWIP_IPV4 */ #if LWIP_RAW raw_init(); #endif /* LWIP_RAW */ #if LWIP_UDP udp_init(); - 80104f6: f007 f8f5 bl 80176e4 + 8010506: f007 f8f5 bl 80176f4 #endif /* LWIP_UDP */ #if LWIP_TCP tcp_init(); - 80104fa: f001 fe1f bl 801213c + 801050a: f001 fe1f bl 801214c #if PPP_SUPPORT ppp_init(); #endif #if LWIP_TIMERS sys_timeouts_init(); - 80104fe: f007 f839 bl 8017574 + 801050e: f007 f839 bl 8017584 #endif /* LWIP_TIMERS */ } - 8010502: bf00 nop - 8010504: 3708 adds r7, #8 - 8010506: 46bd mov sp, r7 - 8010508: bd80 pop {r7, pc} + 8010512: bf00 nop + 8010514: 3708 adds r7, #8 + 8010516: 46bd mov sp, r7 + 8010518: bd80 pop {r7, pc} ... -0801050c : +0801051c : #define mem_overflow_check_element(mem) #endif /* MEM_OVERFLOW_CHECK */ static struct mem * ptr_to_mem(mem_size_t ptr) { - 801050c: b480 push {r7} - 801050e: b083 sub sp, #12 - 8010510: af00 add r7, sp, #0 - 8010512: 4603 mov r3, r0 - 8010514: 80fb strh r3, [r7, #6] + 801051c: b480 push {r7} + 801051e: b083 sub sp, #12 + 8010520: af00 add r7, sp, #0 + 8010522: 4603 mov r3, r0 + 8010524: 80fb strh r3, [r7, #6] return (struct mem *)(void *)&ram[ptr]; - 8010516: 4b05 ldr r3, [pc, #20] ; (801052c ) - 8010518: 681a ldr r2, [r3, #0] - 801051a: 88fb ldrh r3, [r7, #6] - 801051c: 4413 add r3, r2 + 8010526: 4b05 ldr r3, [pc, #20] ; (801053c ) + 8010528: 681a ldr r2, [r3, #0] + 801052a: 88fb ldrh r3, [r7, #6] + 801052c: 4413 add r3, r2 } - 801051e: 4618 mov r0, r3 - 8010520: 370c adds r7, #12 - 8010522: 46bd mov sp, r7 - 8010524: f85d 7b04 ldr.w r7, [sp], #4 - 8010528: 4770 bx lr - 801052a: bf00 nop - 801052c: 200086d8 .word 0x200086d8 + 801052e: 4618 mov r0, r3 + 8010530: 370c adds r7, #12 + 8010532: 46bd mov sp, r7 + 8010534: f85d 7b04 ldr.w r7, [sp], #4 + 8010538: 4770 bx lr + 801053a: bf00 nop + 801053c: 200086d8 .word 0x200086d8 -08010530 : +08010540 : static mem_size_t mem_to_ptr(void *mem) { - 8010530: b480 push {r7} - 8010532: b083 sub sp, #12 - 8010534: af00 add r7, sp, #0 - 8010536: 6078 str r0, [r7, #4] + 8010540: b480 push {r7} + 8010542: b083 sub sp, #12 + 8010544: af00 add r7, sp, #0 + 8010546: 6078 str r0, [r7, #4] return (mem_size_t)((u8_t *)mem - ram); - 8010538: 687b ldr r3, [r7, #4] - 801053a: 4a05 ldr r2, [pc, #20] ; (8010550 ) - 801053c: 6812 ldr r2, [r2, #0] - 801053e: 1a9b subs r3, r3, r2 - 8010540: b29b uxth r3, r3 -} - 8010542: 4618 mov r0, r3 - 8010544: 370c adds r7, #12 - 8010546: 46bd mov sp, r7 - 8010548: f85d 7b04 ldr.w r7, [sp], #4 - 801054c: 4770 bx lr - 801054e: bf00 nop - 8010550: 200086d8 .word 0x200086d8 - -08010554 : + 8010548: 687b ldr r3, [r7, #4] + 801054a: 4a05 ldr r2, [pc, #20] ; (8010560 ) + 801054c: 6812 ldr r2, [r2, #0] + 801054e: 1a9b subs r3, r3, r2 + 8010550: b29b uxth r3, r3 +} + 8010552: 4618 mov r0, r3 + 8010554: 370c adds r7, #12 + 8010556: 46bd mov sp, r7 + 8010558: f85d 7b04 ldr.w r7, [sp], #4 + 801055c: 4770 bx lr + 801055e: bf00 nop + 8010560: 200086d8 .word 0x200086d8 + +08010564 : * This assumes access to the heap is protected by the calling function * already. */ static void plug_holes(struct mem *mem) { - 8010554: b590 push {r4, r7, lr} - 8010556: b085 sub sp, #20 - 8010558: af00 add r7, sp, #0 - 801055a: 6078 str r0, [r7, #4] + 8010564: b590 push {r4, r7, lr} + 8010566: b085 sub sp, #20 + 8010568: af00 add r7, sp, #0 + 801056a: 6078 str r0, [r7, #4] struct mem *nmem; struct mem *pmem; LWIP_ASSERT("plug_holes: mem >= ram", (u8_t *)mem >= ram); - 801055c: 4b45 ldr r3, [pc, #276] ; (8010674 ) - 801055e: 681b ldr r3, [r3, #0] - 8010560: 687a ldr r2, [r7, #4] - 8010562: 429a cmp r2, r3 - 8010564: d206 bcs.n 8010574 - 8010566: 4b44 ldr r3, [pc, #272] ; (8010678 ) - 8010568: f240 12df movw r2, #479 ; 0x1df - 801056c: 4943 ldr r1, [pc, #268] ; (801067c ) - 801056e: 4844 ldr r0, [pc, #272] ; (8010680 ) - 8010570: f00c f86a bl 801c648 + 801056c: 4b45 ldr r3, [pc, #276] ; (8010684 ) + 801056e: 681b ldr r3, [r3, #0] + 8010570: 687a ldr r2, [r7, #4] + 8010572: 429a cmp r2, r3 + 8010574: d206 bcs.n 8010584 + 8010576: 4b44 ldr r3, [pc, #272] ; (8010688 ) + 8010578: f240 12df movw r2, #479 ; 0x1df + 801057c: 4943 ldr r1, [pc, #268] ; (801068c ) + 801057e: 4844 ldr r0, [pc, #272] ; (8010690 ) + 8010580: f00c f86a bl 801c658 LWIP_ASSERT("plug_holes: mem < ram_end", (u8_t *)mem < (u8_t *)ram_end); - 8010574: 4b43 ldr r3, [pc, #268] ; (8010684 ) - 8010576: 681b ldr r3, [r3, #0] - 8010578: 687a ldr r2, [r7, #4] - 801057a: 429a cmp r2, r3 - 801057c: d306 bcc.n 801058c - 801057e: 4b3e ldr r3, [pc, #248] ; (8010678 ) - 8010580: f44f 72f0 mov.w r2, #480 ; 0x1e0 - 8010584: 4940 ldr r1, [pc, #256] ; (8010688 ) - 8010586: 483e ldr r0, [pc, #248] ; (8010680 ) - 8010588: f00c f85e bl 801c648 + 8010584: 4b43 ldr r3, [pc, #268] ; (8010694 ) + 8010586: 681b ldr r3, [r3, #0] + 8010588: 687a ldr r2, [r7, #4] + 801058a: 429a cmp r2, r3 + 801058c: d306 bcc.n 801059c + 801058e: 4b3e ldr r3, [pc, #248] ; (8010688 ) + 8010590: f44f 72f0 mov.w r2, #480 ; 0x1e0 + 8010594: 4940 ldr r1, [pc, #256] ; (8010698 ) + 8010596: 483e ldr r0, [pc, #248] ; (8010690 ) + 8010598: f00c f85e bl 801c658 LWIP_ASSERT("plug_holes: mem->used == 0", mem->used == 0); - 801058c: 687b ldr r3, [r7, #4] - 801058e: 791b ldrb r3, [r3, #4] - 8010590: 2b00 cmp r3, #0 - 8010592: d006 beq.n 80105a2 - 8010594: 4b38 ldr r3, [pc, #224] ; (8010678 ) - 8010596: f240 12e1 movw r2, #481 ; 0x1e1 - 801059a: 493c ldr r1, [pc, #240] ; (801068c ) - 801059c: 4838 ldr r0, [pc, #224] ; (8010680 ) - 801059e: f00c f853 bl 801c648 + 801059c: 687b ldr r3, [r7, #4] + 801059e: 791b ldrb r3, [r3, #4] + 80105a0: 2b00 cmp r3, #0 + 80105a2: d006 beq.n 80105b2 + 80105a4: 4b38 ldr r3, [pc, #224] ; (8010688 ) + 80105a6: f240 12e1 movw r2, #481 ; 0x1e1 + 80105aa: 493c ldr r1, [pc, #240] ; (801069c ) + 80105ac: 4838 ldr r0, [pc, #224] ; (8010690 ) + 80105ae: f00c f853 bl 801c658 /* plug hole forward */ LWIP_ASSERT("plug_holes: mem->next <= MEM_SIZE_ALIGNED", mem->next <= MEM_SIZE_ALIGNED); - 80105a2: 687b ldr r3, [r7, #4] - 80105a4: 881b ldrh r3, [r3, #0] - 80105a6: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 80105aa: d906 bls.n 80105ba - 80105ac: 4b32 ldr r3, [pc, #200] ; (8010678 ) - 80105ae: f44f 72f2 mov.w r2, #484 ; 0x1e4 - 80105b2: 4937 ldr r1, [pc, #220] ; (8010690 ) - 80105b4: 4832 ldr r0, [pc, #200] ; (8010680 ) - 80105b6: f00c f847 bl 801c648 + 80105b2: 687b ldr r3, [r7, #4] + 80105b4: 881b ldrh r3, [r3, #0] + 80105b6: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 80105ba: d906 bls.n 80105ca + 80105bc: 4b32 ldr r3, [pc, #200] ; (8010688 ) + 80105be: f44f 72f2 mov.w r2, #484 ; 0x1e4 + 80105c2: 4937 ldr r1, [pc, #220] ; (80106a0 ) + 80105c4: 4832 ldr r0, [pc, #200] ; (8010690 ) + 80105c6: f00c f847 bl 801c658 nmem = ptr_to_mem(mem->next); - 80105ba: 687b ldr r3, [r7, #4] - 80105bc: 881b ldrh r3, [r3, #0] - 80105be: 4618 mov r0, r3 - 80105c0: f7ff ffa4 bl 801050c - 80105c4: 60f8 str r0, [r7, #12] + 80105ca: 687b ldr r3, [r7, #4] + 80105cc: 881b ldrh r3, [r3, #0] + 80105ce: 4618 mov r0, r3 + 80105d0: f7ff ffa4 bl 801051c + 80105d4: 60f8 str r0, [r7, #12] if (mem != nmem && nmem->used == 0 && (u8_t *)nmem != (u8_t *)ram_end) { - 80105c6: 687a ldr r2, [r7, #4] - 80105c8: 68fb ldr r3, [r7, #12] - 80105ca: 429a cmp r2, r3 - 80105cc: d024 beq.n 8010618 - 80105ce: 68fb ldr r3, [r7, #12] - 80105d0: 791b ldrb r3, [r3, #4] - 80105d2: 2b00 cmp r3, #0 - 80105d4: d120 bne.n 8010618 - 80105d6: 4b2b ldr r3, [pc, #172] ; (8010684 ) - 80105d8: 681b ldr r3, [r3, #0] - 80105da: 68fa ldr r2, [r7, #12] - 80105dc: 429a cmp r2, r3 - 80105de: d01b beq.n 8010618 + 80105d6: 687a ldr r2, [r7, #4] + 80105d8: 68fb ldr r3, [r7, #12] + 80105da: 429a cmp r2, r3 + 80105dc: d024 beq.n 8010628 + 80105de: 68fb ldr r3, [r7, #12] + 80105e0: 791b ldrb r3, [r3, #4] + 80105e2: 2b00 cmp r3, #0 + 80105e4: d120 bne.n 8010628 + 80105e6: 4b2b ldr r3, [pc, #172] ; (8010694 ) + 80105e8: 681b ldr r3, [r3, #0] + 80105ea: 68fa ldr r2, [r7, #12] + 80105ec: 429a cmp r2, r3 + 80105ee: d01b beq.n 8010628 /* if mem->next is unused and not end of ram, combine mem and mem->next */ if (lfree == nmem) { - 80105e0: 4b2c ldr r3, [pc, #176] ; (8010694 ) - 80105e2: 681b ldr r3, [r3, #0] - 80105e4: 68fa ldr r2, [r7, #12] - 80105e6: 429a cmp r2, r3 - 80105e8: d102 bne.n 80105f0 + 80105f0: 4b2c ldr r3, [pc, #176] ; (80106a4 ) + 80105f2: 681b ldr r3, [r3, #0] + 80105f4: 68fa ldr r2, [r7, #12] + 80105f6: 429a cmp r2, r3 + 80105f8: d102 bne.n 8010600 lfree = mem; - 80105ea: 4a2a ldr r2, [pc, #168] ; (8010694 ) - 80105ec: 687b ldr r3, [r7, #4] - 80105ee: 6013 str r3, [r2, #0] + 80105fa: 4a2a ldr r2, [pc, #168] ; (80106a4 ) + 80105fc: 687b ldr r3, [r7, #4] + 80105fe: 6013 str r3, [r2, #0] } mem->next = nmem->next; - 80105f0: 68fb ldr r3, [r7, #12] - 80105f2: 881a ldrh r2, [r3, #0] - 80105f4: 687b ldr r3, [r7, #4] - 80105f6: 801a strh r2, [r3, #0] + 8010600: 68fb ldr r3, [r7, #12] + 8010602: 881a ldrh r2, [r3, #0] + 8010604: 687b ldr r3, [r7, #4] + 8010606: 801a strh r2, [r3, #0] if (nmem->next != MEM_SIZE_ALIGNED) { - 80105f8: 68fb ldr r3, [r7, #12] - 80105fa: 881b ldrh r3, [r3, #0] - 80105fc: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010600: d00a beq.n 8010618 + 8010608: 68fb ldr r3, [r7, #12] + 801060a: 881b ldrh r3, [r3, #0] + 801060c: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010610: d00a beq.n 8010628 ptr_to_mem(nmem->next)->prev = mem_to_ptr(mem); - 8010602: 68fb ldr r3, [r7, #12] - 8010604: 881b ldrh r3, [r3, #0] - 8010606: 4618 mov r0, r3 - 8010608: f7ff ff80 bl 801050c - 801060c: 4604 mov r4, r0 - 801060e: 6878 ldr r0, [r7, #4] - 8010610: f7ff ff8e bl 8010530 - 8010614: 4603 mov r3, r0 - 8010616: 8063 strh r3, [r4, #2] + 8010612: 68fb ldr r3, [r7, #12] + 8010614: 881b ldrh r3, [r3, #0] + 8010616: 4618 mov r0, r3 + 8010618: f7ff ff80 bl 801051c + 801061c: 4604 mov r4, r0 + 801061e: 6878 ldr r0, [r7, #4] + 8010620: f7ff ff8e bl 8010540 + 8010624: 4603 mov r3, r0 + 8010626: 8063 strh r3, [r4, #2] } } /* plug hole backward */ pmem = ptr_to_mem(mem->prev); - 8010618: 687b ldr r3, [r7, #4] - 801061a: 885b ldrh r3, [r3, #2] - 801061c: 4618 mov r0, r3 - 801061e: f7ff ff75 bl 801050c - 8010622: 60b8 str r0, [r7, #8] + 8010628: 687b ldr r3, [r7, #4] + 801062a: 885b ldrh r3, [r3, #2] + 801062c: 4618 mov r0, r3 + 801062e: f7ff ff75 bl 801051c + 8010632: 60b8 str r0, [r7, #8] if (pmem != mem && pmem->used == 0) { - 8010624: 68ba ldr r2, [r7, #8] - 8010626: 687b ldr r3, [r7, #4] - 8010628: 429a cmp r2, r3 - 801062a: d01f beq.n 801066c - 801062c: 68bb ldr r3, [r7, #8] - 801062e: 791b ldrb r3, [r3, #4] - 8010630: 2b00 cmp r3, #0 - 8010632: d11b bne.n 801066c + 8010634: 68ba ldr r2, [r7, #8] + 8010636: 687b ldr r3, [r7, #4] + 8010638: 429a cmp r2, r3 + 801063a: d01f beq.n 801067c + 801063c: 68bb ldr r3, [r7, #8] + 801063e: 791b ldrb r3, [r3, #4] + 8010640: 2b00 cmp r3, #0 + 8010642: d11b bne.n 801067c /* if mem->prev is unused, combine mem and mem->prev */ if (lfree == mem) { - 8010634: 4b17 ldr r3, [pc, #92] ; (8010694 ) - 8010636: 681b ldr r3, [r3, #0] - 8010638: 687a ldr r2, [r7, #4] - 801063a: 429a cmp r2, r3 - 801063c: d102 bne.n 8010644 + 8010644: 4b17 ldr r3, [pc, #92] ; (80106a4 ) + 8010646: 681b ldr r3, [r3, #0] + 8010648: 687a ldr r2, [r7, #4] + 801064a: 429a cmp r2, r3 + 801064c: d102 bne.n 8010654 lfree = pmem; - 801063e: 4a15 ldr r2, [pc, #84] ; (8010694 ) - 8010640: 68bb ldr r3, [r7, #8] - 8010642: 6013 str r3, [r2, #0] + 801064e: 4a15 ldr r2, [pc, #84] ; (80106a4 ) + 8010650: 68bb ldr r3, [r7, #8] + 8010652: 6013 str r3, [r2, #0] } pmem->next = mem->next; - 8010644: 687b ldr r3, [r7, #4] - 8010646: 881a ldrh r2, [r3, #0] - 8010648: 68bb ldr r3, [r7, #8] - 801064a: 801a strh r2, [r3, #0] + 8010654: 687b ldr r3, [r7, #4] + 8010656: 881a ldrh r2, [r3, #0] + 8010658: 68bb ldr r3, [r7, #8] + 801065a: 801a strh r2, [r3, #0] if (mem->next != MEM_SIZE_ALIGNED) { - 801064c: 687b ldr r3, [r7, #4] - 801064e: 881b ldrh r3, [r3, #0] - 8010650: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010654: d00a beq.n 801066c + 801065c: 687b ldr r3, [r7, #4] + 801065e: 881b ldrh r3, [r3, #0] + 8010660: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010664: d00a beq.n 801067c ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem); - 8010656: 687b ldr r3, [r7, #4] - 8010658: 881b ldrh r3, [r3, #0] - 801065a: 4618 mov r0, r3 - 801065c: f7ff ff56 bl 801050c - 8010660: 4604 mov r4, r0 - 8010662: 68b8 ldr r0, [r7, #8] - 8010664: f7ff ff64 bl 8010530 - 8010668: 4603 mov r3, r0 - 801066a: 8063 strh r3, [r4, #2] + 8010666: 687b ldr r3, [r7, #4] + 8010668: 881b ldrh r3, [r3, #0] + 801066a: 4618 mov r0, r3 + 801066c: f7ff ff56 bl 801051c + 8010670: 4604 mov r4, r0 + 8010672: 68b8 ldr r0, [r7, #8] + 8010674: f7ff ff64 bl 8010540 + 8010678: 4603 mov r3, r0 + 801067a: 8063 strh r3, [r4, #2] } } } - 801066c: bf00 nop - 801066e: 3714 adds r7, #20 - 8010670: 46bd mov sp, r7 - 8010672: bd90 pop {r4, r7, pc} - 8010674: 200086d8 .word 0x200086d8 - 8010678: 0801da44 .word 0x0801da44 - 801067c: 0801da74 .word 0x0801da74 - 8010680: 0801da8c .word 0x0801da8c - 8010684: 200086dc .word 0x200086dc - 8010688: 0801dab4 .word 0x0801dab4 - 801068c: 0801dad0 .word 0x0801dad0 - 8010690: 0801daec .word 0x0801daec - 8010694: 200086e4 .word 0x200086e4 - -08010698 : + 801067c: bf00 nop + 801067e: 3714 adds r7, #20 + 8010680: 46bd mov sp, r7 + 8010682: bd90 pop {r4, r7, pc} + 8010684: 200086d8 .word 0x200086d8 + 8010688: 0801da54 .word 0x0801da54 + 801068c: 0801da84 .word 0x0801da84 + 8010690: 0801da9c .word 0x0801da9c + 8010694: 200086dc .word 0x200086dc + 8010698: 0801dac4 .word 0x0801dac4 + 801069c: 0801dae0 .word 0x0801dae0 + 80106a0: 0801dafc .word 0x0801dafc + 80106a4: 200086e4 .word 0x200086e4 + +080106a8 : /** * Zero the heap and initialize start, end and lowest-free */ void mem_init(void) { - 8010698: b580 push {r7, lr} - 801069a: b082 sub sp, #8 - 801069c: af00 add r7, sp, #0 + 80106a8: b580 push {r7, lr} + 80106aa: b082 sub sp, #8 + 80106ac: af00 add r7, sp, #0 LWIP_ASSERT("Sanity check alignment", (SIZEOF_STRUCT_MEM & (MEM_ALIGNMENT - 1)) == 0); /* align the heap */ ram = (u8_t *)LWIP_MEM_ALIGN(LWIP_RAM_HEAP_POINTER); - 801069e: 4b1f ldr r3, [pc, #124] ; (801071c ) - 80106a0: 3303 adds r3, #3 - 80106a2: f023 0303 bic.w r3, r3, #3 - 80106a6: 461a mov r2, r3 - 80106a8: 4b1d ldr r3, [pc, #116] ; (8010720 ) - 80106aa: 601a str r2, [r3, #0] + 80106ae: 4b1f ldr r3, [pc, #124] ; (801072c ) + 80106b0: 3303 adds r3, #3 + 80106b2: f023 0303 bic.w r3, r3, #3 + 80106b6: 461a mov r2, r3 + 80106b8: 4b1d ldr r3, [pc, #116] ; (8010730 ) + 80106ba: 601a str r2, [r3, #0] /* initialize the start of the heap */ mem = (struct mem *)(void *)ram; - 80106ac: 4b1c ldr r3, [pc, #112] ; (8010720 ) - 80106ae: 681b ldr r3, [r3, #0] - 80106b0: 607b str r3, [r7, #4] + 80106bc: 4b1c ldr r3, [pc, #112] ; (8010730 ) + 80106be: 681b ldr r3, [r3, #0] + 80106c0: 607b str r3, [r7, #4] mem->next = MEM_SIZE_ALIGNED; - 80106b2: 687b ldr r3, [r7, #4] - 80106b4: f44f 62c8 mov.w r2, #1600 ; 0x640 - 80106b8: 801a strh r2, [r3, #0] + 80106c2: 687b ldr r3, [r7, #4] + 80106c4: f44f 62c8 mov.w r2, #1600 ; 0x640 + 80106c8: 801a strh r2, [r3, #0] mem->prev = 0; - 80106ba: 687b ldr r3, [r7, #4] - 80106bc: 2200 movs r2, #0 - 80106be: 805a strh r2, [r3, #2] + 80106ca: 687b ldr r3, [r7, #4] + 80106cc: 2200 movs r2, #0 + 80106ce: 805a strh r2, [r3, #2] mem->used = 0; - 80106c0: 687b ldr r3, [r7, #4] - 80106c2: 2200 movs r2, #0 - 80106c4: 711a strb r2, [r3, #4] + 80106d0: 687b ldr r3, [r7, #4] + 80106d2: 2200 movs r2, #0 + 80106d4: 711a strb r2, [r3, #4] /* initialize the end of the heap */ ram_end = ptr_to_mem(MEM_SIZE_ALIGNED); - 80106c6: f44f 60c8 mov.w r0, #1600 ; 0x640 - 80106ca: f7ff ff1f bl 801050c - 80106ce: 4602 mov r2, r0 - 80106d0: 4b14 ldr r3, [pc, #80] ; (8010724 ) - 80106d2: 601a str r2, [r3, #0] + 80106d6: f44f 60c8 mov.w r0, #1600 ; 0x640 + 80106da: f7ff ff1f bl 801051c + 80106de: 4602 mov r2, r0 + 80106e0: 4b14 ldr r3, [pc, #80] ; (8010734 ) + 80106e2: 601a str r2, [r3, #0] ram_end->used = 1; - 80106d4: 4b13 ldr r3, [pc, #76] ; (8010724 ) - 80106d6: 681b ldr r3, [r3, #0] - 80106d8: 2201 movs r2, #1 - 80106da: 711a strb r2, [r3, #4] + 80106e4: 4b13 ldr r3, [pc, #76] ; (8010734 ) + 80106e6: 681b ldr r3, [r3, #0] + 80106e8: 2201 movs r2, #1 + 80106ea: 711a strb r2, [r3, #4] ram_end->next = MEM_SIZE_ALIGNED; - 80106dc: 4b11 ldr r3, [pc, #68] ; (8010724 ) - 80106de: 681b ldr r3, [r3, #0] - 80106e0: f44f 62c8 mov.w r2, #1600 ; 0x640 - 80106e4: 801a strh r2, [r3, #0] + 80106ec: 4b11 ldr r3, [pc, #68] ; (8010734 ) + 80106ee: 681b ldr r3, [r3, #0] + 80106f0: f44f 62c8 mov.w r2, #1600 ; 0x640 + 80106f4: 801a strh r2, [r3, #0] ram_end->prev = MEM_SIZE_ALIGNED; - 80106e6: 4b0f ldr r3, [pc, #60] ; (8010724 ) - 80106e8: 681b ldr r3, [r3, #0] - 80106ea: f44f 62c8 mov.w r2, #1600 ; 0x640 - 80106ee: 805a strh r2, [r3, #2] + 80106f6: 4b0f ldr r3, [pc, #60] ; (8010734 ) + 80106f8: 681b ldr r3, [r3, #0] + 80106fa: f44f 62c8 mov.w r2, #1600 ; 0x640 + 80106fe: 805a strh r2, [r3, #2] MEM_SANITY(); /* initialize the lowest-free pointer to the start of the heap */ lfree = (struct mem *)(void *)ram; - 80106f0: 4b0b ldr r3, [pc, #44] ; (8010720 ) - 80106f2: 681b ldr r3, [r3, #0] - 80106f4: 4a0c ldr r2, [pc, #48] ; (8010728 ) - 80106f6: 6013 str r3, [r2, #0] + 8010700: 4b0b ldr r3, [pc, #44] ; (8010730 ) + 8010702: 681b ldr r3, [r3, #0] + 8010704: 4a0c ldr r2, [pc, #48] ; (8010738 ) + 8010706: 6013 str r3, [r2, #0] MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED); if (sys_mutex_new(&mem_mutex) != ERR_OK) { - 80106f8: 480c ldr r0, [pc, #48] ; (801072c ) - 80106fa: f00b fec9 bl 801c490 - 80106fe: 4603 mov r3, r0 - 8010700: 2b00 cmp r3, #0 - 8010702: d006 beq.n 8010712 + 8010708: 480c ldr r0, [pc, #48] ; (801073c ) + 801070a: f00b fec9 bl 801c4a0 + 801070e: 4603 mov r3, r0 + 8010710: 2b00 cmp r3, #0 + 8010712: d006 beq.n 8010722 LWIP_ASSERT("failed to create mem_mutex", 0); - 8010704: 4b0a ldr r3, [pc, #40] ; (8010730 ) - 8010706: f240 221f movw r2, #543 ; 0x21f - 801070a: 490a ldr r1, [pc, #40] ; (8010734 ) - 801070c: 480a ldr r0, [pc, #40] ; (8010738 ) - 801070e: f00b ff9b bl 801c648 - } -} - 8010712: bf00 nop - 8010714: 3708 adds r7, #8 - 8010716: 46bd mov sp, r7 - 8010718: bd80 pop {r7, pc} - 801071a: bf00 nop - 801071c: 2000c0d4 .word 0x2000c0d4 - 8010720: 200086d8 .word 0x200086d8 - 8010724: 200086dc .word 0x200086dc - 8010728: 200086e4 .word 0x200086e4 - 801072c: 200086e0 .word 0x200086e0 - 8010730: 0801da44 .word 0x0801da44 - 8010734: 0801db18 .word 0x0801db18 - 8010738: 0801da8c .word 0x0801da8c - -0801073c : + 8010714: 4b0a ldr r3, [pc, #40] ; (8010740 ) + 8010716: f240 221f movw r2, #543 ; 0x21f + 801071a: 490a ldr r1, [pc, #40] ; (8010744 ) + 801071c: 480a ldr r0, [pc, #40] ; (8010748 ) + 801071e: f00b ff9b bl 801c658 + } +} + 8010722: bf00 nop + 8010724: 3708 adds r7, #8 + 8010726: 46bd mov sp, r7 + 8010728: bd80 pop {r7, pc} + 801072a: bf00 nop + 801072c: 2000c0d4 .word 0x2000c0d4 + 8010730: 200086d8 .word 0x200086d8 + 8010734: 200086dc .word 0x200086dc + 8010738: 200086e4 .word 0x200086e4 + 801073c: 200086e0 .word 0x200086e0 + 8010740: 0801da54 .word 0x0801da54 + 8010744: 0801db28 .word 0x0801db28 + 8010748: 0801da9c .word 0x0801da9c + +0801074c : /* Check if a struct mem is correctly linked. * If not, double-free is a possible reason. */ static int mem_link_valid(struct mem *mem) { - 801073c: b580 push {r7, lr} - 801073e: b086 sub sp, #24 - 8010740: af00 add r7, sp, #0 - 8010742: 6078 str r0, [r7, #4] + 801074c: b580 push {r7, lr} + 801074e: b086 sub sp, #24 + 8010750: af00 add r7, sp, #0 + 8010752: 6078 str r0, [r7, #4] struct mem *nmem, *pmem; mem_size_t rmem_idx; rmem_idx = mem_to_ptr(mem); - 8010744: 6878 ldr r0, [r7, #4] - 8010746: f7ff fef3 bl 8010530 - 801074a: 4603 mov r3, r0 - 801074c: 82fb strh r3, [r7, #22] + 8010754: 6878 ldr r0, [r7, #4] + 8010756: f7ff fef3 bl 8010540 + 801075a: 4603 mov r3, r0 + 801075c: 82fb strh r3, [r7, #22] nmem = ptr_to_mem(mem->next); - 801074e: 687b ldr r3, [r7, #4] - 8010750: 881b ldrh r3, [r3, #0] - 8010752: 4618 mov r0, r3 - 8010754: f7ff feda bl 801050c - 8010758: 6138 str r0, [r7, #16] + 801075e: 687b ldr r3, [r7, #4] + 8010760: 881b ldrh r3, [r3, #0] + 8010762: 4618 mov r0, r3 + 8010764: f7ff feda bl 801051c + 8010768: 6138 str r0, [r7, #16] pmem = ptr_to_mem(mem->prev); - 801075a: 687b ldr r3, [r7, #4] - 801075c: 885b ldrh r3, [r3, #2] - 801075e: 4618 mov r0, r3 - 8010760: f7ff fed4 bl 801050c - 8010764: 60f8 str r0, [r7, #12] + 801076a: 687b ldr r3, [r7, #4] + 801076c: 885b ldrh r3, [r3, #2] + 801076e: 4618 mov r0, r3 + 8010770: f7ff fed4 bl 801051c + 8010774: 60f8 str r0, [r7, #12] if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) || - 8010766: 687b ldr r3, [r7, #4] - 8010768: 881b ldrh r3, [r3, #0] - 801076a: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 801076e: d818 bhi.n 80107a2 - 8010770: 687b ldr r3, [r7, #4] - 8010772: 885b ldrh r3, [r3, #2] - 8010774: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010778: d813 bhi.n 80107a2 + 8010776: 687b ldr r3, [r7, #4] + 8010778: 881b ldrh r3, [r3, #0] + 801077a: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 801077e: d818 bhi.n 80107b2 + 8010780: 687b ldr r3, [r7, #4] + 8010782: 885b ldrh r3, [r3, #2] + 8010784: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010788: d813 bhi.n 80107b2 ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 801077a: 687b ldr r3, [r7, #4] - 801077c: 885b ldrh r3, [r3, #2] + 801078a: 687b ldr r3, [r7, #4] + 801078c: 885b ldrh r3, [r3, #2] if ((mem->next > MEM_SIZE_ALIGNED) || (mem->prev > MEM_SIZE_ALIGNED) || - 801077e: 8afa ldrh r2, [r7, #22] - 8010780: 429a cmp r2, r3 - 8010782: d004 beq.n 801078e + 801078e: 8afa ldrh r2, [r7, #22] + 8010790: 429a cmp r2, r3 + 8010792: d004 beq.n 801079e ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 8010784: 68fb ldr r3, [r7, #12] - 8010786: 881b ldrh r3, [r3, #0] - 8010788: 8afa ldrh r2, [r7, #22] - 801078a: 429a cmp r2, r3 - 801078c: d109 bne.n 80107a2 + 8010794: 68fb ldr r3, [r7, #12] + 8010796: 881b ldrh r3, [r3, #0] + 8010798: 8afa ldrh r2, [r7, #22] + 801079a: 429a cmp r2, r3 + 801079c: d109 bne.n 80107b2 ((nmem != ram_end) && (nmem->prev != rmem_idx))) { - 801078e: 4b08 ldr r3, [pc, #32] ; (80107b0 ) - 8010790: 681b ldr r3, [r3, #0] + 801079e: 4b08 ldr r3, [pc, #32] ; (80107c0 ) + 80107a0: 681b ldr r3, [r3, #0] ((mem->prev != rmem_idx) && (pmem->next != rmem_idx)) || - 8010792: 693a ldr r2, [r7, #16] - 8010794: 429a cmp r2, r3 - 8010796: d006 beq.n 80107a6 + 80107a2: 693a ldr r2, [r7, #16] + 80107a4: 429a cmp r2, r3 + 80107a6: d006 beq.n 80107b6 ((nmem != ram_end) && (nmem->prev != rmem_idx))) { - 8010798: 693b ldr r3, [r7, #16] - 801079a: 885b ldrh r3, [r3, #2] - 801079c: 8afa ldrh r2, [r7, #22] - 801079e: 429a cmp r2, r3 - 80107a0: d001 beq.n 80107a6 + 80107a8: 693b ldr r3, [r7, #16] + 80107aa: 885b ldrh r3, [r3, #2] + 80107ac: 8afa ldrh r2, [r7, #22] + 80107ae: 429a cmp r2, r3 + 80107b0: d001 beq.n 80107b6 return 0; - 80107a2: 2300 movs r3, #0 - 80107a4: e000 b.n 80107a8 + 80107b2: 2300 movs r3, #0 + 80107b4: e000 b.n 80107b8 } return 1; - 80107a6: 2301 movs r3, #1 + 80107b6: 2301 movs r3, #1 } - 80107a8: 4618 mov r0, r3 - 80107aa: 3718 adds r7, #24 - 80107ac: 46bd mov sp, r7 - 80107ae: bd80 pop {r7, pc} - 80107b0: 200086dc .word 0x200086dc + 80107b8: 4618 mov r0, r3 + 80107ba: 3718 adds r7, #24 + 80107bc: 46bd mov sp, r7 + 80107be: bd80 pop {r7, pc} + 80107c0: 200086dc .word 0x200086dc -080107b4 : +080107c4 : * @param rmem is the data portion of a struct mem as returned by a previous * call to mem_malloc() */ void mem_free(void *rmem) { - 80107b4: b580 push {r7, lr} - 80107b6: b088 sub sp, #32 - 80107b8: af00 add r7, sp, #0 - 80107ba: 6078 str r0, [r7, #4] + 80107c4: b580 push {r7, lr} + 80107c6: b088 sub sp, #32 + 80107c8: af00 add r7, sp, #0 + 80107ca: 6078 str r0, [r7, #4] struct mem *mem; LWIP_MEM_FREE_DECL_PROTECT(); if (rmem == NULL) { - 80107bc: 687b ldr r3, [r7, #4] - 80107be: 2b00 cmp r3, #0 - 80107c0: d070 beq.n 80108a4 + 80107cc: 687b ldr r3, [r7, #4] + 80107ce: 2b00 cmp r3, #0 + 80107d0: d070 beq.n 80108b4 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("mem_free(p == NULL) was called.\n")); return; } if ((((mem_ptr_t)rmem) & (MEM_ALIGNMENT - 1)) != 0) { - 80107c2: 687b ldr r3, [r7, #4] - 80107c4: f003 0303 and.w r3, r3, #3 - 80107c8: 2b00 cmp r3, #0 - 80107ca: d00d beq.n 80107e8 + 80107d2: 687b ldr r3, [r7, #4] + 80107d4: f003 0303 and.w r3, r3, #3 + 80107d8: 2b00 cmp r3, #0 + 80107da: d00d beq.n 80107f8 LWIP_MEM_ILLEGAL_FREE("mem_free: sanity check alignment"); - 80107cc: 4b37 ldr r3, [pc, #220] ; (80108ac ) - 80107ce: f240 2273 movw r2, #627 ; 0x273 - 80107d2: 4937 ldr r1, [pc, #220] ; (80108b0 ) - 80107d4: 4837 ldr r0, [pc, #220] ; (80108b4 ) - 80107d6: f00b ff37 bl 801c648 + 80107dc: 4b37 ldr r3, [pc, #220] ; (80108bc ) + 80107de: f240 2273 movw r2, #627 ; 0x273 + 80107e2: 4937 ldr r1, [pc, #220] ; (80108c0 ) + 80107e4: 4837 ldr r0, [pc, #220] ; (80108c4 ) + 80107e6: f00b ff37 bl 801c658 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: sanity check alignment\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); - 80107da: f00b feb7 bl 801c54c - 80107de: 60f8 str r0, [r7, #12] - 80107e0: 68f8 ldr r0, [r7, #12] - 80107e2: f00b fec1 bl 801c568 + 80107ea: f00b feb7 bl 801c55c + 80107ee: 60f8 str r0, [r7, #12] + 80107f0: 68f8 ldr r0, [r7, #12] + 80107f2: f00b fec1 bl 801c578 return; - 80107e6: e05e b.n 80108a6 + 80107f6: e05e b.n 80108b6 } /* Get the corresponding struct mem: */ /* cast through void* to get rid of alignment warnings */ mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET)); - 80107e8: 687b ldr r3, [r7, #4] - 80107ea: 3b08 subs r3, #8 - 80107ec: 61fb str r3, [r7, #28] + 80107f8: 687b ldr r3, [r7, #4] + 80107fa: 3b08 subs r3, #8 + 80107fc: 61fb str r3, [r7, #28] if ((u8_t *)mem < ram || (u8_t *)rmem + MIN_SIZE_ALIGNED > (u8_t *)ram_end) { - 80107ee: 4b32 ldr r3, [pc, #200] ; (80108b8 ) - 80107f0: 681b ldr r3, [r3, #0] - 80107f2: 69fa ldr r2, [r7, #28] - 80107f4: 429a cmp r2, r3 - 80107f6: d306 bcc.n 8010806 - 80107f8: 687b ldr r3, [r7, #4] - 80107fa: f103 020c add.w r2, r3, #12 - 80107fe: 4b2f ldr r3, [pc, #188] ; (80108bc ) + 80107fe: 4b32 ldr r3, [pc, #200] ; (80108c8 ) 8010800: 681b ldr r3, [r3, #0] - 8010802: 429a cmp r2, r3 - 8010804: d90d bls.n 8010822 + 8010802: 69fa ldr r2, [r7, #28] + 8010804: 429a cmp r2, r3 + 8010806: d306 bcc.n 8010816 + 8010808: 687b ldr r3, [r7, #4] + 801080a: f103 020c add.w r2, r3, #12 + 801080e: 4b2f ldr r3, [pc, #188] ; (80108cc ) + 8010810: 681b ldr r3, [r3, #0] + 8010812: 429a cmp r2, r3 + 8010814: d90d bls.n 8010832 LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory"); - 8010806: 4b29 ldr r3, [pc, #164] ; (80108ac ) - 8010808: f240 227f movw r2, #639 ; 0x27f - 801080c: 492c ldr r1, [pc, #176] ; (80108c0 ) - 801080e: 4829 ldr r0, [pc, #164] ; (80108b4 ) - 8010810: f00b ff1a bl 801c648 + 8010816: 4b29 ldr r3, [pc, #164] ; (80108bc ) + 8010818: f240 227f movw r2, #639 ; 0x27f + 801081c: 492c ldr r1, [pc, #176] ; (80108d0 ) + 801081e: 4829 ldr r0, [pc, #164] ; (80108c4 ) + 8010820: f00b ff1a bl 801c658 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); - 8010814: f00b fe9a bl 801c54c - 8010818: 6138 str r0, [r7, #16] - 801081a: 6938 ldr r0, [r7, #16] - 801081c: f00b fea4 bl 801c568 + 8010824: f00b fe9a bl 801c55c + 8010828: 6138 str r0, [r7, #16] + 801082a: 6938 ldr r0, [r7, #16] + 801082c: f00b fea4 bl 801c578 return; - 8010820: e041 b.n 80108a6 + 8010830: e041 b.n 80108b6 } #if MEM_OVERFLOW_CHECK mem_overflow_check_element(mem); #endif /* protect the heap from concurrent access */ LWIP_MEM_FREE_PROTECT(); - 8010822: 4828 ldr r0, [pc, #160] ; (80108c4 ) - 8010824: f00b fe50 bl 801c4c8 + 8010832: 4828 ldr r0, [pc, #160] ; (80108d4 ) + 8010834: f00b fe50 bl 801c4d8 /* mem has to be in a used state */ if (!mem->used) { - 8010828: 69fb ldr r3, [r7, #28] - 801082a: 791b ldrb r3, [r3, #4] - 801082c: 2b00 cmp r3, #0 - 801082e: d110 bne.n 8010852 + 8010838: 69fb ldr r3, [r7, #28] + 801083a: 791b ldrb r3, [r3, #4] + 801083c: 2b00 cmp r3, #0 + 801083e: d110 bne.n 8010862 LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: double free"); - 8010830: 4b1e ldr r3, [pc, #120] ; (80108ac ) - 8010832: f44f 7223 mov.w r2, #652 ; 0x28c - 8010836: 4924 ldr r1, [pc, #144] ; (80108c8 ) - 8010838: 481e ldr r0, [pc, #120] ; (80108b4 ) - 801083a: f00b ff05 bl 801c648 + 8010840: 4b1e ldr r3, [pc, #120] ; (80108bc ) + 8010842: f44f 7223 mov.w r2, #652 ; 0x28c + 8010846: 4924 ldr r1, [pc, #144] ; (80108d8 ) + 8010848: 481e ldr r0, [pc, #120] ; (80108c4 ) + 801084a: f00b ff05 bl 801c658 LWIP_MEM_FREE_UNPROTECT(); - 801083e: 4821 ldr r0, [pc, #132] ; (80108c4 ) - 8010840: f00b fe51 bl 801c4e6 + 801084e: 4821 ldr r0, [pc, #132] ; (80108d4 ) + 8010850: f00b fe51 bl 801c4f6 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: double free?\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); - 8010844: f00b fe82 bl 801c54c - 8010848: 6178 str r0, [r7, #20] - 801084a: 6978 ldr r0, [r7, #20] - 801084c: f00b fe8c bl 801c568 + 8010854: f00b fe82 bl 801c55c + 8010858: 6178 str r0, [r7, #20] + 801085a: 6978 ldr r0, [r7, #20] + 801085c: f00b fe8c bl 801c578 return; - 8010850: e029 b.n 80108a6 + 8010860: e029 b.n 80108b6 } if (!mem_link_valid(mem)) { - 8010852: 69f8 ldr r0, [r7, #28] - 8010854: f7ff ff72 bl 801073c - 8010858: 4603 mov r3, r0 - 801085a: 2b00 cmp r3, #0 - 801085c: d110 bne.n 8010880 + 8010862: 69f8 ldr r0, [r7, #28] + 8010864: f7ff ff72 bl 801074c + 8010868: 4603 mov r3, r0 + 801086a: 2b00 cmp r3, #0 + 801086c: d110 bne.n 8010890 LWIP_MEM_ILLEGAL_FREE("mem_free: illegal memory: non-linked: double free"); - 801085e: 4b13 ldr r3, [pc, #76] ; (80108ac ) - 8010860: f240 2295 movw r2, #661 ; 0x295 - 8010864: 4919 ldr r1, [pc, #100] ; (80108cc ) - 8010866: 4813 ldr r0, [pc, #76] ; (80108b4 ) - 8010868: f00b feee bl 801c648 + 801086e: 4b13 ldr r3, [pc, #76] ; (80108bc ) + 8010870: f240 2295 movw r2, #661 ; 0x295 + 8010874: 4919 ldr r1, [pc, #100] ; (80108dc ) + 8010876: 4813 ldr r0, [pc, #76] ; (80108c4 ) + 8010878: f00b feee bl 801c658 LWIP_MEM_FREE_UNPROTECT(); - 801086c: 4815 ldr r0, [pc, #84] ; (80108c4 ) - 801086e: f00b fe3a bl 801c4e6 + 801087c: 4815 ldr r0, [pc, #84] ; (80108d4 ) + 801087e: f00b fe3a bl 801c4f6 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_free: illegal memory: non-linked: double free?\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); - 8010872: f00b fe6b bl 801c54c - 8010876: 61b8 str r0, [r7, #24] - 8010878: 69b8 ldr r0, [r7, #24] - 801087a: f00b fe75 bl 801c568 + 8010882: f00b fe6b bl 801c55c + 8010886: 61b8 str r0, [r7, #24] + 8010888: 69b8 ldr r0, [r7, #24] + 801088a: f00b fe75 bl 801c578 return; - 801087e: e012 b.n 80108a6 + 801088e: e012 b.n 80108b6 } /* mem is now unused. */ mem->used = 0; - 8010880: 69fb ldr r3, [r7, #28] - 8010882: 2200 movs r2, #0 - 8010884: 711a strb r2, [r3, #4] + 8010890: 69fb ldr r3, [r7, #28] + 8010892: 2200 movs r2, #0 + 8010894: 711a strb r2, [r3, #4] if (mem < lfree) { - 8010886: 4b12 ldr r3, [pc, #72] ; (80108d0 ) - 8010888: 681b ldr r3, [r3, #0] - 801088a: 69fa ldr r2, [r7, #28] - 801088c: 429a cmp r2, r3 - 801088e: d202 bcs.n 8010896 + 8010896: 4b12 ldr r3, [pc, #72] ; (80108e0 ) + 8010898: 681b ldr r3, [r3, #0] + 801089a: 69fa ldr r2, [r7, #28] + 801089c: 429a cmp r2, r3 + 801089e: d202 bcs.n 80108a6 /* the newly freed struct is now the lowest */ lfree = mem; - 8010890: 4a0f ldr r2, [pc, #60] ; (80108d0 ) - 8010892: 69fb ldr r3, [r7, #28] - 8010894: 6013 str r3, [r2, #0] + 80108a0: 4a0f ldr r2, [pc, #60] ; (80108e0 ) + 80108a2: 69fb ldr r3, [r7, #28] + 80108a4: 6013 str r3, [r2, #0] } MEM_STATS_DEC_USED(used, mem->next - (mem_size_t)(((u8_t *)mem - ram))); /* finally, see if prev or next are free also */ plug_holes(mem); - 8010896: 69f8 ldr r0, [r7, #28] - 8010898: f7ff fe5c bl 8010554 + 80108a6: 69f8 ldr r0, [r7, #28] + 80108a8: f7ff fe5c bl 8010564 MEM_SANITY(); #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT mem_free_count = 1; #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ LWIP_MEM_FREE_UNPROTECT(); - 801089c: 4809 ldr r0, [pc, #36] ; (80108c4 ) - 801089e: f00b fe22 bl 801c4e6 - 80108a2: e000 b.n 80108a6 + 80108ac: 4809 ldr r0, [pc, #36] ; (80108d4 ) + 80108ae: f00b fe22 bl 801c4f6 + 80108b2: e000 b.n 80108b6 return; - 80108a4: bf00 nop -} - 80108a6: 3720 adds r7, #32 - 80108a8: 46bd mov sp, r7 - 80108aa: bd80 pop {r7, pc} - 80108ac: 0801da44 .word 0x0801da44 - 80108b0: 0801db34 .word 0x0801db34 - 80108b4: 0801da8c .word 0x0801da8c - 80108b8: 200086d8 .word 0x200086d8 - 80108bc: 200086dc .word 0x200086dc - 80108c0: 0801db58 .word 0x0801db58 - 80108c4: 200086e0 .word 0x200086e0 - 80108c8: 0801db74 .word 0x0801db74 - 80108cc: 0801db9c .word 0x0801db9c - 80108d0: 200086e4 .word 0x200086e4 - -080108d4 : + 80108b4: bf00 nop +} + 80108b6: 3720 adds r7, #32 + 80108b8: 46bd mov sp, r7 + 80108ba: bd80 pop {r7, pc} + 80108bc: 0801da54 .word 0x0801da54 + 80108c0: 0801db44 .word 0x0801db44 + 80108c4: 0801da9c .word 0x0801da9c + 80108c8: 200086d8 .word 0x200086d8 + 80108cc: 200086dc .word 0x200086dc + 80108d0: 0801db68 .word 0x0801db68 + 80108d4: 200086e0 .word 0x200086e0 + 80108d8: 0801db84 .word 0x0801db84 + 80108dc: 0801dbac .word 0x0801dbac + 80108e0: 200086e4 .word 0x200086e4 + +080108e4 : * or NULL if newsize is > old size, in which case rmem is NOT touched * or freed! */ void * mem_trim(void *rmem, mem_size_t new_size) { - 80108d4: b580 push {r7, lr} - 80108d6: b088 sub sp, #32 - 80108d8: af00 add r7, sp, #0 - 80108da: 6078 str r0, [r7, #4] - 80108dc: 460b mov r3, r1 - 80108de: 807b strh r3, [r7, #2] + 80108e4: b580 push {r7, lr} + 80108e6: b088 sub sp, #32 + 80108e8: af00 add r7, sp, #0 + 80108ea: 6078 str r0, [r7, #4] + 80108ec: 460b mov r3, r1 + 80108ee: 807b strh r3, [r7, #2] /* use the FREE_PROTECT here: it protects with sem OR SYS_ARCH_PROTECT */ LWIP_MEM_FREE_DECL_PROTECT(); /* Expand the size of the allocated memory region so that we can adjust for alignment. */ newsize = (mem_size_t)LWIP_MEM_ALIGN_SIZE(new_size); - 80108e0: 887b ldrh r3, [r7, #2] - 80108e2: 3303 adds r3, #3 - 80108e4: b29b uxth r3, r3 - 80108e6: f023 0303 bic.w r3, r3, #3 - 80108ea: 83fb strh r3, [r7, #30] + 80108f0: 887b ldrh r3, [r7, #2] + 80108f2: 3303 adds r3, #3 + 80108f4: b29b uxth r3, r3 + 80108f6: f023 0303 bic.w r3, r3, #3 + 80108fa: 83fb strh r3, [r7, #30] if (newsize < MIN_SIZE_ALIGNED) { - 80108ec: 8bfb ldrh r3, [r7, #30] - 80108ee: 2b0b cmp r3, #11 - 80108f0: d801 bhi.n 80108f6 + 80108fc: 8bfb ldrh r3, [r7, #30] + 80108fe: 2b0b cmp r3, #11 + 8010900: d801 bhi.n 8010906 /* every data block must be at least MIN_SIZE_ALIGNED long */ newsize = MIN_SIZE_ALIGNED; - 80108f2: 230c movs r3, #12 - 80108f4: 83fb strh r3, [r7, #30] + 8010902: 230c movs r3, #12 + 8010904: 83fb strh r3, [r7, #30] } #if MEM_OVERFLOW_CHECK newsize += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED; #endif if ((newsize > MEM_SIZE_ALIGNED) || (newsize < new_size)) { - 80108f6: 8bfb ldrh r3, [r7, #30] - 80108f8: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 80108fc: d803 bhi.n 8010906 - 80108fe: 8bfa ldrh r2, [r7, #30] - 8010900: 887b ldrh r3, [r7, #2] - 8010902: 429a cmp r2, r3 - 8010904: d201 bcs.n 801090a + 8010906: 8bfb ldrh r3, [r7, #30] + 8010908: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 801090c: d803 bhi.n 8010916 + 801090e: 8bfa ldrh r2, [r7, #30] + 8010910: 887b ldrh r3, [r7, #2] + 8010912: 429a cmp r2, r3 + 8010914: d201 bcs.n 801091a return NULL; - 8010906: 2300 movs r3, #0 - 8010908: e0d8 b.n 8010abc + 8010916: 2300 movs r3, #0 + 8010918: e0d8 b.n 8010acc } LWIP_ASSERT("mem_trim: legal memory", (u8_t *)rmem >= (u8_t *)ram && - 801090a: 4b6e ldr r3, [pc, #440] ; (8010ac4 ) - 801090c: 681b ldr r3, [r3, #0] - 801090e: 687a ldr r2, [r7, #4] - 8010910: 429a cmp r2, r3 - 8010912: d304 bcc.n 801091e - 8010914: 4b6c ldr r3, [pc, #432] ; (8010ac8 ) - 8010916: 681b ldr r3, [r3, #0] - 8010918: 687a ldr r2, [r7, #4] - 801091a: 429a cmp r2, r3 - 801091c: d306 bcc.n 801092c - 801091e: 4b6b ldr r3, [pc, #428] ; (8010acc ) - 8010920: f240 22d2 movw r2, #722 ; 0x2d2 - 8010924: 496a ldr r1, [pc, #424] ; (8010ad0 ) - 8010926: 486b ldr r0, [pc, #428] ; (8010ad4 ) - 8010928: f00b fe8e bl 801c648 + 801091a: 4b6e ldr r3, [pc, #440] ; (8010ad4 ) + 801091c: 681b ldr r3, [r3, #0] + 801091e: 687a ldr r2, [r7, #4] + 8010920: 429a cmp r2, r3 + 8010922: d304 bcc.n 801092e + 8010924: 4b6c ldr r3, [pc, #432] ; (8010ad8 ) + 8010926: 681b ldr r3, [r3, #0] + 8010928: 687a ldr r2, [r7, #4] + 801092a: 429a cmp r2, r3 + 801092c: d306 bcc.n 801093c + 801092e: 4b6b ldr r3, [pc, #428] ; (8010adc ) + 8010930: f240 22d2 movw r2, #722 ; 0x2d2 + 8010934: 496a ldr r1, [pc, #424] ; (8010ae0 ) + 8010936: 486b ldr r0, [pc, #428] ; (8010ae4 ) + 8010938: f00b fe8e bl 801c658 (u8_t *)rmem < (u8_t *)ram_end); if ((u8_t *)rmem < (u8_t *)ram || (u8_t *)rmem >= (u8_t *)ram_end) { - 801092c: 4b65 ldr r3, [pc, #404] ; (8010ac4 ) - 801092e: 681b ldr r3, [r3, #0] - 8010930: 687a ldr r2, [r7, #4] - 8010932: 429a cmp r2, r3 - 8010934: d304 bcc.n 8010940 - 8010936: 4b64 ldr r3, [pc, #400] ; (8010ac8 ) - 8010938: 681b ldr r3, [r3, #0] - 801093a: 687a ldr r2, [r7, #4] - 801093c: 429a cmp r2, r3 - 801093e: d307 bcc.n 8010950 + 801093c: 4b65 ldr r3, [pc, #404] ; (8010ad4 ) + 801093e: 681b ldr r3, [r3, #0] + 8010940: 687a ldr r2, [r7, #4] + 8010942: 429a cmp r2, r3 + 8010944: d304 bcc.n 8010950 + 8010946: 4b64 ldr r3, [pc, #400] ; (8010ad8 ) + 8010948: 681b ldr r3, [r3, #0] + 801094a: 687a ldr r2, [r7, #4] + 801094c: 429a cmp r2, r3 + 801094e: d307 bcc.n 8010960 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SEVERE, ("mem_trim: illegal memory\n")); /* protect mem stats from concurrent access */ MEM_STATS_INC_LOCKED(illegal); - 8010940: f00b fe04 bl 801c54c - 8010944: 60b8 str r0, [r7, #8] - 8010946: 68b8 ldr r0, [r7, #8] - 8010948: f00b fe0e bl 801c568 + 8010950: f00b fe04 bl 801c55c + 8010954: 60b8 str r0, [r7, #8] + 8010956: 68b8 ldr r0, [r7, #8] + 8010958: f00b fe0e bl 801c578 return rmem; - 801094c: 687b ldr r3, [r7, #4] - 801094e: e0b5 b.n 8010abc + 801095c: 687b ldr r3, [r7, #4] + 801095e: e0b5 b.n 8010acc } /* Get the corresponding struct mem ... */ /* cast through void* to get rid of alignment warnings */ mem = (struct mem *)(void *)((u8_t *)rmem - (SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET)); - 8010950: 687b ldr r3, [r7, #4] - 8010952: 3b08 subs r3, #8 - 8010954: 61bb str r3, [r7, #24] + 8010960: 687b ldr r3, [r7, #4] + 8010962: 3b08 subs r3, #8 + 8010964: 61bb str r3, [r7, #24] #if MEM_OVERFLOW_CHECK mem_overflow_check_element(mem); #endif /* ... and its offset pointer */ ptr = mem_to_ptr(mem); - 8010956: 69b8 ldr r0, [r7, #24] - 8010958: f7ff fdea bl 8010530 - 801095c: 4603 mov r3, r0 - 801095e: 82fb strh r3, [r7, #22] + 8010966: 69b8 ldr r0, [r7, #24] + 8010968: f7ff fdea bl 8010540 + 801096c: 4603 mov r3, r0 + 801096e: 82fb strh r3, [r7, #22] size = (mem_size_t)((mem_size_t)(mem->next - ptr) - (SIZEOF_STRUCT_MEM + MEM_SANITY_OVERHEAD)); - 8010960: 69bb ldr r3, [r7, #24] - 8010962: 881a ldrh r2, [r3, #0] - 8010964: 8afb ldrh r3, [r7, #22] - 8010966: 1ad3 subs r3, r2, r3 - 8010968: b29b uxth r3, r3 - 801096a: 3b08 subs r3, #8 - 801096c: 82bb strh r3, [r7, #20] + 8010970: 69bb ldr r3, [r7, #24] + 8010972: 881a ldrh r2, [r3, #0] + 8010974: 8afb ldrh r3, [r7, #22] + 8010976: 1ad3 subs r3, r2, r3 + 8010978: b29b uxth r3, r3 + 801097a: 3b08 subs r3, #8 + 801097c: 82bb strh r3, [r7, #20] LWIP_ASSERT("mem_trim can only shrink memory", newsize <= size); - 801096e: 8bfa ldrh r2, [r7, #30] - 8010970: 8abb ldrh r3, [r7, #20] - 8010972: 429a cmp r2, r3 - 8010974: d906 bls.n 8010984 - 8010976: 4b55 ldr r3, [pc, #340] ; (8010acc ) - 8010978: f44f 7239 mov.w r2, #740 ; 0x2e4 - 801097c: 4956 ldr r1, [pc, #344] ; (8010ad8 ) - 801097e: 4855 ldr r0, [pc, #340] ; (8010ad4 ) - 8010980: f00b fe62 bl 801c648 + 801097e: 8bfa ldrh r2, [r7, #30] + 8010980: 8abb ldrh r3, [r7, #20] + 8010982: 429a cmp r2, r3 + 8010984: d906 bls.n 8010994 + 8010986: 4b55 ldr r3, [pc, #340] ; (8010adc ) + 8010988: f44f 7239 mov.w r2, #740 ; 0x2e4 + 801098c: 4956 ldr r1, [pc, #344] ; (8010ae8 ) + 801098e: 4855 ldr r0, [pc, #340] ; (8010ae4 ) + 8010990: f00b fe62 bl 801c658 if (newsize > size) { - 8010984: 8bfa ldrh r2, [r7, #30] - 8010986: 8abb ldrh r3, [r7, #20] - 8010988: 429a cmp r2, r3 - 801098a: d901 bls.n 8010990 + 8010994: 8bfa ldrh r2, [r7, #30] + 8010996: 8abb ldrh r3, [r7, #20] + 8010998: 429a cmp r2, r3 + 801099a: d901 bls.n 80109a0 /* not supported */ return NULL; - 801098c: 2300 movs r3, #0 - 801098e: e095 b.n 8010abc + 801099c: 2300 movs r3, #0 + 801099e: e095 b.n 8010acc } if (newsize == size) { - 8010990: 8bfa ldrh r2, [r7, #30] - 8010992: 8abb ldrh r3, [r7, #20] - 8010994: 429a cmp r2, r3 - 8010996: d101 bne.n 801099c + 80109a0: 8bfa ldrh r2, [r7, #30] + 80109a2: 8abb ldrh r3, [r7, #20] + 80109a4: 429a cmp r2, r3 + 80109a6: d101 bne.n 80109ac /* No change in size, simply return */ return rmem; - 8010998: 687b ldr r3, [r7, #4] - 801099a: e08f b.n 8010abc + 80109a8: 687b ldr r3, [r7, #4] + 80109aa: e08f b.n 8010acc } /* protect the heap from concurrent access */ LWIP_MEM_FREE_PROTECT(); - 801099c: 484f ldr r0, [pc, #316] ; (8010adc ) - 801099e: f00b fd93 bl 801c4c8 + 80109ac: 484f ldr r0, [pc, #316] ; (8010aec ) + 80109ae: f00b fd93 bl 801c4d8 mem2 = ptr_to_mem(mem->next); - 80109a2: 69bb ldr r3, [r7, #24] - 80109a4: 881b ldrh r3, [r3, #0] - 80109a6: 4618 mov r0, r3 - 80109a8: f7ff fdb0 bl 801050c - 80109ac: 6138 str r0, [r7, #16] + 80109b2: 69bb ldr r3, [r7, #24] + 80109b4: 881b ldrh r3, [r3, #0] + 80109b6: 4618 mov r0, r3 + 80109b8: f7ff fdb0 bl 801051c + 80109bc: 6138 str r0, [r7, #16] if (mem2->used == 0) { - 80109ae: 693b ldr r3, [r7, #16] - 80109b0: 791b ldrb r3, [r3, #4] - 80109b2: 2b00 cmp r3, #0 - 80109b4: d13f bne.n 8010a36 + 80109be: 693b ldr r3, [r7, #16] + 80109c0: 791b ldrb r3, [r3, #4] + 80109c2: 2b00 cmp r3, #0 + 80109c4: d13f bne.n 8010a46 /* The next struct is unused, we can simply move it at little */ mem_size_t next; LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED); - 80109b6: 69bb ldr r3, [r7, #24] - 80109b8: 881b ldrh r3, [r3, #0] - 80109ba: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 80109be: d106 bne.n 80109ce - 80109c0: 4b42 ldr r3, [pc, #264] ; (8010acc ) - 80109c2: f240 22f5 movw r2, #757 ; 0x2f5 - 80109c6: 4946 ldr r1, [pc, #280] ; (8010ae0 ) - 80109c8: 4842 ldr r0, [pc, #264] ; (8010ad4 ) - 80109ca: f00b fe3d bl 801c648 + 80109c6: 69bb ldr r3, [r7, #24] + 80109c8: 881b ldrh r3, [r3, #0] + 80109ca: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 80109ce: d106 bne.n 80109de + 80109d0: 4b42 ldr r3, [pc, #264] ; (8010adc ) + 80109d2: f240 22f5 movw r2, #757 ; 0x2f5 + 80109d6: 4946 ldr r1, [pc, #280] ; (8010af0 ) + 80109d8: 4842 ldr r0, [pc, #264] ; (8010ae4 ) + 80109da: f00b fe3d bl 801c658 /* remember the old next pointer */ next = mem2->next; - 80109ce: 693b ldr r3, [r7, #16] - 80109d0: 881b ldrh r3, [r3, #0] - 80109d2: 81bb strh r3, [r7, #12] + 80109de: 693b ldr r3, [r7, #16] + 80109e0: 881b ldrh r3, [r3, #0] + 80109e2: 81bb strh r3, [r7, #12] /* create new struct mem which is moved directly after the shrinked mem */ ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize); - 80109d4: 8afa ldrh r2, [r7, #22] - 80109d6: 8bfb ldrh r3, [r7, #30] - 80109d8: 4413 add r3, r2 - 80109da: b29b uxth r3, r3 - 80109dc: 3308 adds r3, #8 - 80109de: 81fb strh r3, [r7, #14] + 80109e4: 8afa ldrh r2, [r7, #22] + 80109e6: 8bfb ldrh r3, [r7, #30] + 80109e8: 4413 add r3, r2 + 80109ea: b29b uxth r3, r3 + 80109ec: 3308 adds r3, #8 + 80109ee: 81fb strh r3, [r7, #14] if (lfree == mem2) { - 80109e0: 4b40 ldr r3, [pc, #256] ; (8010ae4 ) - 80109e2: 681b ldr r3, [r3, #0] - 80109e4: 693a ldr r2, [r7, #16] - 80109e6: 429a cmp r2, r3 - 80109e8: d106 bne.n 80109f8 + 80109f0: 4b40 ldr r3, [pc, #256] ; (8010af4 ) + 80109f2: 681b ldr r3, [r3, #0] + 80109f4: 693a ldr r2, [r7, #16] + 80109f6: 429a cmp r2, r3 + 80109f8: d106 bne.n 8010a08 lfree = ptr_to_mem(ptr2); - 80109ea: 89fb ldrh r3, [r7, #14] - 80109ec: 4618 mov r0, r3 - 80109ee: f7ff fd8d bl 801050c - 80109f2: 4602 mov r2, r0 - 80109f4: 4b3b ldr r3, [pc, #236] ; (8010ae4 ) - 80109f6: 601a str r2, [r3, #0] + 80109fa: 89fb ldrh r3, [r7, #14] + 80109fc: 4618 mov r0, r3 + 80109fe: f7ff fd8d bl 801051c + 8010a02: 4602 mov r2, r0 + 8010a04: 4b3b ldr r3, [pc, #236] ; (8010af4 ) + 8010a06: 601a str r2, [r3, #0] } mem2 = ptr_to_mem(ptr2); - 80109f8: 89fb ldrh r3, [r7, #14] - 80109fa: 4618 mov r0, r3 - 80109fc: f7ff fd86 bl 801050c - 8010a00: 6138 str r0, [r7, #16] + 8010a08: 89fb ldrh r3, [r7, #14] + 8010a0a: 4618 mov r0, r3 + 8010a0c: f7ff fd86 bl 801051c + 8010a10: 6138 str r0, [r7, #16] mem2->used = 0; - 8010a02: 693b ldr r3, [r7, #16] - 8010a04: 2200 movs r2, #0 - 8010a06: 711a strb r2, [r3, #4] + 8010a12: 693b ldr r3, [r7, #16] + 8010a14: 2200 movs r2, #0 + 8010a16: 711a strb r2, [r3, #4] /* restore the next pointer */ mem2->next = next; - 8010a08: 693b ldr r3, [r7, #16] - 8010a0a: 89ba ldrh r2, [r7, #12] - 8010a0c: 801a strh r2, [r3, #0] + 8010a18: 693b ldr r3, [r7, #16] + 8010a1a: 89ba ldrh r2, [r7, #12] + 8010a1c: 801a strh r2, [r3, #0] /* link it back to mem */ mem2->prev = ptr; - 8010a0e: 693b ldr r3, [r7, #16] - 8010a10: 8afa ldrh r2, [r7, #22] - 8010a12: 805a strh r2, [r3, #2] + 8010a1e: 693b ldr r3, [r7, #16] + 8010a20: 8afa ldrh r2, [r7, #22] + 8010a22: 805a strh r2, [r3, #2] /* link mem to it */ mem->next = ptr2; - 8010a14: 69bb ldr r3, [r7, #24] - 8010a16: 89fa ldrh r2, [r7, #14] - 8010a18: 801a strh r2, [r3, #0] + 8010a24: 69bb ldr r3, [r7, #24] + 8010a26: 89fa ldrh r2, [r7, #14] + 8010a28: 801a strh r2, [r3, #0] /* last thing to restore linked list: as we have moved mem2, * let 'mem2->next->prev' point to mem2 again. but only if mem2->next is not * the end of the heap */ if (mem2->next != MEM_SIZE_ALIGNED) { - 8010a1a: 693b ldr r3, [r7, #16] - 8010a1c: 881b ldrh r3, [r3, #0] - 8010a1e: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010a22: d047 beq.n 8010ab4 + 8010a2a: 693b ldr r3, [r7, #16] + 8010a2c: 881b ldrh r3, [r3, #0] + 8010a2e: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010a32: d047 beq.n 8010ac4 ptr_to_mem(mem2->next)->prev = ptr2; - 8010a24: 693b ldr r3, [r7, #16] - 8010a26: 881b ldrh r3, [r3, #0] - 8010a28: 4618 mov r0, r3 - 8010a2a: f7ff fd6f bl 801050c - 8010a2e: 4602 mov r2, r0 - 8010a30: 89fb ldrh r3, [r7, #14] - 8010a32: 8053 strh r3, [r2, #2] - 8010a34: e03e b.n 8010ab4 + 8010a34: 693b ldr r3, [r7, #16] + 8010a36: 881b ldrh r3, [r3, #0] + 8010a38: 4618 mov r0, r3 + 8010a3a: f7ff fd6f bl 801051c + 8010a3e: 4602 mov r2, r0 + 8010a40: 89fb ldrh r3, [r7, #14] + 8010a42: 8053 strh r3, [r2, #2] + 8010a44: e03e b.n 8010ac4 } MEM_STATS_DEC_USED(used, (size - newsize)); /* no need to plug holes, we've already done that */ } else if (newsize + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED <= size) { - 8010a36: 8bfb ldrh r3, [r7, #30] - 8010a38: f103 0214 add.w r2, r3, #20 - 8010a3c: 8abb ldrh r3, [r7, #20] - 8010a3e: 429a cmp r2, r3 - 8010a40: d838 bhi.n 8010ab4 + 8010a46: 8bfb ldrh r3, [r7, #30] + 8010a48: f103 0214 add.w r2, r3, #20 + 8010a4c: 8abb ldrh r3, [r7, #20] + 8010a4e: 429a cmp r2, r3 + 8010a50: d838 bhi.n 8010ac4 * Old size ('size') must be big enough to contain at least 'newsize' plus a struct mem * ('SIZEOF_STRUCT_MEM') with some data ('MIN_SIZE_ALIGNED'). * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty * region that couldn't hold data, but when mem->next gets freed, * the 2 regions would be combined, resulting in more free memory */ ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + newsize); - 8010a42: 8afa ldrh r2, [r7, #22] - 8010a44: 8bfb ldrh r3, [r7, #30] - 8010a46: 4413 add r3, r2 - 8010a48: b29b uxth r3, r3 - 8010a4a: 3308 adds r3, #8 - 8010a4c: 81fb strh r3, [r7, #14] + 8010a52: 8afa ldrh r2, [r7, #22] + 8010a54: 8bfb ldrh r3, [r7, #30] + 8010a56: 4413 add r3, r2 + 8010a58: b29b uxth r3, r3 + 8010a5a: 3308 adds r3, #8 + 8010a5c: 81fb strh r3, [r7, #14] LWIP_ASSERT("invalid next ptr", mem->next != MEM_SIZE_ALIGNED); - 8010a4e: 69bb ldr r3, [r7, #24] - 8010a50: 881b ldrh r3, [r3, #0] - 8010a52: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010a56: d106 bne.n 8010a66 - 8010a58: 4b1c ldr r3, [pc, #112] ; (8010acc ) - 8010a5a: f240 3216 movw r2, #790 ; 0x316 - 8010a5e: 4920 ldr r1, [pc, #128] ; (8010ae0 ) - 8010a60: 481c ldr r0, [pc, #112] ; (8010ad4 ) - 8010a62: f00b fdf1 bl 801c648 + 8010a5e: 69bb ldr r3, [r7, #24] + 8010a60: 881b ldrh r3, [r3, #0] + 8010a62: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010a66: d106 bne.n 8010a76 + 8010a68: 4b1c ldr r3, [pc, #112] ; (8010adc ) + 8010a6a: f240 3216 movw r2, #790 ; 0x316 + 8010a6e: 4920 ldr r1, [pc, #128] ; (8010af0 ) + 8010a70: 481c ldr r0, [pc, #112] ; (8010ae4 ) + 8010a72: f00b fdf1 bl 801c658 mem2 = ptr_to_mem(ptr2); - 8010a66: 89fb ldrh r3, [r7, #14] - 8010a68: 4618 mov r0, r3 - 8010a6a: f7ff fd4f bl 801050c - 8010a6e: 6138 str r0, [r7, #16] + 8010a76: 89fb ldrh r3, [r7, #14] + 8010a78: 4618 mov r0, r3 + 8010a7a: f7ff fd4f bl 801051c + 8010a7e: 6138 str r0, [r7, #16] if (mem2 < lfree) { - 8010a70: 4b1c ldr r3, [pc, #112] ; (8010ae4 ) - 8010a72: 681b ldr r3, [r3, #0] - 8010a74: 693a ldr r2, [r7, #16] - 8010a76: 429a cmp r2, r3 - 8010a78: d202 bcs.n 8010a80 + 8010a80: 4b1c ldr r3, [pc, #112] ; (8010af4 ) + 8010a82: 681b ldr r3, [r3, #0] + 8010a84: 693a ldr r2, [r7, #16] + 8010a86: 429a cmp r2, r3 + 8010a88: d202 bcs.n 8010a90 lfree = mem2; - 8010a7a: 4a1a ldr r2, [pc, #104] ; (8010ae4 ) - 8010a7c: 693b ldr r3, [r7, #16] - 8010a7e: 6013 str r3, [r2, #0] + 8010a8a: 4a1a ldr r2, [pc, #104] ; (8010af4 ) + 8010a8c: 693b ldr r3, [r7, #16] + 8010a8e: 6013 str r3, [r2, #0] } mem2->used = 0; - 8010a80: 693b ldr r3, [r7, #16] - 8010a82: 2200 movs r2, #0 - 8010a84: 711a strb r2, [r3, #4] + 8010a90: 693b ldr r3, [r7, #16] + 8010a92: 2200 movs r2, #0 + 8010a94: 711a strb r2, [r3, #4] mem2->next = mem->next; - 8010a86: 69bb ldr r3, [r7, #24] - 8010a88: 881a ldrh r2, [r3, #0] - 8010a8a: 693b ldr r3, [r7, #16] - 8010a8c: 801a strh r2, [r3, #0] + 8010a96: 69bb ldr r3, [r7, #24] + 8010a98: 881a ldrh r2, [r3, #0] + 8010a9a: 693b ldr r3, [r7, #16] + 8010a9c: 801a strh r2, [r3, #0] mem2->prev = ptr; - 8010a8e: 693b ldr r3, [r7, #16] - 8010a90: 8afa ldrh r2, [r7, #22] - 8010a92: 805a strh r2, [r3, #2] + 8010a9e: 693b ldr r3, [r7, #16] + 8010aa0: 8afa ldrh r2, [r7, #22] + 8010aa2: 805a strh r2, [r3, #2] mem->next = ptr2; - 8010a94: 69bb ldr r3, [r7, #24] - 8010a96: 89fa ldrh r2, [r7, #14] - 8010a98: 801a strh r2, [r3, #0] + 8010aa4: 69bb ldr r3, [r7, #24] + 8010aa6: 89fa ldrh r2, [r7, #14] + 8010aa8: 801a strh r2, [r3, #0] if (mem2->next != MEM_SIZE_ALIGNED) { - 8010a9a: 693b ldr r3, [r7, #16] - 8010a9c: 881b ldrh r3, [r3, #0] - 8010a9e: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010aa2: d007 beq.n 8010ab4 + 8010aaa: 693b ldr r3, [r7, #16] + 8010aac: 881b ldrh r3, [r3, #0] + 8010aae: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010ab2: d007 beq.n 8010ac4 ptr_to_mem(mem2->next)->prev = ptr2; - 8010aa4: 693b ldr r3, [r7, #16] - 8010aa6: 881b ldrh r3, [r3, #0] - 8010aa8: 4618 mov r0, r3 - 8010aaa: f7ff fd2f bl 801050c - 8010aae: 4602 mov r2, r0 - 8010ab0: 89fb ldrh r3, [r7, #14] - 8010ab2: 8053 strh r3, [r2, #2] + 8010ab4: 693b ldr r3, [r7, #16] + 8010ab6: 881b ldrh r3, [r3, #0] + 8010ab8: 4618 mov r0, r3 + 8010aba: f7ff fd2f bl 801051c + 8010abe: 4602 mov r2, r0 + 8010ac0: 89fb ldrh r3, [r7, #14] + 8010ac2: 8053 strh r3, [r2, #2] #endif MEM_SANITY(); #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT mem_free_count = 1; #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ LWIP_MEM_FREE_UNPROTECT(); - 8010ab4: 4809 ldr r0, [pc, #36] ; (8010adc ) - 8010ab6: f00b fd16 bl 801c4e6 + 8010ac4: 4809 ldr r0, [pc, #36] ; (8010aec ) + 8010ac6: f00b fd16 bl 801c4f6 return rmem; - 8010aba: 687b ldr r3, [r7, #4] -} - 8010abc: 4618 mov r0, r3 - 8010abe: 3720 adds r7, #32 - 8010ac0: 46bd mov sp, r7 - 8010ac2: bd80 pop {r7, pc} - 8010ac4: 200086d8 .word 0x200086d8 - 8010ac8: 200086dc .word 0x200086dc - 8010acc: 0801da44 .word 0x0801da44 - 8010ad0: 0801dbd0 .word 0x0801dbd0 - 8010ad4: 0801da8c .word 0x0801da8c - 8010ad8: 0801dbe8 .word 0x0801dbe8 - 8010adc: 200086e0 .word 0x200086e0 - 8010ae0: 0801dc08 .word 0x0801dc08 - 8010ae4: 200086e4 .word 0x200086e4 - -08010ae8 : + 8010aca: 687b ldr r3, [r7, #4] +} + 8010acc: 4618 mov r0, r3 + 8010ace: 3720 adds r7, #32 + 8010ad0: 46bd mov sp, r7 + 8010ad2: bd80 pop {r7, pc} + 8010ad4: 200086d8 .word 0x200086d8 + 8010ad8: 200086dc .word 0x200086dc + 8010adc: 0801da54 .word 0x0801da54 + 8010ae0: 0801dbe0 .word 0x0801dbe0 + 8010ae4: 0801da9c .word 0x0801da9c + 8010ae8: 0801dbf8 .word 0x0801dbf8 + 8010aec: 200086e0 .word 0x200086e0 + 8010af0: 0801dc18 .word 0x0801dc18 + 8010af4: 200086e4 .word 0x200086e4 + +08010af8 : * * Note that the returned value will always be aligned (as defined by MEM_ALIGNMENT). */ void * mem_malloc(mem_size_t size_in) { - 8010ae8: b580 push {r7, lr} - 8010aea: b088 sub sp, #32 - 8010aec: af00 add r7, sp, #0 - 8010aee: 4603 mov r3, r0 - 8010af0: 80fb strh r3, [r7, #6] + 8010af8: b580 push {r7, lr} + 8010afa: b088 sub sp, #32 + 8010afc: af00 add r7, sp, #0 + 8010afe: 4603 mov r3, r0 + 8010b00: 80fb strh r3, [r7, #6] #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT u8_t local_mem_free_count = 0; #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ LWIP_MEM_ALLOC_DECL_PROTECT(); if (size_in == 0) { - 8010af2: 88fb ldrh r3, [r7, #6] - 8010af4: 2b00 cmp r3, #0 - 8010af6: d101 bne.n 8010afc + 8010b02: 88fb ldrh r3, [r7, #6] + 8010b04: 2b00 cmp r3, #0 + 8010b06: d101 bne.n 8010b0c return NULL; - 8010af8: 2300 movs r3, #0 - 8010afa: e0e2 b.n 8010cc2 + 8010b08: 2300 movs r3, #0 + 8010b0a: e0e2 b.n 8010cd2 } /* Expand the size of the allocated memory region so that we can adjust for alignment. */ size = (mem_size_t)LWIP_MEM_ALIGN_SIZE(size_in); - 8010afc: 88fb ldrh r3, [r7, #6] - 8010afe: 3303 adds r3, #3 - 8010b00: b29b uxth r3, r3 - 8010b02: f023 0303 bic.w r3, r3, #3 - 8010b06: 83bb strh r3, [r7, #28] + 8010b0c: 88fb ldrh r3, [r7, #6] + 8010b0e: 3303 adds r3, #3 + 8010b10: b29b uxth r3, r3 + 8010b12: f023 0303 bic.w r3, r3, #3 + 8010b16: 83bb strh r3, [r7, #28] if (size < MIN_SIZE_ALIGNED) { - 8010b08: 8bbb ldrh r3, [r7, #28] - 8010b0a: 2b0b cmp r3, #11 - 8010b0c: d801 bhi.n 8010b12 + 8010b18: 8bbb ldrh r3, [r7, #28] + 8010b1a: 2b0b cmp r3, #11 + 8010b1c: d801 bhi.n 8010b22 /* every data block must be at least MIN_SIZE_ALIGNED long */ size = MIN_SIZE_ALIGNED; - 8010b0e: 230c movs r3, #12 - 8010b10: 83bb strh r3, [r7, #28] + 8010b1e: 230c movs r3, #12 + 8010b20: 83bb strh r3, [r7, #28] } #if MEM_OVERFLOW_CHECK size += MEM_SANITY_REGION_BEFORE_ALIGNED + MEM_SANITY_REGION_AFTER_ALIGNED; #endif if ((size > MEM_SIZE_ALIGNED) || (size < size_in)) { - 8010b12: 8bbb ldrh r3, [r7, #28] - 8010b14: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010b18: d803 bhi.n 8010b22 - 8010b1a: 8bba ldrh r2, [r7, #28] - 8010b1c: 88fb ldrh r3, [r7, #6] - 8010b1e: 429a cmp r2, r3 - 8010b20: d201 bcs.n 8010b26 + 8010b22: 8bbb ldrh r3, [r7, #28] + 8010b24: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010b28: d803 bhi.n 8010b32 + 8010b2a: 8bba ldrh r2, [r7, #28] + 8010b2c: 88fb ldrh r3, [r7, #6] + 8010b2e: 429a cmp r2, r3 + 8010b30: d201 bcs.n 8010b36 return NULL; - 8010b22: 2300 movs r3, #0 - 8010b24: e0cd b.n 8010cc2 + 8010b32: 2300 movs r3, #0 + 8010b34: e0cd b.n 8010cd2 } /* protect the heap from concurrent access */ sys_mutex_lock(&mem_mutex); - 8010b26: 4869 ldr r0, [pc, #420] ; (8010ccc ) - 8010b28: f00b fcce bl 801c4c8 + 8010b36: 4869 ldr r0, [pc, #420] ; (8010cdc ) + 8010b38: f00b fcce bl 801c4d8 #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ /* Scan through the heap searching for a free block that is big enough, * beginning with the lowest free block. */ for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size; - 8010b2c: 4b68 ldr r3, [pc, #416] ; (8010cd0 ) - 8010b2e: 681b ldr r3, [r3, #0] - 8010b30: 4618 mov r0, r3 - 8010b32: f7ff fcfd bl 8010530 - 8010b36: 4603 mov r3, r0 - 8010b38: 83fb strh r3, [r7, #30] - 8010b3a: e0b7 b.n 8010cac + 8010b3c: 4b68 ldr r3, [pc, #416] ; (8010ce0 ) + 8010b3e: 681b ldr r3, [r3, #0] + 8010b40: 4618 mov r0, r3 + 8010b42: f7ff fcfd bl 8010540 + 8010b46: 4603 mov r3, r0 + 8010b48: 83fb strh r3, [r7, #30] + 8010b4a: e0b7 b.n 8010cbc ptr = ptr_to_mem(ptr)->next) { mem = ptr_to_mem(ptr); - 8010b3c: 8bfb ldrh r3, [r7, #30] - 8010b3e: 4618 mov r0, r3 - 8010b40: f7ff fce4 bl 801050c - 8010b44: 6178 str r0, [r7, #20] + 8010b4c: 8bfb ldrh r3, [r7, #30] + 8010b4e: 4618 mov r0, r3 + 8010b50: f7ff fce4 bl 801051c + 8010b54: 6178 str r0, [r7, #20] local_mem_free_count = 1; break; } #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ if ((!mem->used) && - 8010b46: 697b ldr r3, [r7, #20] - 8010b48: 791b ldrb r3, [r3, #4] - 8010b4a: 2b00 cmp r3, #0 - 8010b4c: f040 80a7 bne.w 8010c9e + 8010b56: 697b ldr r3, [r7, #20] + 8010b58: 791b ldrb r3, [r3, #4] + 8010b5a: 2b00 cmp r3, #0 + 8010b5c: f040 80a7 bne.w 8010cae (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) { - 8010b50: 697b ldr r3, [r7, #20] - 8010b52: 881b ldrh r3, [r3, #0] - 8010b54: 461a mov r2, r3 - 8010b56: 8bfb ldrh r3, [r7, #30] - 8010b58: 1ad3 subs r3, r2, r3 - 8010b5a: f1a3 0208 sub.w r2, r3, #8 - 8010b5e: 8bbb ldrh r3, [r7, #28] + 8010b60: 697b ldr r3, [r7, #20] + 8010b62: 881b ldrh r3, [r3, #0] + 8010b64: 461a mov r2, r3 + 8010b66: 8bfb ldrh r3, [r7, #30] + 8010b68: 1ad3 subs r3, r2, r3 + 8010b6a: f1a3 0208 sub.w r2, r3, #8 + 8010b6e: 8bbb ldrh r3, [r7, #28] if ((!mem->used) && - 8010b60: 429a cmp r2, r3 - 8010b62: f0c0 809c bcc.w 8010c9e + 8010b70: 429a cmp r2, r3 + 8010b72: f0c0 809c bcc.w 8010cae /* mem is not used and at least perfect fit is possible: * mem->next - (ptr + SIZEOF_STRUCT_MEM) gives us the 'user data size' of mem */ if (mem->next - (ptr + SIZEOF_STRUCT_MEM) >= (size + SIZEOF_STRUCT_MEM + MIN_SIZE_ALIGNED)) { - 8010b66: 697b ldr r3, [r7, #20] - 8010b68: 881b ldrh r3, [r3, #0] - 8010b6a: 461a mov r2, r3 - 8010b6c: 8bfb ldrh r3, [r7, #30] - 8010b6e: 1ad3 subs r3, r2, r3 - 8010b70: f1a3 0208 sub.w r2, r3, #8 - 8010b74: 8bbb ldrh r3, [r7, #28] - 8010b76: 3314 adds r3, #20 - 8010b78: 429a cmp r2, r3 - 8010b7a: d333 bcc.n 8010be4 + 8010b76: 697b ldr r3, [r7, #20] + 8010b78: 881b ldrh r3, [r3, #0] + 8010b7a: 461a mov r2, r3 + 8010b7c: 8bfb ldrh r3, [r7, #30] + 8010b7e: 1ad3 subs r3, r2, r3 + 8010b80: f1a3 0208 sub.w r2, r3, #8 + 8010b84: 8bbb ldrh r3, [r7, #28] + 8010b86: 3314 adds r3, #20 + 8010b88: 429a cmp r2, r3 + 8010b8a: d333 bcc.n 8010bf4 * struct mem would fit in but no data between mem2 and mem2->next * @todo we could leave out MIN_SIZE_ALIGNED. We would create an empty * region that couldn't hold data, but when mem->next gets freed, * the 2 regions would be combined, resulting in more free memory */ ptr2 = (mem_size_t)(ptr + SIZEOF_STRUCT_MEM + size); - 8010b7c: 8bfa ldrh r2, [r7, #30] - 8010b7e: 8bbb ldrh r3, [r7, #28] - 8010b80: 4413 add r3, r2 - 8010b82: b29b uxth r3, r3 - 8010b84: 3308 adds r3, #8 - 8010b86: 827b strh r3, [r7, #18] + 8010b8c: 8bfa ldrh r2, [r7, #30] + 8010b8e: 8bbb ldrh r3, [r7, #28] + 8010b90: 4413 add r3, r2 + 8010b92: b29b uxth r3, r3 + 8010b94: 3308 adds r3, #8 + 8010b96: 827b strh r3, [r7, #18] LWIP_ASSERT("invalid next ptr",ptr2 != MEM_SIZE_ALIGNED); - 8010b88: 8a7b ldrh r3, [r7, #18] - 8010b8a: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010b8e: d106 bne.n 8010b9e - 8010b90: 4b50 ldr r3, [pc, #320] ; (8010cd4 ) - 8010b92: f240 3287 movw r2, #903 ; 0x387 - 8010b96: 4950 ldr r1, [pc, #320] ; (8010cd8 ) - 8010b98: 4850 ldr r0, [pc, #320] ; (8010cdc ) - 8010b9a: f00b fd55 bl 801c648 + 8010b98: 8a7b ldrh r3, [r7, #18] + 8010b9a: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010b9e: d106 bne.n 8010bae + 8010ba0: 4b50 ldr r3, [pc, #320] ; (8010ce4 ) + 8010ba2: f240 3287 movw r2, #903 ; 0x387 + 8010ba6: 4950 ldr r1, [pc, #320] ; (8010ce8 ) + 8010ba8: 4850 ldr r0, [pc, #320] ; (8010cec ) + 8010baa: f00b fd55 bl 801c658 /* create mem2 struct */ mem2 = ptr_to_mem(ptr2); - 8010b9e: 8a7b ldrh r3, [r7, #18] - 8010ba0: 4618 mov r0, r3 - 8010ba2: f7ff fcb3 bl 801050c - 8010ba6: 60f8 str r0, [r7, #12] + 8010bae: 8a7b ldrh r3, [r7, #18] + 8010bb0: 4618 mov r0, r3 + 8010bb2: f7ff fcb3 bl 801051c + 8010bb6: 60f8 str r0, [r7, #12] mem2->used = 0; - 8010ba8: 68fb ldr r3, [r7, #12] - 8010baa: 2200 movs r2, #0 - 8010bac: 711a strb r2, [r3, #4] + 8010bb8: 68fb ldr r3, [r7, #12] + 8010bba: 2200 movs r2, #0 + 8010bbc: 711a strb r2, [r3, #4] mem2->next = mem->next; - 8010bae: 697b ldr r3, [r7, #20] - 8010bb0: 881a ldrh r2, [r3, #0] - 8010bb2: 68fb ldr r3, [r7, #12] - 8010bb4: 801a strh r2, [r3, #0] + 8010bbe: 697b ldr r3, [r7, #20] + 8010bc0: 881a ldrh r2, [r3, #0] + 8010bc2: 68fb ldr r3, [r7, #12] + 8010bc4: 801a strh r2, [r3, #0] mem2->prev = ptr; - 8010bb6: 68fb ldr r3, [r7, #12] - 8010bb8: 8bfa ldrh r2, [r7, #30] - 8010bba: 805a strh r2, [r3, #2] + 8010bc6: 68fb ldr r3, [r7, #12] + 8010bc8: 8bfa ldrh r2, [r7, #30] + 8010bca: 805a strh r2, [r3, #2] /* and insert it between mem and mem->next */ mem->next = ptr2; - 8010bbc: 697b ldr r3, [r7, #20] - 8010bbe: 8a7a ldrh r2, [r7, #18] - 8010bc0: 801a strh r2, [r3, #0] + 8010bcc: 697b ldr r3, [r7, #20] + 8010bce: 8a7a ldrh r2, [r7, #18] + 8010bd0: 801a strh r2, [r3, #0] mem->used = 1; - 8010bc2: 697b ldr r3, [r7, #20] - 8010bc4: 2201 movs r2, #1 - 8010bc6: 711a strb r2, [r3, #4] + 8010bd2: 697b ldr r3, [r7, #20] + 8010bd4: 2201 movs r2, #1 + 8010bd6: 711a strb r2, [r3, #4] if (mem2->next != MEM_SIZE_ALIGNED) { - 8010bc8: 68fb ldr r3, [r7, #12] - 8010bca: 881b ldrh r3, [r3, #0] - 8010bcc: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 - 8010bd0: d00b beq.n 8010bea + 8010bd8: 68fb ldr r3, [r7, #12] + 8010bda: 881b ldrh r3, [r3, #0] + 8010bdc: f5b3 6fc8 cmp.w r3, #1600 ; 0x640 + 8010be0: d00b beq.n 8010bfa ptr_to_mem(mem2->next)->prev = ptr2; - 8010bd2: 68fb ldr r3, [r7, #12] - 8010bd4: 881b ldrh r3, [r3, #0] - 8010bd6: 4618 mov r0, r3 - 8010bd8: f7ff fc98 bl 801050c - 8010bdc: 4602 mov r2, r0 - 8010bde: 8a7b ldrh r3, [r7, #18] - 8010be0: 8053 strh r3, [r2, #2] - 8010be2: e002 b.n 8010bea + 8010be2: 68fb ldr r3, [r7, #12] + 8010be4: 881b ldrh r3, [r3, #0] + 8010be6: 4618 mov r0, r3 + 8010be8: f7ff fc98 bl 801051c + 8010bec: 4602 mov r2, r0 + 8010bee: 8a7b ldrh r3, [r7, #18] + 8010bf0: 8053 strh r3, [r2, #2] + 8010bf2: e002 b.n 8010bfa * take care of this). * -> near fit or exact fit: do not split, no mem2 creation * also can't move mem->next directly behind mem, since mem->next * will always be used at this point! */ mem->used = 1; - 8010be4: 697b ldr r3, [r7, #20] - 8010be6: 2201 movs r2, #1 - 8010be8: 711a strb r2, [r3, #4] + 8010bf4: 697b ldr r3, [r7, #20] + 8010bf6: 2201 movs r2, #1 + 8010bf8: 711a strb r2, [r3, #4] MEM_STATS_INC_USED(used, mem->next - mem_to_ptr(mem)); } #if LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT mem_malloc_adjust_lfree: #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ if (mem == lfree) { - 8010bea: 4b39 ldr r3, [pc, #228] ; (8010cd0 ) - 8010bec: 681b ldr r3, [r3, #0] - 8010bee: 697a ldr r2, [r7, #20] - 8010bf0: 429a cmp r2, r3 - 8010bf2: d127 bne.n 8010c44 + 8010bfa: 4b39 ldr r3, [pc, #228] ; (8010ce0 ) + 8010bfc: 681b ldr r3, [r3, #0] + 8010bfe: 697a ldr r2, [r7, #20] + 8010c00: 429a cmp r2, r3 + 8010c02: d127 bne.n 8010c54 struct mem *cur = lfree; - 8010bf4: 4b36 ldr r3, [pc, #216] ; (8010cd0 ) - 8010bf6: 681b ldr r3, [r3, #0] - 8010bf8: 61bb str r3, [r7, #24] + 8010c04: 4b36 ldr r3, [pc, #216] ; (8010ce0 ) + 8010c06: 681b ldr r3, [r3, #0] + 8010c08: 61bb str r3, [r7, #24] /* Find next free block after mem and update lowest free pointer */ while (cur->used && cur != ram_end) { - 8010bfa: e005 b.n 8010c08 + 8010c0a: e005 b.n 8010c18 /* If mem_free or mem_trim have run, we have to restart since they could have altered our current struct mem or lfree. */ goto mem_malloc_adjust_lfree; } #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ cur = ptr_to_mem(cur->next); - 8010bfc: 69bb ldr r3, [r7, #24] - 8010bfe: 881b ldrh r3, [r3, #0] - 8010c00: 4618 mov r0, r3 - 8010c02: f7ff fc83 bl 801050c - 8010c06: 61b8 str r0, [r7, #24] + 8010c0c: 69bb ldr r3, [r7, #24] + 8010c0e: 881b ldrh r3, [r3, #0] + 8010c10: 4618 mov r0, r3 + 8010c12: f7ff fc83 bl 801051c + 8010c16: 61b8 str r0, [r7, #24] while (cur->used && cur != ram_end) { - 8010c08: 69bb ldr r3, [r7, #24] - 8010c0a: 791b ldrb r3, [r3, #4] - 8010c0c: 2b00 cmp r3, #0 - 8010c0e: d004 beq.n 8010c1a - 8010c10: 4b33 ldr r3, [pc, #204] ; (8010ce0 ) - 8010c12: 681b ldr r3, [r3, #0] - 8010c14: 69ba ldr r2, [r7, #24] - 8010c16: 429a cmp r2, r3 - 8010c18: d1f0 bne.n 8010bfc + 8010c18: 69bb ldr r3, [r7, #24] + 8010c1a: 791b ldrb r3, [r3, #4] + 8010c1c: 2b00 cmp r3, #0 + 8010c1e: d004 beq.n 8010c2a + 8010c20: 4b33 ldr r3, [pc, #204] ; (8010cf0 ) + 8010c22: 681b ldr r3, [r3, #0] + 8010c24: 69ba ldr r2, [r7, #24] + 8010c26: 429a cmp r2, r3 + 8010c28: d1f0 bne.n 8010c0c } lfree = cur; - 8010c1a: 4a2d ldr r2, [pc, #180] ; (8010cd0 ) - 8010c1c: 69bb ldr r3, [r7, #24] - 8010c1e: 6013 str r3, [r2, #0] + 8010c2a: 4a2d ldr r2, [pc, #180] ; (8010ce0 ) + 8010c2c: 69bb ldr r3, [r7, #24] + 8010c2e: 6013 str r3, [r2, #0] LWIP_ASSERT("mem_malloc: !lfree->used", ((lfree == ram_end) || (!lfree->used))); - 8010c20: 4b2b ldr r3, [pc, #172] ; (8010cd0 ) - 8010c22: 681a ldr r2, [r3, #0] - 8010c24: 4b2e ldr r3, [pc, #184] ; (8010ce0 ) - 8010c26: 681b ldr r3, [r3, #0] - 8010c28: 429a cmp r2, r3 - 8010c2a: d00b beq.n 8010c44 - 8010c2c: 4b28 ldr r3, [pc, #160] ; (8010cd0 ) - 8010c2e: 681b ldr r3, [r3, #0] - 8010c30: 791b ldrb r3, [r3, #4] - 8010c32: 2b00 cmp r3, #0 - 8010c34: d006 beq.n 8010c44 - 8010c36: 4b27 ldr r3, [pc, #156] ; (8010cd4 ) - 8010c38: f240 32b5 movw r2, #949 ; 0x3b5 - 8010c3c: 4929 ldr r1, [pc, #164] ; (8010ce4 ) - 8010c3e: 4827 ldr r0, [pc, #156] ; (8010cdc ) - 8010c40: f00b fd02 bl 801c648 + 8010c30: 4b2b ldr r3, [pc, #172] ; (8010ce0 ) + 8010c32: 681a ldr r2, [r3, #0] + 8010c34: 4b2e ldr r3, [pc, #184] ; (8010cf0 ) + 8010c36: 681b ldr r3, [r3, #0] + 8010c38: 429a cmp r2, r3 + 8010c3a: d00b beq.n 8010c54 + 8010c3c: 4b28 ldr r3, [pc, #160] ; (8010ce0 ) + 8010c3e: 681b ldr r3, [r3, #0] + 8010c40: 791b ldrb r3, [r3, #4] + 8010c42: 2b00 cmp r3, #0 + 8010c44: d006 beq.n 8010c54 + 8010c46: 4b27 ldr r3, [pc, #156] ; (8010ce4 ) + 8010c48: f240 32b5 movw r2, #949 ; 0x3b5 + 8010c4c: 4929 ldr r1, [pc, #164] ; (8010cf4 ) + 8010c4e: 4827 ldr r0, [pc, #156] ; (8010cec ) + 8010c50: f00b fd02 bl 801c658 } LWIP_MEM_ALLOC_UNPROTECT(); sys_mutex_unlock(&mem_mutex); - 8010c44: 4821 ldr r0, [pc, #132] ; (8010ccc ) - 8010c46: f00b fc4e bl 801c4e6 + 8010c54: 4821 ldr r0, [pc, #132] ; (8010cdc ) + 8010c56: f00b fc4e bl 801c4f6 LWIP_ASSERT("mem_malloc: allocated memory not above ram_end.", - 8010c4a: 8bba ldrh r2, [r7, #28] - 8010c4c: 697b ldr r3, [r7, #20] - 8010c4e: 4413 add r3, r2 - 8010c50: 3308 adds r3, #8 - 8010c52: 4a23 ldr r2, [pc, #140] ; (8010ce0 ) - 8010c54: 6812 ldr r2, [r2, #0] - 8010c56: 4293 cmp r3, r2 - 8010c58: d906 bls.n 8010c68 - 8010c5a: 4b1e ldr r3, [pc, #120] ; (8010cd4 ) - 8010c5c: f240 32ba movw r2, #954 ; 0x3ba - 8010c60: 4921 ldr r1, [pc, #132] ; (8010ce8 ) - 8010c62: 481e ldr r0, [pc, #120] ; (8010cdc ) - 8010c64: f00b fcf0 bl 801c648 + 8010c5a: 8bba ldrh r2, [r7, #28] + 8010c5c: 697b ldr r3, [r7, #20] + 8010c5e: 4413 add r3, r2 + 8010c60: 3308 adds r3, #8 + 8010c62: 4a23 ldr r2, [pc, #140] ; (8010cf0 ) + 8010c64: 6812 ldr r2, [r2, #0] + 8010c66: 4293 cmp r3, r2 + 8010c68: d906 bls.n 8010c78 + 8010c6a: 4b1e ldr r3, [pc, #120] ; (8010ce4 ) + 8010c6c: f240 32ba movw r2, #954 ; 0x3ba + 8010c70: 4921 ldr r1, [pc, #132] ; (8010cf8 ) + 8010c72: 481e ldr r0, [pc, #120] ; (8010cec ) + 8010c74: f00b fcf0 bl 801c658 (mem_ptr_t)mem + SIZEOF_STRUCT_MEM + size <= (mem_ptr_t)ram_end); LWIP_ASSERT("mem_malloc: allocated memory properly aligned.", - 8010c68: 697b ldr r3, [r7, #20] - 8010c6a: f003 0303 and.w r3, r3, #3 - 8010c6e: 2b00 cmp r3, #0 - 8010c70: d006 beq.n 8010c80 - 8010c72: 4b18 ldr r3, [pc, #96] ; (8010cd4 ) - 8010c74: f44f 726f mov.w r2, #956 ; 0x3bc - 8010c78: 491c ldr r1, [pc, #112] ; (8010cec ) - 8010c7a: 4818 ldr r0, [pc, #96] ; (8010cdc ) - 8010c7c: f00b fce4 bl 801c648 + 8010c78: 697b ldr r3, [r7, #20] + 8010c7a: f003 0303 and.w r3, r3, #3 + 8010c7e: 2b00 cmp r3, #0 + 8010c80: d006 beq.n 8010c90 + 8010c82: 4b18 ldr r3, [pc, #96] ; (8010ce4 ) + 8010c84: f44f 726f mov.w r2, #956 ; 0x3bc + 8010c88: 491c ldr r1, [pc, #112] ; (8010cfc ) + 8010c8a: 4818 ldr r0, [pc, #96] ; (8010cec ) + 8010c8c: f00b fce4 bl 801c658 ((mem_ptr_t)mem + SIZEOF_STRUCT_MEM) % MEM_ALIGNMENT == 0); LWIP_ASSERT("mem_malloc: sanity check alignment", - 8010c80: 697b ldr r3, [r7, #20] - 8010c82: f003 0303 and.w r3, r3, #3 - 8010c86: 2b00 cmp r3, #0 - 8010c88: d006 beq.n 8010c98 - 8010c8a: 4b12 ldr r3, [pc, #72] ; (8010cd4 ) - 8010c8c: f240 32be movw r2, #958 ; 0x3be - 8010c90: 4917 ldr r1, [pc, #92] ; (8010cf0 ) - 8010c92: 4812 ldr r0, [pc, #72] ; (8010cdc ) - 8010c94: f00b fcd8 bl 801c648 + 8010c90: 697b ldr r3, [r7, #20] + 8010c92: f003 0303 and.w r3, r3, #3 + 8010c96: 2b00 cmp r3, #0 + 8010c98: d006 beq.n 8010ca8 + 8010c9a: 4b12 ldr r3, [pc, #72] ; (8010ce4 ) + 8010c9c: f240 32be movw r2, #958 ; 0x3be + 8010ca0: 4917 ldr r1, [pc, #92] ; (8010d00 ) + 8010ca2: 4812 ldr r0, [pc, #72] ; (8010cec ) + 8010ca4: f00b fcd8 bl 801c658 #if MEM_OVERFLOW_CHECK mem_overflow_init_element(mem, size_in); #endif MEM_SANITY(); return (u8_t *)mem + SIZEOF_STRUCT_MEM + MEM_SANITY_OFFSET; - 8010c98: 697b ldr r3, [r7, #20] - 8010c9a: 3308 adds r3, #8 - 8010c9c: e011 b.n 8010cc2 + 8010ca8: 697b ldr r3, [r7, #20] + 8010caa: 3308 adds r3, #8 + 8010cac: e011 b.n 8010cd2 ptr = ptr_to_mem(ptr)->next) { - 8010c9e: 8bfb ldrh r3, [r7, #30] - 8010ca0: 4618 mov r0, r3 - 8010ca2: f7ff fc33 bl 801050c - 8010ca6: 4603 mov r3, r0 - 8010ca8: 881b ldrh r3, [r3, #0] - 8010caa: 83fb strh r3, [r7, #30] + 8010cae: 8bfb ldrh r3, [r7, #30] + 8010cb0: 4618 mov r0, r3 + 8010cb2: f7ff fc33 bl 801051c + 8010cb6: 4603 mov r3, r0 + 8010cb8: 881b ldrh r3, [r3, #0] + 8010cba: 83fb strh r3, [r7, #30] for (ptr = mem_to_ptr(lfree); ptr < MEM_SIZE_ALIGNED - size; - 8010cac: 8bfa ldrh r2, [r7, #30] - 8010cae: 8bbb ldrh r3, [r7, #28] - 8010cb0: f5c3 63c8 rsb r3, r3, #1600 ; 0x640 - 8010cb4: 429a cmp r2, r3 - 8010cb6: f4ff af41 bcc.w 8010b3c + 8010cbc: 8bfa ldrh r2, [r7, #30] + 8010cbe: 8bbb ldrh r3, [r7, #28] + 8010cc0: f5c3 63c8 rsb r3, r3, #1600 ; 0x640 + 8010cc4: 429a cmp r2, r3 + 8010cc6: f4ff af41 bcc.w 8010b4c /* if we got interrupted by a mem_free, try again */ } while (local_mem_free_count != 0); #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ MEM_STATS_INC(err); LWIP_MEM_ALLOC_UNPROTECT(); sys_mutex_unlock(&mem_mutex); - 8010cba: 4804 ldr r0, [pc, #16] ; (8010ccc ) - 8010cbc: f00b fc13 bl 801c4e6 + 8010cca: 4804 ldr r0, [pc, #16] ; (8010cdc ) + 8010ccc: f00b fc13 bl 801c4f6 LWIP_DEBUGF(MEM_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("mem_malloc: could not allocate %"S16_F" bytes\n", (s16_t)size)); return NULL; - 8010cc0: 2300 movs r3, #0 -} - 8010cc2: 4618 mov r0, r3 - 8010cc4: 3720 adds r7, #32 - 8010cc6: 46bd mov sp, r7 - 8010cc8: bd80 pop {r7, pc} - 8010cca: bf00 nop - 8010ccc: 200086e0 .word 0x200086e0 - 8010cd0: 200086e4 .word 0x200086e4 - 8010cd4: 0801da44 .word 0x0801da44 - 8010cd8: 0801dc08 .word 0x0801dc08 - 8010cdc: 0801da8c .word 0x0801da8c - 8010ce0: 200086dc .word 0x200086dc - 8010ce4: 0801dc1c .word 0x0801dc1c - 8010ce8: 0801dc38 .word 0x0801dc38 - 8010cec: 0801dc68 .word 0x0801dc68 - 8010cf0: 0801dc98 .word 0x0801dc98 - -08010cf4 : + 8010cd0: 2300 movs r3, #0 +} + 8010cd2: 4618 mov r0, r3 + 8010cd4: 3720 adds r7, #32 + 8010cd6: 46bd mov sp, r7 + 8010cd8: bd80 pop {r7, pc} + 8010cda: bf00 nop + 8010cdc: 200086e0 .word 0x200086e0 + 8010ce0: 200086e4 .word 0x200086e4 + 8010ce4: 0801da54 .word 0x0801da54 + 8010ce8: 0801dc18 .word 0x0801dc18 + 8010cec: 0801da9c .word 0x0801da9c + 8010cf0: 200086dc .word 0x200086dc + 8010cf4: 0801dc2c .word 0x0801dc2c + 8010cf8: 0801dc48 .word 0x0801dc48 + 8010cfc: 0801dc78 .word 0x0801dc78 + 8010d00: 0801dca8 .word 0x0801dca8 + +08010d04 : * * @param desc pool to initialize */ void memp_init_pool(const struct memp_desc *desc) { - 8010cf4: b480 push {r7} - 8010cf6: b085 sub sp, #20 - 8010cf8: af00 add r7, sp, #0 - 8010cfa: 6078 str r0, [r7, #4] + 8010d04: b480 push {r7} + 8010d06: b085 sub sp, #20 + 8010d08: af00 add r7, sp, #0 + 8010d0a: 6078 str r0, [r7, #4] LWIP_UNUSED_ARG(desc); #else int i; struct memp *memp; *desc->tab = NULL; - 8010cfc: 687b ldr r3, [r7, #4] - 8010cfe: 689b ldr r3, [r3, #8] - 8010d00: 2200 movs r2, #0 - 8010d02: 601a str r2, [r3, #0] + 8010d0c: 687b ldr r3, [r7, #4] + 8010d0e: 689b ldr r3, [r3, #8] + 8010d10: 2200 movs r2, #0 + 8010d12: 601a str r2, [r3, #0] memp = (struct memp *)LWIP_MEM_ALIGN(desc->base); - 8010d04: 687b ldr r3, [r7, #4] - 8010d06: 685b ldr r3, [r3, #4] - 8010d08: 3303 adds r3, #3 - 8010d0a: f023 0303 bic.w r3, r3, #3 - 8010d0e: 60bb str r3, [r7, #8] + 8010d14: 687b ldr r3, [r7, #4] + 8010d16: 685b ldr r3, [r3, #4] + 8010d18: 3303 adds r3, #3 + 8010d1a: f023 0303 bic.w r3, r3, #3 + 8010d1e: 60bb str r3, [r7, #8] + MEM_SANITY_REGION_AFTER_ALIGNED #endif )); #endif /* create a linked list of memp elements */ for (i = 0; i < desc->num; ++i) { - 8010d10: 2300 movs r3, #0 - 8010d12: 60fb str r3, [r7, #12] - 8010d14: e011 b.n 8010d3a + 8010d20: 2300 movs r3, #0 + 8010d22: 60fb str r3, [r7, #12] + 8010d24: e011 b.n 8010d4a memp->next = *desc->tab; - 8010d16: 687b ldr r3, [r7, #4] - 8010d18: 689b ldr r3, [r3, #8] - 8010d1a: 681a ldr r2, [r3, #0] - 8010d1c: 68bb ldr r3, [r7, #8] - 8010d1e: 601a str r2, [r3, #0] + 8010d26: 687b ldr r3, [r7, #4] + 8010d28: 689b ldr r3, [r3, #8] + 8010d2a: 681a ldr r2, [r3, #0] + 8010d2c: 68bb ldr r3, [r7, #8] + 8010d2e: 601a str r2, [r3, #0] *desc->tab = memp; - 8010d20: 687b ldr r3, [r7, #4] - 8010d22: 689b ldr r3, [r3, #8] - 8010d24: 68ba ldr r2, [r7, #8] - 8010d26: 601a str r2, [r3, #0] + 8010d30: 687b ldr r3, [r7, #4] + 8010d32: 689b ldr r3, [r3, #8] + 8010d34: 68ba ldr r2, [r7, #8] + 8010d36: 601a str r2, [r3, #0] #if MEMP_OVERFLOW_CHECK memp_overflow_init_element(memp, desc); #endif /* MEMP_OVERFLOW_CHECK */ /* cast through void* to get rid of alignment warnings */ memp = (struct memp *)(void *)((u8_t *)memp + MEMP_SIZE + desc->size - 8010d28: 687b ldr r3, [r7, #4] - 8010d2a: 881b ldrh r3, [r3, #0] - 8010d2c: 461a mov r2, r3 - 8010d2e: 68bb ldr r3, [r7, #8] - 8010d30: 4413 add r3, r2 - 8010d32: 60bb str r3, [r7, #8] + 8010d38: 687b ldr r3, [r7, #4] + 8010d3a: 881b ldrh r3, [r3, #0] + 8010d3c: 461a mov r2, r3 + 8010d3e: 68bb ldr r3, [r7, #8] + 8010d40: 4413 add r3, r2 + 8010d42: 60bb str r3, [r7, #8] for (i = 0; i < desc->num; ++i) { - 8010d34: 68fb ldr r3, [r7, #12] - 8010d36: 3301 adds r3, #1 - 8010d38: 60fb str r3, [r7, #12] - 8010d3a: 687b ldr r3, [r7, #4] - 8010d3c: 885b ldrh r3, [r3, #2] - 8010d3e: 461a mov r2, r3 - 8010d40: 68fb ldr r3, [r7, #12] - 8010d42: 4293 cmp r3, r2 - 8010d44: dbe7 blt.n 8010d16 + 8010d44: 68fb ldr r3, [r7, #12] + 8010d46: 3301 adds r3, #1 + 8010d48: 60fb str r3, [r7, #12] + 8010d4a: 687b ldr r3, [r7, #4] + 8010d4c: 885b ldrh r3, [r3, #2] + 8010d4e: 461a mov r2, r3 + 8010d50: 68fb ldr r3, [r7, #12] + 8010d52: 4293 cmp r3, r2 + 8010d54: dbe7 blt.n 8010d26 #endif /* !MEMP_MEM_MALLOC */ #if MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) desc->stats->name = desc->desc; #endif /* MEMP_STATS && (defined(LWIP_DEBUG) || LWIP_STATS_DISPLAY) */ } - 8010d46: bf00 nop - 8010d48: 3714 adds r7, #20 - 8010d4a: 46bd mov sp, r7 - 8010d4c: f85d 7b04 ldr.w r7, [sp], #4 - 8010d50: 4770 bx lr + 8010d56: bf00 nop + 8010d58: 3714 adds r7, #20 + 8010d5a: 46bd mov sp, r7 + 8010d5c: f85d 7b04 ldr.w r7, [sp], #4 + 8010d60: 4770 bx lr ... -08010d54 : +08010d64 : * * Carves out memp_memory into linked lists for each pool-type. */ void memp_init(void) { - 8010d54: b580 push {r7, lr} - 8010d56: b082 sub sp, #8 - 8010d58: af00 add r7, sp, #0 + 8010d64: b580 push {r7, lr} + 8010d66: b082 sub sp, #8 + 8010d68: af00 add r7, sp, #0 u16_t i; /* for every pool: */ for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) { - 8010d5a: 2300 movs r3, #0 - 8010d5c: 80fb strh r3, [r7, #6] - 8010d5e: e009 b.n 8010d74 + 8010d6a: 2300 movs r3, #0 + 8010d6c: 80fb strh r3, [r7, #6] + 8010d6e: e009 b.n 8010d84 memp_init_pool(memp_pools[i]); - 8010d60: 88fb ldrh r3, [r7, #6] - 8010d62: 4a08 ldr r2, [pc, #32] ; (8010d84 ) - 8010d64: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8010d68: 4618 mov r0, r3 - 8010d6a: f7ff ffc3 bl 8010cf4 + 8010d70: 88fb ldrh r3, [r7, #6] + 8010d72: 4a08 ldr r2, [pc, #32] ; (8010d94 ) + 8010d74: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8010d78: 4618 mov r0, r3 + 8010d7a: f7ff ffc3 bl 8010d04 for (i = 0; i < LWIP_ARRAYSIZE(memp_pools); i++) { - 8010d6e: 88fb ldrh r3, [r7, #6] - 8010d70: 3301 adds r3, #1 - 8010d72: 80fb strh r3, [r7, #6] - 8010d74: 88fb ldrh r3, [r7, #6] - 8010d76: 2b0c cmp r3, #12 - 8010d78: d9f2 bls.n 8010d60 + 8010d7e: 88fb ldrh r3, [r7, #6] + 8010d80: 3301 adds r3, #1 + 8010d82: 80fb strh r3, [r7, #6] + 8010d84: 88fb ldrh r3, [r7, #6] + 8010d86: 2b0c cmp r3, #12 + 8010d88: d9f2 bls.n 8010d70 #if MEMP_OVERFLOW_CHECK >= 2 /* check everything a first time to see if it worked */ memp_overflow_check_all(); #endif /* MEMP_OVERFLOW_CHECK >= 2 */ } - 8010d7a: bf00 nop - 8010d7c: 3708 adds r7, #8 - 8010d7e: 46bd mov sp, r7 - 8010d80: bd80 pop {r7, pc} - 8010d82: bf00 nop - 8010d84: 08022774 .word 0x08022774 + 8010d8a: bf00 nop + 8010d8c: 3708 adds r7, #8 + 8010d8e: 46bd mov sp, r7 + 8010d90: bd80 pop {r7, pc} + 8010d92: bf00 nop + 8010d94: 08022784 .word 0x08022784 -08010d88 : +08010d98 : #if !MEMP_OVERFLOW_CHECK do_memp_malloc_pool(const struct memp_desc *desc) #else do_memp_malloc_pool_fn(const struct memp_desc *desc, const char *file, const int line) #endif { - 8010d88: b580 push {r7, lr} - 8010d8a: b084 sub sp, #16 - 8010d8c: af00 add r7, sp, #0 - 8010d8e: 6078 str r0, [r7, #4] + 8010d98: b580 push {r7, lr} + 8010d9a: b084 sub sp, #16 + 8010d9c: af00 add r7, sp, #0 + 8010d9e: 6078 str r0, [r7, #4] #if MEMP_MEM_MALLOC memp = (struct memp *)mem_malloc(MEMP_SIZE + MEMP_ALIGN_SIZE(desc->size)); SYS_ARCH_PROTECT(old_level); #else /* MEMP_MEM_MALLOC */ SYS_ARCH_PROTECT(old_level); - 8010d90: f00b fbdc bl 801c54c - 8010d94: 60f8 str r0, [r7, #12] + 8010da0: f00b fbdc bl 801c55c + 8010da4: 60f8 str r0, [r7, #12] memp = *desc->tab; - 8010d96: 687b ldr r3, [r7, #4] - 8010d98: 689b ldr r3, [r3, #8] - 8010d9a: 681b ldr r3, [r3, #0] - 8010d9c: 60bb str r3, [r7, #8] + 8010da6: 687b ldr r3, [r7, #4] + 8010da8: 689b ldr r3, [r3, #8] + 8010daa: 681b ldr r3, [r3, #0] + 8010dac: 60bb str r3, [r7, #8] #endif /* MEMP_MEM_MALLOC */ if (memp != NULL) { - 8010d9e: 68bb ldr r3, [r7, #8] - 8010da0: 2b00 cmp r3, #0 - 8010da2: d015 beq.n 8010dd0 + 8010dae: 68bb ldr r3, [r7, #8] + 8010db0: 2b00 cmp r3, #0 + 8010db2: d015 beq.n 8010de0 #if !MEMP_MEM_MALLOC #if MEMP_OVERFLOW_CHECK == 1 memp_overflow_check_element(memp, desc); #endif /* MEMP_OVERFLOW_CHECK */ *desc->tab = memp->next; - 8010da4: 687b ldr r3, [r7, #4] - 8010da6: 689b ldr r3, [r3, #8] - 8010da8: 68ba ldr r2, [r7, #8] - 8010daa: 6812 ldr r2, [r2, #0] - 8010dac: 601a str r2, [r3, #0] + 8010db4: 687b ldr r3, [r7, #4] + 8010db6: 689b ldr r3, [r3, #8] + 8010db8: 68ba ldr r2, [r7, #8] + 8010dba: 6812 ldr r2, [r2, #0] + 8010dbc: 601a str r2, [r3, #0] memp->line = line; #if MEMP_MEM_MALLOC memp_overflow_init_element(memp, desc); #endif /* MEMP_MEM_MALLOC */ #endif /* MEMP_OVERFLOW_CHECK */ LWIP_ASSERT("memp_malloc: memp properly aligned", - 8010dae: 68bb ldr r3, [r7, #8] - 8010db0: f003 0303 and.w r3, r3, #3 - 8010db4: 2b00 cmp r3, #0 - 8010db6: d006 beq.n 8010dc6 - 8010db8: 4b09 ldr r3, [pc, #36] ; (8010de0 ) - 8010dba: f240 1219 movw r2, #281 ; 0x119 - 8010dbe: 4909 ldr r1, [pc, #36] ; (8010de4 ) - 8010dc0: 4809 ldr r0, [pc, #36] ; (8010de8 ) - 8010dc2: f00b fc41 bl 801c648 + 8010dbe: 68bb ldr r3, [r7, #8] + 8010dc0: f003 0303 and.w r3, r3, #3 + 8010dc4: 2b00 cmp r3, #0 + 8010dc6: d006 beq.n 8010dd6 + 8010dc8: 4b09 ldr r3, [pc, #36] ; (8010df0 ) + 8010dca: f240 1219 movw r2, #281 ; 0x119 + 8010dce: 4909 ldr r1, [pc, #36] ; (8010df4 ) + 8010dd0: 4809 ldr r0, [pc, #36] ; (8010df8 ) + 8010dd2: f00b fc41 bl 801c658 desc->stats->used++; if (desc->stats->used > desc->stats->max) { desc->stats->max = desc->stats->used; } #endif SYS_ARCH_UNPROTECT(old_level); - 8010dc6: 68f8 ldr r0, [r7, #12] - 8010dc8: f00b fbce bl 801c568 + 8010dd6: 68f8 ldr r0, [r7, #12] + 8010dd8: f00b fbce bl 801c578 /* cast through u8_t* to get rid of alignment warnings */ return ((u8_t *)memp + MEMP_SIZE); - 8010dcc: 68bb ldr r3, [r7, #8] - 8010dce: e003 b.n 8010dd8 + 8010ddc: 68bb ldr r3, [r7, #8] + 8010dde: e003 b.n 8010de8 } else { #if MEMP_STATS desc->stats->err++; #endif SYS_ARCH_UNPROTECT(old_level); - 8010dd0: 68f8 ldr r0, [r7, #12] - 8010dd2: f00b fbc9 bl 801c568 + 8010de0: 68f8 ldr r0, [r7, #12] + 8010de2: f00b fbc9 bl 801c578 LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc->desc)); } return NULL; - 8010dd6: 2300 movs r3, #0 + 8010de6: 2300 movs r3, #0 } - 8010dd8: 4618 mov r0, r3 - 8010dda: 3710 adds r7, #16 - 8010ddc: 46bd mov sp, r7 - 8010dde: bd80 pop {r7, pc} - 8010de0: 0801dcbc .word 0x0801dcbc - 8010de4: 0801dcec .word 0x0801dcec - 8010de8: 0801dd10 .word 0x0801dd10 + 8010de8: 4618 mov r0, r3 + 8010dea: 3710 adds r7, #16 + 8010dec: 46bd mov sp, r7 + 8010dee: bd80 pop {r7, pc} + 8010df0: 0801dccc .word 0x0801dccc + 8010df4: 0801dcfc .word 0x0801dcfc + 8010df8: 0801dd20 .word 0x0801dd20 -08010dec : +08010dfc : #if !MEMP_OVERFLOW_CHECK memp_malloc(memp_t type) #else memp_malloc_fn(memp_t type, const char *file, const int line) #endif { - 8010dec: b580 push {r7, lr} - 8010dee: b084 sub sp, #16 - 8010df0: af00 add r7, sp, #0 - 8010df2: 4603 mov r3, r0 - 8010df4: 71fb strb r3, [r7, #7] + 8010dfc: b580 push {r7, lr} + 8010dfe: b084 sub sp, #16 + 8010e00: af00 add r7, sp, #0 + 8010e02: 4603 mov r3, r0 + 8010e04: 71fb strb r3, [r7, #7] void *memp; LWIP_ERROR("memp_malloc: type < MEMP_MAX", (type < MEMP_MAX), return NULL;); - 8010df6: 79fb ldrb r3, [r7, #7] - 8010df8: 2b0c cmp r3, #12 - 8010dfa: d908 bls.n 8010e0e - 8010dfc: 4b0a ldr r3, [pc, #40] ; (8010e28 ) - 8010dfe: f240 1257 movw r2, #343 ; 0x157 - 8010e02: 490a ldr r1, [pc, #40] ; (8010e2c ) - 8010e04: 480a ldr r0, [pc, #40] ; (8010e30 ) - 8010e06: f00b fc1f bl 801c648 - 8010e0a: 2300 movs r3, #0 - 8010e0c: e008 b.n 8010e20 + 8010e06: 79fb ldrb r3, [r7, #7] + 8010e08: 2b0c cmp r3, #12 + 8010e0a: d908 bls.n 8010e1e + 8010e0c: 4b0a ldr r3, [pc, #40] ; (8010e38 ) + 8010e0e: f240 1257 movw r2, #343 ; 0x157 + 8010e12: 490a ldr r1, [pc, #40] ; (8010e3c ) + 8010e14: 480a ldr r0, [pc, #40] ; (8010e40 ) + 8010e16: f00b fc1f bl 801c658 + 8010e1a: 2300 movs r3, #0 + 8010e1c: e008 b.n 8010e30 #if MEMP_OVERFLOW_CHECK >= 2 memp_overflow_check_all(); #endif /* MEMP_OVERFLOW_CHECK >= 2 */ #if !MEMP_OVERFLOW_CHECK memp = do_memp_malloc_pool(memp_pools[type]); - 8010e0e: 79fb ldrb r3, [r7, #7] - 8010e10: 4a08 ldr r2, [pc, #32] ; (8010e34 ) - 8010e12: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8010e16: 4618 mov r0, r3 - 8010e18: f7ff ffb6 bl 8010d88 - 8010e1c: 60f8 str r0, [r7, #12] + 8010e1e: 79fb ldrb r3, [r7, #7] + 8010e20: 4a08 ldr r2, [pc, #32] ; (8010e44 ) + 8010e22: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8010e26: 4618 mov r0, r3 + 8010e28: f7ff ffb6 bl 8010d98 + 8010e2c: 60f8 str r0, [r7, #12] #else memp = do_memp_malloc_pool_fn(memp_pools[type], file, line); #endif return memp; - 8010e1e: 68fb ldr r3, [r7, #12] + 8010e2e: 68fb ldr r3, [r7, #12] } - 8010e20: 4618 mov r0, r3 - 8010e22: 3710 adds r7, #16 - 8010e24: 46bd mov sp, r7 - 8010e26: bd80 pop {r7, pc} - 8010e28: 0801dcbc .word 0x0801dcbc - 8010e2c: 0801dd4c .word 0x0801dd4c - 8010e30: 0801dd10 .word 0x0801dd10 - 8010e34: 08022774 .word 0x08022774 + 8010e30: 4618 mov r0, r3 + 8010e32: 3710 adds r7, #16 + 8010e34: 46bd mov sp, r7 + 8010e36: bd80 pop {r7, pc} + 8010e38: 0801dccc .word 0x0801dccc + 8010e3c: 0801dd5c .word 0x0801dd5c + 8010e40: 0801dd20 .word 0x0801dd20 + 8010e44: 08022784 .word 0x08022784 -08010e38 : +08010e48 : static void do_memp_free_pool(const struct memp_desc *desc, void *mem) { - 8010e38: b580 push {r7, lr} - 8010e3a: b084 sub sp, #16 - 8010e3c: af00 add r7, sp, #0 - 8010e3e: 6078 str r0, [r7, #4] - 8010e40: 6039 str r1, [r7, #0] + 8010e48: b580 push {r7, lr} + 8010e4a: b084 sub sp, #16 + 8010e4c: af00 add r7, sp, #0 + 8010e4e: 6078 str r0, [r7, #4] + 8010e50: 6039 str r1, [r7, #0] struct memp *memp; SYS_ARCH_DECL_PROTECT(old_level); LWIP_ASSERT("memp_free: mem properly aligned", - 8010e42: 683b ldr r3, [r7, #0] - 8010e44: f003 0303 and.w r3, r3, #3 - 8010e48: 2b00 cmp r3, #0 - 8010e4a: d006 beq.n 8010e5a - 8010e4c: 4b0d ldr r3, [pc, #52] ; (8010e84 ) - 8010e4e: f240 126d movw r2, #365 ; 0x16d - 8010e52: 490d ldr r1, [pc, #52] ; (8010e88 ) - 8010e54: 480d ldr r0, [pc, #52] ; (8010e8c ) - 8010e56: f00b fbf7 bl 801c648 + 8010e52: 683b ldr r3, [r7, #0] + 8010e54: f003 0303 and.w r3, r3, #3 + 8010e58: 2b00 cmp r3, #0 + 8010e5a: d006 beq.n 8010e6a + 8010e5c: 4b0d ldr r3, [pc, #52] ; (8010e94 ) + 8010e5e: f240 126d movw r2, #365 ; 0x16d + 8010e62: 490d ldr r1, [pc, #52] ; (8010e98 ) + 8010e64: 480d ldr r0, [pc, #52] ; (8010e9c ) + 8010e66: f00b fbf7 bl 801c658 ((mem_ptr_t)mem % MEM_ALIGNMENT) == 0); /* cast through void* to get rid of alignment warnings */ memp = (struct memp *)(void *)((u8_t *)mem - MEMP_SIZE); - 8010e5a: 683b ldr r3, [r7, #0] - 8010e5c: 60fb str r3, [r7, #12] + 8010e6a: 683b ldr r3, [r7, #0] + 8010e6c: 60fb str r3, [r7, #12] SYS_ARCH_PROTECT(old_level); - 8010e5e: f00b fb75 bl 801c54c - 8010e62: 60b8 str r0, [r7, #8] + 8010e6e: f00b fb75 bl 801c55c + 8010e72: 60b8 str r0, [r7, #8] #if MEMP_MEM_MALLOC LWIP_UNUSED_ARG(desc); SYS_ARCH_UNPROTECT(old_level); mem_free(memp); #else /* MEMP_MEM_MALLOC */ memp->next = *desc->tab; - 8010e64: 687b ldr r3, [r7, #4] - 8010e66: 689b ldr r3, [r3, #8] - 8010e68: 681a ldr r2, [r3, #0] - 8010e6a: 68fb ldr r3, [r7, #12] - 8010e6c: 601a str r2, [r3, #0] + 8010e74: 687b ldr r3, [r7, #4] + 8010e76: 689b ldr r3, [r3, #8] + 8010e78: 681a ldr r2, [r3, #0] + 8010e7a: 68fb ldr r3, [r7, #12] + 8010e7c: 601a str r2, [r3, #0] *desc->tab = memp; - 8010e6e: 687b ldr r3, [r7, #4] - 8010e70: 689b ldr r3, [r3, #8] - 8010e72: 68fa ldr r2, [r7, #12] - 8010e74: 601a str r2, [r3, #0] + 8010e7e: 687b ldr r3, [r7, #4] + 8010e80: 689b ldr r3, [r3, #8] + 8010e82: 68fa ldr r2, [r7, #12] + 8010e84: 601a str r2, [r3, #0] #if MEMP_SANITY_CHECK LWIP_ASSERT("memp sanity", memp_sanity(desc)); #endif /* MEMP_SANITY_CHECK */ SYS_ARCH_UNPROTECT(old_level); - 8010e76: 68b8 ldr r0, [r7, #8] - 8010e78: f00b fb76 bl 801c568 + 8010e86: 68b8 ldr r0, [r7, #8] + 8010e88: f00b fb76 bl 801c578 #endif /* !MEMP_MEM_MALLOC */ } - 8010e7c: bf00 nop - 8010e7e: 3710 adds r7, #16 - 8010e80: 46bd mov sp, r7 - 8010e82: bd80 pop {r7, pc} - 8010e84: 0801dcbc .word 0x0801dcbc - 8010e88: 0801dd6c .word 0x0801dd6c - 8010e8c: 0801dd10 .word 0x0801dd10 + 8010e8c: bf00 nop + 8010e8e: 3710 adds r7, #16 + 8010e90: 46bd mov sp, r7 + 8010e92: bd80 pop {r7, pc} + 8010e94: 0801dccc .word 0x0801dccc + 8010e98: 0801dd7c .word 0x0801dd7c + 8010e9c: 0801dd20 .word 0x0801dd20 -08010e90 : +08010ea0 : * @param type the pool where to put mem * @param mem the memp element to free */ void memp_free(memp_t type, void *mem) { - 8010e90: b580 push {r7, lr} - 8010e92: b082 sub sp, #8 - 8010e94: af00 add r7, sp, #0 - 8010e96: 4603 mov r3, r0 - 8010e98: 6039 str r1, [r7, #0] - 8010e9a: 71fb strb r3, [r7, #7] + 8010ea0: b580 push {r7, lr} + 8010ea2: b082 sub sp, #8 + 8010ea4: af00 add r7, sp, #0 + 8010ea6: 4603 mov r3, r0 + 8010ea8: 6039 str r1, [r7, #0] + 8010eaa: 71fb strb r3, [r7, #7] #ifdef LWIP_HOOK_MEMP_AVAILABLE struct memp *old_first; #endif LWIP_ERROR("memp_free: type < MEMP_MAX", (type < MEMP_MAX), return;); - 8010e9c: 79fb ldrb r3, [r7, #7] - 8010e9e: 2b0c cmp r3, #12 - 8010ea0: d907 bls.n 8010eb2 - 8010ea2: 4b0c ldr r3, [pc, #48] ; (8010ed4 ) - 8010ea4: f44f 72d5 mov.w r2, #426 ; 0x1aa - 8010ea8: 490b ldr r1, [pc, #44] ; (8010ed8 ) - 8010eaa: 480c ldr r0, [pc, #48] ; (8010edc ) - 8010eac: f00b fbcc bl 801c648 - 8010eb0: e00c b.n 8010ecc + 8010eac: 79fb ldrb r3, [r7, #7] + 8010eae: 2b0c cmp r3, #12 + 8010eb0: d907 bls.n 8010ec2 + 8010eb2: 4b0c ldr r3, [pc, #48] ; (8010ee4 ) + 8010eb4: f44f 72d5 mov.w r2, #426 ; 0x1aa + 8010eb8: 490b ldr r1, [pc, #44] ; (8010ee8 ) + 8010eba: 480c ldr r0, [pc, #48] ; (8010eec ) + 8010ebc: f00b fbcc bl 801c658 + 8010ec0: e00c b.n 8010edc if (mem == NULL) { - 8010eb2: 683b ldr r3, [r7, #0] - 8010eb4: 2b00 cmp r3, #0 - 8010eb6: d008 beq.n 8010eca + 8010ec2: 683b ldr r3, [r7, #0] + 8010ec4: 2b00 cmp r3, #0 + 8010ec6: d008 beq.n 8010eda #ifdef LWIP_HOOK_MEMP_AVAILABLE old_first = *memp_pools[type]->tab; #endif do_memp_free_pool(memp_pools[type], mem); - 8010eb8: 79fb ldrb r3, [r7, #7] - 8010eba: 4a09 ldr r2, [pc, #36] ; (8010ee0 ) - 8010ebc: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8010ec0: 6839 ldr r1, [r7, #0] - 8010ec2: 4618 mov r0, r3 - 8010ec4: f7ff ffb8 bl 8010e38 - 8010ec8: e000 b.n 8010ecc + 8010ec8: 79fb ldrb r3, [r7, #7] + 8010eca: 4a09 ldr r2, [pc, #36] ; (8010ef0 ) + 8010ecc: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8010ed0: 6839 ldr r1, [r7, #0] + 8010ed2: 4618 mov r0, r3 + 8010ed4: f7ff ffb8 bl 8010e48 + 8010ed8: e000 b.n 8010edc return; - 8010eca: bf00 nop + 8010eda: bf00 nop #ifdef LWIP_HOOK_MEMP_AVAILABLE if (old_first == NULL) { LWIP_HOOK_MEMP_AVAILABLE(type); } #endif } - 8010ecc: 3708 adds r7, #8 - 8010ece: 46bd mov sp, r7 - 8010ed0: bd80 pop {r7, pc} - 8010ed2: bf00 nop - 8010ed4: 0801dcbc .word 0x0801dcbc - 8010ed8: 0801dd8c .word 0x0801dd8c - 8010edc: 0801dd10 .word 0x0801dd10 - 8010ee0: 08022774 .word 0x08022774 + 8010edc: 3708 adds r7, #8 + 8010ede: 46bd mov sp, r7 + 8010ee0: bd80 pop {r7, pc} + 8010ee2: bf00 nop + 8010ee4: 0801dccc .word 0x0801dccc + 8010ee8: 0801dd9c .word 0x0801dd9c + 8010eec: 0801dd20 .word 0x0801dd20 + 8010ef0: 08022784 .word 0x08022784 -08010ee4 : +08010ef4 : } #endif /* LWIP_HAVE_LOOPIF */ void netif_init(void) { - 8010ee4: b480 push {r7} - 8010ee6: af00 add r7, sp, #0 + 8010ef4: b480 push {r7} + 8010ef6: af00 add r7, sp, #0 netif_set_link_up(&loop_netif); netif_set_up(&loop_netif); #endif /* LWIP_HAVE_LOOPIF */ } - 8010ee8: bf00 nop - 8010eea: 46bd mov sp, r7 - 8010eec: f85d 7b04 ldr.w r7, [sp], #4 - 8010ef0: 4770 bx lr + 8010ef8: bf00 nop + 8010efa: 46bd mov sp, r7 + 8010efc: f85d 7b04 ldr.w r7, [sp], #4 + 8010f00: 4770 bx lr ... -08010ef4 : +08010f04 : netif_add(struct netif *netif, #if LWIP_IPV4 const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw, #endif /* LWIP_IPV4 */ void *state, netif_init_fn init, netif_input_fn input) { - 8010ef4: b580 push {r7, lr} - 8010ef6: b086 sub sp, #24 - 8010ef8: af00 add r7, sp, #0 - 8010efa: 60f8 str r0, [r7, #12] - 8010efc: 60b9 str r1, [r7, #8] - 8010efe: 607a str r2, [r7, #4] - 8010f00: 603b str r3, [r7, #0] + 8010f04: b580 push {r7, lr} + 8010f06: b086 sub sp, #24 + 8010f08: af00 add r7, sp, #0 + 8010f0a: 60f8 str r0, [r7, #12] + 8010f0c: 60b9 str r1, [r7, #8] + 8010f0e: 607a str r2, [r7, #4] + 8010f10: 603b str r3, [r7, #0] LWIP_ASSERT("single netif already set", 0); return NULL; } #endif LWIP_ERROR("netif_add: invalid netif", netif != NULL, return NULL); - 8010f02: 68fb ldr r3, [r7, #12] - 8010f04: 2b00 cmp r3, #0 - 8010f06: d108 bne.n 8010f1a - 8010f08: 4b5b ldr r3, [pc, #364] ; (8011078 ) - 8010f0a: f240 1227 movw r2, #295 ; 0x127 - 8010f0e: 495b ldr r1, [pc, #364] ; (801107c ) - 8010f10: 485b ldr r0, [pc, #364] ; (8011080 ) - 8010f12: f00b fb99 bl 801c648 - 8010f16: 2300 movs r3, #0 - 8010f18: e0a9 b.n 801106e + 8010f12: 68fb ldr r3, [r7, #12] + 8010f14: 2b00 cmp r3, #0 + 8010f16: d108 bne.n 8010f2a + 8010f18: 4b5b ldr r3, [pc, #364] ; (8011088 ) + 8010f1a: f240 1227 movw r2, #295 ; 0x127 + 8010f1e: 495b ldr r1, [pc, #364] ; (801108c ) + 8010f20: 485b ldr r0, [pc, #364] ; (8011090 ) + 8010f22: f00b fb99 bl 801c658 + 8010f26: 2300 movs r3, #0 + 8010f28: e0a9 b.n 801107e LWIP_ERROR("netif_add: No init function given", init != NULL, return NULL); - 8010f1a: 6a7b ldr r3, [r7, #36] ; 0x24 - 8010f1c: 2b00 cmp r3, #0 - 8010f1e: d108 bne.n 8010f32 - 8010f20: 4b55 ldr r3, [pc, #340] ; (8011078 ) - 8010f22: f44f 7294 mov.w r2, #296 ; 0x128 - 8010f26: 4957 ldr r1, [pc, #348] ; (8011084 ) - 8010f28: 4855 ldr r0, [pc, #340] ; (8011080 ) - 8010f2a: f00b fb8d bl 801c648 - 8010f2e: 2300 movs r3, #0 - 8010f30: e09d b.n 801106e + 8010f2a: 6a7b ldr r3, [r7, #36] ; 0x24 + 8010f2c: 2b00 cmp r3, #0 + 8010f2e: d108 bne.n 8010f42 + 8010f30: 4b55 ldr r3, [pc, #340] ; (8011088 ) + 8010f32: f44f 7294 mov.w r2, #296 ; 0x128 + 8010f36: 4957 ldr r1, [pc, #348] ; (8011094 ) + 8010f38: 4855 ldr r0, [pc, #340] ; (8011090 ) + 8010f3a: f00b fb8d bl 801c658 + 8010f3e: 2300 movs r3, #0 + 8010f40: e09d b.n 801107e #if LWIP_IPV4 if (ipaddr == NULL) { - 8010f32: 68bb ldr r3, [r7, #8] - 8010f34: 2b00 cmp r3, #0 - 8010f36: d101 bne.n 8010f3c + 8010f42: 68bb ldr r3, [r7, #8] + 8010f44: 2b00 cmp r3, #0 + 8010f46: d101 bne.n 8010f4c ipaddr = ip_2_ip4(IP4_ADDR_ANY); - 8010f38: 4b53 ldr r3, [pc, #332] ; (8011088 ) - 8010f3a: 60bb str r3, [r7, #8] + 8010f48: 4b53 ldr r3, [pc, #332] ; (8011098 ) + 8010f4a: 60bb str r3, [r7, #8] } if (netmask == NULL) { - 8010f3c: 687b ldr r3, [r7, #4] - 8010f3e: 2b00 cmp r3, #0 - 8010f40: d101 bne.n 8010f46 + 8010f4c: 687b ldr r3, [r7, #4] + 8010f4e: 2b00 cmp r3, #0 + 8010f50: d101 bne.n 8010f56 netmask = ip_2_ip4(IP4_ADDR_ANY); - 8010f42: 4b51 ldr r3, [pc, #324] ; (8011088 ) - 8010f44: 607b str r3, [r7, #4] + 8010f52: 4b51 ldr r3, [pc, #324] ; (8011098 ) + 8010f54: 607b str r3, [r7, #4] } if (gw == NULL) { - 8010f46: 683b ldr r3, [r7, #0] - 8010f48: 2b00 cmp r3, #0 - 8010f4a: d101 bne.n 8010f50 + 8010f56: 683b ldr r3, [r7, #0] + 8010f58: 2b00 cmp r3, #0 + 8010f5a: d101 bne.n 8010f60 gw = ip_2_ip4(IP4_ADDR_ANY); - 8010f4c: 4b4e ldr r3, [pc, #312] ; (8011088 ) - 8010f4e: 603b str r3, [r7, #0] + 8010f5c: 4b4e ldr r3, [pc, #312] ; (8011098 ) + 8010f5e: 603b str r3, [r7, #0] } /* reset new interface configuration state */ ip_addr_set_zero_ip4(&netif->ip_addr); - 8010f50: 68fb ldr r3, [r7, #12] - 8010f52: 2200 movs r2, #0 - 8010f54: 605a str r2, [r3, #4] + 8010f60: 68fb ldr r3, [r7, #12] + 8010f62: 2200 movs r2, #0 + 8010f64: 605a str r2, [r3, #4] ip_addr_set_zero_ip4(&netif->netmask); - 8010f56: 68fb ldr r3, [r7, #12] - 8010f58: 2200 movs r2, #0 - 8010f5a: 609a str r2, [r3, #8] + 8010f66: 68fb ldr r3, [r7, #12] + 8010f68: 2200 movs r2, #0 + 8010f6a: 609a str r2, [r3, #8] ip_addr_set_zero_ip4(&netif->gw); - 8010f5c: 68fb ldr r3, [r7, #12] - 8010f5e: 2200 movs r2, #0 - 8010f60: 60da str r2, [r3, #12] + 8010f6c: 68fb ldr r3, [r7, #12] + 8010f6e: 2200 movs r2, #0 + 8010f70: 60da str r2, [r3, #12] netif->output = netif_null_output_ip4; - 8010f62: 68fb ldr r3, [r7, #12] - 8010f64: 4a49 ldr r2, [pc, #292] ; (801108c ) - 8010f66: 615a str r2, [r3, #20] + 8010f72: 68fb ldr r3, [r7, #12] + 8010f74: 4a49 ldr r2, [pc, #292] ; (801109c ) + 8010f76: 615a str r2, [r3, #20] #endif /* LWIP_IPV6_ADDRESS_LIFETIMES */ } netif->output_ip6 = netif_null_output_ip6; #endif /* LWIP_IPV6 */ NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_ENABLE_ALL); netif->mtu = 0; - 8010f68: 68fb ldr r3, [r7, #12] - 8010f6a: 2200 movs r2, #0 - 8010f6c: 851a strh r2, [r3, #40] ; 0x28 + 8010f78: 68fb ldr r3, [r7, #12] + 8010f7a: 2200 movs r2, #0 + 8010f7c: 851a strh r2, [r3, #40] ; 0x28 netif->flags = 0; - 8010f6e: 68fb ldr r3, [r7, #12] - 8010f70: 2200 movs r2, #0 - 8010f72: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 8010f7e: 68fb ldr r3, [r7, #12] + 8010f80: 2200 movs r2, #0 + 8010f82: f883 2031 strb.w r2, [r3, #49] ; 0x31 #ifdef netif_get_client_data memset(netif->client_data, 0, sizeof(netif->client_data)); - 8010f76: 68fb ldr r3, [r7, #12] - 8010f78: 3324 adds r3, #36 ; 0x24 - 8010f7a: 2204 movs r2, #4 - 8010f7c: 2100 movs r1, #0 - 8010f7e: 4618 mov r0, r3 - 8010f80: f00b fb59 bl 801c636 + 8010f86: 68fb ldr r3, [r7, #12] + 8010f88: 3324 adds r3, #36 ; 0x24 + 8010f8a: 2204 movs r2, #4 + 8010f8c: 2100 movs r1, #0 + 8010f8e: 4618 mov r0, r3 + 8010f90: f00b fb59 bl 801c646 #endif /* LWIP_IPV6 */ #if LWIP_NETIF_STATUS_CALLBACK netif->status_callback = NULL; #endif /* LWIP_NETIF_STATUS_CALLBACK */ #if LWIP_NETIF_LINK_CALLBACK netif->link_callback = NULL; - 8010f84: 68fb ldr r3, [r7, #12] - 8010f86: 2200 movs r2, #0 - 8010f88: 61da str r2, [r3, #28] + 8010f94: 68fb ldr r3, [r7, #12] + 8010f96: 2200 movs r2, #0 + 8010f98: 61da str r2, [r3, #28] netif->loop_first = NULL; netif->loop_last = NULL; #endif /* ENABLE_LOOPBACK */ /* remember netif specific state information data */ netif->state = state; - 8010f8a: 68fb ldr r3, [r7, #12] - 8010f8c: 6a3a ldr r2, [r7, #32] - 8010f8e: 621a str r2, [r3, #32] + 8010f9a: 68fb ldr r3, [r7, #12] + 8010f9c: 6a3a ldr r2, [r7, #32] + 8010f9e: 621a str r2, [r3, #32] netif->num = netif_num; - 8010f90: 4b3f ldr r3, [pc, #252] ; (8011090 ) - 8010f92: 781a ldrb r2, [r3, #0] - 8010f94: 68fb ldr r3, [r7, #12] - 8010f96: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 8010fa0: 4b3f ldr r3, [pc, #252] ; (80110a0 ) + 8010fa2: 781a ldrb r2, [r3, #0] + 8010fa4: 68fb ldr r3, [r7, #12] + 8010fa6: f883 2034 strb.w r2, [r3, #52] ; 0x34 netif->input = input; - 8010f9a: 68fb ldr r3, [r7, #12] - 8010f9c: 6aba ldr r2, [r7, #40] ; 0x28 - 8010f9e: 611a str r2, [r3, #16] + 8010faa: 68fb ldr r3, [r7, #12] + 8010fac: 6aba ldr r2, [r7, #40] ; 0x28 + 8010fae: 611a str r2, [r3, #16] #if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS netif->loop_cnt_current = 0; #endif /* ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS */ #if LWIP_IPV4 netif_set_addr(netif, ipaddr, netmask, gw); - 8010fa0: 683b ldr r3, [r7, #0] - 8010fa2: 687a ldr r2, [r7, #4] - 8010fa4: 68b9 ldr r1, [r7, #8] - 8010fa6: 68f8 ldr r0, [r7, #12] - 8010fa8: f000 f914 bl 80111d4 + 8010fb0: 683b ldr r3, [r7, #0] + 8010fb2: 687a ldr r2, [r7, #4] + 8010fb4: 68b9 ldr r1, [r7, #8] + 8010fb6: 68f8 ldr r0, [r7, #12] + 8010fb8: f000 f914 bl 80111e4 #endif /* LWIP_IPV4 */ /* call user specified initialization function for netif */ if (init(netif) != ERR_OK) { - 8010fac: 6a7b ldr r3, [r7, #36] ; 0x24 - 8010fae: 68f8 ldr r0, [r7, #12] - 8010fb0: 4798 blx r3 - 8010fb2: 4603 mov r3, r0 - 8010fb4: 2b00 cmp r3, #0 - 8010fb6: d001 beq.n 8010fbc + 8010fbc: 6a7b ldr r3, [r7, #36] ; 0x24 + 8010fbe: 68f8 ldr r0, [r7, #12] + 8010fc0: 4798 blx r3 + 8010fc2: 4603 mov r3, r0 + 8010fc4: 2b00 cmp r3, #0 + 8010fc6: d001 beq.n 8010fcc return NULL; - 8010fb8: 2300 movs r3, #0 - 8010fba: e058 b.n 801106e + 8010fc8: 2300 movs r3, #0 + 8010fca: e058 b.n 801107e */ { struct netif *netif2; int num_netifs; do { if (netif->num == 255) { - 8010fbc: 68fb ldr r3, [r7, #12] - 8010fbe: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8010fc2: 2bff cmp r3, #255 ; 0xff - 8010fc4: d103 bne.n 8010fce + 8010fcc: 68fb ldr r3, [r7, #12] + 8010fce: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8010fd2: 2bff cmp r3, #255 ; 0xff + 8010fd4: d103 bne.n 8010fde netif->num = 0; - 8010fc6: 68fb ldr r3, [r7, #12] - 8010fc8: 2200 movs r2, #0 - 8010fca: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 8010fd6: 68fb ldr r3, [r7, #12] + 8010fd8: 2200 movs r2, #0 + 8010fda: f883 2034 strb.w r2, [r3, #52] ; 0x34 } num_netifs = 0; - 8010fce: 2300 movs r3, #0 - 8010fd0: 613b str r3, [r7, #16] + 8010fde: 2300 movs r3, #0 + 8010fe0: 613b str r3, [r7, #16] for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) { - 8010fd2: 4b30 ldr r3, [pc, #192] ; (8011094 ) - 8010fd4: 681b ldr r3, [r3, #0] - 8010fd6: 617b str r3, [r7, #20] - 8010fd8: e02b b.n 8011032 + 8010fe2: 4b30 ldr r3, [pc, #192] ; (80110a4 ) + 8010fe4: 681b ldr r3, [r3, #0] + 8010fe6: 617b str r3, [r7, #20] + 8010fe8: e02b b.n 8011042 LWIP_ASSERT("netif already added", netif2 != netif); - 8010fda: 697a ldr r2, [r7, #20] - 8010fdc: 68fb ldr r3, [r7, #12] - 8010fde: 429a cmp r2, r3 - 8010fe0: d106 bne.n 8010ff0 - 8010fe2: 4b25 ldr r3, [pc, #148] ; (8011078 ) - 8010fe4: f240 128b movw r2, #395 ; 0x18b - 8010fe8: 492b ldr r1, [pc, #172] ; (8011098 ) - 8010fea: 4825 ldr r0, [pc, #148] ; (8011080 ) - 8010fec: f00b fb2c bl 801c648 + 8010fea: 697a ldr r2, [r7, #20] + 8010fec: 68fb ldr r3, [r7, #12] + 8010fee: 429a cmp r2, r3 + 8010ff0: d106 bne.n 8011000 + 8010ff2: 4b25 ldr r3, [pc, #148] ; (8011088 ) + 8010ff4: f240 128b movw r2, #395 ; 0x18b + 8010ff8: 492b ldr r1, [pc, #172] ; (80110a8 ) + 8010ffa: 4825 ldr r0, [pc, #148] ; (8011090 ) + 8010ffc: f00b fb2c bl 801c658 num_netifs++; - 8010ff0: 693b ldr r3, [r7, #16] - 8010ff2: 3301 adds r3, #1 - 8010ff4: 613b str r3, [r7, #16] + 8011000: 693b ldr r3, [r7, #16] + 8011002: 3301 adds r3, #1 + 8011004: 613b str r3, [r7, #16] LWIP_ASSERT("too many netifs, max. supported number is 255", num_netifs <= 255); - 8010ff6: 693b ldr r3, [r7, #16] - 8010ff8: 2bff cmp r3, #255 ; 0xff - 8010ffa: dd06 ble.n 801100a - 8010ffc: 4b1e ldr r3, [pc, #120] ; (8011078 ) - 8010ffe: f240 128d movw r2, #397 ; 0x18d - 8011002: 4926 ldr r1, [pc, #152] ; (801109c ) - 8011004: 481e ldr r0, [pc, #120] ; (8011080 ) - 8011006: f00b fb1f bl 801c648 + 8011006: 693b ldr r3, [r7, #16] + 8011008: 2bff cmp r3, #255 ; 0xff + 801100a: dd06 ble.n 801101a + 801100c: 4b1e ldr r3, [pc, #120] ; (8011088 ) + 801100e: f240 128d movw r2, #397 ; 0x18d + 8011012: 4926 ldr r1, [pc, #152] ; (80110ac ) + 8011014: 481e ldr r0, [pc, #120] ; (8011090 ) + 8011016: f00b fb1f bl 801c658 if (netif2->num == netif->num) { - 801100a: 697b ldr r3, [r7, #20] - 801100c: f893 2034 ldrb.w r2, [r3, #52] ; 0x34 - 8011010: 68fb ldr r3, [r7, #12] - 8011012: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8011016: 429a cmp r2, r3 - 8011018: d108 bne.n 801102c + 801101a: 697b ldr r3, [r7, #20] + 801101c: f893 2034 ldrb.w r2, [r3, #52] ; 0x34 + 8011020: 68fb ldr r3, [r7, #12] + 8011022: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8011026: 429a cmp r2, r3 + 8011028: d108 bne.n 801103c netif->num++; - 801101a: 68fb ldr r3, [r7, #12] - 801101c: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8011020: 3301 adds r3, #1 - 8011022: b2da uxtb r2, r3 - 8011024: 68fb ldr r3, [r7, #12] - 8011026: f883 2034 strb.w r2, [r3, #52] ; 0x34 + 801102a: 68fb ldr r3, [r7, #12] + 801102c: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8011030: 3301 adds r3, #1 + 8011032: b2da uxtb r2, r3 + 8011034: 68fb ldr r3, [r7, #12] + 8011036: f883 2034 strb.w r2, [r3, #52] ; 0x34 break; - 801102a: e005 b.n 8011038 + 801103a: e005 b.n 8011048 for (netif2 = netif_list; netif2 != NULL; netif2 = netif2->next) { - 801102c: 697b ldr r3, [r7, #20] - 801102e: 681b ldr r3, [r3, #0] - 8011030: 617b str r3, [r7, #20] - 8011032: 697b ldr r3, [r7, #20] - 8011034: 2b00 cmp r3, #0 - 8011036: d1d0 bne.n 8010fda + 801103c: 697b ldr r3, [r7, #20] + 801103e: 681b ldr r3, [r3, #0] + 8011040: 617b str r3, [r7, #20] + 8011042: 697b ldr r3, [r7, #20] + 8011044: 2b00 cmp r3, #0 + 8011046: d1d0 bne.n 8010fea } } } while (netif2 != NULL); - 8011038: 697b ldr r3, [r7, #20] - 801103a: 2b00 cmp r3, #0 - 801103c: d1be bne.n 8010fbc + 8011048: 697b ldr r3, [r7, #20] + 801104a: 2b00 cmp r3, #0 + 801104c: d1be bne.n 8010fcc } if (netif->num == 254) { - 801103e: 68fb ldr r3, [r7, #12] - 8011040: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8011044: 2bfe cmp r3, #254 ; 0xfe - 8011046: d103 bne.n 8011050 + 801104e: 68fb ldr r3, [r7, #12] + 8011050: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8011054: 2bfe cmp r3, #254 ; 0xfe + 8011056: d103 bne.n 8011060 netif_num = 0; - 8011048: 4b11 ldr r3, [pc, #68] ; (8011090 ) - 801104a: 2200 movs r2, #0 - 801104c: 701a strb r2, [r3, #0] - 801104e: e006 b.n 801105e + 8011058: 4b11 ldr r3, [pc, #68] ; (80110a0 ) + 801105a: 2200 movs r2, #0 + 801105c: 701a strb r2, [r3, #0] + 801105e: e006 b.n 801106e } else { netif_num = (u8_t)(netif->num + 1); - 8011050: 68fb ldr r3, [r7, #12] - 8011052: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8011056: 3301 adds r3, #1 - 8011058: b2da uxtb r2, r3 - 801105a: 4b0d ldr r3, [pc, #52] ; (8011090 ) - 801105c: 701a strb r2, [r3, #0] + 8011060: 68fb ldr r3, [r7, #12] + 8011062: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8011066: 3301 adds r3, #1 + 8011068: b2da uxtb r2, r3 + 801106a: 4b0d ldr r3, [pc, #52] ; (80110a0 ) + 801106c: 701a strb r2, [r3, #0] } /* add this netif to the list */ netif->next = netif_list; - 801105e: 4b0d ldr r3, [pc, #52] ; (8011094 ) - 8011060: 681a ldr r2, [r3, #0] - 8011062: 68fb ldr r3, [r7, #12] - 8011064: 601a str r2, [r3, #0] + 801106e: 4b0d ldr r3, [pc, #52] ; (80110a4 ) + 8011070: 681a ldr r2, [r3, #0] + 8011072: 68fb ldr r3, [r7, #12] + 8011074: 601a str r2, [r3, #0] netif_list = netif; - 8011066: 4a0b ldr r2, [pc, #44] ; (8011094 ) - 8011068: 68fb ldr r3, [r7, #12] - 801106a: 6013 str r3, [r2, #0] + 8011076: 4a0b ldr r2, [pc, #44] ; (80110a4 ) + 8011078: 68fb ldr r3, [r7, #12] + 801107a: 6013 str r3, [r2, #0] #endif /* LWIP_IPV4 */ LWIP_DEBUGF(NETIF_DEBUG, ("\n")); netif_invoke_ext_callback(netif, LWIP_NSC_NETIF_ADDED, NULL); return netif; - 801106c: 68fb ldr r3, [r7, #12] -} - 801106e: 4618 mov r0, r3 - 8011070: 3718 adds r7, #24 - 8011072: 46bd mov sp, r7 - 8011074: bd80 pop {r7, pc} - 8011076: bf00 nop - 8011078: 0801dda8 .word 0x0801dda8 - 801107c: 0801de3c .word 0x0801de3c - 8011080: 0801ddf8 .word 0x0801ddf8 - 8011084: 0801de58 .word 0x0801de58 - 8011088: 080227f8 .word 0x080227f8 - 801108c: 080114b7 .word 0x080114b7 - 8011090: 2000871c .word 0x2000871c - 8011094: 2000f7e0 .word 0x2000f7e0 - 8011098: 0801de7c .word 0x0801de7c - 801109c: 0801de90 .word 0x0801de90 - -080110a0 : + 801107c: 68fb ldr r3, [r7, #12] +} + 801107e: 4618 mov r0, r3 + 8011080: 3718 adds r7, #24 + 8011082: 46bd mov sp, r7 + 8011084: bd80 pop {r7, pc} + 8011086: bf00 nop + 8011088: 0801ddb8 .word 0x0801ddb8 + 801108c: 0801de4c .word 0x0801de4c + 8011090: 0801de08 .word 0x0801de08 + 8011094: 0801de68 .word 0x0801de68 + 8011098: 08022808 .word 0x08022808 + 801109c: 080114c7 .word 0x080114c7 + 80110a0: 2000871c .word 0x2000871c + 80110a4: 2000f7e0 .word 0x2000f7e0 + 80110a8: 0801de8c .word 0x0801de8c + 80110ac: 0801dea0 .word 0x0801dea0 + +080110b0 : static void netif_do_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) { - 80110a0: b580 push {r7, lr} - 80110a2: b082 sub sp, #8 - 80110a4: af00 add r7, sp, #0 - 80110a6: 6078 str r0, [r7, #4] - 80110a8: 6039 str r1, [r7, #0] + 80110b0: b580 push {r7, lr} + 80110b2: b082 sub sp, #8 + 80110b4: af00 add r7, sp, #0 + 80110b6: 6078 str r0, [r7, #4] + 80110b8: 6039 str r1, [r7, #0] #if LWIP_TCP tcp_netif_ip_addr_changed(old_addr, new_addr); - 80110aa: 6839 ldr r1, [r7, #0] - 80110ac: 6878 ldr r0, [r7, #4] - 80110ae: f002 fb81 bl 80137b4 + 80110ba: 6839 ldr r1, [r7, #0] + 80110bc: 6878 ldr r0, [r7, #4] + 80110be: f002 fb81 bl 80137c4 #endif /* LWIP_TCP */ #if LWIP_UDP udp_netif_ip_addr_changed(old_addr, new_addr); - 80110b2: 6839 ldr r1, [r7, #0] - 80110b4: 6878 ldr r0, [r7, #4] - 80110b6: f006 ffa1 bl 8017ffc + 80110c2: 6839 ldr r1, [r7, #0] + 80110c4: 6878 ldr r0, [r7, #4] + 80110c6: f006 ffa1 bl 801800c #endif /* LWIP_UDP */ #if LWIP_RAW raw_netif_ip_addr_changed(old_addr, new_addr); #endif /* LWIP_RAW */ } - 80110ba: bf00 nop - 80110bc: 3708 adds r7, #8 - 80110be: 46bd mov sp, r7 - 80110c0: bd80 pop {r7, pc} + 80110ca: bf00 nop + 80110cc: 3708 adds r7, #8 + 80110ce: 46bd mov sp, r7 + 80110d0: bd80 pop {r7, pc} ... -080110c4 : +080110d4 : #if LWIP_IPV4 static int netif_do_set_ipaddr(struct netif *netif, const ip4_addr_t *ipaddr, ip_addr_t *old_addr) { - 80110c4: b580 push {r7, lr} - 80110c6: b086 sub sp, #24 - 80110c8: af00 add r7, sp, #0 - 80110ca: 60f8 str r0, [r7, #12] - 80110cc: 60b9 str r1, [r7, #8] - 80110ce: 607a str r2, [r7, #4] + 80110d4: b580 push {r7, lr} + 80110d6: b086 sub sp, #24 + 80110d8: af00 add r7, sp, #0 + 80110da: 60f8 str r0, [r7, #12] + 80110dc: 60b9 str r1, [r7, #8] + 80110de: 607a str r2, [r7, #4] LWIP_ASSERT("invalid pointer", ipaddr != NULL); - 80110d0: 68bb ldr r3, [r7, #8] - 80110d2: 2b00 cmp r3, #0 - 80110d4: d106 bne.n 80110e4 - 80110d6: 4b1d ldr r3, [pc, #116] ; (801114c ) - 80110d8: f240 12cb movw r2, #459 ; 0x1cb - 80110dc: 491c ldr r1, [pc, #112] ; (8011150 ) - 80110de: 481d ldr r0, [pc, #116] ; (8011154 ) - 80110e0: f00b fab2 bl 801c648 + 80110e0: 68bb ldr r3, [r7, #8] + 80110e2: 2b00 cmp r3, #0 + 80110e4: d106 bne.n 80110f4 + 80110e6: 4b1d ldr r3, [pc, #116] ; (801115c ) + 80110e8: f240 12cb movw r2, #459 ; 0x1cb + 80110ec: 491c ldr r1, [pc, #112] ; (8011160 ) + 80110ee: 481d ldr r0, [pc, #116] ; (8011164 ) + 80110f0: f00b fab2 bl 801c658 LWIP_ASSERT("invalid pointer", old_addr != NULL); - 80110e4: 687b ldr r3, [r7, #4] - 80110e6: 2b00 cmp r3, #0 - 80110e8: d106 bne.n 80110f8 - 80110ea: 4b18 ldr r3, [pc, #96] ; (801114c ) - 80110ec: f44f 72e6 mov.w r2, #460 ; 0x1cc - 80110f0: 4917 ldr r1, [pc, #92] ; (8011150 ) - 80110f2: 4818 ldr r0, [pc, #96] ; (8011154 ) - 80110f4: f00b faa8 bl 801c648 + 80110f4: 687b ldr r3, [r7, #4] + 80110f6: 2b00 cmp r3, #0 + 80110f8: d106 bne.n 8011108 + 80110fa: 4b18 ldr r3, [pc, #96] ; (801115c ) + 80110fc: f44f 72e6 mov.w r2, #460 ; 0x1cc + 8011100: 4917 ldr r1, [pc, #92] ; (8011160 ) + 8011102: 4818 ldr r0, [pc, #96] ; (8011164 ) + 8011104: f00b faa8 bl 801c658 /* address is actually being changed? */ if (ip4_addr_cmp(ipaddr, netif_ip4_addr(netif)) == 0) { - 80110f8: 68bb ldr r3, [r7, #8] - 80110fa: 681a ldr r2, [r3, #0] - 80110fc: 68fb ldr r3, [r7, #12] - 80110fe: 3304 adds r3, #4 - 8011100: 681b ldr r3, [r3, #0] - 8011102: 429a cmp r2, r3 - 8011104: d01c beq.n 8011140 + 8011108: 68bb ldr r3, [r7, #8] + 801110a: 681a ldr r2, [r3, #0] + 801110c: 68fb ldr r3, [r7, #12] + 801110e: 3304 adds r3, #4 + 8011110: 681b ldr r3, [r3, #0] + 8011112: 429a cmp r2, r3 + 8011114: d01c beq.n 8011150 ip_addr_t new_addr; *ip_2_ip4(&new_addr) = *ipaddr; - 8011106: 68bb ldr r3, [r7, #8] - 8011108: 681b ldr r3, [r3, #0] - 801110a: 617b str r3, [r7, #20] + 8011116: 68bb ldr r3, [r7, #8] + 8011118: 681b ldr r3, [r3, #0] + 801111a: 617b str r3, [r7, #20] IP_SET_TYPE_VAL(new_addr, IPADDR_TYPE_V4); ip_addr_copy(*old_addr, *netif_ip_addr4(netif)); - 801110c: 68fb ldr r3, [r7, #12] - 801110e: 3304 adds r3, #4 - 8011110: 681a ldr r2, [r3, #0] - 8011112: 687b ldr r3, [r7, #4] - 8011114: 601a str r2, [r3, #0] + 801111c: 68fb ldr r3, [r7, #12] + 801111e: 3304 adds r3, #4 + 8011120: 681a ldr r2, [r3, #0] + 8011122: 687b ldr r3, [r7, #4] + 8011124: 601a str r2, [r3, #0] LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: netif address being changed\n")); netif_do_ip_addr_changed(old_addr, &new_addr); - 8011116: f107 0314 add.w r3, r7, #20 - 801111a: 4619 mov r1, r3 - 801111c: 6878 ldr r0, [r7, #4] - 801111e: f7ff ffbf bl 80110a0 + 8011126: f107 0314 add.w r3, r7, #20 + 801112a: 4619 mov r1, r3 + 801112c: 6878 ldr r0, [r7, #4] + 801112e: f7ff ffbf bl 80110b0 mib2_remove_ip4(netif); mib2_remove_route_ip4(0, netif); /* set new IP address to netif */ ip4_addr_set(ip_2_ip4(&netif->ip_addr), ipaddr); - 8011122: 68bb ldr r3, [r7, #8] - 8011124: 2b00 cmp r3, #0 - 8011126: d002 beq.n 801112e - 8011128: 68bb ldr r3, [r7, #8] - 801112a: 681b ldr r3, [r3, #0] - 801112c: e000 b.n 8011130 - 801112e: 2300 movs r3, #0 - 8011130: 68fa ldr r2, [r7, #12] - 8011132: 6053 str r3, [r2, #4] + 8011132: 68bb ldr r3, [r7, #8] + 8011134: 2b00 cmp r3, #0 + 8011136: d002 beq.n 801113e + 8011138: 68bb ldr r3, [r7, #8] + 801113a: 681b ldr r3, [r3, #0] + 801113c: e000 b.n 8011140 + 801113e: 2300 movs r3, #0 + 8011140: 68fa ldr r2, [r7, #12] + 8011142: 6053 str r3, [r2, #4] IP_SET_TYPE_VAL(netif->ip_addr, IPADDR_TYPE_V4); mib2_add_ip4(netif); mib2_add_route_ip4(0, netif); netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4); - 8011134: 2101 movs r1, #1 - 8011136: 68f8 ldr r0, [r7, #12] - 8011138: f000 f8d2 bl 80112e0 + 8011144: 2101 movs r1, #1 + 8011146: 68f8 ldr r0, [r7, #12] + 8011148: f000 f8d2 bl 80112f0 NETIF_STATUS_CALLBACK(netif); return 1; /* address changed */ - 801113c: 2301 movs r3, #1 - 801113e: e000 b.n 8011142 + 801114c: 2301 movs r3, #1 + 801114e: e000 b.n 8011152 } return 0; /* address unchanged */ - 8011140: 2300 movs r3, #0 + 8011150: 2300 movs r3, #0 } - 8011142: 4618 mov r0, r3 - 8011144: 3718 adds r7, #24 - 8011146: 46bd mov sp, r7 - 8011148: bd80 pop {r7, pc} - 801114a: bf00 nop - 801114c: 0801dda8 .word 0x0801dda8 - 8011150: 0801dec0 .word 0x0801dec0 - 8011154: 0801ddf8 .word 0x0801ddf8 + 8011152: 4618 mov r0, r3 + 8011154: 3718 adds r7, #24 + 8011156: 46bd mov sp, r7 + 8011158: bd80 pop {r7, pc} + 801115a: bf00 nop + 801115c: 0801ddb8 .word 0x0801ddb8 + 8011160: 0801ded0 .word 0x0801ded0 + 8011164: 0801de08 .word 0x0801de08 -08011158 : +08011168 : } } static int netif_do_set_netmask(struct netif *netif, const ip4_addr_t *netmask, ip_addr_t *old_nm) { - 8011158: b480 push {r7} - 801115a: b085 sub sp, #20 - 801115c: af00 add r7, sp, #0 - 801115e: 60f8 str r0, [r7, #12] - 8011160: 60b9 str r1, [r7, #8] - 8011162: 607a str r2, [r7, #4] + 8011168: b480 push {r7} + 801116a: b085 sub sp, #20 + 801116c: af00 add r7, sp, #0 + 801116e: 60f8 str r0, [r7, #12] + 8011170: 60b9 str r1, [r7, #8] + 8011172: 607a str r2, [r7, #4] /* address is actually being changed? */ if (ip4_addr_cmp(netmask, netif_ip4_netmask(netif)) == 0) { - 8011164: 68bb ldr r3, [r7, #8] - 8011166: 681a ldr r2, [r3, #0] - 8011168: 68fb ldr r3, [r7, #12] - 801116a: 3308 adds r3, #8 - 801116c: 681b ldr r3, [r3, #0] - 801116e: 429a cmp r2, r3 - 8011170: d00a beq.n 8011188 + 8011174: 68bb ldr r3, [r7, #8] + 8011176: 681a ldr r2, [r3, #0] + 8011178: 68fb ldr r3, [r7, #12] + 801117a: 3308 adds r3, #8 + 801117c: 681b ldr r3, [r3, #0] + 801117e: 429a cmp r2, r3 + 8011180: d00a beq.n 8011198 #else LWIP_UNUSED_ARG(old_nm); #endif mib2_remove_route_ip4(0, netif); /* set new netmask to netif */ ip4_addr_set(ip_2_ip4(&netif->netmask), netmask); - 8011172: 68bb ldr r3, [r7, #8] - 8011174: 2b00 cmp r3, #0 - 8011176: d002 beq.n 801117e - 8011178: 68bb ldr r3, [r7, #8] - 801117a: 681b ldr r3, [r3, #0] - 801117c: e000 b.n 8011180 - 801117e: 2300 movs r3, #0 - 8011180: 68fa ldr r2, [r7, #12] - 8011182: 6093 str r3, [r2, #8] + 8011182: 68bb ldr r3, [r7, #8] + 8011184: 2b00 cmp r3, #0 + 8011186: d002 beq.n 801118e + 8011188: 68bb ldr r3, [r7, #8] + 801118a: 681b ldr r3, [r3, #0] + 801118c: e000 b.n 8011190 + 801118e: 2300 movs r3, #0 + 8011190: 68fa ldr r2, [r7, #12] + 8011192: 6093 str r3, [r2, #8] netif->name[0], netif->name[1], ip4_addr1_16(netif_ip4_netmask(netif)), ip4_addr2_16(netif_ip4_netmask(netif)), ip4_addr3_16(netif_ip4_netmask(netif)), ip4_addr4_16(netif_ip4_netmask(netif)))); return 1; /* netmask changed */ - 8011184: 2301 movs r3, #1 - 8011186: e000 b.n 801118a + 8011194: 2301 movs r3, #1 + 8011196: e000 b.n 801119a } return 0; /* netmask unchanged */ - 8011188: 2300 movs r3, #0 + 8011198: 2300 movs r3, #0 } - 801118a: 4618 mov r0, r3 - 801118c: 3714 adds r7, #20 - 801118e: 46bd mov sp, r7 - 8011190: f85d 7b04 ldr.w r7, [sp], #4 - 8011194: 4770 bx lr + 801119a: 4618 mov r0, r3 + 801119c: 3714 adds r7, #20 + 801119e: 46bd mov sp, r7 + 80111a0: f85d 7b04 ldr.w r7, [sp], #4 + 80111a4: 4770 bx lr -08011196 : +080111a6 : } } static int netif_do_set_gw(struct netif *netif, const ip4_addr_t *gw, ip_addr_t *old_gw) { - 8011196: b480 push {r7} - 8011198: b085 sub sp, #20 - 801119a: af00 add r7, sp, #0 - 801119c: 60f8 str r0, [r7, #12] - 801119e: 60b9 str r1, [r7, #8] - 80111a0: 607a str r2, [r7, #4] + 80111a6: b480 push {r7} + 80111a8: b085 sub sp, #20 + 80111aa: af00 add r7, sp, #0 + 80111ac: 60f8 str r0, [r7, #12] + 80111ae: 60b9 str r1, [r7, #8] + 80111b0: 607a str r2, [r7, #4] /* address is actually being changed? */ if (ip4_addr_cmp(gw, netif_ip4_gw(netif)) == 0) { - 80111a2: 68bb ldr r3, [r7, #8] - 80111a4: 681a ldr r2, [r3, #0] - 80111a6: 68fb ldr r3, [r7, #12] - 80111a8: 330c adds r3, #12 - 80111aa: 681b ldr r3, [r3, #0] - 80111ac: 429a cmp r2, r3 - 80111ae: d00a beq.n 80111c6 + 80111b2: 68bb ldr r3, [r7, #8] + 80111b4: 681a ldr r2, [r3, #0] + 80111b6: 68fb ldr r3, [r7, #12] + 80111b8: 330c adds r3, #12 + 80111ba: 681b ldr r3, [r3, #0] + 80111bc: 429a cmp r2, r3 + 80111be: d00a beq.n 80111d6 ip_addr_copy(*old_gw, *netif_ip_gw4(netif)); #else LWIP_UNUSED_ARG(old_gw); #endif ip4_addr_set(ip_2_ip4(&netif->gw), gw); - 80111b0: 68bb ldr r3, [r7, #8] - 80111b2: 2b00 cmp r3, #0 - 80111b4: d002 beq.n 80111bc - 80111b6: 68bb ldr r3, [r7, #8] - 80111b8: 681b ldr r3, [r3, #0] - 80111ba: e000 b.n 80111be - 80111bc: 2300 movs r3, #0 - 80111be: 68fa ldr r2, [r7, #12] - 80111c0: 60d3 str r3, [r2, #12] + 80111c0: 68bb ldr r3, [r7, #8] + 80111c2: 2b00 cmp r3, #0 + 80111c4: d002 beq.n 80111cc + 80111c6: 68bb ldr r3, [r7, #8] + 80111c8: 681b ldr r3, [r3, #0] + 80111ca: e000 b.n 80111ce + 80111cc: 2300 movs r3, #0 + 80111ce: 68fa ldr r2, [r7, #12] + 80111d0: 60d3 str r3, [r2, #12] netif->name[0], netif->name[1], ip4_addr1_16(netif_ip4_gw(netif)), ip4_addr2_16(netif_ip4_gw(netif)), ip4_addr3_16(netif_ip4_gw(netif)), ip4_addr4_16(netif_ip4_gw(netif)))); return 1; /* gateway changed */ - 80111c2: 2301 movs r3, #1 - 80111c4: e000 b.n 80111c8 + 80111d2: 2301 movs r3, #1 + 80111d4: e000 b.n 80111d8 } return 0; /* gateway unchanged */ - 80111c6: 2300 movs r3, #0 + 80111d6: 2300 movs r3, #0 } - 80111c8: 4618 mov r0, r3 - 80111ca: 3714 adds r7, #20 - 80111cc: 46bd mov sp, r7 - 80111ce: f85d 7b04 ldr.w r7, [sp], #4 - 80111d2: 4770 bx lr + 80111d8: 4618 mov r0, r3 + 80111da: 3714 adds r7, #20 + 80111dc: 46bd mov sp, r7 + 80111de: f85d 7b04 ldr.w r7, [sp], #4 + 80111e2: 4770 bx lr -080111d4 : +080111e4 : * @param gw the new default gateway */ void netif_set_addr(struct netif *netif, const ip4_addr_t *ipaddr, const ip4_addr_t *netmask, const ip4_addr_t *gw) { - 80111d4: b580 push {r7, lr} - 80111d6: b088 sub sp, #32 - 80111d8: af00 add r7, sp, #0 - 80111da: 60f8 str r0, [r7, #12] - 80111dc: 60b9 str r1, [r7, #8] - 80111de: 607a str r2, [r7, #4] - 80111e0: 603b str r3, [r7, #0] + 80111e4: b580 push {r7, lr} + 80111e6: b088 sub sp, #32 + 80111e8: af00 add r7, sp, #0 + 80111ea: 60f8 str r0, [r7, #12] + 80111ec: 60b9 str r1, [r7, #8] + 80111ee: 607a str r2, [r7, #4] + 80111f0: 603b str r3, [r7, #0] ip_addr_t old_nm_val; ip_addr_t old_gw_val; ip_addr_t *old_nm = &old_nm_val; ip_addr_t *old_gw = &old_gw_val; #else ip_addr_t *old_nm = NULL; - 80111e2: 2300 movs r3, #0 - 80111e4: 61fb str r3, [r7, #28] + 80111f2: 2300 movs r3, #0 + 80111f4: 61fb str r3, [r7, #28] ip_addr_t *old_gw = NULL; - 80111e6: 2300 movs r3, #0 - 80111e8: 61bb str r3, [r7, #24] + 80111f6: 2300 movs r3, #0 + 80111f8: 61bb str r3, [r7, #24] int remove; LWIP_ASSERT_CORE_LOCKED(); /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ if (ipaddr == NULL) { - 80111ea: 68bb ldr r3, [r7, #8] - 80111ec: 2b00 cmp r3, #0 - 80111ee: d101 bne.n 80111f4 + 80111fa: 68bb ldr r3, [r7, #8] + 80111fc: 2b00 cmp r3, #0 + 80111fe: d101 bne.n 8011204 ipaddr = IP4_ADDR_ANY4; - 80111f0: 4b1c ldr r3, [pc, #112] ; (8011264 ) - 80111f2: 60bb str r3, [r7, #8] + 8011200: 4b1c ldr r3, [pc, #112] ; (8011274 ) + 8011202: 60bb str r3, [r7, #8] } if (netmask == NULL) { - 80111f4: 687b ldr r3, [r7, #4] - 80111f6: 2b00 cmp r3, #0 - 80111f8: d101 bne.n 80111fe + 8011204: 687b ldr r3, [r7, #4] + 8011206: 2b00 cmp r3, #0 + 8011208: d101 bne.n 801120e netmask = IP4_ADDR_ANY4; - 80111fa: 4b1a ldr r3, [pc, #104] ; (8011264 ) - 80111fc: 607b str r3, [r7, #4] + 801120a: 4b1a ldr r3, [pc, #104] ; (8011274 ) + 801120c: 607b str r3, [r7, #4] } if (gw == NULL) { - 80111fe: 683b ldr r3, [r7, #0] - 8011200: 2b00 cmp r3, #0 - 8011202: d101 bne.n 8011208 + 801120e: 683b ldr r3, [r7, #0] + 8011210: 2b00 cmp r3, #0 + 8011212: d101 bne.n 8011218 gw = IP4_ADDR_ANY4; - 8011204: 4b17 ldr r3, [pc, #92] ; (8011264 ) - 8011206: 603b str r3, [r7, #0] + 8011214: 4b17 ldr r3, [pc, #92] ; (8011274 ) + 8011216: 603b str r3, [r7, #0] } remove = ip4_addr_isany(ipaddr); - 8011208: 68bb ldr r3, [r7, #8] - 801120a: 2b00 cmp r3, #0 - 801120c: d003 beq.n 8011216 - 801120e: 68bb ldr r3, [r7, #8] - 8011210: 681b ldr r3, [r3, #0] - 8011212: 2b00 cmp r3, #0 - 8011214: d101 bne.n 801121a - 8011216: 2301 movs r3, #1 - 8011218: e000 b.n 801121c - 801121a: 2300 movs r3, #0 - 801121c: 617b str r3, [r7, #20] + 8011218: 68bb ldr r3, [r7, #8] + 801121a: 2b00 cmp r3, #0 + 801121c: d003 beq.n 8011226 + 801121e: 68bb ldr r3, [r7, #8] + 8011220: 681b ldr r3, [r3, #0] + 8011222: 2b00 cmp r3, #0 + 8011224: d101 bne.n 801122a + 8011226: 2301 movs r3, #1 + 8011228: e000 b.n 801122c + 801122a: 2300 movs r3, #0 + 801122c: 617b str r3, [r7, #20] if (remove) { - 801121e: 697b ldr r3, [r7, #20] - 8011220: 2b00 cmp r3, #0 - 8011222: d006 beq.n 8011232 + 801122e: 697b ldr r3, [r7, #20] + 8011230: 2b00 cmp r3, #0 + 8011232: d006 beq.n 8011242 /* when removing an address, we have to remove it *before* changing netmask/gw to ensure that tcp RST segment can be sent correctly */ if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) { - 8011224: f107 0310 add.w r3, r7, #16 - 8011228: 461a mov r2, r3 - 801122a: 68b9 ldr r1, [r7, #8] - 801122c: 68f8 ldr r0, [r7, #12] - 801122e: f7ff ff49 bl 80110c4 + 8011234: f107 0310 add.w r3, r7, #16 + 8011238: 461a mov r2, r3 + 801123a: 68b9 ldr r1, [r7, #8] + 801123c: 68f8 ldr r0, [r7, #12] + 801123e: f7ff ff49 bl 80110d4 change_reason |= LWIP_NSC_IPV4_ADDRESS_CHANGED; cb_args.ipv4_changed.old_address = &old_addr; #endif } } if (netif_do_set_netmask(netif, netmask, old_nm)) { - 8011232: 69fa ldr r2, [r7, #28] - 8011234: 6879 ldr r1, [r7, #4] - 8011236: 68f8 ldr r0, [r7, #12] - 8011238: f7ff ff8e bl 8011158 + 8011242: 69fa ldr r2, [r7, #28] + 8011244: 6879 ldr r1, [r7, #4] + 8011246: 68f8 ldr r0, [r7, #12] + 8011248: f7ff ff8e bl 8011168 #if LWIP_NETIF_EXT_STATUS_CALLBACK change_reason |= LWIP_NSC_IPV4_NETMASK_CHANGED; cb_args.ipv4_changed.old_netmask = old_nm; #endif } if (netif_do_set_gw(netif, gw, old_gw)) { - 801123c: 69ba ldr r2, [r7, #24] - 801123e: 6839 ldr r1, [r7, #0] - 8011240: 68f8 ldr r0, [r7, #12] - 8011242: f7ff ffa8 bl 8011196 + 801124c: 69ba ldr r2, [r7, #24] + 801124e: 6839 ldr r1, [r7, #0] + 8011250: 68f8 ldr r0, [r7, #12] + 8011252: f7ff ffa8 bl 80111a6 #if LWIP_NETIF_EXT_STATUS_CALLBACK change_reason |= LWIP_NSC_IPV4_GATEWAY_CHANGED; cb_args.ipv4_changed.old_gw = old_gw; #endif } if (!remove) { - 8011246: 697b ldr r3, [r7, #20] - 8011248: 2b00 cmp r3, #0 - 801124a: d106 bne.n 801125a + 8011256: 697b ldr r3, [r7, #20] + 8011258: 2b00 cmp r3, #0 + 801125a: d106 bne.n 801126a /* set ipaddr last to ensure netmask/gw have been set when status callback is called */ if (netif_do_set_ipaddr(netif, ipaddr, &old_addr)) { - 801124c: f107 0310 add.w r3, r7, #16 - 8011250: 461a mov r2, r3 - 8011252: 68b9 ldr r1, [r7, #8] - 8011254: 68f8 ldr r0, [r7, #12] - 8011256: f7ff ff35 bl 80110c4 + 801125c: f107 0310 add.w r3, r7, #16 + 8011260: 461a mov r2, r3 + 8011262: 68b9 ldr r1, [r7, #8] + 8011264: 68f8 ldr r0, [r7, #12] + 8011266: f7ff ff35 bl 80110d4 if (change_reason != LWIP_NSC_NONE) { change_reason |= LWIP_NSC_IPV4_SETTINGS_CHANGED; netif_invoke_ext_callback(netif, change_reason, &cb_args); } #endif } - 801125a: bf00 nop - 801125c: 3720 adds r7, #32 - 801125e: 46bd mov sp, r7 - 8011260: bd80 pop {r7, pc} - 8011262: bf00 nop - 8011264: 080227f8 .word 0x080227f8 + 801126a: bf00 nop + 801126c: 3720 adds r7, #32 + 801126e: 46bd mov sp, r7 + 8011270: bd80 pop {r7, pc} + 8011272: bf00 nop + 8011274: 08022808 .word 0x08022808 -08011268 : +08011278 : * * @param netif the default network interface */ void netif_set_default(struct netif *netif) { - 8011268: b480 push {r7} - 801126a: b083 sub sp, #12 - 801126c: af00 add r7, sp, #0 - 801126e: 6078 str r0, [r7, #4] + 8011278: b480 push {r7} + 801127a: b083 sub sp, #12 + 801127c: af00 add r7, sp, #0 + 801127e: 6078 str r0, [r7, #4] mib2_remove_route_ip4(1, netif); } else { /* install default route */ mib2_add_route_ip4(1, netif); } netif_default = netif; - 8011270: 4a04 ldr r2, [pc, #16] ; (8011284 ) - 8011272: 687b ldr r3, [r7, #4] - 8011274: 6013 str r3, [r2, #0] + 8011280: 4a04 ldr r2, [pc, #16] ; (8011294 ) + 8011282: 687b ldr r3, [r7, #4] + 8011284: 6013 str r3, [r2, #0] LWIP_DEBUGF(NETIF_DEBUG, ("netif: setting default interface %c%c\n", netif ? netif->name[0] : '\'', netif ? netif->name[1] : '\'')); } - 8011276: bf00 nop - 8011278: 370c adds r7, #12 - 801127a: 46bd mov sp, r7 - 801127c: f85d 7b04 ldr.w r7, [sp], #4 - 8011280: 4770 bx lr - 8011282: bf00 nop - 8011284: 2000f7e4 .word 0x2000f7e4 + 8011286: bf00 nop + 8011288: 370c adds r7, #12 + 801128a: 46bd mov sp, r7 + 801128c: f85d 7b04 ldr.w r7, [sp], #4 + 8011290: 4770 bx lr + 8011292: bf00 nop + 8011294: 2000f7e4 .word 0x2000f7e4 -08011288 : +08011298 : * Bring an interface up, available for processing * traffic. */ void netif_set_up(struct netif *netif) { - 8011288: b580 push {r7, lr} - 801128a: b082 sub sp, #8 - 801128c: af00 add r7, sp, #0 - 801128e: 6078 str r0, [r7, #4] + 8011298: b580 push {r7, lr} + 801129a: b082 sub sp, #8 + 801129c: af00 add r7, sp, #0 + 801129e: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif_set_up: invalid netif", netif != NULL, return); - 8011290: 687b ldr r3, [r7, #4] - 8011292: 2b00 cmp r3, #0 - 8011294: d107 bne.n 80112a6 - 8011296: 4b0f ldr r3, [pc, #60] ; (80112d4 ) - 8011298: f44f 7254 mov.w r2, #848 ; 0x350 - 801129c: 490e ldr r1, [pc, #56] ; (80112d8 ) - 801129e: 480f ldr r0, [pc, #60] ; (80112dc ) - 80112a0: f00b f9d2 bl 801c648 - 80112a4: e013 b.n 80112ce + 80112a0: 687b ldr r3, [r7, #4] + 80112a2: 2b00 cmp r3, #0 + 80112a4: d107 bne.n 80112b6 + 80112a6: 4b0f ldr r3, [pc, #60] ; (80112e4 ) + 80112a8: f44f 7254 mov.w r2, #848 ; 0x350 + 80112ac: 490e ldr r1, [pc, #56] ; (80112e8 ) + 80112ae: 480f ldr r0, [pc, #60] ; (80112ec ) + 80112b0: f00b f9d2 bl 801c658 + 80112b4: e013 b.n 80112de if (!(netif->flags & NETIF_FLAG_UP)) { - 80112a6: 687b ldr r3, [r7, #4] - 80112a8: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80112ac: f003 0301 and.w r3, r3, #1 - 80112b0: 2b00 cmp r3, #0 - 80112b2: d10c bne.n 80112ce + 80112b6: 687b ldr r3, [r7, #4] + 80112b8: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80112bc: f003 0301 and.w r3, r3, #1 + 80112c0: 2b00 cmp r3, #0 + 80112c2: d10c bne.n 80112de netif_set_flags(netif, NETIF_FLAG_UP); - 80112b4: 687b ldr r3, [r7, #4] - 80112b6: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80112ba: f043 0301 orr.w r3, r3, #1 - 80112be: b2da uxtb r2, r3 - 80112c0: 687b ldr r3, [r7, #4] - 80112c2: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 80112c4: 687b ldr r3, [r7, #4] + 80112c6: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80112ca: f043 0301 orr.w r3, r3, #1 + 80112ce: b2da uxtb r2, r3 + 80112d0: 687b ldr r3, [r7, #4] + 80112d2: f883 2031 strb.w r2, [r3, #49] ; 0x31 args.status_changed.state = 1; netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args); } #endif netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6); - 80112c6: 2103 movs r1, #3 - 80112c8: 6878 ldr r0, [r7, #4] - 80112ca: f000 f809 bl 80112e0 + 80112d6: 2103 movs r1, #3 + 80112d8: 6878 ldr r0, [r7, #4] + 80112da: f000 f809 bl 80112f0 #if LWIP_IPV6 nd6_restart_netif(netif); #endif /* LWIP_IPV6 */ } } - 80112ce: 3708 adds r7, #8 - 80112d0: 46bd mov sp, r7 - 80112d2: bd80 pop {r7, pc} - 80112d4: 0801dda8 .word 0x0801dda8 - 80112d8: 0801df30 .word 0x0801df30 - 80112dc: 0801ddf8 .word 0x0801ddf8 + 80112de: 3708 adds r7, #8 + 80112e0: 46bd mov sp, r7 + 80112e2: bd80 pop {r7, pc} + 80112e4: 0801ddb8 .word 0x0801ddb8 + 80112e8: 0801df40 .word 0x0801df40 + 80112ec: 0801de08 .word 0x0801de08 -080112e0 : +080112f0 : /** Send ARP/IGMP/MLD/RS events, e.g. on link-up/netif-up or addr-change */ static void netif_issue_reports(struct netif *netif, u8_t report_type) { - 80112e0: b580 push {r7, lr} - 80112e2: b082 sub sp, #8 - 80112e4: af00 add r7, sp, #0 - 80112e6: 6078 str r0, [r7, #4] - 80112e8: 460b mov r3, r1 - 80112ea: 70fb strb r3, [r7, #3] + 80112f0: b580 push {r7, lr} + 80112f2: b082 sub sp, #8 + 80112f4: af00 add r7, sp, #0 + 80112f6: 6078 str r0, [r7, #4] + 80112f8: 460b mov r3, r1 + 80112fa: 70fb strb r3, [r7, #3] LWIP_ASSERT("netif_issue_reports: invalid netif", netif != NULL); - 80112ec: 687b ldr r3, [r7, #4] - 80112ee: 2b00 cmp r3, #0 - 80112f0: d106 bne.n 8011300 - 80112f2: 4b18 ldr r3, [pc, #96] ; (8011354 ) - 80112f4: f240 326d movw r2, #877 ; 0x36d - 80112f8: 4917 ldr r1, [pc, #92] ; (8011358 ) - 80112fa: 4818 ldr r0, [pc, #96] ; (801135c ) - 80112fc: f00b f9a4 bl 801c648 + 80112fc: 687b ldr r3, [r7, #4] + 80112fe: 2b00 cmp r3, #0 + 8011300: d106 bne.n 8011310 + 8011302: 4b18 ldr r3, [pc, #96] ; (8011364 ) + 8011304: f240 326d movw r2, #877 ; 0x36d + 8011308: 4917 ldr r1, [pc, #92] ; (8011368 ) + 801130a: 4818 ldr r0, [pc, #96] ; (801136c ) + 801130c: f00b f9a4 bl 801c658 /* Only send reports when both link and admin states are up */ if (!(netif->flags & NETIF_FLAG_LINK_UP) || - 8011300: 687b ldr r3, [r7, #4] - 8011302: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8011306: f003 0304 and.w r3, r3, #4 - 801130a: 2b00 cmp r3, #0 - 801130c: d01e beq.n 801134c + 8011310: 687b ldr r3, [r7, #4] + 8011312: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8011316: f003 0304 and.w r3, r3, #4 + 801131a: 2b00 cmp r3, #0 + 801131c: d01e beq.n 801135c !(netif->flags & NETIF_FLAG_UP)) { - 801130e: 687b ldr r3, [r7, #4] - 8011310: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8011314: f003 0301 and.w r3, r3, #1 + 801131e: 687b ldr r3, [r7, #4] + 8011320: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8011324: f003 0301 and.w r3, r3, #1 if (!(netif->flags & NETIF_FLAG_LINK_UP) || - 8011318: 2b00 cmp r3, #0 - 801131a: d017 beq.n 801134c + 8011328: 2b00 cmp r3, #0 + 801132a: d017 beq.n 801135c return; } #if LWIP_IPV4 if ((report_type & NETIF_REPORT_TYPE_IPV4) && - 801131c: 78fb ldrb r3, [r7, #3] - 801131e: f003 0301 and.w r3, r3, #1 - 8011322: 2b00 cmp r3, #0 - 8011324: d013 beq.n 801134e + 801132c: 78fb ldrb r3, [r7, #3] + 801132e: f003 0301 and.w r3, r3, #1 + 8011332: 2b00 cmp r3, #0 + 8011334: d013 beq.n 801135e !ip4_addr_isany_val(*netif_ip4_addr(netif))) { - 8011326: 687b ldr r3, [r7, #4] - 8011328: 3304 adds r3, #4 - 801132a: 681b ldr r3, [r3, #0] + 8011336: 687b ldr r3, [r7, #4] + 8011338: 3304 adds r3, #4 + 801133a: 681b ldr r3, [r3, #0] if ((report_type & NETIF_REPORT_TYPE_IPV4) && - 801132c: 2b00 cmp r3, #0 - 801132e: d00e beq.n 801134e + 801133c: 2b00 cmp r3, #0 + 801133e: d00e beq.n 801135e #if LWIP_ARP /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ if (netif->flags & (NETIF_FLAG_ETHARP)) { - 8011330: 687b ldr r3, [r7, #4] - 8011332: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8011336: f003 0308 and.w r3, r3, #8 - 801133a: 2b00 cmp r3, #0 - 801133c: d007 beq.n 801134e + 8011340: 687b ldr r3, [r7, #4] + 8011342: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8011346: f003 0308 and.w r3, r3, #8 + 801134a: 2b00 cmp r3, #0 + 801134c: d007 beq.n 801135e etharp_gratuitous(netif); - 801133e: 687b ldr r3, [r7, #4] - 8011340: 3304 adds r3, #4 - 8011342: 4619 mov r1, r3 - 8011344: 6878 ldr r0, [r7, #4] - 8011346: f009 fc6b bl 801ac20 - 801134a: e000 b.n 801134e + 801134e: 687b ldr r3, [r7, #4] + 8011350: 3304 adds r3, #4 + 8011352: 4619 mov r1, r3 + 8011354: 6878 ldr r0, [r7, #4] + 8011356: f009 fc6b bl 801ac30 + 801135a: e000 b.n 801135e return; - 801134c: bf00 nop + 801135c: bf00 nop /* send mld memberships */ mld6_report_groups(netif); #endif /* LWIP_IPV6_MLD */ } #endif /* LWIP_IPV6 */ } - 801134e: 3708 adds r7, #8 - 8011350: 46bd mov sp, r7 - 8011352: bd80 pop {r7, pc} - 8011354: 0801dda8 .word 0x0801dda8 - 8011358: 0801df4c .word 0x0801df4c - 801135c: 0801ddf8 .word 0x0801ddf8 + 801135e: 3708 adds r7, #8 + 8011360: 46bd mov sp, r7 + 8011362: bd80 pop {r7, pc} + 8011364: 0801ddb8 .word 0x0801ddb8 + 8011368: 0801df5c .word 0x0801df5c + 801136c: 0801de08 .word 0x0801de08 -08011360 : +08011370 : * @ingroup netif * Bring an interface down, disabling any traffic processing. */ void netif_set_down(struct netif *netif) { - 8011360: b580 push {r7, lr} - 8011362: b082 sub sp, #8 - 8011364: af00 add r7, sp, #0 - 8011366: 6078 str r0, [r7, #4] + 8011370: b580 push {r7, lr} + 8011372: b082 sub sp, #8 + 8011374: af00 add r7, sp, #0 + 8011376: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif_set_down: invalid netif", netif != NULL, return); - 8011368: 687b ldr r3, [r7, #4] - 801136a: 2b00 cmp r3, #0 - 801136c: d107 bne.n 801137e - 801136e: 4b12 ldr r3, [pc, #72] ; (80113b8 ) - 8011370: f240 329b movw r2, #923 ; 0x39b - 8011374: 4911 ldr r1, [pc, #68] ; (80113bc ) - 8011376: 4812 ldr r0, [pc, #72] ; (80113c0 ) - 8011378: f00b f966 bl 801c648 - 801137c: e019 b.n 80113b2 + 8011378: 687b ldr r3, [r7, #4] + 801137a: 2b00 cmp r3, #0 + 801137c: d107 bne.n 801138e + 801137e: 4b12 ldr r3, [pc, #72] ; (80113c8 ) + 8011380: f240 329b movw r2, #923 ; 0x39b + 8011384: 4911 ldr r1, [pc, #68] ; (80113cc ) + 8011386: 4812 ldr r0, [pc, #72] ; (80113d0 ) + 8011388: f00b f966 bl 801c658 + 801138c: e019 b.n 80113c2 if (netif->flags & NETIF_FLAG_UP) { - 801137e: 687b ldr r3, [r7, #4] - 8011380: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8011384: f003 0301 and.w r3, r3, #1 - 8011388: 2b00 cmp r3, #0 - 801138a: d012 beq.n 80113b2 + 801138e: 687b ldr r3, [r7, #4] + 8011390: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8011394: f003 0301 and.w r3, r3, #1 + 8011398: 2b00 cmp r3, #0 + 801139a: d012 beq.n 80113c2 args.status_changed.state = 0; netif_invoke_ext_callback(netif, LWIP_NSC_STATUS_CHANGED, &args); } #endif netif_clear_flags(netif, NETIF_FLAG_UP); - 801138c: 687b ldr r3, [r7, #4] - 801138e: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8011392: f023 0301 bic.w r3, r3, #1 - 8011396: b2da uxtb r2, r3 - 8011398: 687b ldr r3, [r7, #4] - 801139a: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 801139c: 687b ldr r3, [r7, #4] + 801139e: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80113a2: f023 0301 bic.w r3, r3, #1 + 80113a6: b2da uxtb r2, r3 + 80113a8: 687b ldr r3, [r7, #4] + 80113aa: f883 2031 strb.w r2, [r3, #49] ; 0x31 MIB2_COPY_SYSUPTIME_TO(&netif->ts); #if LWIP_IPV4 && LWIP_ARP if (netif->flags & NETIF_FLAG_ETHARP) { - 801139e: 687b ldr r3, [r7, #4] - 80113a0: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80113a4: f003 0308 and.w r3, r3, #8 - 80113a8: 2b00 cmp r3, #0 - 80113aa: d002 beq.n 80113b2 + 80113ae: 687b ldr r3, [r7, #4] + 80113b0: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80113b4: f003 0308 and.w r3, r3, #8 + 80113b8: 2b00 cmp r3, #0 + 80113ba: d002 beq.n 80113c2 etharp_cleanup_netif(netif); - 80113ac: 6878 ldr r0, [r7, #4] - 80113ae: f008 fff1 bl 801a394 + 80113bc: 6878 ldr r0, [r7, #4] + 80113be: f008 fff1 bl 801a3a4 nd6_cleanup_netif(netif); #endif /* LWIP_IPV6 */ NETIF_STATUS_CALLBACK(netif); } } - 80113b2: 3708 adds r7, #8 - 80113b4: 46bd mov sp, r7 - 80113b6: bd80 pop {r7, pc} - 80113b8: 0801dda8 .word 0x0801dda8 - 80113bc: 0801df70 .word 0x0801df70 - 80113c0: 0801ddf8 .word 0x0801ddf8 + 80113c2: 3708 adds r7, #8 + 80113c4: 46bd mov sp, r7 + 80113c6: bd80 pop {r7, pc} + 80113c8: 0801ddb8 .word 0x0801ddb8 + 80113cc: 0801df80 .word 0x0801df80 + 80113d0: 0801de08 .word 0x0801de08 -080113c4 : +080113d4 : * @ingroup netif * Called by a driver when its link goes up */ void netif_set_link_up(struct netif *netif) { - 80113c4: b580 push {r7, lr} - 80113c6: b082 sub sp, #8 - 80113c8: af00 add r7, sp, #0 - 80113ca: 6078 str r0, [r7, #4] + 80113d4: b580 push {r7, lr} + 80113d6: b082 sub sp, #8 + 80113d8: af00 add r7, sp, #0 + 80113da: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif_set_link_up: invalid netif", netif != NULL, return); - 80113cc: 687b ldr r3, [r7, #4] - 80113ce: 2b00 cmp r3, #0 - 80113d0: d107 bne.n 80113e2 - 80113d2: 4b15 ldr r3, [pc, #84] ; (8011428 ) - 80113d4: f44f 7278 mov.w r2, #992 ; 0x3e0 - 80113d8: 4914 ldr r1, [pc, #80] ; (801142c ) - 80113da: 4815 ldr r0, [pc, #84] ; (8011430 ) - 80113dc: f00b f934 bl 801c648 - 80113e0: e01e b.n 8011420 + 80113dc: 687b ldr r3, [r7, #4] + 80113de: 2b00 cmp r3, #0 + 80113e0: d107 bne.n 80113f2 + 80113e2: 4b15 ldr r3, [pc, #84] ; (8011438 ) + 80113e4: f44f 7278 mov.w r2, #992 ; 0x3e0 + 80113e8: 4914 ldr r1, [pc, #80] ; (801143c ) + 80113ea: 4815 ldr r0, [pc, #84] ; (8011440 ) + 80113ec: f00b f934 bl 801c658 + 80113f0: e01e b.n 8011430 if (!(netif->flags & NETIF_FLAG_LINK_UP)) { - 80113e2: 687b ldr r3, [r7, #4] - 80113e4: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80113e8: f003 0304 and.w r3, r3, #4 - 80113ec: 2b00 cmp r3, #0 - 80113ee: d117 bne.n 8011420 + 80113f2: 687b ldr r3, [r7, #4] + 80113f4: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 80113f8: f003 0304 and.w r3, r3, #4 + 80113fc: 2b00 cmp r3, #0 + 80113fe: d117 bne.n 8011430 netif_set_flags(netif, NETIF_FLAG_LINK_UP); - 80113f0: 687b ldr r3, [r7, #4] - 80113f2: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 80113f6: f043 0304 orr.w r3, r3, #4 - 80113fa: b2da uxtb r2, r3 - 80113fc: 687b ldr r3, [r7, #4] - 80113fe: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 8011400: 687b ldr r3, [r7, #4] + 8011402: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8011406: f043 0304 orr.w r3, r3, #4 + 801140a: b2da uxtb r2, r3 + 801140c: 687b ldr r3, [r7, #4] + 801140e: f883 2031 strb.w r2, [r3, #49] ; 0x31 #if LWIP_DHCP dhcp_network_changed(netif); - 8011402: 6878 ldr r0, [r7, #4] - 8011404: f007 fa26 bl 8018854 + 8011412: 6878 ldr r0, [r7, #4] + 8011414: f007 fa26 bl 8018864 #if LWIP_AUTOIP autoip_network_changed(netif); #endif /* LWIP_AUTOIP */ netif_issue_reports(netif, NETIF_REPORT_TYPE_IPV4 | NETIF_REPORT_TYPE_IPV6); - 8011408: 2103 movs r1, #3 - 801140a: 6878 ldr r0, [r7, #4] - 801140c: f7ff ff68 bl 80112e0 + 8011418: 2103 movs r1, #3 + 801141a: 6878 ldr r0, [r7, #4] + 801141c: f7ff ff68 bl 80112f0 #if LWIP_IPV6 nd6_restart_netif(netif); #endif /* LWIP_IPV6 */ NETIF_LINK_CALLBACK(netif); - 8011410: 687b ldr r3, [r7, #4] - 8011412: 69db ldr r3, [r3, #28] - 8011414: 2b00 cmp r3, #0 - 8011416: d003 beq.n 8011420 - 8011418: 687b ldr r3, [r7, #4] - 801141a: 69db ldr r3, [r3, #28] - 801141c: 6878 ldr r0, [r7, #4] - 801141e: 4798 blx r3 + 8011420: 687b ldr r3, [r7, #4] + 8011422: 69db ldr r3, [r3, #28] + 8011424: 2b00 cmp r3, #0 + 8011426: d003 beq.n 8011430 + 8011428: 687b ldr r3, [r7, #4] + 801142a: 69db ldr r3, [r3, #28] + 801142c: 6878 ldr r0, [r7, #4] + 801142e: 4798 blx r3 args.link_changed.state = 1; netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args); } #endif } } - 8011420: 3708 adds r7, #8 - 8011422: 46bd mov sp, r7 - 8011424: bd80 pop {r7, pc} - 8011426: bf00 nop - 8011428: 0801dda8 .word 0x0801dda8 - 801142c: 0801df90 .word 0x0801df90 - 8011430: 0801ddf8 .word 0x0801ddf8 + 8011430: 3708 adds r7, #8 + 8011432: 46bd mov sp, r7 + 8011434: bd80 pop {r7, pc} + 8011436: bf00 nop + 8011438: 0801ddb8 .word 0x0801ddb8 + 801143c: 0801dfa0 .word 0x0801dfa0 + 8011440: 0801de08 .word 0x0801de08 -08011434 : +08011444 : * @ingroup netif * Called by a driver when its link goes down */ void netif_set_link_down(struct netif *netif) { - 8011434: b580 push {r7, lr} - 8011436: b082 sub sp, #8 - 8011438: af00 add r7, sp, #0 - 801143a: 6078 str r0, [r7, #4] + 8011444: b580 push {r7, lr} + 8011446: b082 sub sp, #8 + 8011448: af00 add r7, sp, #0 + 801144a: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif_set_link_down: invalid netif", netif != NULL, return); - 801143c: 687b ldr r3, [r7, #4] - 801143e: 2b00 cmp r3, #0 - 8011440: d107 bne.n 8011452 - 8011442: 4b11 ldr r3, [pc, #68] ; (8011488 ) - 8011444: f240 4206 movw r2, #1030 ; 0x406 - 8011448: 4910 ldr r1, [pc, #64] ; (801148c ) - 801144a: 4811 ldr r0, [pc, #68] ; (8011490 ) - 801144c: f00b f8fc bl 801c648 - 8011450: e017 b.n 8011482 + 801144c: 687b ldr r3, [r7, #4] + 801144e: 2b00 cmp r3, #0 + 8011450: d107 bne.n 8011462 + 8011452: 4b11 ldr r3, [pc, #68] ; (8011498 ) + 8011454: f240 4206 movw r2, #1030 ; 0x406 + 8011458: 4910 ldr r1, [pc, #64] ; (801149c ) + 801145a: 4811 ldr r0, [pc, #68] ; (80114a0 ) + 801145c: f00b f8fc bl 801c658 + 8011460: e017 b.n 8011492 if (netif->flags & NETIF_FLAG_LINK_UP) { - 8011452: 687b ldr r3, [r7, #4] - 8011454: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8011458: f003 0304 and.w r3, r3, #4 - 801145c: 2b00 cmp r3, #0 - 801145e: d010 beq.n 8011482 + 8011462: 687b ldr r3, [r7, #4] + 8011464: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8011468: f003 0304 and.w r3, r3, #4 + 801146c: 2b00 cmp r3, #0 + 801146e: d010 beq.n 8011492 netif_clear_flags(netif, NETIF_FLAG_LINK_UP); - 8011460: 687b ldr r3, [r7, #4] - 8011462: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8011466: f023 0304 bic.w r3, r3, #4 - 801146a: b2da uxtb r2, r3 - 801146c: 687b ldr r3, [r7, #4] - 801146e: f883 2031 strb.w r2, [r3, #49] ; 0x31 + 8011470: 687b ldr r3, [r7, #4] + 8011472: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8011476: f023 0304 bic.w r3, r3, #4 + 801147a: b2da uxtb r2, r3 + 801147c: 687b ldr r3, [r7, #4] + 801147e: f883 2031 strb.w r2, [r3, #49] ; 0x31 NETIF_LINK_CALLBACK(netif); - 8011472: 687b ldr r3, [r7, #4] - 8011474: 69db ldr r3, [r3, #28] - 8011476: 2b00 cmp r3, #0 - 8011478: d003 beq.n 8011482 - 801147a: 687b ldr r3, [r7, #4] - 801147c: 69db ldr r3, [r3, #28] - 801147e: 6878 ldr r0, [r7, #4] - 8011480: 4798 blx r3 + 8011482: 687b ldr r3, [r7, #4] + 8011484: 69db ldr r3, [r3, #28] + 8011486: 2b00 cmp r3, #0 + 8011488: d003 beq.n 8011492 + 801148a: 687b ldr r3, [r7, #4] + 801148c: 69db ldr r3, [r3, #28] + 801148e: 6878 ldr r0, [r7, #4] + 8011490: 4798 blx r3 args.link_changed.state = 0; netif_invoke_ext_callback(netif, LWIP_NSC_LINK_CHANGED, &args); } #endif } } - 8011482: 3708 adds r7, #8 - 8011484: 46bd mov sp, r7 - 8011486: bd80 pop {r7, pc} - 8011488: 0801dda8 .word 0x0801dda8 - 801148c: 0801dfb4 .word 0x0801dfb4 - 8011490: 0801ddf8 .word 0x0801ddf8 + 8011492: 3708 adds r7, #8 + 8011494: 46bd mov sp, r7 + 8011496: bd80 pop {r7, pc} + 8011498: 0801ddb8 .word 0x0801ddb8 + 801149c: 0801dfc4 .word 0x0801dfc4 + 80114a0: 0801de08 .word 0x0801de08 -08011494 : +080114a4 : * @ingroup netif * Set callback to be called when link is brought up/down */ void netif_set_link_callback(struct netif *netif, netif_status_callback_fn link_callback) { - 8011494: b480 push {r7} - 8011496: b083 sub sp, #12 - 8011498: af00 add r7, sp, #0 - 801149a: 6078 str r0, [r7, #4] - 801149c: 6039 str r1, [r7, #0] + 80114a4: b480 push {r7} + 80114a6: b083 sub sp, #12 + 80114a8: af00 add r7, sp, #0 + 80114aa: 6078 str r0, [r7, #4] + 80114ac: 6039 str r1, [r7, #0] LWIP_ASSERT_CORE_LOCKED(); if (netif) { - 801149e: 687b ldr r3, [r7, #4] - 80114a0: 2b00 cmp r3, #0 - 80114a2: d002 beq.n 80114aa + 80114ae: 687b ldr r3, [r7, #4] + 80114b0: 2b00 cmp r3, #0 + 80114b2: d002 beq.n 80114ba netif->link_callback = link_callback; - 80114a4: 687b ldr r3, [r7, #4] - 80114a6: 683a ldr r2, [r7, #0] - 80114a8: 61da str r2, [r3, #28] + 80114b4: 687b ldr r3, [r7, #4] + 80114b6: 683a ldr r2, [r7, #0] + 80114b8: 61da str r2, [r3, #28] } } - 80114aa: bf00 nop - 80114ac: 370c adds r7, #12 - 80114ae: 46bd mov sp, r7 - 80114b0: f85d 7b04 ldr.w r7, [sp], #4 - 80114b4: 4770 bx lr + 80114ba: bf00 nop + 80114bc: 370c adds r7, #12 + 80114be: 46bd mov sp, r7 + 80114c0: f85d 7b04 ldr.w r7, [sp], #4 + 80114c4: 4770 bx lr -080114b6 : +080114c6 : #if LWIP_IPV4 /** Dummy IPv4 output function for netifs not supporting IPv4 */ static err_t netif_null_output_ip4(struct netif *netif, struct pbuf *p, const ip4_addr_t *ipaddr) { - 80114b6: b480 push {r7} - 80114b8: b085 sub sp, #20 - 80114ba: af00 add r7, sp, #0 - 80114bc: 60f8 str r0, [r7, #12] - 80114be: 60b9 str r1, [r7, #8] - 80114c0: 607a str r2, [r7, #4] + 80114c6: b480 push {r7} + 80114c8: b085 sub sp, #20 + 80114ca: af00 add r7, sp, #0 + 80114cc: 60f8 str r0, [r7, #12] + 80114ce: 60b9 str r1, [r7, #8] + 80114d0: 607a str r2, [r7, #4] LWIP_UNUSED_ARG(netif); LWIP_UNUSED_ARG(p); LWIP_UNUSED_ARG(ipaddr); return ERR_IF; - 80114c2: f06f 030b mvn.w r3, #11 + 80114d2: f06f 030b mvn.w r3, #11 } - 80114c6: 4618 mov r0, r3 - 80114c8: 3714 adds r7, #20 - 80114ca: 46bd mov sp, r7 - 80114cc: f85d 7b04 ldr.w r7, [sp], #4 - 80114d0: 4770 bx lr + 80114d6: 4618 mov r0, r3 + 80114d8: 3714 adds r7, #20 + 80114da: 46bd mov sp, r7 + 80114dc: f85d 7b04 ldr.w r7, [sp], #4 + 80114e0: 4770 bx lr ... -080114d4 : +080114e4 : * * @param idx index of netif to find */ struct netif * netif_get_by_index(u8_t idx) { - 80114d4: b480 push {r7} - 80114d6: b085 sub sp, #20 - 80114d8: af00 add r7, sp, #0 - 80114da: 4603 mov r3, r0 - 80114dc: 71fb strb r3, [r7, #7] + 80114e4: b480 push {r7} + 80114e6: b085 sub sp, #20 + 80114e8: af00 add r7, sp, #0 + 80114ea: 4603 mov r3, r0 + 80114ec: 71fb strb r3, [r7, #7] struct netif *netif; LWIP_ASSERT_CORE_LOCKED(); if (idx != NETIF_NO_INDEX) { - 80114de: 79fb ldrb r3, [r7, #7] - 80114e0: 2b00 cmp r3, #0 - 80114e2: d013 beq.n 801150c + 80114ee: 79fb ldrb r3, [r7, #7] + 80114f0: 2b00 cmp r3, #0 + 80114f2: d013 beq.n 801151c NETIF_FOREACH(netif) { - 80114e4: 4b0d ldr r3, [pc, #52] ; (801151c ) - 80114e6: 681b ldr r3, [r3, #0] - 80114e8: 60fb str r3, [r7, #12] - 80114ea: e00c b.n 8011506 + 80114f4: 4b0d ldr r3, [pc, #52] ; (801152c ) + 80114f6: 681b ldr r3, [r3, #0] + 80114f8: 60fb str r3, [r7, #12] + 80114fa: e00c b.n 8011516 if (idx == netif_get_index(netif)) { - 80114ec: 68fb ldr r3, [r7, #12] - 80114ee: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 80114f2: 3301 adds r3, #1 - 80114f4: b2db uxtb r3, r3 - 80114f6: 79fa ldrb r2, [r7, #7] - 80114f8: 429a cmp r2, r3 - 80114fa: d101 bne.n 8011500 - return netif; /* found! */ 80114fc: 68fb ldr r3, [r7, #12] - 80114fe: e006 b.n 801150e + 80114fe: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8011502: 3301 adds r3, #1 + 8011504: b2db uxtb r3, r3 + 8011506: 79fa ldrb r2, [r7, #7] + 8011508: 429a cmp r2, r3 + 801150a: d101 bne.n 8011510 + return netif; /* found! */ + 801150c: 68fb ldr r3, [r7, #12] + 801150e: e006 b.n 801151e NETIF_FOREACH(netif) { - 8011500: 68fb ldr r3, [r7, #12] - 8011502: 681b ldr r3, [r3, #0] - 8011504: 60fb str r3, [r7, #12] - 8011506: 68fb ldr r3, [r7, #12] - 8011508: 2b00 cmp r3, #0 - 801150a: d1ef bne.n 80114ec + 8011510: 68fb ldr r3, [r7, #12] + 8011512: 681b ldr r3, [r3, #0] + 8011514: 60fb str r3, [r7, #12] + 8011516: 68fb ldr r3, [r7, #12] + 8011518: 2b00 cmp r3, #0 + 801151a: d1ef bne.n 80114fc } } } return NULL; - 801150c: 2300 movs r3, #0 + 801151c: 2300 movs r3, #0 } - 801150e: 4618 mov r0, r3 - 8011510: 3714 adds r7, #20 - 8011512: 46bd mov sp, r7 - 8011514: f85d 7b04 ldr.w r7, [sp], #4 - 8011518: 4770 bx lr - 801151a: bf00 nop - 801151c: 2000f7e0 .word 0x2000f7e0 + 801151e: 4618 mov r0, r3 + 8011520: 3714 adds r7, #20 + 8011522: 46bd mov sp, r7 + 8011524: f85d 7b04 ldr.w r7, [sp], #4 + 8011528: 4770 bx lr + 801152a: bf00 nop + 801152c: 2000f7e0 .word 0x2000f7e0 -08011520 : +08011530 : #if !NO_SYS static #endif /* !NO_SYS */ void pbuf_free_ooseq(void) { - 8011520: b580 push {r7, lr} - 8011522: b082 sub sp, #8 - 8011524: af00 add r7, sp, #0 + 8011530: b580 push {r7, lr} + 8011532: b082 sub sp, #8 + 8011534: af00 add r7, sp, #0 struct tcp_pcb *pcb; SYS_ARCH_SET(pbuf_free_ooseq_pending, 0); - 8011526: f00b f811 bl 801c54c - 801152a: 6038 str r0, [r7, #0] - 801152c: 4b0d ldr r3, [pc, #52] ; (8011564 ) - 801152e: 2200 movs r2, #0 - 8011530: 701a strb r2, [r3, #0] - 8011532: 6838 ldr r0, [r7, #0] - 8011534: f00b f818 bl 801c568 + 8011536: f00b f811 bl 801c55c + 801153a: 6038 str r0, [r7, #0] + 801153c: 4b0d ldr r3, [pc, #52] ; (8011574 ) + 801153e: 2200 movs r2, #0 + 8011540: 701a strb r2, [r3, #0] + 8011542: 6838 ldr r0, [r7, #0] + 8011544: f00b f818 bl 801c578 for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { - 8011538: 4b0b ldr r3, [pc, #44] ; (8011568 ) - 801153a: 681b ldr r3, [r3, #0] - 801153c: 607b str r3, [r7, #4] - 801153e: e00a b.n 8011556 + 8011548: 4b0b ldr r3, [pc, #44] ; (8011578 ) + 801154a: 681b ldr r3, [r3, #0] + 801154c: 607b str r3, [r7, #4] + 801154e: e00a b.n 8011566 if (pcb->ooseq != NULL) { - 8011540: 687b ldr r3, [r7, #4] - 8011542: 6f5b ldr r3, [r3, #116] ; 0x74 - 8011544: 2b00 cmp r3, #0 - 8011546: d003 beq.n 8011550 + 8011550: 687b ldr r3, [r7, #4] + 8011552: 6f5b ldr r3, [r3, #116] ; 0x74 + 8011554: 2b00 cmp r3, #0 + 8011556: d003 beq.n 8011560 /** Free the ooseq pbufs of one PCB only */ LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free_ooseq: freeing out-of-sequence pbufs\n")); tcp_free_ooseq(pcb); - 8011548: 6878 ldr r0, [r7, #4] - 801154a: f002 f971 bl 8013830 + 8011558: 6878 ldr r0, [r7, #4] + 801155a: f002 f971 bl 8013840 return; - 801154e: e005 b.n 801155c + 801155e: e005 b.n 801156c for (pcb = tcp_active_pcbs; NULL != pcb; pcb = pcb->next) { - 8011550: 687b ldr r3, [r7, #4] - 8011552: 68db ldr r3, [r3, #12] - 8011554: 607b str r3, [r7, #4] - 8011556: 687b ldr r3, [r7, #4] - 8011558: 2b00 cmp r3, #0 - 801155a: d1f1 bne.n 8011540 + 8011560: 687b ldr r3, [r7, #4] + 8011562: 68db ldr r3, [r3, #12] + 8011564: 607b str r3, [r7, #4] + 8011566: 687b ldr r3, [r7, #4] + 8011568: 2b00 cmp r3, #0 + 801156a: d1f1 bne.n 8011550 } } } - 801155c: 3708 adds r7, #8 - 801155e: 46bd mov sp, r7 - 8011560: bd80 pop {r7, pc} - 8011562: bf00 nop - 8011564: 2000f7e8 .word 0x2000f7e8 - 8011568: 2000f7f0 .word 0x2000f7f0 + 801156c: 3708 adds r7, #8 + 801156e: 46bd mov sp, r7 + 8011570: bd80 pop {r7, pc} + 8011572: bf00 nop + 8011574: 2000f7e8 .word 0x2000f7e8 + 8011578: 2000f7f0 .word 0x2000f7f0 -0801156c : +0801157c : /** * Just a callback function for tcpip_callback() that calls pbuf_free_ooseq(). */ static void pbuf_free_ooseq_callback(void *arg) { - 801156c: b580 push {r7, lr} - 801156e: b082 sub sp, #8 - 8011570: af00 add r7, sp, #0 - 8011572: 6078 str r0, [r7, #4] + 801157c: b580 push {r7, lr} + 801157e: b082 sub sp, #8 + 8011580: af00 add r7, sp, #0 + 8011582: 6078 str r0, [r7, #4] LWIP_UNUSED_ARG(arg); pbuf_free_ooseq(); - 8011574: f7ff ffd4 bl 8011520 + 8011584: f7ff ffd4 bl 8011530 } - 8011578: bf00 nop - 801157a: 3708 adds r7, #8 - 801157c: 46bd mov sp, r7 - 801157e: bd80 pop {r7, pc} + 8011588: bf00 nop + 801158a: 3708 adds r7, #8 + 801158c: 46bd mov sp, r7 + 801158e: bd80 pop {r7, pc} -08011580 : +08011590 : #endif /* !NO_SYS */ /** Queue a call to pbuf_free_ooseq if not already queued. */ static void pbuf_pool_is_empty(void) { - 8011580: b580 push {r7, lr} - 8011582: b082 sub sp, #8 - 8011584: af00 add r7, sp, #0 + 8011590: b580 push {r7, lr} + 8011592: b082 sub sp, #8 + 8011594: af00 add r7, sp, #0 #ifndef PBUF_POOL_FREE_OOSEQ_QUEUE_CALL SYS_ARCH_SET(pbuf_free_ooseq_pending, 1); #else /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */ u8_t queued; SYS_ARCH_DECL_PROTECT(old_level); SYS_ARCH_PROTECT(old_level); - 8011586: f00a ffe1 bl 801c54c - 801158a: 6078 str r0, [r7, #4] + 8011596: f00a ffe1 bl 801c55c + 801159a: 6078 str r0, [r7, #4] queued = pbuf_free_ooseq_pending; - 801158c: 4b0f ldr r3, [pc, #60] ; (80115cc ) - 801158e: 781b ldrb r3, [r3, #0] - 8011590: 70fb strb r3, [r7, #3] + 801159c: 4b0f ldr r3, [pc, #60] ; (80115dc ) + 801159e: 781b ldrb r3, [r3, #0] + 80115a0: 70fb strb r3, [r7, #3] pbuf_free_ooseq_pending = 1; - 8011592: 4b0e ldr r3, [pc, #56] ; (80115cc ) - 8011594: 2201 movs r2, #1 - 8011596: 701a strb r2, [r3, #0] + 80115a2: 4b0e ldr r3, [pc, #56] ; (80115dc ) + 80115a4: 2201 movs r2, #1 + 80115a6: 701a strb r2, [r3, #0] SYS_ARCH_UNPROTECT(old_level); - 8011598: 6878 ldr r0, [r7, #4] - 801159a: f00a ffe5 bl 801c568 + 80115a8: 6878 ldr r0, [r7, #4] + 80115aa: f00a ffe5 bl 801c578 if (!queued) { - 801159e: 78fb ldrb r3, [r7, #3] - 80115a0: 2b00 cmp r3, #0 - 80115a2: d10f bne.n 80115c4 + 80115ae: 78fb ldrb r3, [r7, #3] + 80115b0: 2b00 cmp r3, #0 + 80115b2: d10f bne.n 80115d4 /* queue a call to pbuf_free_ooseq if not already queued */ PBUF_POOL_FREE_OOSEQ_QUEUE_CALL(); - 80115a4: 2100 movs r1, #0 - 80115a6: 480a ldr r0, [pc, #40] ; (80115d0 ) - 80115a8: f7fe fee0 bl 801036c - 80115ac: 4603 mov r3, r0 - 80115ae: 2b00 cmp r3, #0 - 80115b0: d008 beq.n 80115c4 - 80115b2: f00a ffcb bl 801c54c - 80115b6: 6078 str r0, [r7, #4] - 80115b8: 4b04 ldr r3, [pc, #16] ; (80115cc ) - 80115ba: 2200 movs r2, #0 - 80115bc: 701a strb r2, [r3, #0] - 80115be: 6878 ldr r0, [r7, #4] - 80115c0: f00a ffd2 bl 801c568 + 80115b4: 2100 movs r1, #0 + 80115b6: 480a ldr r0, [pc, #40] ; (80115e0 ) + 80115b8: f7fe fee0 bl 801037c + 80115bc: 4603 mov r3, r0 + 80115be: 2b00 cmp r3, #0 + 80115c0: d008 beq.n 80115d4 + 80115c2: f00a ffcb bl 801c55c + 80115c6: 6078 str r0, [r7, #4] + 80115c8: 4b04 ldr r3, [pc, #16] ; (80115dc ) + 80115ca: 2200 movs r2, #0 + 80115cc: 701a strb r2, [r3, #0] + 80115ce: 6878 ldr r0, [r7, #4] + 80115d0: f00a ffd2 bl 801c578 } #endif /* PBUF_POOL_FREE_OOSEQ_QUEUE_CALL */ } - 80115c4: bf00 nop - 80115c6: 3708 adds r7, #8 - 80115c8: 46bd mov sp, r7 - 80115ca: bd80 pop {r7, pc} - 80115cc: 2000f7e8 .word 0x2000f7e8 - 80115d0: 0801156d .word 0x0801156d + 80115d4: bf00 nop + 80115d6: 3708 adds r7, #8 + 80115d8: 46bd mov sp, r7 + 80115da: bd80 pop {r7, pc} + 80115dc: 2000f7e8 .word 0x2000f7e8 + 80115e0: 0801157d .word 0x0801157d -080115d4 : +080115e4 : #endif /* !LWIP_TCP || !TCP_QUEUE_OOSEQ || !PBUF_POOL_FREE_OOSEQ */ /* Initialize members of struct pbuf after allocation */ static void pbuf_init_alloced_pbuf(struct pbuf *p, void *payload, u16_t tot_len, u16_t len, pbuf_type type, u8_t flags) { - 80115d4: b480 push {r7} - 80115d6: b085 sub sp, #20 - 80115d8: af00 add r7, sp, #0 - 80115da: 60f8 str r0, [r7, #12] - 80115dc: 60b9 str r1, [r7, #8] - 80115de: 4611 mov r1, r2 - 80115e0: 461a mov r2, r3 - 80115e2: 460b mov r3, r1 - 80115e4: 80fb strh r3, [r7, #6] - 80115e6: 4613 mov r3, r2 - 80115e8: 80bb strh r3, [r7, #4] + 80115e4: b480 push {r7} + 80115e6: b085 sub sp, #20 + 80115e8: af00 add r7, sp, #0 + 80115ea: 60f8 str r0, [r7, #12] + 80115ec: 60b9 str r1, [r7, #8] + 80115ee: 4611 mov r1, r2 + 80115f0: 461a mov r2, r3 + 80115f2: 460b mov r3, r1 + 80115f4: 80fb strh r3, [r7, #6] + 80115f6: 4613 mov r3, r2 + 80115f8: 80bb strh r3, [r7, #4] p->next = NULL; - 80115ea: 68fb ldr r3, [r7, #12] - 80115ec: 2200 movs r2, #0 - 80115ee: 601a str r2, [r3, #0] + 80115fa: 68fb ldr r3, [r7, #12] + 80115fc: 2200 movs r2, #0 + 80115fe: 601a str r2, [r3, #0] p->payload = payload; - 80115f0: 68fb ldr r3, [r7, #12] - 80115f2: 68ba ldr r2, [r7, #8] - 80115f4: 605a str r2, [r3, #4] + 8011600: 68fb ldr r3, [r7, #12] + 8011602: 68ba ldr r2, [r7, #8] + 8011604: 605a str r2, [r3, #4] p->tot_len = tot_len; - 80115f6: 68fb ldr r3, [r7, #12] - 80115f8: 88fa ldrh r2, [r7, #6] - 80115fa: 811a strh r2, [r3, #8] + 8011606: 68fb ldr r3, [r7, #12] + 8011608: 88fa ldrh r2, [r7, #6] + 801160a: 811a strh r2, [r3, #8] p->len = len; - 80115fc: 68fb ldr r3, [r7, #12] - 80115fe: 88ba ldrh r2, [r7, #4] - 8011600: 815a strh r2, [r3, #10] + 801160c: 68fb ldr r3, [r7, #12] + 801160e: 88ba ldrh r2, [r7, #4] + 8011610: 815a strh r2, [r3, #10] p->type_internal = (u8_t)type; - 8011602: 8b3b ldrh r3, [r7, #24] - 8011604: b2da uxtb r2, r3 - 8011606: 68fb ldr r3, [r7, #12] - 8011608: 731a strb r2, [r3, #12] + 8011612: 8b3b ldrh r3, [r7, #24] + 8011614: b2da uxtb r2, r3 + 8011616: 68fb ldr r3, [r7, #12] + 8011618: 731a strb r2, [r3, #12] p->flags = flags; - 801160a: 68fb ldr r3, [r7, #12] - 801160c: 7f3a ldrb r2, [r7, #28] - 801160e: 735a strb r2, [r3, #13] + 801161a: 68fb ldr r3, [r7, #12] + 801161c: 7f3a ldrb r2, [r7, #28] + 801161e: 735a strb r2, [r3, #13] p->ref = 1; - 8011610: 68fb ldr r3, [r7, #12] - 8011612: 2201 movs r2, #1 - 8011614: 739a strb r2, [r3, #14] + 8011620: 68fb ldr r3, [r7, #12] + 8011622: 2201 movs r2, #1 + 8011624: 739a strb r2, [r3, #14] p->if_idx = NETIF_NO_INDEX; - 8011616: 68fb ldr r3, [r7, #12] - 8011618: 2200 movs r2, #0 - 801161a: 73da strb r2, [r3, #15] + 8011626: 68fb ldr r3, [r7, #12] + 8011628: 2200 movs r2, #0 + 801162a: 73da strb r2, [r3, #15] } - 801161c: bf00 nop - 801161e: 3714 adds r7, #20 - 8011620: 46bd mov sp, r7 - 8011622: f85d 7b04 ldr.w r7, [sp], #4 - 8011626: 4770 bx lr + 801162c: bf00 nop + 801162e: 3714 adds r7, #20 + 8011630: 46bd mov sp, r7 + 8011632: f85d 7b04 ldr.w r7, [sp], #4 + 8011636: 4770 bx lr -08011628 : +08011638 : * @return the allocated pbuf. If multiple pbufs where allocated, this * is the first pbuf of a pbuf chain. */ struct pbuf * pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) { - 8011628: b580 push {r7, lr} - 801162a: b08c sub sp, #48 ; 0x30 - 801162c: af02 add r7, sp, #8 - 801162e: 4603 mov r3, r0 - 8011630: 71fb strb r3, [r7, #7] - 8011632: 460b mov r3, r1 - 8011634: 80bb strh r3, [r7, #4] - 8011636: 4613 mov r3, r2 - 8011638: 807b strh r3, [r7, #2] + 8011638: b580 push {r7, lr} + 801163a: b08c sub sp, #48 ; 0x30 + 801163c: af02 add r7, sp, #8 + 801163e: 4603 mov r3, r0 + 8011640: 71fb strb r3, [r7, #7] + 8011642: 460b mov r3, r1 + 8011644: 80bb strh r3, [r7, #4] + 8011646: 4613 mov r3, r2 + 8011648: 807b strh r3, [r7, #2] struct pbuf *p; u16_t offset = (u16_t)layer; - 801163a: 79fb ldrb r3, [r7, #7] - 801163c: 847b strh r3, [r7, #34] ; 0x22 + 801164a: 79fb ldrb r3, [r7, #7] + 801164c: 847b strh r3, [r7, #34] ; 0x22 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F")\n", length)); switch (type) { - 801163e: 887b ldrh r3, [r7, #2] - 8011640: 2b41 cmp r3, #65 ; 0x41 - 8011642: d00b beq.n 801165c - 8011644: 2b41 cmp r3, #65 ; 0x41 - 8011646: dc02 bgt.n 801164e - 8011648: 2b01 cmp r3, #1 - 801164a: d007 beq.n 801165c - 801164c: e0c2 b.n 80117d4 - 801164e: f5b3 7fc1 cmp.w r3, #386 ; 0x182 - 8011652: d00b beq.n 801166c - 8011654: f5b3 7f20 cmp.w r3, #640 ; 0x280 - 8011658: d070 beq.n 801173c - 801165a: e0bb b.n 80117d4 + 801164e: 887b ldrh r3, [r7, #2] + 8011650: 2b41 cmp r3, #65 ; 0x41 + 8011652: d00b beq.n 801166c + 8011654: 2b41 cmp r3, #65 ; 0x41 + 8011656: dc02 bgt.n 801165e + 8011658: 2b01 cmp r3, #1 + 801165a: d007 beq.n 801166c + 801165c: e0c2 b.n 80117e4 + 801165e: f5b3 7fc1 cmp.w r3, #386 ; 0x182 + 8011662: d00b beq.n 801167c + 8011664: f5b3 7f20 cmp.w r3, #640 ; 0x280 + 8011668: d070 beq.n 801174c + 801166a: e0bb b.n 80117e4 case PBUF_REF: /* fall through */ case PBUF_ROM: p = pbuf_alloc_reference(NULL, length, type); - 801165c: 887a ldrh r2, [r7, #2] - 801165e: 88bb ldrh r3, [r7, #4] - 8011660: 4619 mov r1, r3 - 8011662: 2000 movs r0, #0 - 8011664: f000 f8d2 bl 801180c - 8011668: 6278 str r0, [r7, #36] ; 0x24 + 801166c: 887a ldrh r2, [r7, #2] + 801166e: 88bb ldrh r3, [r7, #4] + 8011670: 4619 mov r1, r3 + 8011672: 2000 movs r0, #0 + 8011674: f000 f8d2 bl 801181c + 8011678: 6278 str r0, [r7, #36] ; 0x24 break; - 801166a: e0bd b.n 80117e8 + 801167a: e0bd b.n 80117f8 case PBUF_POOL: { struct pbuf *q, *last; u16_t rem_len; /* remaining length */ p = NULL; - 801166c: 2300 movs r3, #0 - 801166e: 627b str r3, [r7, #36] ; 0x24 + 801167c: 2300 movs r3, #0 + 801167e: 627b str r3, [r7, #36] ; 0x24 last = NULL; - 8011670: 2300 movs r3, #0 - 8011672: 61fb str r3, [r7, #28] + 8011680: 2300 movs r3, #0 + 8011682: 61fb str r3, [r7, #28] rem_len = length; - 8011674: 88bb ldrh r3, [r7, #4] - 8011676: 837b strh r3, [r7, #26] + 8011684: 88bb ldrh r3, [r7, #4] + 8011686: 837b strh r3, [r7, #26] do { u16_t qlen; q = (struct pbuf *)memp_malloc(MEMP_PBUF_POOL); - 8011678: 200c movs r0, #12 - 801167a: f7ff fbb7 bl 8010dec - 801167e: 6138 str r0, [r7, #16] + 8011688: 200c movs r0, #12 + 801168a: f7ff fbb7 bl 8010dfc + 801168e: 6138 str r0, [r7, #16] if (q == NULL) { - 8011680: 693b ldr r3, [r7, #16] - 8011682: 2b00 cmp r3, #0 - 8011684: d109 bne.n 801169a + 8011690: 693b ldr r3, [r7, #16] + 8011692: 2b00 cmp r3, #0 + 8011694: d109 bne.n 80116aa PBUF_POOL_IS_EMPTY(); - 8011686: f7ff ff7b bl 8011580 + 8011696: f7ff ff7b bl 8011590 /* free chain so far allocated */ if (p) { - 801168a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801168c: 2b00 cmp r3, #0 - 801168e: d002 beq.n 8011696 + 801169a: 6a7b ldr r3, [r7, #36] ; 0x24 + 801169c: 2b00 cmp r3, #0 + 801169e: d002 beq.n 80116a6 pbuf_free(p); - 8011690: 6a78 ldr r0, [r7, #36] ; 0x24 - 8011692: f000 faa9 bl 8011be8 + 80116a0: 6a78 ldr r0, [r7, #36] ; 0x24 + 80116a2: f000 faa9 bl 8011bf8 } /* bail out unsuccessfully */ return NULL; - 8011696: 2300 movs r3, #0 - 8011698: e0a7 b.n 80117ea + 80116a6: 2300 movs r3, #0 + 80116a8: e0a7 b.n 80117fa } qlen = LWIP_MIN(rem_len, (u16_t)(PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset))); - 801169a: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801169c: 3303 adds r3, #3 - 801169e: b29b uxth r3, r3 - 80116a0: f023 0303 bic.w r3, r3, #3 - 80116a4: b29b uxth r3, r3 - 80116a6: f5c3 7314 rsb r3, r3, #592 ; 0x250 - 80116aa: b29b uxth r3, r3 - 80116ac: 8b7a ldrh r2, [r7, #26] - 80116ae: 4293 cmp r3, r2 - 80116b0: bf28 it cs - 80116b2: 4613 movcs r3, r2 - 80116b4: 81fb strh r3, [r7, #14] + 80116aa: 8c7b ldrh r3, [r7, #34] ; 0x22 + 80116ac: 3303 adds r3, #3 + 80116ae: b29b uxth r3, r3 + 80116b0: f023 0303 bic.w r3, r3, #3 + 80116b4: b29b uxth r3, r3 + 80116b6: f5c3 7314 rsb r3, r3, #592 ; 0x250 + 80116ba: b29b uxth r3, r3 + 80116bc: 8b7a ldrh r2, [r7, #26] + 80116be: 4293 cmp r3, r2 + 80116c0: bf28 it cs + 80116c2: 4613 movcs r3, r2 + 80116c4: 81fb strh r3, [r7, #14] pbuf_init_alloced_pbuf(q, LWIP_MEM_ALIGN((void *)((u8_t *)q + SIZEOF_STRUCT_PBUF + offset)), - 80116b6: 8c7b ldrh r3, [r7, #34] ; 0x22 - 80116b8: 3310 adds r3, #16 - 80116ba: 693a ldr r2, [r7, #16] - 80116bc: 4413 add r3, r2 - 80116be: 3303 adds r3, #3 - 80116c0: f023 0303 bic.w r3, r3, #3 - 80116c4: 4618 mov r0, r3 - 80116c6: 89f9 ldrh r1, [r7, #14] - 80116c8: 8b7a ldrh r2, [r7, #26] - 80116ca: 2300 movs r3, #0 - 80116cc: 9301 str r3, [sp, #4] - 80116ce: 887b ldrh r3, [r7, #2] - 80116d0: 9300 str r3, [sp, #0] - 80116d2: 460b mov r3, r1 - 80116d4: 4601 mov r1, r0 - 80116d6: 6938 ldr r0, [r7, #16] - 80116d8: f7ff ff7c bl 80115d4 + 80116c6: 8c7b ldrh r3, [r7, #34] ; 0x22 + 80116c8: 3310 adds r3, #16 + 80116ca: 693a ldr r2, [r7, #16] + 80116cc: 4413 add r3, r2 + 80116ce: 3303 adds r3, #3 + 80116d0: f023 0303 bic.w r3, r3, #3 + 80116d4: 4618 mov r0, r3 + 80116d6: 89f9 ldrh r1, [r7, #14] + 80116d8: 8b7a ldrh r2, [r7, #26] + 80116da: 2300 movs r3, #0 + 80116dc: 9301 str r3, [sp, #4] + 80116de: 887b ldrh r3, [r7, #2] + 80116e0: 9300 str r3, [sp, #0] + 80116e2: 460b mov r3, r1 + 80116e4: 4601 mov r1, r0 + 80116e6: 6938 ldr r0, [r7, #16] + 80116e8: f7ff ff7c bl 80115e4 rem_len, qlen, type, 0); LWIP_ASSERT("pbuf_alloc: pbuf q->payload properly aligned", - 80116dc: 693b ldr r3, [r7, #16] - 80116de: 685b ldr r3, [r3, #4] - 80116e0: f003 0303 and.w r3, r3, #3 - 80116e4: 2b00 cmp r3, #0 - 80116e6: d006 beq.n 80116f6 - 80116e8: 4b42 ldr r3, [pc, #264] ; (80117f4 ) - 80116ea: f240 1201 movw r2, #257 ; 0x101 - 80116ee: 4942 ldr r1, [pc, #264] ; (80117f8 ) - 80116f0: 4842 ldr r0, [pc, #264] ; (80117fc ) - 80116f2: f00a ffa9 bl 801c648 + 80116ec: 693b ldr r3, [r7, #16] + 80116ee: 685b ldr r3, [r3, #4] + 80116f0: f003 0303 and.w r3, r3, #3 + 80116f4: 2b00 cmp r3, #0 + 80116f6: d006 beq.n 8011706 + 80116f8: 4b42 ldr r3, [pc, #264] ; (8011804 ) + 80116fa: f240 1201 movw r2, #257 ; 0x101 + 80116fe: 4942 ldr r1, [pc, #264] ; (8011808 ) + 8011700: 4842 ldr r0, [pc, #264] ; (801180c ) + 8011702: f00a ffa9 bl 801c658 ((mem_ptr_t)q->payload % MEM_ALIGNMENT) == 0); LWIP_ASSERT("PBUF_POOL_BUFSIZE must be bigger than MEM_ALIGNMENT", - 80116f6: 8c7b ldrh r3, [r7, #34] ; 0x22 - 80116f8: 3303 adds r3, #3 - 80116fa: f023 0303 bic.w r3, r3, #3 - 80116fe: f5b3 7f14 cmp.w r3, #592 ; 0x250 - 8011702: d106 bne.n 8011712 - 8011704: 4b3b ldr r3, [pc, #236] ; (80117f4 ) - 8011706: f240 1203 movw r2, #259 ; 0x103 - 801170a: 493d ldr r1, [pc, #244] ; (8011800 ) - 801170c: 483b ldr r0, [pc, #236] ; (80117fc ) - 801170e: f00a ff9b bl 801c648 + 8011706: 8c7b ldrh r3, [r7, #34] ; 0x22 + 8011708: 3303 adds r3, #3 + 801170a: f023 0303 bic.w r3, r3, #3 + 801170e: f5b3 7f14 cmp.w r3, #592 ; 0x250 + 8011712: d106 bne.n 8011722 + 8011714: 4b3b ldr r3, [pc, #236] ; (8011804 ) + 8011716: f240 1203 movw r2, #259 ; 0x103 + 801171a: 493d ldr r1, [pc, #244] ; (8011810 ) + 801171c: 483b ldr r0, [pc, #236] ; (801180c ) + 801171e: f00a ff9b bl 801c658 (PBUF_POOL_BUFSIZE_ALIGNED - LWIP_MEM_ALIGN_SIZE(offset)) > 0 ); if (p == NULL) { - 8011712: 6a7b ldr r3, [r7, #36] ; 0x24 - 8011714: 2b00 cmp r3, #0 - 8011716: d102 bne.n 801171e + 8011722: 6a7b ldr r3, [r7, #36] ; 0x24 + 8011724: 2b00 cmp r3, #0 + 8011726: d102 bne.n 801172e /* allocated head of pbuf chain (into p) */ p = q; - 8011718: 693b ldr r3, [r7, #16] - 801171a: 627b str r3, [r7, #36] ; 0x24 - 801171c: e002 b.n 8011724 + 8011728: 693b ldr r3, [r7, #16] + 801172a: 627b str r3, [r7, #36] ; 0x24 + 801172c: e002 b.n 8011734 } else { /* make previous pbuf point to this pbuf */ last->next = q; - 801171e: 69fb ldr r3, [r7, #28] - 8011720: 693a ldr r2, [r7, #16] - 8011722: 601a str r2, [r3, #0] + 801172e: 69fb ldr r3, [r7, #28] + 8011730: 693a ldr r2, [r7, #16] + 8011732: 601a str r2, [r3, #0] } last = q; - 8011724: 693b ldr r3, [r7, #16] - 8011726: 61fb str r3, [r7, #28] + 8011734: 693b ldr r3, [r7, #16] + 8011736: 61fb str r3, [r7, #28] rem_len = (u16_t)(rem_len - qlen); - 8011728: 8b7a ldrh r2, [r7, #26] - 801172a: 89fb ldrh r3, [r7, #14] - 801172c: 1ad3 subs r3, r2, r3 - 801172e: 837b strh r3, [r7, #26] + 8011738: 8b7a ldrh r2, [r7, #26] + 801173a: 89fb ldrh r3, [r7, #14] + 801173c: 1ad3 subs r3, r2, r3 + 801173e: 837b strh r3, [r7, #26] offset = 0; - 8011730: 2300 movs r3, #0 - 8011732: 847b strh r3, [r7, #34] ; 0x22 + 8011740: 2300 movs r3, #0 + 8011742: 847b strh r3, [r7, #34] ; 0x22 } while (rem_len > 0); - 8011734: 8b7b ldrh r3, [r7, #26] - 8011736: 2b00 cmp r3, #0 - 8011738: d19e bne.n 8011678 + 8011744: 8b7b ldrh r3, [r7, #26] + 8011746: 2b00 cmp r3, #0 + 8011748: d19e bne.n 8011688 break; - 801173a: e055 b.n 80117e8 + 801174a: e055 b.n 80117f8 } case PBUF_RAM: { u16_t payload_len = (u16_t)(LWIP_MEM_ALIGN_SIZE(offset) + LWIP_MEM_ALIGN_SIZE(length)); - 801173c: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801173e: 3303 adds r3, #3 - 8011740: b29b uxth r3, r3 - 8011742: f023 0303 bic.w r3, r3, #3 - 8011746: b29a uxth r2, r3 - 8011748: 88bb ldrh r3, [r7, #4] - 801174a: 3303 adds r3, #3 - 801174c: b29b uxth r3, r3 - 801174e: f023 0303 bic.w r3, r3, #3 - 8011752: b29b uxth r3, r3 - 8011754: 4413 add r3, r2 - 8011756: 833b strh r3, [r7, #24] + 801174c: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801174e: 3303 adds r3, #3 + 8011750: b29b uxth r3, r3 + 8011752: f023 0303 bic.w r3, r3, #3 + 8011756: b29a uxth r2, r3 + 8011758: 88bb ldrh r3, [r7, #4] + 801175a: 3303 adds r3, #3 + 801175c: b29b uxth r3, r3 + 801175e: f023 0303 bic.w r3, r3, #3 + 8011762: b29b uxth r3, r3 + 8011764: 4413 add r3, r2 + 8011766: 833b strh r3, [r7, #24] mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len); - 8011758: 8b3b ldrh r3, [r7, #24] - 801175a: 3310 adds r3, #16 - 801175c: 82fb strh r3, [r7, #22] + 8011768: 8b3b ldrh r3, [r7, #24] + 801176a: 3310 adds r3, #16 + 801176c: 82fb strh r3, [r7, #22] /* bug #50040: Check for integer overflow when calculating alloc_len */ if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) || - 801175e: 8b3a ldrh r2, [r7, #24] - 8011760: 88bb ldrh r3, [r7, #4] - 8011762: 3303 adds r3, #3 - 8011764: f023 0303 bic.w r3, r3, #3 - 8011768: 429a cmp r2, r3 - 801176a: d306 bcc.n 801177a + 801176e: 8b3a ldrh r2, [r7, #24] + 8011770: 88bb ldrh r3, [r7, #4] + 8011772: 3303 adds r3, #3 + 8011774: f023 0303 bic.w r3, r3, #3 + 8011778: 429a cmp r2, r3 + 801177a: d306 bcc.n 801178a (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) { - 801176c: 8afa ldrh r2, [r7, #22] - 801176e: 88bb ldrh r3, [r7, #4] - 8011770: 3303 adds r3, #3 - 8011772: f023 0303 bic.w r3, r3, #3 + 801177c: 8afa ldrh r2, [r7, #22] + 801177e: 88bb ldrh r3, [r7, #4] + 8011780: 3303 adds r3, #3 + 8011782: f023 0303 bic.w r3, r3, #3 if ((payload_len < LWIP_MEM_ALIGN_SIZE(length)) || - 8011776: 429a cmp r2, r3 - 8011778: d201 bcs.n 801177e + 8011786: 429a cmp r2, r3 + 8011788: d201 bcs.n 801178e return NULL; - 801177a: 2300 movs r3, #0 - 801177c: e035 b.n 80117ea + 801178a: 2300 movs r3, #0 + 801178c: e035 b.n 80117fa } /* If pbuf is to be allocated in RAM, allocate memory for it. */ p = (struct pbuf *)mem_malloc(alloc_len); - 801177e: 8afb ldrh r3, [r7, #22] - 8011780: 4618 mov r0, r3 - 8011782: f7ff f9b1 bl 8010ae8 - 8011786: 6278 str r0, [r7, #36] ; 0x24 + 801178e: 8afb ldrh r3, [r7, #22] + 8011790: 4618 mov r0, r3 + 8011792: f7ff f9b1 bl 8010af8 + 8011796: 6278 str r0, [r7, #36] ; 0x24 if (p == NULL) { - 8011788: 6a7b ldr r3, [r7, #36] ; 0x24 - 801178a: 2b00 cmp r3, #0 - 801178c: d101 bne.n 8011792 + 8011798: 6a7b ldr r3, [r7, #36] ; 0x24 + 801179a: 2b00 cmp r3, #0 + 801179c: d101 bne.n 80117a2 return NULL; - 801178e: 2300 movs r3, #0 - 8011790: e02b b.n 80117ea + 801179e: 2300 movs r3, #0 + 80117a0: e02b b.n 80117fa } pbuf_init_alloced_pbuf(p, LWIP_MEM_ALIGN((void *)((u8_t *)p + SIZEOF_STRUCT_PBUF + offset)), - 8011792: 8c7b ldrh r3, [r7, #34] ; 0x22 - 8011794: 3310 adds r3, #16 - 8011796: 6a7a ldr r2, [r7, #36] ; 0x24 - 8011798: 4413 add r3, r2 - 801179a: 3303 adds r3, #3 - 801179c: f023 0303 bic.w r3, r3, #3 - 80117a0: 4618 mov r0, r3 - 80117a2: 88b9 ldrh r1, [r7, #4] - 80117a4: 88ba ldrh r2, [r7, #4] - 80117a6: 2300 movs r3, #0 - 80117a8: 9301 str r3, [sp, #4] - 80117aa: 887b ldrh r3, [r7, #2] - 80117ac: 9300 str r3, [sp, #0] - 80117ae: 460b mov r3, r1 - 80117b0: 4601 mov r1, r0 - 80117b2: 6a78 ldr r0, [r7, #36] ; 0x24 - 80117b4: f7ff ff0e bl 80115d4 + 80117a2: 8c7b ldrh r3, [r7, #34] ; 0x22 + 80117a4: 3310 adds r3, #16 + 80117a6: 6a7a ldr r2, [r7, #36] ; 0x24 + 80117a8: 4413 add r3, r2 + 80117aa: 3303 adds r3, #3 + 80117ac: f023 0303 bic.w r3, r3, #3 + 80117b0: 4618 mov r0, r3 + 80117b2: 88b9 ldrh r1, [r7, #4] + 80117b4: 88ba ldrh r2, [r7, #4] + 80117b6: 2300 movs r3, #0 + 80117b8: 9301 str r3, [sp, #4] + 80117ba: 887b ldrh r3, [r7, #2] + 80117bc: 9300 str r3, [sp, #0] + 80117be: 460b mov r3, r1 + 80117c0: 4601 mov r1, r0 + 80117c2: 6a78 ldr r0, [r7, #36] ; 0x24 + 80117c4: f7ff ff0e bl 80115e4 length, length, type, 0); LWIP_ASSERT("pbuf_alloc: pbuf->payload properly aligned", - 80117b8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80117ba: 685b ldr r3, [r3, #4] - 80117bc: f003 0303 and.w r3, r3, #3 - 80117c0: 2b00 cmp r3, #0 - 80117c2: d010 beq.n 80117e6 - 80117c4: 4b0b ldr r3, [pc, #44] ; (80117f4 ) - 80117c6: f240 1223 movw r2, #291 ; 0x123 - 80117ca: 490e ldr r1, [pc, #56] ; (8011804 ) - 80117cc: 480b ldr r0, [pc, #44] ; (80117fc ) - 80117ce: f00a ff3b bl 801c648 + 80117c8: 6a7b ldr r3, [r7, #36] ; 0x24 + 80117ca: 685b ldr r3, [r3, #4] + 80117cc: f003 0303 and.w r3, r3, #3 + 80117d0: 2b00 cmp r3, #0 + 80117d2: d010 beq.n 80117f6 + 80117d4: 4b0b ldr r3, [pc, #44] ; (8011804 ) + 80117d6: f240 1223 movw r2, #291 ; 0x123 + 80117da: 490e ldr r1, [pc, #56] ; (8011814 ) + 80117dc: 480b ldr r0, [pc, #44] ; (801180c ) + 80117de: f00a ff3b bl 801c658 ((mem_ptr_t)p->payload % MEM_ALIGNMENT) == 0); break; - 80117d2: e008 b.n 80117e6 + 80117e2: e008 b.n 80117f6 } default: LWIP_ASSERT("pbuf_alloc: erroneous type", 0); - 80117d4: 4b07 ldr r3, [pc, #28] ; (80117f4 ) - 80117d6: f240 1227 movw r2, #295 ; 0x127 - 80117da: 490b ldr r1, [pc, #44] ; (8011808 ) - 80117dc: 4807 ldr r0, [pc, #28] ; (80117fc ) - 80117de: f00a ff33 bl 801c648 + 80117e4: 4b07 ldr r3, [pc, #28] ; (8011804 ) + 80117e6: f240 1227 movw r2, #295 ; 0x127 + 80117ea: 490b ldr r1, [pc, #44] ; (8011818 ) + 80117ec: 4807 ldr r0, [pc, #28] ; (801180c ) + 80117ee: f00a ff33 bl 801c658 return NULL; - 80117e2: 2300 movs r3, #0 - 80117e4: e001 b.n 80117ea + 80117f2: 2300 movs r3, #0 + 80117f4: e001 b.n 80117fa break; - 80117e6: bf00 nop + 80117f6: bf00 nop } LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p)); return p; - 80117e8: 6a7b ldr r3, [r7, #36] ; 0x24 -} - 80117ea: 4618 mov r0, r3 - 80117ec: 3728 adds r7, #40 ; 0x28 - 80117ee: 46bd mov sp, r7 - 80117f0: bd80 pop {r7, pc} - 80117f2: bf00 nop - 80117f4: 0801dfd8 .word 0x0801dfd8 - 80117f8: 0801e008 .word 0x0801e008 - 80117fc: 0801e038 .word 0x0801e038 - 8011800: 0801e060 .word 0x0801e060 - 8011804: 0801e094 .word 0x0801e094 - 8011808: 0801e0c0 .word 0x0801e0c0 - -0801180c : + 80117f8: 6a7b ldr r3, [r7, #36] ; 0x24 +} + 80117fa: 4618 mov r0, r3 + 80117fc: 3728 adds r7, #40 ; 0x28 + 80117fe: 46bd mov sp, r7 + 8011800: bd80 pop {r7, pc} + 8011802: bf00 nop + 8011804: 0801dfe8 .word 0x0801dfe8 + 8011808: 0801e018 .word 0x0801e018 + 801180c: 0801e048 .word 0x0801e048 + 8011810: 0801e070 .word 0x0801e070 + 8011814: 0801e0a4 .word 0x0801e0a4 + 8011818: 0801e0d0 .word 0x0801e0d0 + +0801181c : * * @return the allocated pbuf. */ struct pbuf * pbuf_alloc_reference(void *payload, u16_t length, pbuf_type type) { - 801180c: b580 push {r7, lr} - 801180e: b086 sub sp, #24 - 8011810: af02 add r7, sp, #8 - 8011812: 6078 str r0, [r7, #4] - 8011814: 460b mov r3, r1 - 8011816: 807b strh r3, [r7, #2] - 8011818: 4613 mov r3, r2 - 801181a: 803b strh r3, [r7, #0] + 801181c: b580 push {r7, lr} + 801181e: b086 sub sp, #24 + 8011820: af02 add r7, sp, #8 + 8011822: 6078 str r0, [r7, #4] + 8011824: 460b mov r3, r1 + 8011826: 807b strh r3, [r7, #2] + 8011828: 4613 mov r3, r2 + 801182a: 803b strh r3, [r7, #0] struct pbuf *p; LWIP_ASSERT("invalid pbuf_type", (type == PBUF_REF) || (type == PBUF_ROM)); - 801181c: 883b ldrh r3, [r7, #0] - 801181e: 2b41 cmp r3, #65 ; 0x41 - 8011820: d009 beq.n 8011836 - 8011822: 883b ldrh r3, [r7, #0] - 8011824: 2b01 cmp r3, #1 - 8011826: d006 beq.n 8011836 - 8011828: 4b0f ldr r3, [pc, #60] ; (8011868 ) - 801182a: f44f 72a5 mov.w r2, #330 ; 0x14a - 801182e: 490f ldr r1, [pc, #60] ; (801186c ) - 8011830: 480f ldr r0, [pc, #60] ; (8011870 ) - 8011832: f00a ff09 bl 801c648 + 801182c: 883b ldrh r3, [r7, #0] + 801182e: 2b41 cmp r3, #65 ; 0x41 + 8011830: d009 beq.n 8011846 + 8011832: 883b ldrh r3, [r7, #0] + 8011834: 2b01 cmp r3, #1 + 8011836: d006 beq.n 8011846 + 8011838: 4b0f ldr r3, [pc, #60] ; (8011878 ) + 801183a: f44f 72a5 mov.w r2, #330 ; 0x14a + 801183e: 490f ldr r1, [pc, #60] ; (801187c ) + 8011840: 480f ldr r0, [pc, #60] ; (8011880 ) + 8011842: f00a ff09 bl 801c658 /* only allocate memory for the pbuf structure */ p = (struct pbuf *)memp_malloc(MEMP_PBUF); - 8011836: 200b movs r0, #11 - 8011838: f7ff fad8 bl 8010dec - 801183c: 60f8 str r0, [r7, #12] + 8011846: 200b movs r0, #11 + 8011848: f7ff fad8 bl 8010dfc + 801184c: 60f8 str r0, [r7, #12] if (p == NULL) { - 801183e: 68fb ldr r3, [r7, #12] - 8011840: 2b00 cmp r3, #0 - 8011842: d101 bne.n 8011848 + 801184e: 68fb ldr r3, [r7, #12] + 8011850: 2b00 cmp r3, #0 + 8011852: d101 bne.n 8011858 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("pbuf_alloc_reference: Could not allocate MEMP_PBUF for PBUF_%s.\n", (type == PBUF_ROM) ? "ROM" : "REF")); return NULL; - 8011844: 2300 movs r3, #0 - 8011846: e00b b.n 8011860 + 8011854: 2300 movs r3, #0 + 8011856: e00b b.n 8011870 } pbuf_init_alloced_pbuf(p, payload, length, length, type, 0); - 8011848: 8879 ldrh r1, [r7, #2] - 801184a: 887a ldrh r2, [r7, #2] - 801184c: 2300 movs r3, #0 - 801184e: 9301 str r3, [sp, #4] - 8011850: 883b ldrh r3, [r7, #0] - 8011852: 9300 str r3, [sp, #0] - 8011854: 460b mov r3, r1 - 8011856: 6879 ldr r1, [r7, #4] - 8011858: 68f8 ldr r0, [r7, #12] - 801185a: f7ff febb bl 80115d4 + 8011858: 8879 ldrh r1, [r7, #2] + 801185a: 887a ldrh r2, [r7, #2] + 801185c: 2300 movs r3, #0 + 801185e: 9301 str r3, [sp, #4] + 8011860: 883b ldrh r3, [r7, #0] + 8011862: 9300 str r3, [sp, #0] + 8011864: 460b mov r3, r1 + 8011866: 6879 ldr r1, [r7, #4] + 8011868: 68f8 ldr r0, [r7, #12] + 801186a: f7ff febb bl 80115e4 return p; - 801185e: 68fb ldr r3, [r7, #12] + 801186e: 68fb ldr r3, [r7, #12] } - 8011860: 4618 mov r0, r3 - 8011862: 3710 adds r7, #16 - 8011864: 46bd mov sp, r7 - 8011866: bd80 pop {r7, pc} - 8011868: 0801dfd8 .word 0x0801dfd8 - 801186c: 0801e0dc .word 0x0801e0dc - 8011870: 0801e038 .word 0x0801e038 + 8011870: 4618 mov r0, r3 + 8011872: 3710 adds r7, #16 + 8011874: 46bd mov sp, r7 + 8011876: bd80 pop {r7, pc} + 8011878: 0801dfe8 .word 0x0801dfe8 + 801187c: 0801e0ec .word 0x0801e0ec + 8011880: 0801e048 .word 0x0801e048 -08011874 : +08011884 : * big enough to hold 'length' plus the header size */ struct pbuf * pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p, void *payload_mem, u16_t payload_mem_len) { - 8011874: b580 push {r7, lr} - 8011876: b088 sub sp, #32 - 8011878: af02 add r7, sp, #8 - 801187a: 607b str r3, [r7, #4] - 801187c: 4603 mov r3, r0 - 801187e: 73fb strb r3, [r7, #15] - 8011880: 460b mov r3, r1 - 8011882: 81bb strh r3, [r7, #12] - 8011884: 4613 mov r3, r2 - 8011886: 817b strh r3, [r7, #10] + 8011884: b580 push {r7, lr} + 8011886: b088 sub sp, #32 + 8011888: af02 add r7, sp, #8 + 801188a: 607b str r3, [r7, #4] + 801188c: 4603 mov r3, r0 + 801188e: 73fb strb r3, [r7, #15] + 8011890: 460b mov r3, r1 + 8011892: 81bb strh r3, [r7, #12] + 8011894: 4613 mov r3, r2 + 8011896: 817b strh r3, [r7, #10] u16_t offset = (u16_t)l; - 8011888: 7bfb ldrb r3, [r7, #15] - 801188a: 827b strh r3, [r7, #18] + 8011898: 7bfb ldrb r3, [r7, #15] + 801189a: 827b strh r3, [r7, #18] void *payload; LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_alloced_custom(length=%"U16_F")\n", length)); if (LWIP_MEM_ALIGN_SIZE(offset) + length > payload_mem_len) { - 801188c: 8a7b ldrh r3, [r7, #18] - 801188e: 3303 adds r3, #3 - 8011890: f023 0203 bic.w r2, r3, #3 - 8011894: 89bb ldrh r3, [r7, #12] - 8011896: 441a add r2, r3 - 8011898: 8cbb ldrh r3, [r7, #36] ; 0x24 - 801189a: 429a cmp r2, r3 - 801189c: d901 bls.n 80118a2 + 801189c: 8a7b ldrh r3, [r7, #18] + 801189e: 3303 adds r3, #3 + 80118a0: f023 0203 bic.w r2, r3, #3 + 80118a4: 89bb ldrh r3, [r7, #12] + 80118a6: 441a add r2, r3 + 80118a8: 8cbb ldrh r3, [r7, #36] ; 0x24 + 80118aa: 429a cmp r2, r3 + 80118ac: d901 bls.n 80118b2 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_WARNING, ("pbuf_alloced_custom(length=%"U16_F") buffer too short\n", length)); return NULL; - 801189e: 2300 movs r3, #0 - 80118a0: e018 b.n 80118d4 + 80118ae: 2300 movs r3, #0 + 80118b0: e018 b.n 80118e4 } if (payload_mem != NULL) { - 80118a2: 6a3b ldr r3, [r7, #32] - 80118a4: 2b00 cmp r3, #0 - 80118a6: d007 beq.n 80118b8 + 80118b2: 6a3b ldr r3, [r7, #32] + 80118b4: 2b00 cmp r3, #0 + 80118b6: d007 beq.n 80118c8 payload = (u8_t *)payload_mem + LWIP_MEM_ALIGN_SIZE(offset); - 80118a8: 8a7b ldrh r3, [r7, #18] - 80118aa: 3303 adds r3, #3 - 80118ac: f023 0303 bic.w r3, r3, #3 - 80118b0: 6a3a ldr r2, [r7, #32] - 80118b2: 4413 add r3, r2 - 80118b4: 617b str r3, [r7, #20] - 80118b6: e001 b.n 80118bc + 80118b8: 8a7b ldrh r3, [r7, #18] + 80118ba: 3303 adds r3, #3 + 80118bc: f023 0303 bic.w r3, r3, #3 + 80118c0: 6a3a ldr r2, [r7, #32] + 80118c2: 4413 add r3, r2 + 80118c4: 617b str r3, [r7, #20] + 80118c6: e001 b.n 80118cc } else { payload = NULL; - 80118b8: 2300 movs r3, #0 - 80118ba: 617b str r3, [r7, #20] + 80118c8: 2300 movs r3, #0 + 80118ca: 617b str r3, [r7, #20] } pbuf_init_alloced_pbuf(&p->pbuf, payload, length, length, type, PBUF_FLAG_IS_CUSTOM); - 80118bc: 6878 ldr r0, [r7, #4] - 80118be: 89b9 ldrh r1, [r7, #12] - 80118c0: 89ba ldrh r2, [r7, #12] - 80118c2: 2302 movs r3, #2 - 80118c4: 9301 str r3, [sp, #4] - 80118c6: 897b ldrh r3, [r7, #10] - 80118c8: 9300 str r3, [sp, #0] - 80118ca: 460b mov r3, r1 - 80118cc: 6979 ldr r1, [r7, #20] - 80118ce: f7ff fe81 bl 80115d4 + 80118cc: 6878 ldr r0, [r7, #4] + 80118ce: 89b9 ldrh r1, [r7, #12] + 80118d0: 89ba ldrh r2, [r7, #12] + 80118d2: 2302 movs r3, #2 + 80118d4: 9301 str r3, [sp, #4] + 80118d6: 897b ldrh r3, [r7, #10] + 80118d8: 9300 str r3, [sp, #0] + 80118da: 460b mov r3, r1 + 80118dc: 6979 ldr r1, [r7, #20] + 80118de: f7ff fe81 bl 80115e4 return &p->pbuf; - 80118d2: 687b ldr r3, [r7, #4] + 80118e2: 687b ldr r3, [r7, #4] } - 80118d4: 4618 mov r0, r3 - 80118d6: 3718 adds r7, #24 - 80118d8: 46bd mov sp, r7 - 80118da: bd80 pop {r7, pc} + 80118e4: 4618 mov r0, r3 + 80118e6: 3718 adds r7, #24 + 80118e8: 46bd mov sp, r7 + 80118ea: bd80 pop {r7, pc} -080118dc : +080118ec : * * @note Despite its name, pbuf_realloc cannot grow the size of a pbuf (chain). */ void pbuf_realloc(struct pbuf *p, u16_t new_len) { - 80118dc: b580 push {r7, lr} - 80118de: b084 sub sp, #16 - 80118e0: af00 add r7, sp, #0 - 80118e2: 6078 str r0, [r7, #4] - 80118e4: 460b mov r3, r1 - 80118e6: 807b strh r3, [r7, #2] + 80118ec: b580 push {r7, lr} + 80118ee: b084 sub sp, #16 + 80118f0: af00 add r7, sp, #0 + 80118f2: 6078 str r0, [r7, #4] + 80118f4: 460b mov r3, r1 + 80118f6: 807b strh r3, [r7, #2] struct pbuf *q; u16_t rem_len; /* remaining length */ u16_t shrink; LWIP_ASSERT("pbuf_realloc: p != NULL", p != NULL); - 80118e8: 687b ldr r3, [r7, #4] - 80118ea: 2b00 cmp r3, #0 - 80118ec: d106 bne.n 80118fc - 80118ee: 4b3a ldr r3, [pc, #232] ; (80119d8 ) - 80118f0: f44f 72cc mov.w r2, #408 ; 0x198 - 80118f4: 4939 ldr r1, [pc, #228] ; (80119dc ) - 80118f6: 483a ldr r0, [pc, #232] ; (80119e0 ) - 80118f8: f00a fea6 bl 801c648 + 80118f8: 687b ldr r3, [r7, #4] + 80118fa: 2b00 cmp r3, #0 + 80118fc: d106 bne.n 801190c + 80118fe: 4b3a ldr r3, [pc, #232] ; (80119e8 ) + 8011900: f44f 72cc mov.w r2, #408 ; 0x198 + 8011904: 4939 ldr r1, [pc, #228] ; (80119ec ) + 8011906: 483a ldr r0, [pc, #232] ; (80119f0 ) + 8011908: f00a fea6 bl 801c658 /* desired length larger than current length? */ if (new_len >= p->tot_len) { - 80118fc: 687b ldr r3, [r7, #4] - 80118fe: 891b ldrh r3, [r3, #8] - 8011900: 887a ldrh r2, [r7, #2] - 8011902: 429a cmp r2, r3 - 8011904: d264 bcs.n 80119d0 + 801190c: 687b ldr r3, [r7, #4] + 801190e: 891b ldrh r3, [r3, #8] + 8011910: 887a ldrh r2, [r7, #2] + 8011912: 429a cmp r2, r3 + 8011914: d264 bcs.n 80119e0 return; } /* the pbuf chain grows by (new_len - p->tot_len) bytes * (which may be negative in case of shrinking) */ shrink = (u16_t)(p->tot_len - new_len); - 8011906: 687b ldr r3, [r7, #4] - 8011908: 891a ldrh r2, [r3, #8] - 801190a: 887b ldrh r3, [r7, #2] - 801190c: 1ad3 subs r3, r2, r3 - 801190e: 813b strh r3, [r7, #8] + 8011916: 687b ldr r3, [r7, #4] + 8011918: 891a ldrh r2, [r3, #8] + 801191a: 887b ldrh r3, [r7, #2] + 801191c: 1ad3 subs r3, r2, r3 + 801191e: 813b strh r3, [r7, #8] /* first, step over any pbufs that should remain in the chain */ rem_len = new_len; - 8011910: 887b ldrh r3, [r7, #2] - 8011912: 817b strh r3, [r7, #10] + 8011920: 887b ldrh r3, [r7, #2] + 8011922: 817b strh r3, [r7, #10] q = p; - 8011914: 687b ldr r3, [r7, #4] - 8011916: 60fb str r3, [r7, #12] + 8011924: 687b ldr r3, [r7, #4] + 8011926: 60fb str r3, [r7, #12] /* should this pbuf be kept? */ while (rem_len > q->len) { - 8011918: e018 b.n 801194c + 8011928: e018 b.n 801195c /* decrease remaining length by pbuf length */ rem_len = (u16_t)(rem_len - q->len); - 801191a: 68fb ldr r3, [r7, #12] - 801191c: 895b ldrh r3, [r3, #10] - 801191e: 897a ldrh r2, [r7, #10] - 8011920: 1ad3 subs r3, r2, r3 - 8011922: 817b strh r3, [r7, #10] + 801192a: 68fb ldr r3, [r7, #12] + 801192c: 895b ldrh r3, [r3, #10] + 801192e: 897a ldrh r2, [r7, #10] + 8011930: 1ad3 subs r3, r2, r3 + 8011932: 817b strh r3, [r7, #10] /* decrease total length indicator */ q->tot_len = (u16_t)(q->tot_len - shrink); - 8011924: 68fb ldr r3, [r7, #12] - 8011926: 891a ldrh r2, [r3, #8] - 8011928: 893b ldrh r3, [r7, #8] - 801192a: 1ad3 subs r3, r2, r3 - 801192c: b29a uxth r2, r3 - 801192e: 68fb ldr r3, [r7, #12] - 8011930: 811a strh r2, [r3, #8] + 8011934: 68fb ldr r3, [r7, #12] + 8011936: 891a ldrh r2, [r3, #8] + 8011938: 893b ldrh r3, [r7, #8] + 801193a: 1ad3 subs r3, r2, r3 + 801193c: b29a uxth r2, r3 + 801193e: 68fb ldr r3, [r7, #12] + 8011940: 811a strh r2, [r3, #8] /* proceed to next pbuf in chain */ q = q->next; - 8011932: 68fb ldr r3, [r7, #12] - 8011934: 681b ldr r3, [r3, #0] - 8011936: 60fb str r3, [r7, #12] + 8011942: 68fb ldr r3, [r7, #12] + 8011944: 681b ldr r3, [r3, #0] + 8011946: 60fb str r3, [r7, #12] LWIP_ASSERT("pbuf_realloc: q != NULL", q != NULL); - 8011938: 68fb ldr r3, [r7, #12] - 801193a: 2b00 cmp r3, #0 - 801193c: d106 bne.n 801194c - 801193e: 4b26 ldr r3, [pc, #152] ; (80119d8 ) - 8011940: f240 12af movw r2, #431 ; 0x1af - 8011944: 4927 ldr r1, [pc, #156] ; (80119e4 ) - 8011946: 4826 ldr r0, [pc, #152] ; (80119e0 ) - 8011948: f00a fe7e bl 801c648 + 8011948: 68fb ldr r3, [r7, #12] + 801194a: 2b00 cmp r3, #0 + 801194c: d106 bne.n 801195c + 801194e: 4b26 ldr r3, [pc, #152] ; (80119e8 ) + 8011950: f240 12af movw r2, #431 ; 0x1af + 8011954: 4927 ldr r1, [pc, #156] ; (80119f4 ) + 8011956: 4826 ldr r0, [pc, #152] ; (80119f0 ) + 8011958: f00a fe7e bl 801c658 while (rem_len > q->len) { - 801194c: 68fb ldr r3, [r7, #12] - 801194e: 895b ldrh r3, [r3, #10] - 8011950: 897a ldrh r2, [r7, #10] - 8011952: 429a cmp r2, r3 - 8011954: d8e1 bhi.n 801191a + 801195c: 68fb ldr r3, [r7, #12] + 801195e: 895b ldrh r3, [r3, #10] + 8011960: 897a ldrh r2, [r7, #10] + 8011962: 429a cmp r2, r3 + 8011964: d8e1 bhi.n 801192a /* we have now reached the new last pbuf (in q) */ /* rem_len == desired length for pbuf q */ /* shrink allocated memory for PBUF_RAM */ /* (other types merely adjust their length fields */ if (pbuf_match_allocsrc(q, PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) && (rem_len != q->len) - 8011956: 68fb ldr r3, [r7, #12] - 8011958: 7b1b ldrb r3, [r3, #12] - 801195a: f003 030f and.w r3, r3, #15 - 801195e: 2b00 cmp r3, #0 - 8011960: d122 bne.n 80119a8 - 8011962: 68fb ldr r3, [r7, #12] - 8011964: 895b ldrh r3, [r3, #10] - 8011966: 897a ldrh r2, [r7, #10] - 8011968: 429a cmp r2, r3 - 801196a: d01d beq.n 80119a8 + 8011966: 68fb ldr r3, [r7, #12] + 8011968: 7b1b ldrb r3, [r3, #12] + 801196a: f003 030f and.w r3, r3, #15 + 801196e: 2b00 cmp r3, #0 + 8011970: d122 bne.n 80119b8 + 8011972: 68fb ldr r3, [r7, #12] + 8011974: 895b ldrh r3, [r3, #10] + 8011976: 897a ldrh r2, [r7, #10] + 8011978: 429a cmp r2, r3 + 801197a: d01d beq.n 80119b8 #if LWIP_SUPPORT_CUSTOM_PBUF && ((q->flags & PBUF_FLAG_IS_CUSTOM) == 0) - 801196c: 68fb ldr r3, [r7, #12] - 801196e: 7b5b ldrb r3, [r3, #13] - 8011970: f003 0302 and.w r3, r3, #2 - 8011974: 2b00 cmp r3, #0 - 8011976: d117 bne.n 80119a8 + 801197c: 68fb ldr r3, [r7, #12] + 801197e: 7b5b ldrb r3, [r3, #13] + 8011980: f003 0302 and.w r3, r3, #2 + 8011984: 2b00 cmp r3, #0 + 8011986: d117 bne.n 80119b8 #endif /* LWIP_SUPPORT_CUSTOM_PBUF */ ) { /* reallocate and adjust the length of the pbuf that will be split */ q = (struct pbuf *)mem_trim(q, (mem_size_t)(((u8_t *)q->payload - (u8_t *)q) + rem_len)); - 8011978: 68fb ldr r3, [r7, #12] - 801197a: 685b ldr r3, [r3, #4] - 801197c: 461a mov r2, r3 - 801197e: 68fb ldr r3, [r7, #12] - 8011980: 1ad3 subs r3, r2, r3 - 8011982: b29a uxth r2, r3 - 8011984: 897b ldrh r3, [r7, #10] - 8011986: 4413 add r3, r2 - 8011988: b29b uxth r3, r3 - 801198a: 4619 mov r1, r3 - 801198c: 68f8 ldr r0, [r7, #12] - 801198e: f7fe ffa1 bl 80108d4 - 8011992: 60f8 str r0, [r7, #12] + 8011988: 68fb ldr r3, [r7, #12] + 801198a: 685b ldr r3, [r3, #4] + 801198c: 461a mov r2, r3 + 801198e: 68fb ldr r3, [r7, #12] + 8011990: 1ad3 subs r3, r2, r3 + 8011992: b29a uxth r2, r3 + 8011994: 897b ldrh r3, [r7, #10] + 8011996: 4413 add r3, r2 + 8011998: b29b uxth r3, r3 + 801199a: 4619 mov r1, r3 + 801199c: 68f8 ldr r0, [r7, #12] + 801199e: f7fe ffa1 bl 80108e4 + 80119a2: 60f8 str r0, [r7, #12] LWIP_ASSERT("mem_trim returned q == NULL", q != NULL); - 8011994: 68fb ldr r3, [r7, #12] - 8011996: 2b00 cmp r3, #0 - 8011998: d106 bne.n 80119a8 - 801199a: 4b0f ldr r3, [pc, #60] ; (80119d8 ) - 801199c: f240 12bd movw r2, #445 ; 0x1bd - 80119a0: 4911 ldr r1, [pc, #68] ; (80119e8 ) - 80119a2: 480f ldr r0, [pc, #60] ; (80119e0 ) - 80119a4: f00a fe50 bl 801c648 + 80119a4: 68fb ldr r3, [r7, #12] + 80119a6: 2b00 cmp r3, #0 + 80119a8: d106 bne.n 80119b8 + 80119aa: 4b0f ldr r3, [pc, #60] ; (80119e8 ) + 80119ac: f240 12bd movw r2, #445 ; 0x1bd + 80119b0: 4911 ldr r1, [pc, #68] ; (80119f8 ) + 80119b2: 480f ldr r0, [pc, #60] ; (80119f0 ) + 80119b4: f00a fe50 bl 801c658 } /* adjust length fields for new last pbuf */ q->len = rem_len; - 80119a8: 68fb ldr r3, [r7, #12] - 80119aa: 897a ldrh r2, [r7, #10] - 80119ac: 815a strh r2, [r3, #10] + 80119b8: 68fb ldr r3, [r7, #12] + 80119ba: 897a ldrh r2, [r7, #10] + 80119bc: 815a strh r2, [r3, #10] q->tot_len = q->len; - 80119ae: 68fb ldr r3, [r7, #12] - 80119b0: 895a ldrh r2, [r3, #10] - 80119b2: 68fb ldr r3, [r7, #12] - 80119b4: 811a strh r2, [r3, #8] + 80119be: 68fb ldr r3, [r7, #12] + 80119c0: 895a ldrh r2, [r3, #10] + 80119c2: 68fb ldr r3, [r7, #12] + 80119c4: 811a strh r2, [r3, #8] /* any remaining pbufs in chain? */ if (q->next != NULL) { - 80119b6: 68fb ldr r3, [r7, #12] - 80119b8: 681b ldr r3, [r3, #0] - 80119ba: 2b00 cmp r3, #0 - 80119bc: d004 beq.n 80119c8 + 80119c6: 68fb ldr r3, [r7, #12] + 80119c8: 681b ldr r3, [r3, #0] + 80119ca: 2b00 cmp r3, #0 + 80119cc: d004 beq.n 80119d8 /* free remaining pbufs in chain */ pbuf_free(q->next); - 80119be: 68fb ldr r3, [r7, #12] - 80119c0: 681b ldr r3, [r3, #0] - 80119c2: 4618 mov r0, r3 - 80119c4: f000 f910 bl 8011be8 + 80119ce: 68fb ldr r3, [r7, #12] + 80119d0: 681b ldr r3, [r3, #0] + 80119d2: 4618 mov r0, r3 + 80119d4: f000 f910 bl 8011bf8 } /* q is last packet in chain */ q->next = NULL; - 80119c8: 68fb ldr r3, [r7, #12] - 80119ca: 2200 movs r2, #0 - 80119cc: 601a str r2, [r3, #0] - 80119ce: e000 b.n 80119d2 + 80119d8: 68fb ldr r3, [r7, #12] + 80119da: 2200 movs r2, #0 + 80119dc: 601a str r2, [r3, #0] + 80119de: e000 b.n 80119e2 return; - 80119d0: bf00 nop + 80119e0: bf00 nop } - 80119d2: 3710 adds r7, #16 - 80119d4: 46bd mov sp, r7 - 80119d6: bd80 pop {r7, pc} - 80119d8: 0801dfd8 .word 0x0801dfd8 - 80119dc: 0801e0f0 .word 0x0801e0f0 - 80119e0: 0801e038 .word 0x0801e038 - 80119e4: 0801e108 .word 0x0801e108 - 80119e8: 0801e120 .word 0x0801e120 + 80119e2: 3710 adds r7, #16 + 80119e4: 46bd mov sp, r7 + 80119e6: bd80 pop {r7, pc} + 80119e8: 0801dfe8 .word 0x0801dfe8 + 80119ec: 0801e100 .word 0x0801e100 + 80119f0: 0801e048 .word 0x0801e048 + 80119f4: 0801e118 .word 0x0801e118 + 80119f8: 0801e130 .word 0x0801e130 -080119ec : +080119fc : * @return non-zero on failure, zero on success. * */ static u8_t pbuf_add_header_impl(struct pbuf *p, size_t header_size_increment, u8_t force) { - 80119ec: b580 push {r7, lr} - 80119ee: b086 sub sp, #24 - 80119f0: af00 add r7, sp, #0 - 80119f2: 60f8 str r0, [r7, #12] - 80119f4: 60b9 str r1, [r7, #8] - 80119f6: 4613 mov r3, r2 - 80119f8: 71fb strb r3, [r7, #7] + 80119fc: b580 push {r7, lr} + 80119fe: b086 sub sp, #24 + 8011a00: af00 add r7, sp, #0 + 8011a02: 60f8 str r0, [r7, #12] + 8011a04: 60b9 str r1, [r7, #8] + 8011a06: 4613 mov r3, r2 + 8011a08: 71fb strb r3, [r7, #7] u16_t type_internal; void *payload; u16_t increment_magnitude; LWIP_ASSERT("p != NULL", p != NULL); - 80119fa: 68fb ldr r3, [r7, #12] - 80119fc: 2b00 cmp r3, #0 - 80119fe: d106 bne.n 8011a0e - 8011a00: 4b2b ldr r3, [pc, #172] ; (8011ab0 ) - 8011a02: f240 12df movw r2, #479 ; 0x1df - 8011a06: 492b ldr r1, [pc, #172] ; (8011ab4 ) - 8011a08: 482b ldr r0, [pc, #172] ; (8011ab8 ) - 8011a0a: f00a fe1d bl 801c648 + 8011a0a: 68fb ldr r3, [r7, #12] + 8011a0c: 2b00 cmp r3, #0 + 8011a0e: d106 bne.n 8011a1e + 8011a10: 4b2b ldr r3, [pc, #172] ; (8011ac0 ) + 8011a12: f240 12df movw r2, #479 ; 0x1df + 8011a16: 492b ldr r1, [pc, #172] ; (8011ac4 ) + 8011a18: 482b ldr r0, [pc, #172] ; (8011ac8 ) + 8011a1a: f00a fe1d bl 801c658 if ((p == NULL) || (header_size_increment > 0xFFFF)) { - 8011a0e: 68fb ldr r3, [r7, #12] - 8011a10: 2b00 cmp r3, #0 - 8011a12: d003 beq.n 8011a1c - 8011a14: 68bb ldr r3, [r7, #8] - 8011a16: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8011a1a: d301 bcc.n 8011a20 + 8011a1e: 68fb ldr r3, [r7, #12] + 8011a20: 2b00 cmp r3, #0 + 8011a22: d003 beq.n 8011a2c + 8011a24: 68bb ldr r3, [r7, #8] + 8011a26: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8011a2a: d301 bcc.n 8011a30 return 1; - 8011a1c: 2301 movs r3, #1 - 8011a1e: e043 b.n 8011aa8 + 8011a2c: 2301 movs r3, #1 + 8011a2e: e043 b.n 8011ab8 } if (header_size_increment == 0) { - 8011a20: 68bb ldr r3, [r7, #8] - 8011a22: 2b00 cmp r3, #0 - 8011a24: d101 bne.n 8011a2a + 8011a30: 68bb ldr r3, [r7, #8] + 8011a32: 2b00 cmp r3, #0 + 8011a34: d101 bne.n 8011a3a return 0; - 8011a26: 2300 movs r3, #0 - 8011a28: e03e b.n 8011aa8 + 8011a36: 2300 movs r3, #0 + 8011a38: e03e b.n 8011ab8 } increment_magnitude = (u16_t)header_size_increment; - 8011a2a: 68bb ldr r3, [r7, #8] - 8011a2c: 827b strh r3, [r7, #18] + 8011a3a: 68bb ldr r3, [r7, #8] + 8011a3c: 827b strh r3, [r7, #18] /* Do not allow tot_len to wrap as a result. */ if ((u16_t)(increment_magnitude + p->tot_len) < increment_magnitude) { - 8011a2e: 68fb ldr r3, [r7, #12] - 8011a30: 891a ldrh r2, [r3, #8] - 8011a32: 8a7b ldrh r3, [r7, #18] - 8011a34: 4413 add r3, r2 - 8011a36: b29b uxth r3, r3 - 8011a38: 8a7a ldrh r2, [r7, #18] - 8011a3a: 429a cmp r2, r3 - 8011a3c: d901 bls.n 8011a42 + 8011a3e: 68fb ldr r3, [r7, #12] + 8011a40: 891a ldrh r2, [r3, #8] + 8011a42: 8a7b ldrh r3, [r7, #18] + 8011a44: 4413 add r3, r2 + 8011a46: b29b uxth r3, r3 + 8011a48: 8a7a ldrh r2, [r7, #18] + 8011a4a: 429a cmp r2, r3 + 8011a4c: d901 bls.n 8011a52 return 1; - 8011a3e: 2301 movs r3, #1 - 8011a40: e032 b.n 8011aa8 + 8011a4e: 2301 movs r3, #1 + 8011a50: e032 b.n 8011ab8 } type_internal = p->type_internal; - 8011a42: 68fb ldr r3, [r7, #12] - 8011a44: 7b1b ldrb r3, [r3, #12] - 8011a46: 823b strh r3, [r7, #16] + 8011a52: 68fb ldr r3, [r7, #12] + 8011a54: 7b1b ldrb r3, [r3, #12] + 8011a56: 823b strh r3, [r7, #16] /* pbuf types containing payloads? */ if (type_internal & PBUF_TYPE_FLAG_STRUCT_DATA_CONTIGUOUS) { - 8011a48: 8a3b ldrh r3, [r7, #16] - 8011a4a: f003 0380 and.w r3, r3, #128 ; 0x80 - 8011a4e: 2b00 cmp r3, #0 - 8011a50: d00c beq.n 8011a6c + 8011a58: 8a3b ldrh r3, [r7, #16] + 8011a5a: f003 0380 and.w r3, r3, #128 ; 0x80 + 8011a5e: 2b00 cmp r3, #0 + 8011a60: d00c beq.n 8011a7c /* set new payload pointer */ payload = (u8_t *)p->payload - header_size_increment; - 8011a52: 68fb ldr r3, [r7, #12] - 8011a54: 685a ldr r2, [r3, #4] - 8011a56: 68bb ldr r3, [r7, #8] - 8011a58: 425b negs r3, r3 - 8011a5a: 4413 add r3, r2 - 8011a5c: 617b str r3, [r7, #20] + 8011a62: 68fb ldr r3, [r7, #12] + 8011a64: 685a ldr r2, [r3, #4] + 8011a66: 68bb ldr r3, [r7, #8] + 8011a68: 425b negs r3, r3 + 8011a6a: 4413 add r3, r2 + 8011a6c: 617b str r3, [r7, #20] /* boundary check fails? */ if ((u8_t *)payload < (u8_t *)p + SIZEOF_STRUCT_PBUF) { - 8011a5e: 68fb ldr r3, [r7, #12] - 8011a60: 3310 adds r3, #16 - 8011a62: 697a ldr r2, [r7, #20] - 8011a64: 429a cmp r2, r3 - 8011a66: d20d bcs.n 8011a84 + 8011a6e: 68fb ldr r3, [r7, #12] + 8011a70: 3310 adds r3, #16 + 8011a72: 697a ldr r2, [r7, #20] + 8011a74: 429a cmp r2, r3 + 8011a76: d20d bcs.n 8011a94 LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_add_header: failed as %p < %p (not enough space for new header size)\n", (void *)payload, (void *)((u8_t *)p + SIZEOF_STRUCT_PBUF))); /* bail out unsuccessfully */ return 1; - 8011a68: 2301 movs r3, #1 - 8011a6a: e01d b.n 8011aa8 + 8011a78: 2301 movs r3, #1 + 8011a7a: e01d b.n 8011ab8 } /* pbuf types referring to external payloads? */ } else { /* hide a header in the payload? */ if (force) { - 8011a6c: 79fb ldrb r3, [r7, #7] - 8011a6e: 2b00 cmp r3, #0 - 8011a70: d006 beq.n 8011a80 + 8011a7c: 79fb ldrb r3, [r7, #7] + 8011a7e: 2b00 cmp r3, #0 + 8011a80: d006 beq.n 8011a90 payload = (u8_t *)p->payload - header_size_increment; - 8011a72: 68fb ldr r3, [r7, #12] - 8011a74: 685a ldr r2, [r3, #4] - 8011a76: 68bb ldr r3, [r7, #8] - 8011a78: 425b negs r3, r3 - 8011a7a: 4413 add r3, r2 - 8011a7c: 617b str r3, [r7, #20] - 8011a7e: e001 b.n 8011a84 + 8011a82: 68fb ldr r3, [r7, #12] + 8011a84: 685a ldr r2, [r3, #4] + 8011a86: 68bb ldr r3, [r7, #8] + 8011a88: 425b negs r3, r3 + 8011a8a: 4413 add r3, r2 + 8011a8c: 617b str r3, [r7, #20] + 8011a8e: e001 b.n 8011a94 } else { /* cannot expand payload to front (yet!) * bail out unsuccessfully */ return 1; - 8011a80: 2301 movs r3, #1 - 8011a82: e011 b.n 8011aa8 + 8011a90: 2301 movs r3, #1 + 8011a92: e011 b.n 8011ab8 } LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_add_header: old %p new %p (%"U16_F")\n", (void *)p->payload, (void *)payload, increment_magnitude)); /* modify pbuf fields */ p->payload = payload; - 8011a84: 68fb ldr r3, [r7, #12] - 8011a86: 697a ldr r2, [r7, #20] - 8011a88: 605a str r2, [r3, #4] - p->len = (u16_t)(p->len + increment_magnitude); - 8011a8a: 68fb ldr r3, [r7, #12] - 8011a8c: 895a ldrh r2, [r3, #10] - 8011a8e: 8a7b ldrh r3, [r7, #18] - 8011a90: 4413 add r3, r2 - 8011a92: b29a uxth r2, r3 8011a94: 68fb ldr r3, [r7, #12] - 8011a96: 815a strh r2, [r3, #10] + 8011a96: 697a ldr r2, [r7, #20] + 8011a98: 605a str r2, [r3, #4] + p->len = (u16_t)(p->len + increment_magnitude); + 8011a9a: 68fb ldr r3, [r7, #12] + 8011a9c: 895a ldrh r2, [r3, #10] + 8011a9e: 8a7b ldrh r3, [r7, #18] + 8011aa0: 4413 add r3, r2 + 8011aa2: b29a uxth r2, r3 + 8011aa4: 68fb ldr r3, [r7, #12] + 8011aa6: 815a strh r2, [r3, #10] p->tot_len = (u16_t)(p->tot_len + increment_magnitude); - 8011a98: 68fb ldr r3, [r7, #12] - 8011a9a: 891a ldrh r2, [r3, #8] - 8011a9c: 8a7b ldrh r3, [r7, #18] - 8011a9e: 4413 add r3, r2 - 8011aa0: b29a uxth r2, r3 - 8011aa2: 68fb ldr r3, [r7, #12] - 8011aa4: 811a strh r2, [r3, #8] + 8011aa8: 68fb ldr r3, [r7, #12] + 8011aaa: 891a ldrh r2, [r3, #8] + 8011aac: 8a7b ldrh r3, [r7, #18] + 8011aae: 4413 add r3, r2 + 8011ab0: b29a uxth r2, r3 + 8011ab2: 68fb ldr r3, [r7, #12] + 8011ab4: 811a strh r2, [r3, #8] return 0; - 8011aa6: 2300 movs r3, #0 + 8011ab6: 2300 movs r3, #0 } - 8011aa8: 4618 mov r0, r3 - 8011aaa: 3718 adds r7, #24 - 8011aac: 46bd mov sp, r7 - 8011aae: bd80 pop {r7, pc} - 8011ab0: 0801dfd8 .word 0x0801dfd8 - 8011ab4: 0801e13c .word 0x0801e13c - 8011ab8: 0801e038 .word 0x0801e038 + 8011ab8: 4618 mov r0, r3 + 8011aba: 3718 adds r7, #24 + 8011abc: 46bd mov sp, r7 + 8011abe: bd80 pop {r7, pc} + 8011ac0: 0801dfe8 .word 0x0801dfe8 + 8011ac4: 0801e14c .word 0x0801e14c + 8011ac8: 0801e048 .word 0x0801e048 -08011abc : +08011acc : * @return non-zero on failure, zero on success. * */ u8_t pbuf_add_header(struct pbuf *p, size_t header_size_increment) { - 8011abc: b580 push {r7, lr} - 8011abe: b082 sub sp, #8 - 8011ac0: af00 add r7, sp, #0 - 8011ac2: 6078 str r0, [r7, #4] - 8011ac4: 6039 str r1, [r7, #0] + 8011acc: b580 push {r7, lr} + 8011ace: b082 sub sp, #8 + 8011ad0: af00 add r7, sp, #0 + 8011ad2: 6078 str r0, [r7, #4] + 8011ad4: 6039 str r1, [r7, #0] return pbuf_add_header_impl(p, header_size_increment, 0); - 8011ac6: 2200 movs r2, #0 - 8011ac8: 6839 ldr r1, [r7, #0] - 8011aca: 6878 ldr r0, [r7, #4] - 8011acc: f7ff ff8e bl 80119ec - 8011ad0: 4603 mov r3, r0 -} - 8011ad2: 4618 mov r0, r3 - 8011ad4: 3708 adds r7, #8 - 8011ad6: 46bd mov sp, r7 - 8011ad8: bd80 pop {r7, pc} + 8011ad6: 2200 movs r2, #0 + 8011ad8: 6839 ldr r1, [r7, #0] + 8011ada: 6878 ldr r0, [r7, #4] + 8011adc: f7ff ff8e bl 80119fc + 8011ae0: 4603 mov r3, r0 +} + 8011ae2: 4618 mov r0, r3 + 8011ae4: 3708 adds r7, #8 + 8011ae6: 46bd mov sp, r7 + 8011ae8: bd80 pop {r7, pc} ... -08011adc : +08011aec : * @return non-zero on failure, zero on success. * */ u8_t pbuf_remove_header(struct pbuf *p, size_t header_size_decrement) { - 8011adc: b580 push {r7, lr} - 8011ade: b084 sub sp, #16 - 8011ae0: af00 add r7, sp, #0 - 8011ae2: 6078 str r0, [r7, #4] - 8011ae4: 6039 str r1, [r7, #0] + 8011aec: b580 push {r7, lr} + 8011aee: b084 sub sp, #16 + 8011af0: af00 add r7, sp, #0 + 8011af2: 6078 str r0, [r7, #4] + 8011af4: 6039 str r1, [r7, #0] void *payload; u16_t increment_magnitude; LWIP_ASSERT("p != NULL", p != NULL); - 8011ae6: 687b ldr r3, [r7, #4] - 8011ae8: 2b00 cmp r3, #0 - 8011aea: d106 bne.n 8011afa - 8011aec: 4b20 ldr r3, [pc, #128] ; (8011b70 ) - 8011aee: f240 224b movw r2, #587 ; 0x24b - 8011af2: 4920 ldr r1, [pc, #128] ; (8011b74 ) - 8011af4: 4820 ldr r0, [pc, #128] ; (8011b78 ) - 8011af6: f00a fda7 bl 801c648 + 8011af6: 687b ldr r3, [r7, #4] + 8011af8: 2b00 cmp r3, #0 + 8011afa: d106 bne.n 8011b0a + 8011afc: 4b20 ldr r3, [pc, #128] ; (8011b80 ) + 8011afe: f240 224b movw r2, #587 ; 0x24b + 8011b02: 4920 ldr r1, [pc, #128] ; (8011b84 ) + 8011b04: 4820 ldr r0, [pc, #128] ; (8011b88 ) + 8011b06: f00a fda7 bl 801c658 if ((p == NULL) || (header_size_decrement > 0xFFFF)) { - 8011afa: 687b ldr r3, [r7, #4] - 8011afc: 2b00 cmp r3, #0 - 8011afe: d003 beq.n 8011b08 - 8011b00: 683b ldr r3, [r7, #0] - 8011b02: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8011b06: d301 bcc.n 8011b0c + 8011b0a: 687b ldr r3, [r7, #4] + 8011b0c: 2b00 cmp r3, #0 + 8011b0e: d003 beq.n 8011b18 + 8011b10: 683b ldr r3, [r7, #0] + 8011b12: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8011b16: d301 bcc.n 8011b1c return 1; - 8011b08: 2301 movs r3, #1 - 8011b0a: e02c b.n 8011b66 + 8011b18: 2301 movs r3, #1 + 8011b1a: e02c b.n 8011b76 } if (header_size_decrement == 0) { - 8011b0c: 683b ldr r3, [r7, #0] - 8011b0e: 2b00 cmp r3, #0 - 8011b10: d101 bne.n 8011b16 + 8011b1c: 683b ldr r3, [r7, #0] + 8011b1e: 2b00 cmp r3, #0 + 8011b20: d101 bne.n 8011b26 return 0; - 8011b12: 2300 movs r3, #0 - 8011b14: e027 b.n 8011b66 + 8011b22: 2300 movs r3, #0 + 8011b24: e027 b.n 8011b76 } increment_magnitude = (u16_t)header_size_decrement; - 8011b16: 683b ldr r3, [r7, #0] - 8011b18: 81fb strh r3, [r7, #14] + 8011b26: 683b ldr r3, [r7, #0] + 8011b28: 81fb strh r3, [r7, #14] /* Check that we aren't going to move off the end of the pbuf */ LWIP_ERROR("increment_magnitude <= p->len", (increment_magnitude <= p->len), return 1;); - 8011b1a: 687b ldr r3, [r7, #4] - 8011b1c: 895b ldrh r3, [r3, #10] - 8011b1e: 89fa ldrh r2, [r7, #14] - 8011b20: 429a cmp r2, r3 - 8011b22: d908 bls.n 8011b36 - 8011b24: 4b12 ldr r3, [pc, #72] ; (8011b70 ) - 8011b26: f240 2255 movw r2, #597 ; 0x255 - 8011b2a: 4914 ldr r1, [pc, #80] ; (8011b7c ) - 8011b2c: 4812 ldr r0, [pc, #72] ; (8011b78 ) - 8011b2e: f00a fd8b bl 801c648 - 8011b32: 2301 movs r3, #1 - 8011b34: e017 b.n 8011b66 + 8011b2a: 687b ldr r3, [r7, #4] + 8011b2c: 895b ldrh r3, [r3, #10] + 8011b2e: 89fa ldrh r2, [r7, #14] + 8011b30: 429a cmp r2, r3 + 8011b32: d908 bls.n 8011b46 + 8011b34: 4b12 ldr r3, [pc, #72] ; (8011b80 ) + 8011b36: f240 2255 movw r2, #597 ; 0x255 + 8011b3a: 4914 ldr r1, [pc, #80] ; (8011b8c ) + 8011b3c: 4812 ldr r0, [pc, #72] ; (8011b88 ) + 8011b3e: f00a fd8b bl 801c658 + 8011b42: 2301 movs r3, #1 + 8011b44: e017 b.n 8011b76 /* remember current payload pointer */ payload = p->payload; - 8011b36: 687b ldr r3, [r7, #4] - 8011b38: 685b ldr r3, [r3, #4] - 8011b3a: 60bb str r3, [r7, #8] + 8011b46: 687b ldr r3, [r7, #4] + 8011b48: 685b ldr r3, [r3, #4] + 8011b4a: 60bb str r3, [r7, #8] LWIP_UNUSED_ARG(payload); /* only used in LWIP_DEBUGF below */ /* increase payload pointer (guarded by length check above) */ p->payload = (u8_t *)p->payload + header_size_decrement; - 8011b3c: 687b ldr r3, [r7, #4] - 8011b3e: 685a ldr r2, [r3, #4] - 8011b40: 683b ldr r3, [r7, #0] - 8011b42: 441a add r2, r3 - 8011b44: 687b ldr r3, [r7, #4] - 8011b46: 605a str r2, [r3, #4] + 8011b4c: 687b ldr r3, [r7, #4] + 8011b4e: 685a ldr r2, [r3, #4] + 8011b50: 683b ldr r3, [r7, #0] + 8011b52: 441a add r2, r3 + 8011b54: 687b ldr r3, [r7, #4] + 8011b56: 605a str r2, [r3, #4] /* modify pbuf length fields */ p->len = (u16_t)(p->len - increment_magnitude); - 8011b48: 687b ldr r3, [r7, #4] - 8011b4a: 895a ldrh r2, [r3, #10] - 8011b4c: 89fb ldrh r3, [r7, #14] - 8011b4e: 1ad3 subs r3, r2, r3 - 8011b50: b29a uxth r2, r3 - 8011b52: 687b ldr r3, [r7, #4] - 8011b54: 815a strh r2, [r3, #10] + 8011b58: 687b ldr r3, [r7, #4] + 8011b5a: 895a ldrh r2, [r3, #10] + 8011b5c: 89fb ldrh r3, [r7, #14] + 8011b5e: 1ad3 subs r3, r2, r3 + 8011b60: b29a uxth r2, r3 + 8011b62: 687b ldr r3, [r7, #4] + 8011b64: 815a strh r2, [r3, #10] p->tot_len = (u16_t)(p->tot_len - increment_magnitude); - 8011b56: 687b ldr r3, [r7, #4] - 8011b58: 891a ldrh r2, [r3, #8] - 8011b5a: 89fb ldrh r3, [r7, #14] - 8011b5c: 1ad3 subs r3, r2, r3 - 8011b5e: b29a uxth r2, r3 - 8011b60: 687b ldr r3, [r7, #4] - 8011b62: 811a strh r2, [r3, #8] + 8011b66: 687b ldr r3, [r7, #4] + 8011b68: 891a ldrh r2, [r3, #8] + 8011b6a: 89fb ldrh r3, [r7, #14] + 8011b6c: 1ad3 subs r3, r2, r3 + 8011b6e: b29a uxth r2, r3 + 8011b70: 687b ldr r3, [r7, #4] + 8011b72: 811a strh r2, [r3, #8] LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_remove_header: old %p new %p (%"U16_F")\n", (void *)payload, (void *)p->payload, increment_magnitude)); return 0; - 8011b64: 2300 movs r3, #0 + 8011b74: 2300 movs r3, #0 } - 8011b66: 4618 mov r0, r3 - 8011b68: 3710 adds r7, #16 - 8011b6a: 46bd mov sp, r7 - 8011b6c: bd80 pop {r7, pc} - 8011b6e: bf00 nop - 8011b70: 0801dfd8 .word 0x0801dfd8 - 8011b74: 0801e13c .word 0x0801e13c - 8011b78: 0801e038 .word 0x0801e038 - 8011b7c: 0801e148 .word 0x0801e148 + 8011b76: 4618 mov r0, r3 + 8011b78: 3710 adds r7, #16 + 8011b7a: 46bd mov sp, r7 + 8011b7c: bd80 pop {r7, pc} + 8011b7e: bf00 nop + 8011b80: 0801dfe8 .word 0x0801dfe8 + 8011b84: 0801e14c .word 0x0801e14c + 8011b88: 0801e048 .word 0x0801e048 + 8011b8c: 0801e158 .word 0x0801e158 -08011b80 : +08011b90 : static u8_t pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force) { - 8011b80: b580 push {r7, lr} - 8011b82: b082 sub sp, #8 - 8011b84: af00 add r7, sp, #0 - 8011b86: 6078 str r0, [r7, #4] - 8011b88: 460b mov r3, r1 - 8011b8a: 807b strh r3, [r7, #2] - 8011b8c: 4613 mov r3, r2 - 8011b8e: 707b strb r3, [r7, #1] + 8011b90: b580 push {r7, lr} + 8011b92: b082 sub sp, #8 + 8011b94: af00 add r7, sp, #0 + 8011b96: 6078 str r0, [r7, #4] + 8011b98: 460b mov r3, r1 + 8011b9a: 807b strh r3, [r7, #2] + 8011b9c: 4613 mov r3, r2 + 8011b9e: 707b strb r3, [r7, #1] if (header_size_increment < 0) { - 8011b90: f9b7 3002 ldrsh.w r3, [r7, #2] - 8011b94: 2b00 cmp r3, #0 - 8011b96: da08 bge.n 8011baa + 8011ba0: f9b7 3002 ldrsh.w r3, [r7, #2] + 8011ba4: 2b00 cmp r3, #0 + 8011ba6: da08 bge.n 8011bba return pbuf_remove_header(p, (size_t) - header_size_increment); - 8011b98: f9b7 3002 ldrsh.w r3, [r7, #2] - 8011b9c: 425b negs r3, r3 - 8011b9e: 4619 mov r1, r3 - 8011ba0: 6878 ldr r0, [r7, #4] - 8011ba2: f7ff ff9b bl 8011adc - 8011ba6: 4603 mov r3, r0 - 8011ba8: e007 b.n 8011bba + 8011ba8: f9b7 3002 ldrsh.w r3, [r7, #2] + 8011bac: 425b negs r3, r3 + 8011bae: 4619 mov r1, r3 + 8011bb0: 6878 ldr r0, [r7, #4] + 8011bb2: f7ff ff9b bl 8011aec + 8011bb6: 4603 mov r3, r0 + 8011bb8: e007 b.n 8011bca } else { return pbuf_add_header_impl(p, (size_t)header_size_increment, force); - 8011baa: f9b7 3002 ldrsh.w r3, [r7, #2] - 8011bae: 787a ldrb r2, [r7, #1] - 8011bb0: 4619 mov r1, r3 - 8011bb2: 6878 ldr r0, [r7, #4] - 8011bb4: f7ff ff1a bl 80119ec - 8011bb8: 4603 mov r3, r0 + 8011bba: f9b7 3002 ldrsh.w r3, [r7, #2] + 8011bbe: 787a ldrb r2, [r7, #1] + 8011bc0: 4619 mov r1, r3 + 8011bc2: 6878 ldr r0, [r7, #4] + 8011bc4: f7ff ff1a bl 80119fc + 8011bc8: 4603 mov r3, r0 } } - 8011bba: 4618 mov r0, r3 - 8011bbc: 3708 adds r7, #8 - 8011bbe: 46bd mov sp, r7 - 8011bc0: bd80 pop {r7, pc} + 8011bca: 4618 mov r0, r3 + 8011bcc: 3708 adds r7, #8 + 8011bce: 46bd mov sp, r7 + 8011bd0: bd80 pop {r7, pc} -08011bc2 : +08011bd2 : * Same as pbuf_header but does not check if 'header_size > 0' is allowed. * This is used internally only, to allow PBUF_REF for RX. */ u8_t pbuf_header_force(struct pbuf *p, s16_t header_size_increment) { - 8011bc2: b580 push {r7, lr} - 8011bc4: b082 sub sp, #8 - 8011bc6: af00 add r7, sp, #0 - 8011bc8: 6078 str r0, [r7, #4] - 8011bca: 460b mov r3, r1 - 8011bcc: 807b strh r3, [r7, #2] + 8011bd2: b580 push {r7, lr} + 8011bd4: b082 sub sp, #8 + 8011bd6: af00 add r7, sp, #0 + 8011bd8: 6078 str r0, [r7, #4] + 8011bda: 460b mov r3, r1 + 8011bdc: 807b strh r3, [r7, #2] return pbuf_header_impl(p, header_size_increment, 1); - 8011bce: f9b7 3002 ldrsh.w r3, [r7, #2] - 8011bd2: 2201 movs r2, #1 - 8011bd4: 4619 mov r1, r3 - 8011bd6: 6878 ldr r0, [r7, #4] - 8011bd8: f7ff ffd2 bl 8011b80 - 8011bdc: 4603 mov r3, r0 -} - 8011bde: 4618 mov r0, r3 - 8011be0: 3708 adds r7, #8 - 8011be2: 46bd mov sp, r7 - 8011be4: bd80 pop {r7, pc} + 8011bde: f9b7 3002 ldrsh.w r3, [r7, #2] + 8011be2: 2201 movs r2, #1 + 8011be4: 4619 mov r1, r3 + 8011be6: 6878 ldr r0, [r7, #4] + 8011be8: f7ff ffd2 bl 8011b90 + 8011bec: 4603 mov r3, r0 +} + 8011bee: 4618 mov r0, r3 + 8011bf0: 3708 adds r7, #8 + 8011bf2: 46bd mov sp, r7 + 8011bf4: bd80 pop {r7, pc} ... -08011be8 : +08011bf8 : * 1->1->1 becomes ....... * */ u8_t pbuf_free(struct pbuf *p) { - 8011be8: b580 push {r7, lr} - 8011bea: b088 sub sp, #32 - 8011bec: af00 add r7, sp, #0 - 8011bee: 6078 str r0, [r7, #4] + 8011bf8: b580 push {r7, lr} + 8011bfa: b088 sub sp, #32 + 8011bfc: af00 add r7, sp, #0 + 8011bfe: 6078 str r0, [r7, #4] u8_t alloc_src; struct pbuf *q; u8_t count; if (p == NULL) { - 8011bf0: 687b ldr r3, [r7, #4] - 8011bf2: 2b00 cmp r3, #0 - 8011bf4: d10b bne.n 8011c0e + 8011c00: 687b ldr r3, [r7, #4] + 8011c02: 2b00 cmp r3, #0 + 8011c04: d10b bne.n 8011c1e LWIP_ASSERT("p != NULL", p != NULL); - 8011bf6: 687b ldr r3, [r7, #4] - 8011bf8: 2b00 cmp r3, #0 - 8011bfa: d106 bne.n 8011c0a - 8011bfc: 4b3b ldr r3, [pc, #236] ; (8011cec ) - 8011bfe: f44f 7237 mov.w r2, #732 ; 0x2dc - 8011c02: 493b ldr r1, [pc, #236] ; (8011cf0 ) - 8011c04: 483b ldr r0, [pc, #236] ; (8011cf4 ) - 8011c06: f00a fd1f bl 801c648 + 8011c06: 687b ldr r3, [r7, #4] + 8011c08: 2b00 cmp r3, #0 + 8011c0a: d106 bne.n 8011c1a + 8011c0c: 4b3b ldr r3, [pc, #236] ; (8011cfc ) + 8011c0e: f44f 7237 mov.w r2, #732 ; 0x2dc + 8011c12: 493b ldr r1, [pc, #236] ; (8011d00 ) + 8011c14: 483b ldr r0, [pc, #236] ; (8011d04 ) + 8011c16: f00a fd1f bl 801c658 /* if assertions are disabled, proceed with debug output */ LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("pbuf_free(p == NULL) was called.\n")); return 0; - 8011c0a: 2300 movs r3, #0 - 8011c0c: e069 b.n 8011ce2 + 8011c1a: 2300 movs r3, #0 + 8011c1c: e069 b.n 8011cf2 } LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free(%p)\n", (void *)p)); PERF_START; count = 0; - 8011c0e: 2300 movs r3, #0 - 8011c10: 77fb strb r3, [r7, #31] + 8011c1e: 2300 movs r3, #0 + 8011c20: 77fb strb r3, [r7, #31] /* de-allocate all consecutive pbufs from the head of the chain that * obtain a zero reference count after decrementing*/ while (p != NULL) { - 8011c12: e062 b.n 8011cda + 8011c22: e062 b.n 8011cea LWIP_PBUF_REF_T ref; SYS_ARCH_DECL_PROTECT(old_level); /* Since decrementing ref cannot be guaranteed to be a single machine operation * we must protect it. We put the new ref into a local variable to prevent * further protection. */ SYS_ARCH_PROTECT(old_level); - 8011c14: f00a fc9a bl 801c54c - 8011c18: 61b8 str r0, [r7, #24] + 8011c24: f00a fc9a bl 801c55c + 8011c28: 61b8 str r0, [r7, #24] /* all pbufs in a chain are referenced at least once */ LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0); - 8011c1a: 687b ldr r3, [r7, #4] - 8011c1c: 7b9b ldrb r3, [r3, #14] - 8011c1e: 2b00 cmp r3, #0 - 8011c20: d106 bne.n 8011c30 - 8011c22: 4b32 ldr r3, [pc, #200] ; (8011cec ) - 8011c24: f240 22f1 movw r2, #753 ; 0x2f1 - 8011c28: 4933 ldr r1, [pc, #204] ; (8011cf8 ) - 8011c2a: 4832 ldr r0, [pc, #200] ; (8011cf4 ) - 8011c2c: f00a fd0c bl 801c648 + 8011c2a: 687b ldr r3, [r7, #4] + 8011c2c: 7b9b ldrb r3, [r3, #14] + 8011c2e: 2b00 cmp r3, #0 + 8011c30: d106 bne.n 8011c40 + 8011c32: 4b32 ldr r3, [pc, #200] ; (8011cfc ) + 8011c34: f240 22f1 movw r2, #753 ; 0x2f1 + 8011c38: 4933 ldr r1, [pc, #204] ; (8011d08 ) + 8011c3a: 4832 ldr r0, [pc, #200] ; (8011d04 ) + 8011c3c: f00a fd0c bl 801c658 /* decrease reference count (number of pointers to pbuf) */ ref = --(p->ref); - 8011c30: 687b ldr r3, [r7, #4] - 8011c32: 7b9b ldrb r3, [r3, #14] - 8011c34: 3b01 subs r3, #1 - 8011c36: b2da uxtb r2, r3 - 8011c38: 687b ldr r3, [r7, #4] - 8011c3a: 739a strb r2, [r3, #14] - 8011c3c: 687b ldr r3, [r7, #4] - 8011c3e: 7b9b ldrb r3, [r3, #14] - 8011c40: 75fb strb r3, [r7, #23] + 8011c40: 687b ldr r3, [r7, #4] + 8011c42: 7b9b ldrb r3, [r3, #14] + 8011c44: 3b01 subs r3, #1 + 8011c46: b2da uxtb r2, r3 + 8011c48: 687b ldr r3, [r7, #4] + 8011c4a: 739a strb r2, [r3, #14] + 8011c4c: 687b ldr r3, [r7, #4] + 8011c4e: 7b9b ldrb r3, [r3, #14] + 8011c50: 75fb strb r3, [r7, #23] SYS_ARCH_UNPROTECT(old_level); - 8011c42: 69b8 ldr r0, [r7, #24] - 8011c44: f00a fc90 bl 801c568 + 8011c52: 69b8 ldr r0, [r7, #24] + 8011c54: f00a fc90 bl 801c578 /* this pbuf is no longer referenced to? */ if (ref == 0) { - 8011c48: 7dfb ldrb r3, [r7, #23] - 8011c4a: 2b00 cmp r3, #0 - 8011c4c: d143 bne.n 8011cd6 + 8011c58: 7dfb ldrb r3, [r7, #23] + 8011c5a: 2b00 cmp r3, #0 + 8011c5c: d143 bne.n 8011ce6 /* remember next pbuf in chain for next iteration */ q = p->next; - 8011c4e: 687b ldr r3, [r7, #4] - 8011c50: 681b ldr r3, [r3, #0] - 8011c52: 613b str r3, [r7, #16] + 8011c5e: 687b ldr r3, [r7, #4] + 8011c60: 681b ldr r3, [r3, #0] + 8011c62: 613b str r3, [r7, #16] LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: deallocating %p\n", (void *)p)); alloc_src = pbuf_get_allocsrc(p); - 8011c54: 687b ldr r3, [r7, #4] - 8011c56: 7b1b ldrb r3, [r3, #12] - 8011c58: f003 030f and.w r3, r3, #15 - 8011c5c: 73fb strb r3, [r7, #15] + 8011c64: 687b ldr r3, [r7, #4] + 8011c66: 7b1b ldrb r3, [r3, #12] + 8011c68: f003 030f and.w r3, r3, #15 + 8011c6c: 73fb strb r3, [r7, #15] #if LWIP_SUPPORT_CUSTOM_PBUF /* is this a custom pbuf? */ if ((p->flags & PBUF_FLAG_IS_CUSTOM) != 0) { - 8011c5e: 687b ldr r3, [r7, #4] - 8011c60: 7b5b ldrb r3, [r3, #13] - 8011c62: f003 0302 and.w r3, r3, #2 - 8011c66: 2b00 cmp r3, #0 - 8011c68: d011 beq.n 8011c8e + 8011c6e: 687b ldr r3, [r7, #4] + 8011c70: 7b5b ldrb r3, [r3, #13] + 8011c72: f003 0302 and.w r3, r3, #2 + 8011c76: 2b00 cmp r3, #0 + 8011c78: d011 beq.n 8011c9e struct pbuf_custom *pc = (struct pbuf_custom *)p; - 8011c6a: 687b ldr r3, [r7, #4] - 8011c6c: 60bb str r3, [r7, #8] + 8011c7a: 687b ldr r3, [r7, #4] + 8011c7c: 60bb str r3, [r7, #8] LWIP_ASSERT("pc->custom_free_function != NULL", pc->custom_free_function != NULL); - 8011c6e: 68bb ldr r3, [r7, #8] - 8011c70: 691b ldr r3, [r3, #16] - 8011c72: 2b00 cmp r3, #0 - 8011c74: d106 bne.n 8011c84 - 8011c76: 4b1d ldr r3, [pc, #116] ; (8011cec ) - 8011c78: f240 22ff movw r2, #767 ; 0x2ff - 8011c7c: 491f ldr r1, [pc, #124] ; (8011cfc ) - 8011c7e: 481d ldr r0, [pc, #116] ; (8011cf4 ) - 8011c80: f00a fce2 bl 801c648 + 8011c7e: 68bb ldr r3, [r7, #8] + 8011c80: 691b ldr r3, [r3, #16] + 8011c82: 2b00 cmp r3, #0 + 8011c84: d106 bne.n 8011c94 + 8011c86: 4b1d ldr r3, [pc, #116] ; (8011cfc ) + 8011c88: f240 22ff movw r2, #767 ; 0x2ff + 8011c8c: 491f ldr r1, [pc, #124] ; (8011d0c ) + 8011c8e: 481d ldr r0, [pc, #116] ; (8011d04 ) + 8011c90: f00a fce2 bl 801c658 pc->custom_free_function(p); - 8011c84: 68bb ldr r3, [r7, #8] - 8011c86: 691b ldr r3, [r3, #16] - 8011c88: 6878 ldr r0, [r7, #4] - 8011c8a: 4798 blx r3 - 8011c8c: e01d b.n 8011cca + 8011c94: 68bb ldr r3, [r7, #8] + 8011c96: 691b ldr r3, [r3, #16] + 8011c98: 6878 ldr r0, [r7, #4] + 8011c9a: 4798 blx r3 + 8011c9c: e01d b.n 8011cda } else #endif /* LWIP_SUPPORT_CUSTOM_PBUF */ { /* is this a pbuf from the pool? */ if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF_POOL) { - 8011c8e: 7bfb ldrb r3, [r7, #15] - 8011c90: 2b02 cmp r3, #2 - 8011c92: d104 bne.n 8011c9e + 8011c9e: 7bfb ldrb r3, [r7, #15] + 8011ca0: 2b02 cmp r3, #2 + 8011ca2: d104 bne.n 8011cae memp_free(MEMP_PBUF_POOL, p); - 8011c94: 6879 ldr r1, [r7, #4] - 8011c96: 200c movs r0, #12 - 8011c98: f7ff f8fa bl 8010e90 - 8011c9c: e015 b.n 8011cca + 8011ca4: 6879 ldr r1, [r7, #4] + 8011ca6: 200c movs r0, #12 + 8011ca8: f7ff f8fa bl 8010ea0 + 8011cac: e015 b.n 8011cda /* is this a ROM or RAM referencing pbuf? */ } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_MEMP_PBUF) { - 8011c9e: 7bfb ldrb r3, [r7, #15] - 8011ca0: 2b01 cmp r3, #1 - 8011ca2: d104 bne.n 8011cae + 8011cae: 7bfb ldrb r3, [r7, #15] + 8011cb0: 2b01 cmp r3, #1 + 8011cb2: d104 bne.n 8011cbe memp_free(MEMP_PBUF, p); - 8011ca4: 6879 ldr r1, [r7, #4] - 8011ca6: 200b movs r0, #11 - 8011ca8: f7ff f8f2 bl 8010e90 - 8011cac: e00d b.n 8011cca + 8011cb4: 6879 ldr r1, [r7, #4] + 8011cb6: 200b movs r0, #11 + 8011cb8: f7ff f8f2 bl 8010ea0 + 8011cbc: e00d b.n 8011cda /* type == PBUF_RAM */ } else if (alloc_src == PBUF_TYPE_ALLOC_SRC_MASK_STD_HEAP) { - 8011cae: 7bfb ldrb r3, [r7, #15] - 8011cb0: 2b00 cmp r3, #0 - 8011cb2: d103 bne.n 8011cbc + 8011cbe: 7bfb ldrb r3, [r7, #15] + 8011cc0: 2b00 cmp r3, #0 + 8011cc2: d103 bne.n 8011ccc mem_free(p); - 8011cb4: 6878 ldr r0, [r7, #4] - 8011cb6: f7fe fd7d bl 80107b4 - 8011cba: e006 b.n 8011cca + 8011cc4: 6878 ldr r0, [r7, #4] + 8011cc6: f7fe fd7d bl 80107c4 + 8011cca: e006 b.n 8011cda } else { /* @todo: support freeing other types */ LWIP_ASSERT("invalid pbuf type", 0); - 8011cbc: 4b0b ldr r3, [pc, #44] ; (8011cec ) - 8011cbe: f240 320f movw r2, #783 ; 0x30f - 8011cc2: 490f ldr r1, [pc, #60] ; (8011d00 ) - 8011cc4: 480b ldr r0, [pc, #44] ; (8011cf4 ) - 8011cc6: f00a fcbf bl 801c648 + 8011ccc: 4b0b ldr r3, [pc, #44] ; (8011cfc ) + 8011cce: f240 320f movw r2, #783 ; 0x30f + 8011cd2: 490f ldr r1, [pc, #60] ; (8011d10 ) + 8011cd4: 480b ldr r0, [pc, #44] ; (8011d04 ) + 8011cd6: f00a fcbf bl 801c658 } } count++; - 8011cca: 7ffb ldrb r3, [r7, #31] - 8011ccc: 3301 adds r3, #1 - 8011cce: 77fb strb r3, [r7, #31] + 8011cda: 7ffb ldrb r3, [r7, #31] + 8011cdc: 3301 adds r3, #1 + 8011cde: 77fb strb r3, [r7, #31] /* proceed to next pbuf */ p = q; - 8011cd0: 693b ldr r3, [r7, #16] - 8011cd2: 607b str r3, [r7, #4] - 8011cd4: e001 b.n 8011cda + 8011ce0: 693b ldr r3, [r7, #16] + 8011ce2: 607b str r3, [r7, #4] + 8011ce4: e001 b.n 8011cea /* p->ref > 0, this pbuf is still referenced to */ /* (and so the remaining pbufs in chain as well) */ } else { LWIP_DEBUGF( PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_free: %p has ref %"U16_F", ending here.\n", (void *)p, (u16_t)ref)); /* stop walking through the chain */ p = NULL; - 8011cd6: 2300 movs r3, #0 - 8011cd8: 607b str r3, [r7, #4] + 8011ce6: 2300 movs r3, #0 + 8011ce8: 607b str r3, [r7, #4] while (p != NULL) { - 8011cda: 687b ldr r3, [r7, #4] - 8011cdc: 2b00 cmp r3, #0 - 8011cde: d199 bne.n 8011c14 + 8011cea: 687b ldr r3, [r7, #4] + 8011cec: 2b00 cmp r3, #0 + 8011cee: d199 bne.n 8011c24 } } PERF_STOP("pbuf_free"); /* return number of de-allocated pbufs */ return count; - 8011ce0: 7ffb ldrb r3, [r7, #31] -} - 8011ce2: 4618 mov r0, r3 - 8011ce4: 3720 adds r7, #32 - 8011ce6: 46bd mov sp, r7 - 8011ce8: bd80 pop {r7, pc} - 8011cea: bf00 nop - 8011cec: 0801dfd8 .word 0x0801dfd8 - 8011cf0: 0801e13c .word 0x0801e13c - 8011cf4: 0801e038 .word 0x0801e038 - 8011cf8: 0801e168 .word 0x0801e168 - 8011cfc: 0801e180 .word 0x0801e180 - 8011d00: 0801e1a4 .word 0x0801e1a4 - -08011d04 : + 8011cf0: 7ffb ldrb r3, [r7, #31] +} + 8011cf2: 4618 mov r0, r3 + 8011cf4: 3720 adds r7, #32 + 8011cf6: 46bd mov sp, r7 + 8011cf8: bd80 pop {r7, pc} + 8011cfa: bf00 nop + 8011cfc: 0801dfe8 .word 0x0801dfe8 + 8011d00: 0801e14c .word 0x0801e14c + 8011d04: 0801e048 .word 0x0801e048 + 8011d08: 0801e178 .word 0x0801e178 + 8011d0c: 0801e190 .word 0x0801e190 + 8011d10: 0801e1b4 .word 0x0801e1b4 + +08011d14 : * @param p first pbuf of chain * @return the number of pbufs in a chain */ u16_t pbuf_clen(const struct pbuf *p) { - 8011d04: b480 push {r7} - 8011d06: b085 sub sp, #20 - 8011d08: af00 add r7, sp, #0 - 8011d0a: 6078 str r0, [r7, #4] + 8011d14: b480 push {r7} + 8011d16: b085 sub sp, #20 + 8011d18: af00 add r7, sp, #0 + 8011d1a: 6078 str r0, [r7, #4] u16_t len; len = 0; - 8011d0c: 2300 movs r3, #0 - 8011d0e: 81fb strh r3, [r7, #14] + 8011d1c: 2300 movs r3, #0 + 8011d1e: 81fb strh r3, [r7, #14] while (p != NULL) { - 8011d10: e005 b.n 8011d1e + 8011d20: e005 b.n 8011d2e ++len; - 8011d12: 89fb ldrh r3, [r7, #14] - 8011d14: 3301 adds r3, #1 - 8011d16: 81fb strh r3, [r7, #14] + 8011d22: 89fb ldrh r3, [r7, #14] + 8011d24: 3301 adds r3, #1 + 8011d26: 81fb strh r3, [r7, #14] p = p->next; - 8011d18: 687b ldr r3, [r7, #4] - 8011d1a: 681b ldr r3, [r3, #0] - 8011d1c: 607b str r3, [r7, #4] + 8011d28: 687b ldr r3, [r7, #4] + 8011d2a: 681b ldr r3, [r3, #0] + 8011d2c: 607b str r3, [r7, #4] while (p != NULL) { - 8011d1e: 687b ldr r3, [r7, #4] - 8011d20: 2b00 cmp r3, #0 - 8011d22: d1f6 bne.n 8011d12 + 8011d2e: 687b ldr r3, [r7, #4] + 8011d30: 2b00 cmp r3, #0 + 8011d32: d1f6 bne.n 8011d22 } return len; - 8011d24: 89fb ldrh r3, [r7, #14] + 8011d34: 89fb ldrh r3, [r7, #14] } - 8011d26: 4618 mov r0, r3 - 8011d28: 3714 adds r7, #20 - 8011d2a: 46bd mov sp, r7 - 8011d2c: f85d 7b04 ldr.w r7, [sp], #4 - 8011d30: 4770 bx lr + 8011d36: 4618 mov r0, r3 + 8011d38: 3714 adds r7, #20 + 8011d3a: 46bd mov sp, r7 + 8011d3c: f85d 7b04 ldr.w r7, [sp], #4 + 8011d40: 4770 bx lr ... -08011d34 : +08011d44 : * @param p pbuf to increase reference counter of * */ void pbuf_ref(struct pbuf *p) { - 8011d34: b580 push {r7, lr} - 8011d36: b084 sub sp, #16 - 8011d38: af00 add r7, sp, #0 - 8011d3a: 6078 str r0, [r7, #4] + 8011d44: b580 push {r7, lr} + 8011d46: b084 sub sp, #16 + 8011d48: af00 add r7, sp, #0 + 8011d4a: 6078 str r0, [r7, #4] /* pbuf given? */ if (p != NULL) { - 8011d3c: 687b ldr r3, [r7, #4] - 8011d3e: 2b00 cmp r3, #0 - 8011d40: d016 beq.n 8011d70 + 8011d4c: 687b ldr r3, [r7, #4] + 8011d4e: 2b00 cmp r3, #0 + 8011d50: d016 beq.n 8011d80 SYS_ARCH_SET(p->ref, (LWIP_PBUF_REF_T)(p->ref + 1)); - 8011d42: f00a fc03 bl 801c54c - 8011d46: 60f8 str r0, [r7, #12] - 8011d48: 687b ldr r3, [r7, #4] - 8011d4a: 7b9b ldrb r3, [r3, #14] - 8011d4c: 3301 adds r3, #1 - 8011d4e: b2da uxtb r2, r3 - 8011d50: 687b ldr r3, [r7, #4] - 8011d52: 739a strb r2, [r3, #14] - 8011d54: 68f8 ldr r0, [r7, #12] - 8011d56: f00a fc07 bl 801c568 + 8011d52: f00a fc03 bl 801c55c + 8011d56: 60f8 str r0, [r7, #12] + 8011d58: 687b ldr r3, [r7, #4] + 8011d5a: 7b9b ldrb r3, [r3, #14] + 8011d5c: 3301 adds r3, #1 + 8011d5e: b2da uxtb r2, r3 + 8011d60: 687b ldr r3, [r7, #4] + 8011d62: 739a strb r2, [r3, #14] + 8011d64: 68f8 ldr r0, [r7, #12] + 8011d66: f00a fc07 bl 801c578 LWIP_ASSERT("pbuf ref overflow", p->ref > 0); - 8011d5a: 687b ldr r3, [r7, #4] - 8011d5c: 7b9b ldrb r3, [r3, #14] - 8011d5e: 2b00 cmp r3, #0 - 8011d60: d106 bne.n 8011d70 - 8011d62: 4b05 ldr r3, [pc, #20] ; (8011d78 ) - 8011d64: f240 3242 movw r2, #834 ; 0x342 - 8011d68: 4904 ldr r1, [pc, #16] ; (8011d7c ) - 8011d6a: 4805 ldr r0, [pc, #20] ; (8011d80 ) - 8011d6c: f00a fc6c bl 801c648 - } -} - 8011d70: bf00 nop - 8011d72: 3710 adds r7, #16 - 8011d74: 46bd mov sp, r7 - 8011d76: bd80 pop {r7, pc} - 8011d78: 0801dfd8 .word 0x0801dfd8 - 8011d7c: 0801e1b8 .word 0x0801e1b8 - 8011d80: 0801e038 .word 0x0801e038 - -08011d84 : + 8011d6a: 687b ldr r3, [r7, #4] + 8011d6c: 7b9b ldrb r3, [r3, #14] + 8011d6e: 2b00 cmp r3, #0 + 8011d70: d106 bne.n 8011d80 + 8011d72: 4b05 ldr r3, [pc, #20] ; (8011d88 ) + 8011d74: f240 3242 movw r2, #834 ; 0x342 + 8011d78: 4904 ldr r1, [pc, #16] ; (8011d8c ) + 8011d7a: 4805 ldr r0, [pc, #20] ; (8011d90 ) + 8011d7c: f00a fc6c bl 801c658 + } +} + 8011d80: bf00 nop + 8011d82: 3710 adds r7, #16 + 8011d84: 46bd mov sp, r7 + 8011d86: bd80 pop {r7, pc} + 8011d88: 0801dfe8 .word 0x0801dfe8 + 8011d8c: 0801e1c8 .word 0x0801e1c8 + 8011d90: 0801e048 .word 0x0801e048 + +08011d94 : * * @see pbuf_chain() */ void pbuf_cat(struct pbuf *h, struct pbuf *t) { - 8011d84: b580 push {r7, lr} - 8011d86: b084 sub sp, #16 - 8011d88: af00 add r7, sp, #0 - 8011d8a: 6078 str r0, [r7, #4] - 8011d8c: 6039 str r1, [r7, #0] + 8011d94: b580 push {r7, lr} + 8011d96: b084 sub sp, #16 + 8011d98: af00 add r7, sp, #0 + 8011d9a: 6078 str r0, [r7, #4] + 8011d9c: 6039 str r1, [r7, #0] struct pbuf *p; LWIP_ERROR("(h != NULL) && (t != NULL) (programmer violates API)", - 8011d8e: 687b ldr r3, [r7, #4] - 8011d90: 2b00 cmp r3, #0 - 8011d92: d002 beq.n 8011d9a - 8011d94: 683b ldr r3, [r7, #0] - 8011d96: 2b00 cmp r3, #0 - 8011d98: d107 bne.n 8011daa - 8011d9a: 4b20 ldr r3, [pc, #128] ; (8011e1c ) - 8011d9c: f240 325a movw r2, #858 ; 0x35a - 8011da0: 491f ldr r1, [pc, #124] ; (8011e20 ) - 8011da2: 4820 ldr r0, [pc, #128] ; (8011e24 ) - 8011da4: f00a fc50 bl 801c648 - 8011da8: e034 b.n 8011e14 + 8011d9e: 687b ldr r3, [r7, #4] + 8011da0: 2b00 cmp r3, #0 + 8011da2: d002 beq.n 8011daa + 8011da4: 683b ldr r3, [r7, #0] + 8011da6: 2b00 cmp r3, #0 + 8011da8: d107 bne.n 8011dba + 8011daa: 4b20 ldr r3, [pc, #128] ; (8011e2c ) + 8011dac: f240 325a movw r2, #858 ; 0x35a + 8011db0: 491f ldr r1, [pc, #124] ; (8011e30 ) + 8011db2: 4820 ldr r0, [pc, #128] ; (8011e34 ) + 8011db4: f00a fc50 bl 801c658 + 8011db8: e034 b.n 8011e24 ((h != NULL) && (t != NULL)), return;); /* proceed to last pbuf of chain */ for (p = h; p->next != NULL; p = p->next) { - 8011daa: 687b ldr r3, [r7, #4] - 8011dac: 60fb str r3, [r7, #12] - 8011dae: e00a b.n 8011dc6 + 8011dba: 687b ldr r3, [r7, #4] + 8011dbc: 60fb str r3, [r7, #12] + 8011dbe: e00a b.n 8011dd6 /* add total length of second chain to all totals of first chain */ p->tot_len = (u16_t)(p->tot_len + t->tot_len); - 8011db0: 68fb ldr r3, [r7, #12] - 8011db2: 891a ldrh r2, [r3, #8] - 8011db4: 683b ldr r3, [r7, #0] - 8011db6: 891b ldrh r3, [r3, #8] - 8011db8: 4413 add r3, r2 - 8011dba: b29a uxth r2, r3 - 8011dbc: 68fb ldr r3, [r7, #12] - 8011dbe: 811a strh r2, [r3, #8] - for (p = h; p->next != NULL; p = p->next) { 8011dc0: 68fb ldr r3, [r7, #12] - 8011dc2: 681b ldr r3, [r3, #0] - 8011dc4: 60fb str r3, [r7, #12] - 8011dc6: 68fb ldr r3, [r7, #12] - 8011dc8: 681b ldr r3, [r3, #0] - 8011dca: 2b00 cmp r3, #0 - 8011dcc: d1f0 bne.n 8011db0 + 8011dc2: 891a ldrh r2, [r3, #8] + 8011dc4: 683b ldr r3, [r7, #0] + 8011dc6: 891b ldrh r3, [r3, #8] + 8011dc8: 4413 add r3, r2 + 8011dca: b29a uxth r2, r3 + 8011dcc: 68fb ldr r3, [r7, #12] + 8011dce: 811a strh r2, [r3, #8] + for (p = h; p->next != NULL; p = p->next) { + 8011dd0: 68fb ldr r3, [r7, #12] + 8011dd2: 681b ldr r3, [r3, #0] + 8011dd4: 60fb str r3, [r7, #12] + 8011dd6: 68fb ldr r3, [r7, #12] + 8011dd8: 681b ldr r3, [r3, #0] + 8011dda: 2b00 cmp r3, #0 + 8011ddc: d1f0 bne.n 8011dc0 } /* { p is last pbuf of first h chain, p->next == NULL } */ LWIP_ASSERT("p->tot_len == p->len (of last pbuf in chain)", p->tot_len == p->len); - 8011dce: 68fb ldr r3, [r7, #12] - 8011dd0: 891a ldrh r2, [r3, #8] - 8011dd2: 68fb ldr r3, [r7, #12] - 8011dd4: 895b ldrh r3, [r3, #10] - 8011dd6: 429a cmp r2, r3 - 8011dd8: d006 beq.n 8011de8 - 8011dda: 4b10 ldr r3, [pc, #64] ; (8011e1c ) - 8011ddc: f240 3262 movw r2, #866 ; 0x362 - 8011de0: 4911 ldr r1, [pc, #68] ; (8011e28 ) - 8011de2: 4810 ldr r0, [pc, #64] ; (8011e24 ) - 8011de4: f00a fc30 bl 801c648 + 8011dde: 68fb ldr r3, [r7, #12] + 8011de0: 891a ldrh r2, [r3, #8] + 8011de2: 68fb ldr r3, [r7, #12] + 8011de4: 895b ldrh r3, [r3, #10] + 8011de6: 429a cmp r2, r3 + 8011de8: d006 beq.n 8011df8 + 8011dea: 4b10 ldr r3, [pc, #64] ; (8011e2c ) + 8011dec: f240 3262 movw r2, #866 ; 0x362 + 8011df0: 4911 ldr r1, [pc, #68] ; (8011e38 ) + 8011df2: 4810 ldr r0, [pc, #64] ; (8011e34 ) + 8011df4: f00a fc30 bl 801c658 LWIP_ASSERT("p->next == NULL", p->next == NULL); - 8011de8: 68fb ldr r3, [r7, #12] - 8011dea: 681b ldr r3, [r3, #0] - 8011dec: 2b00 cmp r3, #0 - 8011dee: d006 beq.n 8011dfe - 8011df0: 4b0a ldr r3, [pc, #40] ; (8011e1c ) - 8011df2: f240 3263 movw r2, #867 ; 0x363 - 8011df6: 490d ldr r1, [pc, #52] ; (8011e2c ) - 8011df8: 480a ldr r0, [pc, #40] ; (8011e24 ) - 8011dfa: f00a fc25 bl 801c648 + 8011df8: 68fb ldr r3, [r7, #12] + 8011dfa: 681b ldr r3, [r3, #0] + 8011dfc: 2b00 cmp r3, #0 + 8011dfe: d006 beq.n 8011e0e + 8011e00: 4b0a ldr r3, [pc, #40] ; (8011e2c ) + 8011e02: f240 3263 movw r2, #867 ; 0x363 + 8011e06: 490d ldr r1, [pc, #52] ; (8011e3c ) + 8011e08: 480a ldr r0, [pc, #40] ; (8011e34 ) + 8011e0a: f00a fc25 bl 801c658 /* add total length of second chain to last pbuf total of first chain */ p->tot_len = (u16_t)(p->tot_len + t->tot_len); - 8011dfe: 68fb ldr r3, [r7, #12] - 8011e00: 891a ldrh r2, [r3, #8] - 8011e02: 683b ldr r3, [r7, #0] - 8011e04: 891b ldrh r3, [r3, #8] - 8011e06: 4413 add r3, r2 - 8011e08: b29a uxth r2, r3 - 8011e0a: 68fb ldr r3, [r7, #12] - 8011e0c: 811a strh r2, [r3, #8] + 8011e0e: 68fb ldr r3, [r7, #12] + 8011e10: 891a ldrh r2, [r3, #8] + 8011e12: 683b ldr r3, [r7, #0] + 8011e14: 891b ldrh r3, [r3, #8] + 8011e16: 4413 add r3, r2 + 8011e18: b29a uxth r2, r3 + 8011e1a: 68fb ldr r3, [r7, #12] + 8011e1c: 811a strh r2, [r3, #8] /* chain last pbuf of head (p) with first of tail (t) */ p->next = t; - 8011e0e: 68fb ldr r3, [r7, #12] - 8011e10: 683a ldr r2, [r7, #0] - 8011e12: 601a str r2, [r3, #0] + 8011e1e: 68fb ldr r3, [r7, #12] + 8011e20: 683a ldr r2, [r7, #0] + 8011e22: 601a str r2, [r3, #0] /* p->next now references t, but the caller will drop its reference to t, * so netto there is no change to the reference count of t. */ } - 8011e14: 3710 adds r7, #16 - 8011e16: 46bd mov sp, r7 - 8011e18: bd80 pop {r7, pc} - 8011e1a: bf00 nop - 8011e1c: 0801dfd8 .word 0x0801dfd8 - 8011e20: 0801e1cc .word 0x0801e1cc - 8011e24: 0801e038 .word 0x0801e038 - 8011e28: 0801e204 .word 0x0801e204 - 8011e2c: 0801e234 .word 0x0801e234 - -08011e30 : + 8011e24: 3710 adds r7, #16 + 8011e26: 46bd mov sp, r7 + 8011e28: bd80 pop {r7, pc} + 8011e2a: bf00 nop + 8011e2c: 0801dfe8 .word 0x0801dfe8 + 8011e30: 0801e1dc .word 0x0801e1dc + 8011e34: 0801e048 .word 0x0801e048 + 8011e38: 0801e214 .word 0x0801e214 + 8011e3c: 0801e244 .word 0x0801e244 + +08011e40 : * The ->ref field of the first pbuf of the tail chain is adjusted. * */ void pbuf_chain(struct pbuf *h, struct pbuf *t) { - 8011e30: b580 push {r7, lr} - 8011e32: b082 sub sp, #8 - 8011e34: af00 add r7, sp, #0 - 8011e36: 6078 str r0, [r7, #4] - 8011e38: 6039 str r1, [r7, #0] + 8011e40: b580 push {r7, lr} + 8011e42: b082 sub sp, #8 + 8011e44: af00 add r7, sp, #0 + 8011e46: 6078 str r0, [r7, #4] + 8011e48: 6039 str r1, [r7, #0] pbuf_cat(h, t); - 8011e3a: 6839 ldr r1, [r7, #0] - 8011e3c: 6878 ldr r0, [r7, #4] - 8011e3e: f7ff ffa1 bl 8011d84 + 8011e4a: 6839 ldr r1, [r7, #0] + 8011e4c: 6878 ldr r0, [r7, #4] + 8011e4e: f7ff ffa1 bl 8011d94 /* t is now referenced by h */ pbuf_ref(t); - 8011e42: 6838 ldr r0, [r7, #0] - 8011e44: f7ff ff76 bl 8011d34 + 8011e52: 6838 ldr r0, [r7, #0] + 8011e54: f7ff ff76 bl 8011d44 LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_chain: %p references %p\n", (void *)h, (void *)t)); } - 8011e48: bf00 nop - 8011e4a: 3708 adds r7, #8 - 8011e4c: 46bd mov sp, r7 - 8011e4e: bd80 pop {r7, pc} + 8011e58: bf00 nop + 8011e5a: 3708 adds r7, #8 + 8011e5c: 46bd mov sp, r7 + 8011e5e: bd80 pop {r7, pc} -08011e50 : +08011e60 : * ERR_ARG if one of the pbufs is NULL or p_to is not big * enough to hold p_from */ err_t pbuf_copy(struct pbuf *p_to, const struct pbuf *p_from) { - 8011e50: b580 push {r7, lr} - 8011e52: b086 sub sp, #24 - 8011e54: af00 add r7, sp, #0 - 8011e56: 6078 str r0, [r7, #4] - 8011e58: 6039 str r1, [r7, #0] + 8011e60: b580 push {r7, lr} + 8011e62: b086 sub sp, #24 + 8011e64: af00 add r7, sp, #0 + 8011e66: 6078 str r0, [r7, #4] + 8011e68: 6039 str r1, [r7, #0] size_t offset_to = 0, offset_from = 0, len; - 8011e5a: 2300 movs r3, #0 - 8011e5c: 617b str r3, [r7, #20] - 8011e5e: 2300 movs r3, #0 - 8011e60: 613b str r3, [r7, #16] + 8011e6a: 2300 movs r3, #0 + 8011e6c: 617b str r3, [r7, #20] + 8011e6e: 2300 movs r3, #0 + 8011e70: 613b str r3, [r7, #16] LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy(%p, %p)\n", (const void *)p_to, (const void *)p_from)); /* is the target big enough to hold the source? */ LWIP_ERROR("pbuf_copy: target not big enough to hold source", ((p_to != NULL) && - 8011e62: 687b ldr r3, [r7, #4] - 8011e64: 2b00 cmp r3, #0 - 8011e66: d008 beq.n 8011e7a - 8011e68: 683b ldr r3, [r7, #0] - 8011e6a: 2b00 cmp r3, #0 - 8011e6c: d005 beq.n 8011e7a - 8011e6e: 687b ldr r3, [r7, #4] - 8011e70: 891a ldrh r2, [r3, #8] - 8011e72: 683b ldr r3, [r7, #0] - 8011e74: 891b ldrh r3, [r3, #8] - 8011e76: 429a cmp r2, r3 - 8011e78: d209 bcs.n 8011e8e - 8011e7a: 4b57 ldr r3, [pc, #348] ; (8011fd8 ) - 8011e7c: f240 32ca movw r2, #970 ; 0x3ca - 8011e80: 4956 ldr r1, [pc, #344] ; (8011fdc ) - 8011e82: 4857 ldr r0, [pc, #348] ; (8011fe0 ) - 8011e84: f00a fbe0 bl 801c648 - 8011e88: f06f 030f mvn.w r3, #15 - 8011e8c: e09f b.n 8011fce + 8011e72: 687b ldr r3, [r7, #4] + 8011e74: 2b00 cmp r3, #0 + 8011e76: d008 beq.n 8011e8a + 8011e78: 683b ldr r3, [r7, #0] + 8011e7a: 2b00 cmp r3, #0 + 8011e7c: d005 beq.n 8011e8a + 8011e7e: 687b ldr r3, [r7, #4] + 8011e80: 891a ldrh r2, [r3, #8] + 8011e82: 683b ldr r3, [r7, #0] + 8011e84: 891b ldrh r3, [r3, #8] + 8011e86: 429a cmp r2, r3 + 8011e88: d209 bcs.n 8011e9e + 8011e8a: 4b57 ldr r3, [pc, #348] ; (8011fe8 ) + 8011e8c: f240 32ca movw r2, #970 ; 0x3ca + 8011e90: 4956 ldr r1, [pc, #344] ; (8011fec ) + 8011e92: 4857 ldr r0, [pc, #348] ; (8011ff0 ) + 8011e94: f00a fbe0 bl 801c658 + 8011e98: f06f 030f mvn.w r3, #15 + 8011e9c: e09f b.n 8011fde (p_from != NULL) && (p_to->tot_len >= p_from->tot_len)), return ERR_ARG;); /* iterate through pbuf chain */ do { /* copy one part of the original chain */ if ((p_to->len - offset_to) >= (p_from->len - offset_from)) { - 8011e8e: 687b ldr r3, [r7, #4] - 8011e90: 895b ldrh r3, [r3, #10] - 8011e92: 461a mov r2, r3 - 8011e94: 697b ldr r3, [r7, #20] - 8011e96: 1ad2 subs r2, r2, r3 - 8011e98: 683b ldr r3, [r7, #0] - 8011e9a: 895b ldrh r3, [r3, #10] - 8011e9c: 4619 mov r1, r3 - 8011e9e: 693b ldr r3, [r7, #16] - 8011ea0: 1acb subs r3, r1, r3 - 8011ea2: 429a cmp r2, r3 - 8011ea4: d306 bcc.n 8011eb4 + 8011e9e: 687b ldr r3, [r7, #4] + 8011ea0: 895b ldrh r3, [r3, #10] + 8011ea2: 461a mov r2, r3 + 8011ea4: 697b ldr r3, [r7, #20] + 8011ea6: 1ad2 subs r2, r2, r3 + 8011ea8: 683b ldr r3, [r7, #0] + 8011eaa: 895b ldrh r3, [r3, #10] + 8011eac: 4619 mov r1, r3 + 8011eae: 693b ldr r3, [r7, #16] + 8011eb0: 1acb subs r3, r1, r3 + 8011eb2: 429a cmp r2, r3 + 8011eb4: d306 bcc.n 8011ec4 /* complete current p_from fits into current p_to */ len = p_from->len - offset_from; - 8011ea6: 683b ldr r3, [r7, #0] - 8011ea8: 895b ldrh r3, [r3, #10] - 8011eaa: 461a mov r2, r3 - 8011eac: 693b ldr r3, [r7, #16] - 8011eae: 1ad3 subs r3, r2, r3 - 8011eb0: 60fb str r3, [r7, #12] - 8011eb2: e005 b.n 8011ec0 + 8011eb6: 683b ldr r3, [r7, #0] + 8011eb8: 895b ldrh r3, [r3, #10] + 8011eba: 461a mov r2, r3 + 8011ebc: 693b ldr r3, [r7, #16] + 8011ebe: 1ad3 subs r3, r2, r3 + 8011ec0: 60fb str r3, [r7, #12] + 8011ec2: e005 b.n 8011ed0 } else { /* current p_from does not fit into current p_to */ len = p_to->len - offset_to; - 8011eb4: 687b ldr r3, [r7, #4] - 8011eb6: 895b ldrh r3, [r3, #10] - 8011eb8: 461a mov r2, r3 - 8011eba: 697b ldr r3, [r7, #20] - 8011ebc: 1ad3 subs r3, r2, r3 - 8011ebe: 60fb str r3, [r7, #12] + 8011ec4: 687b ldr r3, [r7, #4] + 8011ec6: 895b ldrh r3, [r3, #10] + 8011ec8: 461a mov r2, r3 + 8011eca: 697b ldr r3, [r7, #20] + 8011ecc: 1ad3 subs r3, r2, r3 + 8011ece: 60fb str r3, [r7, #12] } MEMCPY((u8_t *)p_to->payload + offset_to, (u8_t *)p_from->payload + offset_from, len); - 8011ec0: 687b ldr r3, [r7, #4] - 8011ec2: 685a ldr r2, [r3, #4] - 8011ec4: 697b ldr r3, [r7, #20] - 8011ec6: 18d0 adds r0, r2, r3 - 8011ec8: 683b ldr r3, [r7, #0] - 8011eca: 685a ldr r2, [r3, #4] - 8011ecc: 693b ldr r3, [r7, #16] - 8011ece: 4413 add r3, r2 - 8011ed0: 68fa ldr r2, [r7, #12] - 8011ed2: 4619 mov r1, r3 - 8011ed4: f00a fb8b bl 801c5ee + 8011ed0: 687b ldr r3, [r7, #4] + 8011ed2: 685a ldr r2, [r3, #4] + 8011ed4: 697b ldr r3, [r7, #20] + 8011ed6: 18d0 adds r0, r2, r3 + 8011ed8: 683b ldr r3, [r7, #0] + 8011eda: 685a ldr r2, [r3, #4] + 8011edc: 693b ldr r3, [r7, #16] + 8011ede: 4413 add r3, r2 + 8011ee0: 68fa ldr r2, [r7, #12] + 8011ee2: 4619 mov r1, r3 + 8011ee4: f00a fb8b bl 801c5fe offset_to += len; - 8011ed8: 697a ldr r2, [r7, #20] - 8011eda: 68fb ldr r3, [r7, #12] - 8011edc: 4413 add r3, r2 - 8011ede: 617b str r3, [r7, #20] + 8011ee8: 697a ldr r2, [r7, #20] + 8011eea: 68fb ldr r3, [r7, #12] + 8011eec: 4413 add r3, r2 + 8011eee: 617b str r3, [r7, #20] offset_from += len; - 8011ee0: 693a ldr r2, [r7, #16] - 8011ee2: 68fb ldr r3, [r7, #12] - 8011ee4: 4413 add r3, r2 - 8011ee6: 613b str r3, [r7, #16] + 8011ef0: 693a ldr r2, [r7, #16] + 8011ef2: 68fb ldr r3, [r7, #12] + 8011ef4: 4413 add r3, r2 + 8011ef6: 613b str r3, [r7, #16] LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len); - 8011ee8: 687b ldr r3, [r7, #4] - 8011eea: 895b ldrh r3, [r3, #10] - 8011eec: 461a mov r2, r3 - 8011eee: 697b ldr r3, [r7, #20] - 8011ef0: 4293 cmp r3, r2 - 8011ef2: d906 bls.n 8011f02 - 8011ef4: 4b38 ldr r3, [pc, #224] ; (8011fd8 ) - 8011ef6: f240 32d9 movw r2, #985 ; 0x3d9 - 8011efa: 493a ldr r1, [pc, #232] ; (8011fe4 ) - 8011efc: 4838 ldr r0, [pc, #224] ; (8011fe0 ) - 8011efe: f00a fba3 bl 801c648 + 8011ef8: 687b ldr r3, [r7, #4] + 8011efa: 895b ldrh r3, [r3, #10] + 8011efc: 461a mov r2, r3 + 8011efe: 697b ldr r3, [r7, #20] + 8011f00: 4293 cmp r3, r2 + 8011f02: d906 bls.n 8011f12 + 8011f04: 4b38 ldr r3, [pc, #224] ; (8011fe8 ) + 8011f06: f240 32d9 movw r2, #985 ; 0x3d9 + 8011f0a: 493a ldr r1, [pc, #232] ; (8011ff4 ) + 8011f0c: 4838 ldr r0, [pc, #224] ; (8011ff0 ) + 8011f0e: f00a fba3 bl 801c658 LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len); - 8011f02: 683b ldr r3, [r7, #0] - 8011f04: 895b ldrh r3, [r3, #10] - 8011f06: 461a mov r2, r3 - 8011f08: 693b ldr r3, [r7, #16] - 8011f0a: 4293 cmp r3, r2 - 8011f0c: d906 bls.n 8011f1c - 8011f0e: 4b32 ldr r3, [pc, #200] ; (8011fd8 ) - 8011f10: f240 32da movw r2, #986 ; 0x3da - 8011f14: 4934 ldr r1, [pc, #208] ; (8011fe8 ) - 8011f16: 4832 ldr r0, [pc, #200] ; (8011fe0 ) - 8011f18: f00a fb96 bl 801c648 + 8011f12: 683b ldr r3, [r7, #0] + 8011f14: 895b ldrh r3, [r3, #10] + 8011f16: 461a mov r2, r3 + 8011f18: 693b ldr r3, [r7, #16] + 8011f1a: 4293 cmp r3, r2 + 8011f1c: d906 bls.n 8011f2c + 8011f1e: 4b32 ldr r3, [pc, #200] ; (8011fe8 ) + 8011f20: f240 32da movw r2, #986 ; 0x3da + 8011f24: 4934 ldr r1, [pc, #208] ; (8011ff8 ) + 8011f26: 4832 ldr r0, [pc, #200] ; (8011ff0 ) + 8011f28: f00a fb96 bl 801c658 if (offset_from >= p_from->len) { - 8011f1c: 683b ldr r3, [r7, #0] - 8011f1e: 895b ldrh r3, [r3, #10] - 8011f20: 461a mov r2, r3 - 8011f22: 693b ldr r3, [r7, #16] - 8011f24: 4293 cmp r3, r2 - 8011f26: d304 bcc.n 8011f32 + 8011f2c: 683b ldr r3, [r7, #0] + 8011f2e: 895b ldrh r3, [r3, #10] + 8011f30: 461a mov r2, r3 + 8011f32: 693b ldr r3, [r7, #16] + 8011f34: 4293 cmp r3, r2 + 8011f36: d304 bcc.n 8011f42 /* on to next p_from (if any) */ offset_from = 0; - 8011f28: 2300 movs r3, #0 - 8011f2a: 613b str r3, [r7, #16] + 8011f38: 2300 movs r3, #0 + 8011f3a: 613b str r3, [r7, #16] p_from = p_from->next; - 8011f2c: 683b ldr r3, [r7, #0] - 8011f2e: 681b ldr r3, [r3, #0] - 8011f30: 603b str r3, [r7, #0] + 8011f3c: 683b ldr r3, [r7, #0] + 8011f3e: 681b ldr r3, [r3, #0] + 8011f40: 603b str r3, [r7, #0] } if (offset_to == p_to->len) { - 8011f32: 687b ldr r3, [r7, #4] - 8011f34: 895b ldrh r3, [r3, #10] - 8011f36: 461a mov r2, r3 - 8011f38: 697b ldr r3, [r7, #20] - 8011f3a: 4293 cmp r3, r2 - 8011f3c: d114 bne.n 8011f68 + 8011f42: 687b ldr r3, [r7, #4] + 8011f44: 895b ldrh r3, [r3, #10] + 8011f46: 461a mov r2, r3 + 8011f48: 697b ldr r3, [r7, #20] + 8011f4a: 4293 cmp r3, r2 + 8011f4c: d114 bne.n 8011f78 /* on to next p_to (if any) */ offset_to = 0; - 8011f3e: 2300 movs r3, #0 - 8011f40: 617b str r3, [r7, #20] + 8011f4e: 2300 movs r3, #0 + 8011f50: 617b str r3, [r7, #20] p_to = p_to->next; - 8011f42: 687b ldr r3, [r7, #4] - 8011f44: 681b ldr r3, [r3, #0] - 8011f46: 607b str r3, [r7, #4] + 8011f52: 687b ldr r3, [r7, #4] + 8011f54: 681b ldr r3, [r3, #0] + 8011f56: 607b str r3, [r7, #4] LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL), return ERR_ARG;); - 8011f48: 687b ldr r3, [r7, #4] - 8011f4a: 2b00 cmp r3, #0 - 8011f4c: d10c bne.n 8011f68 - 8011f4e: 683b ldr r3, [r7, #0] - 8011f50: 2b00 cmp r3, #0 - 8011f52: d009 beq.n 8011f68 - 8011f54: 4b20 ldr r3, [pc, #128] ; (8011fd8 ) - 8011f56: f44f 7279 mov.w r2, #996 ; 0x3e4 - 8011f5a: 4924 ldr r1, [pc, #144] ; (8011fec ) - 8011f5c: 4820 ldr r0, [pc, #128] ; (8011fe0 ) - 8011f5e: f00a fb73 bl 801c648 - 8011f62: f06f 030f mvn.w r3, #15 - 8011f66: e032 b.n 8011fce + 8011f58: 687b ldr r3, [r7, #4] + 8011f5a: 2b00 cmp r3, #0 + 8011f5c: d10c bne.n 8011f78 + 8011f5e: 683b ldr r3, [r7, #0] + 8011f60: 2b00 cmp r3, #0 + 8011f62: d009 beq.n 8011f78 + 8011f64: 4b20 ldr r3, [pc, #128] ; (8011fe8 ) + 8011f66: f44f 7279 mov.w r2, #996 ; 0x3e4 + 8011f6a: 4924 ldr r1, [pc, #144] ; (8011ffc ) + 8011f6c: 4820 ldr r0, [pc, #128] ; (8011ff0 ) + 8011f6e: f00a fb73 bl 801c658 + 8011f72: f06f 030f mvn.w r3, #15 + 8011f76: e032 b.n 8011fde } if ((p_from != NULL) && (p_from->len == p_from->tot_len)) { - 8011f68: 683b ldr r3, [r7, #0] - 8011f6a: 2b00 cmp r3, #0 - 8011f6c: d013 beq.n 8011f96 - 8011f6e: 683b ldr r3, [r7, #0] - 8011f70: 895a ldrh r2, [r3, #10] - 8011f72: 683b ldr r3, [r7, #0] - 8011f74: 891b ldrh r3, [r3, #8] - 8011f76: 429a cmp r2, r3 - 8011f78: d10d bne.n 8011f96 + 8011f78: 683b ldr r3, [r7, #0] + 8011f7a: 2b00 cmp r3, #0 + 8011f7c: d013 beq.n 8011fa6 + 8011f7e: 683b ldr r3, [r7, #0] + 8011f80: 895a ldrh r2, [r3, #10] + 8011f82: 683b ldr r3, [r7, #0] + 8011f84: 891b ldrh r3, [r3, #8] + 8011f86: 429a cmp r2, r3 + 8011f88: d10d bne.n 8011fa6 /* don't copy more than one packet! */ LWIP_ERROR("pbuf_copy() does not allow packet queues!", - 8011f7a: 683b ldr r3, [r7, #0] - 8011f7c: 681b ldr r3, [r3, #0] - 8011f7e: 2b00 cmp r3, #0 - 8011f80: d009 beq.n 8011f96 - 8011f82: 4b15 ldr r3, [pc, #84] ; (8011fd8 ) - 8011f84: f240 32ea movw r2, #1002 ; 0x3ea - 8011f88: 4919 ldr r1, [pc, #100] ; (8011ff0 ) - 8011f8a: 4815 ldr r0, [pc, #84] ; (8011fe0 ) - 8011f8c: f00a fb5c bl 801c648 - 8011f90: f06f 0305 mvn.w r3, #5 - 8011f94: e01b b.n 8011fce + 8011f8a: 683b ldr r3, [r7, #0] + 8011f8c: 681b ldr r3, [r3, #0] + 8011f8e: 2b00 cmp r3, #0 + 8011f90: d009 beq.n 8011fa6 + 8011f92: 4b15 ldr r3, [pc, #84] ; (8011fe8 ) + 8011f94: f240 32ea movw r2, #1002 ; 0x3ea + 8011f98: 4919 ldr r1, [pc, #100] ; (8012000 ) + 8011f9a: 4815 ldr r0, [pc, #84] ; (8011ff0 ) + 8011f9c: f00a fb5c bl 801c658 + 8011fa0: f06f 0305 mvn.w r3, #5 + 8011fa4: e01b b.n 8011fde (p_from->next == NULL), return ERR_VAL;); } if ((p_to != NULL) && (p_to->len == p_to->tot_len)) { - 8011f96: 687b ldr r3, [r7, #4] - 8011f98: 2b00 cmp r3, #0 - 8011f9a: d013 beq.n 8011fc4 - 8011f9c: 687b ldr r3, [r7, #4] - 8011f9e: 895a ldrh r2, [r3, #10] - 8011fa0: 687b ldr r3, [r7, #4] - 8011fa2: 891b ldrh r3, [r3, #8] - 8011fa4: 429a cmp r2, r3 - 8011fa6: d10d bne.n 8011fc4 + 8011fa6: 687b ldr r3, [r7, #4] + 8011fa8: 2b00 cmp r3, #0 + 8011faa: d013 beq.n 8011fd4 + 8011fac: 687b ldr r3, [r7, #4] + 8011fae: 895a ldrh r2, [r3, #10] + 8011fb0: 687b ldr r3, [r7, #4] + 8011fb2: 891b ldrh r3, [r3, #8] + 8011fb4: 429a cmp r2, r3 + 8011fb6: d10d bne.n 8011fd4 /* don't copy more than one packet! */ LWIP_ERROR("pbuf_copy() does not allow packet queues!", - 8011fa8: 687b ldr r3, [r7, #4] - 8011faa: 681b ldr r3, [r3, #0] - 8011fac: 2b00 cmp r3, #0 - 8011fae: d009 beq.n 8011fc4 - 8011fb0: 4b09 ldr r3, [pc, #36] ; (8011fd8 ) - 8011fb2: f240 32ef movw r2, #1007 ; 0x3ef - 8011fb6: 490e ldr r1, [pc, #56] ; (8011ff0 ) - 8011fb8: 4809 ldr r0, [pc, #36] ; (8011fe0 ) - 8011fba: f00a fb45 bl 801c648 - 8011fbe: f06f 0305 mvn.w r3, #5 - 8011fc2: e004 b.n 8011fce + 8011fb8: 687b ldr r3, [r7, #4] + 8011fba: 681b ldr r3, [r3, #0] + 8011fbc: 2b00 cmp r3, #0 + 8011fbe: d009 beq.n 8011fd4 + 8011fc0: 4b09 ldr r3, [pc, #36] ; (8011fe8 ) + 8011fc2: f240 32ef movw r2, #1007 ; 0x3ef + 8011fc6: 490e ldr r1, [pc, #56] ; (8012000 ) + 8011fc8: 4809 ldr r0, [pc, #36] ; (8011ff0 ) + 8011fca: f00a fb45 bl 801c658 + 8011fce: f06f 0305 mvn.w r3, #5 + 8011fd2: e004 b.n 8011fde (p_to->next == NULL), return ERR_VAL;); } } while (p_from); - 8011fc4: 683b ldr r3, [r7, #0] - 8011fc6: 2b00 cmp r3, #0 - 8011fc8: f47f af61 bne.w 8011e8e + 8011fd4: 683b ldr r3, [r7, #0] + 8011fd6: 2b00 cmp r3, #0 + 8011fd8: f47f af61 bne.w 8011e9e LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE, ("pbuf_copy: end of chain reached.\n")); return ERR_OK; - 8011fcc: 2300 movs r3, #0 -} - 8011fce: 4618 mov r0, r3 - 8011fd0: 3718 adds r7, #24 - 8011fd2: 46bd mov sp, r7 - 8011fd4: bd80 pop {r7, pc} - 8011fd6: bf00 nop - 8011fd8: 0801dfd8 .word 0x0801dfd8 - 8011fdc: 0801e280 .word 0x0801e280 - 8011fe0: 0801e038 .word 0x0801e038 - 8011fe4: 0801e2b0 .word 0x0801e2b0 - 8011fe8: 0801e2c8 .word 0x0801e2c8 - 8011fec: 0801e2e4 .word 0x0801e2e4 - 8011ff0: 0801e2f4 .word 0x0801e2f4 - -08011ff4 : + 8011fdc: 2300 movs r3, #0 +} + 8011fde: 4618 mov r0, r3 + 8011fe0: 3718 adds r7, #24 + 8011fe2: 46bd mov sp, r7 + 8011fe4: bd80 pop {r7, pc} + 8011fe6: bf00 nop + 8011fe8: 0801dfe8 .word 0x0801dfe8 + 8011fec: 0801e290 .word 0x0801e290 + 8011ff0: 0801e048 .word 0x0801e048 + 8011ff4: 0801e2c0 .word 0x0801e2c0 + 8011ff8: 0801e2d8 .word 0x0801e2d8 + 8011ffc: 0801e2f4 .word 0x0801e2f4 + 8012000: 0801e304 .word 0x0801e304 + +08012004 : * @param offset offset into the packet buffer from where to begin copying len bytes * @return the number of bytes copied, or 0 on failure */ u16_t pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset) { - 8011ff4: b580 push {r7, lr} - 8011ff6: b088 sub sp, #32 - 8011ff8: af00 add r7, sp, #0 - 8011ffa: 60f8 str r0, [r7, #12] - 8011ffc: 60b9 str r1, [r7, #8] - 8011ffe: 4611 mov r1, r2 - 8012000: 461a mov r2, r3 - 8012002: 460b mov r3, r1 - 8012004: 80fb strh r3, [r7, #6] - 8012006: 4613 mov r3, r2 - 8012008: 80bb strh r3, [r7, #4] + 8012004: b580 push {r7, lr} + 8012006: b088 sub sp, #32 + 8012008: af00 add r7, sp, #0 + 801200a: 60f8 str r0, [r7, #12] + 801200c: 60b9 str r1, [r7, #8] + 801200e: 4611 mov r1, r2 + 8012010: 461a mov r2, r3 + 8012012: 460b mov r3, r1 + 8012014: 80fb strh r3, [r7, #6] + 8012016: 4613 mov r3, r2 + 8012018: 80bb strh r3, [r7, #4] const struct pbuf *p; u16_t left = 0; - 801200a: 2300 movs r3, #0 - 801200c: 837b strh r3, [r7, #26] + 801201a: 2300 movs r3, #0 + 801201c: 837b strh r3, [r7, #26] u16_t buf_copy_len; u16_t copied_total = 0; - 801200e: 2300 movs r3, #0 - 8012010: 82fb strh r3, [r7, #22] + 801201e: 2300 movs r3, #0 + 8012020: 82fb strh r3, [r7, #22] LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;); - 8012012: 68fb ldr r3, [r7, #12] - 8012014: 2b00 cmp r3, #0 - 8012016: d108 bne.n 801202a - 8012018: 4b2b ldr r3, [pc, #172] ; (80120c8 ) - 801201a: f240 420a movw r2, #1034 ; 0x40a - 801201e: 492b ldr r1, [pc, #172] ; (80120cc ) - 8012020: 482b ldr r0, [pc, #172] ; (80120d0 ) - 8012022: f00a fb11 bl 801c648 - 8012026: 2300 movs r3, #0 - 8012028: e04a b.n 80120c0 + 8012022: 68fb ldr r3, [r7, #12] + 8012024: 2b00 cmp r3, #0 + 8012026: d108 bne.n 801203a + 8012028: 4b2b ldr r3, [pc, #172] ; (80120d8 ) + 801202a: f240 420a movw r2, #1034 ; 0x40a + 801202e: 492b ldr r1, [pc, #172] ; (80120dc ) + 8012030: 482b ldr r0, [pc, #172] ; (80120e0 ) + 8012032: f00a fb11 bl 801c658 + 8012036: 2300 movs r3, #0 + 8012038: e04a b.n 80120d0 LWIP_ERROR("pbuf_copy_partial: invalid dataptr", (dataptr != NULL), return 0;); - 801202a: 68bb ldr r3, [r7, #8] - 801202c: 2b00 cmp r3, #0 - 801202e: d108 bne.n 8012042 - 8012030: 4b25 ldr r3, [pc, #148] ; (80120c8 ) - 8012032: f240 420b movw r2, #1035 ; 0x40b - 8012036: 4927 ldr r1, [pc, #156] ; (80120d4 ) - 8012038: 4825 ldr r0, [pc, #148] ; (80120d0 ) - 801203a: f00a fb05 bl 801c648 - 801203e: 2300 movs r3, #0 - 8012040: e03e b.n 80120c0 + 801203a: 68bb ldr r3, [r7, #8] + 801203c: 2b00 cmp r3, #0 + 801203e: d108 bne.n 8012052 + 8012040: 4b25 ldr r3, [pc, #148] ; (80120d8 ) + 8012042: f240 420b movw r2, #1035 ; 0x40b + 8012046: 4927 ldr r1, [pc, #156] ; (80120e4 ) + 8012048: 4825 ldr r0, [pc, #148] ; (80120e0 ) + 801204a: f00a fb05 bl 801c658 + 801204e: 2300 movs r3, #0 + 8012050: e03e b.n 80120d0 /* Note some systems use byte copy if dataptr or one of the pbuf payload pointers are unaligned. */ for (p = buf; len != 0 && p != NULL; p = p->next) { - 8012042: 68fb ldr r3, [r7, #12] - 8012044: 61fb str r3, [r7, #28] - 8012046: e034 b.n 80120b2 + 8012052: 68fb ldr r3, [r7, #12] + 8012054: 61fb str r3, [r7, #28] + 8012056: e034 b.n 80120c2 if ((offset != 0) && (offset >= p->len)) { - 8012048: 88bb ldrh r3, [r7, #4] - 801204a: 2b00 cmp r3, #0 - 801204c: d00a beq.n 8012064 - 801204e: 69fb ldr r3, [r7, #28] - 8012050: 895b ldrh r3, [r3, #10] - 8012052: 88ba ldrh r2, [r7, #4] - 8012054: 429a cmp r2, r3 - 8012056: d305 bcc.n 8012064 + 8012058: 88bb ldrh r3, [r7, #4] + 801205a: 2b00 cmp r3, #0 + 801205c: d00a beq.n 8012074 + 801205e: 69fb ldr r3, [r7, #28] + 8012060: 895b ldrh r3, [r3, #10] + 8012062: 88ba ldrh r2, [r7, #4] + 8012064: 429a cmp r2, r3 + 8012066: d305 bcc.n 8012074 /* don't copy from this buffer -> on to the next */ offset = (u16_t)(offset - p->len); - 8012058: 69fb ldr r3, [r7, #28] - 801205a: 895b ldrh r3, [r3, #10] - 801205c: 88ba ldrh r2, [r7, #4] - 801205e: 1ad3 subs r3, r2, r3 - 8012060: 80bb strh r3, [r7, #4] - 8012062: e023 b.n 80120ac + 8012068: 69fb ldr r3, [r7, #28] + 801206a: 895b ldrh r3, [r3, #10] + 801206c: 88ba ldrh r2, [r7, #4] + 801206e: 1ad3 subs r3, r2, r3 + 8012070: 80bb strh r3, [r7, #4] + 8012072: e023 b.n 80120bc } else { /* copy from this buffer. maybe only partially. */ buf_copy_len = (u16_t)(p->len - offset); - 8012064: 69fb ldr r3, [r7, #28] - 8012066: 895a ldrh r2, [r3, #10] - 8012068: 88bb ldrh r3, [r7, #4] - 801206a: 1ad3 subs r3, r2, r3 - 801206c: 833b strh r3, [r7, #24] + 8012074: 69fb ldr r3, [r7, #28] + 8012076: 895a ldrh r2, [r3, #10] + 8012078: 88bb ldrh r3, [r7, #4] + 801207a: 1ad3 subs r3, r2, r3 + 801207c: 833b strh r3, [r7, #24] if (buf_copy_len > len) { - 801206e: 8b3a ldrh r2, [r7, #24] - 8012070: 88fb ldrh r3, [r7, #6] - 8012072: 429a cmp r2, r3 - 8012074: d901 bls.n 801207a + 801207e: 8b3a ldrh r2, [r7, #24] + 8012080: 88fb ldrh r3, [r7, #6] + 8012082: 429a cmp r2, r3 + 8012084: d901 bls.n 801208a buf_copy_len = len; - 8012076: 88fb ldrh r3, [r7, #6] - 8012078: 833b strh r3, [r7, #24] + 8012086: 88fb ldrh r3, [r7, #6] + 8012088: 833b strh r3, [r7, #24] } /* copy the necessary parts of the buffer */ MEMCPY(&((char *)dataptr)[left], &((char *)p->payload)[offset], buf_copy_len); - 801207a: 8b7b ldrh r3, [r7, #26] - 801207c: 68ba ldr r2, [r7, #8] - 801207e: 18d0 adds r0, r2, r3 - 8012080: 69fb ldr r3, [r7, #28] - 8012082: 685a ldr r2, [r3, #4] - 8012084: 88bb ldrh r3, [r7, #4] - 8012086: 4413 add r3, r2 - 8012088: 8b3a ldrh r2, [r7, #24] - 801208a: 4619 mov r1, r3 - 801208c: f00a faaf bl 801c5ee + 801208a: 8b7b ldrh r3, [r7, #26] + 801208c: 68ba ldr r2, [r7, #8] + 801208e: 18d0 adds r0, r2, r3 + 8012090: 69fb ldr r3, [r7, #28] + 8012092: 685a ldr r2, [r3, #4] + 8012094: 88bb ldrh r3, [r7, #4] + 8012096: 4413 add r3, r2 + 8012098: 8b3a ldrh r2, [r7, #24] + 801209a: 4619 mov r1, r3 + 801209c: f00a faaf bl 801c5fe copied_total = (u16_t)(copied_total + buf_copy_len); - 8012090: 8afa ldrh r2, [r7, #22] - 8012092: 8b3b ldrh r3, [r7, #24] - 8012094: 4413 add r3, r2 - 8012096: 82fb strh r3, [r7, #22] + 80120a0: 8afa ldrh r2, [r7, #22] + 80120a2: 8b3b ldrh r3, [r7, #24] + 80120a4: 4413 add r3, r2 + 80120a6: 82fb strh r3, [r7, #22] left = (u16_t)(left + buf_copy_len); - 8012098: 8b7a ldrh r2, [r7, #26] - 801209a: 8b3b ldrh r3, [r7, #24] - 801209c: 4413 add r3, r2 - 801209e: 837b strh r3, [r7, #26] + 80120a8: 8b7a ldrh r2, [r7, #26] + 80120aa: 8b3b ldrh r3, [r7, #24] + 80120ac: 4413 add r3, r2 + 80120ae: 837b strh r3, [r7, #26] len = (u16_t)(len - buf_copy_len); - 80120a0: 88fa ldrh r2, [r7, #6] - 80120a2: 8b3b ldrh r3, [r7, #24] - 80120a4: 1ad3 subs r3, r2, r3 - 80120a6: 80fb strh r3, [r7, #6] + 80120b0: 88fa ldrh r2, [r7, #6] + 80120b2: 8b3b ldrh r3, [r7, #24] + 80120b4: 1ad3 subs r3, r2, r3 + 80120b6: 80fb strh r3, [r7, #6] offset = 0; - 80120a8: 2300 movs r3, #0 - 80120aa: 80bb strh r3, [r7, #4] + 80120b8: 2300 movs r3, #0 + 80120ba: 80bb strh r3, [r7, #4] for (p = buf; len != 0 && p != NULL; p = p->next) { - 80120ac: 69fb ldr r3, [r7, #28] - 80120ae: 681b ldr r3, [r3, #0] - 80120b0: 61fb str r3, [r7, #28] - 80120b2: 88fb ldrh r3, [r7, #6] - 80120b4: 2b00 cmp r3, #0 - 80120b6: d002 beq.n 80120be - 80120b8: 69fb ldr r3, [r7, #28] - 80120ba: 2b00 cmp r3, #0 - 80120bc: d1c4 bne.n 8012048 + 80120bc: 69fb ldr r3, [r7, #28] + 80120be: 681b ldr r3, [r3, #0] + 80120c0: 61fb str r3, [r7, #28] + 80120c2: 88fb ldrh r3, [r7, #6] + 80120c4: 2b00 cmp r3, #0 + 80120c6: d002 beq.n 80120ce + 80120c8: 69fb ldr r3, [r7, #28] + 80120ca: 2b00 cmp r3, #0 + 80120cc: d1c4 bne.n 8012058 } } return copied_total; - 80120be: 8afb ldrh r3, [r7, #22] -} - 80120c0: 4618 mov r0, r3 - 80120c2: 3720 adds r7, #32 - 80120c4: 46bd mov sp, r7 - 80120c6: bd80 pop {r7, pc} - 80120c8: 0801dfd8 .word 0x0801dfd8 - 80120cc: 0801e320 .word 0x0801e320 - 80120d0: 0801e038 .word 0x0801e038 - 80120d4: 0801e340 .word 0x0801e340 - -080120d8 : + 80120ce: 8afb ldrh r3, [r7, #22] +} + 80120d0: 4618 mov r0, r3 + 80120d2: 3720 adds r7, #32 + 80120d4: 46bd mov sp, r7 + 80120d6: bd80 pop {r7, pc} + 80120d8: 0801dfe8 .word 0x0801dfe8 + 80120dc: 0801e330 .word 0x0801e330 + 80120e0: 0801e048 .word 0x0801e048 + 80120e4: 0801e350 .word 0x0801e350 + +080120e8 : * * @return a new pbuf or NULL if allocation fails */ struct pbuf * pbuf_clone(pbuf_layer layer, pbuf_type type, struct pbuf *p) { - 80120d8: b580 push {r7, lr} - 80120da: b084 sub sp, #16 - 80120dc: af00 add r7, sp, #0 - 80120de: 4603 mov r3, r0 - 80120e0: 603a str r2, [r7, #0] - 80120e2: 71fb strb r3, [r7, #7] - 80120e4: 460b mov r3, r1 - 80120e6: 80bb strh r3, [r7, #4] + 80120e8: b580 push {r7, lr} + 80120ea: b084 sub sp, #16 + 80120ec: af00 add r7, sp, #0 + 80120ee: 4603 mov r3, r0 + 80120f0: 603a str r2, [r7, #0] + 80120f2: 71fb strb r3, [r7, #7] + 80120f4: 460b mov r3, r1 + 80120f6: 80bb strh r3, [r7, #4] struct pbuf *q; err_t err; q = pbuf_alloc(layer, p->tot_len, type); - 80120e8: 683b ldr r3, [r7, #0] - 80120ea: 8919 ldrh r1, [r3, #8] - 80120ec: 88ba ldrh r2, [r7, #4] - 80120ee: 79fb ldrb r3, [r7, #7] - 80120f0: 4618 mov r0, r3 - 80120f2: f7ff fa99 bl 8011628 - 80120f6: 60f8 str r0, [r7, #12] + 80120f8: 683b ldr r3, [r7, #0] + 80120fa: 8919 ldrh r1, [r3, #8] + 80120fc: 88ba ldrh r2, [r7, #4] + 80120fe: 79fb ldrb r3, [r7, #7] + 8012100: 4618 mov r0, r3 + 8012102: f7ff fa99 bl 8011638 + 8012106: 60f8 str r0, [r7, #12] if (q == NULL) { - 80120f8: 68fb ldr r3, [r7, #12] - 80120fa: 2b00 cmp r3, #0 - 80120fc: d101 bne.n 8012102 + 8012108: 68fb ldr r3, [r7, #12] + 801210a: 2b00 cmp r3, #0 + 801210c: d101 bne.n 8012112 return NULL; - 80120fe: 2300 movs r3, #0 - 8012100: e011 b.n 8012126 + 801210e: 2300 movs r3, #0 + 8012110: e011 b.n 8012136 } err = pbuf_copy(q, p); - 8012102: 6839 ldr r1, [r7, #0] - 8012104: 68f8 ldr r0, [r7, #12] - 8012106: f7ff fea3 bl 8011e50 - 801210a: 4603 mov r3, r0 - 801210c: 72fb strb r3, [r7, #11] + 8012112: 6839 ldr r1, [r7, #0] + 8012114: 68f8 ldr r0, [r7, #12] + 8012116: f7ff fea3 bl 8011e60 + 801211a: 4603 mov r3, r0 + 801211c: 72fb strb r3, [r7, #11] LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */ LWIP_ASSERT("pbuf_copy failed", err == ERR_OK); - 801210e: f997 300b ldrsb.w r3, [r7, #11] - 8012112: 2b00 cmp r3, #0 - 8012114: d006 beq.n 8012124 - 8012116: 4b06 ldr r3, [pc, #24] ; (8012130 ) - 8012118: f240 5224 movw r2, #1316 ; 0x524 - 801211c: 4905 ldr r1, [pc, #20] ; (8012134 ) - 801211e: 4806 ldr r0, [pc, #24] ; (8012138 ) - 8012120: f00a fa92 bl 801c648 + 801211e: f997 300b ldrsb.w r3, [r7, #11] + 8012122: 2b00 cmp r3, #0 + 8012124: d006 beq.n 8012134 + 8012126: 4b06 ldr r3, [pc, #24] ; (8012140 ) + 8012128: f240 5224 movw r2, #1316 ; 0x524 + 801212c: 4905 ldr r1, [pc, #20] ; (8012144 ) + 801212e: 4806 ldr r0, [pc, #24] ; (8012148 ) + 8012130: f00a fa92 bl 801c658 return q; - 8012124: 68fb ldr r3, [r7, #12] -} - 8012126: 4618 mov r0, r3 - 8012128: 3710 adds r7, #16 - 801212a: 46bd mov sp, r7 - 801212c: bd80 pop {r7, pc} - 801212e: bf00 nop - 8012130: 0801dfd8 .word 0x0801dfd8 - 8012134: 0801e44c .word 0x0801e44c - 8012138: 0801e038 .word 0x0801e038 - -0801213c : + 8012134: 68fb ldr r3, [r7, #12] +} + 8012136: 4618 mov r0, r3 + 8012138: 3710 adds r7, #16 + 801213a: 46bd mov sp, r7 + 801213c: bd80 pop {r7, pc} + 801213e: bf00 nop + 8012140: 0801dfe8 .word 0x0801dfe8 + 8012144: 0801e45c .word 0x0801e45c + 8012148: 0801e048 .word 0x0801e048 + +0801214c : /** * Initialize this module. */ void tcp_init(void) { - 801213c: b580 push {r7, lr} - 801213e: af00 add r7, sp, #0 + 801214c: b580 push {r7, lr} + 801214e: af00 add r7, sp, #0 #ifdef LWIP_RAND tcp_port = TCP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); - 8012140: f00a fa9a bl 801c678 - 8012144: 4603 mov r3, r0 - 8012146: b29b uxth r3, r3 - 8012148: f3c3 030d ubfx r3, r3, #0, #14 - 801214c: b29b uxth r3, r3 - 801214e: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 - 8012152: b29a uxth r2, r3 - 8012154: 4b01 ldr r3, [pc, #4] ; (801215c ) - 8012156: 801a strh r2, [r3, #0] + 8012150: f00a fa9a bl 801c688 + 8012154: 4603 mov r3, r0 + 8012156: b29b uxth r3, r3 + 8012158: f3c3 030d ubfx r3, r3, #0, #14 + 801215c: b29b uxth r3, r3 + 801215e: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 + 8012162: b29a uxth r2, r3 + 8012164: 4b01 ldr r3, [pc, #4] ; (801216c ) + 8012166: 801a strh r2, [r3, #0] #endif /* LWIP_RAND */ } - 8012158: bf00 nop - 801215a: bd80 pop {r7, pc} - 801215c: 20000068 .word 0x20000068 + 8012168: bf00 nop + 801216a: bd80 pop {r7, pc} + 801216c: 20000068 .word 0x20000068 -08012160 : +08012170 : /** Free a tcp pcb */ void tcp_free(struct tcp_pcb *pcb) { - 8012160: b580 push {r7, lr} - 8012162: b082 sub sp, #8 - 8012164: af00 add r7, sp, #0 - 8012166: 6078 str r0, [r7, #4] + 8012170: b580 push {r7, lr} + 8012172: b082 sub sp, #8 + 8012174: af00 add r7, sp, #0 + 8012176: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_free: LISTEN", pcb->state != LISTEN); - 8012168: 687b ldr r3, [r7, #4] - 801216a: 7d1b ldrb r3, [r3, #20] - 801216c: 2b01 cmp r3, #1 - 801216e: d105 bne.n 801217c - 8012170: 4b06 ldr r3, [pc, #24] ; (801218c ) - 8012172: 22d4 movs r2, #212 ; 0xd4 - 8012174: 4906 ldr r1, [pc, #24] ; (8012190 ) - 8012176: 4807 ldr r0, [pc, #28] ; (8012194 ) - 8012178: f00a fa66 bl 801c648 + 8012178: 687b ldr r3, [r7, #4] + 801217a: 7d1b ldrb r3, [r3, #20] + 801217c: 2b01 cmp r3, #1 + 801217e: d105 bne.n 801218c + 8012180: 4b06 ldr r3, [pc, #24] ; (801219c ) + 8012182: 22d4 movs r2, #212 ; 0xd4 + 8012184: 4906 ldr r1, [pc, #24] ; (80121a0 ) + 8012186: 4807 ldr r0, [pc, #28] ; (80121a4 ) + 8012188: f00a fa66 bl 801c658 #if LWIP_TCP_PCB_NUM_EXT_ARGS tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); #endif memp_free(MEMP_TCP_PCB, pcb); - 801217c: 6879 ldr r1, [r7, #4] - 801217e: 2001 movs r0, #1 - 8012180: f7fe fe86 bl 8010e90 + 801218c: 6879 ldr r1, [r7, #4] + 801218e: 2001 movs r0, #1 + 8012190: f7fe fe86 bl 8010ea0 } - 8012184: bf00 nop - 8012186: 3708 adds r7, #8 - 8012188: 46bd mov sp, r7 - 801218a: bd80 pop {r7, pc} - 801218c: 0801e4d8 .word 0x0801e4d8 - 8012190: 0801e508 .word 0x0801e508 - 8012194: 0801e51c .word 0x0801e51c + 8012194: bf00 nop + 8012196: 3708 adds r7, #8 + 8012198: 46bd mov sp, r7 + 801219a: bd80 pop {r7, pc} + 801219c: 0801e4e8 .word 0x0801e4e8 + 80121a0: 0801e518 .word 0x0801e518 + 80121a4: 0801e52c .word 0x0801e52c -08012198 : +080121a8 : /** Free a tcp listen pcb */ static void tcp_free_listen(struct tcp_pcb *pcb) { - 8012198: b580 push {r7, lr} - 801219a: b082 sub sp, #8 - 801219c: af00 add r7, sp, #0 - 801219e: 6078 str r0, [r7, #4] + 80121a8: b580 push {r7, lr} + 80121aa: b082 sub sp, #8 + 80121ac: af00 add r7, sp, #0 + 80121ae: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN); - 80121a0: 687b ldr r3, [r7, #4] - 80121a2: 7d1b ldrb r3, [r3, #20] - 80121a4: 2b01 cmp r3, #1 - 80121a6: d105 bne.n 80121b4 - 80121a8: 4b06 ldr r3, [pc, #24] ; (80121c4 ) - 80121aa: 22df movs r2, #223 ; 0xdf - 80121ac: 4906 ldr r1, [pc, #24] ; (80121c8 ) - 80121ae: 4807 ldr r0, [pc, #28] ; (80121cc ) - 80121b0: f00a fa4a bl 801c648 + 80121b0: 687b ldr r3, [r7, #4] + 80121b2: 7d1b ldrb r3, [r3, #20] + 80121b4: 2b01 cmp r3, #1 + 80121b6: d105 bne.n 80121c4 + 80121b8: 4b06 ldr r3, [pc, #24] ; (80121d4 ) + 80121ba: 22df movs r2, #223 ; 0xdf + 80121bc: 4906 ldr r1, [pc, #24] ; (80121d8 ) + 80121be: 4807 ldr r0, [pc, #28] ; (80121dc ) + 80121c0: f00a fa4a bl 801c658 #if LWIP_TCP_PCB_NUM_EXT_ARGS tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args); #endif memp_free(MEMP_TCP_PCB_LISTEN, pcb); - 80121b4: 6879 ldr r1, [r7, #4] - 80121b6: 2002 movs r0, #2 - 80121b8: f7fe fe6a bl 8010e90 -} - 80121bc: bf00 nop - 80121be: 3708 adds r7, #8 - 80121c0: 46bd mov sp, r7 - 80121c2: bd80 pop {r7, pc} - 80121c4: 0801e4d8 .word 0x0801e4d8 - 80121c8: 0801e544 .word 0x0801e544 - 80121cc: 0801e51c .word 0x0801e51c - -080121d0 : + 80121c4: 6879 ldr r1, [r7, #4] + 80121c6: 2002 movs r0, #2 + 80121c8: f7fe fe6a bl 8010ea0 +} + 80121cc: bf00 nop + 80121ce: 3708 adds r7, #8 + 80121d0: 46bd mov sp, r7 + 80121d2: bd80 pop {r7, pc} + 80121d4: 0801e4e8 .word 0x0801e4e8 + 80121d8: 0801e554 .word 0x0801e554 + 80121dc: 0801e52c .word 0x0801e52c + +080121e0 : /** * Called periodically to dispatch TCP timers. */ void tcp_tmr(void) { - 80121d0: b580 push {r7, lr} - 80121d2: af00 add r7, sp, #0 + 80121e0: b580 push {r7, lr} + 80121e2: af00 add r7, sp, #0 /* Call tcp_fasttmr() every 250 ms */ tcp_fasttmr(); - 80121d4: f000 fe98 bl 8012f08 + 80121e4: f000 fe98 bl 8012f18 if (++tcp_timer & 1) { - 80121d8: 4b07 ldr r3, [pc, #28] ; (80121f8 ) - 80121da: 781b ldrb r3, [r3, #0] - 80121dc: 3301 adds r3, #1 - 80121de: b2da uxtb r2, r3 - 80121e0: 4b05 ldr r3, [pc, #20] ; (80121f8 ) - 80121e2: 701a strb r2, [r3, #0] - 80121e4: 4b04 ldr r3, [pc, #16] ; (80121f8 ) - 80121e6: 781b ldrb r3, [r3, #0] - 80121e8: f003 0301 and.w r3, r3, #1 - 80121ec: 2b00 cmp r3, #0 - 80121ee: d001 beq.n 80121f4 + 80121e8: 4b07 ldr r3, [pc, #28] ; (8012208 ) + 80121ea: 781b ldrb r3, [r3, #0] + 80121ec: 3301 adds r3, #1 + 80121ee: b2da uxtb r2, r3 + 80121f0: 4b05 ldr r3, [pc, #20] ; (8012208 ) + 80121f2: 701a strb r2, [r3, #0] + 80121f4: 4b04 ldr r3, [pc, #16] ; (8012208 ) + 80121f6: 781b ldrb r3, [r3, #0] + 80121f8: f003 0301 and.w r3, r3, #1 + 80121fc: 2b00 cmp r3, #0 + 80121fe: d001 beq.n 8012204 /* Call tcp_slowtmr() every 500 ms, i.e., every other timer tcp_tmr() is called. */ tcp_slowtmr(); - 80121f0: f000 fb4c bl 801288c + 8012200: f000 fb4c bl 801289c } } - 80121f4: bf00 nop - 80121f6: bd80 pop {r7, pc} - 80121f8: 2000871d .word 0x2000871d + 8012204: bf00 nop + 8012206: bd80 pop {r7, pc} + 8012208: 2000871d .word 0x2000871d -080121fc : +0801220c : /** Called when a listen pcb is closed. Iterates one pcb list and removes the * closed listener pcb from pcb->listener if matching. */ static void tcp_remove_listener(struct tcp_pcb *list, struct tcp_pcb_listen *lpcb) { - 80121fc: b580 push {r7, lr} - 80121fe: b084 sub sp, #16 - 8012200: af00 add r7, sp, #0 - 8012202: 6078 str r0, [r7, #4] - 8012204: 6039 str r1, [r7, #0] + 801220c: b580 push {r7, lr} + 801220e: b084 sub sp, #16 + 8012210: af00 add r7, sp, #0 + 8012212: 6078 str r0, [r7, #4] + 8012214: 6039 str r1, [r7, #0] struct tcp_pcb *pcb; LWIP_ASSERT("tcp_remove_listener: invalid listener", lpcb != NULL); - 8012206: 683b ldr r3, [r7, #0] - 8012208: 2b00 cmp r3, #0 - 801220a: d105 bne.n 8012218 - 801220c: 4b0d ldr r3, [pc, #52] ; (8012244 ) - 801220e: 22ff movs r2, #255 ; 0xff - 8012210: 490d ldr r1, [pc, #52] ; (8012248 ) - 8012212: 480e ldr r0, [pc, #56] ; (801224c ) - 8012214: f00a fa18 bl 801c648 + 8012216: 683b ldr r3, [r7, #0] + 8012218: 2b00 cmp r3, #0 + 801221a: d105 bne.n 8012228 + 801221c: 4b0d ldr r3, [pc, #52] ; (8012254 ) + 801221e: 22ff movs r2, #255 ; 0xff + 8012220: 490d ldr r1, [pc, #52] ; (8012258 ) + 8012222: 480e ldr r0, [pc, #56] ; (801225c ) + 8012224: f00a fa18 bl 801c658 for (pcb = list; pcb != NULL; pcb = pcb->next) { - 8012218: 687b ldr r3, [r7, #4] - 801221a: 60fb str r3, [r7, #12] - 801221c: e00a b.n 8012234 + 8012228: 687b ldr r3, [r7, #4] + 801222a: 60fb str r3, [r7, #12] + 801222c: e00a b.n 8012244 if (pcb->listener == lpcb) { - 801221e: 68fb ldr r3, [r7, #12] - 8012220: 6fdb ldr r3, [r3, #124] ; 0x7c - 8012222: 683a ldr r2, [r7, #0] - 8012224: 429a cmp r2, r3 - 8012226: d102 bne.n 801222e + 801222e: 68fb ldr r3, [r7, #12] + 8012230: 6fdb ldr r3, [r3, #124] ; 0x7c + 8012232: 683a ldr r2, [r7, #0] + 8012234: 429a cmp r2, r3 + 8012236: d102 bne.n 801223e pcb->listener = NULL; - 8012228: 68fb ldr r3, [r7, #12] - 801222a: 2200 movs r2, #0 - 801222c: 67da str r2, [r3, #124] ; 0x7c + 8012238: 68fb ldr r3, [r7, #12] + 801223a: 2200 movs r2, #0 + 801223c: 67da str r2, [r3, #124] ; 0x7c for (pcb = list; pcb != NULL; pcb = pcb->next) { - 801222e: 68fb ldr r3, [r7, #12] - 8012230: 68db ldr r3, [r3, #12] - 8012232: 60fb str r3, [r7, #12] - 8012234: 68fb ldr r3, [r7, #12] - 8012236: 2b00 cmp r3, #0 - 8012238: d1f1 bne.n 801221e + 801223e: 68fb ldr r3, [r7, #12] + 8012240: 68db ldr r3, [r3, #12] + 8012242: 60fb str r3, [r7, #12] + 8012244: 68fb ldr r3, [r7, #12] + 8012246: 2b00 cmp r3, #0 + 8012248: d1f1 bne.n 801222e } } } - 801223a: bf00 nop - 801223c: 3710 adds r7, #16 - 801223e: 46bd mov sp, r7 - 8012240: bd80 pop {r7, pc} - 8012242: bf00 nop - 8012244: 0801e4d8 .word 0x0801e4d8 - 8012248: 0801e560 .word 0x0801e560 - 801224c: 0801e51c .word 0x0801e51c + 801224a: bf00 nop + 801224c: 3710 adds r7, #16 + 801224e: 46bd mov sp, r7 + 8012250: bd80 pop {r7, pc} + 8012252: bf00 nop + 8012254: 0801e4e8 .word 0x0801e4e8 + 8012258: 0801e570 .word 0x0801e570 + 801225c: 0801e52c .word 0x0801e52c -08012250 : +08012260 : /** Called when a listen pcb is closed. Iterates all pcb lists and removes the * closed listener pcb from pcb->listener if matching. */ static void tcp_listen_closed(struct tcp_pcb *pcb) { - 8012250: b580 push {r7, lr} - 8012252: b084 sub sp, #16 - 8012254: af00 add r7, sp, #0 - 8012256: 6078 str r0, [r7, #4] + 8012260: b580 push {r7, lr} + 8012262: b084 sub sp, #16 + 8012264: af00 add r7, sp, #0 + 8012266: 6078 str r0, [r7, #4] #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG size_t i; LWIP_ASSERT("pcb != NULL", pcb != NULL); - 8012258: 687b ldr r3, [r7, #4] - 801225a: 2b00 cmp r3, #0 - 801225c: d106 bne.n 801226c - 801225e: 4b14 ldr r3, [pc, #80] ; (80122b0 ) - 8012260: f240 1211 movw r2, #273 ; 0x111 - 8012264: 4913 ldr r1, [pc, #76] ; (80122b4 ) - 8012266: 4814 ldr r0, [pc, #80] ; (80122b8 ) - 8012268: f00a f9ee bl 801c648 + 8012268: 687b ldr r3, [r7, #4] + 801226a: 2b00 cmp r3, #0 + 801226c: d106 bne.n 801227c + 801226e: 4b14 ldr r3, [pc, #80] ; (80122c0 ) + 8012270: f240 1211 movw r2, #273 ; 0x111 + 8012274: 4913 ldr r1, [pc, #76] ; (80122c4 ) + 8012276: 4814 ldr r0, [pc, #80] ; (80122c8 ) + 8012278: f00a f9ee bl 801c658 LWIP_ASSERT("pcb->state == LISTEN", pcb->state == LISTEN); - 801226c: 687b ldr r3, [r7, #4] - 801226e: 7d1b ldrb r3, [r3, #20] - 8012270: 2b01 cmp r3, #1 - 8012272: d006 beq.n 8012282 - 8012274: 4b0e ldr r3, [pc, #56] ; (80122b0 ) - 8012276: f44f 7289 mov.w r2, #274 ; 0x112 - 801227a: 4910 ldr r1, [pc, #64] ; (80122bc ) - 801227c: 480e ldr r0, [pc, #56] ; (80122b8 ) - 801227e: f00a f9e3 bl 801c648 + 801227c: 687b ldr r3, [r7, #4] + 801227e: 7d1b ldrb r3, [r3, #20] + 8012280: 2b01 cmp r3, #1 + 8012282: d006 beq.n 8012292 + 8012284: 4b0e ldr r3, [pc, #56] ; (80122c0 ) + 8012286: f44f 7289 mov.w r2, #274 ; 0x112 + 801228a: 4910 ldr r1, [pc, #64] ; (80122cc ) + 801228c: 480e ldr r0, [pc, #56] ; (80122c8 ) + 801228e: f00a f9e3 bl 801c658 for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) { - 8012282: 2301 movs r3, #1 - 8012284: 60fb str r3, [r7, #12] - 8012286: e00b b.n 80122a0 + 8012292: 2301 movs r3, #1 + 8012294: 60fb str r3, [r7, #12] + 8012296: e00b b.n 80122b0 tcp_remove_listener(*tcp_pcb_lists[i], (struct tcp_pcb_listen *)pcb); - 8012288: 4a0d ldr r2, [pc, #52] ; (80122c0 ) - 801228a: 68fb ldr r3, [r7, #12] - 801228c: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8012290: 681b ldr r3, [r3, #0] - 8012292: 6879 ldr r1, [r7, #4] - 8012294: 4618 mov r0, r3 - 8012296: f7ff ffb1 bl 80121fc - for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) { + 8012298: 4a0d ldr r2, [pc, #52] ; (80122d0 ) 801229a: 68fb ldr r3, [r7, #12] - 801229c: 3301 adds r3, #1 - 801229e: 60fb str r3, [r7, #12] - 80122a0: 68fb ldr r3, [r7, #12] - 80122a2: 2b03 cmp r3, #3 - 80122a4: d9f0 bls.n 8012288 + 801229c: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 80122a0: 681b ldr r3, [r3, #0] + 80122a2: 6879 ldr r1, [r7, #4] + 80122a4: 4618 mov r0, r3 + 80122a6: f7ff ffb1 bl 801220c + for (i = 1; i < LWIP_ARRAYSIZE(tcp_pcb_lists); i++) { + 80122aa: 68fb ldr r3, [r7, #12] + 80122ac: 3301 adds r3, #1 + 80122ae: 60fb str r3, [r7, #12] + 80122b0: 68fb ldr r3, [r7, #12] + 80122b2: 2b03 cmp r3, #3 + 80122b4: d9f0 bls.n 8012298 } #endif LWIP_UNUSED_ARG(pcb); } - 80122a6: bf00 nop - 80122a8: 3710 adds r7, #16 - 80122aa: 46bd mov sp, r7 - 80122ac: bd80 pop {r7, pc} - 80122ae: bf00 nop - 80122b0: 0801e4d8 .word 0x0801e4d8 - 80122b4: 0801e588 .word 0x0801e588 - 80122b8: 0801e51c .word 0x0801e51c - 80122bc: 0801e594 .word 0x0801e594 - 80122c0: 080227c0 .word 0x080227c0 - -080122c4 : + 80122b6: bf00 nop + 80122b8: 3710 adds r7, #16 + 80122ba: 46bd mov sp, r7 + 80122bc: bd80 pop {r7, pc} + 80122be: bf00 nop + 80122c0: 0801e4e8 .word 0x0801e4e8 + 80122c4: 0801e598 .word 0x0801e598 + 80122c8: 0801e52c .word 0x0801e52c + 80122cc: 0801e5a4 .word 0x0801e5a4 + 80122d0: 080227d0 .word 0x080227d0 + +080122d4 : * @return ERR_OK if connection has been closed * another err_t if closing failed and pcb is not freed */ static err_t tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data) { - 80122c4: b5b0 push {r4, r5, r7, lr} - 80122c6: b088 sub sp, #32 - 80122c8: af04 add r7, sp, #16 - 80122ca: 6078 str r0, [r7, #4] - 80122cc: 460b mov r3, r1 - 80122ce: 70fb strb r3, [r7, #3] + 80122d4: b5b0 push {r4, r5, r7, lr} + 80122d6: b088 sub sp, #32 + 80122d8: af04 add r7, sp, #16 + 80122da: 6078 str r0, [r7, #4] + 80122dc: 460b mov r3, r1 + 80122de: 70fb strb r3, [r7, #3] LWIP_ASSERT("tcp_close_shutdown: invalid pcb", pcb != NULL); - 80122d0: 687b ldr r3, [r7, #4] - 80122d2: 2b00 cmp r3, #0 - 80122d4: d106 bne.n 80122e4 - 80122d6: 4b61 ldr r3, [pc, #388] ; (801245c ) - 80122d8: f44f 72af mov.w r2, #350 ; 0x15e - 80122dc: 4960 ldr r1, [pc, #384] ; (8012460 ) - 80122de: 4861 ldr r0, [pc, #388] ; (8012464 ) - 80122e0: f00a f9b2 bl 801c648 + 80122e0: 687b ldr r3, [r7, #4] + 80122e2: 2b00 cmp r3, #0 + 80122e4: d106 bne.n 80122f4 + 80122e6: 4b61 ldr r3, [pc, #388] ; (801246c ) + 80122e8: f44f 72af mov.w r2, #350 ; 0x15e + 80122ec: 4960 ldr r1, [pc, #384] ; (8012470 ) + 80122ee: 4861 ldr r0, [pc, #388] ; (8012474 ) + 80122f0: f00a f9b2 bl 801c658 if (rst_on_unacked_data && ((pcb->state == ESTABLISHED) || (pcb->state == CLOSE_WAIT))) { - 80122e4: 78fb ldrb r3, [r7, #3] - 80122e6: 2b00 cmp r3, #0 - 80122e8: d066 beq.n 80123b8 - 80122ea: 687b ldr r3, [r7, #4] - 80122ec: 7d1b ldrb r3, [r3, #20] - 80122ee: 2b04 cmp r3, #4 - 80122f0: d003 beq.n 80122fa - 80122f2: 687b ldr r3, [r7, #4] - 80122f4: 7d1b ldrb r3, [r3, #20] - 80122f6: 2b07 cmp r3, #7 - 80122f8: d15e bne.n 80123b8 - if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) { + 80122f4: 78fb ldrb r3, [r7, #3] + 80122f6: 2b00 cmp r3, #0 + 80122f8: d066 beq.n 80123c8 80122fa: 687b ldr r3, [r7, #4] - 80122fc: 6f9b ldr r3, [r3, #120] ; 0x78 - 80122fe: 2b00 cmp r3, #0 - 8012300: d104 bne.n 801230c + 80122fc: 7d1b ldrb r3, [r3, #20] + 80122fe: 2b04 cmp r3, #4 + 8012300: d003 beq.n 801230a 8012302: 687b ldr r3, [r7, #4] - 8012304: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8012306: f5b3 6f06 cmp.w r3, #2144 ; 0x860 - 801230a: d055 beq.n 80123b8 + 8012304: 7d1b ldrb r3, [r3, #20] + 8012306: 2b07 cmp r3, #7 + 8012308: d15e bne.n 80123c8 + if ((pcb->refused_data != NULL) || (pcb->rcv_wnd != TCP_WND_MAX(pcb))) { + 801230a: 687b ldr r3, [r7, #4] + 801230c: 6f9b ldr r3, [r3, #120] ; 0x78 + 801230e: 2b00 cmp r3, #0 + 8012310: d104 bne.n 801231c + 8012312: 687b ldr r3, [r7, #4] + 8012314: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8012316: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 801231a: d055 beq.n 80123c8 /* Not all data received by application, send RST to tell the remote side about this. */ LWIP_ASSERT("pcb->flags & TF_RXCLOSED", pcb->flags & TF_RXCLOSED); - 801230c: 687b ldr r3, [r7, #4] - 801230e: 8b5b ldrh r3, [r3, #26] - 8012310: f003 0310 and.w r3, r3, #16 - 8012314: 2b00 cmp r3, #0 - 8012316: d106 bne.n 8012326 - 8012318: 4b50 ldr r3, [pc, #320] ; (801245c ) - 801231a: f44f 72b2 mov.w r2, #356 ; 0x164 - 801231e: 4952 ldr r1, [pc, #328] ; (8012468 ) - 8012320: 4850 ldr r0, [pc, #320] ; (8012464 ) - 8012322: f00a f991 bl 801c648 + 801231c: 687b ldr r3, [r7, #4] + 801231e: 8b5b ldrh r3, [r3, #26] + 8012320: f003 0310 and.w r3, r3, #16 + 8012324: 2b00 cmp r3, #0 + 8012326: d106 bne.n 8012336 + 8012328: 4b50 ldr r3, [pc, #320] ; (801246c ) + 801232a: f44f 72b2 mov.w r2, #356 ; 0x164 + 801232e: 4952 ldr r1, [pc, #328] ; (8012478 ) + 8012330: 4850 ldr r0, [pc, #320] ; (8012474 ) + 8012332: f00a f991 bl 801c658 /* don't call tcp_abort here: we must not deallocate the pcb since that might not be expected when calling tcp_close */ tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, - 8012326: 687b ldr r3, [r7, #4] - 8012328: 6d18 ldr r0, [r3, #80] ; 0x50 - 801232a: 687b ldr r3, [r7, #4] - 801232c: 6a5c ldr r4, [r3, #36] ; 0x24 - 801232e: 687d ldr r5, [r7, #4] - 8012330: 687b ldr r3, [r7, #4] - 8012332: 3304 adds r3, #4 - 8012334: 687a ldr r2, [r7, #4] - 8012336: 8ad2 ldrh r2, [r2, #22] - 8012338: 6879 ldr r1, [r7, #4] - 801233a: 8b09 ldrh r1, [r1, #24] - 801233c: 9102 str r1, [sp, #8] - 801233e: 9201 str r2, [sp, #4] - 8012340: 9300 str r3, [sp, #0] - 8012342: 462b mov r3, r5 - 8012344: 4622 mov r2, r4 - 8012346: 4601 mov r1, r0 - 8012348: 6878 ldr r0, [r7, #4] - 801234a: f004 fe91 bl 8017070 + 8012336: 687b ldr r3, [r7, #4] + 8012338: 6d18 ldr r0, [r3, #80] ; 0x50 + 801233a: 687b ldr r3, [r7, #4] + 801233c: 6a5c ldr r4, [r3, #36] ; 0x24 + 801233e: 687d ldr r5, [r7, #4] + 8012340: 687b ldr r3, [r7, #4] + 8012342: 3304 adds r3, #4 + 8012344: 687a ldr r2, [r7, #4] + 8012346: 8ad2 ldrh r2, [r2, #22] + 8012348: 6879 ldr r1, [r7, #4] + 801234a: 8b09 ldrh r1, [r1, #24] + 801234c: 9102 str r1, [sp, #8] + 801234e: 9201 str r2, [sp, #4] + 8012350: 9300 str r3, [sp, #0] + 8012352: 462b mov r3, r5 + 8012354: 4622 mov r2, r4 + 8012356: 4601 mov r1, r0 + 8012358: 6878 ldr r0, [r7, #4] + 801235a: f004 fe91 bl 8017080 pcb->local_port, pcb->remote_port); tcp_pcb_purge(pcb); - 801234e: 6878 ldr r0, [r7, #4] - 8012350: f001 f8ba bl 80134c8 + 801235e: 6878 ldr r0, [r7, #4] + 8012360: f001 f8ba bl 80134d8 TCP_RMV_ACTIVE(pcb); - 8012354: 4b45 ldr r3, [pc, #276] ; (801246c ) - 8012356: 681b ldr r3, [r3, #0] - 8012358: 687a ldr r2, [r7, #4] - 801235a: 429a cmp r2, r3 - 801235c: d105 bne.n 801236a - 801235e: 4b43 ldr r3, [pc, #268] ; (801246c ) - 8012360: 681b ldr r3, [r3, #0] - 8012362: 68db ldr r3, [r3, #12] - 8012364: 4a41 ldr r2, [pc, #260] ; (801246c ) - 8012366: 6013 str r3, [r2, #0] - 8012368: e013 b.n 8012392 - 801236a: 4b40 ldr r3, [pc, #256] ; (801246c ) - 801236c: 681b ldr r3, [r3, #0] - 801236e: 60fb str r3, [r7, #12] - 8012370: e00c b.n 801238c - 8012372: 68fb ldr r3, [r7, #12] - 8012374: 68db ldr r3, [r3, #12] - 8012376: 687a ldr r2, [r7, #4] - 8012378: 429a cmp r2, r3 - 801237a: d104 bne.n 8012386 - 801237c: 687b ldr r3, [r7, #4] - 801237e: 68da ldr r2, [r3, #12] - 8012380: 68fb ldr r3, [r7, #12] - 8012382: 60da str r2, [r3, #12] - 8012384: e005 b.n 8012392 - 8012386: 68fb ldr r3, [r7, #12] - 8012388: 68db ldr r3, [r3, #12] - 801238a: 60fb str r3, [r7, #12] - 801238c: 68fb ldr r3, [r7, #12] - 801238e: 2b00 cmp r3, #0 - 8012390: d1ef bne.n 8012372 - 8012392: 687b ldr r3, [r7, #4] - 8012394: 2200 movs r2, #0 - 8012396: 60da str r2, [r3, #12] - 8012398: 4b35 ldr r3, [pc, #212] ; (8012470 ) - 801239a: 2201 movs r2, #1 - 801239c: 701a strb r2, [r3, #0] + 8012364: 4b45 ldr r3, [pc, #276] ; (801247c ) + 8012366: 681b ldr r3, [r3, #0] + 8012368: 687a ldr r2, [r7, #4] + 801236a: 429a cmp r2, r3 + 801236c: d105 bne.n 801237a + 801236e: 4b43 ldr r3, [pc, #268] ; (801247c ) + 8012370: 681b ldr r3, [r3, #0] + 8012372: 68db ldr r3, [r3, #12] + 8012374: 4a41 ldr r2, [pc, #260] ; (801247c ) + 8012376: 6013 str r3, [r2, #0] + 8012378: e013 b.n 80123a2 + 801237a: 4b40 ldr r3, [pc, #256] ; (801247c ) + 801237c: 681b ldr r3, [r3, #0] + 801237e: 60fb str r3, [r7, #12] + 8012380: e00c b.n 801239c + 8012382: 68fb ldr r3, [r7, #12] + 8012384: 68db ldr r3, [r3, #12] + 8012386: 687a ldr r2, [r7, #4] + 8012388: 429a cmp r2, r3 + 801238a: d104 bne.n 8012396 + 801238c: 687b ldr r3, [r7, #4] + 801238e: 68da ldr r2, [r3, #12] + 8012390: 68fb ldr r3, [r7, #12] + 8012392: 60da str r2, [r3, #12] + 8012394: e005 b.n 80123a2 + 8012396: 68fb ldr r3, [r7, #12] + 8012398: 68db ldr r3, [r3, #12] + 801239a: 60fb str r3, [r7, #12] + 801239c: 68fb ldr r3, [r7, #12] + 801239e: 2b00 cmp r3, #0 + 80123a0: d1ef bne.n 8012382 + 80123a2: 687b ldr r3, [r7, #4] + 80123a4: 2200 movs r2, #0 + 80123a6: 60da str r2, [r3, #12] + 80123a8: 4b35 ldr r3, [pc, #212] ; (8012480 ) + 80123aa: 2201 movs r2, #1 + 80123ac: 701a strb r2, [r3, #0] /* Deallocate the pcb since we already sent a RST for it */ if (tcp_input_pcb == pcb) { - 801239e: 4b35 ldr r3, [pc, #212] ; (8012474 ) - 80123a0: 681b ldr r3, [r3, #0] - 80123a2: 687a ldr r2, [r7, #4] - 80123a4: 429a cmp r2, r3 - 80123a6: d102 bne.n 80123ae + 80123ae: 4b35 ldr r3, [pc, #212] ; (8012484 ) + 80123b0: 681b ldr r3, [r3, #0] + 80123b2: 687a ldr r2, [r7, #4] + 80123b4: 429a cmp r2, r3 + 80123b6: d102 bne.n 80123be /* prevent using a deallocated pcb: free it from tcp_input later */ tcp_trigger_input_pcb_close(); - 80123a8: f003 fd4c bl 8015e44 - 80123ac: e002 b.n 80123b4 + 80123b8: f003 fd4c bl 8015e54 + 80123bc: e002 b.n 80123c4 } else { tcp_free(pcb); - 80123ae: 6878 ldr r0, [r7, #4] - 80123b0: f7ff fed6 bl 8012160 + 80123be: 6878 ldr r0, [r7, #4] + 80123c0: f7ff fed6 bl 8012170 } return ERR_OK; - 80123b4: 2300 movs r3, #0 - 80123b6: e04d b.n 8012454 + 80123c4: 2300 movs r3, #0 + 80123c6: e04d b.n 8012464 } } /* - states which free the pcb are handled here, - states which send FIN and change state are handled in tcp_close_shutdown_fin() */ switch (pcb->state) { - 80123b8: 687b ldr r3, [r7, #4] - 80123ba: 7d1b ldrb r3, [r3, #20] - 80123bc: 2b01 cmp r3, #1 - 80123be: d02d beq.n 801241c - 80123c0: 2b02 cmp r3, #2 - 80123c2: d036 beq.n 8012432 - 80123c4: 2b00 cmp r3, #0 - 80123c6: d13f bne.n 8012448 + 80123c8: 687b ldr r3, [r7, #4] + 80123ca: 7d1b ldrb r3, [r3, #20] + 80123cc: 2b01 cmp r3, #1 + 80123ce: d02d beq.n 801242c + 80123d0: 2b02 cmp r3, #2 + 80123d2: d036 beq.n 8012442 + 80123d4: 2b00 cmp r3, #0 + 80123d6: d13f bne.n 8012458 * and the user needs some way to free it should the need arise. * Calling tcp_close() with a pcb that has already been closed, (i.e. twice) * or for a pcb that has been used and then entered the CLOSED state * is erroneous, but this should never happen as the pcb has in those cases * been freed, and so any remaining handles are bogus. */ if (pcb->local_port != 0) { - 80123c8: 687b ldr r3, [r7, #4] - 80123ca: 8adb ldrh r3, [r3, #22] - 80123cc: 2b00 cmp r3, #0 - 80123ce: d021 beq.n 8012414 + 80123d8: 687b ldr r3, [r7, #4] + 80123da: 8adb ldrh r3, [r3, #22] + 80123dc: 2b00 cmp r3, #0 + 80123de: d021 beq.n 8012424 TCP_RMV(&tcp_bound_pcbs, pcb); - 80123d0: 4b29 ldr r3, [pc, #164] ; (8012478 ) - 80123d2: 681b ldr r3, [r3, #0] - 80123d4: 687a ldr r2, [r7, #4] - 80123d6: 429a cmp r2, r3 - 80123d8: d105 bne.n 80123e6 - 80123da: 4b27 ldr r3, [pc, #156] ; (8012478 ) - 80123dc: 681b ldr r3, [r3, #0] - 80123de: 68db ldr r3, [r3, #12] - 80123e0: 4a25 ldr r2, [pc, #148] ; (8012478 ) - 80123e2: 6013 str r3, [r2, #0] - 80123e4: e013 b.n 801240e - 80123e6: 4b24 ldr r3, [pc, #144] ; (8012478 ) - 80123e8: 681b ldr r3, [r3, #0] - 80123ea: 60bb str r3, [r7, #8] - 80123ec: e00c b.n 8012408 - 80123ee: 68bb ldr r3, [r7, #8] - 80123f0: 68db ldr r3, [r3, #12] - 80123f2: 687a ldr r2, [r7, #4] - 80123f4: 429a cmp r2, r3 - 80123f6: d104 bne.n 8012402 - 80123f8: 687b ldr r3, [r7, #4] - 80123fa: 68da ldr r2, [r3, #12] - 80123fc: 68bb ldr r3, [r7, #8] - 80123fe: 60da str r2, [r3, #12] - 8012400: e005 b.n 801240e - 8012402: 68bb ldr r3, [r7, #8] - 8012404: 68db ldr r3, [r3, #12] - 8012406: 60bb str r3, [r7, #8] - 8012408: 68bb ldr r3, [r7, #8] - 801240a: 2b00 cmp r3, #0 - 801240c: d1ef bne.n 80123ee - 801240e: 687b ldr r3, [r7, #4] - 8012410: 2200 movs r2, #0 - 8012412: 60da str r2, [r3, #12] + 80123e0: 4b29 ldr r3, [pc, #164] ; (8012488 ) + 80123e2: 681b ldr r3, [r3, #0] + 80123e4: 687a ldr r2, [r7, #4] + 80123e6: 429a cmp r2, r3 + 80123e8: d105 bne.n 80123f6 + 80123ea: 4b27 ldr r3, [pc, #156] ; (8012488 ) + 80123ec: 681b ldr r3, [r3, #0] + 80123ee: 68db ldr r3, [r3, #12] + 80123f0: 4a25 ldr r2, [pc, #148] ; (8012488 ) + 80123f2: 6013 str r3, [r2, #0] + 80123f4: e013 b.n 801241e + 80123f6: 4b24 ldr r3, [pc, #144] ; (8012488 ) + 80123f8: 681b ldr r3, [r3, #0] + 80123fa: 60bb str r3, [r7, #8] + 80123fc: e00c b.n 8012418 + 80123fe: 68bb ldr r3, [r7, #8] + 8012400: 68db ldr r3, [r3, #12] + 8012402: 687a ldr r2, [r7, #4] + 8012404: 429a cmp r2, r3 + 8012406: d104 bne.n 8012412 + 8012408: 687b ldr r3, [r7, #4] + 801240a: 68da ldr r2, [r3, #12] + 801240c: 68bb ldr r3, [r7, #8] + 801240e: 60da str r2, [r3, #12] + 8012410: e005 b.n 801241e + 8012412: 68bb ldr r3, [r7, #8] + 8012414: 68db ldr r3, [r3, #12] + 8012416: 60bb str r3, [r7, #8] + 8012418: 68bb ldr r3, [r7, #8] + 801241a: 2b00 cmp r3, #0 + 801241c: d1ef bne.n 80123fe + 801241e: 687b ldr r3, [r7, #4] + 8012420: 2200 movs r2, #0 + 8012422: 60da str r2, [r3, #12] } tcp_free(pcb); - 8012414: 6878 ldr r0, [r7, #4] - 8012416: f7ff fea3 bl 8012160 + 8012424: 6878 ldr r0, [r7, #4] + 8012426: f7ff fea3 bl 8012170 break; - 801241a: e01a b.n 8012452 + 801242a: e01a b.n 8012462 case LISTEN: tcp_listen_closed(pcb); - 801241c: 6878 ldr r0, [r7, #4] - 801241e: f7ff ff17 bl 8012250 + 801242c: 6878 ldr r0, [r7, #4] + 801242e: f7ff ff17 bl 8012260 tcp_pcb_remove(&tcp_listen_pcbs.pcbs, pcb); - 8012422: 6879 ldr r1, [r7, #4] - 8012424: 4815 ldr r0, [pc, #84] ; (801247c ) - 8012426: f001 f89f bl 8013568 + 8012432: 6879 ldr r1, [r7, #4] + 8012434: 4815 ldr r0, [pc, #84] ; (801248c ) + 8012436: f001 f89f bl 8013578 tcp_free_listen(pcb); - 801242a: 6878 ldr r0, [r7, #4] - 801242c: f7ff feb4 bl 8012198 + 801243a: 6878 ldr r0, [r7, #4] + 801243c: f7ff feb4 bl 80121a8 break; - 8012430: e00f b.n 8012452 + 8012440: e00f b.n 8012462 case SYN_SENT: TCP_PCB_REMOVE_ACTIVE(pcb); - 8012432: 6879 ldr r1, [r7, #4] - 8012434: 480d ldr r0, [pc, #52] ; (801246c ) - 8012436: f001 f897 bl 8013568 - 801243a: 4b0d ldr r3, [pc, #52] ; (8012470 ) - 801243c: 2201 movs r2, #1 - 801243e: 701a strb r2, [r3, #0] + 8012442: 6879 ldr r1, [r7, #4] + 8012444: 480d ldr r0, [pc, #52] ; (801247c ) + 8012446: f001 f897 bl 8013578 + 801244a: 4b0d ldr r3, [pc, #52] ; (8012480 ) + 801244c: 2201 movs r2, #1 + 801244e: 701a strb r2, [r3, #0] tcp_free(pcb); - 8012440: 6878 ldr r0, [r7, #4] - 8012442: f7ff fe8d bl 8012160 + 8012450: 6878 ldr r0, [r7, #4] + 8012452: f7ff fe8d bl 8012170 MIB2_STATS_INC(mib2.tcpattemptfails); break; - 8012446: e004 b.n 8012452 + 8012456: e004 b.n 8012462 default: return tcp_close_shutdown_fin(pcb); - 8012448: 6878 ldr r0, [r7, #4] - 801244a: f000 f819 bl 8012480 - 801244e: 4603 mov r3, r0 - 8012450: e000 b.n 8012454 + 8012458: 6878 ldr r0, [r7, #4] + 801245a: f000 f819 bl 8012490 + 801245e: 4603 mov r3, r0 + 8012460: e000 b.n 8012464 } return ERR_OK; - 8012452: 2300 movs r3, #0 -} - 8012454: 4618 mov r0, r3 - 8012456: 3710 adds r7, #16 - 8012458: 46bd mov sp, r7 - 801245a: bdb0 pop {r4, r5, r7, pc} - 801245c: 0801e4d8 .word 0x0801e4d8 - 8012460: 0801e5ac .word 0x0801e5ac - 8012464: 0801e51c .word 0x0801e51c - 8012468: 0801e5cc .word 0x0801e5cc - 801246c: 2000f7f0 .word 0x2000f7f0 - 8012470: 2000f7ec .word 0x2000f7ec - 8012474: 2000f804 .word 0x2000f804 - 8012478: 2000f7fc .word 0x2000f7fc - 801247c: 2000f7f8 .word 0x2000f7f8 - -08012480 : + 8012462: 2300 movs r3, #0 +} + 8012464: 4618 mov r0, r3 + 8012466: 3710 adds r7, #16 + 8012468: 46bd mov sp, r7 + 801246a: bdb0 pop {r4, r5, r7, pc} + 801246c: 0801e4e8 .word 0x0801e4e8 + 8012470: 0801e5bc .word 0x0801e5bc + 8012474: 0801e52c .word 0x0801e52c + 8012478: 0801e5dc .word 0x0801e5dc + 801247c: 2000f7f0 .word 0x2000f7f0 + 8012480: 2000f7ec .word 0x2000f7ec + 8012484: 2000f804 .word 0x2000f804 + 8012488: 2000f7fc .word 0x2000f7fc + 801248c: 2000f7f8 .word 0x2000f7f8 + +08012490 : static err_t tcp_close_shutdown_fin(struct tcp_pcb *pcb) { - 8012480: b580 push {r7, lr} - 8012482: b084 sub sp, #16 - 8012484: af00 add r7, sp, #0 - 8012486: 6078 str r0, [r7, #4] + 8012490: b580 push {r7, lr} + 8012492: b084 sub sp, #16 + 8012494: af00 add r7, sp, #0 + 8012496: 6078 str r0, [r7, #4] err_t err; LWIP_ASSERT("pcb != NULL", pcb != NULL); - 8012488: 687b ldr r3, [r7, #4] - 801248a: 2b00 cmp r3, #0 - 801248c: d106 bne.n 801249c - 801248e: 4b2c ldr r3, [pc, #176] ; (8012540 ) - 8012490: f44f 72ce mov.w r2, #412 ; 0x19c - 8012494: 492b ldr r1, [pc, #172] ; (8012544 ) - 8012496: 482c ldr r0, [pc, #176] ; (8012548 ) - 8012498: f00a f8d6 bl 801c648 + 8012498: 687b ldr r3, [r7, #4] + 801249a: 2b00 cmp r3, #0 + 801249c: d106 bne.n 80124ac + 801249e: 4b2c ldr r3, [pc, #176] ; (8012550 ) + 80124a0: f44f 72ce mov.w r2, #412 ; 0x19c + 80124a4: 492b ldr r1, [pc, #172] ; (8012554 ) + 80124a6: 482c ldr r0, [pc, #176] ; (8012558 ) + 80124a8: f00a f8d6 bl 801c658 switch (pcb->state) { - 801249c: 687b ldr r3, [r7, #4] - 801249e: 7d1b ldrb r3, [r3, #20] - 80124a0: 2b04 cmp r3, #4 - 80124a2: d010 beq.n 80124c6 - 80124a4: 2b07 cmp r3, #7 - 80124a6: d01b beq.n 80124e0 - 80124a8: 2b03 cmp r3, #3 - 80124aa: d126 bne.n 80124fa + 80124ac: 687b ldr r3, [r7, #4] + 80124ae: 7d1b ldrb r3, [r3, #20] + 80124b0: 2b04 cmp r3, #4 + 80124b2: d010 beq.n 80124d6 + 80124b4: 2b07 cmp r3, #7 + 80124b6: d01b beq.n 80124f0 + 80124b8: 2b03 cmp r3, #3 + 80124ba: d126 bne.n 801250a case SYN_RCVD: err = tcp_send_fin(pcb); - 80124ac: 6878 ldr r0, [r7, #4] - 80124ae: f003 fedb bl 8016268 - 80124b2: 4603 mov r3, r0 - 80124b4: 73fb strb r3, [r7, #15] + 80124bc: 6878 ldr r0, [r7, #4] + 80124be: f003 fedb bl 8016278 + 80124c2: 4603 mov r3, r0 + 80124c4: 73fb strb r3, [r7, #15] if (err == ERR_OK) { - 80124b6: f997 300f ldrsb.w r3, [r7, #15] - 80124ba: 2b00 cmp r3, #0 - 80124bc: d11f bne.n 80124fe + 80124c6: f997 300f ldrsb.w r3, [r7, #15] + 80124ca: 2b00 cmp r3, #0 + 80124cc: d11f bne.n 801250e tcp_backlog_accepted(pcb); MIB2_STATS_INC(mib2.tcpattemptfails); pcb->state = FIN_WAIT_1; - 80124be: 687b ldr r3, [r7, #4] - 80124c0: 2205 movs r2, #5 - 80124c2: 751a strb r2, [r3, #20] + 80124ce: 687b ldr r3, [r7, #4] + 80124d0: 2205 movs r2, #5 + 80124d2: 751a strb r2, [r3, #20] } break; - 80124c4: e01b b.n 80124fe + 80124d4: e01b b.n 801250e case ESTABLISHED: err = tcp_send_fin(pcb); - 80124c6: 6878 ldr r0, [r7, #4] - 80124c8: f003 fece bl 8016268 - 80124cc: 4603 mov r3, r0 - 80124ce: 73fb strb r3, [r7, #15] + 80124d6: 6878 ldr r0, [r7, #4] + 80124d8: f003 fece bl 8016278 + 80124dc: 4603 mov r3, r0 + 80124de: 73fb strb r3, [r7, #15] if (err == ERR_OK) { - 80124d0: f997 300f ldrsb.w r3, [r7, #15] - 80124d4: 2b00 cmp r3, #0 - 80124d6: d114 bne.n 8012502 + 80124e0: f997 300f ldrsb.w r3, [r7, #15] + 80124e4: 2b00 cmp r3, #0 + 80124e6: d114 bne.n 8012512 MIB2_STATS_INC(mib2.tcpestabresets); pcb->state = FIN_WAIT_1; - 80124d8: 687b ldr r3, [r7, #4] - 80124da: 2205 movs r2, #5 - 80124dc: 751a strb r2, [r3, #20] + 80124e8: 687b ldr r3, [r7, #4] + 80124ea: 2205 movs r2, #5 + 80124ec: 751a strb r2, [r3, #20] } break; - 80124de: e010 b.n 8012502 + 80124ee: e010 b.n 8012512 case CLOSE_WAIT: err = tcp_send_fin(pcb); - 80124e0: 6878 ldr r0, [r7, #4] - 80124e2: f003 fec1 bl 8016268 - 80124e6: 4603 mov r3, r0 - 80124e8: 73fb strb r3, [r7, #15] + 80124f0: 6878 ldr r0, [r7, #4] + 80124f2: f003 fec1 bl 8016278 + 80124f6: 4603 mov r3, r0 + 80124f8: 73fb strb r3, [r7, #15] if (err == ERR_OK) { - 80124ea: f997 300f ldrsb.w r3, [r7, #15] - 80124ee: 2b00 cmp r3, #0 - 80124f0: d109 bne.n 8012506 + 80124fa: f997 300f ldrsb.w r3, [r7, #15] + 80124fe: 2b00 cmp r3, #0 + 8012500: d109 bne.n 8012516 MIB2_STATS_INC(mib2.tcpestabresets); pcb->state = LAST_ACK; - 80124f2: 687b ldr r3, [r7, #4] - 80124f4: 2209 movs r2, #9 - 80124f6: 751a strb r2, [r3, #20] + 8012502: 687b ldr r3, [r7, #4] + 8012504: 2209 movs r2, #9 + 8012506: 751a strb r2, [r3, #20] } break; - 80124f8: e005 b.n 8012506 + 8012508: e005 b.n 8012516 default: /* Has already been closed, do nothing. */ return ERR_OK; - 80124fa: 2300 movs r3, #0 - 80124fc: e01c b.n 8012538 + 801250a: 2300 movs r3, #0 + 801250c: e01c b.n 8012548 break; - 80124fe: bf00 nop - 8012500: e002 b.n 8012508 + 801250e: bf00 nop + 8012510: e002 b.n 8012518 break; - 8012502: bf00 nop - 8012504: e000 b.n 8012508 + 8012512: bf00 nop + 8012514: e000 b.n 8012518 break; - 8012506: bf00 nop + 8012516: bf00 nop } if (err == ERR_OK) { - 8012508: f997 300f ldrsb.w r3, [r7, #15] - 801250c: 2b00 cmp r3, #0 - 801250e: d103 bne.n 8012518 + 8012518: f997 300f ldrsb.w r3, [r7, #15] + 801251c: 2b00 cmp r3, #0 + 801251e: d103 bne.n 8012528 /* To ensure all data has been sent when tcp_close returns, we have to make sure tcp_output doesn't fail. Since we don't really have to ensure all data has been sent when tcp_close returns (unsent data is sent from tcp timer functions, also), we don't care for the return value of tcp_output for now. */ tcp_output(pcb); - 8012510: 6878 ldr r0, [r7, #4] - 8012512: f003 ffe7 bl 80164e4 - 8012516: e00d b.n 8012534 + 8012520: 6878 ldr r0, [r7, #4] + 8012522: f003 ffe7 bl 80164f4 + 8012526: e00d b.n 8012544 } else if (err == ERR_MEM) { - 8012518: f997 300f ldrsb.w r3, [r7, #15] - 801251c: f1b3 3fff cmp.w r3, #4294967295 - 8012520: d108 bne.n 8012534 + 8012528: f997 300f ldrsb.w r3, [r7, #15] + 801252c: f1b3 3fff cmp.w r3, #4294967295 + 8012530: d108 bne.n 8012544 /* Mark this pcb for closing. Closing is retried from tcp_tmr. */ tcp_set_flags(pcb, TF_CLOSEPEND); - 8012522: 687b ldr r3, [r7, #4] - 8012524: 8b5b ldrh r3, [r3, #26] - 8012526: f043 0308 orr.w r3, r3, #8 - 801252a: b29a uxth r2, r3 - 801252c: 687b ldr r3, [r7, #4] - 801252e: 835a strh r2, [r3, #26] + 8012532: 687b ldr r3, [r7, #4] + 8012534: 8b5b ldrh r3, [r3, #26] + 8012536: f043 0308 orr.w r3, r3, #8 + 801253a: b29a uxth r2, r3 + 801253c: 687b ldr r3, [r7, #4] + 801253e: 835a strh r2, [r3, #26] /* We have to return ERR_OK from here to indicate to the callers that this pcb should not be used any more as it will be freed soon via tcp_tmr. This is OK here since sending FIN does not guarantee a time frime for actually freeing the pcb, either (it is left in closure states for remote ACK or timeout) */ return ERR_OK; - 8012530: 2300 movs r3, #0 - 8012532: e001 b.n 8012538 + 8012540: 2300 movs r3, #0 + 8012542: e001 b.n 8012548 } return err; - 8012534: f997 300f ldrsb.w r3, [r7, #15] + 8012544: f997 300f ldrsb.w r3, [r7, #15] } - 8012538: 4618 mov r0, r3 - 801253a: 3710 adds r7, #16 - 801253c: 46bd mov sp, r7 - 801253e: bd80 pop {r7, pc} - 8012540: 0801e4d8 .word 0x0801e4d8 - 8012544: 0801e588 .word 0x0801e588 - 8012548: 0801e51c .word 0x0801e51c + 8012548: 4618 mov r0, r3 + 801254a: 3710 adds r7, #16 + 801254c: 46bd mov sp, r7 + 801254e: bd80 pop {r7, pc} + 8012550: 0801e4e8 .word 0x0801e4e8 + 8012554: 0801e598 .word 0x0801e598 + 8012558: 0801e52c .word 0x0801e52c -0801254c : +0801255c : * @return ERR_OK if connection has been closed * another err_t if closing failed and pcb is not freed */ err_t tcp_close(struct tcp_pcb *pcb) { - 801254c: b580 push {r7, lr} - 801254e: b082 sub sp, #8 - 8012550: af00 add r7, sp, #0 - 8012552: 6078 str r0, [r7, #4] + 801255c: b580 push {r7, lr} + 801255e: b082 sub sp, #8 + 8012560: af00 add r7, sp, #0 + 8012562: 6078 str r0, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("tcp_close: invalid pcb", pcb != NULL, return ERR_ARG); - 8012554: 687b ldr r3, [r7, #4] - 8012556: 2b00 cmp r3, #0 - 8012558: d109 bne.n 801256e - 801255a: 4b0f ldr r3, [pc, #60] ; (8012598 ) - 801255c: f44f 72f4 mov.w r2, #488 ; 0x1e8 - 8012560: 490e ldr r1, [pc, #56] ; (801259c ) - 8012562: 480f ldr r0, [pc, #60] ; (80125a0 ) - 8012564: f00a f870 bl 801c648 - 8012568: f06f 030f mvn.w r3, #15 - 801256c: e00f b.n 801258e + 8012564: 687b ldr r3, [r7, #4] + 8012566: 2b00 cmp r3, #0 + 8012568: d109 bne.n 801257e + 801256a: 4b0f ldr r3, [pc, #60] ; (80125a8 ) + 801256c: f44f 72f4 mov.w r2, #488 ; 0x1e8 + 8012570: 490e ldr r1, [pc, #56] ; (80125ac ) + 8012572: 480f ldr r0, [pc, #60] ; (80125b0 ) + 8012574: f00a f870 bl 801c658 + 8012578: f06f 030f mvn.w r3, #15 + 801257c: e00f b.n 801259e LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in ")); tcp_debug_print_state(pcb->state); if (pcb->state != LISTEN) { - 801256e: 687b ldr r3, [r7, #4] - 8012570: 7d1b ldrb r3, [r3, #20] - 8012572: 2b01 cmp r3, #1 - 8012574: d006 beq.n 8012584 + 801257e: 687b ldr r3, [r7, #4] + 8012580: 7d1b ldrb r3, [r3, #20] + 8012582: 2b01 cmp r3, #1 + 8012584: d006 beq.n 8012594 /* Set a flag not to receive any more data... */ tcp_set_flags(pcb, TF_RXCLOSED); - 8012576: 687b ldr r3, [r7, #4] - 8012578: 8b5b ldrh r3, [r3, #26] - 801257a: f043 0310 orr.w r3, r3, #16 - 801257e: b29a uxth r2, r3 - 8012580: 687b ldr r3, [r7, #4] - 8012582: 835a strh r2, [r3, #26] + 8012586: 687b ldr r3, [r7, #4] + 8012588: 8b5b ldrh r3, [r3, #26] + 801258a: f043 0310 orr.w r3, r3, #16 + 801258e: b29a uxth r2, r3 + 8012590: 687b ldr r3, [r7, #4] + 8012592: 835a strh r2, [r3, #26] } /* ... and close */ return tcp_close_shutdown(pcb, 1); - 8012584: 2101 movs r1, #1 - 8012586: 6878 ldr r0, [r7, #4] - 8012588: f7ff fe9c bl 80122c4 - 801258c: 4603 mov r3, r0 -} - 801258e: 4618 mov r0, r3 - 8012590: 3708 adds r7, #8 - 8012592: 46bd mov sp, r7 - 8012594: bd80 pop {r7, pc} - 8012596: bf00 nop - 8012598: 0801e4d8 .word 0x0801e4d8 - 801259c: 0801e5e8 .word 0x0801e5e8 - 80125a0: 0801e51c .word 0x0801e51c - -080125a4 : + 8012594: 2101 movs r1, #1 + 8012596: 6878 ldr r0, [r7, #4] + 8012598: f7ff fe9c bl 80122d4 + 801259c: 4603 mov r3, r0 +} + 801259e: 4618 mov r0, r3 + 80125a0: 3708 adds r7, #8 + 80125a2: 46bd mov sp, r7 + 80125a4: bd80 pop {r7, pc} + 80125a6: bf00 nop + 80125a8: 0801e4e8 .word 0x0801e4e8 + 80125ac: 0801e5f8 .word 0x0801e5f8 + 80125b0: 0801e52c .word 0x0801e52c + +080125b4 : * @param pcb the tcp_pcb to abort * @param reset boolean to indicate whether a reset should be sent */ void tcp_abandon(struct tcp_pcb *pcb, int reset) { - 80125a4: b580 push {r7, lr} - 80125a6: b08e sub sp, #56 ; 0x38 - 80125a8: af04 add r7, sp, #16 - 80125aa: 6078 str r0, [r7, #4] - 80125ac: 6039 str r1, [r7, #0] + 80125b4: b580 push {r7, lr} + 80125b6: b08e sub sp, #56 ; 0x38 + 80125b8: af04 add r7, sp, #16 + 80125ba: 6078 str r0, [r7, #4] + 80125bc: 6039 str r1, [r7, #0] #endif /* LWIP_CALLBACK_API */ void *errf_arg; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("tcp_abandon: invalid pcb", pcb != NULL, return); - 80125ae: 687b ldr r3, [r7, #4] - 80125b0: 2b00 cmp r3, #0 - 80125b2: d107 bne.n 80125c4 - 80125b4: 4b52 ldr r3, [pc, #328] ; (8012700 ) - 80125b6: f240 223d movw r2, #573 ; 0x23d - 80125ba: 4952 ldr r1, [pc, #328] ; (8012704 ) - 80125bc: 4852 ldr r0, [pc, #328] ; (8012708 ) - 80125be: f00a f843 bl 801c648 - 80125c2: e099 b.n 80126f8 + 80125be: 687b ldr r3, [r7, #4] + 80125c0: 2b00 cmp r3, #0 + 80125c2: d107 bne.n 80125d4 + 80125c4: 4b52 ldr r3, [pc, #328] ; (8012710 ) + 80125c6: f240 223d movw r2, #573 ; 0x23d + 80125ca: 4952 ldr r1, [pc, #328] ; (8012714 ) + 80125cc: 4852 ldr r0, [pc, #328] ; (8012718 ) + 80125ce: f00a f843 bl 801c658 + 80125d2: e099 b.n 8012708 /* pcb->state LISTEN not allowed here */ LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs", - 80125c4: 687b ldr r3, [r7, #4] - 80125c6: 7d1b ldrb r3, [r3, #20] - 80125c8: 2b01 cmp r3, #1 - 80125ca: d106 bne.n 80125da - 80125cc: 4b4c ldr r3, [pc, #304] ; (8012700 ) - 80125ce: f240 2241 movw r2, #577 ; 0x241 - 80125d2: 494e ldr r1, [pc, #312] ; (801270c ) - 80125d4: 484c ldr r0, [pc, #304] ; (8012708 ) - 80125d6: f00a f837 bl 801c648 + 80125d4: 687b ldr r3, [r7, #4] + 80125d6: 7d1b ldrb r3, [r3, #20] + 80125d8: 2b01 cmp r3, #1 + 80125da: d106 bne.n 80125ea + 80125dc: 4b4c ldr r3, [pc, #304] ; (8012710 ) + 80125de: f240 2241 movw r2, #577 ; 0x241 + 80125e2: 494e ldr r1, [pc, #312] ; (801271c ) + 80125e4: 484c ldr r0, [pc, #304] ; (8012718 ) + 80125e6: f00a f837 bl 801c658 pcb->state != LISTEN); /* Figure out on which TCP PCB list we are, and remove us. If we are in an active state, call the receive function associated with the PCB with a NULL argument, and send an RST to the remote end. */ if (pcb->state == TIME_WAIT) { - 80125da: 687b ldr r3, [r7, #4] - 80125dc: 7d1b ldrb r3, [r3, #20] - 80125de: 2b0a cmp r3, #10 - 80125e0: d107 bne.n 80125f2 + 80125ea: 687b ldr r3, [r7, #4] + 80125ec: 7d1b ldrb r3, [r3, #20] + 80125ee: 2b0a cmp r3, #10 + 80125f0: d107 bne.n 8012602 tcp_pcb_remove(&tcp_tw_pcbs, pcb); - 80125e2: 6879 ldr r1, [r7, #4] - 80125e4: 484a ldr r0, [pc, #296] ; (8012710 ) - 80125e6: f000 ffbf bl 8013568 + 80125f2: 6879 ldr r1, [r7, #4] + 80125f4: 484a ldr r0, [pc, #296] ; (8012720 ) + 80125f6: f000 ffbf bl 8013578 tcp_free(pcb); - 80125ea: 6878 ldr r0, [r7, #4] - 80125ec: f7ff fdb8 bl 8012160 - 80125f0: e082 b.n 80126f8 + 80125fa: 6878 ldr r0, [r7, #4] + 80125fc: f7ff fdb8 bl 8012170 + 8012600: e082 b.n 8012708 } else { int send_rst = 0; - 80125f2: 2300 movs r3, #0 - 80125f4: 627b str r3, [r7, #36] ; 0x24 + 8012602: 2300 movs r3, #0 + 8012604: 627b str r3, [r7, #36] ; 0x24 u16_t local_port = 0; - 80125f6: 2300 movs r3, #0 - 80125f8: 847b strh r3, [r7, #34] ; 0x22 + 8012606: 2300 movs r3, #0 + 8012608: 847b strh r3, [r7, #34] ; 0x22 enum tcp_state last_state; seqno = pcb->snd_nxt; - 80125fa: 687b ldr r3, [r7, #4] - 80125fc: 6d1b ldr r3, [r3, #80] ; 0x50 - 80125fe: 61bb str r3, [r7, #24] + 801260a: 687b ldr r3, [r7, #4] + 801260c: 6d1b ldr r3, [r3, #80] ; 0x50 + 801260e: 61bb str r3, [r7, #24] ackno = pcb->rcv_nxt; - 8012600: 687b ldr r3, [r7, #4] - 8012602: 6a5b ldr r3, [r3, #36] ; 0x24 - 8012604: 617b str r3, [r7, #20] + 8012610: 687b ldr r3, [r7, #4] + 8012612: 6a5b ldr r3, [r3, #36] ; 0x24 + 8012614: 617b str r3, [r7, #20] #if LWIP_CALLBACK_API errf = pcb->errf; - 8012606: 687b ldr r3, [r7, #4] - 8012608: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 801260c: 613b str r3, [r7, #16] + 8012616: 687b ldr r3, [r7, #4] + 8012618: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 801261c: 613b str r3, [r7, #16] #endif /* LWIP_CALLBACK_API */ errf_arg = pcb->callback_arg; - 801260e: 687b ldr r3, [r7, #4] - 8012610: 691b ldr r3, [r3, #16] - 8012612: 60fb str r3, [r7, #12] + 801261e: 687b ldr r3, [r7, #4] + 8012620: 691b ldr r3, [r3, #16] + 8012622: 60fb str r3, [r7, #12] if (pcb->state == CLOSED) { - 8012614: 687b ldr r3, [r7, #4] - 8012616: 7d1b ldrb r3, [r3, #20] - 8012618: 2b00 cmp r3, #0 - 801261a: d126 bne.n 801266a + 8012624: 687b ldr r3, [r7, #4] + 8012626: 7d1b ldrb r3, [r3, #20] + 8012628: 2b00 cmp r3, #0 + 801262a: d126 bne.n 801267a if (pcb->local_port != 0) { - 801261c: 687b ldr r3, [r7, #4] - 801261e: 8adb ldrh r3, [r3, #22] - 8012620: 2b00 cmp r3, #0 - 8012622: d02e beq.n 8012682 + 801262c: 687b ldr r3, [r7, #4] + 801262e: 8adb ldrh r3, [r3, #22] + 8012630: 2b00 cmp r3, #0 + 8012632: d02e beq.n 8012692 /* bound, not yet opened */ TCP_RMV(&tcp_bound_pcbs, pcb); - 8012624: 4b3b ldr r3, [pc, #236] ; (8012714 ) - 8012626: 681b ldr r3, [r3, #0] - 8012628: 687a ldr r2, [r7, #4] - 801262a: 429a cmp r2, r3 - 801262c: d105 bne.n 801263a - 801262e: 4b39 ldr r3, [pc, #228] ; (8012714 ) - 8012630: 681b ldr r3, [r3, #0] - 8012632: 68db ldr r3, [r3, #12] - 8012634: 4a37 ldr r2, [pc, #220] ; (8012714 ) - 8012636: 6013 str r3, [r2, #0] - 8012638: e013 b.n 8012662 - 801263a: 4b36 ldr r3, [pc, #216] ; (8012714 ) - 801263c: 681b ldr r3, [r3, #0] - 801263e: 61fb str r3, [r7, #28] - 8012640: e00c b.n 801265c - 8012642: 69fb ldr r3, [r7, #28] - 8012644: 68db ldr r3, [r3, #12] - 8012646: 687a ldr r2, [r7, #4] - 8012648: 429a cmp r2, r3 - 801264a: d104 bne.n 8012656 - 801264c: 687b ldr r3, [r7, #4] - 801264e: 68da ldr r2, [r3, #12] - 8012650: 69fb ldr r3, [r7, #28] - 8012652: 60da str r2, [r3, #12] - 8012654: e005 b.n 8012662 - 8012656: 69fb ldr r3, [r7, #28] - 8012658: 68db ldr r3, [r3, #12] - 801265a: 61fb str r3, [r7, #28] - 801265c: 69fb ldr r3, [r7, #28] - 801265e: 2b00 cmp r3, #0 - 8012660: d1ef bne.n 8012642 - 8012662: 687b ldr r3, [r7, #4] - 8012664: 2200 movs r2, #0 - 8012666: 60da str r2, [r3, #12] - 8012668: e00b b.n 8012682 + 8012634: 4b3b ldr r3, [pc, #236] ; (8012724 ) + 8012636: 681b ldr r3, [r3, #0] + 8012638: 687a ldr r2, [r7, #4] + 801263a: 429a cmp r2, r3 + 801263c: d105 bne.n 801264a + 801263e: 4b39 ldr r3, [pc, #228] ; (8012724 ) + 8012640: 681b ldr r3, [r3, #0] + 8012642: 68db ldr r3, [r3, #12] + 8012644: 4a37 ldr r2, [pc, #220] ; (8012724 ) + 8012646: 6013 str r3, [r2, #0] + 8012648: e013 b.n 8012672 + 801264a: 4b36 ldr r3, [pc, #216] ; (8012724 ) + 801264c: 681b ldr r3, [r3, #0] + 801264e: 61fb str r3, [r7, #28] + 8012650: e00c b.n 801266c + 8012652: 69fb ldr r3, [r7, #28] + 8012654: 68db ldr r3, [r3, #12] + 8012656: 687a ldr r2, [r7, #4] + 8012658: 429a cmp r2, r3 + 801265a: d104 bne.n 8012666 + 801265c: 687b ldr r3, [r7, #4] + 801265e: 68da ldr r2, [r3, #12] + 8012660: 69fb ldr r3, [r7, #28] + 8012662: 60da str r2, [r3, #12] + 8012664: e005 b.n 8012672 + 8012666: 69fb ldr r3, [r7, #28] + 8012668: 68db ldr r3, [r3, #12] + 801266a: 61fb str r3, [r7, #28] + 801266c: 69fb ldr r3, [r7, #28] + 801266e: 2b00 cmp r3, #0 + 8012670: d1ef bne.n 8012652 + 8012672: 687b ldr r3, [r7, #4] + 8012674: 2200 movs r2, #0 + 8012676: 60da str r2, [r3, #12] + 8012678: e00b b.n 8012692 } } else { send_rst = reset; - 801266a: 683b ldr r3, [r7, #0] - 801266c: 627b str r3, [r7, #36] ; 0x24 + 801267a: 683b ldr r3, [r7, #0] + 801267c: 627b str r3, [r7, #36] ; 0x24 local_port = pcb->local_port; - 801266e: 687b ldr r3, [r7, #4] - 8012670: 8adb ldrh r3, [r3, #22] - 8012672: 847b strh r3, [r7, #34] ; 0x22 + 801267e: 687b ldr r3, [r7, #4] + 8012680: 8adb ldrh r3, [r3, #22] + 8012682: 847b strh r3, [r7, #34] ; 0x22 TCP_PCB_REMOVE_ACTIVE(pcb); - 8012674: 6879 ldr r1, [r7, #4] - 8012676: 4828 ldr r0, [pc, #160] ; (8012718 ) - 8012678: f000 ff76 bl 8013568 - 801267c: 4b27 ldr r3, [pc, #156] ; (801271c ) - 801267e: 2201 movs r2, #1 - 8012680: 701a strb r2, [r3, #0] + 8012684: 6879 ldr r1, [r7, #4] + 8012686: 4828 ldr r0, [pc, #160] ; (8012728 ) + 8012688: f000 ff76 bl 8013578 + 801268c: 4b27 ldr r3, [pc, #156] ; (801272c ) + 801268e: 2201 movs r2, #1 + 8012690: 701a strb r2, [r3, #0] } if (pcb->unacked != NULL) { - 8012682: 687b ldr r3, [r7, #4] - 8012684: 6f1b ldr r3, [r3, #112] ; 0x70 - 8012686: 2b00 cmp r3, #0 - 8012688: d004 beq.n 8012694 + 8012692: 687b ldr r3, [r7, #4] + 8012694: 6f1b ldr r3, [r3, #112] ; 0x70 + 8012696: 2b00 cmp r3, #0 + 8012698: d004 beq.n 80126a4 tcp_segs_free(pcb->unacked); - 801268a: 687b ldr r3, [r7, #4] - 801268c: 6f1b ldr r3, [r3, #112] ; 0x70 - 801268e: 4618 mov r0, r3 - 8012690: f000 fd1a bl 80130c8 + 801269a: 687b ldr r3, [r7, #4] + 801269c: 6f1b ldr r3, [r3, #112] ; 0x70 + 801269e: 4618 mov r0, r3 + 80126a0: f000 fd1a bl 80130d8 } if (pcb->unsent != NULL) { - 8012694: 687b ldr r3, [r7, #4] - 8012696: 6edb ldr r3, [r3, #108] ; 0x6c - 8012698: 2b00 cmp r3, #0 - 801269a: d004 beq.n 80126a6 + 80126a4: 687b ldr r3, [r7, #4] + 80126a6: 6edb ldr r3, [r3, #108] ; 0x6c + 80126a8: 2b00 cmp r3, #0 + 80126aa: d004 beq.n 80126b6 tcp_segs_free(pcb->unsent); - 801269c: 687b ldr r3, [r7, #4] - 801269e: 6edb ldr r3, [r3, #108] ; 0x6c - 80126a0: 4618 mov r0, r3 - 80126a2: f000 fd11 bl 80130c8 + 80126ac: 687b ldr r3, [r7, #4] + 80126ae: 6edb ldr r3, [r3, #108] ; 0x6c + 80126b0: 4618 mov r0, r3 + 80126b2: f000 fd11 bl 80130d8 } #if TCP_QUEUE_OOSEQ if (pcb->ooseq != NULL) { - 80126a6: 687b ldr r3, [r7, #4] - 80126a8: 6f5b ldr r3, [r3, #116] ; 0x74 - 80126aa: 2b00 cmp r3, #0 - 80126ac: d004 beq.n 80126b8 + 80126b6: 687b ldr r3, [r7, #4] + 80126b8: 6f5b ldr r3, [r3, #116] ; 0x74 + 80126ba: 2b00 cmp r3, #0 + 80126bc: d004 beq.n 80126c8 tcp_segs_free(pcb->ooseq); - 80126ae: 687b ldr r3, [r7, #4] - 80126b0: 6f5b ldr r3, [r3, #116] ; 0x74 - 80126b2: 4618 mov r0, r3 - 80126b4: f000 fd08 bl 80130c8 + 80126be: 687b ldr r3, [r7, #4] + 80126c0: 6f5b ldr r3, [r3, #116] ; 0x74 + 80126c2: 4618 mov r0, r3 + 80126c4: f000 fd08 bl 80130d8 } #endif /* TCP_QUEUE_OOSEQ */ tcp_backlog_accepted(pcb); if (send_rst) { - 80126b8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80126ba: 2b00 cmp r3, #0 - 80126bc: d00e beq.n 80126dc + 80126c8: 6a7b ldr r3, [r7, #36] ; 0x24 + 80126ca: 2b00 cmp r3, #0 + 80126cc: d00e beq.n 80126ec LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_abandon: sending RST\n")); tcp_rst(pcb, seqno, ackno, &pcb->local_ip, &pcb->remote_ip, local_port, pcb->remote_port); - 80126be: 6879 ldr r1, [r7, #4] - 80126c0: 687b ldr r3, [r7, #4] - 80126c2: 3304 adds r3, #4 - 80126c4: 687a ldr r2, [r7, #4] - 80126c6: 8b12 ldrh r2, [r2, #24] - 80126c8: 9202 str r2, [sp, #8] - 80126ca: 8c7a ldrh r2, [r7, #34] ; 0x22 - 80126cc: 9201 str r2, [sp, #4] - 80126ce: 9300 str r3, [sp, #0] - 80126d0: 460b mov r3, r1 - 80126d2: 697a ldr r2, [r7, #20] - 80126d4: 69b9 ldr r1, [r7, #24] - 80126d6: 6878 ldr r0, [r7, #4] - 80126d8: f004 fcca bl 8017070 + 80126ce: 6879 ldr r1, [r7, #4] + 80126d0: 687b ldr r3, [r7, #4] + 80126d2: 3304 adds r3, #4 + 80126d4: 687a ldr r2, [r7, #4] + 80126d6: 8b12 ldrh r2, [r2, #24] + 80126d8: 9202 str r2, [sp, #8] + 80126da: 8c7a ldrh r2, [r7, #34] ; 0x22 + 80126dc: 9201 str r2, [sp, #4] + 80126de: 9300 str r3, [sp, #0] + 80126e0: 460b mov r3, r1 + 80126e2: 697a ldr r2, [r7, #20] + 80126e4: 69b9 ldr r1, [r7, #24] + 80126e6: 6878 ldr r0, [r7, #4] + 80126e8: f004 fcca bl 8017080 } last_state = pcb->state; - 80126dc: 687b ldr r3, [r7, #4] - 80126de: 7d1b ldrb r3, [r3, #20] - 80126e0: 72fb strb r3, [r7, #11] + 80126ec: 687b ldr r3, [r7, #4] + 80126ee: 7d1b ldrb r3, [r3, #20] + 80126f0: 72fb strb r3, [r7, #11] tcp_free(pcb); - 80126e2: 6878 ldr r0, [r7, #4] - 80126e4: f7ff fd3c bl 8012160 + 80126f2: 6878 ldr r0, [r7, #4] + 80126f4: f7ff fd3c bl 8012170 TCP_EVENT_ERR(last_state, errf, errf_arg, ERR_ABRT); - 80126e8: 693b ldr r3, [r7, #16] - 80126ea: 2b00 cmp r3, #0 - 80126ec: d004 beq.n 80126f8 - 80126ee: 693b ldr r3, [r7, #16] - 80126f0: f06f 010c mvn.w r1, #12 - 80126f4: 68f8 ldr r0, [r7, #12] - 80126f6: 4798 blx r3 - } -} - 80126f8: 3728 adds r7, #40 ; 0x28 - 80126fa: 46bd mov sp, r7 - 80126fc: bd80 pop {r7, pc} - 80126fe: bf00 nop - 8012700: 0801e4d8 .word 0x0801e4d8 - 8012704: 0801e61c .word 0x0801e61c - 8012708: 0801e51c .word 0x0801e51c - 801270c: 0801e638 .word 0x0801e638 - 8012710: 2000f800 .word 0x2000f800 - 8012714: 2000f7fc .word 0x2000f7fc - 8012718: 2000f7f0 .word 0x2000f7f0 - 801271c: 2000f7ec .word 0x2000f7ec - -08012720 : + 80126f8: 693b ldr r3, [r7, #16] + 80126fa: 2b00 cmp r3, #0 + 80126fc: d004 beq.n 8012708 + 80126fe: 693b ldr r3, [r7, #16] + 8012700: f06f 010c mvn.w r1, #12 + 8012704: 68f8 ldr r0, [r7, #12] + 8012706: 4798 blx r3 + } +} + 8012708: 3728 adds r7, #40 ; 0x28 + 801270a: 46bd mov sp, r7 + 801270c: bd80 pop {r7, pc} + 801270e: bf00 nop + 8012710: 0801e4e8 .word 0x0801e4e8 + 8012714: 0801e62c .word 0x0801e62c + 8012718: 0801e52c .word 0x0801e52c + 801271c: 0801e648 .word 0x0801e648 + 8012720: 2000f800 .word 0x2000f800 + 8012724: 2000f7fc .word 0x2000f7fc + 8012728: 2000f7f0 .word 0x2000f7f0 + 801272c: 2000f7ec .word 0x2000f7ec + +08012730 : * * @param pcb the tcp pcb to abort */ void tcp_abort(struct tcp_pcb *pcb) { - 8012720: b580 push {r7, lr} - 8012722: b082 sub sp, #8 - 8012724: af00 add r7, sp, #0 - 8012726: 6078 str r0, [r7, #4] + 8012730: b580 push {r7, lr} + 8012732: b082 sub sp, #8 + 8012734: af00 add r7, sp, #0 + 8012736: 6078 str r0, [r7, #4] tcp_abandon(pcb, 1); - 8012728: 2101 movs r1, #1 - 801272a: 6878 ldr r0, [r7, #4] - 801272c: f7ff ff3a bl 80125a4 + 8012738: 2101 movs r1, #1 + 801273a: 6878 ldr r0, [r7, #4] + 801273c: f7ff ff3a bl 80125b4 } - 8012730: bf00 nop - 8012732: 3708 adds r7, #8 - 8012734: 46bd mov sp, r7 - 8012736: bd80 pop {r7, pc} + 8012740: bf00 nop + 8012742: 3708 adds r7, #8 + 8012744: 46bd mov sp, r7 + 8012746: bd80 pop {r7, pc} -08012738 : +08012748 : * Returns how much extra window would be advertised if we sent an * update now. */ u32_t tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb) { - 8012738: b580 push {r7, lr} - 801273a: b084 sub sp, #16 - 801273c: af00 add r7, sp, #0 - 801273e: 6078 str r0, [r7, #4] + 8012748: b580 push {r7, lr} + 801274a: b084 sub sp, #16 + 801274c: af00 add r7, sp, #0 + 801274e: 6078 str r0, [r7, #4] u32_t new_right_edge; LWIP_ASSERT("tcp_update_rcv_ann_wnd: invalid pcb", pcb != NULL); - 8012740: 687b ldr r3, [r7, #4] - 8012742: 2b00 cmp r3, #0 - 8012744: d106 bne.n 8012754 - 8012746: 4b25 ldr r3, [pc, #148] ; (80127dc ) - 8012748: f240 32a6 movw r2, #934 ; 0x3a6 - 801274c: 4924 ldr r1, [pc, #144] ; (80127e0 ) - 801274e: 4825 ldr r0, [pc, #148] ; (80127e4 ) - 8012750: f009 ff7a bl 801c648 + 8012750: 687b ldr r3, [r7, #4] + 8012752: 2b00 cmp r3, #0 + 8012754: d106 bne.n 8012764 + 8012756: 4b25 ldr r3, [pc, #148] ; (80127ec ) + 8012758: f240 32a6 movw r2, #934 ; 0x3a6 + 801275c: 4924 ldr r1, [pc, #144] ; (80127f0 ) + 801275e: 4825 ldr r0, [pc, #148] ; (80127f4 ) + 8012760: f009 ff7a bl 801c658 new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd; - 8012754: 687b ldr r3, [r7, #4] - 8012756: 6a5b ldr r3, [r3, #36] ; 0x24 - 8012758: 687a ldr r2, [r7, #4] - 801275a: 8d12 ldrh r2, [r2, #40] ; 0x28 - 801275c: 4413 add r3, r2 - 801275e: 60fb str r3, [r7, #12] + 8012764: 687b ldr r3, [r7, #4] + 8012766: 6a5b ldr r3, [r3, #36] ; 0x24 + 8012768: 687a ldr r2, [r7, #4] + 801276a: 8d12 ldrh r2, [r2, #40] ; 0x28 + 801276c: 4413 add r3, r2 + 801276e: 60fb str r3, [r7, #12] if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) { - 8012760: 687b ldr r3, [r7, #4] - 8012762: 6adb ldr r3, [r3, #44] ; 0x2c - 8012764: 687a ldr r2, [r7, #4] - 8012766: 8e52 ldrh r2, [r2, #50] ; 0x32 - 8012768: f5b2 6f86 cmp.w r2, #1072 ; 0x430 - 801276c: bf28 it cs - 801276e: f44f 6286 movcs.w r2, #1072 ; 0x430 - 8012772: b292 uxth r2, r2 - 8012774: 4413 add r3, r2 - 8012776: 68fa ldr r2, [r7, #12] - 8012778: 1ad3 subs r3, r2, r3 - 801277a: 2b00 cmp r3, #0 - 801277c: db08 blt.n 8012790 + 8012770: 687b ldr r3, [r7, #4] + 8012772: 6adb ldr r3, [r3, #44] ; 0x2c + 8012774: 687a ldr r2, [r7, #4] + 8012776: 8e52 ldrh r2, [r2, #50] ; 0x32 + 8012778: f5b2 6f86 cmp.w r2, #1072 ; 0x430 + 801277c: bf28 it cs + 801277e: f44f 6286 movcs.w r2, #1072 ; 0x430 + 8012782: b292 uxth r2, r2 + 8012784: 4413 add r3, r2 + 8012786: 68fa ldr r2, [r7, #12] + 8012788: 1ad3 subs r3, r2, r3 + 801278a: 2b00 cmp r3, #0 + 801278c: db08 blt.n 80127a0 /* we can advertise more window */ pcb->rcv_ann_wnd = pcb->rcv_wnd; - 801277e: 687b ldr r3, [r7, #4] - 8012780: 8d1a ldrh r2, [r3, #40] ; 0x28 - 8012782: 687b ldr r3, [r7, #4] - 8012784: 855a strh r2, [r3, #42] ; 0x2a + 801278e: 687b ldr r3, [r7, #4] + 8012790: 8d1a ldrh r2, [r3, #40] ; 0x28 + 8012792: 687b ldr r3, [r7, #4] + 8012794: 855a strh r2, [r3, #42] ; 0x2a return new_right_edge - pcb->rcv_ann_right_edge; - 8012786: 687b ldr r3, [r7, #4] - 8012788: 6adb ldr r3, [r3, #44] ; 0x2c - 801278a: 68fa ldr r2, [r7, #12] - 801278c: 1ad3 subs r3, r2, r3 - 801278e: e020 b.n 80127d2 + 8012796: 687b ldr r3, [r7, #4] + 8012798: 6adb ldr r3, [r3, #44] ; 0x2c + 801279a: 68fa ldr r2, [r7, #12] + 801279c: 1ad3 subs r3, r2, r3 + 801279e: e020 b.n 80127e2 } else { if (TCP_SEQ_GT(pcb->rcv_nxt, pcb->rcv_ann_right_edge)) { - 8012790: 687b ldr r3, [r7, #4] - 8012792: 6a5a ldr r2, [r3, #36] ; 0x24 - 8012794: 687b ldr r3, [r7, #4] - 8012796: 6adb ldr r3, [r3, #44] ; 0x2c - 8012798: 1ad3 subs r3, r2, r3 - 801279a: 2b00 cmp r3, #0 - 801279c: dd03 ble.n 80127a6 + 80127a0: 687b ldr r3, [r7, #4] + 80127a2: 6a5a ldr r2, [r3, #36] ; 0x24 + 80127a4: 687b ldr r3, [r7, #4] + 80127a6: 6adb ldr r3, [r3, #44] ; 0x2c + 80127a8: 1ad3 subs r3, r2, r3 + 80127aa: 2b00 cmp r3, #0 + 80127ac: dd03 ble.n 80127b6 /* Can happen due to other end sending out of advertised window, * but within actual available (but not yet advertised) window */ pcb->rcv_ann_wnd = 0; - 801279e: 687b ldr r3, [r7, #4] - 80127a0: 2200 movs r2, #0 - 80127a2: 855a strh r2, [r3, #42] ; 0x2a - 80127a4: e014 b.n 80127d0 + 80127ae: 687b ldr r3, [r7, #4] + 80127b0: 2200 movs r2, #0 + 80127b2: 855a strh r2, [r3, #42] ; 0x2a + 80127b4: e014 b.n 80127e0 } else { /* keep the right edge of window constant */ u32_t new_rcv_ann_wnd = pcb->rcv_ann_right_edge - pcb->rcv_nxt; - 80127a6: 687b ldr r3, [r7, #4] - 80127a8: 6ada ldr r2, [r3, #44] ; 0x2c - 80127aa: 687b ldr r3, [r7, #4] - 80127ac: 6a5b ldr r3, [r3, #36] ; 0x24 - 80127ae: 1ad3 subs r3, r2, r3 - 80127b0: 60bb str r3, [r7, #8] + 80127b6: 687b ldr r3, [r7, #4] + 80127b8: 6ada ldr r2, [r3, #44] ; 0x2c + 80127ba: 687b ldr r3, [r7, #4] + 80127bc: 6a5b ldr r3, [r3, #36] ; 0x24 + 80127be: 1ad3 subs r3, r2, r3 + 80127c0: 60bb str r3, [r7, #8] #if !LWIP_WND_SCALE LWIP_ASSERT("new_rcv_ann_wnd <= 0xffff", new_rcv_ann_wnd <= 0xffff); - 80127b2: 68bb ldr r3, [r7, #8] - 80127b4: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 80127b8: d306 bcc.n 80127c8 - 80127ba: 4b08 ldr r3, [pc, #32] ; (80127dc ) - 80127bc: f240 32b6 movw r2, #950 ; 0x3b6 - 80127c0: 4909 ldr r1, [pc, #36] ; (80127e8 ) - 80127c2: 4808 ldr r0, [pc, #32] ; (80127e4 ) - 80127c4: f009 ff40 bl 801c648 + 80127c2: 68bb ldr r3, [r7, #8] + 80127c4: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 80127c8: d306 bcc.n 80127d8 + 80127ca: 4b08 ldr r3, [pc, #32] ; (80127ec ) + 80127cc: f240 32b6 movw r2, #950 ; 0x3b6 + 80127d0: 4909 ldr r1, [pc, #36] ; (80127f8 ) + 80127d2: 4808 ldr r0, [pc, #32] ; (80127f4 ) + 80127d4: f009 ff40 bl 801c658 #endif pcb->rcv_ann_wnd = (tcpwnd_size_t)new_rcv_ann_wnd; - 80127c8: 68bb ldr r3, [r7, #8] - 80127ca: b29a uxth r2, r3 - 80127cc: 687b ldr r3, [r7, #4] - 80127ce: 855a strh r2, [r3, #42] ; 0x2a + 80127d8: 68bb ldr r3, [r7, #8] + 80127da: b29a uxth r2, r3 + 80127dc: 687b ldr r3, [r7, #4] + 80127de: 855a strh r2, [r3, #42] ; 0x2a } return 0; - 80127d0: 2300 movs r3, #0 + 80127e0: 2300 movs r3, #0 } } - 80127d2: 4618 mov r0, r3 - 80127d4: 3710 adds r7, #16 - 80127d6: 46bd mov sp, r7 - 80127d8: bd80 pop {r7, pc} - 80127da: bf00 nop - 80127dc: 0801e4d8 .word 0x0801e4d8 - 80127e0: 0801e734 .word 0x0801e734 - 80127e4: 0801e51c .word 0x0801e51c - 80127e8: 0801e758 .word 0x0801e758 + 80127e2: 4618 mov r0, r3 + 80127e4: 3710 adds r7, #16 + 80127e6: 46bd mov sp, r7 + 80127e8: bd80 pop {r7, pc} + 80127ea: bf00 nop + 80127ec: 0801e4e8 .word 0x0801e4e8 + 80127f0: 0801e744 .word 0x0801e744 + 80127f4: 0801e52c .word 0x0801e52c + 80127f8: 0801e768 .word 0x0801e768 -080127ec : +080127fc : * @param pcb the tcp_pcb for which data is read * @param len the amount of bytes that have been read by the application */ void tcp_recved(struct tcp_pcb *pcb, u16_t len) { - 80127ec: b580 push {r7, lr} - 80127ee: b084 sub sp, #16 - 80127f0: af00 add r7, sp, #0 - 80127f2: 6078 str r0, [r7, #4] - 80127f4: 460b mov r3, r1 - 80127f6: 807b strh r3, [r7, #2] + 80127fc: b580 push {r7, lr} + 80127fe: b084 sub sp, #16 + 8012800: af00 add r7, sp, #0 + 8012802: 6078 str r0, [r7, #4] + 8012804: 460b mov r3, r1 + 8012806: 807b strh r3, [r7, #2] u32_t wnd_inflation; tcpwnd_size_t rcv_wnd; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("tcp_recved: invalid pcb", pcb != NULL, return); - 80127f8: 687b ldr r3, [r7, #4] - 80127fa: 2b00 cmp r3, #0 - 80127fc: d107 bne.n 801280e - 80127fe: 4b1f ldr r3, [pc, #124] ; (801287c ) - 8012800: f240 32cf movw r2, #975 ; 0x3cf - 8012804: 491e ldr r1, [pc, #120] ; (8012880 ) - 8012806: 481f ldr r0, [pc, #124] ; (8012884 ) - 8012808: f009 ff1e bl 801c648 - 801280c: e032 b.n 8012874 + 8012808: 687b ldr r3, [r7, #4] + 801280a: 2b00 cmp r3, #0 + 801280c: d107 bne.n 801281e + 801280e: 4b1f ldr r3, [pc, #124] ; (801288c ) + 8012810: f240 32cf movw r2, #975 ; 0x3cf + 8012814: 491e ldr r1, [pc, #120] ; (8012890 ) + 8012816: 481f ldr r0, [pc, #124] ; (8012894 ) + 8012818: f009 ff1e bl 801c658 + 801281c: e032 b.n 8012884 /* pcb->state LISTEN not allowed here */ LWIP_ASSERT("don't call tcp_recved for listen-pcbs", - 801280e: 687b ldr r3, [r7, #4] - 8012810: 7d1b ldrb r3, [r3, #20] - 8012812: 2b01 cmp r3, #1 - 8012814: d106 bne.n 8012824 - 8012816: 4b19 ldr r3, [pc, #100] ; (801287c ) - 8012818: f240 32d3 movw r2, #979 ; 0x3d3 - 801281c: 491a ldr r1, [pc, #104] ; (8012888 ) - 801281e: 4819 ldr r0, [pc, #100] ; (8012884 ) - 8012820: f009 ff12 bl 801c648 + 801281e: 687b ldr r3, [r7, #4] + 8012820: 7d1b ldrb r3, [r3, #20] + 8012822: 2b01 cmp r3, #1 + 8012824: d106 bne.n 8012834 + 8012826: 4b19 ldr r3, [pc, #100] ; (801288c ) + 8012828: f240 32d3 movw r2, #979 ; 0x3d3 + 801282c: 491a ldr r1, [pc, #104] ; (8012898 ) + 801282e: 4819 ldr r0, [pc, #100] ; (8012894 ) + 8012830: f009 ff12 bl 801c658 pcb->state != LISTEN); rcv_wnd = (tcpwnd_size_t)(pcb->rcv_wnd + len); - 8012824: 687b ldr r3, [r7, #4] - 8012826: 8d1a ldrh r2, [r3, #40] ; 0x28 - 8012828: 887b ldrh r3, [r7, #2] - 801282a: 4413 add r3, r2 - 801282c: 81fb strh r3, [r7, #14] + 8012834: 687b ldr r3, [r7, #4] + 8012836: 8d1a ldrh r2, [r3, #40] ; 0x28 + 8012838: 887b ldrh r3, [r7, #2] + 801283a: 4413 add r3, r2 + 801283c: 81fb strh r3, [r7, #14] if ((rcv_wnd > TCP_WND_MAX(pcb)) || (rcv_wnd < pcb->rcv_wnd)) { - 801282e: 89fb ldrh r3, [r7, #14] - 8012830: f5b3 6f06 cmp.w r3, #2144 ; 0x860 - 8012834: d804 bhi.n 8012840 - 8012836: 687b ldr r3, [r7, #4] - 8012838: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801283a: 89fa ldrh r2, [r7, #14] - 801283c: 429a cmp r2, r3 - 801283e: d204 bcs.n 801284a + 801283e: 89fb ldrh r3, [r7, #14] + 8012840: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 8012844: d804 bhi.n 8012850 + 8012846: 687b ldr r3, [r7, #4] + 8012848: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801284a: 89fa ldrh r2, [r7, #14] + 801284c: 429a cmp r2, r3 + 801284e: d204 bcs.n 801285a /* window got too big or tcpwnd_size_t overflow */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: window got too big or tcpwnd_size_t overflow\n")); pcb->rcv_wnd = TCP_WND_MAX(pcb); - 8012840: 687b ldr r3, [r7, #4] - 8012842: f44f 6206 mov.w r2, #2144 ; 0x860 - 8012846: 851a strh r2, [r3, #40] ; 0x28 - 8012848: e002 b.n 8012850 + 8012850: 687b ldr r3, [r7, #4] + 8012852: f44f 6206 mov.w r2, #2144 ; 0x860 + 8012856: 851a strh r2, [r3, #40] ; 0x28 + 8012858: e002 b.n 8012860 } else { pcb->rcv_wnd = rcv_wnd; - 801284a: 687b ldr r3, [r7, #4] - 801284c: 89fa ldrh r2, [r7, #14] - 801284e: 851a strh r2, [r3, #40] ; 0x28 + 801285a: 687b ldr r3, [r7, #4] + 801285c: 89fa ldrh r2, [r7, #14] + 801285e: 851a strh r2, [r3, #40] ; 0x28 } wnd_inflation = tcp_update_rcv_ann_wnd(pcb); - 8012850: 6878 ldr r0, [r7, #4] - 8012852: f7ff ff71 bl 8012738 - 8012856: 60b8 str r0, [r7, #8] + 8012860: 6878 ldr r0, [r7, #4] + 8012862: f7ff ff71 bl 8012748 + 8012866: 60b8 str r0, [r7, #8] /* If the change in the right edge of window is significant (default * watermark is TCP_WND/4), then send an explicit update now. * Otherwise wait for a packet to be sent in the normal course of * events (or more window to be available later) */ if (wnd_inflation >= TCP_WND_UPDATE_THRESHOLD) { - 8012858: 68bb ldr r3, [r7, #8] - 801285a: f5b3 7f06 cmp.w r3, #536 ; 0x218 - 801285e: d309 bcc.n 8012874 + 8012868: 68bb ldr r3, [r7, #8] + 801286a: f5b3 7f06 cmp.w r3, #536 ; 0x218 + 801286e: d309 bcc.n 8012884 tcp_ack_now(pcb); - 8012860: 687b ldr r3, [r7, #4] - 8012862: 8b5b ldrh r3, [r3, #26] - 8012864: f043 0302 orr.w r3, r3, #2 - 8012868: b29a uxth r2, r3 - 801286a: 687b ldr r3, [r7, #4] - 801286c: 835a strh r2, [r3, #26] + 8012870: 687b ldr r3, [r7, #4] + 8012872: 8b5b ldrh r3, [r3, #26] + 8012874: f043 0302 orr.w r3, r3, #2 + 8012878: b29a uxth r2, r3 + 801287a: 687b ldr r3, [r7, #4] + 801287c: 835a strh r2, [r3, #26] tcp_output(pcb); - 801286e: 6878 ldr r0, [r7, #4] - 8012870: f003 fe38 bl 80164e4 + 801287e: 6878 ldr r0, [r7, #4] + 8012880: f003 fe38 bl 80164f4 } LWIP_DEBUGF(TCP_DEBUG, ("tcp_recved: received %"U16_F" bytes, wnd %"TCPWNDSIZE_F" (%"TCPWNDSIZE_F").\n", len, pcb->rcv_wnd, (u16_t)(TCP_WND_MAX(pcb) - pcb->rcv_wnd))); } - 8012874: 3710 adds r7, #16 - 8012876: 46bd mov sp, r7 - 8012878: bd80 pop {r7, pc} - 801287a: bf00 nop - 801287c: 0801e4d8 .word 0x0801e4d8 - 8012880: 0801e774 .word 0x0801e774 - 8012884: 0801e51c .word 0x0801e51c - 8012888: 0801e78c .word 0x0801e78c + 8012884: 3710 adds r7, #16 + 8012886: 46bd mov sp, r7 + 8012888: bd80 pop {r7, pc} + 801288a: bf00 nop + 801288c: 0801e4e8 .word 0x0801e4e8 + 8012890: 0801e784 .word 0x0801e784 + 8012894: 0801e52c .word 0x0801e52c + 8012898: 0801e79c .word 0x0801e79c -0801288c : +0801289c : * * Automatically called from tcp_tmr(). */ void tcp_slowtmr(void) { - 801288c: b5b0 push {r4, r5, r7, lr} - 801288e: b090 sub sp, #64 ; 0x40 - 8012890: af04 add r7, sp, #16 + 801289c: b5b0 push {r4, r5, r7, lr} + 801289e: b090 sub sp, #64 ; 0x40 + 80128a0: af04 add r7, sp, #16 tcpwnd_size_t eff_wnd; u8_t pcb_remove; /* flag if a PCB should be removed */ u8_t pcb_reset; /* flag if a RST should be sent when removing */ err_t err; err = ERR_OK; - 8012892: 2300 movs r3, #0 - 8012894: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 80128a2: 2300 movs r3, #0 + 80128a4: f887 3025 strb.w r3, [r7, #37] ; 0x25 ++tcp_ticks; - 8012898: 4b94 ldr r3, [pc, #592] ; (8012aec ) - 801289a: 681b ldr r3, [r3, #0] - 801289c: 3301 adds r3, #1 - 801289e: 4a93 ldr r2, [pc, #588] ; (8012aec ) - 80128a0: 6013 str r3, [r2, #0] + 80128a8: 4b94 ldr r3, [pc, #592] ; (8012afc ) + 80128aa: 681b ldr r3, [r3, #0] + 80128ac: 3301 adds r3, #1 + 80128ae: 4a93 ldr r2, [pc, #588] ; (8012afc ) + 80128b0: 6013 str r3, [r2, #0] ++tcp_timer_ctr; - 80128a2: 4b93 ldr r3, [pc, #588] ; (8012af0 ) - 80128a4: 781b ldrb r3, [r3, #0] - 80128a6: 3301 adds r3, #1 - 80128a8: b2da uxtb r2, r3 - 80128aa: 4b91 ldr r3, [pc, #580] ; (8012af0 ) - 80128ac: 701a strb r2, [r3, #0] + 80128b2: 4b93 ldr r3, [pc, #588] ; (8012b00 ) + 80128b4: 781b ldrb r3, [r3, #0] + 80128b6: 3301 adds r3, #1 + 80128b8: b2da uxtb r2, r3 + 80128ba: 4b91 ldr r3, [pc, #580] ; (8012b00 ) + 80128bc: 701a strb r2, [r3, #0] tcp_slowtmr_start: /* Steps through all of the active PCBs. */ prev = NULL; - 80128ae: 2300 movs r3, #0 - 80128b0: 62bb str r3, [r7, #40] ; 0x28 + 80128be: 2300 movs r3, #0 + 80128c0: 62bb str r3, [r7, #40] ; 0x28 pcb = tcp_active_pcbs; - 80128b2: 4b90 ldr r3, [pc, #576] ; (8012af4 ) - 80128b4: 681b ldr r3, [r3, #0] - 80128b6: 62fb str r3, [r7, #44] ; 0x2c + 80128c2: 4b90 ldr r3, [pc, #576] ; (8012b04 ) + 80128c4: 681b ldr r3, [r3, #0] + 80128c6: 62fb str r3, [r7, #44] ; 0x2c if (pcb == NULL) { LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: no active pcbs\n")); } while (pcb != NULL) { - 80128b8: e29d b.n 8012df6 + 80128c8: e29d b.n 8012e06 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: processing active pcb\n")); LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED); - 80128ba: 6afb ldr r3, [r7, #44] ; 0x2c - 80128bc: 7d1b ldrb r3, [r3, #20] - 80128be: 2b00 cmp r3, #0 - 80128c0: d106 bne.n 80128d0 - 80128c2: 4b8d ldr r3, [pc, #564] ; (8012af8 ) - 80128c4: f240 42be movw r2, #1214 ; 0x4be - 80128c8: 498c ldr r1, [pc, #560] ; (8012afc ) - 80128ca: 488d ldr r0, [pc, #564] ; (8012b00 ) - 80128cc: f009 febc bl 801c648 + 80128ca: 6afb ldr r3, [r7, #44] ; 0x2c + 80128cc: 7d1b ldrb r3, [r3, #20] + 80128ce: 2b00 cmp r3, #0 + 80128d0: d106 bne.n 80128e0 + 80128d2: 4b8d ldr r3, [pc, #564] ; (8012b08 ) + 80128d4: f240 42be movw r2, #1214 ; 0x4be + 80128d8: 498c ldr r1, [pc, #560] ; (8012b0c ) + 80128da: 488d ldr r0, [pc, #564] ; (8012b10 ) + 80128dc: f009 febc bl 801c658 LWIP_ASSERT("tcp_slowtmr: active pcb->state != LISTEN\n", pcb->state != LISTEN); - 80128d0: 6afb ldr r3, [r7, #44] ; 0x2c - 80128d2: 7d1b ldrb r3, [r3, #20] - 80128d4: 2b01 cmp r3, #1 - 80128d6: d106 bne.n 80128e6 - 80128d8: 4b87 ldr r3, [pc, #540] ; (8012af8 ) - 80128da: f240 42bf movw r2, #1215 ; 0x4bf - 80128de: 4989 ldr r1, [pc, #548] ; (8012b04 ) - 80128e0: 4887 ldr r0, [pc, #540] ; (8012b00 ) - 80128e2: f009 feb1 bl 801c648 + 80128e0: 6afb ldr r3, [r7, #44] ; 0x2c + 80128e2: 7d1b ldrb r3, [r3, #20] + 80128e4: 2b01 cmp r3, #1 + 80128e6: d106 bne.n 80128f6 + 80128e8: 4b87 ldr r3, [pc, #540] ; (8012b08 ) + 80128ea: f240 42bf movw r2, #1215 ; 0x4bf + 80128ee: 4989 ldr r1, [pc, #548] ; (8012b14 ) + 80128f0: 4887 ldr r0, [pc, #540] ; (8012b10 ) + 80128f2: f009 feb1 bl 801c658 LWIP_ASSERT("tcp_slowtmr: active pcb->state != TIME-WAIT\n", pcb->state != TIME_WAIT); - 80128e6: 6afb ldr r3, [r7, #44] ; 0x2c - 80128e8: 7d1b ldrb r3, [r3, #20] - 80128ea: 2b0a cmp r3, #10 - 80128ec: d106 bne.n 80128fc - 80128ee: 4b82 ldr r3, [pc, #520] ; (8012af8 ) - 80128f0: f44f 6298 mov.w r2, #1216 ; 0x4c0 - 80128f4: 4984 ldr r1, [pc, #528] ; (8012b08 ) - 80128f6: 4882 ldr r0, [pc, #520] ; (8012b00 ) - 80128f8: f009 fea6 bl 801c648 + 80128f6: 6afb ldr r3, [r7, #44] ; 0x2c + 80128f8: 7d1b ldrb r3, [r3, #20] + 80128fa: 2b0a cmp r3, #10 + 80128fc: d106 bne.n 801290c + 80128fe: 4b82 ldr r3, [pc, #520] ; (8012b08 ) + 8012900: f44f 6298 mov.w r2, #1216 ; 0x4c0 + 8012904: 4984 ldr r1, [pc, #528] ; (8012b18 ) + 8012906: 4882 ldr r0, [pc, #520] ; (8012b10 ) + 8012908: f009 fea6 bl 801c658 if (pcb->last_timer == tcp_timer_ctr) { - 80128fc: 6afb ldr r3, [r7, #44] ; 0x2c - 80128fe: 7f9a ldrb r2, [r3, #30] - 8012900: 4b7b ldr r3, [pc, #492] ; (8012af0 ) - 8012902: 781b ldrb r3, [r3, #0] - 8012904: 429a cmp r2, r3 - 8012906: d105 bne.n 8012914 + 801290c: 6afb ldr r3, [r7, #44] ; 0x2c + 801290e: 7f9a ldrb r2, [r3, #30] + 8012910: 4b7b ldr r3, [pc, #492] ; (8012b00 ) + 8012912: 781b ldrb r3, [r3, #0] + 8012914: 429a cmp r2, r3 + 8012916: d105 bne.n 8012924 /* skip this pcb, we have already processed it */ prev = pcb; - 8012908: 6afb ldr r3, [r7, #44] ; 0x2c - 801290a: 62bb str r3, [r7, #40] ; 0x28 + 8012918: 6afb ldr r3, [r7, #44] ; 0x2c + 801291a: 62bb str r3, [r7, #40] ; 0x28 pcb = pcb->next; - 801290c: 6afb ldr r3, [r7, #44] ; 0x2c - 801290e: 68db ldr r3, [r3, #12] - 8012910: 62fb str r3, [r7, #44] ; 0x2c + 801291c: 6afb ldr r3, [r7, #44] ; 0x2c + 801291e: 68db ldr r3, [r3, #12] + 8012920: 62fb str r3, [r7, #44] ; 0x2c continue; - 8012912: e270 b.n 8012df6 + 8012922: e270 b.n 8012e06 } pcb->last_timer = tcp_timer_ctr; - 8012914: 4b76 ldr r3, [pc, #472] ; (8012af0 ) - 8012916: 781a ldrb r2, [r3, #0] - 8012918: 6afb ldr r3, [r7, #44] ; 0x2c - 801291a: 779a strb r2, [r3, #30] + 8012924: 4b76 ldr r3, [pc, #472] ; (8012b00 ) + 8012926: 781a ldrb r2, [r3, #0] + 8012928: 6afb ldr r3, [r7, #44] ; 0x2c + 801292a: 779a strb r2, [r3, #30] pcb_remove = 0; - 801291c: 2300 movs r3, #0 - 801291e: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 801292c: 2300 movs r3, #0 + 801292e: f887 3027 strb.w r3, [r7, #39] ; 0x27 pcb_reset = 0; - 8012922: 2300 movs r3, #0 - 8012924: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 8012932: 2300 movs r3, #0 + 8012934: f887 3026 strb.w r3, [r7, #38] ; 0x26 if (pcb->state == SYN_SENT && pcb->nrtx >= TCP_SYNMAXRTX) { - 8012928: 6afb ldr r3, [r7, #44] ; 0x2c - 801292a: 7d1b ldrb r3, [r3, #20] - 801292c: 2b02 cmp r3, #2 - 801292e: d10a bne.n 8012946 - 8012930: 6afb ldr r3, [r7, #44] ; 0x2c - 8012932: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8012936: 2b05 cmp r3, #5 - 8012938: d905 bls.n 8012946 + 8012938: 6afb ldr r3, [r7, #44] ; 0x2c + 801293a: 7d1b ldrb r3, [r3, #20] + 801293c: 2b02 cmp r3, #2 + 801293e: d10a bne.n 8012956 + 8012940: 6afb ldr r3, [r7, #44] ; 0x2c + 8012942: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 8012946: 2b05 cmp r3, #5 + 8012948: d905 bls.n 8012956 ++pcb_remove; - 801293a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 801293e: 3301 adds r3, #1 - 8012940: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8012944: e11e b.n 8012b84 + 801294a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 801294e: 3301 adds r3, #1 + 8012950: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8012954: e11e b.n 8012b94 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max SYN retries reached\n")); } else if (pcb->nrtx >= TCP_MAXRTX) { - 8012946: 6afb ldr r3, [r7, #44] ; 0x2c - 8012948: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 801294c: 2b0b cmp r3, #11 - 801294e: d905 bls.n 801295c + 8012956: 6afb ldr r3, [r7, #44] ; 0x2c + 8012958: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 801295c: 2b0b cmp r3, #11 + 801295e: d905 bls.n 801296c ++pcb_remove; - 8012950: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8012954: 3301 adds r3, #1 - 8012956: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 801295a: e113 b.n 8012b84 + 8012960: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8012964: 3301 adds r3, #1 + 8012966: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 801296a: e113 b.n 8012b94 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: max DATA retries reached\n")); } else { if (pcb->persist_backoff > 0) { - 801295c: 6afb ldr r3, [r7, #44] ; 0x2c - 801295e: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 8012962: 2b00 cmp r3, #0 - 8012964: d075 beq.n 8012a52 + 801296c: 6afb ldr r3, [r7, #44] ; 0x2c + 801296e: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 8012972: 2b00 cmp r3, #0 + 8012974: d075 beq.n 8012a62 LWIP_ASSERT("tcp_slowtimr: persist ticking with in-flight data", pcb->unacked == NULL); - 8012966: 6afb ldr r3, [r7, #44] ; 0x2c - 8012968: 6f1b ldr r3, [r3, #112] ; 0x70 - 801296a: 2b00 cmp r3, #0 - 801296c: d006 beq.n 801297c - 801296e: 4b62 ldr r3, [pc, #392] ; (8012af8 ) - 8012970: f240 42d4 movw r2, #1236 ; 0x4d4 - 8012974: 4965 ldr r1, [pc, #404] ; (8012b0c ) - 8012976: 4862 ldr r0, [pc, #392] ; (8012b00 ) - 8012978: f009 fe66 bl 801c648 + 8012976: 6afb ldr r3, [r7, #44] ; 0x2c + 8012978: 6f1b ldr r3, [r3, #112] ; 0x70 + 801297a: 2b00 cmp r3, #0 + 801297c: d006 beq.n 801298c + 801297e: 4b62 ldr r3, [pc, #392] ; (8012b08 ) + 8012980: f240 42d4 movw r2, #1236 ; 0x4d4 + 8012984: 4965 ldr r1, [pc, #404] ; (8012b1c ) + 8012986: 4862 ldr r0, [pc, #392] ; (8012b10 ) + 8012988: f009 fe66 bl 801c658 LWIP_ASSERT("tcp_slowtimr: persist ticking with empty send buffer", pcb->unsent != NULL); - 801297c: 6afb ldr r3, [r7, #44] ; 0x2c - 801297e: 6edb ldr r3, [r3, #108] ; 0x6c - 8012980: 2b00 cmp r3, #0 - 8012982: d106 bne.n 8012992 - 8012984: 4b5c ldr r3, [pc, #368] ; (8012af8 ) - 8012986: f240 42d5 movw r2, #1237 ; 0x4d5 - 801298a: 4961 ldr r1, [pc, #388] ; (8012b10 ) - 801298c: 485c ldr r0, [pc, #368] ; (8012b00 ) - 801298e: f009 fe5b bl 801c648 + 801298c: 6afb ldr r3, [r7, #44] ; 0x2c + 801298e: 6edb ldr r3, [r3, #108] ; 0x6c + 8012990: 2b00 cmp r3, #0 + 8012992: d106 bne.n 80129a2 + 8012994: 4b5c ldr r3, [pc, #368] ; (8012b08 ) + 8012996: f240 42d5 movw r2, #1237 ; 0x4d5 + 801299a: 4961 ldr r1, [pc, #388] ; (8012b20 ) + 801299c: 485c ldr r0, [pc, #368] ; (8012b10 ) + 801299e: f009 fe5b bl 801c658 if (pcb->persist_probe >= TCP_MAXRTX) { - 8012992: 6afb ldr r3, [r7, #44] ; 0x2c - 8012994: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 8012998: 2b0b cmp r3, #11 - 801299a: d905 bls.n 80129a8 + 80129a2: 6afb ldr r3, [r7, #44] ; 0x2c + 80129a4: f893 309a ldrb.w r3, [r3, #154] ; 0x9a + 80129a8: 2b0b cmp r3, #11 + 80129aa: d905 bls.n 80129b8 ++pcb_remove; /* max probes reached */ - 801299c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 80129a0: 3301 adds r3, #1 - 80129a2: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 80129a6: e0ed b.n 8012b84 + 80129ac: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 80129b0: 3301 adds r3, #1 + 80129b2: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80129b6: e0ed b.n 8012b94 } else { u8_t backoff_cnt = tcp_persist_backoff[pcb->persist_backoff - 1]; - 80129a8: 6afb ldr r3, [r7, #44] ; 0x2c - 80129aa: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 80129ae: 3b01 subs r3, #1 - 80129b0: 4a58 ldr r2, [pc, #352] ; (8012b14 ) - 80129b2: 5cd3 ldrb r3, [r2, r3] - 80129b4: 747b strb r3, [r7, #17] + 80129b8: 6afb ldr r3, [r7, #44] ; 0x2c + 80129ba: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 80129be: 3b01 subs r3, #1 + 80129c0: 4a58 ldr r2, [pc, #352] ; (8012b24 ) + 80129c2: 5cd3 ldrb r3, [r2, r3] + 80129c4: 747b strb r3, [r7, #17] if (pcb->persist_cnt < backoff_cnt) { - 80129b6: 6afb ldr r3, [r7, #44] ; 0x2c - 80129b8: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 80129bc: 7c7a ldrb r2, [r7, #17] - 80129be: 429a cmp r2, r3 - 80129c0: d907 bls.n 80129d2 + 80129c6: 6afb ldr r3, [r7, #44] ; 0x2c + 80129c8: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 + 80129cc: 7c7a ldrb r2, [r7, #17] + 80129ce: 429a cmp r2, r3 + 80129d0: d907 bls.n 80129e2 pcb->persist_cnt++; - 80129c2: 6afb ldr r3, [r7, #44] ; 0x2c - 80129c4: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 80129c8: 3301 adds r3, #1 - 80129ca: b2da uxtb r2, r3 - 80129cc: 6afb ldr r3, [r7, #44] ; 0x2c - 80129ce: f883 2098 strb.w r2, [r3, #152] ; 0x98 - } - if (pcb->persist_cnt >= backoff_cnt) { 80129d2: 6afb ldr r3, [r7, #44] ; 0x2c 80129d4: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 - 80129d8: 7c7a ldrb r2, [r7, #17] - 80129da: 429a cmp r2, r3 - 80129dc: f200 80d2 bhi.w 8012b84 + 80129d8: 3301 adds r3, #1 + 80129da: b2da uxtb r2, r3 + 80129dc: 6afb ldr r3, [r7, #44] ; 0x2c + 80129de: f883 2098 strb.w r2, [r3, #152] ; 0x98 + } + if (pcb->persist_cnt >= backoff_cnt) { + 80129e2: 6afb ldr r3, [r7, #44] ; 0x2c + 80129e4: f893 3098 ldrb.w r3, [r3, #152] ; 0x98 + 80129e8: 7c7a ldrb r2, [r7, #17] + 80129ea: 429a cmp r2, r3 + 80129ec: f200 80d2 bhi.w 8012b94 int next_slot = 1; /* increment timer to next slot */ - 80129e0: 2301 movs r3, #1 - 80129e2: 623b str r3, [r7, #32] + 80129f0: 2301 movs r3, #1 + 80129f2: 623b str r3, [r7, #32] /* If snd_wnd is zero, send 1 byte probes */ if (pcb->snd_wnd == 0) { - 80129e4: 6afb ldr r3, [r7, #44] ; 0x2c - 80129e6: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 80129ea: 2b00 cmp r3, #0 - 80129ec: d108 bne.n 8012a00 + 80129f4: 6afb ldr r3, [r7, #44] ; 0x2c + 80129f6: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 80129fa: 2b00 cmp r3, #0 + 80129fc: d108 bne.n 8012a10 if (tcp_zero_window_probe(pcb) != ERR_OK) { - 80129ee: 6af8 ldr r0, [r7, #44] ; 0x2c - 80129f0: f004 fc32 bl 8017258 - 80129f4: 4603 mov r3, r0 - 80129f6: 2b00 cmp r3, #0 - 80129f8: d014 beq.n 8012a24 + 80129fe: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012a00: f004 fc32 bl 8017268 + 8012a04: 4603 mov r3, r0 + 8012a06: 2b00 cmp r3, #0 + 8012a08: d014 beq.n 8012a34 next_slot = 0; /* try probe again with current slot */ - 80129fa: 2300 movs r3, #0 - 80129fc: 623b str r3, [r7, #32] - 80129fe: e011 b.n 8012a24 + 8012a0a: 2300 movs r3, #0 + 8012a0c: 623b str r3, [r7, #32] + 8012a0e: e011 b.n 8012a34 } /* snd_wnd not fully closed, split unsent head and fill window */ } else { if (tcp_split_unsent_seg(pcb, (u16_t)pcb->snd_wnd) == ERR_OK) { - 8012a00: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a02: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8012a06: 4619 mov r1, r3 - 8012a08: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012a0a: f003 fae5 bl 8015fd8 - 8012a0e: 4603 mov r3, r0 - 8012a10: 2b00 cmp r3, #0 - 8012a12: d107 bne.n 8012a24 + 8012a10: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a12: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8012a16: 4619 mov r1, r3 + 8012a18: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012a1a: f003 fae5 bl 8015fe8 + 8012a1e: 4603 mov r3, r0 + 8012a20: 2b00 cmp r3, #0 + 8012a22: d107 bne.n 8012a34 if (tcp_output(pcb) == ERR_OK) { - 8012a14: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012a16: f003 fd65 bl 80164e4 - 8012a1a: 4603 mov r3, r0 - 8012a1c: 2b00 cmp r3, #0 - 8012a1e: d101 bne.n 8012a24 + 8012a24: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012a26: f003 fd65 bl 80164f4 + 8012a2a: 4603 mov r3, r0 + 8012a2c: 2b00 cmp r3, #0 + 8012a2e: d101 bne.n 8012a34 /* sending will cancel persist timer, else retry with current slot */ next_slot = 0; - 8012a20: 2300 movs r3, #0 - 8012a22: 623b str r3, [r7, #32] + 8012a30: 2300 movs r3, #0 + 8012a32: 623b str r3, [r7, #32] } } } if (next_slot) { - 8012a24: 6a3b ldr r3, [r7, #32] - 8012a26: 2b00 cmp r3, #0 - 8012a28: f000 80ac beq.w 8012b84 + 8012a34: 6a3b ldr r3, [r7, #32] + 8012a36: 2b00 cmp r3, #0 + 8012a38: f000 80ac beq.w 8012b94 pcb->persist_cnt = 0; - 8012a2c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a2e: 2200 movs r2, #0 - 8012a30: f883 2098 strb.w r2, [r3, #152] ; 0x98 + 8012a3c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a3e: 2200 movs r2, #0 + 8012a40: f883 2098 strb.w r2, [r3, #152] ; 0x98 if (pcb->persist_backoff < sizeof(tcp_persist_backoff)) { - 8012a34: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a36: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 8012a3a: 2b06 cmp r3, #6 - 8012a3c: f200 80a2 bhi.w 8012b84 + 8012a44: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a46: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 8012a4a: 2b06 cmp r3, #6 + 8012a4c: f200 80a2 bhi.w 8012b94 pcb->persist_backoff++; - 8012a40: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a42: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 8012a46: 3301 adds r3, #1 - 8012a48: b2da uxtb r2, r3 - 8012a4a: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a4c: f883 2099 strb.w r2, [r3, #153] ; 0x99 - 8012a50: e098 b.n 8012b84 + 8012a50: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a52: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 8012a56: 3301 adds r3, #1 + 8012a58: b2da uxtb r2, r3 + 8012a5a: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a5c: f883 2099 strb.w r2, [r3, #153] ; 0x99 + 8012a60: e098 b.n 8012b94 } } } } else { /* Increase the retransmission timer if it is running */ if ((pcb->rtime >= 0) && (pcb->rtime < 0x7FFF)) { - 8012a52: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a54: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8012a58: 2b00 cmp r3, #0 - 8012a5a: db0f blt.n 8012a7c - 8012a5c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a5e: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8012a62: f647 72ff movw r2, #32767 ; 0x7fff - 8012a66: 4293 cmp r3, r2 - 8012a68: d008 beq.n 8012a7c + 8012a62: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a64: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 8012a68: 2b00 cmp r3, #0 + 8012a6a: db0f blt.n 8012a8c + 8012a6c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a6e: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 8012a72: f647 72ff movw r2, #32767 ; 0x7fff + 8012a76: 4293 cmp r3, r2 + 8012a78: d008 beq.n 8012a8c ++pcb->rtime; - 8012a6a: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a6c: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8012a70: b29b uxth r3, r3 - 8012a72: 3301 adds r3, #1 - 8012a74: b29b uxth r3, r3 - 8012a76: b21a sxth r2, r3 - 8012a78: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a7a: 861a strh r2, [r3, #48] ; 0x30 + 8012a7a: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a7c: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 8012a80: b29b uxth r3, r3 + 8012a82: 3301 adds r3, #1 + 8012a84: b29b uxth r3, r3 + 8012a86: b21a sxth r2, r3 + 8012a88: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a8a: 861a strh r2, [r3, #48] ; 0x30 } if (pcb->rtime >= pcb->rto) { - 8012a7c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a7e: f9b3 2030 ldrsh.w r2, [r3, #48] ; 0x30 - 8012a82: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a84: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 - 8012a88: 429a cmp r2, r3 - 8012a8a: db7b blt.n 8012b84 + 8012a8c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a8e: f9b3 2030 ldrsh.w r2, [r3, #48] ; 0x30 + 8012a92: 6afb ldr r3, [r7, #44] ; 0x2c + 8012a94: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 + 8012a98: 429a cmp r2, r3 + 8012a9a: db7b blt.n 8012b94 " pcb->rto %"S16_F"\n", pcb->rtime, pcb->rto)); /* If prepare phase fails but we have unsent data but no unacked data, still execute the backoff calculations below, as this means we somehow failed to send segment. */ if ((tcp_rexmit_rto_prepare(pcb) == ERR_OK) || ((pcb->unacked == NULL) && (pcb->unsent != NULL))) { - 8012a8c: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012a8e: f004 f821 bl 8016ad4 - 8012a92: 4603 mov r3, r0 - 8012a94: 2b00 cmp r3, #0 - 8012a96: d007 beq.n 8012aa8 - 8012a98: 6afb ldr r3, [r7, #44] ; 0x2c - 8012a9a: 6f1b ldr r3, [r3, #112] ; 0x70 - 8012a9c: 2b00 cmp r3, #0 - 8012a9e: d171 bne.n 8012b84 - 8012aa0: 6afb ldr r3, [r7, #44] ; 0x2c - 8012aa2: 6edb ldr r3, [r3, #108] ; 0x6c + 8012a9c: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012a9e: f004 f821 bl 8016ae4 + 8012aa2: 4603 mov r3, r0 8012aa4: 2b00 cmp r3, #0 - 8012aa6: d06d beq.n 8012b84 + 8012aa6: d007 beq.n 8012ab8 + 8012aa8: 6afb ldr r3, [r7, #44] ; 0x2c + 8012aaa: 6f1b ldr r3, [r3, #112] ; 0x70 + 8012aac: 2b00 cmp r3, #0 + 8012aae: d171 bne.n 8012b94 + 8012ab0: 6afb ldr r3, [r7, #44] ; 0x2c + 8012ab2: 6edb ldr r3, [r3, #108] ; 0x6c + 8012ab4: 2b00 cmp r3, #0 + 8012ab6: d06d beq.n 8012b94 /* Double retransmission time-out unless we are trying to * connect to somebody (i.e., we are in SYN_SENT). */ if (pcb->state != SYN_SENT) { - 8012aa8: 6afb ldr r3, [r7, #44] ; 0x2c - 8012aaa: 7d1b ldrb r3, [r3, #20] - 8012aac: 2b02 cmp r3, #2 - 8012aae: d03a beq.n 8012b26 + 8012ab8: 6afb ldr r3, [r7, #44] ; 0x2c + 8012aba: 7d1b ldrb r3, [r3, #20] + 8012abc: 2b02 cmp r3, #2 + 8012abe: d03a beq.n 8012b36 u8_t backoff_idx = LWIP_MIN(pcb->nrtx, sizeof(tcp_backoff) - 1); - 8012ab0: 6afb ldr r3, [r7, #44] ; 0x2c - 8012ab2: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8012ab6: 2b0c cmp r3, #12 - 8012ab8: bf28 it cs - 8012aba: 230c movcs r3, #12 - 8012abc: 76fb strb r3, [r7, #27] + 8012ac0: 6afb ldr r3, [r7, #44] ; 0x2c + 8012ac2: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 8012ac6: 2b0c cmp r3, #12 + 8012ac8: bf28 it cs + 8012aca: 230c movcs r3, #12 + 8012acc: 76fb strb r3, [r7, #27] int calc_rto = ((pcb->sa >> 3) + pcb->sv) << tcp_backoff[backoff_idx]; - 8012abe: 6afb ldr r3, [r7, #44] ; 0x2c - 8012ac0: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8012ac4: 10db asrs r3, r3, #3 - 8012ac6: b21b sxth r3, r3 - 8012ac8: 461a mov r2, r3 - 8012aca: 6afb ldr r3, [r7, #44] ; 0x2c - 8012acc: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 8012ad0: 4413 add r3, r2 - 8012ad2: 7efa ldrb r2, [r7, #27] - 8012ad4: 4910 ldr r1, [pc, #64] ; (8012b18 ) - 8012ad6: 5c8a ldrb r2, [r1, r2] - 8012ad8: 4093 lsls r3, r2 - 8012ada: 617b str r3, [r7, #20] + 8012ace: 6afb ldr r3, [r7, #44] ; 0x2c + 8012ad0: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 8012ad4: 10db asrs r3, r3, #3 + 8012ad6: b21b sxth r3, r3 + 8012ad8: 461a mov r2, r3 + 8012ada: 6afb ldr r3, [r7, #44] ; 0x2c + 8012adc: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 8012ae0: 4413 add r3, r2 + 8012ae2: 7efa ldrb r2, [r7, #27] + 8012ae4: 4910 ldr r1, [pc, #64] ; (8012b28 ) + 8012ae6: 5c8a ldrb r2, [r1, r2] + 8012ae8: 4093 lsls r3, r2 + 8012aea: 617b str r3, [r7, #20] pcb->rto = (s16_t)LWIP_MIN(calc_rto, 0x7FFF); - 8012adc: 697b ldr r3, [r7, #20] - 8012ade: f647 72fe movw r2, #32766 ; 0x7ffe - 8012ae2: 4293 cmp r3, r2 - 8012ae4: dc1a bgt.n 8012b1c - 8012ae6: 697b ldr r3, [r7, #20] - 8012ae8: b21a sxth r2, r3 - 8012aea: e019 b.n 8012b20 - 8012aec: 2000f7f4 .word 0x2000f7f4 - 8012af0: 2000871e .word 0x2000871e - 8012af4: 2000f7f0 .word 0x2000f7f0 - 8012af8: 0801e4d8 .word 0x0801e4d8 - 8012afc: 0801e81c .word 0x0801e81c - 8012b00: 0801e51c .word 0x0801e51c - 8012b04: 0801e848 .word 0x0801e848 - 8012b08: 0801e874 .word 0x0801e874 - 8012b0c: 0801e8a4 .word 0x0801e8a4 - 8012b10: 0801e8d8 .word 0x0801e8d8 - 8012b14: 080227b8 .word 0x080227b8 - 8012b18: 080227a8 .word 0x080227a8 - 8012b1c: f647 72ff movw r2, #32767 ; 0x7fff - 8012b20: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b22: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 + 8012aec: 697b ldr r3, [r7, #20] + 8012aee: f647 72fe movw r2, #32766 ; 0x7ffe + 8012af2: 4293 cmp r3, r2 + 8012af4: dc1a bgt.n 8012b2c + 8012af6: 697b ldr r3, [r7, #20] + 8012af8: b21a sxth r2, r3 + 8012afa: e019 b.n 8012b30 + 8012afc: 2000f7f4 .word 0x2000f7f4 + 8012b00: 2000871e .word 0x2000871e + 8012b04: 2000f7f0 .word 0x2000f7f0 + 8012b08: 0801e4e8 .word 0x0801e4e8 + 8012b0c: 0801e82c .word 0x0801e82c + 8012b10: 0801e52c .word 0x0801e52c + 8012b14: 0801e858 .word 0x0801e858 + 8012b18: 0801e884 .word 0x0801e884 + 8012b1c: 0801e8b4 .word 0x0801e8b4 + 8012b20: 0801e8e8 .word 0x0801e8e8 + 8012b24: 080227c8 .word 0x080227c8 + 8012b28: 080227b8 .word 0x080227b8 + 8012b2c: f647 72ff movw r2, #32767 ; 0x7fff + 8012b30: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b32: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 } /* Reset the retransmission timer. */ pcb->rtime = 0; - 8012b26: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b28: 2200 movs r2, #0 - 8012b2a: 861a strh r2, [r3, #48] ; 0x30 + 8012b36: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b38: 2200 movs r2, #0 + 8012b3a: 861a strh r2, [r3, #48] ; 0x30 /* Reduce congestion window and ssthresh. */ eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd); - 8012b2c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b2e: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 8012b32: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b34: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8012b38: 4293 cmp r3, r2 - 8012b3a: bf28 it cs - 8012b3c: 4613 movcs r3, r2 - 8012b3e: 827b strh r3, [r7, #18] + 8012b3c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b3e: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 8012b42: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b44: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8012b48: 4293 cmp r3, r2 + 8012b4a: bf28 it cs + 8012b4c: 4613 movcs r3, r2 + 8012b4e: 827b strh r3, [r7, #18] pcb->ssthresh = eff_wnd >> 1; - 8012b40: 8a7b ldrh r3, [r7, #18] - 8012b42: 085b lsrs r3, r3, #1 - 8012b44: b29a uxth r2, r3 - 8012b46: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b48: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 8012b50: 8a7b ldrh r3, [r7, #18] + 8012b52: 085b lsrs r3, r3, #1 + 8012b54: b29a uxth r2, r3 + 8012b56: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b58: f8a3 204a strh.w r2, [r3, #74] ; 0x4a if (pcb->ssthresh < (tcpwnd_size_t)(pcb->mss << 1)) { - 8012b4c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b4e: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 8012b52: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b54: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8012b56: 005b lsls r3, r3, #1 - 8012b58: b29b uxth r3, r3 - 8012b5a: 429a cmp r2, r3 - 8012b5c: d206 bcs.n 8012b6c + 8012b5c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b5e: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a + 8012b62: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b64: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8012b66: 005b lsls r3, r3, #1 + 8012b68: b29b uxth r3, r3 + 8012b6a: 429a cmp r2, r3 + 8012b6c: d206 bcs.n 8012b7c pcb->ssthresh = (tcpwnd_size_t)(pcb->mss << 1); - 8012b5e: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b60: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8012b62: 005b lsls r3, r3, #1 - 8012b64: b29a uxth r2, r3 - 8012b66: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b68: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 8012b6e: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b70: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8012b72: 005b lsls r3, r3, #1 + 8012b74: b29a uxth r2, r3 + 8012b76: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b78: f8a3 204a strh.w r2, [r3, #74] ; 0x4a } pcb->cwnd = pcb->mss; - 8012b6c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b6e: 8e5a ldrh r2, [r3, #50] ; 0x32 - 8012b70: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b72: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8012b7c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b7e: 8e5a ldrh r2, [r3, #50] ; 0x32 + 8012b80: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b82: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: cwnd %"TCPWNDSIZE_F " ssthresh %"TCPWNDSIZE_F"\n", pcb->cwnd, pcb->ssthresh)); pcb->bytes_acked = 0; - 8012b76: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b78: 2200 movs r2, #0 - 8012b7a: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + 8012b86: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b88: 2200 movs r2, #0 + 8012b8a: f8a3 206a strh.w r2, [r3, #106] ; 0x6a /* The following needs to be called AFTER cwnd is set to one mss - STJ */ tcp_rexmit_rto_commit(pcb); - 8012b7e: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012b80: f004 f818 bl 8016bb4 + 8012b8e: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012b90: f004 f818 bl 8016bc4 } } } } /* Check if this PCB has stayed too long in FIN-WAIT-2 */ if (pcb->state == FIN_WAIT_2) { - 8012b84: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b86: 7d1b ldrb r3, [r3, #20] - 8012b88: 2b06 cmp r3, #6 - 8012b8a: d111 bne.n 8012bb0 + 8012b94: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b96: 7d1b ldrb r3, [r3, #20] + 8012b98: 2b06 cmp r3, #6 + 8012b9a: d111 bne.n 8012bc0 /* If this PCB is in FIN_WAIT_2 because of SHUT_WR don't let it time out. */ if (pcb->flags & TF_RXCLOSED) { - 8012b8c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b8e: 8b5b ldrh r3, [r3, #26] - 8012b90: f003 0310 and.w r3, r3, #16 - 8012b94: 2b00 cmp r3, #0 - 8012b96: d00b beq.n 8012bb0 + 8012b9c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012b9e: 8b5b ldrh r3, [r3, #26] + 8012ba0: f003 0310 and.w r3, r3, #16 + 8012ba4: 2b00 cmp r3, #0 + 8012ba6: d00b beq.n 8012bc0 /* PCB was fully closed (either through close() or SHUT_RDWR): normal FIN-WAIT timeout handling. */ if ((u32_t)(tcp_ticks - pcb->tmr) > - 8012b98: 4b9c ldr r3, [pc, #624] ; (8012e0c ) - 8012b9a: 681a ldr r2, [r3, #0] - 8012b9c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012b9e: 6a1b ldr r3, [r3, #32] - 8012ba0: 1ad3 subs r3, r2, r3 - 8012ba2: 2b28 cmp r3, #40 ; 0x28 - 8012ba4: d904 bls.n 8012bb0 + 8012ba8: 4b9c ldr r3, [pc, #624] ; (8012e1c ) + 8012baa: 681a ldr r2, [r3, #0] + 8012bac: 6afb ldr r3, [r7, #44] ; 0x2c + 8012bae: 6a1b ldr r3, [r3, #32] + 8012bb0: 1ad3 subs r3, r2, r3 + 8012bb2: 2b28 cmp r3, #40 ; 0x28 + 8012bb4: d904 bls.n 8012bc0 TCP_FIN_WAIT_TIMEOUT / TCP_SLOW_INTERVAL) { ++pcb_remove; - 8012ba6: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8012baa: 3301 adds r3, #1 - 8012bac: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8012bb6: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8012bba: 3301 adds r3, #1 + 8012bbc: f887 3027 strb.w r3, [r7, #39] ; 0x27 } } } /* Check if KEEPALIVE should be sent */ if (ip_get_option(pcb, SOF_KEEPALIVE) && - 8012bb0: 6afb ldr r3, [r7, #44] ; 0x2c - 8012bb2: 7a5b ldrb r3, [r3, #9] - 8012bb4: f003 0308 and.w r3, r3, #8 - 8012bb8: 2b00 cmp r3, #0 - 8012bba: d04a beq.n 8012c52 + 8012bc0: 6afb ldr r3, [r7, #44] ; 0x2c + 8012bc2: 7a5b ldrb r3, [r3, #9] + 8012bc4: f003 0308 and.w r3, r3, #8 + 8012bc8: 2b00 cmp r3, #0 + 8012bca: d04a beq.n 8012c62 ((pcb->state == ESTABLISHED) || - 8012bbc: 6afb ldr r3, [r7, #44] ; 0x2c - 8012bbe: 7d1b ldrb r3, [r3, #20] + 8012bcc: 6afb ldr r3, [r7, #44] ; 0x2c + 8012bce: 7d1b ldrb r3, [r3, #20] if (ip_get_option(pcb, SOF_KEEPALIVE) && - 8012bc0: 2b04 cmp r3, #4 - 8012bc2: d003 beq.n 8012bcc + 8012bd0: 2b04 cmp r3, #4 + 8012bd2: d003 beq.n 8012bdc (pcb->state == CLOSE_WAIT))) { - 8012bc4: 6afb ldr r3, [r7, #44] ; 0x2c - 8012bc6: 7d1b ldrb r3, [r3, #20] + 8012bd4: 6afb ldr r3, [r7, #44] ; 0x2c + 8012bd6: 7d1b ldrb r3, [r3, #20] ((pcb->state == ESTABLISHED) || - 8012bc8: 2b07 cmp r3, #7 - 8012bca: d142 bne.n 8012c52 + 8012bd8: 2b07 cmp r3, #7 + 8012bda: d142 bne.n 8012c62 if ((u32_t)(tcp_ticks - pcb->tmr) > - 8012bcc: 4b8f ldr r3, [pc, #572] ; (8012e0c ) - 8012bce: 681a ldr r2, [r3, #0] - 8012bd0: 6afb ldr r3, [r7, #44] ; 0x2c - 8012bd2: 6a1b ldr r3, [r3, #32] - 8012bd4: 1ad2 subs r2, r2, r3 + 8012bdc: 4b8f ldr r3, [pc, #572] ; (8012e1c ) + 8012bde: 681a ldr r2, [r3, #0] + 8012be0: 6afb ldr r3, [r7, #44] ; 0x2c + 8012be2: 6a1b ldr r3, [r3, #32] + 8012be4: 1ad2 subs r2, r2, r3 (pcb->keep_idle + TCP_KEEP_DUR(pcb)) / TCP_SLOW_INTERVAL) { - 8012bd6: 6afb ldr r3, [r7, #44] ; 0x2c - 8012bd8: f8d3 1094 ldr.w r1, [r3, #148] ; 0x94 - 8012bdc: 4b8c ldr r3, [pc, #560] ; (8012e10 ) - 8012bde: 440b add r3, r1 - 8012be0: 498c ldr r1, [pc, #560] ; (8012e14 ) - 8012be2: fba1 1303 umull r1, r3, r1, r3 - 8012be6: 095b lsrs r3, r3, #5 + 8012be6: 6afb ldr r3, [r7, #44] ; 0x2c + 8012be8: f8d3 1094 ldr.w r1, [r3, #148] ; 0x94 + 8012bec: 4b8c ldr r3, [pc, #560] ; (8012e20 ) + 8012bee: 440b add r3, r1 + 8012bf0: 498c ldr r1, [pc, #560] ; (8012e24 ) + 8012bf2: fba1 1303 umull r1, r3, r1, r3 + 8012bf6: 095b lsrs r3, r3, #5 if ((u32_t)(tcp_ticks - pcb->tmr) > - 8012be8: 429a cmp r2, r3 - 8012bea: d90a bls.n 8012c02 + 8012bf8: 429a cmp r2, r3 + 8012bfa: d90a bls.n 8012c12 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: KEEPALIVE timeout. Aborting connection to ")); ip_addr_debug_print_val(TCP_DEBUG, pcb->remote_ip); LWIP_DEBUGF(TCP_DEBUG, ("\n")); ++pcb_remove; - 8012bec: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8012bf0: 3301 adds r3, #1 - 8012bf2: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8012bfc: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8012c00: 3301 adds r3, #1 + 8012c02: f887 3027 strb.w r3, [r7, #39] ; 0x27 ++pcb_reset; - 8012bf6: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8012bfa: 3301 adds r3, #1 - 8012bfc: f887 3026 strb.w r3, [r7, #38] ; 0x26 - 8012c00: e027 b.n 8012c52 + 8012c06: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 8012c0a: 3301 adds r3, #1 + 8012c0c: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 8012c10: e027 b.n 8012c62 } else if ((u32_t)(tcp_ticks - pcb->tmr) > - 8012c02: 4b82 ldr r3, [pc, #520] ; (8012e0c ) - 8012c04: 681a ldr r2, [r3, #0] - 8012c06: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c08: 6a1b ldr r3, [r3, #32] - 8012c0a: 1ad2 subs r2, r2, r3 + 8012c12: 4b82 ldr r3, [pc, #520] ; (8012e1c ) + 8012c14: 681a ldr r2, [r3, #0] + 8012c16: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c18: 6a1b ldr r3, [r3, #32] + 8012c1a: 1ad2 subs r2, r2, r3 (pcb->keep_idle + pcb->keep_cnt_sent * TCP_KEEP_INTVL(pcb)) - 8012c0c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c0e: f8d3 1094 ldr.w r1, [r3, #148] ; 0x94 - 8012c12: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c14: f893 309b ldrb.w r3, [r3, #155] ; 0x9b - 8012c18: 4618 mov r0, r3 - 8012c1a: 4b7f ldr r3, [pc, #508] ; (8012e18 ) - 8012c1c: fb03 f300 mul.w r3, r3, r0 - 8012c20: 440b add r3, r1 + 8012c1c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c1e: f8d3 1094 ldr.w r1, [r3, #148] ; 0x94 + 8012c22: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c24: f893 309b ldrb.w r3, [r3, #155] ; 0x9b + 8012c28: 4618 mov r0, r3 + 8012c2a: 4b7f ldr r3, [pc, #508] ; (8012e28 ) + 8012c2c: fb03 f300 mul.w r3, r3, r0 + 8012c30: 440b add r3, r1 / TCP_SLOW_INTERVAL) { - 8012c22: 497c ldr r1, [pc, #496] ; (8012e14 ) - 8012c24: fba1 1303 umull r1, r3, r1, r3 - 8012c28: 095b lsrs r3, r3, #5 + 8012c32: 497c ldr r1, [pc, #496] ; (8012e24 ) + 8012c34: fba1 1303 umull r1, r3, r1, r3 + 8012c38: 095b lsrs r3, r3, #5 } else if ((u32_t)(tcp_ticks - pcb->tmr) > - 8012c2a: 429a cmp r2, r3 - 8012c2c: d911 bls.n 8012c52 + 8012c3a: 429a cmp r2, r3 + 8012c3c: d911 bls.n 8012c62 err = tcp_keepalive(pcb); - 8012c2e: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012c30: f004 fad2 bl 80171d8 - 8012c34: 4603 mov r3, r0 - 8012c36: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 8012c3e: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012c40: f004 fad2 bl 80171e8 + 8012c44: 4603 mov r3, r0 + 8012c46: f887 3025 strb.w r3, [r7, #37] ; 0x25 if (err == ERR_OK) { - 8012c3a: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 - 8012c3e: 2b00 cmp r3, #0 - 8012c40: d107 bne.n 8012c52 + 8012c4a: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 + 8012c4e: 2b00 cmp r3, #0 + 8012c50: d107 bne.n 8012c62 pcb->keep_cnt_sent++; - 8012c42: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c44: f893 309b ldrb.w r3, [r3, #155] ; 0x9b - 8012c48: 3301 adds r3, #1 - 8012c4a: b2da uxtb r2, r3 - 8012c4c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c4e: f883 209b strb.w r2, [r3, #155] ; 0x9b + 8012c52: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c54: f893 309b ldrb.w r3, [r3, #155] ; 0x9b + 8012c58: 3301 adds r3, #1 + 8012c5a: b2da uxtb r2, r3 + 8012c5c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c5e: f883 209b strb.w r2, [r3, #155] ; 0x9b /* If this PCB has queued out of sequence data, but has been inactive for too long, will drop the data (it will eventually be retransmitted). */ #if TCP_QUEUE_OOSEQ if (pcb->ooseq != NULL && - 8012c52: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c54: 6f5b ldr r3, [r3, #116] ; 0x74 - 8012c56: 2b00 cmp r3, #0 - 8012c58: d011 beq.n 8012c7e + 8012c62: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c64: 6f5b ldr r3, [r3, #116] ; 0x74 + 8012c66: 2b00 cmp r3, #0 + 8012c68: d011 beq.n 8012c8e (tcp_ticks - pcb->tmr >= (u32_t)pcb->rto * TCP_OOSEQ_TIMEOUT)) { - 8012c5a: 4b6c ldr r3, [pc, #432] ; (8012e0c ) - 8012c5c: 681a ldr r2, [r3, #0] - 8012c5e: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c60: 6a1b ldr r3, [r3, #32] - 8012c62: 1ad2 subs r2, r2, r3 - 8012c64: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c66: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 - 8012c6a: 4619 mov r1, r3 - 8012c6c: 460b mov r3, r1 - 8012c6e: 005b lsls r3, r3, #1 - 8012c70: 440b add r3, r1 - 8012c72: 005b lsls r3, r3, #1 + 8012c6a: 4b6c ldr r3, [pc, #432] ; (8012e1c ) + 8012c6c: 681a ldr r2, [r3, #0] + 8012c6e: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c70: 6a1b ldr r3, [r3, #32] + 8012c72: 1ad2 subs r2, r2, r3 + 8012c74: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c76: f9b3 3040 ldrsh.w r3, [r3, #64] ; 0x40 + 8012c7a: 4619 mov r1, r3 + 8012c7c: 460b mov r3, r1 + 8012c7e: 005b lsls r3, r3, #1 + 8012c80: 440b add r3, r1 + 8012c82: 005b lsls r3, r3, #1 if (pcb->ooseq != NULL && - 8012c74: 429a cmp r2, r3 - 8012c76: d302 bcc.n 8012c7e + 8012c84: 429a cmp r2, r3 + 8012c86: d302 bcc.n 8012c8e LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_slowtmr: dropping OOSEQ queued data\n")); tcp_free_ooseq(pcb); - 8012c78: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012c7a: f000 fdd9 bl 8013830 + 8012c88: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012c8a: f000 fdd9 bl 8013840 } #endif /* TCP_QUEUE_OOSEQ */ /* Check if this PCB has stayed too long in SYN-RCVD */ if (pcb->state == SYN_RCVD) { - 8012c7e: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c80: 7d1b ldrb r3, [r3, #20] - 8012c82: 2b03 cmp r3, #3 - 8012c84: d10b bne.n 8012c9e + 8012c8e: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c90: 7d1b ldrb r3, [r3, #20] + 8012c92: 2b03 cmp r3, #3 + 8012c94: d10b bne.n 8012cae if ((u32_t)(tcp_ticks - pcb->tmr) > - 8012c86: 4b61 ldr r3, [pc, #388] ; (8012e0c ) - 8012c88: 681a ldr r2, [r3, #0] - 8012c8a: 6afb ldr r3, [r7, #44] ; 0x2c - 8012c8c: 6a1b ldr r3, [r3, #32] - 8012c8e: 1ad3 subs r3, r2, r3 - 8012c90: 2b28 cmp r3, #40 ; 0x28 - 8012c92: d904 bls.n 8012c9e + 8012c96: 4b61 ldr r3, [pc, #388] ; (8012e1c ) + 8012c98: 681a ldr r2, [r3, #0] + 8012c9a: 6afb ldr r3, [r7, #44] ; 0x2c + 8012c9c: 6a1b ldr r3, [r3, #32] + 8012c9e: 1ad3 subs r3, r2, r3 + 8012ca0: 2b28 cmp r3, #40 ; 0x28 + 8012ca2: d904 bls.n 8012cae TCP_SYN_RCVD_TIMEOUT / TCP_SLOW_INTERVAL) { ++pcb_remove; - 8012c94: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8012c98: 3301 adds r3, #1 - 8012c9a: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8012ca4: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8012ca8: 3301 adds r3, #1 + 8012caa: f887 3027 strb.w r3, [r7, #39] ; 0x27 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: removing pcb stuck in SYN-RCVD\n")); } } /* Check if this PCB has stayed too long in LAST-ACK */ if (pcb->state == LAST_ACK) { - 8012c9e: 6afb ldr r3, [r7, #44] ; 0x2c - 8012ca0: 7d1b ldrb r3, [r3, #20] - 8012ca2: 2b09 cmp r3, #9 - 8012ca4: d10b bne.n 8012cbe + 8012cae: 6afb ldr r3, [r7, #44] ; 0x2c + 8012cb0: 7d1b ldrb r3, [r3, #20] + 8012cb2: 2b09 cmp r3, #9 + 8012cb4: d10b bne.n 8012cce if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) { - 8012ca6: 4b59 ldr r3, [pc, #356] ; (8012e0c ) - 8012ca8: 681a ldr r2, [r3, #0] - 8012caa: 6afb ldr r3, [r7, #44] ; 0x2c - 8012cac: 6a1b ldr r3, [r3, #32] - 8012cae: 1ad3 subs r3, r2, r3 - 8012cb0: 2bf0 cmp r3, #240 ; 0xf0 - 8012cb2: d904 bls.n 8012cbe + 8012cb6: 4b59 ldr r3, [pc, #356] ; (8012e1c ) + 8012cb8: 681a ldr r2, [r3, #0] + 8012cba: 6afb ldr r3, [r7, #44] ; 0x2c + 8012cbc: 6a1b ldr r3, [r3, #32] + 8012cbe: 1ad3 subs r3, r2, r3 + 8012cc0: 2bf0 cmp r3, #240 ; 0xf0 + 8012cc2: d904 bls.n 8012cce ++pcb_remove; - 8012cb4: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8012cb8: 3301 adds r3, #1 - 8012cba: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8012cc4: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8012cc8: 3301 adds r3, #1 + 8012cca: f887 3027 strb.w r3, [r7, #39] ; 0x27 LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: removing pcb stuck in LAST-ACK\n")); } } /* If the PCB should be removed, do it. */ if (pcb_remove) { - 8012cbe: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8012cc2: 2b00 cmp r3, #0 - 8012cc4: d060 beq.n 8012d88 + 8012cce: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8012cd2: 2b00 cmp r3, #0 + 8012cd4: d060 beq.n 8012d98 struct tcp_pcb *pcb2; #if LWIP_CALLBACK_API tcp_err_fn err_fn = pcb->errf; - 8012cc6: 6afb ldr r3, [r7, #44] ; 0x2c - 8012cc8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8012ccc: 60fb str r3, [r7, #12] + 8012cd6: 6afb ldr r3, [r7, #44] ; 0x2c + 8012cd8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8012cdc: 60fb str r3, [r7, #12] #endif /* LWIP_CALLBACK_API */ void *err_arg; enum tcp_state last_state; tcp_pcb_purge(pcb); - 8012cce: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012cd0: f000 fbfa bl 80134c8 + 8012cde: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012ce0: f000 fbfa bl 80134d8 /* Remove PCB from tcp_active_pcbs list. */ if (prev != NULL) { - 8012cd4: 6abb ldr r3, [r7, #40] ; 0x28 - 8012cd6: 2b00 cmp r3, #0 - 8012cd8: d010 beq.n 8012cfc + 8012ce4: 6abb ldr r3, [r7, #40] ; 0x28 + 8012ce6: 2b00 cmp r3, #0 + 8012ce8: d010 beq.n 8012d0c LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_active_pcbs", pcb != tcp_active_pcbs); - 8012cda: 4b50 ldr r3, [pc, #320] ; (8012e1c ) - 8012cdc: 681b ldr r3, [r3, #0] - 8012cde: 6afa ldr r2, [r7, #44] ; 0x2c - 8012ce0: 429a cmp r2, r3 - 8012ce2: d106 bne.n 8012cf2 - 8012ce4: 4b4e ldr r3, [pc, #312] ; (8012e20 ) - 8012ce6: f240 526d movw r2, #1389 ; 0x56d - 8012cea: 494e ldr r1, [pc, #312] ; (8012e24 ) - 8012cec: 484e ldr r0, [pc, #312] ; (8012e28 ) - 8012cee: f009 fcab bl 801c648 + 8012cea: 4b50 ldr r3, [pc, #320] ; (8012e2c ) + 8012cec: 681b ldr r3, [r3, #0] + 8012cee: 6afa ldr r2, [r7, #44] ; 0x2c + 8012cf0: 429a cmp r2, r3 + 8012cf2: d106 bne.n 8012d02 + 8012cf4: 4b4e ldr r3, [pc, #312] ; (8012e30 ) + 8012cf6: f240 526d movw r2, #1389 ; 0x56d + 8012cfa: 494e ldr r1, [pc, #312] ; (8012e34 ) + 8012cfc: 484e ldr r0, [pc, #312] ; (8012e38 ) + 8012cfe: f009 fcab bl 801c658 prev->next = pcb->next; - 8012cf2: 6afb ldr r3, [r7, #44] ; 0x2c - 8012cf4: 68da ldr r2, [r3, #12] - 8012cf6: 6abb ldr r3, [r7, #40] ; 0x28 - 8012cf8: 60da str r2, [r3, #12] - 8012cfa: e00f b.n 8012d1c + 8012d02: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d04: 68da ldr r2, [r3, #12] + 8012d06: 6abb ldr r3, [r7, #40] ; 0x28 + 8012d08: 60da str r2, [r3, #12] + 8012d0a: e00f b.n 8012d2c } else { /* This PCB was the first. */ LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_active_pcbs", tcp_active_pcbs == pcb); - 8012cfc: 4b47 ldr r3, [pc, #284] ; (8012e1c ) - 8012cfe: 681b ldr r3, [r3, #0] - 8012d00: 6afa ldr r2, [r7, #44] ; 0x2c - 8012d02: 429a cmp r2, r3 - 8012d04: d006 beq.n 8012d14 - 8012d06: 4b46 ldr r3, [pc, #280] ; (8012e20 ) - 8012d08: f240 5271 movw r2, #1393 ; 0x571 - 8012d0c: 4947 ldr r1, [pc, #284] ; (8012e2c ) - 8012d0e: 4846 ldr r0, [pc, #280] ; (8012e28 ) - 8012d10: f009 fc9a bl 801c648 + 8012d0c: 4b47 ldr r3, [pc, #284] ; (8012e2c ) + 8012d0e: 681b ldr r3, [r3, #0] + 8012d10: 6afa ldr r2, [r7, #44] ; 0x2c + 8012d12: 429a cmp r2, r3 + 8012d14: d006 beq.n 8012d24 + 8012d16: 4b46 ldr r3, [pc, #280] ; (8012e30 ) + 8012d18: f240 5271 movw r2, #1393 ; 0x571 + 8012d1c: 4947 ldr r1, [pc, #284] ; (8012e3c ) + 8012d1e: 4846 ldr r0, [pc, #280] ; (8012e38 ) + 8012d20: f009 fc9a bl 801c658 tcp_active_pcbs = pcb->next; - 8012d14: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d16: 68db ldr r3, [r3, #12] - 8012d18: 4a40 ldr r2, [pc, #256] ; (8012e1c ) - 8012d1a: 6013 str r3, [r2, #0] + 8012d24: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d26: 68db ldr r3, [r3, #12] + 8012d28: 4a40 ldr r2, [pc, #256] ; (8012e2c ) + 8012d2a: 6013 str r3, [r2, #0] } if (pcb_reset) { - 8012d1c: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8012d20: 2b00 cmp r3, #0 - 8012d22: d013 beq.n 8012d4c + 8012d2c: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 8012d30: 2b00 cmp r3, #0 + 8012d32: d013 beq.n 8012d5c tcp_rst(pcb, pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, - 8012d24: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d26: 6d18 ldr r0, [r3, #80] ; 0x50 - 8012d28: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d2a: 6a5c ldr r4, [r3, #36] ; 0x24 - 8012d2c: 6afd ldr r5, [r7, #44] ; 0x2c - 8012d2e: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d30: 3304 adds r3, #4 - 8012d32: 6afa ldr r2, [r7, #44] ; 0x2c - 8012d34: 8ad2 ldrh r2, [r2, #22] - 8012d36: 6af9 ldr r1, [r7, #44] ; 0x2c - 8012d38: 8b09 ldrh r1, [r1, #24] - 8012d3a: 9102 str r1, [sp, #8] - 8012d3c: 9201 str r2, [sp, #4] - 8012d3e: 9300 str r3, [sp, #0] - 8012d40: 462b mov r3, r5 - 8012d42: 4622 mov r2, r4 - 8012d44: 4601 mov r1, r0 - 8012d46: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012d48: f004 f992 bl 8017070 + 8012d34: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d36: 6d18 ldr r0, [r3, #80] ; 0x50 + 8012d38: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d3a: 6a5c ldr r4, [r3, #36] ; 0x24 + 8012d3c: 6afd ldr r5, [r7, #44] ; 0x2c + 8012d3e: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d40: 3304 adds r3, #4 + 8012d42: 6afa ldr r2, [r7, #44] ; 0x2c + 8012d44: 8ad2 ldrh r2, [r2, #22] + 8012d46: 6af9 ldr r1, [r7, #44] ; 0x2c + 8012d48: 8b09 ldrh r1, [r1, #24] + 8012d4a: 9102 str r1, [sp, #8] + 8012d4c: 9201 str r2, [sp, #4] + 8012d4e: 9300 str r3, [sp, #0] + 8012d50: 462b mov r3, r5 + 8012d52: 4622 mov r2, r4 + 8012d54: 4601 mov r1, r0 + 8012d56: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012d58: f004 f992 bl 8017080 pcb->local_port, pcb->remote_port); } err_arg = pcb->callback_arg; - 8012d4c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d4e: 691b ldr r3, [r3, #16] - 8012d50: 60bb str r3, [r7, #8] + 8012d5c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d5e: 691b ldr r3, [r3, #16] + 8012d60: 60bb str r3, [r7, #8] last_state = pcb->state; - 8012d52: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d54: 7d1b ldrb r3, [r3, #20] - 8012d56: 71fb strb r3, [r7, #7] + 8012d62: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d64: 7d1b ldrb r3, [r3, #20] + 8012d66: 71fb strb r3, [r7, #7] pcb2 = pcb; - 8012d58: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d5a: 603b str r3, [r7, #0] + 8012d68: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d6a: 603b str r3, [r7, #0] pcb = pcb->next; - 8012d5c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d5e: 68db ldr r3, [r3, #12] - 8012d60: 62fb str r3, [r7, #44] ; 0x2c + 8012d6c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d6e: 68db ldr r3, [r3, #12] + 8012d70: 62fb str r3, [r7, #44] ; 0x2c tcp_free(pcb2); - 8012d62: 6838 ldr r0, [r7, #0] - 8012d64: f7ff f9fc bl 8012160 + 8012d72: 6838 ldr r0, [r7, #0] + 8012d74: f7ff f9fc bl 8012170 tcp_active_pcbs_changed = 0; - 8012d68: 4b31 ldr r3, [pc, #196] ; (8012e30 ) - 8012d6a: 2200 movs r2, #0 - 8012d6c: 701a strb r2, [r3, #0] + 8012d78: 4b31 ldr r3, [pc, #196] ; (8012e40 ) + 8012d7a: 2200 movs r2, #0 + 8012d7c: 701a strb r2, [r3, #0] TCP_EVENT_ERR(last_state, err_fn, err_arg, ERR_ABRT); - 8012d6e: 68fb ldr r3, [r7, #12] - 8012d70: 2b00 cmp r3, #0 - 8012d72: d004 beq.n 8012d7e - 8012d74: 68fb ldr r3, [r7, #12] - 8012d76: f06f 010c mvn.w r1, #12 - 8012d7a: 68b8 ldr r0, [r7, #8] - 8012d7c: 4798 blx r3 + 8012d7e: 68fb ldr r3, [r7, #12] + 8012d80: 2b00 cmp r3, #0 + 8012d82: d004 beq.n 8012d8e + 8012d84: 68fb ldr r3, [r7, #12] + 8012d86: f06f 010c mvn.w r1, #12 + 8012d8a: 68b8 ldr r0, [r7, #8] + 8012d8c: 4798 blx r3 if (tcp_active_pcbs_changed) { - 8012d7e: 4b2c ldr r3, [pc, #176] ; (8012e30 ) - 8012d80: 781b ldrb r3, [r3, #0] - 8012d82: 2b00 cmp r3, #0 - 8012d84: d037 beq.n 8012df6 + 8012d8e: 4b2c ldr r3, [pc, #176] ; (8012e40 ) + 8012d90: 781b ldrb r3, [r3, #0] + 8012d92: 2b00 cmp r3, #0 + 8012d94: d037 beq.n 8012e06 goto tcp_slowtmr_start; - 8012d86: e592 b.n 80128ae + 8012d96: e592 b.n 80128be } } else { /* get the 'next' element now and work with 'prev' below (in case of abort) */ prev = pcb; - 8012d88: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d8a: 62bb str r3, [r7, #40] ; 0x28 + 8012d98: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d9a: 62bb str r3, [r7, #40] ; 0x28 pcb = pcb->next; - 8012d8c: 6afb ldr r3, [r7, #44] ; 0x2c - 8012d8e: 68db ldr r3, [r3, #12] - 8012d90: 62fb str r3, [r7, #44] ; 0x2c + 8012d9c: 6afb ldr r3, [r7, #44] ; 0x2c + 8012d9e: 68db ldr r3, [r3, #12] + 8012da0: 62fb str r3, [r7, #44] ; 0x2c /* We check if we should poll the connection. */ ++prev->polltmr; - 8012d92: 6abb ldr r3, [r7, #40] ; 0x28 - 8012d94: 7f1b ldrb r3, [r3, #28] - 8012d96: 3301 adds r3, #1 - 8012d98: b2da uxtb r2, r3 - 8012d9a: 6abb ldr r3, [r7, #40] ; 0x28 - 8012d9c: 771a strb r2, [r3, #28] - if (prev->polltmr >= prev->pollinterval) { - 8012d9e: 6abb ldr r3, [r7, #40] ; 0x28 - 8012da0: 7f1a ldrb r2, [r3, #28] 8012da2: 6abb ldr r3, [r7, #40] ; 0x28 - 8012da4: 7f5b ldrb r3, [r3, #29] - 8012da6: 429a cmp r2, r3 - 8012da8: d325 bcc.n 8012df6 - prev->polltmr = 0; + 8012da4: 7f1b ldrb r3, [r3, #28] + 8012da6: 3301 adds r3, #1 + 8012da8: b2da uxtb r2, r3 8012daa: 6abb ldr r3, [r7, #40] ; 0x28 - 8012dac: 2200 movs r2, #0 - 8012dae: 771a strb r2, [r3, #28] + 8012dac: 771a strb r2, [r3, #28] + if (prev->polltmr >= prev->pollinterval) { + 8012dae: 6abb ldr r3, [r7, #40] ; 0x28 + 8012db0: 7f1a ldrb r2, [r3, #28] + 8012db2: 6abb ldr r3, [r7, #40] ; 0x28 + 8012db4: 7f5b ldrb r3, [r3, #29] + 8012db6: 429a cmp r2, r3 + 8012db8: d325 bcc.n 8012e06 + prev->polltmr = 0; + 8012dba: 6abb ldr r3, [r7, #40] ; 0x28 + 8012dbc: 2200 movs r2, #0 + 8012dbe: 771a strb r2, [r3, #28] LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: polling application\n")); tcp_active_pcbs_changed = 0; - 8012db0: 4b1f ldr r3, [pc, #124] ; (8012e30 ) - 8012db2: 2200 movs r2, #0 - 8012db4: 701a strb r2, [r3, #0] + 8012dc0: 4b1f ldr r3, [pc, #124] ; (8012e40 ) + 8012dc2: 2200 movs r2, #0 + 8012dc4: 701a strb r2, [r3, #0] TCP_EVENT_POLL(prev, err); - 8012db6: 6abb ldr r3, [r7, #40] ; 0x28 - 8012db8: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8012dbc: 2b00 cmp r3, #0 - 8012dbe: d00b beq.n 8012dd8 - 8012dc0: 6abb ldr r3, [r7, #40] ; 0x28 - 8012dc2: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c - 8012dc6: 6aba ldr r2, [r7, #40] ; 0x28 - 8012dc8: 6912 ldr r2, [r2, #16] - 8012dca: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8012dcc: 4610 mov r0, r2 - 8012dce: 4798 blx r3 - 8012dd0: 4603 mov r3, r0 - 8012dd2: f887 3025 strb.w r3, [r7, #37] ; 0x25 - 8012dd6: e002 b.n 8012dde - 8012dd8: 2300 movs r3, #0 - 8012dda: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 8012dc6: 6abb ldr r3, [r7, #40] ; 0x28 + 8012dc8: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 8012dcc: 2b00 cmp r3, #0 + 8012dce: d00b beq.n 8012de8 + 8012dd0: 6abb ldr r3, [r7, #40] ; 0x28 + 8012dd2: f8d3 308c ldr.w r3, [r3, #140] ; 0x8c + 8012dd6: 6aba ldr r2, [r7, #40] ; 0x28 + 8012dd8: 6912 ldr r2, [r2, #16] + 8012dda: 6ab9 ldr r1, [r7, #40] ; 0x28 + 8012ddc: 4610 mov r0, r2 + 8012dde: 4798 blx r3 + 8012de0: 4603 mov r3, r0 + 8012de2: f887 3025 strb.w r3, [r7, #37] ; 0x25 + 8012de6: e002 b.n 8012dee + 8012de8: 2300 movs r3, #0 + 8012dea: f887 3025 strb.w r3, [r7, #37] ; 0x25 if (tcp_active_pcbs_changed) { - 8012dde: 4b14 ldr r3, [pc, #80] ; (8012e30 ) - 8012de0: 781b ldrb r3, [r3, #0] - 8012de2: 2b00 cmp r3, #0 - 8012de4: d000 beq.n 8012de8 + 8012dee: 4b14 ldr r3, [pc, #80] ; (8012e40 ) + 8012df0: 781b ldrb r3, [r3, #0] + 8012df2: 2b00 cmp r3, #0 + 8012df4: d000 beq.n 8012df8 goto tcp_slowtmr_start; - 8012de6: e562 b.n 80128ae + 8012df6: e562 b.n 80128be } /* if err == ERR_ABRT, 'prev' is already deallocated */ if (err == ERR_OK) { - 8012de8: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 - 8012dec: 2b00 cmp r3, #0 - 8012dee: d102 bne.n 8012df6 + 8012df8: f997 3025 ldrsb.w r3, [r7, #37] ; 0x25 + 8012dfc: 2b00 cmp r3, #0 + 8012dfe: d102 bne.n 8012e06 tcp_output(prev); - 8012df0: 6ab8 ldr r0, [r7, #40] ; 0x28 - 8012df2: f003 fb77 bl 80164e4 + 8012e00: 6ab8 ldr r0, [r7, #40] ; 0x28 + 8012e02: f003 fb77 bl 80164f4 while (pcb != NULL) { - 8012df6: 6afb ldr r3, [r7, #44] ; 0x2c - 8012df8: 2b00 cmp r3, #0 - 8012dfa: f47f ad5e bne.w 80128ba + 8012e06: 6afb ldr r3, [r7, #44] ; 0x2c + 8012e08: 2b00 cmp r3, #0 + 8012e0a: f47f ad5e bne.w 80128ca } } /* Steps through all of the TIME-WAIT PCBs. */ prev = NULL; - 8012dfe: 2300 movs r3, #0 - 8012e00: 62bb str r3, [r7, #40] ; 0x28 + 8012e0e: 2300 movs r3, #0 + 8012e10: 62bb str r3, [r7, #40] ; 0x28 pcb = tcp_tw_pcbs; - 8012e02: 4b0c ldr r3, [pc, #48] ; (8012e34 ) - 8012e04: 681b ldr r3, [r3, #0] - 8012e06: 62fb str r3, [r7, #44] ; 0x2c + 8012e12: 4b0c ldr r3, [pc, #48] ; (8012e44 ) + 8012e14: 681b ldr r3, [r3, #0] + 8012e16: 62fb str r3, [r7, #44] ; 0x2c while (pcb != NULL) { - 8012e08: e069 b.n 8012ede - 8012e0a: bf00 nop - 8012e0c: 2000f7f4 .word 0x2000f7f4 - 8012e10: 000a4cb8 .word 0x000a4cb8 - 8012e14: 10624dd3 .word 0x10624dd3 - 8012e18: 000124f8 .word 0x000124f8 - 8012e1c: 2000f7f0 .word 0x2000f7f0 - 8012e20: 0801e4d8 .word 0x0801e4d8 - 8012e24: 0801e910 .word 0x0801e910 - 8012e28: 0801e51c .word 0x0801e51c - 8012e2c: 0801e93c .word 0x0801e93c - 8012e30: 2000f7ec .word 0x2000f7ec - 8012e34: 2000f800 .word 0x2000f800 + 8012e18: e069 b.n 8012eee + 8012e1a: bf00 nop + 8012e1c: 2000f7f4 .word 0x2000f7f4 + 8012e20: 000a4cb8 .word 0x000a4cb8 + 8012e24: 10624dd3 .word 0x10624dd3 + 8012e28: 000124f8 .word 0x000124f8 + 8012e2c: 2000f7f0 .word 0x2000f7f0 + 8012e30: 0801e4e8 .word 0x0801e4e8 + 8012e34: 0801e920 .word 0x0801e920 + 8012e38: 0801e52c .word 0x0801e52c + 8012e3c: 0801e94c .word 0x0801e94c + 8012e40: 2000f7ec .word 0x2000f7ec + 8012e44: 2000f800 .word 0x2000f800 LWIP_ASSERT("tcp_slowtmr: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - 8012e38: 6afb ldr r3, [r7, #44] ; 0x2c - 8012e3a: 7d1b ldrb r3, [r3, #20] - 8012e3c: 2b0a cmp r3, #10 - 8012e3e: d006 beq.n 8012e4e - 8012e40: 4b2a ldr r3, [pc, #168] ; (8012eec ) - 8012e42: f240 52a1 movw r2, #1441 ; 0x5a1 - 8012e46: 492a ldr r1, [pc, #168] ; (8012ef0 ) - 8012e48: 482a ldr r0, [pc, #168] ; (8012ef4 ) - 8012e4a: f009 fbfd bl 801c648 + 8012e48: 6afb ldr r3, [r7, #44] ; 0x2c + 8012e4a: 7d1b ldrb r3, [r3, #20] + 8012e4c: 2b0a cmp r3, #10 + 8012e4e: d006 beq.n 8012e5e + 8012e50: 4b2a ldr r3, [pc, #168] ; (8012efc ) + 8012e52: f240 52a1 movw r2, #1441 ; 0x5a1 + 8012e56: 492a ldr r1, [pc, #168] ; (8012f00 ) + 8012e58: 482a ldr r0, [pc, #168] ; (8012f04 ) + 8012e5a: f009 fbfd bl 801c658 pcb_remove = 0; - 8012e4e: 2300 movs r3, #0 - 8012e50: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8012e5e: 2300 movs r3, #0 + 8012e60: f887 3027 strb.w r3, [r7, #39] ; 0x27 /* Check if this PCB has stayed long enough in TIME-WAIT */ if ((u32_t)(tcp_ticks - pcb->tmr) > 2 * TCP_MSL / TCP_SLOW_INTERVAL) { - 8012e54: 4b28 ldr r3, [pc, #160] ; (8012ef8 ) - 8012e56: 681a ldr r2, [r3, #0] - 8012e58: 6afb ldr r3, [r7, #44] ; 0x2c - 8012e5a: 6a1b ldr r3, [r3, #32] - 8012e5c: 1ad3 subs r3, r2, r3 - 8012e5e: 2bf0 cmp r3, #240 ; 0xf0 - 8012e60: d904 bls.n 8012e6c + 8012e64: 4b28 ldr r3, [pc, #160] ; (8012f08 ) + 8012e66: 681a ldr r2, [r3, #0] + 8012e68: 6afb ldr r3, [r7, #44] ; 0x2c + 8012e6a: 6a1b ldr r3, [r3, #32] + 8012e6c: 1ad3 subs r3, r2, r3 + 8012e6e: 2bf0 cmp r3, #240 ; 0xf0 + 8012e70: d904 bls.n 8012e7c ++pcb_remove; - 8012e62: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8012e66: 3301 adds r3, #1 - 8012e68: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8012e72: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8012e76: 3301 adds r3, #1 + 8012e78: f887 3027 strb.w r3, [r7, #39] ; 0x27 } /* If the PCB should be removed, do it. */ if (pcb_remove) { - 8012e6c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8012e70: 2b00 cmp r3, #0 - 8012e72: d02f beq.n 8012ed4 + 8012e7c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8012e80: 2b00 cmp r3, #0 + 8012e82: d02f beq.n 8012ee4 struct tcp_pcb *pcb2; tcp_pcb_purge(pcb); - 8012e74: 6af8 ldr r0, [r7, #44] ; 0x2c - 8012e76: f000 fb27 bl 80134c8 + 8012e84: 6af8 ldr r0, [r7, #44] ; 0x2c + 8012e86: f000 fb27 bl 80134d8 /* Remove PCB from tcp_tw_pcbs list. */ if (prev != NULL) { - 8012e7a: 6abb ldr r3, [r7, #40] ; 0x28 - 8012e7c: 2b00 cmp r3, #0 - 8012e7e: d010 beq.n 8012ea2 + 8012e8a: 6abb ldr r3, [r7, #40] ; 0x28 + 8012e8c: 2b00 cmp r3, #0 + 8012e8e: d010 beq.n 8012eb2 LWIP_ASSERT("tcp_slowtmr: middle tcp != tcp_tw_pcbs", pcb != tcp_tw_pcbs); - 8012e80: 4b1e ldr r3, [pc, #120] ; (8012efc ) - 8012e82: 681b ldr r3, [r3, #0] - 8012e84: 6afa ldr r2, [r7, #44] ; 0x2c - 8012e86: 429a cmp r2, r3 - 8012e88: d106 bne.n 8012e98 - 8012e8a: 4b18 ldr r3, [pc, #96] ; (8012eec ) - 8012e8c: f240 52af movw r2, #1455 ; 0x5af - 8012e90: 491b ldr r1, [pc, #108] ; (8012f00 ) - 8012e92: 4818 ldr r0, [pc, #96] ; (8012ef4 ) - 8012e94: f009 fbd8 bl 801c648 + 8012e90: 4b1e ldr r3, [pc, #120] ; (8012f0c ) + 8012e92: 681b ldr r3, [r3, #0] + 8012e94: 6afa ldr r2, [r7, #44] ; 0x2c + 8012e96: 429a cmp r2, r3 + 8012e98: d106 bne.n 8012ea8 + 8012e9a: 4b18 ldr r3, [pc, #96] ; (8012efc ) + 8012e9c: f240 52af movw r2, #1455 ; 0x5af + 8012ea0: 491b ldr r1, [pc, #108] ; (8012f10 ) + 8012ea2: 4818 ldr r0, [pc, #96] ; (8012f04 ) + 8012ea4: f009 fbd8 bl 801c658 prev->next = pcb->next; - 8012e98: 6afb ldr r3, [r7, #44] ; 0x2c - 8012e9a: 68da ldr r2, [r3, #12] - 8012e9c: 6abb ldr r3, [r7, #40] ; 0x28 - 8012e9e: 60da str r2, [r3, #12] - 8012ea0: e00f b.n 8012ec2 + 8012ea8: 6afb ldr r3, [r7, #44] ; 0x2c + 8012eaa: 68da ldr r2, [r3, #12] + 8012eac: 6abb ldr r3, [r7, #40] ; 0x28 + 8012eae: 60da str r2, [r3, #12] + 8012eb0: e00f b.n 8012ed2 } else { /* This PCB was the first. */ LWIP_ASSERT("tcp_slowtmr: first pcb == tcp_tw_pcbs", tcp_tw_pcbs == pcb); - 8012ea2: 4b16 ldr r3, [pc, #88] ; (8012efc ) - 8012ea4: 681b ldr r3, [r3, #0] - 8012ea6: 6afa ldr r2, [r7, #44] ; 0x2c - 8012ea8: 429a cmp r2, r3 - 8012eaa: d006 beq.n 8012eba - 8012eac: 4b0f ldr r3, [pc, #60] ; (8012eec ) - 8012eae: f240 52b3 movw r2, #1459 ; 0x5b3 - 8012eb2: 4914 ldr r1, [pc, #80] ; (8012f04 ) - 8012eb4: 480f ldr r0, [pc, #60] ; (8012ef4 ) - 8012eb6: f009 fbc7 bl 801c648 + 8012eb2: 4b16 ldr r3, [pc, #88] ; (8012f0c ) + 8012eb4: 681b ldr r3, [r3, #0] + 8012eb6: 6afa ldr r2, [r7, #44] ; 0x2c + 8012eb8: 429a cmp r2, r3 + 8012eba: d006 beq.n 8012eca + 8012ebc: 4b0f ldr r3, [pc, #60] ; (8012efc ) + 8012ebe: f240 52b3 movw r2, #1459 ; 0x5b3 + 8012ec2: 4914 ldr r1, [pc, #80] ; (8012f14 ) + 8012ec4: 480f ldr r0, [pc, #60] ; (8012f04 ) + 8012ec6: f009 fbc7 bl 801c658 tcp_tw_pcbs = pcb->next; - 8012eba: 6afb ldr r3, [r7, #44] ; 0x2c - 8012ebc: 68db ldr r3, [r3, #12] - 8012ebe: 4a0f ldr r2, [pc, #60] ; (8012efc ) - 8012ec0: 6013 str r3, [r2, #0] + 8012eca: 6afb ldr r3, [r7, #44] ; 0x2c + 8012ecc: 68db ldr r3, [r3, #12] + 8012ece: 4a0f ldr r2, [pc, #60] ; (8012f0c ) + 8012ed0: 6013 str r3, [r2, #0] } pcb2 = pcb; - 8012ec2: 6afb ldr r3, [r7, #44] ; 0x2c - 8012ec4: 61fb str r3, [r7, #28] + 8012ed2: 6afb ldr r3, [r7, #44] ; 0x2c + 8012ed4: 61fb str r3, [r7, #28] pcb = pcb->next; - 8012ec6: 6afb ldr r3, [r7, #44] ; 0x2c - 8012ec8: 68db ldr r3, [r3, #12] - 8012eca: 62fb str r3, [r7, #44] ; 0x2c + 8012ed6: 6afb ldr r3, [r7, #44] ; 0x2c + 8012ed8: 68db ldr r3, [r3, #12] + 8012eda: 62fb str r3, [r7, #44] ; 0x2c tcp_free(pcb2); - 8012ecc: 69f8 ldr r0, [r7, #28] - 8012ece: f7ff f947 bl 8012160 - 8012ed2: e004 b.n 8012ede + 8012edc: 69f8 ldr r0, [r7, #28] + 8012ede: f7ff f947 bl 8012170 + 8012ee2: e004 b.n 8012eee } else { prev = pcb; - 8012ed4: 6afb ldr r3, [r7, #44] ; 0x2c - 8012ed6: 62bb str r3, [r7, #40] ; 0x28 + 8012ee4: 6afb ldr r3, [r7, #44] ; 0x2c + 8012ee6: 62bb str r3, [r7, #40] ; 0x28 pcb = pcb->next; - 8012ed8: 6afb ldr r3, [r7, #44] ; 0x2c - 8012eda: 68db ldr r3, [r3, #12] - 8012edc: 62fb str r3, [r7, #44] ; 0x2c + 8012ee8: 6afb ldr r3, [r7, #44] ; 0x2c + 8012eea: 68db ldr r3, [r3, #12] + 8012eec: 62fb str r3, [r7, #44] ; 0x2c while (pcb != NULL) { - 8012ede: 6afb ldr r3, [r7, #44] ; 0x2c - 8012ee0: 2b00 cmp r3, #0 - 8012ee2: d1a9 bne.n 8012e38 + 8012eee: 6afb ldr r3, [r7, #44] ; 0x2c + 8012ef0: 2b00 cmp r3, #0 + 8012ef2: d1a9 bne.n 8012e48 } } } - 8012ee4: bf00 nop - 8012ee6: 3730 adds r7, #48 ; 0x30 - 8012ee8: 46bd mov sp, r7 - 8012eea: bdb0 pop {r4, r5, r7, pc} - 8012eec: 0801e4d8 .word 0x0801e4d8 - 8012ef0: 0801e968 .word 0x0801e968 - 8012ef4: 0801e51c .word 0x0801e51c - 8012ef8: 2000f7f4 .word 0x2000f7f4 - 8012efc: 2000f800 .word 0x2000f800 - 8012f00: 0801e998 .word 0x0801e998 - 8012f04: 0801e9c0 .word 0x0801e9c0 + 8012ef4: bf00 nop + 8012ef6: 3730 adds r7, #48 ; 0x30 + 8012ef8: 46bd mov sp, r7 + 8012efa: bdb0 pop {r4, r5, r7, pc} + 8012efc: 0801e4e8 .word 0x0801e4e8 + 8012f00: 0801e978 .word 0x0801e978 + 8012f04: 0801e52c .word 0x0801e52c + 8012f08: 2000f7f4 .word 0x2000f7f4 + 8012f0c: 2000f800 .word 0x2000f800 + 8012f10: 0801e9a8 .word 0x0801e9a8 + 8012f14: 0801e9d0 .word 0x0801e9d0 -08012f08 : +08012f18 : * * Automatically called from tcp_tmr(). */ void tcp_fasttmr(void) { - 8012f08: b580 push {r7, lr} - 8012f0a: b082 sub sp, #8 - 8012f0c: af00 add r7, sp, #0 + 8012f18: b580 push {r7, lr} + 8012f1a: b082 sub sp, #8 + 8012f1c: af00 add r7, sp, #0 struct tcp_pcb *pcb; ++tcp_timer_ctr; - 8012f0e: 4b2d ldr r3, [pc, #180] ; (8012fc4 ) - 8012f10: 781b ldrb r3, [r3, #0] - 8012f12: 3301 adds r3, #1 - 8012f14: b2da uxtb r2, r3 - 8012f16: 4b2b ldr r3, [pc, #172] ; (8012fc4 ) - 8012f18: 701a strb r2, [r3, #0] + 8012f1e: 4b2d ldr r3, [pc, #180] ; (8012fd4 ) + 8012f20: 781b ldrb r3, [r3, #0] + 8012f22: 3301 adds r3, #1 + 8012f24: b2da uxtb r2, r3 + 8012f26: 4b2b ldr r3, [pc, #172] ; (8012fd4 ) + 8012f28: 701a strb r2, [r3, #0] tcp_fasttmr_start: pcb = tcp_active_pcbs; - 8012f1a: 4b2b ldr r3, [pc, #172] ; (8012fc8 ) - 8012f1c: 681b ldr r3, [r3, #0] - 8012f1e: 607b str r3, [r7, #4] + 8012f2a: 4b2b ldr r3, [pc, #172] ; (8012fd8 ) + 8012f2c: 681b ldr r3, [r3, #0] + 8012f2e: 607b str r3, [r7, #4] while (pcb != NULL) { - 8012f20: e048 b.n 8012fb4 + 8012f30: e048 b.n 8012fc4 if (pcb->last_timer != tcp_timer_ctr) { - 8012f22: 687b ldr r3, [r7, #4] - 8012f24: 7f9a ldrb r2, [r3, #30] - 8012f26: 4b27 ldr r3, [pc, #156] ; (8012fc4 ) - 8012f28: 781b ldrb r3, [r3, #0] - 8012f2a: 429a cmp r2, r3 - 8012f2c: d03f beq.n 8012fae + 8012f32: 687b ldr r3, [r7, #4] + 8012f34: 7f9a ldrb r2, [r3, #30] + 8012f36: 4b27 ldr r3, [pc, #156] ; (8012fd4 ) + 8012f38: 781b ldrb r3, [r3, #0] + 8012f3a: 429a cmp r2, r3 + 8012f3c: d03f beq.n 8012fbe struct tcp_pcb *next; pcb->last_timer = tcp_timer_ctr; - 8012f2e: 4b25 ldr r3, [pc, #148] ; (8012fc4 ) - 8012f30: 781a ldrb r2, [r3, #0] - 8012f32: 687b ldr r3, [r7, #4] - 8012f34: 779a strb r2, [r3, #30] + 8012f3e: 4b25 ldr r3, [pc, #148] ; (8012fd4 ) + 8012f40: 781a ldrb r2, [r3, #0] + 8012f42: 687b ldr r3, [r7, #4] + 8012f44: 779a strb r2, [r3, #30] /* send delayed ACKs */ if (pcb->flags & TF_ACK_DELAY) { - 8012f36: 687b ldr r3, [r7, #4] - 8012f38: 8b5b ldrh r3, [r3, #26] - 8012f3a: f003 0301 and.w r3, r3, #1 - 8012f3e: 2b00 cmp r3, #0 - 8012f40: d010 beq.n 8012f64 + 8012f46: 687b ldr r3, [r7, #4] + 8012f48: 8b5b ldrh r3, [r3, #26] + 8012f4a: f003 0301 and.w r3, r3, #1 + 8012f4e: 2b00 cmp r3, #0 + 8012f50: d010 beq.n 8012f74 LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: delayed ACK\n")); tcp_ack_now(pcb); - 8012f42: 687b ldr r3, [r7, #4] - 8012f44: 8b5b ldrh r3, [r3, #26] - 8012f46: f043 0302 orr.w r3, r3, #2 - 8012f4a: b29a uxth r2, r3 - 8012f4c: 687b ldr r3, [r7, #4] - 8012f4e: 835a strh r2, [r3, #26] + 8012f52: 687b ldr r3, [r7, #4] + 8012f54: 8b5b ldrh r3, [r3, #26] + 8012f56: f043 0302 orr.w r3, r3, #2 + 8012f5a: b29a uxth r2, r3 + 8012f5c: 687b ldr r3, [r7, #4] + 8012f5e: 835a strh r2, [r3, #26] tcp_output(pcb); - 8012f50: 6878 ldr r0, [r7, #4] - 8012f52: f003 fac7 bl 80164e4 + 8012f60: 6878 ldr r0, [r7, #4] + 8012f62: f003 fac7 bl 80164f4 tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 8012f56: 687b ldr r3, [r7, #4] - 8012f58: 8b5b ldrh r3, [r3, #26] - 8012f5a: f023 0303 bic.w r3, r3, #3 - 8012f5e: b29a uxth r2, r3 - 8012f60: 687b ldr r3, [r7, #4] - 8012f62: 835a strh r2, [r3, #26] + 8012f66: 687b ldr r3, [r7, #4] + 8012f68: 8b5b ldrh r3, [r3, #26] + 8012f6a: f023 0303 bic.w r3, r3, #3 + 8012f6e: b29a uxth r2, r3 + 8012f70: 687b ldr r3, [r7, #4] + 8012f72: 835a strh r2, [r3, #26] } /* send pending FIN */ if (pcb->flags & TF_CLOSEPEND) { - 8012f64: 687b ldr r3, [r7, #4] - 8012f66: 8b5b ldrh r3, [r3, #26] - 8012f68: f003 0308 and.w r3, r3, #8 - 8012f6c: 2b00 cmp r3, #0 - 8012f6e: d009 beq.n 8012f84 + 8012f74: 687b ldr r3, [r7, #4] + 8012f76: 8b5b ldrh r3, [r3, #26] + 8012f78: f003 0308 and.w r3, r3, #8 + 8012f7c: 2b00 cmp r3, #0 + 8012f7e: d009 beq.n 8012f94 LWIP_DEBUGF(TCP_DEBUG, ("tcp_fasttmr: pending FIN\n")); tcp_clear_flags(pcb, TF_CLOSEPEND); - 8012f70: 687b ldr r3, [r7, #4] - 8012f72: 8b5b ldrh r3, [r3, #26] - 8012f74: f023 0308 bic.w r3, r3, #8 - 8012f78: b29a uxth r2, r3 - 8012f7a: 687b ldr r3, [r7, #4] - 8012f7c: 835a strh r2, [r3, #26] + 8012f80: 687b ldr r3, [r7, #4] + 8012f82: 8b5b ldrh r3, [r3, #26] + 8012f84: f023 0308 bic.w r3, r3, #8 + 8012f88: b29a uxth r2, r3 + 8012f8a: 687b ldr r3, [r7, #4] + 8012f8c: 835a strh r2, [r3, #26] tcp_close_shutdown_fin(pcb); - 8012f7e: 6878 ldr r0, [r7, #4] - 8012f80: f7ff fa7e bl 8012480 + 8012f8e: 6878 ldr r0, [r7, #4] + 8012f90: f7ff fa7e bl 8012490 } next = pcb->next; - 8012f84: 687b ldr r3, [r7, #4] - 8012f86: 68db ldr r3, [r3, #12] - 8012f88: 603b str r3, [r7, #0] + 8012f94: 687b ldr r3, [r7, #4] + 8012f96: 68db ldr r3, [r3, #12] + 8012f98: 603b str r3, [r7, #0] /* If there is data which was previously "refused" by upper layer */ if (pcb->refused_data != NULL) { - 8012f8a: 687b ldr r3, [r7, #4] - 8012f8c: 6f9b ldr r3, [r3, #120] ; 0x78 - 8012f8e: 2b00 cmp r3, #0 - 8012f90: d00a beq.n 8012fa8 + 8012f9a: 687b ldr r3, [r7, #4] + 8012f9c: 6f9b ldr r3, [r3, #120] ; 0x78 + 8012f9e: 2b00 cmp r3, #0 + 8012fa0: d00a beq.n 8012fb8 tcp_active_pcbs_changed = 0; - 8012f92: 4b0e ldr r3, [pc, #56] ; (8012fcc ) - 8012f94: 2200 movs r2, #0 - 8012f96: 701a strb r2, [r3, #0] + 8012fa2: 4b0e ldr r3, [pc, #56] ; (8012fdc ) + 8012fa4: 2200 movs r2, #0 + 8012fa6: 701a strb r2, [r3, #0] tcp_process_refused_data(pcb); - 8012f98: 6878 ldr r0, [r7, #4] - 8012f9a: f000 f819 bl 8012fd0 + 8012fa8: 6878 ldr r0, [r7, #4] + 8012faa: f000 f819 bl 8012fe0 if (tcp_active_pcbs_changed) { - 8012f9e: 4b0b ldr r3, [pc, #44] ; (8012fcc ) - 8012fa0: 781b ldrb r3, [r3, #0] - 8012fa2: 2b00 cmp r3, #0 - 8012fa4: d000 beq.n 8012fa8 + 8012fae: 4b0b ldr r3, [pc, #44] ; (8012fdc ) + 8012fb0: 781b ldrb r3, [r3, #0] + 8012fb2: 2b00 cmp r3, #0 + 8012fb4: d000 beq.n 8012fb8 /* application callback has changed the pcb list: restart the loop */ goto tcp_fasttmr_start; - 8012fa6: e7b8 b.n 8012f1a + 8012fb6: e7b8 b.n 8012f2a } } pcb = next; - 8012fa8: 683b ldr r3, [r7, #0] - 8012faa: 607b str r3, [r7, #4] - 8012fac: e002 b.n 8012fb4 + 8012fb8: 683b ldr r3, [r7, #0] + 8012fba: 607b str r3, [r7, #4] + 8012fbc: e002 b.n 8012fc4 } else { pcb = pcb->next; - 8012fae: 687b ldr r3, [r7, #4] - 8012fb0: 68db ldr r3, [r3, #12] - 8012fb2: 607b str r3, [r7, #4] + 8012fbe: 687b ldr r3, [r7, #4] + 8012fc0: 68db ldr r3, [r3, #12] + 8012fc2: 607b str r3, [r7, #4] while (pcb != NULL) { - 8012fb4: 687b ldr r3, [r7, #4] - 8012fb6: 2b00 cmp r3, #0 - 8012fb8: d1b3 bne.n 8012f22 + 8012fc4: 687b ldr r3, [r7, #4] + 8012fc6: 2b00 cmp r3, #0 + 8012fc8: d1b3 bne.n 8012f32 } } } - 8012fba: bf00 nop - 8012fbc: 3708 adds r7, #8 - 8012fbe: 46bd mov sp, r7 - 8012fc0: bd80 pop {r7, pc} - 8012fc2: bf00 nop - 8012fc4: 2000871e .word 0x2000871e - 8012fc8: 2000f7f0 .word 0x2000f7f0 - 8012fcc: 2000f7ec .word 0x2000f7ec + 8012fca: bf00 nop + 8012fcc: 3708 adds r7, #8 + 8012fce: 46bd mov sp, r7 + 8012fd0: bd80 pop {r7, pc} + 8012fd2: bf00 nop + 8012fd4: 2000871e .word 0x2000871e + 8012fd8: 2000f7f0 .word 0x2000f7f0 + 8012fdc: 2000f7ec .word 0x2000f7ec -08012fd0 : +08012fe0 : } /** Pass pcb->refused_data to the recv callback */ err_t tcp_process_refused_data(struct tcp_pcb *pcb) { - 8012fd0: b590 push {r4, r7, lr} - 8012fd2: b085 sub sp, #20 - 8012fd4: af00 add r7, sp, #0 - 8012fd6: 6078 str r0, [r7, #4] + 8012fe0: b590 push {r4, r7, lr} + 8012fe2: b085 sub sp, #20 + 8012fe4: af00 add r7, sp, #0 + 8012fe6: 6078 str r0, [r7, #4] #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE struct pbuf *rest; #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ LWIP_ERROR("tcp_process_refused_data: invalid pcb", pcb != NULL, return ERR_ARG); - 8012fd8: 687b ldr r3, [r7, #4] - 8012fda: 2b00 cmp r3, #0 - 8012fdc: d109 bne.n 8012ff2 - 8012fde: 4b37 ldr r3, [pc, #220] ; (80130bc ) - 8012fe0: f240 6209 movw r2, #1545 ; 0x609 - 8012fe4: 4936 ldr r1, [pc, #216] ; (80130c0 ) - 8012fe6: 4837 ldr r0, [pc, #220] ; (80130c4 ) - 8012fe8: f009 fb2e bl 801c648 - 8012fec: f06f 030f mvn.w r3, #15 - 8012ff0: e060 b.n 80130b4 + 8012fe8: 687b ldr r3, [r7, #4] + 8012fea: 2b00 cmp r3, #0 + 8012fec: d109 bne.n 8013002 + 8012fee: 4b37 ldr r3, [pc, #220] ; (80130cc ) + 8012ff0: f240 6209 movw r2, #1545 ; 0x609 + 8012ff4: 4936 ldr r1, [pc, #216] ; (80130d0 ) + 8012ff6: 4837 ldr r0, [pc, #220] ; (80130d4 ) + 8012ff8: f009 fb2e bl 801c658 + 8012ffc: f06f 030f mvn.w r3, #15 + 8013000: e060 b.n 80130c4 #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE while (pcb->refused_data != NULL) #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ { err_t err; u8_t refused_flags = pcb->refused_data->flags; - 8012ff2: 687b ldr r3, [r7, #4] - 8012ff4: 6f9b ldr r3, [r3, #120] ; 0x78 - 8012ff6: 7b5b ldrb r3, [r3, #13] - 8012ff8: 73bb strb r3, [r7, #14] + 8013002: 687b ldr r3, [r7, #4] + 8013004: 6f9b ldr r3, [r3, #120] ; 0x78 + 8013006: 7b5b ldrb r3, [r3, #13] + 8013008: 73bb strb r3, [r7, #14] /* set pcb->refused_data to NULL in case the callback frees it and then closes the pcb */ struct pbuf *refused_data = pcb->refused_data; - 8012ffa: 687b ldr r3, [r7, #4] - 8012ffc: 6f9b ldr r3, [r3, #120] ; 0x78 - 8012ffe: 60bb str r3, [r7, #8] + 801300a: 687b ldr r3, [r7, #4] + 801300c: 6f9b ldr r3, [r3, #120] ; 0x78 + 801300e: 60bb str r3, [r7, #8] #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE pbuf_split_64k(refused_data, &rest); pcb->refused_data = rest; #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ pcb->refused_data = NULL; - 8013000: 687b ldr r3, [r7, #4] - 8013002: 2200 movs r2, #0 - 8013004: 679a str r2, [r3, #120] ; 0x78 + 8013010: 687b ldr r3, [r7, #4] + 8013012: 2200 movs r2, #0 + 8013014: 679a str r2, [r3, #120] ; 0x78 #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ /* Notify again application with data previously received. */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: notify kept packet\n")); TCP_EVENT_RECV(pcb, refused_data, ERR_OK, err); - 8013006: 687b ldr r3, [r7, #4] - 8013008: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 801300c: 2b00 cmp r3, #0 - 801300e: d00b beq.n 8013028 - 8013010: 687b ldr r3, [r7, #4] - 8013012: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 8013016: 687b ldr r3, [r7, #4] - 8013018: 6918 ldr r0, [r3, #16] - 801301a: 2300 movs r3, #0 - 801301c: 68ba ldr r2, [r7, #8] - 801301e: 6879 ldr r1, [r7, #4] - 8013020: 47a0 blx r4 - 8013022: 4603 mov r3, r0 - 8013024: 73fb strb r3, [r7, #15] - 8013026: e007 b.n 8013038 - 8013028: 2300 movs r3, #0 - 801302a: 68ba ldr r2, [r7, #8] - 801302c: 6879 ldr r1, [r7, #4] - 801302e: 2000 movs r0, #0 - 8013030: f000 f8a2 bl 8013178 - 8013034: 4603 mov r3, r0 - 8013036: 73fb strb r3, [r7, #15] + 8013018: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 801301c: 2b00 cmp r3, #0 + 801301e: d00b beq.n 8013038 + 8013020: 687b ldr r3, [r7, #4] + 8013022: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 + 8013026: 687b ldr r3, [r7, #4] + 8013028: 6918 ldr r0, [r3, #16] + 801302a: 2300 movs r3, #0 + 801302c: 68ba ldr r2, [r7, #8] + 801302e: 6879 ldr r1, [r7, #4] + 8013030: 47a0 blx r4 + 8013032: 4603 mov r3, r0 + 8013034: 73fb strb r3, [r7, #15] + 8013036: e007 b.n 8013048 + 8013038: 2300 movs r3, #0 + 801303a: 68ba ldr r2, [r7, #8] + 801303c: 6879 ldr r1, [r7, #4] + 801303e: 2000 movs r0, #0 + 8013040: f000 f8a2 bl 8013188 + 8013044: 4603 mov r3, r0 + 8013046: 73fb strb r3, [r7, #15] if (err == ERR_OK) { - 8013038: f997 300f ldrsb.w r3, [r7, #15] - 801303c: 2b00 cmp r3, #0 - 801303e: d12a bne.n 8013096 + 8013048: f997 300f ldrsb.w r3, [r7, #15] + 801304c: 2b00 cmp r3, #0 + 801304e: d12a bne.n 80130a6 /* did refused_data include a FIN? */ if ((refused_flags & PBUF_FLAG_TCP_FIN) - 8013040: 7bbb ldrb r3, [r7, #14] - 8013042: f003 0320 and.w r3, r3, #32 - 8013046: 2b00 cmp r3, #0 - 8013048: d033 beq.n 80130b2 + 8013050: 7bbb ldrb r3, [r7, #14] + 8013052: f003 0320 and.w r3, r3, #32 + 8013056: 2b00 cmp r3, #0 + 8013058: d033 beq.n 80130c2 && (rest == NULL) #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ ) { /* correct rcv_wnd as the application won't call tcp_recved() for the FIN's seqno */ if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) { - 801304a: 687b ldr r3, [r7, #4] - 801304c: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801304e: f5b3 6f06 cmp.w r3, #2144 ; 0x860 - 8013052: d005 beq.n 8013060 + 801305a: 687b ldr r3, [r7, #4] + 801305c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801305e: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 8013062: d005 beq.n 8013070 pcb->rcv_wnd++; - 8013054: 687b ldr r3, [r7, #4] - 8013056: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8013058: 3301 adds r3, #1 - 801305a: b29a uxth r2, r3 - 801305c: 687b ldr r3, [r7, #4] - 801305e: 851a strh r2, [r3, #40] ; 0x28 + 8013064: 687b ldr r3, [r7, #4] + 8013066: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8013068: 3301 adds r3, #1 + 801306a: b29a uxth r2, r3 + 801306c: 687b ldr r3, [r7, #4] + 801306e: 851a strh r2, [r3, #40] ; 0x28 } TCP_EVENT_CLOSED(pcb, err); - 8013060: 687b ldr r3, [r7, #4] - 8013062: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8013066: 2b00 cmp r3, #0 - 8013068: d00b beq.n 8013082 - 801306a: 687b ldr r3, [r7, #4] - 801306c: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 8013070: 687b ldr r3, [r7, #4] - 8013072: 6918 ldr r0, [r3, #16] - 8013074: 2300 movs r3, #0 - 8013076: 2200 movs r2, #0 - 8013078: 6879 ldr r1, [r7, #4] - 801307a: 47a0 blx r4 - 801307c: 4603 mov r3, r0 - 801307e: 73fb strb r3, [r7, #15] - 8013080: e001 b.n 8013086 - 8013082: 2300 movs r3, #0 - 8013084: 73fb strb r3, [r7, #15] + 8013072: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8013076: 2b00 cmp r3, #0 + 8013078: d00b beq.n 8013092 + 801307a: 687b ldr r3, [r7, #4] + 801307c: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 + 8013080: 687b ldr r3, [r7, #4] + 8013082: 6918 ldr r0, [r3, #16] + 8013084: 2300 movs r3, #0 + 8013086: 2200 movs r2, #0 + 8013088: 6879 ldr r1, [r7, #4] + 801308a: 47a0 blx r4 + 801308c: 4603 mov r3, r0 + 801308e: 73fb strb r3, [r7, #15] + 8013090: e001 b.n 8013096 + 8013092: 2300 movs r3, #0 + 8013094: 73fb strb r3, [r7, #15] if (err == ERR_ABRT) { - 8013086: f997 300f ldrsb.w r3, [r7, #15] - 801308a: f113 0f0d cmn.w r3, #13 - 801308e: d110 bne.n 80130b2 + 8013096: f997 300f ldrsb.w r3, [r7, #15] + 801309a: f113 0f0d cmn.w r3, #13 + 801309e: d110 bne.n 80130c2 return ERR_ABRT; - 8013090: f06f 030c mvn.w r3, #12 - 8013094: e00e b.n 80130b4 + 80130a0: f06f 030c mvn.w r3, #12 + 80130a4: e00e b.n 80130c4 } } } else if (err == ERR_ABRT) { - 8013096: f997 300f ldrsb.w r3, [r7, #15] - 801309a: f113 0f0d cmn.w r3, #13 - 801309e: d102 bne.n 80130a6 + 80130a6: f997 300f ldrsb.w r3, [r7, #15] + 80130aa: f113 0f0d cmn.w r3, #13 + 80130ae: d102 bne.n 80130b6 /* if err == ERR_ABRT, 'pcb' is already deallocated */ /* Drop incoming packets because pcb is "full" (only if the incoming segment contains data). */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_input: drop incoming packets, because pcb is \"full\"\n")); return ERR_ABRT; - 80130a0: f06f 030c mvn.w r3, #12 - 80130a4: e006 b.n 80130b4 + 80130b0: f06f 030c mvn.w r3, #12 + 80130b4: e006 b.n 80130c4 #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE if (rest != NULL) { pbuf_cat(refused_data, rest); } #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ pcb->refused_data = refused_data; - 80130a6: 687b ldr r3, [r7, #4] - 80130a8: 68ba ldr r2, [r7, #8] - 80130aa: 679a str r2, [r3, #120] ; 0x78 + 80130b6: 687b ldr r3, [r7, #4] + 80130b8: 68ba ldr r2, [r7, #8] + 80130ba: 679a str r2, [r3, #120] ; 0x78 return ERR_INPROGRESS; - 80130ac: f06f 0304 mvn.w r3, #4 - 80130b0: e000 b.n 80130b4 + 80130bc: f06f 0304 mvn.w r3, #4 + 80130c0: e000 b.n 80130c4 } } return ERR_OK; - 80130b2: 2300 movs r3, #0 + 80130c2: 2300 movs r3, #0 } - 80130b4: 4618 mov r0, r3 - 80130b6: 3714 adds r7, #20 - 80130b8: 46bd mov sp, r7 - 80130ba: bd90 pop {r4, r7, pc} - 80130bc: 0801e4d8 .word 0x0801e4d8 - 80130c0: 0801e9e8 .word 0x0801e9e8 - 80130c4: 0801e51c .word 0x0801e51c + 80130c4: 4618 mov r0, r3 + 80130c6: 3714 adds r7, #20 + 80130c8: 46bd mov sp, r7 + 80130ca: bd90 pop {r4, r7, pc} + 80130cc: 0801e4e8 .word 0x0801e4e8 + 80130d0: 0801e9f8 .word 0x0801e9f8 + 80130d4: 0801e52c .word 0x0801e52c -080130c8 : +080130d8 : * * @param seg tcp_seg list of TCP segments to free */ void tcp_segs_free(struct tcp_seg *seg) { - 80130c8: b580 push {r7, lr} - 80130ca: b084 sub sp, #16 - 80130cc: af00 add r7, sp, #0 - 80130ce: 6078 str r0, [r7, #4] + 80130d8: b580 push {r7, lr} + 80130da: b084 sub sp, #16 + 80130dc: af00 add r7, sp, #0 + 80130de: 6078 str r0, [r7, #4] while (seg != NULL) { - 80130d0: e007 b.n 80130e2 + 80130e0: e007 b.n 80130f2 struct tcp_seg *next = seg->next; - 80130d2: 687b ldr r3, [r7, #4] - 80130d4: 681b ldr r3, [r3, #0] - 80130d6: 60fb str r3, [r7, #12] + 80130e2: 687b ldr r3, [r7, #4] + 80130e4: 681b ldr r3, [r3, #0] + 80130e6: 60fb str r3, [r7, #12] tcp_seg_free(seg); - 80130d8: 6878 ldr r0, [r7, #4] - 80130da: f000 f809 bl 80130f0 + 80130e8: 6878 ldr r0, [r7, #4] + 80130ea: f000 f809 bl 8013100 seg = next; - 80130de: 68fb ldr r3, [r7, #12] - 80130e0: 607b str r3, [r7, #4] + 80130ee: 68fb ldr r3, [r7, #12] + 80130f0: 607b str r3, [r7, #4] while (seg != NULL) { - 80130e2: 687b ldr r3, [r7, #4] - 80130e4: 2b00 cmp r3, #0 - 80130e6: d1f4 bne.n 80130d2 + 80130f2: 687b ldr r3, [r7, #4] + 80130f4: 2b00 cmp r3, #0 + 80130f6: d1f4 bne.n 80130e2 } } - 80130e8: bf00 nop - 80130ea: 3710 adds r7, #16 - 80130ec: 46bd mov sp, r7 - 80130ee: bd80 pop {r7, pc} + 80130f8: bf00 nop + 80130fa: 3710 adds r7, #16 + 80130fc: 46bd mov sp, r7 + 80130fe: bd80 pop {r7, pc} -080130f0 : +08013100 : * * @param seg single tcp_seg to free */ void tcp_seg_free(struct tcp_seg *seg) { - 80130f0: b580 push {r7, lr} - 80130f2: b082 sub sp, #8 - 80130f4: af00 add r7, sp, #0 - 80130f6: 6078 str r0, [r7, #4] + 8013100: b580 push {r7, lr} + 8013102: b082 sub sp, #8 + 8013104: af00 add r7, sp, #0 + 8013106: 6078 str r0, [r7, #4] if (seg != NULL) { - 80130f8: 687b ldr r3, [r7, #4] - 80130fa: 2b00 cmp r3, #0 - 80130fc: d00c beq.n 8013118 + 8013108: 687b ldr r3, [r7, #4] + 801310a: 2b00 cmp r3, #0 + 801310c: d00c beq.n 8013128 if (seg->p != NULL) { - 80130fe: 687b ldr r3, [r7, #4] - 8013100: 685b ldr r3, [r3, #4] - 8013102: 2b00 cmp r3, #0 - 8013104: d004 beq.n 8013110 + 801310e: 687b ldr r3, [r7, #4] + 8013110: 685b ldr r3, [r3, #4] + 8013112: 2b00 cmp r3, #0 + 8013114: d004 beq.n 8013120 pbuf_free(seg->p); - 8013106: 687b ldr r3, [r7, #4] - 8013108: 685b ldr r3, [r3, #4] - 801310a: 4618 mov r0, r3 - 801310c: f7fe fd6c bl 8011be8 + 8013116: 687b ldr r3, [r7, #4] + 8013118: 685b ldr r3, [r3, #4] + 801311a: 4618 mov r0, r3 + 801311c: f7fe fd6c bl 8011bf8 #if TCP_DEBUG seg->p = NULL; #endif /* TCP_DEBUG */ } memp_free(MEMP_TCP_SEG, seg); - 8013110: 6879 ldr r1, [r7, #4] - 8013112: 2003 movs r0, #3 - 8013114: f7fd febc bl 8010e90 + 8013120: 6879 ldr r1, [r7, #4] + 8013122: 2003 movs r0, #3 + 8013124: f7fd febc bl 8010ea0 } } - 8013118: bf00 nop - 801311a: 3708 adds r7, #8 - 801311c: 46bd mov sp, r7 - 801311e: bd80 pop {r7, pc} + 8013128: bf00 nop + 801312a: 3708 adds r7, #8 + 801312c: 46bd mov sp, r7 + 801312e: bd80 pop {r7, pc} -08013120 : +08013130 : * @param seg the old tcp_seg * @return a copy of seg */ struct tcp_seg * tcp_seg_copy(struct tcp_seg *seg) { - 8013120: b580 push {r7, lr} - 8013122: b084 sub sp, #16 - 8013124: af00 add r7, sp, #0 - 8013126: 6078 str r0, [r7, #4] + 8013130: b580 push {r7, lr} + 8013132: b084 sub sp, #16 + 8013134: af00 add r7, sp, #0 + 8013136: 6078 str r0, [r7, #4] struct tcp_seg *cseg; LWIP_ASSERT("tcp_seg_copy: invalid seg", seg != NULL); - 8013128: 687b ldr r3, [r7, #4] - 801312a: 2b00 cmp r3, #0 - 801312c: d106 bne.n 801313c - 801312e: 4b0f ldr r3, [pc, #60] ; (801316c ) - 8013130: f240 6282 movw r2, #1666 ; 0x682 - 8013134: 490e ldr r1, [pc, #56] ; (8013170 ) - 8013136: 480f ldr r0, [pc, #60] ; (8013174 ) - 8013138: f009 fa86 bl 801c648 + 8013138: 687b ldr r3, [r7, #4] + 801313a: 2b00 cmp r3, #0 + 801313c: d106 bne.n 801314c + 801313e: 4b0f ldr r3, [pc, #60] ; (801317c ) + 8013140: f240 6282 movw r2, #1666 ; 0x682 + 8013144: 490e ldr r1, [pc, #56] ; (8013180 ) + 8013146: 480f ldr r0, [pc, #60] ; (8013184 ) + 8013148: f009 fa86 bl 801c658 cseg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG); - 801313c: 2003 movs r0, #3 - 801313e: f7fd fe55 bl 8010dec - 8013142: 60f8 str r0, [r7, #12] + 801314c: 2003 movs r0, #3 + 801314e: f7fd fe55 bl 8010dfc + 8013152: 60f8 str r0, [r7, #12] if (cseg == NULL) { - 8013144: 68fb ldr r3, [r7, #12] - 8013146: 2b00 cmp r3, #0 - 8013148: d101 bne.n 801314e + 8013154: 68fb ldr r3, [r7, #12] + 8013156: 2b00 cmp r3, #0 + 8013158: d101 bne.n 801315e return NULL; - 801314a: 2300 movs r3, #0 - 801314c: e00a b.n 8013164 + 801315a: 2300 movs r3, #0 + 801315c: e00a b.n 8013174 } SMEMCPY((u8_t *)cseg, (const u8_t *)seg, sizeof(struct tcp_seg)); - 801314e: 2210 movs r2, #16 - 8013150: 6879 ldr r1, [r7, #4] - 8013152: 68f8 ldr r0, [r7, #12] - 8013154: f009 fa4b bl 801c5ee + 801315e: 2210 movs r2, #16 + 8013160: 6879 ldr r1, [r7, #4] + 8013162: 68f8 ldr r0, [r7, #12] + 8013164: f009 fa4b bl 801c5fe pbuf_ref(cseg->p); - 8013158: 68fb ldr r3, [r7, #12] - 801315a: 685b ldr r3, [r3, #4] - 801315c: 4618 mov r0, r3 - 801315e: f7fe fde9 bl 8011d34 + 8013168: 68fb ldr r3, [r7, #12] + 801316a: 685b ldr r3, [r3, #4] + 801316c: 4618 mov r0, r3 + 801316e: f7fe fde9 bl 8011d44 return cseg; - 8013162: 68fb ldr r3, [r7, #12] + 8013172: 68fb ldr r3, [r7, #12] } - 8013164: 4618 mov r0, r3 - 8013166: 3710 adds r7, #16 - 8013168: 46bd mov sp, r7 - 801316a: bd80 pop {r7, pc} - 801316c: 0801e4d8 .word 0x0801e4d8 - 8013170: 0801ea2c .word 0x0801ea2c - 8013174: 0801e51c .word 0x0801e51c + 8013174: 4618 mov r0, r3 + 8013176: 3710 adds r7, #16 + 8013178: 46bd mov sp, r7 + 801317a: bd80 pop {r7, pc} + 801317c: 0801e4e8 .word 0x0801e4e8 + 8013180: 0801ea3c .word 0x0801ea3c + 8013184: 0801e52c .word 0x0801e52c -08013178 : +08013188 : * Default receive callback that is called if the user didn't register * a recv callback for the pcb. */ err_t tcp_recv_null(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err) { - 8013178: b580 push {r7, lr} - 801317a: b084 sub sp, #16 - 801317c: af00 add r7, sp, #0 - 801317e: 60f8 str r0, [r7, #12] - 8013180: 60b9 str r1, [r7, #8] - 8013182: 607a str r2, [r7, #4] - 8013184: 70fb strb r3, [r7, #3] + 8013188: b580 push {r7, lr} + 801318a: b084 sub sp, #16 + 801318c: af00 add r7, sp, #0 + 801318e: 60f8 str r0, [r7, #12] + 8013190: 60b9 str r1, [r7, #8] + 8013192: 607a str r2, [r7, #4] + 8013194: 70fb strb r3, [r7, #3] LWIP_UNUSED_ARG(arg); LWIP_ERROR("tcp_recv_null: invalid pcb", pcb != NULL, return ERR_ARG); - 8013186: 68bb ldr r3, [r7, #8] - 8013188: 2b00 cmp r3, #0 - 801318a: d109 bne.n 80131a0 - 801318c: 4b12 ldr r3, [pc, #72] ; (80131d8 ) - 801318e: f44f 62d3 mov.w r2, #1688 ; 0x698 - 8013192: 4912 ldr r1, [pc, #72] ; (80131dc ) - 8013194: 4812 ldr r0, [pc, #72] ; (80131e0 ) - 8013196: f009 fa57 bl 801c648 - 801319a: f06f 030f mvn.w r3, #15 - 801319e: e016 b.n 80131ce + 8013196: 68bb ldr r3, [r7, #8] + 8013198: 2b00 cmp r3, #0 + 801319a: d109 bne.n 80131b0 + 801319c: 4b12 ldr r3, [pc, #72] ; (80131e8 ) + 801319e: f44f 62d3 mov.w r2, #1688 ; 0x698 + 80131a2: 4912 ldr r1, [pc, #72] ; (80131ec ) + 80131a4: 4812 ldr r0, [pc, #72] ; (80131f0 ) + 80131a6: f009 fa57 bl 801c658 + 80131aa: f06f 030f mvn.w r3, #15 + 80131ae: e016 b.n 80131de if (p != NULL) { - 80131a0: 687b ldr r3, [r7, #4] - 80131a2: 2b00 cmp r3, #0 - 80131a4: d009 beq.n 80131ba + 80131b0: 687b ldr r3, [r7, #4] + 80131b2: 2b00 cmp r3, #0 + 80131b4: d009 beq.n 80131ca tcp_recved(pcb, p->tot_len); - 80131a6: 687b ldr r3, [r7, #4] - 80131a8: 891b ldrh r3, [r3, #8] - 80131aa: 4619 mov r1, r3 - 80131ac: 68b8 ldr r0, [r7, #8] - 80131ae: f7ff fb1d bl 80127ec + 80131b6: 687b ldr r3, [r7, #4] + 80131b8: 891b ldrh r3, [r3, #8] + 80131ba: 4619 mov r1, r3 + 80131bc: 68b8 ldr r0, [r7, #8] + 80131be: f7ff fb1d bl 80127fc pbuf_free(p); - 80131b2: 6878 ldr r0, [r7, #4] - 80131b4: f7fe fd18 bl 8011be8 - 80131b8: e008 b.n 80131cc + 80131c2: 6878 ldr r0, [r7, #4] + 80131c4: f7fe fd18 bl 8011bf8 + 80131c8: e008 b.n 80131dc } else if (err == ERR_OK) { - 80131ba: f997 3003 ldrsb.w r3, [r7, #3] - 80131be: 2b00 cmp r3, #0 - 80131c0: d104 bne.n 80131cc + 80131ca: f997 3003 ldrsb.w r3, [r7, #3] + 80131ce: 2b00 cmp r3, #0 + 80131d0: d104 bne.n 80131dc return tcp_close(pcb); - 80131c2: 68b8 ldr r0, [r7, #8] - 80131c4: f7ff f9c2 bl 801254c - 80131c8: 4603 mov r3, r0 - 80131ca: e000 b.n 80131ce + 80131d2: 68b8 ldr r0, [r7, #8] + 80131d4: f7ff f9c2 bl 801255c + 80131d8: 4603 mov r3, r0 + 80131da: e000 b.n 80131de } return ERR_OK; - 80131cc: 2300 movs r3, #0 -} - 80131ce: 4618 mov r0, r3 - 80131d0: 3710 adds r7, #16 - 80131d2: 46bd mov sp, r7 - 80131d4: bd80 pop {r7, pc} - 80131d6: bf00 nop - 80131d8: 0801e4d8 .word 0x0801e4d8 - 80131dc: 0801ea48 .word 0x0801ea48 - 80131e0: 0801e51c .word 0x0801e51c - -080131e4 : + 80131dc: 2300 movs r3, #0 +} + 80131de: 4618 mov r0, r3 + 80131e0: 3710 adds r7, #16 + 80131e2: 46bd mov sp, r7 + 80131e4: bd80 pop {r7, pc} + 80131e6: bf00 nop + 80131e8: 0801e4e8 .word 0x0801e4e8 + 80131ec: 0801ea58 .word 0x0801ea58 + 80131f0: 0801e52c .word 0x0801e52c + +080131f4 : * * @param prio minimum priority */ static void tcp_kill_prio(u8_t prio) { - 80131e4: b580 push {r7, lr} - 80131e6: b086 sub sp, #24 - 80131e8: af00 add r7, sp, #0 - 80131ea: 4603 mov r3, r0 - 80131ec: 71fb strb r3, [r7, #7] + 80131f4: b580 push {r7, lr} + 80131f6: b086 sub sp, #24 + 80131f8: af00 add r7, sp, #0 + 80131fa: 4603 mov r3, r0 + 80131fc: 71fb strb r3, [r7, #7] struct tcp_pcb *pcb, *inactive; u32_t inactivity; u8_t mprio; mprio = LWIP_MIN(TCP_PRIO_MAX, prio); - 80131ee: f997 3007 ldrsb.w r3, [r7, #7] - 80131f2: 2b00 cmp r3, #0 - 80131f4: db01 blt.n 80131fa - 80131f6: 79fb ldrb r3, [r7, #7] - 80131f8: e000 b.n 80131fc - 80131fa: 237f movs r3, #127 ; 0x7f - 80131fc: 72fb strb r3, [r7, #11] + 80131fe: f997 3007 ldrsb.w r3, [r7, #7] + 8013202: 2b00 cmp r3, #0 + 8013204: db01 blt.n 801320a + 8013206: 79fb ldrb r3, [r7, #7] + 8013208: e000 b.n 801320c + 801320a: 237f movs r3, #127 ; 0x7f + 801320c: 72fb strb r3, [r7, #11] /* We want to kill connections with a lower prio, so bail out if * supplied prio is 0 - there can never be a lower prio */ if (mprio == 0) { - 80131fe: 7afb ldrb r3, [r7, #11] - 8013200: 2b00 cmp r3, #0 - 8013202: d034 beq.n 801326e + 801320e: 7afb ldrb r3, [r7, #11] + 8013210: 2b00 cmp r3, #0 + 8013212: d034 beq.n 801327e /* We only want kill connections with a lower prio, so decrement prio by one * and start searching for oldest connection with same or lower priority than mprio. * We want to find the connections with the lowest possible prio, and among * these the one with the longest inactivity time. */ mprio--; - 8013204: 7afb ldrb r3, [r7, #11] - 8013206: 3b01 subs r3, #1 - 8013208: 72fb strb r3, [r7, #11] + 8013214: 7afb ldrb r3, [r7, #11] + 8013216: 3b01 subs r3, #1 + 8013218: 72fb strb r3, [r7, #11] inactivity = 0; - 801320a: 2300 movs r3, #0 - 801320c: 60fb str r3, [r7, #12] + 801321a: 2300 movs r3, #0 + 801321c: 60fb str r3, [r7, #12] inactive = NULL; - 801320e: 2300 movs r3, #0 - 8013210: 613b str r3, [r7, #16] + 801321e: 2300 movs r3, #0 + 8013220: 613b str r3, [r7, #16] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8013212: 4b19 ldr r3, [pc, #100] ; (8013278 ) - 8013214: 681b ldr r3, [r3, #0] - 8013216: 617b str r3, [r7, #20] - 8013218: e01f b.n 801325a + 8013222: 4b19 ldr r3, [pc, #100] ; (8013288 ) + 8013224: 681b ldr r3, [r3, #0] + 8013226: 617b str r3, [r7, #20] + 8013228: e01f b.n 801326a /* lower prio is always a kill candidate */ if ((pcb->prio < mprio) || - 801321a: 697b ldr r3, [r7, #20] - 801321c: 7d5b ldrb r3, [r3, #21] - 801321e: 7afa ldrb r2, [r7, #11] - 8013220: 429a cmp r2, r3 - 8013222: d80c bhi.n 801323e + 801322a: 697b ldr r3, [r7, #20] + 801322c: 7d5b ldrb r3, [r3, #21] + 801322e: 7afa ldrb r2, [r7, #11] + 8013230: 429a cmp r2, r3 + 8013232: d80c bhi.n 801324e /* longer inactivity is also a kill candidate */ ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) { - 8013224: 697b ldr r3, [r7, #20] - 8013226: 7d5b ldrb r3, [r3, #21] + 8013234: 697b ldr r3, [r7, #20] + 8013236: 7d5b ldrb r3, [r3, #21] if ((pcb->prio < mprio) || - 8013228: 7afa ldrb r2, [r7, #11] - 801322a: 429a cmp r2, r3 - 801322c: d112 bne.n 8013254 - ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) { - 801322e: 4b13 ldr r3, [pc, #76] ; (801327c ) - 8013230: 681a ldr r2, [r3, #0] - 8013232: 697b ldr r3, [r7, #20] - 8013234: 6a1b ldr r3, [r3, #32] - 8013236: 1ad3 subs r3, r2, r3 - 8013238: 68fa ldr r2, [r7, #12] + 8013238: 7afa ldrb r2, [r7, #11] 801323a: 429a cmp r2, r3 - 801323c: d80a bhi.n 8013254 - inactivity = tcp_ticks - pcb->tmr; - 801323e: 4b0f ldr r3, [pc, #60] ; (801327c ) + 801323c: d112 bne.n 8013264 + ((pcb->prio == mprio) && ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity))) { + 801323e: 4b13 ldr r3, [pc, #76] ; (801328c ) 8013240: 681a ldr r2, [r3, #0] 8013242: 697b ldr r3, [r7, #20] 8013244: 6a1b ldr r3, [r3, #32] 8013246: 1ad3 subs r3, r2, r3 - 8013248: 60fb str r3, [r7, #12] + 8013248: 68fa ldr r2, [r7, #12] + 801324a: 429a cmp r2, r3 + 801324c: d80a bhi.n 8013264 + inactivity = tcp_ticks - pcb->tmr; + 801324e: 4b0f ldr r3, [pc, #60] ; (801328c ) + 8013250: 681a ldr r2, [r3, #0] + 8013252: 697b ldr r3, [r7, #20] + 8013254: 6a1b ldr r3, [r3, #32] + 8013256: 1ad3 subs r3, r2, r3 + 8013258: 60fb str r3, [r7, #12] inactive = pcb; - 801324a: 697b ldr r3, [r7, #20] - 801324c: 613b str r3, [r7, #16] + 801325a: 697b ldr r3, [r7, #20] + 801325c: 613b str r3, [r7, #16] mprio = pcb->prio; - 801324e: 697b ldr r3, [r7, #20] - 8013250: 7d5b ldrb r3, [r3, #21] - 8013252: 72fb strb r3, [r7, #11] + 801325e: 697b ldr r3, [r7, #20] + 8013260: 7d5b ldrb r3, [r3, #21] + 8013262: 72fb strb r3, [r7, #11] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8013254: 697b ldr r3, [r7, #20] - 8013256: 68db ldr r3, [r3, #12] - 8013258: 617b str r3, [r7, #20] - 801325a: 697b ldr r3, [r7, #20] - 801325c: 2b00 cmp r3, #0 - 801325e: d1dc bne.n 801321a + 8013264: 697b ldr r3, [r7, #20] + 8013266: 68db ldr r3, [r3, #12] + 8013268: 617b str r3, [r7, #20] + 801326a: 697b ldr r3, [r7, #20] + 801326c: 2b00 cmp r3, #0 + 801326e: d1dc bne.n 801322a } } if (inactive != NULL) { - 8013260: 693b ldr r3, [r7, #16] - 8013262: 2b00 cmp r3, #0 - 8013264: d004 beq.n 8013270 + 8013270: 693b ldr r3, [r7, #16] + 8013272: 2b00 cmp r3, #0 + 8013274: d004 beq.n 8013280 LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_prio: killing oldest PCB %p (%"S32_F")\n", (void *)inactive, inactivity)); tcp_abort(inactive); - 8013266: 6938 ldr r0, [r7, #16] - 8013268: f7ff fa5a bl 8012720 - 801326c: e000 b.n 8013270 + 8013276: 6938 ldr r0, [r7, #16] + 8013278: f7ff fa5a bl 8012730 + 801327c: e000 b.n 8013280 return; - 801326e: bf00 nop + 801327e: bf00 nop } } - 8013270: 3718 adds r7, #24 - 8013272: 46bd mov sp, r7 - 8013274: bd80 pop {r7, pc} - 8013276: bf00 nop - 8013278: 2000f7f0 .word 0x2000f7f0 - 801327c: 2000f7f4 .word 0x2000f7f4 + 8013280: 3718 adds r7, #24 + 8013282: 46bd mov sp, r7 + 8013284: bd80 pop {r7, pc} + 8013286: bf00 nop + 8013288: 2000f7f0 .word 0x2000f7f0 + 801328c: 2000f7f4 .word 0x2000f7f4 -08013280 : +08013290 : * Kills the oldest connection that is in specific state. * Called from tcp_alloc() for LAST_ACK and CLOSING if no more connections are available. */ static void tcp_kill_state(enum tcp_state state) { - 8013280: b580 push {r7, lr} - 8013282: b086 sub sp, #24 - 8013284: af00 add r7, sp, #0 - 8013286: 4603 mov r3, r0 - 8013288: 71fb strb r3, [r7, #7] + 8013290: b580 push {r7, lr} + 8013292: b086 sub sp, #24 + 8013294: af00 add r7, sp, #0 + 8013296: 4603 mov r3, r0 + 8013298: 71fb strb r3, [r7, #7] struct tcp_pcb *pcb, *inactive; u32_t inactivity; LWIP_ASSERT("invalid state", (state == CLOSING) || (state == LAST_ACK)); - 801328a: 79fb ldrb r3, [r7, #7] - 801328c: 2b08 cmp r3, #8 - 801328e: d009 beq.n 80132a4 - 8013290: 79fb ldrb r3, [r7, #7] - 8013292: 2b09 cmp r3, #9 - 8013294: d006 beq.n 80132a4 - 8013296: 4b1a ldr r3, [pc, #104] ; (8013300 ) - 8013298: f240 62dd movw r2, #1757 ; 0x6dd - 801329c: 4919 ldr r1, [pc, #100] ; (8013304 ) - 801329e: 481a ldr r0, [pc, #104] ; (8013308 ) - 80132a0: f009 f9d2 bl 801c648 + 801329a: 79fb ldrb r3, [r7, #7] + 801329c: 2b08 cmp r3, #8 + 801329e: d009 beq.n 80132b4 + 80132a0: 79fb ldrb r3, [r7, #7] + 80132a2: 2b09 cmp r3, #9 + 80132a4: d006 beq.n 80132b4 + 80132a6: 4b1a ldr r3, [pc, #104] ; (8013310 ) + 80132a8: f240 62dd movw r2, #1757 ; 0x6dd + 80132ac: 4919 ldr r1, [pc, #100] ; (8013314 ) + 80132ae: 481a ldr r0, [pc, #104] ; (8013318 ) + 80132b0: f009 f9d2 bl 801c658 inactivity = 0; - 80132a4: 2300 movs r3, #0 - 80132a6: 60fb str r3, [r7, #12] + 80132b4: 2300 movs r3, #0 + 80132b6: 60fb str r3, [r7, #12] inactive = NULL; - 80132a8: 2300 movs r3, #0 - 80132aa: 613b str r3, [r7, #16] + 80132b8: 2300 movs r3, #0 + 80132ba: 613b str r3, [r7, #16] /* Go through the list of active pcbs and get the oldest pcb that is in state CLOSING/LAST_ACK. */ for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 80132ac: 4b17 ldr r3, [pc, #92] ; (801330c ) - 80132ae: 681b ldr r3, [r3, #0] - 80132b0: 617b str r3, [r7, #20] - 80132b2: e017 b.n 80132e4 + 80132bc: 4b17 ldr r3, [pc, #92] ; (801331c ) + 80132be: 681b ldr r3, [r3, #0] + 80132c0: 617b str r3, [r7, #20] + 80132c2: e017 b.n 80132f4 if (pcb->state == state) { - 80132b4: 697b ldr r3, [r7, #20] - 80132b6: 7d1b ldrb r3, [r3, #20] - 80132b8: 79fa ldrb r2, [r7, #7] - 80132ba: 429a cmp r2, r3 - 80132bc: d10f bne.n 80132de - if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { - 80132be: 4b14 ldr r3, [pc, #80] ; (8013310 ) - 80132c0: 681a ldr r2, [r3, #0] - 80132c2: 697b ldr r3, [r7, #20] - 80132c4: 6a1b ldr r3, [r3, #32] - 80132c6: 1ad3 subs r3, r2, r3 - 80132c8: 68fa ldr r2, [r7, #12] + 80132c4: 697b ldr r3, [r7, #20] + 80132c6: 7d1b ldrb r3, [r3, #20] + 80132c8: 79fa ldrb r2, [r7, #7] 80132ca: 429a cmp r2, r3 - 80132cc: d807 bhi.n 80132de - inactivity = tcp_ticks - pcb->tmr; - 80132ce: 4b10 ldr r3, [pc, #64] ; (8013310 ) + 80132cc: d10f bne.n 80132ee + if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { + 80132ce: 4b14 ldr r3, [pc, #80] ; (8013320 ) 80132d0: 681a ldr r2, [r3, #0] 80132d2: 697b ldr r3, [r7, #20] 80132d4: 6a1b ldr r3, [r3, #32] 80132d6: 1ad3 subs r3, r2, r3 - 80132d8: 60fb str r3, [r7, #12] + 80132d8: 68fa ldr r2, [r7, #12] + 80132da: 429a cmp r2, r3 + 80132dc: d807 bhi.n 80132ee + inactivity = tcp_ticks - pcb->tmr; + 80132de: 4b10 ldr r3, [pc, #64] ; (8013320 ) + 80132e0: 681a ldr r2, [r3, #0] + 80132e2: 697b ldr r3, [r7, #20] + 80132e4: 6a1b ldr r3, [r3, #32] + 80132e6: 1ad3 subs r3, r2, r3 + 80132e8: 60fb str r3, [r7, #12] inactive = pcb; - 80132da: 697b ldr r3, [r7, #20] - 80132dc: 613b str r3, [r7, #16] + 80132ea: 697b ldr r3, [r7, #20] + 80132ec: 613b str r3, [r7, #16] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 80132de: 697b ldr r3, [r7, #20] - 80132e0: 68db ldr r3, [r3, #12] - 80132e2: 617b str r3, [r7, #20] - 80132e4: 697b ldr r3, [r7, #20] - 80132e6: 2b00 cmp r3, #0 - 80132e8: d1e4 bne.n 80132b4 + 80132ee: 697b ldr r3, [r7, #20] + 80132f0: 68db ldr r3, [r3, #12] + 80132f2: 617b str r3, [r7, #20] + 80132f4: 697b ldr r3, [r7, #20] + 80132f6: 2b00 cmp r3, #0 + 80132f8: d1e4 bne.n 80132c4 } } } if (inactive != NULL) { - 80132ea: 693b ldr r3, [r7, #16] - 80132ec: 2b00 cmp r3, #0 - 80132ee: d003 beq.n 80132f8 + 80132fa: 693b ldr r3, [r7, #16] + 80132fc: 2b00 cmp r3, #0 + 80132fe: d003 beq.n 8013308 LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_closing: killing oldest %s PCB %p (%"S32_F")\n", tcp_state_str[state], (void *)inactive, inactivity)); /* Don't send a RST, since no data is lost. */ tcp_abandon(inactive, 0); - 80132f0: 2100 movs r1, #0 - 80132f2: 6938 ldr r0, [r7, #16] - 80132f4: f7ff f956 bl 80125a4 - } -} - 80132f8: bf00 nop - 80132fa: 3718 adds r7, #24 - 80132fc: 46bd mov sp, r7 - 80132fe: bd80 pop {r7, pc} - 8013300: 0801e4d8 .word 0x0801e4d8 - 8013304: 0801ea64 .word 0x0801ea64 - 8013308: 0801e51c .word 0x0801e51c - 801330c: 2000f7f0 .word 0x2000f7f0 - 8013310: 2000f7f4 .word 0x2000f7f4 - -08013314 : + 8013300: 2100 movs r1, #0 + 8013302: 6938 ldr r0, [r7, #16] + 8013304: f7ff f956 bl 80125b4 + } +} + 8013308: bf00 nop + 801330a: 3718 adds r7, #24 + 801330c: 46bd mov sp, r7 + 801330e: bd80 pop {r7, pc} + 8013310: 0801e4e8 .word 0x0801e4e8 + 8013314: 0801ea74 .word 0x0801ea74 + 8013318: 0801e52c .word 0x0801e52c + 801331c: 2000f7f0 .word 0x2000f7f0 + 8013320: 2000f7f4 .word 0x2000f7f4 + +08013324 : * Kills the oldest connection that is in TIME_WAIT state. * Called from tcp_alloc() if no more connections are available. */ static void tcp_kill_timewait(void) { - 8013314: b580 push {r7, lr} - 8013316: b084 sub sp, #16 - 8013318: af00 add r7, sp, #0 + 8013324: b580 push {r7, lr} + 8013326: b084 sub sp, #16 + 8013328: af00 add r7, sp, #0 struct tcp_pcb *pcb, *inactive; u32_t inactivity; inactivity = 0; - 801331a: 2300 movs r3, #0 - 801331c: 607b str r3, [r7, #4] + 801332a: 2300 movs r3, #0 + 801332c: 607b str r3, [r7, #4] inactive = NULL; - 801331e: 2300 movs r3, #0 - 8013320: 60bb str r3, [r7, #8] + 801332e: 2300 movs r3, #0 + 8013330: 60bb str r3, [r7, #8] /* Go through the list of TIME_WAIT pcbs and get the oldest pcb. */ for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 8013322: 4b12 ldr r3, [pc, #72] ; (801336c ) - 8013324: 681b ldr r3, [r3, #0] - 8013326: 60fb str r3, [r7, #12] - 8013328: e012 b.n 8013350 + 8013332: 4b12 ldr r3, [pc, #72] ; (801337c ) + 8013334: 681b ldr r3, [r3, #0] + 8013336: 60fb str r3, [r7, #12] + 8013338: e012 b.n 8013360 if ((u32_t)(tcp_ticks - pcb->tmr) >= inactivity) { - 801332a: 4b11 ldr r3, [pc, #68] ; (8013370 ) - 801332c: 681a ldr r2, [r3, #0] - 801332e: 68fb ldr r3, [r7, #12] - 8013330: 6a1b ldr r3, [r3, #32] - 8013332: 1ad3 subs r3, r2, r3 - 8013334: 687a ldr r2, [r7, #4] - 8013336: 429a cmp r2, r3 - 8013338: d807 bhi.n 801334a - inactivity = tcp_ticks - pcb->tmr; - 801333a: 4b0d ldr r3, [pc, #52] ; (8013370 ) + 801333a: 4b11 ldr r3, [pc, #68] ; (8013380 ) 801333c: 681a ldr r2, [r3, #0] 801333e: 68fb ldr r3, [r7, #12] 8013340: 6a1b ldr r3, [r3, #32] 8013342: 1ad3 subs r3, r2, r3 - 8013344: 607b str r3, [r7, #4] + 8013344: 687a ldr r2, [r7, #4] + 8013346: 429a cmp r2, r3 + 8013348: d807 bhi.n 801335a + inactivity = tcp_ticks - pcb->tmr; + 801334a: 4b0d ldr r3, [pc, #52] ; (8013380 ) + 801334c: 681a ldr r2, [r3, #0] + 801334e: 68fb ldr r3, [r7, #12] + 8013350: 6a1b ldr r3, [r3, #32] + 8013352: 1ad3 subs r3, r2, r3 + 8013354: 607b str r3, [r7, #4] inactive = pcb; - 8013346: 68fb ldr r3, [r7, #12] - 8013348: 60bb str r3, [r7, #8] + 8013356: 68fb ldr r3, [r7, #12] + 8013358: 60bb str r3, [r7, #8] for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 801334a: 68fb ldr r3, [r7, #12] - 801334c: 68db ldr r3, [r3, #12] - 801334e: 60fb str r3, [r7, #12] - 8013350: 68fb ldr r3, [r7, #12] - 8013352: 2b00 cmp r3, #0 - 8013354: d1e9 bne.n 801332a + 801335a: 68fb ldr r3, [r7, #12] + 801335c: 68db ldr r3, [r3, #12] + 801335e: 60fb str r3, [r7, #12] + 8013360: 68fb ldr r3, [r7, #12] + 8013362: 2b00 cmp r3, #0 + 8013364: d1e9 bne.n 801333a } } if (inactive != NULL) { - 8013356: 68bb ldr r3, [r7, #8] - 8013358: 2b00 cmp r3, #0 - 801335a: d002 beq.n 8013362 + 8013366: 68bb ldr r3, [r7, #8] + 8013368: 2b00 cmp r3, #0 + 801336a: d002 beq.n 8013372 LWIP_DEBUGF(TCP_DEBUG, ("tcp_kill_timewait: killing oldest TIME-WAIT PCB %p (%"S32_F")\n", (void *)inactive, inactivity)); tcp_abort(inactive); - 801335c: 68b8 ldr r0, [r7, #8] - 801335e: f7ff f9df bl 8012720 + 801336c: 68b8 ldr r0, [r7, #8] + 801336e: f7ff f9df bl 8012730 } } - 8013362: bf00 nop - 8013364: 3710 adds r7, #16 - 8013366: 46bd mov sp, r7 - 8013368: bd80 pop {r7, pc} - 801336a: bf00 nop - 801336c: 2000f800 .word 0x2000f800 - 8013370: 2000f7f4 .word 0x2000f7f4 + 8013372: bf00 nop + 8013374: 3710 adds r7, #16 + 8013376: 46bd mov sp, r7 + 8013378: bd80 pop {r7, pc} + 801337a: bf00 nop + 801337c: 2000f800 .word 0x2000f800 + 8013380: 2000f7f4 .word 0x2000f7f4 -08013374 : +08013384 : * now send the FIN (which failed before), the pcb might be in a state that is * OK for us to now free it. */ static void tcp_handle_closepend(void) { - 8013374: b580 push {r7, lr} - 8013376: b082 sub sp, #8 - 8013378: af00 add r7, sp, #0 + 8013384: b580 push {r7, lr} + 8013386: b082 sub sp, #8 + 8013388: af00 add r7, sp, #0 struct tcp_pcb *pcb = tcp_active_pcbs; - 801337a: 4b10 ldr r3, [pc, #64] ; (80133bc ) - 801337c: 681b ldr r3, [r3, #0] - 801337e: 607b str r3, [r7, #4] + 801338a: 4b10 ldr r3, [pc, #64] ; (80133cc ) + 801338c: 681b ldr r3, [r3, #0] + 801338e: 607b str r3, [r7, #4] while (pcb != NULL) { - 8013380: e014 b.n 80133ac + 8013390: e014 b.n 80133bc struct tcp_pcb *next = pcb->next; - 8013382: 687b ldr r3, [r7, #4] - 8013384: 68db ldr r3, [r3, #12] - 8013386: 603b str r3, [r7, #0] + 8013392: 687b ldr r3, [r7, #4] + 8013394: 68db ldr r3, [r3, #12] + 8013396: 603b str r3, [r7, #0] /* send pending FIN */ if (pcb->flags & TF_CLOSEPEND) { - 8013388: 687b ldr r3, [r7, #4] - 801338a: 8b5b ldrh r3, [r3, #26] - 801338c: f003 0308 and.w r3, r3, #8 - 8013390: 2b00 cmp r3, #0 - 8013392: d009 beq.n 80133a8 + 8013398: 687b ldr r3, [r7, #4] + 801339a: 8b5b ldrh r3, [r3, #26] + 801339c: f003 0308 and.w r3, r3, #8 + 80133a0: 2b00 cmp r3, #0 + 80133a2: d009 beq.n 80133b8 LWIP_DEBUGF(TCP_DEBUG, ("tcp_handle_closepend: pending FIN\n")); tcp_clear_flags(pcb, TF_CLOSEPEND); - 8013394: 687b ldr r3, [r7, #4] - 8013396: 8b5b ldrh r3, [r3, #26] - 8013398: f023 0308 bic.w r3, r3, #8 - 801339c: b29a uxth r2, r3 - 801339e: 687b ldr r3, [r7, #4] - 80133a0: 835a strh r2, [r3, #26] + 80133a4: 687b ldr r3, [r7, #4] + 80133a6: 8b5b ldrh r3, [r3, #26] + 80133a8: f023 0308 bic.w r3, r3, #8 + 80133ac: b29a uxth r2, r3 + 80133ae: 687b ldr r3, [r7, #4] + 80133b0: 835a strh r2, [r3, #26] tcp_close_shutdown_fin(pcb); - 80133a2: 6878 ldr r0, [r7, #4] - 80133a4: f7ff f86c bl 8012480 + 80133b2: 6878 ldr r0, [r7, #4] + 80133b4: f7ff f86c bl 8012490 } pcb = next; - 80133a8: 683b ldr r3, [r7, #0] - 80133aa: 607b str r3, [r7, #4] + 80133b8: 683b ldr r3, [r7, #0] + 80133ba: 607b str r3, [r7, #4] while (pcb != NULL) { - 80133ac: 687b ldr r3, [r7, #4] - 80133ae: 2b00 cmp r3, #0 - 80133b0: d1e7 bne.n 8013382 + 80133bc: 687b ldr r3, [r7, #4] + 80133be: 2b00 cmp r3, #0 + 80133c0: d1e7 bne.n 8013392 } } - 80133b2: bf00 nop - 80133b4: 3708 adds r7, #8 - 80133b6: 46bd mov sp, r7 - 80133b8: bd80 pop {r7, pc} - 80133ba: bf00 nop - 80133bc: 2000f7f0 .word 0x2000f7f0 + 80133c2: bf00 nop + 80133c4: 3708 adds r7, #8 + 80133c6: 46bd mov sp, r7 + 80133c8: bd80 pop {r7, pc} + 80133ca: bf00 nop + 80133cc: 2000f7f0 .word 0x2000f7f0 -080133c0 : +080133d0 : * @param prio priority for the new pcb * @return a new tcp_pcb that initially is in state CLOSED */ struct tcp_pcb * tcp_alloc(u8_t prio) { - 80133c0: b580 push {r7, lr} - 80133c2: b084 sub sp, #16 - 80133c4: af00 add r7, sp, #0 - 80133c6: 4603 mov r3, r0 - 80133c8: 71fb strb r3, [r7, #7] + 80133d0: b580 push {r7, lr} + 80133d2: b084 sub sp, #16 + 80133d4: af00 add r7, sp, #0 + 80133d6: 4603 mov r3, r0 + 80133d8: 71fb strb r3, [r7, #7] struct tcp_pcb *pcb; LWIP_ASSERT_CORE_LOCKED(); pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80133ca: 2001 movs r0, #1 - 80133cc: f7fd fd0e bl 8010dec - 80133d0: 60f8 str r0, [r7, #12] + 80133da: 2001 movs r0, #1 + 80133dc: f7fd fd0e bl 8010dfc + 80133e0: 60f8 str r0, [r7, #12] if (pcb == NULL) { - 80133d2: 68fb ldr r3, [r7, #12] - 80133d4: 2b00 cmp r3, #0 - 80133d6: d126 bne.n 8013426 + 80133e2: 68fb ldr r3, [r7, #12] + 80133e4: 2b00 cmp r3, #0 + 80133e6: d126 bne.n 8013436 /* Try to send FIN for all pcbs stuck in TF_CLOSEPEND first */ tcp_handle_closepend(); - 80133d8: f7ff ffcc bl 8013374 + 80133e8: f7ff ffcc bl 8013384 /* Try killing oldest connection in TIME-WAIT. */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest TIME-WAIT connection\n")); tcp_kill_timewait(); - 80133dc: f7ff ff9a bl 8013314 + 80133ec: f7ff ff9a bl 8013324 /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80133e0: 2001 movs r0, #1 - 80133e2: f7fd fd03 bl 8010dec - 80133e6: 60f8 str r0, [r7, #12] + 80133f0: 2001 movs r0, #1 + 80133f2: f7fd fd03 bl 8010dfc + 80133f6: 60f8 str r0, [r7, #12] if (pcb == NULL) { - 80133e8: 68fb ldr r3, [r7, #12] - 80133ea: 2b00 cmp r3, #0 - 80133ec: d11b bne.n 8013426 + 80133f8: 68fb ldr r3, [r7, #12] + 80133fa: 2b00 cmp r3, #0 + 80133fc: d11b bne.n 8013436 /* Try killing oldest connection in LAST-ACK (these wouldn't go to TIME-WAIT). */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest LAST-ACK connection\n")); tcp_kill_state(LAST_ACK); - 80133ee: 2009 movs r0, #9 - 80133f0: f7ff ff46 bl 8013280 + 80133fe: 2009 movs r0, #9 + 8013400: f7ff ff46 bl 8013290 /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 80133f4: 2001 movs r0, #1 - 80133f6: f7fd fcf9 bl 8010dec - 80133fa: 60f8 str r0, [r7, #12] + 8013404: 2001 movs r0, #1 + 8013406: f7fd fcf9 bl 8010dfc + 801340a: 60f8 str r0, [r7, #12] if (pcb == NULL) { - 80133fc: 68fb ldr r3, [r7, #12] - 80133fe: 2b00 cmp r3, #0 - 8013400: d111 bne.n 8013426 + 801340c: 68fb ldr r3, [r7, #12] + 801340e: 2b00 cmp r3, #0 + 8013410: d111 bne.n 8013436 /* Try killing oldest connection in CLOSING. */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing off oldest CLOSING connection\n")); tcp_kill_state(CLOSING); - 8013402: 2008 movs r0, #8 - 8013404: f7ff ff3c bl 8013280 + 8013412: 2008 movs r0, #8 + 8013414: f7ff ff3c bl 8013290 /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 8013408: 2001 movs r0, #1 - 801340a: f7fd fcef bl 8010dec - 801340e: 60f8 str r0, [r7, #12] + 8013418: 2001 movs r0, #1 + 801341a: f7fd fcef bl 8010dfc + 801341e: 60f8 str r0, [r7, #12] if (pcb == NULL) { - 8013410: 68fb ldr r3, [r7, #12] - 8013412: 2b00 cmp r3, #0 - 8013414: d107 bne.n 8013426 + 8013420: 68fb ldr r3, [r7, #12] + 8013422: 2b00 cmp r3, #0 + 8013424: d107 bne.n 8013436 /* Try killing oldest active connection with lower priority than the new one. */ LWIP_DEBUGF(TCP_DEBUG, ("tcp_alloc: killing oldest connection with prio lower than %d\n", prio)); tcp_kill_prio(prio); - 8013416: 79fb ldrb r3, [r7, #7] - 8013418: 4618 mov r0, r3 - 801341a: f7ff fee3 bl 80131e4 + 8013426: 79fb ldrb r3, [r7, #7] + 8013428: 4618 mov r0, r3 + 801342a: f7ff fee3 bl 80131f4 /* Try to allocate a tcp_pcb again. */ pcb = (struct tcp_pcb *)memp_malloc(MEMP_TCP_PCB); - 801341e: 2001 movs r0, #1 - 8013420: f7fd fce4 bl 8010dec - 8013424: 60f8 str r0, [r7, #12] + 801342e: 2001 movs r0, #1 + 8013430: f7fd fce4 bl 8010dfc + 8013434: 60f8 str r0, [r7, #12] if (pcb != NULL) { /* adjust err stats: memp_malloc failed above */ MEMP_STATS_DEC(err, MEMP_TCP_PCB); } } if (pcb != NULL) { - 8013426: 68fb ldr r3, [r7, #12] - 8013428: 2b00 cmp r3, #0 - 801342a: d03f beq.n 80134ac + 8013436: 68fb ldr r3, [r7, #12] + 8013438: 2b00 cmp r3, #0 + 801343a: d03f beq.n 80134bc /* zero out the whole pcb, so there is no need to initialize members to zero */ memset(pcb, 0, sizeof(struct tcp_pcb)); - 801342c: 229c movs r2, #156 ; 0x9c - 801342e: 2100 movs r1, #0 - 8013430: 68f8 ldr r0, [r7, #12] - 8013432: f009 f900 bl 801c636 + 801343c: 229c movs r2, #156 ; 0x9c + 801343e: 2100 movs r1, #0 + 8013440: 68f8 ldr r0, [r7, #12] + 8013442: f009 f900 bl 801c646 pcb->prio = prio; - 8013436: 68fb ldr r3, [r7, #12] - 8013438: 79fa ldrb r2, [r7, #7] - 801343a: 755a strb r2, [r3, #21] + 8013446: 68fb ldr r3, [r7, #12] + 8013448: 79fa ldrb r2, [r7, #7] + 801344a: 755a strb r2, [r3, #21] pcb->snd_buf = TCP_SND_BUF; - 801343c: 68fb ldr r3, [r7, #12] - 801343e: f44f 6286 mov.w r2, #1072 ; 0x430 - 8013442: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 + 801344c: 68fb ldr r3, [r7, #12] + 801344e: f44f 6286 mov.w r2, #1072 ; 0x430 + 8013452: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 /* Start with a window that does not need scaling. When window scaling is enabled and used, the window is enlarged when both sides agree on scaling. */ pcb->rcv_wnd = pcb->rcv_ann_wnd = TCPWND_MIN16(TCP_WND); - 8013446: 68fb ldr r3, [r7, #12] - 8013448: f44f 6206 mov.w r2, #2144 ; 0x860 - 801344c: 855a strh r2, [r3, #42] ; 0x2a - 801344e: 68fb ldr r3, [r7, #12] - 8013450: 8d5a ldrh r2, [r3, #42] ; 0x2a - 8013452: 68fb ldr r3, [r7, #12] - 8013454: 851a strh r2, [r3, #40] ; 0x28 - pcb->ttl = TCP_TTL; 8013456: 68fb ldr r3, [r7, #12] - 8013458: 22ff movs r2, #255 ; 0xff - 801345a: 72da strb r2, [r3, #11] + 8013458: f44f 6206 mov.w r2, #2144 ; 0x860 + 801345c: 855a strh r2, [r3, #42] ; 0x2a + 801345e: 68fb ldr r3, [r7, #12] + 8013460: 8d5a ldrh r2, [r3, #42] ; 0x2a + 8013462: 68fb ldr r3, [r7, #12] + 8013464: 851a strh r2, [r3, #40] ; 0x28 + pcb->ttl = TCP_TTL; + 8013466: 68fb ldr r3, [r7, #12] + 8013468: 22ff movs r2, #255 ; 0xff + 801346a: 72da strb r2, [r3, #11] /* As initial send MSS, we use TCP_MSS but limit it to 536. The send MSS is updated when an MSS option is received. */ pcb->mss = INITIAL_MSS; - 801345c: 68fb ldr r3, [r7, #12] - 801345e: f44f 7206 mov.w r2, #536 ; 0x218 - 8013462: 865a strh r2, [r3, #50] ; 0x32 + 801346c: 68fb ldr r3, [r7, #12] + 801346e: f44f 7206 mov.w r2, #536 ; 0x218 + 8013472: 865a strh r2, [r3, #50] ; 0x32 pcb->rto = 3000 / TCP_SLOW_INTERVAL; - 8013464: 68fb ldr r3, [r7, #12] - 8013466: 2206 movs r2, #6 - 8013468: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 + 8013474: 68fb ldr r3, [r7, #12] + 8013476: 2206 movs r2, #6 + 8013478: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 pcb->sv = 3000 / TCP_SLOW_INTERVAL; - 801346c: 68fb ldr r3, [r7, #12] - 801346e: 2206 movs r2, #6 - 8013470: 87da strh r2, [r3, #62] ; 0x3e + 801347c: 68fb ldr r3, [r7, #12] + 801347e: 2206 movs r2, #6 + 8013480: 87da strh r2, [r3, #62] ; 0x3e pcb->rtime = -1; - 8013472: 68fb ldr r3, [r7, #12] - 8013474: f64f 72ff movw r2, #65535 ; 0xffff - 8013478: 861a strh r2, [r3, #48] ; 0x30 + 8013482: 68fb ldr r3, [r7, #12] + 8013484: f64f 72ff movw r2, #65535 ; 0xffff + 8013488: 861a strh r2, [r3, #48] ; 0x30 pcb->cwnd = 1; - 801347a: 68fb ldr r3, [r7, #12] - 801347c: 2201 movs r2, #1 - 801347e: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 801348a: 68fb ldr r3, [r7, #12] + 801348c: 2201 movs r2, #1 + 801348e: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 pcb->tmr = tcp_ticks; - 8013482: 4b0d ldr r3, [pc, #52] ; (80134b8 ) - 8013484: 681a ldr r2, [r3, #0] - 8013486: 68fb ldr r3, [r7, #12] - 8013488: 621a str r2, [r3, #32] + 8013492: 4b0d ldr r3, [pc, #52] ; (80134c8 ) + 8013494: 681a ldr r2, [r3, #0] + 8013496: 68fb ldr r3, [r7, #12] + 8013498: 621a str r2, [r3, #32] pcb->last_timer = tcp_timer_ctr; - 801348a: 4b0c ldr r3, [pc, #48] ; (80134bc ) - 801348c: 781a ldrb r2, [r3, #0] - 801348e: 68fb ldr r3, [r7, #12] - 8013490: 779a strb r2, [r3, #30] + 801349a: 4b0c ldr r3, [pc, #48] ; (80134cc ) + 801349c: 781a ldrb r2, [r3, #0] + 801349e: 68fb ldr r3, [r7, #12] + 80134a0: 779a strb r2, [r3, #30] of using the largest advertised receive window. We've seen complications with receiving TCPs that use window scaling and/or window auto-tuning where the initial advertised window is very small and then grows rapidly once the connection is established. To avoid these complications, we set ssthresh to the largest effective cwnd (amount of in-flight data) that the sender can have. */ pcb->ssthresh = TCP_SND_BUF; - 8013492: 68fb ldr r3, [r7, #12] - 8013494: f44f 6286 mov.w r2, #1072 ; 0x430 - 8013498: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 80134a2: 68fb ldr r3, [r7, #12] + 80134a4: f44f 6286 mov.w r2, #1072 ; 0x430 + 80134a8: f8a3 204a strh.w r2, [r3, #74] ; 0x4a #if LWIP_CALLBACK_API pcb->recv = tcp_recv_null; - 801349c: 68fb ldr r3, [r7, #12] - 801349e: 4a08 ldr r2, [pc, #32] ; (80134c0 ) - 80134a0: f8c3 2084 str.w r2, [r3, #132] ; 0x84 + 80134ac: 68fb ldr r3, [r7, #12] + 80134ae: 4a08 ldr r2, [pc, #32] ; (80134d0 ) + 80134b0: f8c3 2084 str.w r2, [r3, #132] ; 0x84 #endif /* LWIP_CALLBACK_API */ /* Init KEEPALIVE timer */ pcb->keep_idle = TCP_KEEPIDLE_DEFAULT; - 80134a4: 68fb ldr r3, [r7, #12] - 80134a6: 4a07 ldr r2, [pc, #28] ; (80134c4 ) - 80134a8: f8c3 2094 str.w r2, [r3, #148] ; 0x94 + 80134b4: 68fb ldr r3, [r7, #12] + 80134b6: 4a07 ldr r2, [pc, #28] ; (80134d4 ) + 80134b8: f8c3 2094 str.w r2, [r3, #148] ; 0x94 #if LWIP_TCP_KEEPALIVE pcb->keep_intvl = TCP_KEEPINTVL_DEFAULT; pcb->keep_cnt = TCP_KEEPCNT_DEFAULT; #endif /* LWIP_TCP_KEEPALIVE */ } return pcb; - 80134ac: 68fb ldr r3, [r7, #12] -} - 80134ae: 4618 mov r0, r3 - 80134b0: 3710 adds r7, #16 - 80134b2: 46bd mov sp, r7 - 80134b4: bd80 pop {r7, pc} - 80134b6: bf00 nop - 80134b8: 2000f7f4 .word 0x2000f7f4 - 80134bc: 2000871e .word 0x2000871e - 80134c0: 08013179 .word 0x08013179 - 80134c4: 006ddd00 .word 0x006ddd00 - -080134c8 : + 80134bc: 68fb ldr r3, [r7, #12] +} + 80134be: 4618 mov r0, r3 + 80134c0: 3710 adds r7, #16 + 80134c2: 46bd mov sp, r7 + 80134c4: bd80 pop {r7, pc} + 80134c6: bf00 nop + 80134c8: 2000f7f4 .word 0x2000f7f4 + 80134cc: 2000871e .word 0x2000871e + 80134d0: 08013189 .word 0x08013189 + 80134d4: 006ddd00 .word 0x006ddd00 + +080134d8 : * * @param pcb tcp_pcb to purge. The pcb itself is not deallocated! */ void tcp_pcb_purge(struct tcp_pcb *pcb) { - 80134c8: b580 push {r7, lr} - 80134ca: b082 sub sp, #8 - 80134cc: af00 add r7, sp, #0 - 80134ce: 6078 str r0, [r7, #4] + 80134d8: b580 push {r7, lr} + 80134da: b082 sub sp, #8 + 80134dc: af00 add r7, sp, #0 + 80134de: 6078 str r0, [r7, #4] LWIP_ERROR("tcp_pcb_purge: invalid pcb", pcb != NULL, return); - 80134d0: 687b ldr r3, [r7, #4] - 80134d2: 2b00 cmp r3, #0 - 80134d4: d107 bne.n 80134e6 - 80134d6: 4b21 ldr r3, [pc, #132] ; (801355c ) - 80134d8: f640 0251 movw r2, #2129 ; 0x851 - 80134dc: 4920 ldr r1, [pc, #128] ; (8013560 ) - 80134de: 4821 ldr r0, [pc, #132] ; (8013564 ) - 80134e0: f009 f8b2 bl 801c648 - 80134e4: e037 b.n 8013556 + 80134e0: 687b ldr r3, [r7, #4] + 80134e2: 2b00 cmp r3, #0 + 80134e4: d107 bne.n 80134f6 + 80134e6: 4b21 ldr r3, [pc, #132] ; (801356c ) + 80134e8: f640 0251 movw r2, #2129 ; 0x851 + 80134ec: 4920 ldr r1, [pc, #128] ; (8013570 ) + 80134ee: 4821 ldr r0, [pc, #132] ; (8013574 ) + 80134f0: f009 f8b2 bl 801c658 + 80134f4: e037 b.n 8013566 if (pcb->state != CLOSED && - 80134e6: 687b ldr r3, [r7, #4] - 80134e8: 7d1b ldrb r3, [r3, #20] - 80134ea: 2b00 cmp r3, #0 - 80134ec: d033 beq.n 8013556 + 80134f6: 687b ldr r3, [r7, #4] + 80134f8: 7d1b ldrb r3, [r3, #20] + 80134fa: 2b00 cmp r3, #0 + 80134fc: d033 beq.n 8013566 pcb->state != TIME_WAIT && - 80134ee: 687b ldr r3, [r7, #4] - 80134f0: 7d1b ldrb r3, [r3, #20] + 80134fe: 687b ldr r3, [r7, #4] + 8013500: 7d1b ldrb r3, [r3, #20] if (pcb->state != CLOSED && - 80134f2: 2b0a cmp r3, #10 - 80134f4: d02f beq.n 8013556 + 8013502: 2b0a cmp r3, #10 + 8013504: d02f beq.n 8013566 pcb->state != LISTEN) { - 80134f6: 687b ldr r3, [r7, #4] - 80134f8: 7d1b ldrb r3, [r3, #20] + 8013506: 687b ldr r3, [r7, #4] + 8013508: 7d1b ldrb r3, [r3, #20] pcb->state != TIME_WAIT && - 80134fa: 2b01 cmp r3, #1 - 80134fc: d02b beq.n 8013556 + 801350a: 2b01 cmp r3, #1 + 801350c: d02b beq.n 8013566 LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge\n")); tcp_backlog_accepted(pcb); if (pcb->refused_data != NULL) { - 80134fe: 687b ldr r3, [r7, #4] - 8013500: 6f9b ldr r3, [r3, #120] ; 0x78 - 8013502: 2b00 cmp r3, #0 - 8013504: d007 beq.n 8013516 + 801350e: 687b ldr r3, [r7, #4] + 8013510: 6f9b ldr r3, [r3, #120] ; 0x78 + 8013512: 2b00 cmp r3, #0 + 8013514: d007 beq.n 8013526 LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->refused_data\n")); pbuf_free(pcb->refused_data); - 8013506: 687b ldr r3, [r7, #4] - 8013508: 6f9b ldr r3, [r3, #120] ; 0x78 - 801350a: 4618 mov r0, r3 - 801350c: f7fe fb6c bl 8011be8 + 8013516: 687b ldr r3, [r7, #4] + 8013518: 6f9b ldr r3, [r3, #120] ; 0x78 + 801351a: 4618 mov r0, r3 + 801351c: f7fe fb6c bl 8011bf8 pcb->refused_data = NULL; - 8013510: 687b ldr r3, [r7, #4] - 8013512: 2200 movs r2, #0 - 8013514: 679a str r2, [r3, #120] ; 0x78 + 8013520: 687b ldr r3, [r7, #4] + 8013522: 2200 movs r2, #0 + 8013524: 679a str r2, [r3, #120] ; 0x78 } if (pcb->unacked != NULL) { LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->unacked\n")); } #if TCP_QUEUE_OOSEQ if (pcb->ooseq != NULL) { - 8013516: 687b ldr r3, [r7, #4] - 8013518: 6f5b ldr r3, [r3, #116] ; 0x74 - 801351a: 2b00 cmp r3, #0 - 801351c: d002 beq.n 8013524 + 8013526: 687b ldr r3, [r7, #4] + 8013528: 6f5b ldr r3, [r3, #116] ; 0x74 + 801352a: 2b00 cmp r3, #0 + 801352c: d002 beq.n 8013534 LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n")); tcp_free_ooseq(pcb); - 801351e: 6878 ldr r0, [r7, #4] - 8013520: f000 f986 bl 8013830 + 801352e: 6878 ldr r0, [r7, #4] + 8013530: f000 f986 bl 8013840 } #endif /* TCP_QUEUE_OOSEQ */ /* Stop the retransmission timer as it will expect data on unacked queue if it fires */ pcb->rtime = -1; - 8013524: 687b ldr r3, [r7, #4] - 8013526: f64f 72ff movw r2, #65535 ; 0xffff - 801352a: 861a strh r2, [r3, #48] ; 0x30 + 8013534: 687b ldr r3, [r7, #4] + 8013536: f64f 72ff movw r2, #65535 ; 0xffff + 801353a: 861a strh r2, [r3, #48] ; 0x30 tcp_segs_free(pcb->unsent); - 801352c: 687b ldr r3, [r7, #4] - 801352e: 6edb ldr r3, [r3, #108] ; 0x6c - 8013530: 4618 mov r0, r3 - 8013532: f7ff fdc9 bl 80130c8 + 801353c: 687b ldr r3, [r7, #4] + 801353e: 6edb ldr r3, [r3, #108] ; 0x6c + 8013540: 4618 mov r0, r3 + 8013542: f7ff fdc9 bl 80130d8 tcp_segs_free(pcb->unacked); - 8013536: 687b ldr r3, [r7, #4] - 8013538: 6f1b ldr r3, [r3, #112] ; 0x70 - 801353a: 4618 mov r0, r3 - 801353c: f7ff fdc4 bl 80130c8 - pcb->unacked = pcb->unsent = NULL; - 8013540: 687b ldr r3, [r7, #4] - 8013542: 2200 movs r2, #0 - 8013544: 66da str r2, [r3, #108] ; 0x6c 8013546: 687b ldr r3, [r7, #4] - 8013548: 6eda ldr r2, [r3, #108] ; 0x6c - 801354a: 687b ldr r3, [r7, #4] - 801354c: 671a str r2, [r3, #112] ; 0x70 + 8013548: 6f1b ldr r3, [r3, #112] ; 0x70 + 801354a: 4618 mov r0, r3 + 801354c: f7ff fdc4 bl 80130d8 + pcb->unacked = pcb->unsent = NULL; + 8013550: 687b ldr r3, [r7, #4] + 8013552: 2200 movs r2, #0 + 8013554: 66da str r2, [r3, #108] ; 0x6c + 8013556: 687b ldr r3, [r7, #4] + 8013558: 6eda ldr r2, [r3, #108] ; 0x6c + 801355a: 687b ldr r3, [r7, #4] + 801355c: 671a str r2, [r3, #112] ; 0x70 #if TCP_OVERSIZE pcb->unsent_oversize = 0; - 801354e: 687b ldr r3, [r7, #4] - 8013550: 2200 movs r2, #0 - 8013552: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 801355e: 687b ldr r3, [r7, #4] + 8013560: 2200 movs r2, #0 + 8013562: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 #endif /* TCP_OVERSIZE */ } } - 8013556: 3708 adds r7, #8 - 8013558: 46bd mov sp, r7 - 801355a: bd80 pop {r7, pc} - 801355c: 0801e4d8 .word 0x0801e4d8 - 8013560: 0801eb24 .word 0x0801eb24 - 8013564: 0801e51c .word 0x0801e51c + 8013566: 3708 adds r7, #8 + 8013568: 46bd mov sp, r7 + 801356a: bd80 pop {r7, pc} + 801356c: 0801e4e8 .word 0x0801e4e8 + 8013570: 0801eb34 .word 0x0801eb34 + 8013574: 0801e52c .word 0x0801e52c -08013568 : +08013578 : * @param pcblist PCB list to purge. * @param pcb tcp_pcb to purge. The pcb itself is NOT deallocated! */ void tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb) { - 8013568: b580 push {r7, lr} - 801356a: b084 sub sp, #16 - 801356c: af00 add r7, sp, #0 - 801356e: 6078 str r0, [r7, #4] - 8013570: 6039 str r1, [r7, #0] + 8013578: b580 push {r7, lr} + 801357a: b084 sub sp, #16 + 801357c: af00 add r7, sp, #0 + 801357e: 6078 str r0, [r7, #4] + 8013580: 6039 str r1, [r7, #0] LWIP_ASSERT("tcp_pcb_remove: invalid pcb", pcb != NULL); - 8013572: 683b ldr r3, [r7, #0] - 8013574: 2b00 cmp r3, #0 - 8013576: d106 bne.n 8013586 - 8013578: 4b3e ldr r3, [pc, #248] ; (8013674 ) - 801357a: f640 0283 movw r2, #2179 ; 0x883 - 801357e: 493e ldr r1, [pc, #248] ; (8013678 ) - 8013580: 483e ldr r0, [pc, #248] ; (801367c ) - 8013582: f009 f861 bl 801c648 + 8013582: 683b ldr r3, [r7, #0] + 8013584: 2b00 cmp r3, #0 + 8013586: d106 bne.n 8013596 + 8013588: 4b3e ldr r3, [pc, #248] ; (8013684 ) + 801358a: f640 0283 movw r2, #2179 ; 0x883 + 801358e: 493e ldr r1, [pc, #248] ; (8013688 ) + 8013590: 483e ldr r0, [pc, #248] ; (801368c ) + 8013592: f009 f861 bl 801c658 LWIP_ASSERT("tcp_pcb_remove: invalid pcblist", pcblist != NULL); - 8013586: 687b ldr r3, [r7, #4] - 8013588: 2b00 cmp r3, #0 - 801358a: d106 bne.n 801359a - 801358c: 4b39 ldr r3, [pc, #228] ; (8013674 ) - 801358e: f640 0284 movw r2, #2180 ; 0x884 - 8013592: 493b ldr r1, [pc, #236] ; (8013680 ) - 8013594: 4839 ldr r0, [pc, #228] ; (801367c ) - 8013596: f009 f857 bl 801c648 + 8013596: 687b ldr r3, [r7, #4] + 8013598: 2b00 cmp r3, #0 + 801359a: d106 bne.n 80135aa + 801359c: 4b39 ldr r3, [pc, #228] ; (8013684 ) + 801359e: f640 0284 movw r2, #2180 ; 0x884 + 80135a2: 493b ldr r1, [pc, #236] ; (8013690 ) + 80135a4: 4839 ldr r0, [pc, #228] ; (801368c ) + 80135a6: f009 f857 bl 801c658 TCP_RMV(pcblist, pcb); - 801359a: 687b ldr r3, [r7, #4] - 801359c: 681b ldr r3, [r3, #0] - 801359e: 683a ldr r2, [r7, #0] - 80135a0: 429a cmp r2, r3 - 80135a2: d105 bne.n 80135b0 - 80135a4: 687b ldr r3, [r7, #4] - 80135a6: 681b ldr r3, [r3, #0] - 80135a8: 68da ldr r2, [r3, #12] 80135aa: 687b ldr r3, [r7, #4] - 80135ac: 601a str r2, [r3, #0] - 80135ae: e013 b.n 80135d8 - 80135b0: 687b ldr r3, [r7, #4] - 80135b2: 681b ldr r3, [r3, #0] - 80135b4: 60fb str r3, [r7, #12] - 80135b6: e00c b.n 80135d2 - 80135b8: 68fb ldr r3, [r7, #12] - 80135ba: 68db ldr r3, [r3, #12] - 80135bc: 683a ldr r2, [r7, #0] - 80135be: 429a cmp r2, r3 - 80135c0: d104 bne.n 80135cc - 80135c2: 683b ldr r3, [r7, #0] - 80135c4: 68da ldr r2, [r3, #12] - 80135c6: 68fb ldr r3, [r7, #12] - 80135c8: 60da str r2, [r3, #12] - 80135ca: e005 b.n 80135d8 - 80135cc: 68fb ldr r3, [r7, #12] - 80135ce: 68db ldr r3, [r3, #12] - 80135d0: 60fb str r3, [r7, #12] - 80135d2: 68fb ldr r3, [r7, #12] - 80135d4: 2b00 cmp r3, #0 - 80135d6: d1ef bne.n 80135b8 - 80135d8: 683b ldr r3, [r7, #0] - 80135da: 2200 movs r2, #0 - 80135dc: 60da str r2, [r3, #12] + 80135ac: 681b ldr r3, [r3, #0] + 80135ae: 683a ldr r2, [r7, #0] + 80135b0: 429a cmp r2, r3 + 80135b2: d105 bne.n 80135c0 + 80135b4: 687b ldr r3, [r7, #4] + 80135b6: 681b ldr r3, [r3, #0] + 80135b8: 68da ldr r2, [r3, #12] + 80135ba: 687b ldr r3, [r7, #4] + 80135bc: 601a str r2, [r3, #0] + 80135be: e013 b.n 80135e8 + 80135c0: 687b ldr r3, [r7, #4] + 80135c2: 681b ldr r3, [r3, #0] + 80135c4: 60fb str r3, [r7, #12] + 80135c6: e00c b.n 80135e2 + 80135c8: 68fb ldr r3, [r7, #12] + 80135ca: 68db ldr r3, [r3, #12] + 80135cc: 683a ldr r2, [r7, #0] + 80135ce: 429a cmp r2, r3 + 80135d0: d104 bne.n 80135dc + 80135d2: 683b ldr r3, [r7, #0] + 80135d4: 68da ldr r2, [r3, #12] + 80135d6: 68fb ldr r3, [r7, #12] + 80135d8: 60da str r2, [r3, #12] + 80135da: e005 b.n 80135e8 + 80135dc: 68fb ldr r3, [r7, #12] + 80135de: 68db ldr r3, [r3, #12] + 80135e0: 60fb str r3, [r7, #12] + 80135e2: 68fb ldr r3, [r7, #12] + 80135e4: 2b00 cmp r3, #0 + 80135e6: d1ef bne.n 80135c8 + 80135e8: 683b ldr r3, [r7, #0] + 80135ea: 2200 movs r2, #0 + 80135ec: 60da str r2, [r3, #12] tcp_pcb_purge(pcb); - 80135de: 6838 ldr r0, [r7, #0] - 80135e0: f7ff ff72 bl 80134c8 + 80135ee: 6838 ldr r0, [r7, #0] + 80135f0: f7ff ff72 bl 80134d8 /* if there is an outstanding delayed ACKs, send it */ if ((pcb->state != TIME_WAIT) && - 80135e4: 683b ldr r3, [r7, #0] - 80135e6: 7d1b ldrb r3, [r3, #20] - 80135e8: 2b0a cmp r3, #10 - 80135ea: d013 beq.n 8013614 + 80135f4: 683b ldr r3, [r7, #0] + 80135f6: 7d1b ldrb r3, [r3, #20] + 80135f8: 2b0a cmp r3, #10 + 80135fa: d013 beq.n 8013624 (pcb->state != LISTEN) && - 80135ec: 683b ldr r3, [r7, #0] - 80135ee: 7d1b ldrb r3, [r3, #20] + 80135fc: 683b ldr r3, [r7, #0] + 80135fe: 7d1b ldrb r3, [r3, #20] if ((pcb->state != TIME_WAIT) && - 80135f0: 2b01 cmp r3, #1 - 80135f2: d00f beq.n 8013614 + 8013600: 2b01 cmp r3, #1 + 8013602: d00f beq.n 8013624 (pcb->flags & TF_ACK_DELAY)) { - 80135f4: 683b ldr r3, [r7, #0] - 80135f6: 8b5b ldrh r3, [r3, #26] - 80135f8: f003 0301 and.w r3, r3, #1 + 8013604: 683b ldr r3, [r7, #0] + 8013606: 8b5b ldrh r3, [r3, #26] + 8013608: f003 0301 and.w r3, r3, #1 (pcb->state != LISTEN) && - 80135fc: 2b00 cmp r3, #0 - 80135fe: d009 beq.n 8013614 + 801360c: 2b00 cmp r3, #0 + 801360e: d009 beq.n 8013624 tcp_ack_now(pcb); - 8013600: 683b ldr r3, [r7, #0] - 8013602: 8b5b ldrh r3, [r3, #26] - 8013604: f043 0302 orr.w r3, r3, #2 - 8013608: b29a uxth r2, r3 - 801360a: 683b ldr r3, [r7, #0] - 801360c: 835a strh r2, [r3, #26] + 8013610: 683b ldr r3, [r7, #0] + 8013612: 8b5b ldrh r3, [r3, #26] + 8013614: f043 0302 orr.w r3, r3, #2 + 8013618: b29a uxth r2, r3 + 801361a: 683b ldr r3, [r7, #0] + 801361c: 835a strh r2, [r3, #26] tcp_output(pcb); - 801360e: 6838 ldr r0, [r7, #0] - 8013610: f002 ff68 bl 80164e4 + 801361e: 6838 ldr r0, [r7, #0] + 8013620: f002 ff68 bl 80164f4 } if (pcb->state != LISTEN) { - 8013614: 683b ldr r3, [r7, #0] - 8013616: 7d1b ldrb r3, [r3, #20] - 8013618: 2b01 cmp r3, #1 - 801361a: d020 beq.n 801365e + 8013624: 683b ldr r3, [r7, #0] + 8013626: 7d1b ldrb r3, [r3, #20] + 8013628: 2b01 cmp r3, #1 + 801362a: d020 beq.n 801366e LWIP_ASSERT("unsent segments leaking", pcb->unsent == NULL); - 801361c: 683b ldr r3, [r7, #0] - 801361e: 6edb ldr r3, [r3, #108] ; 0x6c - 8013620: 2b00 cmp r3, #0 - 8013622: d006 beq.n 8013632 - 8013624: 4b13 ldr r3, [pc, #76] ; (8013674 ) - 8013626: f640 0293 movw r2, #2195 ; 0x893 - 801362a: 4916 ldr r1, [pc, #88] ; (8013684 ) - 801362c: 4813 ldr r0, [pc, #76] ; (801367c ) - 801362e: f009 f80b bl 801c648 + 801362c: 683b ldr r3, [r7, #0] + 801362e: 6edb ldr r3, [r3, #108] ; 0x6c + 8013630: 2b00 cmp r3, #0 + 8013632: d006 beq.n 8013642 + 8013634: 4b13 ldr r3, [pc, #76] ; (8013684 ) + 8013636: f640 0293 movw r2, #2195 ; 0x893 + 801363a: 4916 ldr r1, [pc, #88] ; (8013694 ) + 801363c: 4813 ldr r0, [pc, #76] ; (801368c ) + 801363e: f009 f80b bl 801c658 LWIP_ASSERT("unacked segments leaking", pcb->unacked == NULL); - 8013632: 683b ldr r3, [r7, #0] - 8013634: 6f1b ldr r3, [r3, #112] ; 0x70 - 8013636: 2b00 cmp r3, #0 - 8013638: d006 beq.n 8013648 - 801363a: 4b0e ldr r3, [pc, #56] ; (8013674 ) - 801363c: f640 0294 movw r2, #2196 ; 0x894 - 8013640: 4911 ldr r1, [pc, #68] ; (8013688 ) - 8013642: 480e ldr r0, [pc, #56] ; (801367c ) - 8013644: f009 f800 bl 801c648 + 8013642: 683b ldr r3, [r7, #0] + 8013644: 6f1b ldr r3, [r3, #112] ; 0x70 + 8013646: 2b00 cmp r3, #0 + 8013648: d006 beq.n 8013658 + 801364a: 4b0e ldr r3, [pc, #56] ; (8013684 ) + 801364c: f640 0294 movw r2, #2196 ; 0x894 + 8013650: 4911 ldr r1, [pc, #68] ; (8013698 ) + 8013652: 480e ldr r0, [pc, #56] ; (801368c ) + 8013654: f009 f800 bl 801c658 #if TCP_QUEUE_OOSEQ LWIP_ASSERT("ooseq segments leaking", pcb->ooseq == NULL); - 8013648: 683b ldr r3, [r7, #0] - 801364a: 6f5b ldr r3, [r3, #116] ; 0x74 - 801364c: 2b00 cmp r3, #0 - 801364e: d006 beq.n 801365e - 8013650: 4b08 ldr r3, [pc, #32] ; (8013674 ) - 8013652: f640 0296 movw r2, #2198 ; 0x896 - 8013656: 490d ldr r1, [pc, #52] ; (801368c ) - 8013658: 4808 ldr r0, [pc, #32] ; (801367c ) - 801365a: f008 fff5 bl 801c648 + 8013658: 683b ldr r3, [r7, #0] + 801365a: 6f5b ldr r3, [r3, #116] ; 0x74 + 801365c: 2b00 cmp r3, #0 + 801365e: d006 beq.n 801366e + 8013660: 4b08 ldr r3, [pc, #32] ; (8013684 ) + 8013662: f640 0296 movw r2, #2198 ; 0x896 + 8013666: 490d ldr r1, [pc, #52] ; (801369c ) + 8013668: 4808 ldr r0, [pc, #32] ; (801368c ) + 801366a: f008 fff5 bl 801c658 #endif /* TCP_QUEUE_OOSEQ */ } pcb->state = CLOSED; - 801365e: 683b ldr r3, [r7, #0] - 8013660: 2200 movs r2, #0 - 8013662: 751a strb r2, [r3, #20] + 801366e: 683b ldr r3, [r7, #0] + 8013670: 2200 movs r2, #0 + 8013672: 751a strb r2, [r3, #20] /* reset the local port to prevent the pcb from being 'bound' */ pcb->local_port = 0; - 8013664: 683b ldr r3, [r7, #0] - 8013666: 2200 movs r2, #0 - 8013668: 82da strh r2, [r3, #22] + 8013674: 683b ldr r3, [r7, #0] + 8013676: 2200 movs r2, #0 + 8013678: 82da strh r2, [r3, #22] LWIP_ASSERT("tcp_pcb_remove: tcp_pcbs_sane()", tcp_pcbs_sane()); } - 801366a: bf00 nop - 801366c: 3710 adds r7, #16 - 801366e: 46bd mov sp, r7 - 8013670: bd80 pop {r7, pc} - 8013672: bf00 nop - 8013674: 0801e4d8 .word 0x0801e4d8 - 8013678: 0801eb40 .word 0x0801eb40 - 801367c: 0801e51c .word 0x0801e51c - 8013680: 0801eb5c .word 0x0801eb5c - 8013684: 0801eb7c .word 0x0801eb7c - 8013688: 0801eb94 .word 0x0801eb94 - 801368c: 0801ebb0 .word 0x0801ebb0 - -08013690 : + 801367a: bf00 nop + 801367c: 3710 adds r7, #16 + 801367e: 46bd mov sp, r7 + 8013680: bd80 pop {r7, pc} + 8013682: bf00 nop + 8013684: 0801e4e8 .word 0x0801e4e8 + 8013688: 0801eb50 .word 0x0801eb50 + 801368c: 0801e52c .word 0x0801e52c + 8013690: 0801eb6c .word 0x0801eb6c + 8013694: 0801eb8c .word 0x0801eb8c + 8013698: 0801eba4 .word 0x0801eba4 + 801369c: 0801ebc0 .word 0x0801ebc0 + +080136a0 : * * @return u32_t pseudo random sequence number */ u32_t tcp_next_iss(struct tcp_pcb *pcb) { - 8013690: b580 push {r7, lr} - 8013692: b082 sub sp, #8 - 8013694: af00 add r7, sp, #0 - 8013696: 6078 str r0, [r7, #4] + 80136a0: b580 push {r7, lr} + 80136a2: b082 sub sp, #8 + 80136a4: af00 add r7, sp, #0 + 80136a6: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL); return LWIP_HOOK_TCP_ISN(&pcb->local_ip, pcb->local_port, &pcb->remote_ip, pcb->remote_port); #else /* LWIP_HOOK_TCP_ISN */ static u32_t iss = 6510; LWIP_ASSERT("tcp_next_iss: invalid pcb", pcb != NULL); - 8013698: 687b ldr r3, [r7, #4] - 801369a: 2b00 cmp r3, #0 - 801369c: d106 bne.n 80136ac - 801369e: 4b0a ldr r3, [pc, #40] ; (80136c8 ) - 80136a0: f640 02af movw r2, #2223 ; 0x8af - 80136a4: 4909 ldr r1, [pc, #36] ; (80136cc ) - 80136a6: 480a ldr r0, [pc, #40] ; (80136d0 ) - 80136a8: f008 ffce bl 801c648 + 80136a8: 687b ldr r3, [r7, #4] + 80136aa: 2b00 cmp r3, #0 + 80136ac: d106 bne.n 80136bc + 80136ae: 4b0a ldr r3, [pc, #40] ; (80136d8 ) + 80136b0: f640 02af movw r2, #2223 ; 0x8af + 80136b4: 4909 ldr r1, [pc, #36] ; (80136dc ) + 80136b6: 480a ldr r0, [pc, #40] ; (80136e0 ) + 80136b8: f008 ffce bl 801c658 LWIP_UNUSED_ARG(pcb); iss += tcp_ticks; /* XXX */ - 80136ac: 4b09 ldr r3, [pc, #36] ; (80136d4 ) - 80136ae: 681a ldr r2, [r3, #0] - 80136b0: 4b09 ldr r3, [pc, #36] ; (80136d8 ) - 80136b2: 681b ldr r3, [r3, #0] - 80136b4: 4413 add r3, r2 - 80136b6: 4a07 ldr r2, [pc, #28] ; (80136d4 ) - 80136b8: 6013 str r3, [r2, #0] + 80136bc: 4b09 ldr r3, [pc, #36] ; (80136e4 ) + 80136be: 681a ldr r2, [r3, #0] + 80136c0: 4b09 ldr r3, [pc, #36] ; (80136e8 ) + 80136c2: 681b ldr r3, [r3, #0] + 80136c4: 4413 add r3, r2 + 80136c6: 4a07 ldr r2, [pc, #28] ; (80136e4 ) + 80136c8: 6013 str r3, [r2, #0] return iss; - 80136ba: 4b06 ldr r3, [pc, #24] ; (80136d4 ) - 80136bc: 681b ldr r3, [r3, #0] + 80136ca: 4b06 ldr r3, [pc, #24] ; (80136e4 ) + 80136cc: 681b ldr r3, [r3, #0] #endif /* LWIP_HOOK_TCP_ISN */ } - 80136be: 4618 mov r0, r3 - 80136c0: 3708 adds r7, #8 - 80136c2: 46bd mov sp, r7 - 80136c4: bd80 pop {r7, pc} - 80136c6: bf00 nop - 80136c8: 0801e4d8 .word 0x0801e4d8 - 80136cc: 0801ebc8 .word 0x0801ebc8 - 80136d0: 0801e51c .word 0x0801e51c - 80136d4: 2000006c .word 0x2000006c - 80136d8: 2000f7f4 .word 0x2000f7f4 - -080136dc : + 80136ce: 4618 mov r0, r3 + 80136d0: 3708 adds r7, #8 + 80136d2: 46bd mov sp, r7 + 80136d4: bd80 pop {r7, pc} + 80136d6: bf00 nop + 80136d8: 0801e4e8 .word 0x0801e4e8 + 80136dc: 0801ebd8 .word 0x0801ebd8 + 80136e0: 0801e52c .word 0x0801e52c + 80136e4: 2000006c .word 0x2000006c + 80136e8: 2000f7f4 .word 0x2000f7f4 + +080136ec : * by calculating the minimum of TCP_MSS and the mtu (if set) of the target * netif (if not NULL). */ u16_t tcp_eff_send_mss_netif(u16_t sendmss, struct netif *outif, const ip_addr_t *dest) { - 80136dc: b580 push {r7, lr} - 80136de: b086 sub sp, #24 - 80136e0: af00 add r7, sp, #0 - 80136e2: 4603 mov r3, r0 - 80136e4: 60b9 str r1, [r7, #8] - 80136e6: 607a str r2, [r7, #4] - 80136e8: 81fb strh r3, [r7, #14] + 80136ec: b580 push {r7, lr} + 80136ee: b086 sub sp, #24 + 80136f0: af00 add r7, sp, #0 + 80136f2: 4603 mov r3, r0 + 80136f4: 60b9 str r1, [r7, #8] + 80136f6: 607a str r2, [r7, #4] + 80136f8: 81fb strh r3, [r7, #14] u16_t mss_s; u16_t mtu; LWIP_UNUSED_ARG(dest); /* in case IPv6 is disabled */ LWIP_ASSERT("tcp_eff_send_mss_netif: invalid dst_ip", dest != NULL); - 80136ea: 687b ldr r3, [r7, #4] - 80136ec: 2b00 cmp r3, #0 - 80136ee: d106 bne.n 80136fe - 80136f0: 4b14 ldr r3, [pc, #80] ; (8013744 ) - 80136f2: f640 02c5 movw r2, #2245 ; 0x8c5 - 80136f6: 4914 ldr r1, [pc, #80] ; (8013748 ) - 80136f8: 4814 ldr r0, [pc, #80] ; (801374c ) - 80136fa: f008 ffa5 bl 801c648 + 80136fa: 687b ldr r3, [r7, #4] + 80136fc: 2b00 cmp r3, #0 + 80136fe: d106 bne.n 801370e + 8013700: 4b14 ldr r3, [pc, #80] ; (8013754 ) + 8013702: f640 02c5 movw r2, #2245 ; 0x8c5 + 8013706: 4914 ldr r1, [pc, #80] ; (8013758 ) + 8013708: 4814 ldr r0, [pc, #80] ; (801375c ) + 801370a: f008 ffa5 bl 801c658 else #endif /* LWIP_IPV4 */ #endif /* LWIP_IPV6 */ #if LWIP_IPV4 { if (outif == NULL) { - 80136fe: 68bb ldr r3, [r7, #8] - 8013700: 2b00 cmp r3, #0 - 8013702: d101 bne.n 8013708 + 801370e: 68bb ldr r3, [r7, #8] + 8013710: 2b00 cmp r3, #0 + 8013712: d101 bne.n 8013718 return sendmss; - 8013704: 89fb ldrh r3, [r7, #14] - 8013706: e019 b.n 801373c + 8013714: 89fb ldrh r3, [r7, #14] + 8013716: e019 b.n 801374c } mtu = outif->mtu; - 8013708: 68bb ldr r3, [r7, #8] - 801370a: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801370c: 82fb strh r3, [r7, #22] + 8013718: 68bb ldr r3, [r7, #8] + 801371a: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801371c: 82fb strh r3, [r7, #22] } #endif /* LWIP_IPV4 */ if (mtu != 0) { - 801370e: 8afb ldrh r3, [r7, #22] - 8013710: 2b00 cmp r3, #0 - 8013712: d012 beq.n 801373a + 801371e: 8afb ldrh r3, [r7, #22] + 8013720: 2b00 cmp r3, #0 + 8013722: d012 beq.n 801374a else #endif /* LWIP_IPV4 */ #endif /* LWIP_IPV6 */ #if LWIP_IPV4 { offset = IP_HLEN + TCP_HLEN; - 8013714: 2328 movs r3, #40 ; 0x28 - 8013716: 82bb strh r3, [r7, #20] + 8013724: 2328 movs r3, #40 ; 0x28 + 8013726: 82bb strh r3, [r7, #20] } #endif /* LWIP_IPV4 */ mss_s = (mtu > offset) ? (u16_t)(mtu - offset) : 0; - 8013718: 8afa ldrh r2, [r7, #22] - 801371a: 8abb ldrh r3, [r7, #20] - 801371c: 429a cmp r2, r3 - 801371e: d904 bls.n 801372a - 8013720: 8afa ldrh r2, [r7, #22] - 8013722: 8abb ldrh r3, [r7, #20] - 8013724: 1ad3 subs r3, r2, r3 - 8013726: b29b uxth r3, r3 - 8013728: e000 b.n 801372c - 801372a: 2300 movs r3, #0 - 801372c: 827b strh r3, [r7, #18] + 8013728: 8afa ldrh r2, [r7, #22] + 801372a: 8abb ldrh r3, [r7, #20] + 801372c: 429a cmp r2, r3 + 801372e: d904 bls.n 801373a + 8013730: 8afa ldrh r2, [r7, #22] + 8013732: 8abb ldrh r3, [r7, #20] + 8013734: 1ad3 subs r3, r2, r3 + 8013736: b29b uxth r3, r3 + 8013738: e000 b.n 801373c + 801373a: 2300 movs r3, #0 + 801373c: 827b strh r3, [r7, #18] /* RFC 1122, chap 4.2.2.6: * Eff.snd.MSS = min(SendMSS+20, MMS_S) - TCPhdrsize - IPoptionsize * We correct for TCP options in tcp_write(), and don't support IP options. */ sendmss = LWIP_MIN(sendmss, mss_s); - 801372e: 8a7a ldrh r2, [r7, #18] - 8013730: 89fb ldrh r3, [r7, #14] - 8013732: 4293 cmp r3, r2 - 8013734: bf28 it cs - 8013736: 4613 movcs r3, r2 - 8013738: 81fb strh r3, [r7, #14] + 801373e: 8a7a ldrh r2, [r7, #18] + 8013740: 89fb ldrh r3, [r7, #14] + 8013742: 4293 cmp r3, r2 + 8013744: bf28 it cs + 8013746: 4613 movcs r3, r2 + 8013748: 81fb strh r3, [r7, #14] } return sendmss; - 801373a: 89fb ldrh r3, [r7, #14] + 801374a: 89fb ldrh r3, [r7, #14] } - 801373c: 4618 mov r0, r3 - 801373e: 3718 adds r7, #24 - 8013740: 46bd mov sp, r7 - 8013742: bd80 pop {r7, pc} - 8013744: 0801e4d8 .word 0x0801e4d8 - 8013748: 0801ebe4 .word 0x0801ebe4 - 801374c: 0801e51c .word 0x0801e51c + 801374c: 4618 mov r0, r3 + 801374e: 3718 adds r7, #24 + 8013750: 46bd mov sp, r7 + 8013752: bd80 pop {r7, pc} + 8013754: 0801e4e8 .word 0x0801e4e8 + 8013758: 0801ebf4 .word 0x0801ebf4 + 801375c: 0801e52c .word 0x0801e52c -08013750 : +08013760 : #endif /* TCP_CALCULATE_EFF_SEND_MSS */ /** Helper function for tcp_netif_ip_addr_changed() that iterates a pcb list */ static void tcp_netif_ip_addr_changed_pcblist(const ip_addr_t *old_addr, struct tcp_pcb *pcb_list) { - 8013750: b580 push {r7, lr} - 8013752: b084 sub sp, #16 - 8013754: af00 add r7, sp, #0 - 8013756: 6078 str r0, [r7, #4] - 8013758: 6039 str r1, [r7, #0] + 8013760: b580 push {r7, lr} + 8013762: b084 sub sp, #16 + 8013764: af00 add r7, sp, #0 + 8013766: 6078 str r0, [r7, #4] + 8013768: 6039 str r1, [r7, #0] struct tcp_pcb *pcb; pcb = pcb_list; - 801375a: 683b ldr r3, [r7, #0] - 801375c: 60fb str r3, [r7, #12] + 801376a: 683b ldr r3, [r7, #0] + 801376c: 60fb str r3, [r7, #12] LWIP_ASSERT("tcp_netif_ip_addr_changed_pcblist: invalid old_addr", old_addr != NULL); - 801375e: 687b ldr r3, [r7, #4] - 8013760: 2b00 cmp r3, #0 - 8013762: d119 bne.n 8013798 - 8013764: 4b10 ldr r3, [pc, #64] ; (80137a8 ) - 8013766: f44f 6210 mov.w r2, #2304 ; 0x900 - 801376a: 4910 ldr r1, [pc, #64] ; (80137ac ) - 801376c: 4810 ldr r0, [pc, #64] ; (80137b0 ) - 801376e: f008 ff6b bl 801c648 + 801376e: 687b ldr r3, [r7, #4] + 8013770: 2b00 cmp r3, #0 + 8013772: d119 bne.n 80137a8 + 8013774: 4b10 ldr r3, [pc, #64] ; (80137b8 ) + 8013776: f44f 6210 mov.w r2, #2304 ; 0x900 + 801377a: 4910 ldr r1, [pc, #64] ; (80137bc ) + 801377c: 4810 ldr r0, [pc, #64] ; (80137c0 ) + 801377e: f008 ff6b bl 801c658 while (pcb != NULL) { - 8013772: e011 b.n 8013798 + 8013782: e011 b.n 80137a8 /* PCB bound to current local interface address? */ if (ip_addr_cmp(&pcb->local_ip, old_addr) - 8013774: 68fb ldr r3, [r7, #12] - 8013776: 681a ldr r2, [r3, #0] - 8013778: 687b ldr r3, [r7, #4] - 801377a: 681b ldr r3, [r3, #0] - 801377c: 429a cmp r2, r3 - 801377e: d108 bne.n 8013792 + 8013784: 68fb ldr r3, [r7, #12] + 8013786: 681a ldr r2, [r3, #0] + 8013788: 687b ldr r3, [r7, #4] + 801378a: 681b ldr r3, [r3, #0] + 801378c: 429a cmp r2, r3 + 801378e: d108 bne.n 80137a2 /* connections to link-local addresses must persist (RFC3927 ch. 1.9) */ && (!IP_IS_V4_VAL(pcb->local_ip) || !ip4_addr_islinklocal(ip_2_ip4(&pcb->local_ip))) #endif /* LWIP_AUTOIP */ ) { /* this connection must be aborted */ struct tcp_pcb *next = pcb->next; - 8013780: 68fb ldr r3, [r7, #12] - 8013782: 68db ldr r3, [r3, #12] - 8013784: 60bb str r3, [r7, #8] + 8013790: 68fb ldr r3, [r7, #12] + 8013792: 68db ldr r3, [r3, #12] + 8013794: 60bb str r3, [r7, #8] LWIP_DEBUGF(NETIF_DEBUG | LWIP_DBG_STATE, ("netif_set_ipaddr: aborting TCP pcb %p\n", (void *)pcb)); tcp_abort(pcb); - 8013786: 68f8 ldr r0, [r7, #12] - 8013788: f7fe ffca bl 8012720 + 8013796: 68f8 ldr r0, [r7, #12] + 8013798: f7fe ffca bl 8012730 pcb = next; - 801378c: 68bb ldr r3, [r7, #8] - 801378e: 60fb str r3, [r7, #12] - 8013790: e002 b.n 8013798 + 801379c: 68bb ldr r3, [r7, #8] + 801379e: 60fb str r3, [r7, #12] + 80137a0: e002 b.n 80137a8 } else { pcb = pcb->next; - 8013792: 68fb ldr r3, [r7, #12] - 8013794: 68db ldr r3, [r3, #12] - 8013796: 60fb str r3, [r7, #12] + 80137a2: 68fb ldr r3, [r7, #12] + 80137a4: 68db ldr r3, [r3, #12] + 80137a6: 60fb str r3, [r7, #12] while (pcb != NULL) { - 8013798: 68fb ldr r3, [r7, #12] - 801379a: 2b00 cmp r3, #0 - 801379c: d1ea bne.n 8013774 + 80137a8: 68fb ldr r3, [r7, #12] + 80137aa: 2b00 cmp r3, #0 + 80137ac: d1ea bne.n 8013784 } } } - 801379e: bf00 nop - 80137a0: 3710 adds r7, #16 - 80137a2: 46bd mov sp, r7 - 80137a4: bd80 pop {r7, pc} - 80137a6: bf00 nop - 80137a8: 0801e4d8 .word 0x0801e4d8 - 80137ac: 0801ec0c .word 0x0801ec0c - 80137b0: 0801e51c .word 0x0801e51c + 80137ae: bf00 nop + 80137b0: 3710 adds r7, #16 + 80137b2: 46bd mov sp, r7 + 80137b4: bd80 pop {r7, pc} + 80137b6: bf00 nop + 80137b8: 0801e4e8 .word 0x0801e4e8 + 80137bc: 0801ec1c .word 0x0801ec1c + 80137c0: 0801e52c .word 0x0801e52c -080137b4 : +080137c4 : * @param old_addr IP address of the netif before change * @param new_addr IP address of the netif after change or NULL if netif has been removed */ void tcp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) { - 80137b4: b580 push {r7, lr} - 80137b6: b084 sub sp, #16 - 80137b8: af00 add r7, sp, #0 - 80137ba: 6078 str r0, [r7, #4] - 80137bc: 6039 str r1, [r7, #0] + 80137c4: b580 push {r7, lr} + 80137c6: b084 sub sp, #16 + 80137c8: af00 add r7, sp, #0 + 80137ca: 6078 str r0, [r7, #4] + 80137cc: 6039 str r1, [r7, #0] struct tcp_pcb_listen *lpcb; if (!ip_addr_isany(old_addr)) { - 80137be: 687b ldr r3, [r7, #4] - 80137c0: 2b00 cmp r3, #0 - 80137c2: d02a beq.n 801381a - 80137c4: 687b ldr r3, [r7, #4] - 80137c6: 681b ldr r3, [r3, #0] - 80137c8: 2b00 cmp r3, #0 - 80137ca: d026 beq.n 801381a + 80137ce: 687b ldr r3, [r7, #4] + 80137d0: 2b00 cmp r3, #0 + 80137d2: d02a beq.n 801382a + 80137d4: 687b ldr r3, [r7, #4] + 80137d6: 681b ldr r3, [r3, #0] + 80137d8: 2b00 cmp r3, #0 + 80137da: d026 beq.n 801382a tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_active_pcbs); - 80137cc: 4b15 ldr r3, [pc, #84] ; (8013824 ) - 80137ce: 681b ldr r3, [r3, #0] - 80137d0: 4619 mov r1, r3 - 80137d2: 6878 ldr r0, [r7, #4] - 80137d4: f7ff ffbc bl 8013750 + 80137dc: 4b15 ldr r3, [pc, #84] ; (8013834 ) + 80137de: 681b ldr r3, [r3, #0] + 80137e0: 4619 mov r1, r3 + 80137e2: 6878 ldr r0, [r7, #4] + 80137e4: f7ff ffbc bl 8013760 tcp_netif_ip_addr_changed_pcblist(old_addr, tcp_bound_pcbs); - 80137d8: 4b13 ldr r3, [pc, #76] ; (8013828 ) - 80137da: 681b ldr r3, [r3, #0] - 80137dc: 4619 mov r1, r3 - 80137de: 6878 ldr r0, [r7, #4] - 80137e0: f7ff ffb6 bl 8013750 + 80137e8: 4b13 ldr r3, [pc, #76] ; (8013838 ) + 80137ea: 681b ldr r3, [r3, #0] + 80137ec: 4619 mov r1, r3 + 80137ee: 6878 ldr r0, [r7, #4] + 80137f0: f7ff ffb6 bl 8013760 if (!ip_addr_isany(new_addr)) { - 80137e4: 683b ldr r3, [r7, #0] - 80137e6: 2b00 cmp r3, #0 - 80137e8: d017 beq.n 801381a - 80137ea: 683b ldr r3, [r7, #0] - 80137ec: 681b ldr r3, [r3, #0] - 80137ee: 2b00 cmp r3, #0 - 80137f0: d013 beq.n 801381a + 80137f4: 683b ldr r3, [r7, #0] + 80137f6: 2b00 cmp r3, #0 + 80137f8: d017 beq.n 801382a + 80137fa: 683b ldr r3, [r7, #0] + 80137fc: 681b ldr r3, [r3, #0] + 80137fe: 2b00 cmp r3, #0 + 8013800: d013 beq.n 801382a /* PCB bound to current local interface address? */ for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 80137f2: 4b0e ldr r3, [pc, #56] ; (801382c ) - 80137f4: 681b ldr r3, [r3, #0] - 80137f6: 60fb str r3, [r7, #12] - 80137f8: e00c b.n 8013814 + 8013802: 4b0e ldr r3, [pc, #56] ; (801383c ) + 8013804: 681b ldr r3, [r3, #0] + 8013806: 60fb str r3, [r7, #12] + 8013808: e00c b.n 8013824 /* PCB bound to current local interface address? */ if (ip_addr_cmp(&lpcb->local_ip, old_addr)) { - 80137fa: 68fb ldr r3, [r7, #12] - 80137fc: 681a ldr r2, [r3, #0] - 80137fe: 687b ldr r3, [r7, #4] - 8013800: 681b ldr r3, [r3, #0] - 8013802: 429a cmp r2, r3 - 8013804: d103 bne.n 801380e + 801380a: 68fb ldr r3, [r7, #12] + 801380c: 681a ldr r2, [r3, #0] + 801380e: 687b ldr r3, [r7, #4] + 8013810: 681b ldr r3, [r3, #0] + 8013812: 429a cmp r2, r3 + 8013814: d103 bne.n 801381e /* The PCB is listening to the old ipaddr and * is set to listen to the new one instead */ ip_addr_copy(lpcb->local_ip, *new_addr); - 8013806: 683b ldr r3, [r7, #0] - 8013808: 681a ldr r2, [r3, #0] - 801380a: 68fb ldr r3, [r7, #12] - 801380c: 601a str r2, [r3, #0] + 8013816: 683b ldr r3, [r7, #0] + 8013818: 681a ldr r2, [r3, #0] + 801381a: 68fb ldr r3, [r7, #12] + 801381c: 601a str r2, [r3, #0] for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 801380e: 68fb ldr r3, [r7, #12] - 8013810: 68db ldr r3, [r3, #12] - 8013812: 60fb str r3, [r7, #12] - 8013814: 68fb ldr r3, [r7, #12] - 8013816: 2b00 cmp r3, #0 - 8013818: d1ef bne.n 80137fa + 801381e: 68fb ldr r3, [r7, #12] + 8013820: 68db ldr r3, [r3, #12] + 8013822: 60fb str r3, [r7, #12] + 8013824: 68fb ldr r3, [r7, #12] + 8013826: 2b00 cmp r3, #0 + 8013828: d1ef bne.n 801380a } } } } } - 801381a: bf00 nop - 801381c: 3710 adds r7, #16 - 801381e: 46bd mov sp, r7 - 8013820: bd80 pop {r7, pc} - 8013822: bf00 nop - 8013824: 2000f7f0 .word 0x2000f7f0 - 8013828: 2000f7fc .word 0x2000f7fc - 801382c: 2000f7f8 .word 0x2000f7f8 + 801382a: bf00 nop + 801382c: 3710 adds r7, #16 + 801382e: 46bd mov sp, r7 + 8013830: bd80 pop {r7, pc} + 8013832: bf00 nop + 8013834: 2000f7f0 .word 0x2000f7f0 + 8013838: 2000f7fc .word 0x2000f7fc + 801383c: 2000f7f8 .word 0x2000f7f8 -08013830 : +08013840 : #if TCP_QUEUE_OOSEQ /* Free all ooseq pbufs (and possibly reset SACK state) */ void tcp_free_ooseq(struct tcp_pcb *pcb) { - 8013830: b580 push {r7, lr} - 8013832: b082 sub sp, #8 - 8013834: af00 add r7, sp, #0 - 8013836: 6078 str r0, [r7, #4] + 8013840: b580 push {r7, lr} + 8013842: b082 sub sp, #8 + 8013844: af00 add r7, sp, #0 + 8013846: 6078 str r0, [r7, #4] if (pcb->ooseq) { - 8013838: 687b ldr r3, [r7, #4] - 801383a: 6f5b ldr r3, [r3, #116] ; 0x74 - 801383c: 2b00 cmp r3, #0 - 801383e: d007 beq.n 8013850 + 8013848: 687b ldr r3, [r7, #4] + 801384a: 6f5b ldr r3, [r3, #116] ; 0x74 + 801384c: 2b00 cmp r3, #0 + 801384e: d007 beq.n 8013860 tcp_segs_free(pcb->ooseq); - 8013840: 687b ldr r3, [r7, #4] - 8013842: 6f5b ldr r3, [r3, #116] ; 0x74 - 8013844: 4618 mov r0, r3 - 8013846: f7ff fc3f bl 80130c8 + 8013850: 687b ldr r3, [r7, #4] + 8013852: 6f5b ldr r3, [r3, #116] ; 0x74 + 8013854: 4618 mov r0, r3 + 8013856: f7ff fc3f bl 80130d8 pcb->ooseq = NULL; - 801384a: 687b ldr r3, [r7, #4] - 801384c: 2200 movs r2, #0 - 801384e: 675a str r2, [r3, #116] ; 0x74 + 801385a: 687b ldr r3, [r7, #4] + 801385c: 2200 movs r2, #0 + 801385e: 675a str r2, [r3, #116] ; 0x74 #if LWIP_TCP_SACK_OUT memset(pcb->rcv_sacks, 0, sizeof(pcb->rcv_sacks)); #endif /* LWIP_TCP_SACK_OUT */ } } - 8013850: bf00 nop - 8013852: 3708 adds r7, #8 - 8013854: 46bd mov sp, r7 - 8013856: bd80 pop {r7, pc} + 8013860: bf00 nop + 8013862: 3708 adds r7, #8 + 8013864: 46bd mov sp, r7 + 8013866: bd80 pop {r7, pc} -08013858 : +08013868 : * @param p received TCP segment to process (p->payload pointing to the TCP header) * @param inp network interface on which this segment was received */ void tcp_input(struct pbuf *p, struct netif *inp) { - 8013858: b590 push {r4, r7, lr} - 801385a: b08d sub sp, #52 ; 0x34 - 801385c: af04 add r7, sp, #16 - 801385e: 6078 str r0, [r7, #4] - 8013860: 6039 str r1, [r7, #0] + 8013868: b590 push {r4, r7, lr} + 801386a: b08d sub sp, #52 ; 0x34 + 801386c: af04 add r7, sp, #16 + 801386e: 6078 str r0, [r7, #4] + 8013870: 6039 str r1, [r7, #0] u8_t hdrlen_bytes; err_t err; LWIP_UNUSED_ARG(inp); LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("tcp_input: invalid pbuf", p != NULL); - 8013862: 687b ldr r3, [r7, #4] - 8013864: 2b00 cmp r3, #0 - 8013866: d105 bne.n 8013874 - 8013868: 4b9b ldr r3, [pc, #620] ; (8013ad8 ) - 801386a: 2283 movs r2, #131 ; 0x83 - 801386c: 499b ldr r1, [pc, #620] ; (8013adc ) - 801386e: 489c ldr r0, [pc, #624] ; (8013ae0 ) - 8013870: f008 feea bl 801c648 + 8013872: 687b ldr r3, [r7, #4] + 8013874: 2b00 cmp r3, #0 + 8013876: d105 bne.n 8013884 + 8013878: 4b9b ldr r3, [pc, #620] ; (8013ae8 ) + 801387a: 2283 movs r2, #131 ; 0x83 + 801387c: 499b ldr r1, [pc, #620] ; (8013aec ) + 801387e: 489c ldr r0, [pc, #624] ; (8013af0 ) + 8013880: f008 feea bl 801c658 PERF_START; TCP_STATS_INC(tcp.recv); MIB2_STATS_INC(mib2.tcpinsegs); tcphdr = (struct tcp_hdr *)p->payload; - 8013874: 687b ldr r3, [r7, #4] - 8013876: 685b ldr r3, [r3, #4] - 8013878: 4a9a ldr r2, [pc, #616] ; (8013ae4 ) - 801387a: 6013 str r3, [r2, #0] + 8013884: 687b ldr r3, [r7, #4] + 8013886: 685b ldr r3, [r3, #4] + 8013888: 4a9a ldr r2, [pc, #616] ; (8013af4 ) + 801388a: 6013 str r3, [r2, #0] #if TCP_INPUT_DEBUG tcp_debug_print(tcphdr); #endif /* Check that TCP header fits in payload */ if (p->len < TCP_HLEN) { - 801387c: 687b ldr r3, [r7, #4] - 801387e: 895b ldrh r3, [r3, #10] - 8013880: 2b13 cmp r3, #19 - 8013882: f240 83c4 bls.w 801400e + 801388c: 687b ldr r3, [r7, #4] + 801388e: 895b ldrh r3, [r3, #10] + 8013890: 2b13 cmp r3, #19 + 8013892: f240 83c4 bls.w 801401e TCP_STATS_INC(tcp.lenerr); goto dropped; } /* Don't even process incoming broadcasts/multicasts. */ if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) || - 8013886: 4b98 ldr r3, [pc, #608] ; (8013ae8 ) - 8013888: 695a ldr r2, [r3, #20] - 801388a: 4b97 ldr r3, [pc, #604] ; (8013ae8 ) - 801388c: 681b ldr r3, [r3, #0] - 801388e: 4619 mov r1, r3 - 8013890: 4610 mov r0, r2 - 8013892: f007 fe17 bl 801b4c4 - 8013896: 4603 mov r3, r0 - 8013898: 2b00 cmp r3, #0 - 801389a: f040 83ba bne.w 8014012 + 8013896: 4b98 ldr r3, [pc, #608] ; (8013af8 ) + 8013898: 695a ldr r2, [r3, #20] + 801389a: 4b97 ldr r3, [pc, #604] ; (8013af8 ) + 801389c: 681b ldr r3, [r3, #0] + 801389e: 4619 mov r1, r3 + 80138a0: 4610 mov r0, r2 + 80138a2: f007 fe17 bl 801b4d4 + 80138a6: 4603 mov r3, r0 + 80138a8: 2b00 cmp r3, #0 + 80138aa: f040 83ba bne.w 8014022 ip_addr_ismulticast(ip_current_dest_addr())) { - 801389e: 4b92 ldr r3, [pc, #584] ; (8013ae8 ) - 80138a0: 695b ldr r3, [r3, #20] - 80138a2: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 80138ae: 4b92 ldr r3, [pc, #584] ; (8013af8 ) + 80138b0: 695b ldr r3, [r3, #20] + 80138b2: f003 03f0 and.w r3, r3, #240 ; 0xf0 if (ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()) || - 80138a6: 2be0 cmp r3, #224 ; 0xe0 - 80138a8: f000 83b3 beq.w 8014012 + 80138b6: 2be0 cmp r3, #224 ; 0xe0 + 80138b8: f000 83b3 beq.w 8014022 } } #endif /* CHECKSUM_CHECK_TCP */ /* sanity-check header length */ hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr); - 80138ac: 4b8d ldr r3, [pc, #564] ; (8013ae4 ) - 80138ae: 681b ldr r3, [r3, #0] - 80138b0: 899b ldrh r3, [r3, #12] - 80138b2: b29b uxth r3, r3 - 80138b4: 4618 mov r0, r3 - 80138b6: f7fc fde3 bl 8010480 - 80138ba: 4603 mov r3, r0 - 80138bc: 0b1b lsrs r3, r3, #12 - 80138be: b29b uxth r3, r3 - 80138c0: b2db uxtb r3, r3 - 80138c2: 009b lsls r3, r3, #2 - 80138c4: 74bb strb r3, [r7, #18] + 80138bc: 4b8d ldr r3, [pc, #564] ; (8013af4 ) + 80138be: 681b ldr r3, [r3, #0] + 80138c0: 899b ldrh r3, [r3, #12] + 80138c2: b29b uxth r3, r3 + 80138c4: 4618 mov r0, r3 + 80138c6: f7fc fde3 bl 8010490 + 80138ca: 4603 mov r3, r0 + 80138cc: 0b1b lsrs r3, r3, #12 + 80138ce: b29b uxth r3, r3 + 80138d0: b2db uxtb r3, r3 + 80138d2: 009b lsls r3, r3, #2 + 80138d4: 74bb strb r3, [r7, #18] if ((hdrlen_bytes < TCP_HLEN) || (hdrlen_bytes > p->tot_len)) { - 80138c6: 7cbb ldrb r3, [r7, #18] - 80138c8: 2b13 cmp r3, #19 - 80138ca: f240 83a2 bls.w 8014012 - 80138ce: 7cbb ldrb r3, [r7, #18] - 80138d0: b29a uxth r2, r3 - 80138d2: 687b ldr r3, [r7, #4] - 80138d4: 891b ldrh r3, [r3, #8] - 80138d6: 429a cmp r2, r3 - 80138d8: f200 839b bhi.w 8014012 + 80138d6: 7cbb ldrb r3, [r7, #18] + 80138d8: 2b13 cmp r3, #19 + 80138da: f240 83a2 bls.w 8014022 + 80138de: 7cbb ldrb r3, [r7, #18] + 80138e0: b29a uxth r2, r3 + 80138e2: 687b ldr r3, [r7, #4] + 80138e4: 891b ldrh r3, [r3, #8] + 80138e6: 429a cmp r2, r3 + 80138e8: f200 839b bhi.w 8014022 goto dropped; } /* Move the payload pointer in the pbuf so that it points to the TCP data instead of the TCP header. */ tcphdr_optlen = (u16_t)(hdrlen_bytes - TCP_HLEN); - 80138dc: 7cbb ldrb r3, [r7, #18] - 80138de: b29b uxth r3, r3 - 80138e0: 3b14 subs r3, #20 - 80138e2: b29a uxth r2, r3 - 80138e4: 4b81 ldr r3, [pc, #516] ; (8013aec ) - 80138e6: 801a strh r2, [r3, #0] + 80138ec: 7cbb ldrb r3, [r7, #18] + 80138ee: b29b uxth r3, r3 + 80138f0: 3b14 subs r3, #20 + 80138f2: b29a uxth r2, r3 + 80138f4: 4b81 ldr r3, [pc, #516] ; (8013afc ) + 80138f6: 801a strh r2, [r3, #0] tcphdr_opt2 = NULL; - 80138e8: 4b81 ldr r3, [pc, #516] ; (8013af0 ) - 80138ea: 2200 movs r2, #0 - 80138ec: 601a str r2, [r3, #0] + 80138f8: 4b81 ldr r3, [pc, #516] ; (8013b00 ) + 80138fa: 2200 movs r2, #0 + 80138fc: 601a str r2, [r3, #0] if (p->len >= hdrlen_bytes) { - 80138ee: 687b ldr r3, [r7, #4] - 80138f0: 895a ldrh r2, [r3, #10] - 80138f2: 7cbb ldrb r3, [r7, #18] - 80138f4: b29b uxth r3, r3 - 80138f6: 429a cmp r2, r3 - 80138f8: d309 bcc.n 801390e + 80138fe: 687b ldr r3, [r7, #4] + 8013900: 895a ldrh r2, [r3, #10] + 8013902: 7cbb ldrb r3, [r7, #18] + 8013904: b29b uxth r3, r3 + 8013906: 429a cmp r2, r3 + 8013908: d309 bcc.n 801391e /* all options are in the first pbuf */ tcphdr_opt1len = tcphdr_optlen; - 80138fa: 4b7c ldr r3, [pc, #496] ; (8013aec ) - 80138fc: 881a ldrh r2, [r3, #0] - 80138fe: 4b7d ldr r3, [pc, #500] ; (8013af4 ) - 8013900: 801a strh r2, [r3, #0] + 801390a: 4b7c ldr r3, [pc, #496] ; (8013afc ) + 801390c: 881a ldrh r2, [r3, #0] + 801390e: 4b7d ldr r3, [pc, #500] ; (8013b04 ) + 8013910: 801a strh r2, [r3, #0] pbuf_remove_header(p, hdrlen_bytes); /* cannot fail */ - 8013902: 7cbb ldrb r3, [r7, #18] - 8013904: 4619 mov r1, r3 - 8013906: 6878 ldr r0, [r7, #4] - 8013908: f7fe f8e8 bl 8011adc - 801390c: e04e b.n 80139ac + 8013912: 7cbb ldrb r3, [r7, #18] + 8013914: 4619 mov r1, r3 + 8013916: 6878 ldr r0, [r7, #4] + 8013918: f7fe f8e8 bl 8011aec + 801391c: e04e b.n 80139bc } else { u16_t opt2len; /* TCP header fits into first pbuf, options don't - data is in the next pbuf */ /* there must be a next pbuf, due to hdrlen_bytes sanity check above */ LWIP_ASSERT("p->next != NULL", p->next != NULL); - 801390e: 687b ldr r3, [r7, #4] - 8013910: 681b ldr r3, [r3, #0] - 8013912: 2b00 cmp r3, #0 - 8013914: d105 bne.n 8013922 - 8013916: 4b70 ldr r3, [pc, #448] ; (8013ad8 ) - 8013918: 22c2 movs r2, #194 ; 0xc2 - 801391a: 4977 ldr r1, [pc, #476] ; (8013af8 ) - 801391c: 4870 ldr r0, [pc, #448] ; (8013ae0 ) - 801391e: f008 fe93 bl 801c648 + 801391e: 687b ldr r3, [r7, #4] + 8013920: 681b ldr r3, [r3, #0] + 8013922: 2b00 cmp r3, #0 + 8013924: d105 bne.n 8013932 + 8013926: 4b70 ldr r3, [pc, #448] ; (8013ae8 ) + 8013928: 22c2 movs r2, #194 ; 0xc2 + 801392a: 4977 ldr r1, [pc, #476] ; (8013b08 ) + 801392c: 4870 ldr r0, [pc, #448] ; (8013af0 ) + 801392e: f008 fe93 bl 801c658 /* advance over the TCP header (cannot fail) */ pbuf_remove_header(p, TCP_HLEN); - 8013922: 2114 movs r1, #20 - 8013924: 6878 ldr r0, [r7, #4] - 8013926: f7fe f8d9 bl 8011adc + 8013932: 2114 movs r1, #20 + 8013934: 6878 ldr r0, [r7, #4] + 8013936: f7fe f8d9 bl 8011aec /* determine how long the first and second parts of the options are */ tcphdr_opt1len = p->len; - 801392a: 687b ldr r3, [r7, #4] - 801392c: 895a ldrh r2, [r3, #10] - 801392e: 4b71 ldr r3, [pc, #452] ; (8013af4 ) - 8013930: 801a strh r2, [r3, #0] + 801393a: 687b ldr r3, [r7, #4] + 801393c: 895a ldrh r2, [r3, #10] + 801393e: 4b71 ldr r3, [pc, #452] ; (8013b04 ) + 8013940: 801a strh r2, [r3, #0] opt2len = (u16_t)(tcphdr_optlen - tcphdr_opt1len); - 8013932: 4b6e ldr r3, [pc, #440] ; (8013aec ) - 8013934: 881a ldrh r2, [r3, #0] - 8013936: 4b6f ldr r3, [pc, #444] ; (8013af4 ) - 8013938: 881b ldrh r3, [r3, #0] - 801393a: 1ad3 subs r3, r2, r3 - 801393c: 823b strh r3, [r7, #16] + 8013942: 4b6e ldr r3, [pc, #440] ; (8013afc ) + 8013944: 881a ldrh r2, [r3, #0] + 8013946: 4b6f ldr r3, [pc, #444] ; (8013b04 ) + 8013948: 881b ldrh r3, [r3, #0] + 801394a: 1ad3 subs r3, r2, r3 + 801394c: 823b strh r3, [r7, #16] /* options continue in the next pbuf: set p to zero length and hide the options in the next pbuf (adjusting p->tot_len) */ pbuf_remove_header(p, tcphdr_opt1len); - 801393e: 4b6d ldr r3, [pc, #436] ; (8013af4 ) - 8013940: 881b ldrh r3, [r3, #0] - 8013942: 4619 mov r1, r3 - 8013944: 6878 ldr r0, [r7, #4] - 8013946: f7fe f8c9 bl 8011adc + 801394e: 4b6d ldr r3, [pc, #436] ; (8013b04 ) + 8013950: 881b ldrh r3, [r3, #0] + 8013952: 4619 mov r1, r3 + 8013954: 6878 ldr r0, [r7, #4] + 8013956: f7fe f8c9 bl 8011aec /* check that the options fit in the second pbuf */ if (opt2len > p->next->len) { - 801394a: 687b ldr r3, [r7, #4] - 801394c: 681b ldr r3, [r3, #0] - 801394e: 895b ldrh r3, [r3, #10] - 8013950: 8a3a ldrh r2, [r7, #16] - 8013952: 429a cmp r2, r3 - 8013954: f200 835f bhi.w 8014016 + 801395a: 687b ldr r3, [r7, #4] + 801395c: 681b ldr r3, [r3, #0] + 801395e: 895b ldrh r3, [r3, #10] + 8013960: 8a3a ldrh r2, [r7, #16] + 8013962: 429a cmp r2, r3 + 8013964: f200 835f bhi.w 8014026 TCP_STATS_INC(tcp.lenerr); goto dropped; } /* remember the pointer to the second part of the options */ tcphdr_opt2 = (u8_t *)p->next->payload; - 8013958: 687b ldr r3, [r7, #4] - 801395a: 681b ldr r3, [r3, #0] - 801395c: 685b ldr r3, [r3, #4] - 801395e: 4a64 ldr r2, [pc, #400] ; (8013af0 ) - 8013960: 6013 str r3, [r2, #0] + 8013968: 687b ldr r3, [r7, #4] + 801396a: 681b ldr r3, [r3, #0] + 801396c: 685b ldr r3, [r3, #4] + 801396e: 4a64 ldr r2, [pc, #400] ; (8013b00 ) + 8013970: 6013 str r3, [r2, #0] /* advance p->next to point after the options, and manually adjust p->tot_len to keep it consistent with the changed p->next */ pbuf_remove_header(p->next, opt2len); - 8013962: 687b ldr r3, [r7, #4] - 8013964: 681b ldr r3, [r3, #0] - 8013966: 8a3a ldrh r2, [r7, #16] - 8013968: 4611 mov r1, r2 - 801396a: 4618 mov r0, r3 - 801396c: f7fe f8b6 bl 8011adc + 8013972: 687b ldr r3, [r7, #4] + 8013974: 681b ldr r3, [r3, #0] + 8013976: 8a3a ldrh r2, [r7, #16] + 8013978: 4611 mov r1, r2 + 801397a: 4618 mov r0, r3 + 801397c: f7fe f8b6 bl 8011aec p->tot_len = (u16_t)(p->tot_len - opt2len); - 8013970: 687b ldr r3, [r7, #4] - 8013972: 891a ldrh r2, [r3, #8] - 8013974: 8a3b ldrh r3, [r7, #16] - 8013976: 1ad3 subs r3, r2, r3 - 8013978: b29a uxth r2, r3 - 801397a: 687b ldr r3, [r7, #4] - 801397c: 811a strh r2, [r3, #8] + 8013980: 687b ldr r3, [r7, #4] + 8013982: 891a ldrh r2, [r3, #8] + 8013984: 8a3b ldrh r3, [r7, #16] + 8013986: 1ad3 subs r3, r2, r3 + 8013988: b29a uxth r2, r3 + 801398a: 687b ldr r3, [r7, #4] + 801398c: 811a strh r2, [r3, #8] LWIP_ASSERT("p->len == 0", p->len == 0); - 801397e: 687b ldr r3, [r7, #4] - 8013980: 895b ldrh r3, [r3, #10] - 8013982: 2b00 cmp r3, #0 - 8013984: d005 beq.n 8013992 - 8013986: 4b54 ldr r3, [pc, #336] ; (8013ad8 ) - 8013988: 22df movs r2, #223 ; 0xdf - 801398a: 495c ldr r1, [pc, #368] ; (8013afc ) - 801398c: 4854 ldr r0, [pc, #336] ; (8013ae0 ) - 801398e: f008 fe5b bl 801c648 + 801398e: 687b ldr r3, [r7, #4] + 8013990: 895b ldrh r3, [r3, #10] + 8013992: 2b00 cmp r3, #0 + 8013994: d005 beq.n 80139a2 + 8013996: 4b54 ldr r3, [pc, #336] ; (8013ae8 ) + 8013998: 22df movs r2, #223 ; 0xdf + 801399a: 495c ldr r1, [pc, #368] ; (8013b0c ) + 801399c: 4854 ldr r0, [pc, #336] ; (8013af0 ) + 801399e: f008 fe5b bl 801c658 LWIP_ASSERT("p->tot_len == p->next->tot_len", p->tot_len == p->next->tot_len); - 8013992: 687b ldr r3, [r7, #4] - 8013994: 891a ldrh r2, [r3, #8] - 8013996: 687b ldr r3, [r7, #4] - 8013998: 681b ldr r3, [r3, #0] - 801399a: 891b ldrh r3, [r3, #8] - 801399c: 429a cmp r2, r3 - 801399e: d005 beq.n 80139ac - 80139a0: 4b4d ldr r3, [pc, #308] ; (8013ad8 ) - 80139a2: 22e0 movs r2, #224 ; 0xe0 - 80139a4: 4956 ldr r1, [pc, #344] ; (8013b00 ) - 80139a6: 484e ldr r0, [pc, #312] ; (8013ae0 ) - 80139a8: f008 fe4e bl 801c648 + 80139a2: 687b ldr r3, [r7, #4] + 80139a4: 891a ldrh r2, [r3, #8] + 80139a6: 687b ldr r3, [r7, #4] + 80139a8: 681b ldr r3, [r3, #0] + 80139aa: 891b ldrh r3, [r3, #8] + 80139ac: 429a cmp r2, r3 + 80139ae: d005 beq.n 80139bc + 80139b0: 4b4d ldr r3, [pc, #308] ; (8013ae8 ) + 80139b2: 22e0 movs r2, #224 ; 0xe0 + 80139b4: 4956 ldr r1, [pc, #344] ; (8013b10 ) + 80139b6: 484e ldr r0, [pc, #312] ; (8013af0 ) + 80139b8: f008 fe4e bl 801c658 } /* Convert fields in TCP header to host byte order. */ tcphdr->src = lwip_ntohs(tcphdr->src); - 80139ac: 4b4d ldr r3, [pc, #308] ; (8013ae4 ) - 80139ae: 681b ldr r3, [r3, #0] - 80139b0: 881b ldrh r3, [r3, #0] - 80139b2: b29a uxth r2, r3 - 80139b4: 4b4b ldr r3, [pc, #300] ; (8013ae4 ) - 80139b6: 681c ldr r4, [r3, #0] - 80139b8: 4610 mov r0, r2 - 80139ba: f7fc fd61 bl 8010480 - 80139be: 4603 mov r3, r0 - 80139c0: 8023 strh r3, [r4, #0] + 80139bc: 4b4d ldr r3, [pc, #308] ; (8013af4 ) + 80139be: 681b ldr r3, [r3, #0] + 80139c0: 881b ldrh r3, [r3, #0] + 80139c2: b29a uxth r2, r3 + 80139c4: 4b4b ldr r3, [pc, #300] ; (8013af4 ) + 80139c6: 681c ldr r4, [r3, #0] + 80139c8: 4610 mov r0, r2 + 80139ca: f7fc fd61 bl 8010490 + 80139ce: 4603 mov r3, r0 + 80139d0: 8023 strh r3, [r4, #0] tcphdr->dest = lwip_ntohs(tcphdr->dest); - 80139c2: 4b48 ldr r3, [pc, #288] ; (8013ae4 ) - 80139c4: 681b ldr r3, [r3, #0] - 80139c6: 885b ldrh r3, [r3, #2] - 80139c8: b29a uxth r2, r3 - 80139ca: 4b46 ldr r3, [pc, #280] ; (8013ae4 ) - 80139cc: 681c ldr r4, [r3, #0] - 80139ce: 4610 mov r0, r2 - 80139d0: f7fc fd56 bl 8010480 - 80139d4: 4603 mov r3, r0 - 80139d6: 8063 strh r3, [r4, #2] + 80139d2: 4b48 ldr r3, [pc, #288] ; (8013af4 ) + 80139d4: 681b ldr r3, [r3, #0] + 80139d6: 885b ldrh r3, [r3, #2] + 80139d8: b29a uxth r2, r3 + 80139da: 4b46 ldr r3, [pc, #280] ; (8013af4 ) + 80139dc: 681c ldr r4, [r3, #0] + 80139de: 4610 mov r0, r2 + 80139e0: f7fc fd56 bl 8010490 + 80139e4: 4603 mov r3, r0 + 80139e6: 8063 strh r3, [r4, #2] seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno); - 80139d8: 4b42 ldr r3, [pc, #264] ; (8013ae4 ) - 80139da: 681b ldr r3, [r3, #0] - 80139dc: 685a ldr r2, [r3, #4] - 80139de: 4b41 ldr r3, [pc, #260] ; (8013ae4 ) - 80139e0: 681c ldr r4, [r3, #0] - 80139e2: 4610 mov r0, r2 - 80139e4: f7fc fd61 bl 80104aa - 80139e8: 4603 mov r3, r0 - 80139ea: 6063 str r3, [r4, #4] - 80139ec: 6863 ldr r3, [r4, #4] - 80139ee: 4a45 ldr r2, [pc, #276] ; (8013b04 ) - 80139f0: 6013 str r3, [r2, #0] + 80139e8: 4b42 ldr r3, [pc, #264] ; (8013af4 ) + 80139ea: 681b ldr r3, [r3, #0] + 80139ec: 685a ldr r2, [r3, #4] + 80139ee: 4b41 ldr r3, [pc, #260] ; (8013af4 ) + 80139f0: 681c ldr r4, [r3, #0] + 80139f2: 4610 mov r0, r2 + 80139f4: f7fc fd61 bl 80104ba + 80139f8: 4603 mov r3, r0 + 80139fa: 6063 str r3, [r4, #4] + 80139fc: 6863 ldr r3, [r4, #4] + 80139fe: 4a45 ldr r2, [pc, #276] ; (8013b14 ) + 8013a00: 6013 str r3, [r2, #0] ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno); - 80139f2: 4b3c ldr r3, [pc, #240] ; (8013ae4 ) - 80139f4: 681b ldr r3, [r3, #0] - 80139f6: 689a ldr r2, [r3, #8] - 80139f8: 4b3a ldr r3, [pc, #232] ; (8013ae4 ) - 80139fa: 681c ldr r4, [r3, #0] - 80139fc: 4610 mov r0, r2 - 80139fe: f7fc fd54 bl 80104aa - 8013a02: 4603 mov r3, r0 - 8013a04: 60a3 str r3, [r4, #8] - 8013a06: 68a3 ldr r3, [r4, #8] - 8013a08: 4a3f ldr r2, [pc, #252] ; (8013b08 ) - 8013a0a: 6013 str r3, [r2, #0] + 8013a02: 4b3c ldr r3, [pc, #240] ; (8013af4 ) + 8013a04: 681b ldr r3, [r3, #0] + 8013a06: 689a ldr r2, [r3, #8] + 8013a08: 4b3a ldr r3, [pc, #232] ; (8013af4 ) + 8013a0a: 681c ldr r4, [r3, #0] + 8013a0c: 4610 mov r0, r2 + 8013a0e: f7fc fd54 bl 80104ba + 8013a12: 4603 mov r3, r0 + 8013a14: 60a3 str r3, [r4, #8] + 8013a16: 68a3 ldr r3, [r4, #8] + 8013a18: 4a3f ldr r2, [pc, #252] ; (8013b18 ) + 8013a1a: 6013 str r3, [r2, #0] tcphdr->wnd = lwip_ntohs(tcphdr->wnd); - 8013a0c: 4b35 ldr r3, [pc, #212] ; (8013ae4 ) - 8013a0e: 681b ldr r3, [r3, #0] - 8013a10: 89db ldrh r3, [r3, #14] - 8013a12: b29a uxth r2, r3 - 8013a14: 4b33 ldr r3, [pc, #204] ; (8013ae4 ) - 8013a16: 681c ldr r4, [r3, #0] - 8013a18: 4610 mov r0, r2 - 8013a1a: f7fc fd31 bl 8010480 - 8013a1e: 4603 mov r3, r0 - 8013a20: 81e3 strh r3, [r4, #14] + 8013a1c: 4b35 ldr r3, [pc, #212] ; (8013af4 ) + 8013a1e: 681b ldr r3, [r3, #0] + 8013a20: 89db ldrh r3, [r3, #14] + 8013a22: b29a uxth r2, r3 + 8013a24: 4b33 ldr r3, [pc, #204] ; (8013af4 ) + 8013a26: 681c ldr r4, [r3, #0] + 8013a28: 4610 mov r0, r2 + 8013a2a: f7fc fd31 bl 8010490 + 8013a2e: 4603 mov r3, r0 + 8013a30: 81e3 strh r3, [r4, #14] flags = TCPH_FLAGS(tcphdr); - 8013a22: 4b30 ldr r3, [pc, #192] ; (8013ae4 ) - 8013a24: 681b ldr r3, [r3, #0] - 8013a26: 899b ldrh r3, [r3, #12] - 8013a28: b29b uxth r3, r3 - 8013a2a: 4618 mov r0, r3 - 8013a2c: f7fc fd28 bl 8010480 - 8013a30: 4603 mov r3, r0 - 8013a32: b2db uxtb r3, r3 - 8013a34: f003 033f and.w r3, r3, #63 ; 0x3f - 8013a38: b2da uxtb r2, r3 - 8013a3a: 4b34 ldr r3, [pc, #208] ; (8013b0c ) - 8013a3c: 701a strb r2, [r3, #0] + 8013a32: 4b30 ldr r3, [pc, #192] ; (8013af4 ) + 8013a34: 681b ldr r3, [r3, #0] + 8013a36: 899b ldrh r3, [r3, #12] + 8013a38: b29b uxth r3, r3 + 8013a3a: 4618 mov r0, r3 + 8013a3c: f7fc fd28 bl 8010490 + 8013a40: 4603 mov r3, r0 + 8013a42: b2db uxtb r3, r3 + 8013a44: f003 033f and.w r3, r3, #63 ; 0x3f + 8013a48: b2da uxtb r2, r3 + 8013a4a: 4b34 ldr r3, [pc, #208] ; (8013b1c ) + 8013a4c: 701a strb r2, [r3, #0] tcplen = p->tot_len; - 8013a3e: 687b ldr r3, [r7, #4] - 8013a40: 891a ldrh r2, [r3, #8] - 8013a42: 4b33 ldr r3, [pc, #204] ; (8013b10 ) - 8013a44: 801a strh r2, [r3, #0] + 8013a4e: 687b ldr r3, [r7, #4] + 8013a50: 891a ldrh r2, [r3, #8] + 8013a52: 4b33 ldr r3, [pc, #204] ; (8013b20 ) + 8013a54: 801a strh r2, [r3, #0] if (flags & (TCP_FIN | TCP_SYN)) { - 8013a46: 4b31 ldr r3, [pc, #196] ; (8013b0c ) - 8013a48: 781b ldrb r3, [r3, #0] - 8013a4a: f003 0303 and.w r3, r3, #3 - 8013a4e: 2b00 cmp r3, #0 - 8013a50: d00c beq.n 8013a6c + 8013a56: 4b31 ldr r3, [pc, #196] ; (8013b1c ) + 8013a58: 781b ldrb r3, [r3, #0] + 8013a5a: f003 0303 and.w r3, r3, #3 + 8013a5e: 2b00 cmp r3, #0 + 8013a60: d00c beq.n 8013a7c tcplen++; - 8013a52: 4b2f ldr r3, [pc, #188] ; (8013b10 ) - 8013a54: 881b ldrh r3, [r3, #0] - 8013a56: 3301 adds r3, #1 - 8013a58: b29a uxth r2, r3 - 8013a5a: 4b2d ldr r3, [pc, #180] ; (8013b10 ) - 8013a5c: 801a strh r2, [r3, #0] - if (tcplen < p->tot_len) { - 8013a5e: 687b ldr r3, [r7, #4] - 8013a60: 891a ldrh r2, [r3, #8] - 8013a62: 4b2b ldr r3, [pc, #172] ; (8013b10 ) + 8013a62: 4b2f ldr r3, [pc, #188] ; (8013b20 ) 8013a64: 881b ldrh r3, [r3, #0] - 8013a66: 429a cmp r2, r3 - 8013a68: f200 82d7 bhi.w 801401a + 8013a66: 3301 adds r3, #1 + 8013a68: b29a uxth r2, r3 + 8013a6a: 4b2d ldr r3, [pc, #180] ; (8013b20 ) + 8013a6c: 801a strh r2, [r3, #0] + if (tcplen < p->tot_len) { + 8013a6e: 687b ldr r3, [r7, #4] + 8013a70: 891a ldrh r2, [r3, #8] + 8013a72: 4b2b ldr r3, [pc, #172] ; (8013b20 ) + 8013a74: 881b ldrh r3, [r3, #0] + 8013a76: 429a cmp r2, r3 + 8013a78: f200 82d7 bhi.w 801402a } } /* Demultiplex an incoming segment. First, we check if it is destined for an active connection. */ prev = NULL; - 8013a6c: 2300 movs r3, #0 - 8013a6e: 61bb str r3, [r7, #24] + 8013a7c: 2300 movs r3, #0 + 8013a7e: 61bb str r3, [r7, #24] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8013a70: 4b28 ldr r3, [pc, #160] ; (8013b14 ) - 8013a72: 681b ldr r3, [r3, #0] - 8013a74: 61fb str r3, [r7, #28] - 8013a76: e09d b.n 8013bb4 + 8013a80: 4b28 ldr r3, [pc, #160] ; (8013b24 ) + 8013a82: 681b ldr r3, [r3, #0] + 8013a84: 61fb str r3, [r7, #28] + 8013a86: e09d b.n 8013bc4 LWIP_ASSERT("tcp_input: active pcb->state != CLOSED", pcb->state != CLOSED); - 8013a78: 69fb ldr r3, [r7, #28] - 8013a7a: 7d1b ldrb r3, [r3, #20] - 8013a7c: 2b00 cmp r3, #0 - 8013a7e: d105 bne.n 8013a8c - 8013a80: 4b15 ldr r3, [pc, #84] ; (8013ad8 ) - 8013a82: 22fb movs r2, #251 ; 0xfb - 8013a84: 4924 ldr r1, [pc, #144] ; (8013b18 ) - 8013a86: 4816 ldr r0, [pc, #88] ; (8013ae0 ) - 8013a88: f008 fdde bl 801c648 + 8013a88: 69fb ldr r3, [r7, #28] + 8013a8a: 7d1b ldrb r3, [r3, #20] + 8013a8c: 2b00 cmp r3, #0 + 8013a8e: d105 bne.n 8013a9c + 8013a90: 4b15 ldr r3, [pc, #84] ; (8013ae8 ) + 8013a92: 22fb movs r2, #251 ; 0xfb + 8013a94: 4924 ldr r1, [pc, #144] ; (8013b28 ) + 8013a96: 4816 ldr r0, [pc, #88] ; (8013af0 ) + 8013a98: f008 fdde bl 801c658 LWIP_ASSERT("tcp_input: active pcb->state != TIME-WAIT", pcb->state != TIME_WAIT); - 8013a8c: 69fb ldr r3, [r7, #28] - 8013a8e: 7d1b ldrb r3, [r3, #20] - 8013a90: 2b0a cmp r3, #10 - 8013a92: d105 bne.n 8013aa0 - 8013a94: 4b10 ldr r3, [pc, #64] ; (8013ad8 ) - 8013a96: 22fc movs r2, #252 ; 0xfc - 8013a98: 4920 ldr r1, [pc, #128] ; (8013b1c ) - 8013a9a: 4811 ldr r0, [pc, #68] ; (8013ae0 ) - 8013a9c: f008 fdd4 bl 801c648 + 8013a9c: 69fb ldr r3, [r7, #28] + 8013a9e: 7d1b ldrb r3, [r3, #20] + 8013aa0: 2b0a cmp r3, #10 + 8013aa2: d105 bne.n 8013ab0 + 8013aa4: 4b10 ldr r3, [pc, #64] ; (8013ae8 ) + 8013aa6: 22fc movs r2, #252 ; 0xfc + 8013aa8: 4920 ldr r1, [pc, #128] ; (8013b2c ) + 8013aaa: 4811 ldr r0, [pc, #68] ; (8013af0 ) + 8013aac: f008 fdd4 bl 801c658 LWIP_ASSERT("tcp_input: active pcb->state != LISTEN", pcb->state != LISTEN); - 8013aa0: 69fb ldr r3, [r7, #28] - 8013aa2: 7d1b ldrb r3, [r3, #20] - 8013aa4: 2b01 cmp r3, #1 - 8013aa6: d105 bne.n 8013ab4 - 8013aa8: 4b0b ldr r3, [pc, #44] ; (8013ad8 ) - 8013aaa: 22fd movs r2, #253 ; 0xfd - 8013aac: 491c ldr r1, [pc, #112] ; (8013b20 ) - 8013aae: 480c ldr r0, [pc, #48] ; (8013ae0 ) - 8013ab0: f008 fdca bl 801c648 + 8013ab0: 69fb ldr r3, [r7, #28] + 8013ab2: 7d1b ldrb r3, [r3, #20] + 8013ab4: 2b01 cmp r3, #1 + 8013ab6: d105 bne.n 8013ac4 + 8013ab8: 4b0b ldr r3, [pc, #44] ; (8013ae8 ) + 8013aba: 22fd movs r2, #253 ; 0xfd + 8013abc: 491c ldr r1, [pc, #112] ; (8013b30 ) + 8013abe: 480c ldr r0, [pc, #48] ; (8013af0 ) + 8013ac0: f008 fdca bl 801c658 /* check if PCB is bound to specific netif */ if ((pcb->netif_idx != NETIF_NO_INDEX) && - 8013ab4: 69fb ldr r3, [r7, #28] - 8013ab6: 7a1b ldrb r3, [r3, #8] - 8013ab8: 2b00 cmp r3, #0 - 8013aba: d033 beq.n 8013b24 + 8013ac4: 69fb ldr r3, [r7, #28] + 8013ac6: 7a1b ldrb r3, [r3, #8] + 8013ac8: 2b00 cmp r3, #0 + 8013aca: d033 beq.n 8013b34 (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 8013abc: 69fb ldr r3, [r7, #28] - 8013abe: 7a1a ldrb r2, [r3, #8] - 8013ac0: 4b09 ldr r3, [pc, #36] ; (8013ae8 ) - 8013ac2: 685b ldr r3, [r3, #4] - 8013ac4: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8013ac8: 3301 adds r3, #1 - 8013aca: b2db uxtb r3, r3 + 8013acc: 69fb ldr r3, [r7, #28] + 8013ace: 7a1a ldrb r2, [r3, #8] + 8013ad0: 4b09 ldr r3, [pc, #36] ; (8013af8 ) + 8013ad2: 685b ldr r3, [r3, #4] + 8013ad4: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8013ad8: 3301 adds r3, #1 + 8013ada: b2db uxtb r3, r3 if ((pcb->netif_idx != NETIF_NO_INDEX) && - 8013acc: 429a cmp r2, r3 - 8013ace: d029 beq.n 8013b24 + 8013adc: 429a cmp r2, r3 + 8013ade: d029 beq.n 8013b34 prev = pcb; - 8013ad0: 69fb ldr r3, [r7, #28] - 8013ad2: 61bb str r3, [r7, #24] + 8013ae0: 69fb ldr r3, [r7, #28] + 8013ae2: 61bb str r3, [r7, #24] continue; - 8013ad4: e06b b.n 8013bae - 8013ad6: bf00 nop - 8013ad8: 0801ec40 .word 0x0801ec40 - 8013adc: 0801ec74 .word 0x0801ec74 - 8013ae0: 0801ec8c .word 0x0801ec8c - 8013ae4: 20008730 .word 0x20008730 - 8013ae8: 2000c0bc .word 0x2000c0bc - 8013aec: 20008734 .word 0x20008734 - 8013af0: 20008738 .word 0x20008738 - 8013af4: 20008736 .word 0x20008736 - 8013af8: 0801ecb4 .word 0x0801ecb4 - 8013afc: 0801ecc4 .word 0x0801ecc4 - 8013b00: 0801ecd0 .word 0x0801ecd0 - 8013b04: 20008740 .word 0x20008740 - 8013b08: 20008744 .word 0x20008744 - 8013b0c: 2000874c .word 0x2000874c - 8013b10: 2000874a .word 0x2000874a - 8013b14: 2000f7f0 .word 0x2000f7f0 - 8013b18: 0801ecf0 .word 0x0801ecf0 - 8013b1c: 0801ed18 .word 0x0801ed18 - 8013b20: 0801ed44 .word 0x0801ed44 + 8013ae4: e06b b.n 8013bbe + 8013ae6: bf00 nop + 8013ae8: 0801ec50 .word 0x0801ec50 + 8013aec: 0801ec84 .word 0x0801ec84 + 8013af0: 0801ec9c .word 0x0801ec9c + 8013af4: 20008730 .word 0x20008730 + 8013af8: 2000c0bc .word 0x2000c0bc + 8013afc: 20008734 .word 0x20008734 + 8013b00: 20008738 .word 0x20008738 + 8013b04: 20008736 .word 0x20008736 + 8013b08: 0801ecc4 .word 0x0801ecc4 + 8013b0c: 0801ecd4 .word 0x0801ecd4 + 8013b10: 0801ece0 .word 0x0801ece0 + 8013b14: 20008740 .word 0x20008740 + 8013b18: 20008744 .word 0x20008744 + 8013b1c: 2000874c .word 0x2000874c + 8013b20: 2000874a .word 0x2000874a + 8013b24: 2000f7f0 .word 0x2000f7f0 + 8013b28: 0801ed00 .word 0x0801ed00 + 8013b2c: 0801ed28 .word 0x0801ed28 + 8013b30: 0801ed54 .word 0x0801ed54 } if (pcb->remote_port == tcphdr->src && - 8013b24: 69fb ldr r3, [r7, #28] - 8013b26: 8b1a ldrh r2, [r3, #24] - 8013b28: 4b94 ldr r3, [pc, #592] ; (8013d7c ) - 8013b2a: 681b ldr r3, [r3, #0] - 8013b2c: 881b ldrh r3, [r3, #0] - 8013b2e: b29b uxth r3, r3 - 8013b30: 429a cmp r2, r3 - 8013b32: d13a bne.n 8013baa - pcb->local_port == tcphdr->dest && 8013b34: 69fb ldr r3, [r7, #28] - 8013b36: 8ada ldrh r2, [r3, #22] - 8013b38: 4b90 ldr r3, [pc, #576] ; (8013d7c ) + 8013b36: 8b1a ldrh r2, [r3, #24] + 8013b38: 4b94 ldr r3, [pc, #592] ; (8013d8c ) 8013b3a: 681b ldr r3, [r3, #0] - 8013b3c: 885b ldrh r3, [r3, #2] + 8013b3c: 881b ldrh r3, [r3, #0] 8013b3e: b29b uxth r3, r3 - if (pcb->remote_port == tcphdr->src && 8013b40: 429a cmp r2, r3 - 8013b42: d132 bne.n 8013baa - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && + 8013b42: d13a bne.n 8013bba + pcb->local_port == tcphdr->dest && 8013b44: 69fb ldr r3, [r7, #28] - 8013b46: 685a ldr r2, [r3, #4] - 8013b48: 4b8d ldr r3, [pc, #564] ; (8013d80 ) - 8013b4a: 691b ldr r3, [r3, #16] + 8013b46: 8ada ldrh r2, [r3, #22] + 8013b48: 4b90 ldr r3, [pc, #576] ; (8013d8c ) + 8013b4a: 681b ldr r3, [r3, #0] + 8013b4c: 885b ldrh r3, [r3, #2] + 8013b4e: b29b uxth r3, r3 + if (pcb->remote_port == tcphdr->src && + 8013b50: 429a cmp r2, r3 + 8013b52: d132 bne.n 8013bba + ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && + 8013b54: 69fb ldr r3, [r7, #28] + 8013b56: 685a ldr r2, [r3, #4] + 8013b58: 4b8d ldr r3, [pc, #564] ; (8013d90 ) + 8013b5a: 691b ldr r3, [r3, #16] pcb->local_port == tcphdr->dest && - 8013b4c: 429a cmp r2, r3 - 8013b4e: d12c bne.n 8013baa + 8013b5c: 429a cmp r2, r3 + 8013b5e: d12c bne.n 8013bba ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - 8013b50: 69fb ldr r3, [r7, #28] - 8013b52: 681a ldr r2, [r3, #0] - 8013b54: 4b8a ldr r3, [pc, #552] ; (8013d80 ) - 8013b56: 695b ldr r3, [r3, #20] + 8013b60: 69fb ldr r3, [r7, #28] + 8013b62: 681a ldr r2, [r3, #0] + 8013b64: 4b8a ldr r3, [pc, #552] ; (8013d90 ) + 8013b66: 695b ldr r3, [r3, #20] ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 8013b58: 429a cmp r2, r3 - 8013b5a: d126 bne.n 8013baa + 8013b68: 429a cmp r2, r3 + 8013b6a: d126 bne.n 8013bba /* Move this PCB to the front of the list so that subsequent lookups will be faster (we exploit locality in TCP segment arrivals). */ LWIP_ASSERT("tcp_input: pcb->next != pcb (before cache)", pcb->next != pcb); - 8013b5c: 69fb ldr r3, [r7, #28] - 8013b5e: 68db ldr r3, [r3, #12] - 8013b60: 69fa ldr r2, [r7, #28] - 8013b62: 429a cmp r2, r3 - 8013b64: d106 bne.n 8013b74 - 8013b66: 4b87 ldr r3, [pc, #540] ; (8013d84 ) - 8013b68: f240 120d movw r2, #269 ; 0x10d - 8013b6c: 4986 ldr r1, [pc, #536] ; (8013d88 ) - 8013b6e: 4887 ldr r0, [pc, #540] ; (8013d8c ) - 8013b70: f008 fd6a bl 801c648 + 8013b6c: 69fb ldr r3, [r7, #28] + 8013b6e: 68db ldr r3, [r3, #12] + 8013b70: 69fa ldr r2, [r7, #28] + 8013b72: 429a cmp r2, r3 + 8013b74: d106 bne.n 8013b84 + 8013b76: 4b87 ldr r3, [pc, #540] ; (8013d94 ) + 8013b78: f240 120d movw r2, #269 ; 0x10d + 8013b7c: 4986 ldr r1, [pc, #536] ; (8013d98 ) + 8013b7e: 4887 ldr r0, [pc, #540] ; (8013d9c ) + 8013b80: f008 fd6a bl 801c658 if (prev != NULL) { - 8013b74: 69bb ldr r3, [r7, #24] - 8013b76: 2b00 cmp r3, #0 - 8013b78: d00a beq.n 8013b90 + 8013b84: 69bb ldr r3, [r7, #24] + 8013b86: 2b00 cmp r3, #0 + 8013b88: d00a beq.n 8013ba0 prev->next = pcb->next; - 8013b7a: 69fb ldr r3, [r7, #28] - 8013b7c: 68da ldr r2, [r3, #12] - 8013b7e: 69bb ldr r3, [r7, #24] - 8013b80: 60da str r2, [r3, #12] + 8013b8a: 69fb ldr r3, [r7, #28] + 8013b8c: 68da ldr r2, [r3, #12] + 8013b8e: 69bb ldr r3, [r7, #24] + 8013b90: 60da str r2, [r3, #12] pcb->next = tcp_active_pcbs; - 8013b82: 4b83 ldr r3, [pc, #524] ; (8013d90 ) - 8013b84: 681a ldr r2, [r3, #0] - 8013b86: 69fb ldr r3, [r7, #28] - 8013b88: 60da str r2, [r3, #12] + 8013b92: 4b83 ldr r3, [pc, #524] ; (8013da0 ) + 8013b94: 681a ldr r2, [r3, #0] + 8013b96: 69fb ldr r3, [r7, #28] + 8013b98: 60da str r2, [r3, #12] tcp_active_pcbs = pcb; - 8013b8a: 4a81 ldr r2, [pc, #516] ; (8013d90 ) - 8013b8c: 69fb ldr r3, [r7, #28] - 8013b8e: 6013 str r3, [r2, #0] + 8013b9a: 4a81 ldr r2, [pc, #516] ; (8013da0 ) + 8013b9c: 69fb ldr r3, [r7, #28] + 8013b9e: 6013 str r3, [r2, #0] } else { TCP_STATS_INC(tcp.cachehit); } LWIP_ASSERT("tcp_input: pcb->next != pcb (after cache)", pcb->next != pcb); - 8013b90: 69fb ldr r3, [r7, #28] - 8013b92: 68db ldr r3, [r3, #12] - 8013b94: 69fa ldr r2, [r7, #28] - 8013b96: 429a cmp r2, r3 - 8013b98: d111 bne.n 8013bbe - 8013b9a: 4b7a ldr r3, [pc, #488] ; (8013d84 ) - 8013b9c: f240 1215 movw r2, #277 ; 0x115 - 8013ba0: 497c ldr r1, [pc, #496] ; (8013d94 ) - 8013ba2: 487a ldr r0, [pc, #488] ; (8013d8c ) - 8013ba4: f008 fd50 bl 801c648 + 8013ba0: 69fb ldr r3, [r7, #28] + 8013ba2: 68db ldr r3, [r3, #12] + 8013ba4: 69fa ldr r2, [r7, #28] + 8013ba6: 429a cmp r2, r3 + 8013ba8: d111 bne.n 8013bce + 8013baa: 4b7a ldr r3, [pc, #488] ; (8013d94 ) + 8013bac: f240 1215 movw r2, #277 ; 0x115 + 8013bb0: 497c ldr r1, [pc, #496] ; (8013da4 ) + 8013bb2: 487a ldr r0, [pc, #488] ; (8013d9c ) + 8013bb4: f008 fd50 bl 801c658 break; - 8013ba8: e009 b.n 8013bbe + 8013bb8: e009 b.n 8013bce } prev = pcb; - 8013baa: 69fb ldr r3, [r7, #28] - 8013bac: 61bb str r3, [r7, #24] + 8013bba: 69fb ldr r3, [r7, #28] + 8013bbc: 61bb str r3, [r7, #24] for (pcb = tcp_active_pcbs; pcb != NULL; pcb = pcb->next) { - 8013bae: 69fb ldr r3, [r7, #28] - 8013bb0: 68db ldr r3, [r3, #12] - 8013bb2: 61fb str r3, [r7, #28] - 8013bb4: 69fb ldr r3, [r7, #28] - 8013bb6: 2b00 cmp r3, #0 - 8013bb8: f47f af5e bne.w 8013a78 - 8013bbc: e000 b.n 8013bc0 + 8013bbe: 69fb ldr r3, [r7, #28] + 8013bc0: 68db ldr r3, [r3, #12] + 8013bc2: 61fb str r3, [r7, #28] + 8013bc4: 69fb ldr r3, [r7, #28] + 8013bc6: 2b00 cmp r3, #0 + 8013bc8: f47f af5e bne.w 8013a88 + 8013bcc: e000 b.n 8013bd0 break; - 8013bbe: bf00 nop + 8013bce: bf00 nop } if (pcb == NULL) { - 8013bc0: 69fb ldr r3, [r7, #28] - 8013bc2: 2b00 cmp r3, #0 - 8013bc4: f040 8095 bne.w 8013cf2 + 8013bd0: 69fb ldr r3, [r7, #28] + 8013bd2: 2b00 cmp r3, #0 + 8013bd4: f040 8095 bne.w 8013d02 /* If it did not go to an active connection, we check the connections in the TIME-WAIT state. */ for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 8013bc8: 4b73 ldr r3, [pc, #460] ; (8013d98 ) - 8013bca: 681b ldr r3, [r3, #0] - 8013bcc: 61fb str r3, [r7, #28] - 8013bce: e03f b.n 8013c50 + 8013bd8: 4b73 ldr r3, [pc, #460] ; (8013da8 ) + 8013bda: 681b ldr r3, [r3, #0] + 8013bdc: 61fb str r3, [r7, #28] + 8013bde: e03f b.n 8013c60 LWIP_ASSERT("tcp_input: TIME-WAIT pcb->state == TIME-WAIT", pcb->state == TIME_WAIT); - 8013bd0: 69fb ldr r3, [r7, #28] - 8013bd2: 7d1b ldrb r3, [r3, #20] - 8013bd4: 2b0a cmp r3, #10 - 8013bd6: d006 beq.n 8013be6 - 8013bd8: 4b6a ldr r3, [pc, #424] ; (8013d84 ) - 8013bda: f240 121f movw r2, #287 ; 0x11f - 8013bde: 496f ldr r1, [pc, #444] ; (8013d9c ) - 8013be0: 486a ldr r0, [pc, #424] ; (8013d8c ) - 8013be2: f008 fd31 bl 801c648 + 8013be0: 69fb ldr r3, [r7, #28] + 8013be2: 7d1b ldrb r3, [r3, #20] + 8013be4: 2b0a cmp r3, #10 + 8013be6: d006 beq.n 8013bf6 + 8013be8: 4b6a ldr r3, [pc, #424] ; (8013d94 ) + 8013bea: f240 121f movw r2, #287 ; 0x11f + 8013bee: 496f ldr r1, [pc, #444] ; (8013dac ) + 8013bf0: 486a ldr r0, [pc, #424] ; (8013d9c ) + 8013bf2: f008 fd31 bl 801c658 /* check if PCB is bound to specific netif */ if ((pcb->netif_idx != NETIF_NO_INDEX) && - 8013be6: 69fb ldr r3, [r7, #28] - 8013be8: 7a1b ldrb r3, [r3, #8] - 8013bea: 2b00 cmp r3, #0 - 8013bec: d009 beq.n 8013c02 + 8013bf6: 69fb ldr r3, [r7, #28] + 8013bf8: 7a1b ldrb r3, [r3, #8] + 8013bfa: 2b00 cmp r3, #0 + 8013bfc: d009 beq.n 8013c12 (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 8013bee: 69fb ldr r3, [r7, #28] - 8013bf0: 7a1a ldrb r2, [r3, #8] - 8013bf2: 4b63 ldr r3, [pc, #396] ; (8013d80 ) - 8013bf4: 685b ldr r3, [r3, #4] - 8013bf6: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8013bfa: 3301 adds r3, #1 - 8013bfc: b2db uxtb r3, r3 + 8013bfe: 69fb ldr r3, [r7, #28] + 8013c00: 7a1a ldrb r2, [r3, #8] + 8013c02: 4b63 ldr r3, [pc, #396] ; (8013d90 ) + 8013c04: 685b ldr r3, [r3, #4] + 8013c06: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8013c0a: 3301 adds r3, #1 + 8013c0c: b2db uxtb r3, r3 if ((pcb->netif_idx != NETIF_NO_INDEX) && - 8013bfe: 429a cmp r2, r3 - 8013c00: d122 bne.n 8013c48 + 8013c0e: 429a cmp r2, r3 + 8013c10: d122 bne.n 8013c58 continue; } if (pcb->remote_port == tcphdr->src && - 8013c02: 69fb ldr r3, [r7, #28] - 8013c04: 8b1a ldrh r2, [r3, #24] - 8013c06: 4b5d ldr r3, [pc, #372] ; (8013d7c ) - 8013c08: 681b ldr r3, [r3, #0] - 8013c0a: 881b ldrh r3, [r3, #0] - 8013c0c: b29b uxth r3, r3 - 8013c0e: 429a cmp r2, r3 - 8013c10: d11b bne.n 8013c4a - pcb->local_port == tcphdr->dest && 8013c12: 69fb ldr r3, [r7, #28] - 8013c14: 8ada ldrh r2, [r3, #22] - 8013c16: 4b59 ldr r3, [pc, #356] ; (8013d7c ) + 8013c14: 8b1a ldrh r2, [r3, #24] + 8013c16: 4b5d ldr r3, [pc, #372] ; (8013d8c ) 8013c18: 681b ldr r3, [r3, #0] - 8013c1a: 885b ldrh r3, [r3, #2] + 8013c1a: 881b ldrh r3, [r3, #0] 8013c1c: b29b uxth r3, r3 - if (pcb->remote_port == tcphdr->src && 8013c1e: 429a cmp r2, r3 - 8013c20: d113 bne.n 8013c4a - ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && + 8013c20: d11b bne.n 8013c5a + pcb->local_port == tcphdr->dest && 8013c22: 69fb ldr r3, [r7, #28] - 8013c24: 685a ldr r2, [r3, #4] - 8013c26: 4b56 ldr r3, [pc, #344] ; (8013d80 ) - 8013c28: 691b ldr r3, [r3, #16] + 8013c24: 8ada ldrh r2, [r3, #22] + 8013c26: 4b59 ldr r3, [pc, #356] ; (8013d8c ) + 8013c28: 681b ldr r3, [r3, #0] + 8013c2a: 885b ldrh r3, [r3, #2] + 8013c2c: b29b uxth r3, r3 + if (pcb->remote_port == tcphdr->src && + 8013c2e: 429a cmp r2, r3 + 8013c30: d113 bne.n 8013c5a + ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && + 8013c32: 69fb ldr r3, [r7, #28] + 8013c34: 685a ldr r2, [r3, #4] + 8013c36: 4b56 ldr r3, [pc, #344] ; (8013d90 ) + 8013c38: 691b ldr r3, [r3, #16] pcb->local_port == tcphdr->dest && - 8013c2a: 429a cmp r2, r3 - 8013c2c: d10d bne.n 8013c4a + 8013c3a: 429a cmp r2, r3 + 8013c3c: d10d bne.n 8013c5a ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - 8013c2e: 69fb ldr r3, [r7, #28] - 8013c30: 681a ldr r2, [r3, #0] - 8013c32: 4b53 ldr r3, [pc, #332] ; (8013d80 ) - 8013c34: 695b ldr r3, [r3, #20] + 8013c3e: 69fb ldr r3, [r7, #28] + 8013c40: 681a ldr r2, [r3, #0] + 8013c42: 4b53 ldr r3, [pc, #332] ; (8013d90 ) + 8013c44: 695b ldr r3, [r3, #20] ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()) && - 8013c36: 429a cmp r2, r3 - 8013c38: d107 bne.n 8013c4a + 8013c46: 429a cmp r2, r3 + 8013c48: d107 bne.n 8013c5a #ifdef LWIP_HOOK_TCP_INPACKET_PCB if (LWIP_HOOK_TCP_INPACKET_PCB(pcb, tcphdr, tcphdr_optlen, tcphdr_opt1len, tcphdr_opt2, p) == ERR_OK) #endif { tcp_timewait_input(pcb); - 8013c3a: 69f8 ldr r0, [r7, #28] - 8013c3c: f000 fb52 bl 80142e4 + 8013c4a: 69f8 ldr r0, [r7, #28] + 8013c4c: f000 fb52 bl 80142f4 } pbuf_free(p); - 8013c40: 6878 ldr r0, [r7, #4] - 8013c42: f7fd ffd1 bl 8011be8 + 8013c50: 6878 ldr r0, [r7, #4] + 8013c52: f7fd ffd1 bl 8011bf8 return; - 8013c46: e1ee b.n 8014026 + 8013c56: e1ee b.n 8014036 continue; - 8013c48: bf00 nop + 8013c58: bf00 nop for (pcb = tcp_tw_pcbs; pcb != NULL; pcb = pcb->next) { - 8013c4a: 69fb ldr r3, [r7, #28] - 8013c4c: 68db ldr r3, [r3, #12] - 8013c4e: 61fb str r3, [r7, #28] - 8013c50: 69fb ldr r3, [r7, #28] - 8013c52: 2b00 cmp r3, #0 - 8013c54: d1bc bne.n 8013bd0 + 8013c5a: 69fb ldr r3, [r7, #28] + 8013c5c: 68db ldr r3, [r3, #12] + 8013c5e: 61fb str r3, [r7, #28] + 8013c60: 69fb ldr r3, [r7, #28] + 8013c62: 2b00 cmp r3, #0 + 8013c64: d1bc bne.n 8013be0 } } /* Finally, if we still did not get a match, we check all PCBs that are LISTENing for incoming connections. */ prev = NULL; - 8013c56: 2300 movs r3, #0 - 8013c58: 61bb str r3, [r7, #24] + 8013c66: 2300 movs r3, #0 + 8013c68: 61bb str r3, [r7, #24] for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 8013c5a: 4b51 ldr r3, [pc, #324] ; (8013da0 ) - 8013c5c: 681b ldr r3, [r3, #0] - 8013c5e: 617b str r3, [r7, #20] - 8013c60: e02a b.n 8013cb8 + 8013c6a: 4b51 ldr r3, [pc, #324] ; (8013db0 ) + 8013c6c: 681b ldr r3, [r3, #0] + 8013c6e: 617b str r3, [r7, #20] + 8013c70: e02a b.n 8013cc8 /* check if PCB is bound to specific netif */ if ((lpcb->netif_idx != NETIF_NO_INDEX) && - 8013c62: 697b ldr r3, [r7, #20] - 8013c64: 7a1b ldrb r3, [r3, #8] - 8013c66: 2b00 cmp r3, #0 - 8013c68: d00c beq.n 8013c84 + 8013c72: 697b ldr r3, [r7, #20] + 8013c74: 7a1b ldrb r3, [r3, #8] + 8013c76: 2b00 cmp r3, #0 + 8013c78: d00c beq.n 8013c94 (lpcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 8013c6a: 697b ldr r3, [r7, #20] - 8013c6c: 7a1a ldrb r2, [r3, #8] - 8013c6e: 4b44 ldr r3, [pc, #272] ; (8013d80 ) - 8013c70: 685b ldr r3, [r3, #4] - 8013c72: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 8013c76: 3301 adds r3, #1 - 8013c78: b2db uxtb r3, r3 + 8013c7a: 697b ldr r3, [r7, #20] + 8013c7c: 7a1a ldrb r2, [r3, #8] + 8013c7e: 4b44 ldr r3, [pc, #272] ; (8013d90 ) + 8013c80: 685b ldr r3, [r3, #4] + 8013c82: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 8013c86: 3301 adds r3, #1 + 8013c88: b2db uxtb r3, r3 if ((lpcb->netif_idx != NETIF_NO_INDEX) && - 8013c7a: 429a cmp r2, r3 - 8013c7c: d002 beq.n 8013c84 + 8013c8a: 429a cmp r2, r3 + 8013c8c: d002 beq.n 8013c94 prev = (struct tcp_pcb *)lpcb; - 8013c7e: 697b ldr r3, [r7, #20] - 8013c80: 61bb str r3, [r7, #24] + 8013c8e: 697b ldr r3, [r7, #20] + 8013c90: 61bb str r3, [r7, #24] continue; - 8013c82: e016 b.n 8013cb2 + 8013c92: e016 b.n 8013cc2 } if (lpcb->local_port == tcphdr->dest) { - 8013c84: 697b ldr r3, [r7, #20] - 8013c86: 8ada ldrh r2, [r3, #22] - 8013c88: 4b3c ldr r3, [pc, #240] ; (8013d7c ) - 8013c8a: 681b ldr r3, [r3, #0] - 8013c8c: 885b ldrh r3, [r3, #2] - 8013c8e: b29b uxth r3, r3 - 8013c90: 429a cmp r2, r3 - 8013c92: d10c bne.n 8013cae + 8013c94: 697b ldr r3, [r7, #20] + 8013c96: 8ada ldrh r2, [r3, #22] + 8013c98: 4b3c ldr r3, [pc, #240] ; (8013d8c ) + 8013c9a: 681b ldr r3, [r3, #0] + 8013c9c: 885b ldrh r3, [r3, #2] + 8013c9e: b29b uxth r3, r3 + 8013ca0: 429a cmp r2, r3 + 8013ca2: d10c bne.n 8013cbe lpcb_prev = prev; #else /* SO_REUSE */ break; #endif /* SO_REUSE */ } else if (IP_ADDR_PCB_VERSION_MATCH_EXACT(lpcb, ip_current_dest_addr())) { if (ip_addr_cmp(&lpcb->local_ip, ip_current_dest_addr())) { - 8013c94: 697b ldr r3, [r7, #20] - 8013c96: 681a ldr r2, [r3, #0] - 8013c98: 4b39 ldr r3, [pc, #228] ; (8013d80 ) - 8013c9a: 695b ldr r3, [r3, #20] - 8013c9c: 429a cmp r2, r3 - 8013c9e: d00f beq.n 8013cc0 + 8013ca4: 697b ldr r3, [r7, #20] + 8013ca6: 681a ldr r2, [r3, #0] + 8013ca8: 4b39 ldr r3, [pc, #228] ; (8013d90 ) + 8013caa: 695b ldr r3, [r3, #20] + 8013cac: 429a cmp r2, r3 + 8013cae: d00f beq.n 8013cd0 /* found an exact match */ break; } else if (ip_addr_isany(&lpcb->local_ip)) { - 8013ca0: 697b ldr r3, [r7, #20] - 8013ca2: 2b00 cmp r3, #0 - 8013ca4: d00d beq.n 8013cc2 - 8013ca6: 697b ldr r3, [r7, #20] - 8013ca8: 681b ldr r3, [r3, #0] - 8013caa: 2b00 cmp r3, #0 - 8013cac: d009 beq.n 8013cc2 + 8013cb0: 697b ldr r3, [r7, #20] + 8013cb2: 2b00 cmp r3, #0 + 8013cb4: d00d beq.n 8013cd2 + 8013cb6: 697b ldr r3, [r7, #20] + 8013cb8: 681b ldr r3, [r3, #0] + 8013cba: 2b00 cmp r3, #0 + 8013cbc: d009 beq.n 8013cd2 break; #endif /* SO_REUSE */ } } } prev = (struct tcp_pcb *)lpcb; - 8013cae: 697b ldr r3, [r7, #20] - 8013cb0: 61bb str r3, [r7, #24] + 8013cbe: 697b ldr r3, [r7, #20] + 8013cc0: 61bb str r3, [r7, #24] for (lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) { - 8013cb2: 697b ldr r3, [r7, #20] - 8013cb4: 68db ldr r3, [r3, #12] - 8013cb6: 617b str r3, [r7, #20] - 8013cb8: 697b ldr r3, [r7, #20] - 8013cba: 2b00 cmp r3, #0 - 8013cbc: d1d1 bne.n 8013c62 - 8013cbe: e000 b.n 8013cc2 + 8013cc2: 697b ldr r3, [r7, #20] + 8013cc4: 68db ldr r3, [r3, #12] + 8013cc6: 617b str r3, [r7, #20] + 8013cc8: 697b ldr r3, [r7, #20] + 8013cca: 2b00 cmp r3, #0 + 8013ccc: d1d1 bne.n 8013c72 + 8013cce: e000 b.n 8013cd2 break; - 8013cc0: bf00 nop + 8013cd0: bf00 nop /* only pass to ANY if no specific local IP has been found */ lpcb = lpcb_any; prev = lpcb_prev; } #endif /* SO_REUSE */ if (lpcb != NULL) { - 8013cc2: 697b ldr r3, [r7, #20] - 8013cc4: 2b00 cmp r3, #0 - 8013cc6: d014 beq.n 8013cf2 + 8013cd2: 697b ldr r3, [r7, #20] + 8013cd4: 2b00 cmp r3, #0 + 8013cd6: d014 beq.n 8013d02 /* Move this PCB to the front of the list so that subsequent lookups will be faster (we exploit locality in TCP segment arrivals). */ if (prev != NULL) { - 8013cc8: 69bb ldr r3, [r7, #24] - 8013cca: 2b00 cmp r3, #0 - 8013ccc: d00a beq.n 8013ce4 + 8013cd8: 69bb ldr r3, [r7, #24] + 8013cda: 2b00 cmp r3, #0 + 8013cdc: d00a beq.n 8013cf4 ((struct tcp_pcb_listen *)prev)->next = lpcb->next; - 8013cce: 697b ldr r3, [r7, #20] - 8013cd0: 68da ldr r2, [r3, #12] - 8013cd2: 69bb ldr r3, [r7, #24] - 8013cd4: 60da str r2, [r3, #12] + 8013cde: 697b ldr r3, [r7, #20] + 8013ce0: 68da ldr r2, [r3, #12] + 8013ce2: 69bb ldr r3, [r7, #24] + 8013ce4: 60da str r2, [r3, #12] /* our successor is the remainder of the listening list */ lpcb->next = tcp_listen_pcbs.listen_pcbs; - 8013cd6: 4b32 ldr r3, [pc, #200] ; (8013da0 ) - 8013cd8: 681a ldr r2, [r3, #0] - 8013cda: 697b ldr r3, [r7, #20] - 8013cdc: 60da str r2, [r3, #12] + 8013ce6: 4b32 ldr r3, [pc, #200] ; (8013db0 ) + 8013ce8: 681a ldr r2, [r3, #0] + 8013cea: 697b ldr r3, [r7, #20] + 8013cec: 60da str r2, [r3, #12] /* put this listening pcb at the head of the listening list */ tcp_listen_pcbs.listen_pcbs = lpcb; - 8013cde: 4a30 ldr r2, [pc, #192] ; (8013da0 ) - 8013ce0: 697b ldr r3, [r7, #20] - 8013ce2: 6013 str r3, [r2, #0] + 8013cee: 4a30 ldr r2, [pc, #192] ; (8013db0 ) + 8013cf0: 697b ldr r3, [r7, #20] + 8013cf2: 6013 str r3, [r2, #0] #ifdef LWIP_HOOK_TCP_INPACKET_PCB if (LWIP_HOOK_TCP_INPACKET_PCB((struct tcp_pcb *)lpcb, tcphdr, tcphdr_optlen, tcphdr_opt1len, tcphdr_opt2, p) == ERR_OK) #endif { tcp_listen_input(lpcb); - 8013ce4: 6978 ldr r0, [r7, #20] - 8013ce6: f000 f9ff bl 80140e8 + 8013cf4: 6978 ldr r0, [r7, #20] + 8013cf6: f000 f9ff bl 80140f8 } pbuf_free(p); - 8013cea: 6878 ldr r0, [r7, #4] - 8013cec: f7fd ff7c bl 8011be8 + 8013cfa: 6878 ldr r0, [r7, #4] + 8013cfc: f7fd ff7c bl 8011bf8 return; - 8013cf0: e199 b.n 8014026 + 8013d00: e199 b.n 8014036 tcphdr_opt1len, tcphdr_opt2, p) != ERR_OK) { pbuf_free(p); return; } #endif if (pcb != NULL) { - 8013cf2: 69fb ldr r3, [r7, #28] - 8013cf4: 2b00 cmp r3, #0 - 8013cf6: f000 8160 beq.w 8013fba + 8013d02: 69fb ldr r3, [r7, #28] + 8013d04: 2b00 cmp r3, #0 + 8013d06: f000 8160 beq.w 8013fca #if TCP_INPUT_DEBUG tcp_debug_print_state(pcb->state); #endif /* TCP_INPUT_DEBUG */ /* Set up a tcp_seg structure. */ inseg.next = NULL; - 8013cfa: 4b2a ldr r3, [pc, #168] ; (8013da4 ) - 8013cfc: 2200 movs r2, #0 - 8013cfe: 601a str r2, [r3, #0] + 8013d0a: 4b2a ldr r3, [pc, #168] ; (8013db4 ) + 8013d0c: 2200 movs r2, #0 + 8013d0e: 601a str r2, [r3, #0] inseg.len = p->tot_len; - 8013d00: 687b ldr r3, [r7, #4] - 8013d02: 891a ldrh r2, [r3, #8] - 8013d04: 4b27 ldr r3, [pc, #156] ; (8013da4 ) - 8013d06: 811a strh r2, [r3, #8] + 8013d10: 687b ldr r3, [r7, #4] + 8013d12: 891a ldrh r2, [r3, #8] + 8013d14: 4b27 ldr r3, [pc, #156] ; (8013db4 ) + 8013d16: 811a strh r2, [r3, #8] inseg.p = p; - 8013d08: 4a26 ldr r2, [pc, #152] ; (8013da4 ) - 8013d0a: 687b ldr r3, [r7, #4] - 8013d0c: 6053 str r3, [r2, #4] + 8013d18: 4a26 ldr r2, [pc, #152] ; (8013db4 ) + 8013d1a: 687b ldr r3, [r7, #4] + 8013d1c: 6053 str r3, [r2, #4] inseg.tcphdr = tcphdr; - 8013d0e: 4b1b ldr r3, [pc, #108] ; (8013d7c ) - 8013d10: 681b ldr r3, [r3, #0] - 8013d12: 4a24 ldr r2, [pc, #144] ; (8013da4 ) - 8013d14: 60d3 str r3, [r2, #12] + 8013d1e: 4b1b ldr r3, [pc, #108] ; (8013d8c ) + 8013d20: 681b ldr r3, [r3, #0] + 8013d22: 4a24 ldr r2, [pc, #144] ; (8013db4 ) + 8013d24: 60d3 str r3, [r2, #12] recv_data = NULL; - 8013d16: 4b24 ldr r3, [pc, #144] ; (8013da8 ) - 8013d18: 2200 movs r2, #0 - 8013d1a: 601a str r2, [r3, #0] + 8013d26: 4b24 ldr r3, [pc, #144] ; (8013db8 ) + 8013d28: 2200 movs r2, #0 + 8013d2a: 601a str r2, [r3, #0] recv_flags = 0; - 8013d1c: 4b23 ldr r3, [pc, #140] ; (8013dac ) - 8013d1e: 2200 movs r2, #0 - 8013d20: 701a strb r2, [r3, #0] + 8013d2c: 4b23 ldr r3, [pc, #140] ; (8013dbc ) + 8013d2e: 2200 movs r2, #0 + 8013d30: 701a strb r2, [r3, #0] recv_acked = 0; - 8013d22: 4b23 ldr r3, [pc, #140] ; (8013db0 ) - 8013d24: 2200 movs r2, #0 - 8013d26: 801a strh r2, [r3, #0] + 8013d32: 4b23 ldr r3, [pc, #140] ; (8013dc0 ) + 8013d34: 2200 movs r2, #0 + 8013d36: 801a strh r2, [r3, #0] if (flags & TCP_PSH) { - 8013d28: 4b22 ldr r3, [pc, #136] ; (8013db4 ) - 8013d2a: 781b ldrb r3, [r3, #0] - 8013d2c: f003 0308 and.w r3, r3, #8 - 8013d30: 2b00 cmp r3, #0 - 8013d32: d006 beq.n 8013d42 + 8013d38: 4b22 ldr r3, [pc, #136] ; (8013dc4 ) + 8013d3a: 781b ldrb r3, [r3, #0] + 8013d3c: f003 0308 and.w r3, r3, #8 + 8013d40: 2b00 cmp r3, #0 + 8013d42: d006 beq.n 8013d52 p->flags |= PBUF_FLAG_PUSH; - 8013d34: 687b ldr r3, [r7, #4] - 8013d36: 7b5b ldrb r3, [r3, #13] - 8013d38: f043 0301 orr.w r3, r3, #1 - 8013d3c: b2da uxtb r2, r3 - 8013d3e: 687b ldr r3, [r7, #4] - 8013d40: 735a strb r2, [r3, #13] + 8013d44: 687b ldr r3, [r7, #4] + 8013d46: 7b5b ldrb r3, [r3, #13] + 8013d48: f043 0301 orr.w r3, r3, #1 + 8013d4c: b2da uxtb r2, r3 + 8013d4e: 687b ldr r3, [r7, #4] + 8013d50: 735a strb r2, [r3, #13] } /* If there is data which was previously "refused" by upper layer */ if (pcb->refused_data != NULL) { - 8013d42: 69fb ldr r3, [r7, #28] - 8013d44: 6f9b ldr r3, [r3, #120] ; 0x78 - 8013d46: 2b00 cmp r3, #0 - 8013d48: d038 beq.n 8013dbc + 8013d52: 69fb ldr r3, [r7, #28] + 8013d54: 6f9b ldr r3, [r3, #120] ; 0x78 + 8013d56: 2b00 cmp r3, #0 + 8013d58: d038 beq.n 8013dcc if ((tcp_process_refused_data(pcb) == ERR_ABRT) || - 8013d4a: 69f8 ldr r0, [r7, #28] - 8013d4c: f7ff f940 bl 8012fd0 - 8013d50: 4603 mov r3, r0 - 8013d52: f113 0f0d cmn.w r3, #13 - 8013d56: d007 beq.n 8013d68 + 8013d5a: 69f8 ldr r0, [r7, #28] + 8013d5c: f7ff f940 bl 8012fe0 + 8013d60: 4603 mov r3, r0 + 8013d62: f113 0f0d cmn.w r3, #13 + 8013d66: d007 beq.n 8013d78 ((pcb->refused_data != NULL) && (tcplen > 0))) { - 8013d58: 69fb ldr r3, [r7, #28] - 8013d5a: 6f9b ldr r3, [r3, #120] ; 0x78 + 8013d68: 69fb ldr r3, [r7, #28] + 8013d6a: 6f9b ldr r3, [r3, #120] ; 0x78 if ((tcp_process_refused_data(pcb) == ERR_ABRT) || - 8013d5c: 2b00 cmp r3, #0 - 8013d5e: d02d beq.n 8013dbc + 8013d6c: 2b00 cmp r3, #0 + 8013d6e: d02d beq.n 8013dcc ((pcb->refused_data != NULL) && (tcplen > 0))) { - 8013d60: 4b15 ldr r3, [pc, #84] ; (8013db8 ) - 8013d62: 881b ldrh r3, [r3, #0] - 8013d64: 2b00 cmp r3, #0 - 8013d66: d029 beq.n 8013dbc + 8013d70: 4b15 ldr r3, [pc, #84] ; (8013dc8 ) + 8013d72: 881b ldrh r3, [r3, #0] + 8013d74: 2b00 cmp r3, #0 + 8013d76: d029 beq.n 8013dcc /* pcb has been aborted or refused data is still refused and the new segment contains data */ if (pcb->rcv_ann_wnd == 0) { - 8013d68: 69fb ldr r3, [r7, #28] - 8013d6a: 8d5b ldrh r3, [r3, #42] ; 0x2a - 8013d6c: 2b00 cmp r3, #0 - 8013d6e: f040 8104 bne.w 8013f7a + 8013d78: 69fb ldr r3, [r7, #28] + 8013d7a: 8d5b ldrh r3, [r3, #42] ; 0x2a + 8013d7c: 2b00 cmp r3, #0 + 8013d7e: f040 8104 bne.w 8013f8a /* this is a zero-window probe, we respond to it with current RCV.NXT and drop the data segment */ tcp_send_empty_ack(pcb); - 8013d72: 69f8 ldr r0, [r7, #28] - 8013d74: f003 f9ce bl 8017114 + 8013d82: 69f8 ldr r0, [r7, #28] + 8013d84: f003 f9ce bl 8017124 } TCP_STATS_INC(tcp.drop); MIB2_STATS_INC(mib2.tcpinerrs); goto aborted; - 8013d78: e0ff b.n 8013f7a - 8013d7a: bf00 nop - 8013d7c: 20008730 .word 0x20008730 - 8013d80: 2000c0bc .word 0x2000c0bc - 8013d84: 0801ec40 .word 0x0801ec40 - 8013d88: 0801ed6c .word 0x0801ed6c - 8013d8c: 0801ec8c .word 0x0801ec8c - 8013d90: 2000f7f0 .word 0x2000f7f0 - 8013d94: 0801ed98 .word 0x0801ed98 - 8013d98: 2000f800 .word 0x2000f800 - 8013d9c: 0801edc4 .word 0x0801edc4 - 8013da0: 2000f7f8 .word 0x2000f7f8 - 8013da4: 20008720 .word 0x20008720 - 8013da8: 20008750 .word 0x20008750 - 8013dac: 2000874d .word 0x2000874d - 8013db0: 20008748 .word 0x20008748 - 8013db4: 2000874c .word 0x2000874c - 8013db8: 2000874a .word 0x2000874a + 8013d88: e0ff b.n 8013f8a + 8013d8a: bf00 nop + 8013d8c: 20008730 .word 0x20008730 + 8013d90: 2000c0bc .word 0x2000c0bc + 8013d94: 0801ec50 .word 0x0801ec50 + 8013d98: 0801ed7c .word 0x0801ed7c + 8013d9c: 0801ec9c .word 0x0801ec9c + 8013da0: 2000f7f0 .word 0x2000f7f0 + 8013da4: 0801eda8 .word 0x0801eda8 + 8013da8: 2000f800 .word 0x2000f800 + 8013dac: 0801edd4 .word 0x0801edd4 + 8013db0: 2000f7f8 .word 0x2000f7f8 + 8013db4: 20008720 .word 0x20008720 + 8013db8: 20008750 .word 0x20008750 + 8013dbc: 2000874d .word 0x2000874d + 8013dc0: 20008748 .word 0x20008748 + 8013dc4: 2000874c .word 0x2000874c + 8013dc8: 2000874a .word 0x2000874a } } tcp_input_pcb = pcb; - 8013dbc: 4a9b ldr r2, [pc, #620] ; (801402c ) - 8013dbe: 69fb ldr r3, [r7, #28] - 8013dc0: 6013 str r3, [r2, #0] + 8013dcc: 4a9b ldr r2, [pc, #620] ; (801403c ) + 8013dce: 69fb ldr r3, [r7, #28] + 8013dd0: 6013 str r3, [r2, #0] err = tcp_process(pcb); - 8013dc2: 69f8 ldr r0, [r7, #28] - 8013dc4: f000 fb0a bl 80143dc - 8013dc8: 4603 mov r3, r0 - 8013dca: 74fb strb r3, [r7, #19] + 8013dd2: 69f8 ldr r0, [r7, #28] + 8013dd4: f000 fb0a bl 80143ec + 8013dd8: 4603 mov r3, r0 + 8013dda: 74fb strb r3, [r7, #19] /* A return value of ERR_ABRT means that tcp_abort() was called and that the pcb has been freed. If so, we don't do anything. */ if (err != ERR_ABRT) { - 8013dcc: f997 3013 ldrsb.w r3, [r7, #19] - 8013dd0: f113 0f0d cmn.w r3, #13 - 8013dd4: f000 80d3 beq.w 8013f7e + 8013ddc: f997 3013 ldrsb.w r3, [r7, #19] + 8013de0: f113 0f0d cmn.w r3, #13 + 8013de4: f000 80d3 beq.w 8013f8e if (recv_flags & TF_RESET) { - 8013dd8: 4b95 ldr r3, [pc, #596] ; (8014030 ) - 8013dda: 781b ldrb r3, [r3, #0] - 8013ddc: f003 0308 and.w r3, r3, #8 - 8013de0: 2b00 cmp r3, #0 - 8013de2: d015 beq.n 8013e10 + 8013de8: 4b95 ldr r3, [pc, #596] ; (8014040 ) + 8013dea: 781b ldrb r3, [r3, #0] + 8013dec: f003 0308 and.w r3, r3, #8 + 8013df0: 2b00 cmp r3, #0 + 8013df2: d015 beq.n 8013e20 /* TF_RESET means that the connection was reset by the other end. We then call the error callback to inform the application that the connection is dead before we deallocate the PCB. */ TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_RST); - 8013de4: 69fb ldr r3, [r7, #28] - 8013de6: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8013dea: 2b00 cmp r3, #0 - 8013dec: d008 beq.n 8013e00 - 8013dee: 69fb ldr r3, [r7, #28] - 8013df0: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 8013df4: 69fa ldr r2, [r7, #28] - 8013df6: 6912 ldr r2, [r2, #16] - 8013df8: f06f 010d mvn.w r1, #13 - 8013dfc: 4610 mov r0, r2 - 8013dfe: 4798 blx r3 + 8013df4: 69fb ldr r3, [r7, #28] + 8013df6: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8013dfa: 2b00 cmp r3, #0 + 8013dfc: d008 beq.n 8013e10 + 8013dfe: 69fb ldr r3, [r7, #28] + 8013e00: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 8013e04: 69fa ldr r2, [r7, #28] + 8013e06: 6912 ldr r2, [r2, #16] + 8013e08: f06f 010d mvn.w r1, #13 + 8013e0c: 4610 mov r0, r2 + 8013e0e: 4798 blx r3 tcp_pcb_remove(&tcp_active_pcbs, pcb); - 8013e00: 69f9 ldr r1, [r7, #28] - 8013e02: 488c ldr r0, [pc, #560] ; (8014034 ) - 8013e04: f7ff fbb0 bl 8013568 + 8013e10: 69f9 ldr r1, [r7, #28] + 8013e12: 488c ldr r0, [pc, #560] ; (8014044 ) + 8013e14: f7ff fbb0 bl 8013578 tcp_free(pcb); - 8013e08: 69f8 ldr r0, [r7, #28] - 8013e0a: f7fe f9a9 bl 8012160 - 8013e0e: e0c1 b.n 8013f94 + 8013e18: 69f8 ldr r0, [r7, #28] + 8013e1a: f7fe f9a9 bl 8012170 + 8013e1e: e0c1 b.n 8013fa4 } else { err = ERR_OK; - 8013e10: 2300 movs r3, #0 - 8013e12: 74fb strb r3, [r7, #19] + 8013e20: 2300 movs r3, #0 + 8013e22: 74fb strb r3, [r7, #19] /* If the application has registered a "sent" function to be called when new send buffer space is available, we call it now. */ if (recv_acked > 0) { - 8013e14: 4b88 ldr r3, [pc, #544] ; (8014038 ) - 8013e16: 881b ldrh r3, [r3, #0] - 8013e18: 2b00 cmp r3, #0 - 8013e1a: d01d beq.n 8013e58 + 8013e24: 4b88 ldr r3, [pc, #544] ; (8014048 ) + 8013e26: 881b ldrh r3, [r3, #0] + 8013e28: 2b00 cmp r3, #0 + 8013e2a: d01d beq.n 8013e68 while (acked > 0) { acked16 = (u16_t)LWIP_MIN(acked, 0xffffu); acked -= acked16; #else { acked16 = recv_acked; - 8013e1c: 4b86 ldr r3, [pc, #536] ; (8014038 ) - 8013e1e: 881b ldrh r3, [r3, #0] - 8013e20: 81fb strh r3, [r7, #14] + 8013e2c: 4b86 ldr r3, [pc, #536] ; (8014048 ) + 8013e2e: 881b ldrh r3, [r3, #0] + 8013e30: 81fb strh r3, [r7, #14] #endif TCP_EVENT_SENT(pcb, (u16_t)acked16, err); - 8013e22: 69fb ldr r3, [r7, #28] - 8013e24: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 8013e28: 2b00 cmp r3, #0 - 8013e2a: d00a beq.n 8013e42 - 8013e2c: 69fb ldr r3, [r7, #28] - 8013e2e: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 - 8013e32: 69fa ldr r2, [r7, #28] - 8013e34: 6910 ldr r0, [r2, #16] - 8013e36: 89fa ldrh r2, [r7, #14] - 8013e38: 69f9 ldr r1, [r7, #28] - 8013e3a: 4798 blx r3 - 8013e3c: 4603 mov r3, r0 - 8013e3e: 74fb strb r3, [r7, #19] - 8013e40: e001 b.n 8013e46 - 8013e42: 2300 movs r3, #0 - 8013e44: 74fb strb r3, [r7, #19] + 8013e32: 69fb ldr r3, [r7, #28] + 8013e34: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 + 8013e38: 2b00 cmp r3, #0 + 8013e3a: d00a beq.n 8013e52 + 8013e3c: 69fb ldr r3, [r7, #28] + 8013e3e: f8d3 3080 ldr.w r3, [r3, #128] ; 0x80 + 8013e42: 69fa ldr r2, [r7, #28] + 8013e44: 6910 ldr r0, [r2, #16] + 8013e46: 89fa ldrh r2, [r7, #14] + 8013e48: 69f9 ldr r1, [r7, #28] + 8013e4a: 4798 blx r3 + 8013e4c: 4603 mov r3, r0 + 8013e4e: 74fb strb r3, [r7, #19] + 8013e50: e001 b.n 8013e56 + 8013e52: 2300 movs r3, #0 + 8013e54: 74fb strb r3, [r7, #19] if (err == ERR_ABRT) { - 8013e46: f997 3013 ldrsb.w r3, [r7, #19] - 8013e4a: f113 0f0d cmn.w r3, #13 - 8013e4e: f000 8098 beq.w 8013f82 + 8013e56: f997 3013 ldrsb.w r3, [r7, #19] + 8013e5a: f113 0f0d cmn.w r3, #13 + 8013e5e: f000 8098 beq.w 8013f92 goto aborted; } } recv_acked = 0; - 8013e52: 4b79 ldr r3, [pc, #484] ; (8014038 ) - 8013e54: 2200 movs r2, #0 - 8013e56: 801a strh r2, [r3, #0] + 8013e62: 4b79 ldr r3, [pc, #484] ; (8014048 ) + 8013e64: 2200 movs r2, #0 + 8013e66: 801a strh r2, [r3, #0] } if (tcp_input_delayed_close(pcb)) { - 8013e58: 69f8 ldr r0, [r7, #28] - 8013e5a: f000 f905 bl 8014068 - 8013e5e: 4603 mov r3, r0 - 8013e60: 2b00 cmp r3, #0 - 8013e62: f040 8090 bne.w 8013f86 + 8013e68: 69f8 ldr r0, [r7, #28] + 8013e6a: f000 f905 bl 8014078 + 8013e6e: 4603 mov r3, r0 + 8013e70: 2b00 cmp r3, #0 + 8013e72: f040 8090 bne.w 8013f96 #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE while (recv_data != NULL) { struct pbuf *rest = NULL; pbuf_split_64k(recv_data, &rest); #else /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ if (recv_data != NULL) { - 8013e66: 4b75 ldr r3, [pc, #468] ; (801403c ) - 8013e68: 681b ldr r3, [r3, #0] - 8013e6a: 2b00 cmp r3, #0 - 8013e6c: d041 beq.n 8013ef2 + 8013e76: 4b75 ldr r3, [pc, #468] ; (801404c ) + 8013e78: 681b ldr r3, [r3, #0] + 8013e7a: 2b00 cmp r3, #0 + 8013e7c: d041 beq.n 8013f02 #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ LWIP_ASSERT("pcb->refused_data == NULL", pcb->refused_data == NULL); - 8013e6e: 69fb ldr r3, [r7, #28] - 8013e70: 6f9b ldr r3, [r3, #120] ; 0x78 - 8013e72: 2b00 cmp r3, #0 - 8013e74: d006 beq.n 8013e84 - 8013e76: 4b72 ldr r3, [pc, #456] ; (8014040 ) - 8013e78: f44f 72f3 mov.w r2, #486 ; 0x1e6 - 8013e7c: 4971 ldr r1, [pc, #452] ; (8014044 ) - 8013e7e: 4872 ldr r0, [pc, #456] ; (8014048 ) - 8013e80: f008 fbe2 bl 801c648 + 8013e7e: 69fb ldr r3, [r7, #28] + 8013e80: 6f9b ldr r3, [r3, #120] ; 0x78 + 8013e82: 2b00 cmp r3, #0 + 8013e84: d006 beq.n 8013e94 + 8013e86: 4b72 ldr r3, [pc, #456] ; (8014050 ) + 8013e88: f44f 72f3 mov.w r2, #486 ; 0x1e6 + 8013e8c: 4971 ldr r1, [pc, #452] ; (8014054 ) + 8013e8e: 4872 ldr r0, [pc, #456] ; (8014058 ) + 8013e90: f008 fbe2 bl 801c658 if (pcb->flags & TF_RXCLOSED) { - 8013e84: 69fb ldr r3, [r7, #28] - 8013e86: 8b5b ldrh r3, [r3, #26] - 8013e88: f003 0310 and.w r3, r3, #16 - 8013e8c: 2b00 cmp r3, #0 - 8013e8e: d008 beq.n 8013ea2 + 8013e94: 69fb ldr r3, [r7, #28] + 8013e96: 8b5b ldrh r3, [r3, #26] + 8013e98: f003 0310 and.w r3, r3, #16 + 8013e9c: 2b00 cmp r3, #0 + 8013e9e: d008 beq.n 8013eb2 /* received data although already closed -> abort (send RST) to notify the remote host that not all data has been processed */ pbuf_free(recv_data); - 8013e90: 4b6a ldr r3, [pc, #424] ; (801403c ) - 8013e92: 681b ldr r3, [r3, #0] - 8013e94: 4618 mov r0, r3 - 8013e96: f7fd fea7 bl 8011be8 + 8013ea0: 4b6a ldr r3, [pc, #424] ; (801404c ) + 8013ea2: 681b ldr r3, [r3, #0] + 8013ea4: 4618 mov r0, r3 + 8013ea6: f7fd fea7 bl 8011bf8 #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE if (rest != NULL) { pbuf_free(rest); } #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ tcp_abort(pcb); - 8013e9a: 69f8 ldr r0, [r7, #28] - 8013e9c: f7fe fc40 bl 8012720 + 8013eaa: 69f8 ldr r0, [r7, #28] + 8013eac: f7fe fc40 bl 8012730 goto aborted; - 8013ea0: e078 b.n 8013f94 + 8013eb0: e078 b.n 8013fa4 } /* Notify application that data has been received. */ TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err); - 8013ea2: 69fb ldr r3, [r7, #28] - 8013ea4: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8013ea8: 2b00 cmp r3, #0 - 8013eaa: d00c beq.n 8013ec6 - 8013eac: 69fb ldr r3, [r7, #28] - 8013eae: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 8013eb2: 69fb ldr r3, [r7, #28] - 8013eb4: 6918 ldr r0, [r3, #16] - 8013eb6: 4b61 ldr r3, [pc, #388] ; (801403c ) - 8013eb8: 681a ldr r2, [r3, #0] - 8013eba: 2300 movs r3, #0 - 8013ebc: 69f9 ldr r1, [r7, #28] - 8013ebe: 47a0 blx r4 - 8013ec0: 4603 mov r3, r0 - 8013ec2: 74fb strb r3, [r7, #19] - 8013ec4: e008 b.n 8013ed8 - 8013ec6: 4b5d ldr r3, [pc, #372] ; (801403c ) + 8013eb4: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8013eb8: 2b00 cmp r3, #0 + 8013eba: d00c beq.n 8013ed6 + 8013ebc: 69fb ldr r3, [r7, #28] + 8013ebe: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 + 8013ec2: 69fb ldr r3, [r7, #28] + 8013ec4: 6918 ldr r0, [r3, #16] + 8013ec6: 4b61 ldr r3, [pc, #388] ; (801404c ) 8013ec8: 681a ldr r2, [r3, #0] 8013eca: 2300 movs r3, #0 8013ecc: 69f9 ldr r1, [r7, #28] - 8013ece: 2000 movs r0, #0 - 8013ed0: f7ff f952 bl 8013178 - 8013ed4: 4603 mov r3, r0 - 8013ed6: 74fb strb r3, [r7, #19] + 8013ece: 47a0 blx r4 + 8013ed0: 4603 mov r3, r0 + 8013ed2: 74fb strb r3, [r7, #19] + 8013ed4: e008 b.n 8013ee8 + 8013ed6: 4b5d ldr r3, [pc, #372] ; (801404c ) + 8013ed8: 681a ldr r2, [r3, #0] + 8013eda: 2300 movs r3, #0 + 8013edc: 69f9 ldr r1, [r7, #28] + 8013ede: 2000 movs r0, #0 + 8013ee0: f7ff f952 bl 8013188 + 8013ee4: 4603 mov r3, r0 + 8013ee6: 74fb strb r3, [r7, #19] if (err == ERR_ABRT) { - 8013ed8: f997 3013 ldrsb.w r3, [r7, #19] - 8013edc: f113 0f0d cmn.w r3, #13 - 8013ee0: d053 beq.n 8013f8a + 8013ee8: f997 3013 ldrsb.w r3, [r7, #19] + 8013eec: f113 0f0d cmn.w r3, #13 + 8013ef0: d053 beq.n 8013f9a #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ goto aborted; } /* If the upper layer can't receive this data, store it */ if (err != ERR_OK) { - 8013ee2: f997 3013 ldrsb.w r3, [r7, #19] - 8013ee6: 2b00 cmp r3, #0 - 8013ee8: d003 beq.n 8013ef2 + 8013ef2: f997 3013 ldrsb.w r3, [r7, #19] + 8013ef6: 2b00 cmp r3, #0 + 8013ef8: d003 beq.n 8013f02 #if TCP_QUEUE_OOSEQ && LWIP_WND_SCALE if (rest != NULL) { pbuf_cat(recv_data, rest); } #endif /* TCP_QUEUE_OOSEQ && LWIP_WND_SCALE */ pcb->refused_data = recv_data; - 8013eea: 4b54 ldr r3, [pc, #336] ; (801403c ) - 8013eec: 681a ldr r2, [r3, #0] - 8013eee: 69fb ldr r3, [r7, #28] - 8013ef0: 679a str r2, [r3, #120] ; 0x78 + 8013efa: 4b54 ldr r3, [pc, #336] ; (801404c ) + 8013efc: 681a ldr r2, [r3, #0] + 8013efe: 69fb ldr r3, [r7, #28] + 8013f00: 679a str r2, [r3, #120] ; 0x78 } } /* If a FIN segment was received, we call the callback function with a NULL buffer to indicate EOF. */ if (recv_flags & TF_GOT_FIN) { - 8013ef2: 4b4f ldr r3, [pc, #316] ; (8014030 ) - 8013ef4: 781b ldrb r3, [r3, #0] - 8013ef6: f003 0320 and.w r3, r3, #32 - 8013efa: 2b00 cmp r3, #0 - 8013efc: d030 beq.n 8013f60 + 8013f02: 4b4f ldr r3, [pc, #316] ; (8014040 ) + 8013f04: 781b ldrb r3, [r3, #0] + 8013f06: f003 0320 and.w r3, r3, #32 + 8013f0a: 2b00 cmp r3, #0 + 8013f0c: d030 beq.n 8013f70 if (pcb->refused_data != NULL) { - 8013efe: 69fb ldr r3, [r7, #28] - 8013f00: 6f9b ldr r3, [r3, #120] ; 0x78 - 8013f02: 2b00 cmp r3, #0 - 8013f04: d009 beq.n 8013f1a + 8013f0e: 69fb ldr r3, [r7, #28] + 8013f10: 6f9b ldr r3, [r3, #120] ; 0x78 + 8013f12: 2b00 cmp r3, #0 + 8013f14: d009 beq.n 8013f2a /* Delay this if we have refused data. */ pcb->refused_data->flags |= PBUF_FLAG_TCP_FIN; - 8013f06: 69fb ldr r3, [r7, #28] - 8013f08: 6f9b ldr r3, [r3, #120] ; 0x78 - 8013f0a: 7b5a ldrb r2, [r3, #13] - 8013f0c: 69fb ldr r3, [r7, #28] - 8013f0e: 6f9b ldr r3, [r3, #120] ; 0x78 - 8013f10: f042 0220 orr.w r2, r2, #32 - 8013f14: b2d2 uxtb r2, r2 - 8013f16: 735a strb r2, [r3, #13] - 8013f18: e022 b.n 8013f60 + 8013f16: 69fb ldr r3, [r7, #28] + 8013f18: 6f9b ldr r3, [r3, #120] ; 0x78 + 8013f1a: 7b5a ldrb r2, [r3, #13] + 8013f1c: 69fb ldr r3, [r7, #28] + 8013f1e: 6f9b ldr r3, [r3, #120] ; 0x78 + 8013f20: f042 0220 orr.w r2, r2, #32 + 8013f24: b2d2 uxtb r2, r2 + 8013f26: 735a strb r2, [r3, #13] + 8013f28: e022 b.n 8013f70 } else { /* correct rcv_wnd as the application won't call tcp_recved() for the FIN's seqno */ if (pcb->rcv_wnd != TCP_WND_MAX(pcb)) { - 8013f1a: 69fb ldr r3, [r7, #28] - 8013f1c: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8013f1e: f5b3 6f06 cmp.w r3, #2144 ; 0x860 - 8013f22: d005 beq.n 8013f30 + 8013f2a: 69fb ldr r3, [r7, #28] + 8013f2c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8013f2e: f5b3 6f06 cmp.w r3, #2144 ; 0x860 + 8013f32: d005 beq.n 8013f40 pcb->rcv_wnd++; - 8013f24: 69fb ldr r3, [r7, #28] - 8013f26: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8013f28: 3301 adds r3, #1 - 8013f2a: b29a uxth r2, r3 - 8013f2c: 69fb ldr r3, [r7, #28] - 8013f2e: 851a strh r2, [r3, #40] ; 0x28 + 8013f34: 69fb ldr r3, [r7, #28] + 8013f36: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8013f38: 3301 adds r3, #1 + 8013f3a: b29a uxth r2, r3 + 8013f3c: 69fb ldr r3, [r7, #28] + 8013f3e: 851a strh r2, [r3, #40] ; 0x28 } TCP_EVENT_CLOSED(pcb, err); - 8013f30: 69fb ldr r3, [r7, #28] - 8013f32: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 - 8013f36: 2b00 cmp r3, #0 - 8013f38: d00b beq.n 8013f52 - 8013f3a: 69fb ldr r3, [r7, #28] - 8013f3c: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 8013f40: 69fb ldr r3, [r7, #28] - 8013f42: 6918 ldr r0, [r3, #16] - 8013f44: 2300 movs r3, #0 - 8013f46: 2200 movs r2, #0 - 8013f48: 69f9 ldr r1, [r7, #28] - 8013f4a: 47a0 blx r4 - 8013f4c: 4603 mov r3, r0 - 8013f4e: 74fb strb r3, [r7, #19] - 8013f50: e001 b.n 8013f56 - 8013f52: 2300 movs r3, #0 - 8013f54: 74fb strb r3, [r7, #19] + 8013f42: f8d3 3084 ldr.w r3, [r3, #132] ; 0x84 + 8013f46: 2b00 cmp r3, #0 + 8013f48: d00b beq.n 8013f62 + 8013f4a: 69fb ldr r3, [r7, #28] + 8013f4c: f8d3 4084 ldr.w r4, [r3, #132] ; 0x84 + 8013f50: 69fb ldr r3, [r7, #28] + 8013f52: 6918 ldr r0, [r3, #16] + 8013f54: 2300 movs r3, #0 + 8013f56: 2200 movs r2, #0 + 8013f58: 69f9 ldr r1, [r7, #28] + 8013f5a: 47a0 blx r4 + 8013f5c: 4603 mov r3, r0 + 8013f5e: 74fb strb r3, [r7, #19] + 8013f60: e001 b.n 8013f66 + 8013f62: 2300 movs r3, #0 + 8013f64: 74fb strb r3, [r7, #19] if (err == ERR_ABRT) { - 8013f56: f997 3013 ldrsb.w r3, [r7, #19] - 8013f5a: f113 0f0d cmn.w r3, #13 - 8013f5e: d016 beq.n 8013f8e + 8013f66: f997 3013 ldrsb.w r3, [r7, #19] + 8013f6a: f113 0f0d cmn.w r3, #13 + 8013f6e: d016 beq.n 8013f9e goto aborted; } } } tcp_input_pcb = NULL; - 8013f60: 4b32 ldr r3, [pc, #200] ; (801402c ) - 8013f62: 2200 movs r2, #0 - 8013f64: 601a str r2, [r3, #0] + 8013f70: 4b32 ldr r3, [pc, #200] ; (801403c ) + 8013f72: 2200 movs r2, #0 + 8013f74: 601a str r2, [r3, #0] if (tcp_input_delayed_close(pcb)) { - 8013f66: 69f8 ldr r0, [r7, #28] - 8013f68: f000 f87e bl 8014068 - 8013f6c: 4603 mov r3, r0 - 8013f6e: 2b00 cmp r3, #0 - 8013f70: d10f bne.n 8013f92 + 8013f76: 69f8 ldr r0, [r7, #28] + 8013f78: f000 f87e bl 8014078 + 8013f7c: 4603 mov r3, r0 + 8013f7e: 2b00 cmp r3, #0 + 8013f80: d10f bne.n 8013fa2 goto aborted; } /* Try to send something out. */ tcp_output(pcb); - 8013f72: 69f8 ldr r0, [r7, #28] - 8013f74: f002 fab6 bl 80164e4 - 8013f78: e00c b.n 8013f94 + 8013f82: 69f8 ldr r0, [r7, #28] + 8013f84: f002 fab6 bl 80164f4 + 8013f88: e00c b.n 8013fa4 goto aborted; - 8013f7a: bf00 nop - 8013f7c: e00a b.n 8013f94 + 8013f8a: bf00 nop + 8013f8c: e00a b.n 8013fa4 #endif /* TCP_INPUT_DEBUG */ } } /* Jump target if pcb has been aborted in a callback (by calling tcp_abort()). Below this line, 'pcb' may not be dereferenced! */ aborted: - 8013f7e: bf00 nop - 8013f80: e008 b.n 8013f94 + 8013f8e: bf00 nop + 8013f90: e008 b.n 8013fa4 goto aborted; - 8013f82: bf00 nop - 8013f84: e006 b.n 8013f94 + 8013f92: bf00 nop + 8013f94: e006 b.n 8013fa4 goto aborted; - 8013f86: bf00 nop - 8013f88: e004 b.n 8013f94 + 8013f96: bf00 nop + 8013f98: e004 b.n 8013fa4 goto aborted; - 8013f8a: bf00 nop - 8013f8c: e002 b.n 8013f94 + 8013f9a: bf00 nop + 8013f9c: e002 b.n 8013fa4 goto aborted; - 8013f8e: bf00 nop - 8013f90: e000 b.n 8013f94 + 8013f9e: bf00 nop + 8013fa0: e000 b.n 8013fa4 goto aborted; - 8013f92: bf00 nop + 8013fa2: bf00 nop tcp_input_pcb = NULL; - 8013f94: 4b25 ldr r3, [pc, #148] ; (801402c ) - 8013f96: 2200 movs r2, #0 - 8013f98: 601a str r2, [r3, #0] + 8013fa4: 4b25 ldr r3, [pc, #148] ; (801403c ) + 8013fa6: 2200 movs r2, #0 + 8013fa8: 601a str r2, [r3, #0] recv_data = NULL; - 8013f9a: 4b28 ldr r3, [pc, #160] ; (801403c ) - 8013f9c: 2200 movs r2, #0 - 8013f9e: 601a str r2, [r3, #0] + 8013faa: 4b28 ldr r3, [pc, #160] ; (801404c ) + 8013fac: 2200 movs r2, #0 + 8013fae: 601a str r2, [r3, #0] /* give up our reference to inseg.p */ if (inseg.p != NULL) { - 8013fa0: 4b2a ldr r3, [pc, #168] ; (801404c ) - 8013fa2: 685b ldr r3, [r3, #4] - 8013fa4: 2b00 cmp r3, #0 - 8013fa6: d03d beq.n 8014024 + 8013fb0: 4b2a ldr r3, [pc, #168] ; (801405c ) + 8013fb2: 685b ldr r3, [r3, #4] + 8013fb4: 2b00 cmp r3, #0 + 8013fb6: d03d beq.n 8014034 pbuf_free(inseg.p); - 8013fa8: 4b28 ldr r3, [pc, #160] ; (801404c ) - 8013faa: 685b ldr r3, [r3, #4] - 8013fac: 4618 mov r0, r3 - 8013fae: f7fd fe1b bl 8011be8 + 8013fb8: 4b28 ldr r3, [pc, #160] ; (801405c ) + 8013fba: 685b ldr r3, [r3, #4] + 8013fbc: 4618 mov r0, r3 + 8013fbe: f7fd fe1b bl 8011bf8 inseg.p = NULL; - 8013fb2: 4b26 ldr r3, [pc, #152] ; (801404c ) - 8013fb4: 2200 movs r2, #0 - 8013fb6: 605a str r2, [r3, #4] + 8013fc2: 4b26 ldr r3, [pc, #152] ; (801405c ) + 8013fc4: 2200 movs r2, #0 + 8013fc6: 605a str r2, [r3, #4] pbuf_free(p); } LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane()); PERF_STOP("tcp_input"); return; - 8013fb8: e034 b.n 8014024 + 8013fc8: e034 b.n 8014034 if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) { - 8013fba: 4b25 ldr r3, [pc, #148] ; (8014050 ) - 8013fbc: 681b ldr r3, [r3, #0] - 8013fbe: 899b ldrh r3, [r3, #12] - 8013fc0: b29b uxth r3, r3 - 8013fc2: 4618 mov r0, r3 - 8013fc4: f7fc fa5c bl 8010480 - 8013fc8: 4603 mov r3, r0 - 8013fca: b2db uxtb r3, r3 - 8013fcc: f003 0304 and.w r3, r3, #4 - 8013fd0: 2b00 cmp r3, #0 - 8013fd2: d118 bne.n 8014006 + 8013fca: 4b25 ldr r3, [pc, #148] ; (8014060 ) + 8013fcc: 681b ldr r3, [r3, #0] + 8013fce: 899b ldrh r3, [r3, #12] + 8013fd0: b29b uxth r3, r3 + 8013fd2: 4618 mov r0, r3 + 8013fd4: f7fc fa5c bl 8010490 + 8013fd8: 4603 mov r3, r0 + 8013fda: b2db uxtb r3, r3 + 8013fdc: f003 0304 and.w r3, r3, #4 + 8013fe0: 2b00 cmp r3, #0 + 8013fe2: d118 bne.n 8014016 tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 8013fd4: 4b1f ldr r3, [pc, #124] ; (8014054 ) - 8013fd6: 6819 ldr r1, [r3, #0] - 8013fd8: 4b1f ldr r3, [pc, #124] ; (8014058 ) - 8013fda: 881b ldrh r3, [r3, #0] - 8013fdc: 461a mov r2, r3 - 8013fde: 4b1f ldr r3, [pc, #124] ; (801405c ) - 8013fe0: 681b ldr r3, [r3, #0] - 8013fe2: 18d0 adds r0, r2, r3 + 8013fe4: 4b1f ldr r3, [pc, #124] ; (8014064 ) + 8013fe6: 6819 ldr r1, [r3, #0] + 8013fe8: 4b1f ldr r3, [pc, #124] ; (8014068 ) + 8013fea: 881b ldrh r3, [r3, #0] + 8013fec: 461a mov r2, r3 + 8013fee: 4b1f ldr r3, [pc, #124] ; (801406c ) + 8013ff0: 681b ldr r3, [r3, #0] + 8013ff2: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8013fe4: 4b1a ldr r3, [pc, #104] ; (8014050 ) - 8013fe6: 681b ldr r3, [r3, #0] + 8013ff4: 4b1a ldr r3, [pc, #104] ; (8014060 ) + 8013ff6: 681b ldr r3, [r3, #0] tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 8013fe8: 885b ldrh r3, [r3, #2] - 8013fea: b29b uxth r3, r3 + 8013ff8: 885b ldrh r3, [r3, #2] + 8013ffa: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8013fec: 4a18 ldr r2, [pc, #96] ; (8014050 ) - 8013fee: 6812 ldr r2, [r2, #0] + 8013ffc: 4a18 ldr r2, [pc, #96] ; (8014060 ) + 8013ffe: 6812 ldr r2, [r2, #0] tcp_rst(NULL, ackno, seqno + tcplen, ip_current_dest_addr(), - 8013ff0: 8812 ldrh r2, [r2, #0] - 8013ff2: b292 uxth r2, r2 - 8013ff4: 9202 str r2, [sp, #8] - 8013ff6: 9301 str r3, [sp, #4] - 8013ff8: 4b19 ldr r3, [pc, #100] ; (8014060 ) - 8013ffa: 9300 str r3, [sp, #0] - 8013ffc: 4b19 ldr r3, [pc, #100] ; (8014064 ) - 8013ffe: 4602 mov r2, r0 - 8014000: 2000 movs r0, #0 - 8014002: f003 f835 bl 8017070 + 8014000: 8812 ldrh r2, [r2, #0] + 8014002: b292 uxth r2, r2 + 8014004: 9202 str r2, [sp, #8] + 8014006: 9301 str r3, [sp, #4] + 8014008: 4b19 ldr r3, [pc, #100] ; (8014070 ) + 801400a: 9300 str r3, [sp, #0] + 801400c: 4b19 ldr r3, [pc, #100] ; (8014074 ) + 801400e: 4602 mov r2, r0 + 8014010: 2000 movs r0, #0 + 8014012: f003 f835 bl 8017080 pbuf_free(p); - 8014006: 6878 ldr r0, [r7, #4] - 8014008: f7fd fdee bl 8011be8 + 8014016: 6878 ldr r0, [r7, #4] + 8014018: f7fd fdee bl 8011bf8 return; - 801400c: e00a b.n 8014024 + 801401c: e00a b.n 8014034 goto dropped; - 801400e: bf00 nop - 8014010: e004 b.n 801401c + 801401e: bf00 nop + 8014020: e004 b.n 801402c dropped: - 8014012: bf00 nop - 8014014: e002 b.n 801401c + 8014022: bf00 nop + 8014024: e002 b.n 801402c goto dropped; - 8014016: bf00 nop - 8014018: e000 b.n 801401c + 8014026: bf00 nop + 8014028: e000 b.n 801402c goto dropped; - 801401a: bf00 nop + 801402a: bf00 nop TCP_STATS_INC(tcp.drop); MIB2_STATS_INC(mib2.tcpinerrs); pbuf_free(p); - 801401c: 6878 ldr r0, [r7, #4] - 801401e: f7fd fde3 bl 8011be8 - 8014022: e000 b.n 8014026 + 801402c: 6878 ldr r0, [r7, #4] + 801402e: f7fd fde3 bl 8011bf8 + 8014032: e000 b.n 8014036 return; - 8014024: bf00 nop -} - 8014026: 3724 adds r7, #36 ; 0x24 - 8014028: 46bd mov sp, r7 - 801402a: bd90 pop {r4, r7, pc} - 801402c: 2000f804 .word 0x2000f804 - 8014030: 2000874d .word 0x2000874d - 8014034: 2000f7f0 .word 0x2000f7f0 - 8014038: 20008748 .word 0x20008748 - 801403c: 20008750 .word 0x20008750 - 8014040: 0801ec40 .word 0x0801ec40 - 8014044: 0801edf4 .word 0x0801edf4 - 8014048: 0801ec8c .word 0x0801ec8c - 801404c: 20008720 .word 0x20008720 - 8014050: 20008730 .word 0x20008730 - 8014054: 20008744 .word 0x20008744 - 8014058: 2000874a .word 0x2000874a - 801405c: 20008740 .word 0x20008740 - 8014060: 2000c0cc .word 0x2000c0cc - 8014064: 2000c0d0 .word 0x2000c0d0 - -08014068 : + 8014034: bf00 nop +} + 8014036: 3724 adds r7, #36 ; 0x24 + 8014038: 46bd mov sp, r7 + 801403a: bd90 pop {r4, r7, pc} + 801403c: 2000f804 .word 0x2000f804 + 8014040: 2000874d .word 0x2000874d + 8014044: 2000f7f0 .word 0x2000f7f0 + 8014048: 20008748 .word 0x20008748 + 801404c: 20008750 .word 0x20008750 + 8014050: 0801ec50 .word 0x0801ec50 + 8014054: 0801ee04 .word 0x0801ee04 + 8014058: 0801ec9c .word 0x0801ec9c + 801405c: 20008720 .word 0x20008720 + 8014060: 20008730 .word 0x20008730 + 8014064: 20008744 .word 0x20008744 + 8014068: 2000874a .word 0x2000874a + 801406c: 20008740 .word 0x20008740 + 8014070: 2000c0cc .word 0x2000c0cc + 8014074: 2000c0d0 .word 0x2000c0d0 + +08014078 : * any more. * @returns 1 if the pcb has been closed and deallocated, 0 otherwise */ static int tcp_input_delayed_close(struct tcp_pcb *pcb) { - 8014068: b580 push {r7, lr} - 801406a: b082 sub sp, #8 - 801406c: af00 add r7, sp, #0 - 801406e: 6078 str r0, [r7, #4] + 8014078: b580 push {r7, lr} + 801407a: b082 sub sp, #8 + 801407c: af00 add r7, sp, #0 + 801407e: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_input_delayed_close: invalid pcb", pcb != NULL); - 8014070: 687b ldr r3, [r7, #4] - 8014072: 2b00 cmp r3, #0 - 8014074: d106 bne.n 8014084 - 8014076: 4b17 ldr r3, [pc, #92] ; (80140d4 ) - 8014078: f240 225a movw r2, #602 ; 0x25a - 801407c: 4916 ldr r1, [pc, #88] ; (80140d8 ) - 801407e: 4817 ldr r0, [pc, #92] ; (80140dc ) - 8014080: f008 fae2 bl 801c648 + 8014080: 687b ldr r3, [r7, #4] + 8014082: 2b00 cmp r3, #0 + 8014084: d106 bne.n 8014094 + 8014086: 4b17 ldr r3, [pc, #92] ; (80140e4 ) + 8014088: f240 225a movw r2, #602 ; 0x25a + 801408c: 4916 ldr r1, [pc, #88] ; (80140e8 ) + 801408e: 4817 ldr r0, [pc, #92] ; (80140ec ) + 8014090: f008 fae2 bl 801c658 if (recv_flags & TF_CLOSED) { - 8014084: 4b16 ldr r3, [pc, #88] ; (80140e0 ) - 8014086: 781b ldrb r3, [r3, #0] - 8014088: f003 0310 and.w r3, r3, #16 - 801408c: 2b00 cmp r3, #0 - 801408e: d01c beq.n 80140ca + 8014094: 4b16 ldr r3, [pc, #88] ; (80140f0 ) + 8014096: 781b ldrb r3, [r3, #0] + 8014098: f003 0310 and.w r3, r3, #16 + 801409c: 2b00 cmp r3, #0 + 801409e: d01c beq.n 80140da /* The connection has been closed and we will deallocate the PCB. */ if (!(pcb->flags & TF_RXCLOSED)) { - 8014090: 687b ldr r3, [r7, #4] - 8014092: 8b5b ldrh r3, [r3, #26] - 8014094: f003 0310 and.w r3, r3, #16 - 8014098: 2b00 cmp r3, #0 - 801409a: d10d bne.n 80140b8 + 80140a0: 687b ldr r3, [r7, #4] + 80140a2: 8b5b ldrh r3, [r3, #26] + 80140a4: f003 0310 and.w r3, r3, #16 + 80140a8: 2b00 cmp r3, #0 + 80140aa: d10d bne.n 80140c8 /* Connection closed although the application has only shut down the tx side: call the PCB's err callback and indicate the closure to ensure the application doesn't continue using the PCB. */ TCP_EVENT_ERR(pcb->state, pcb->errf, pcb->callback_arg, ERR_CLSD); - 801409c: 687b ldr r3, [r7, #4] - 801409e: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 80140a2: 2b00 cmp r3, #0 - 80140a4: d008 beq.n 80140b8 - 80140a6: 687b ldr r3, [r7, #4] - 80140a8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 - 80140ac: 687a ldr r2, [r7, #4] - 80140ae: 6912 ldr r2, [r2, #16] - 80140b0: f06f 010e mvn.w r1, #14 - 80140b4: 4610 mov r0, r2 - 80140b6: 4798 blx r3 + 80140ac: 687b ldr r3, [r7, #4] + 80140ae: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 80140b2: 2b00 cmp r3, #0 + 80140b4: d008 beq.n 80140c8 + 80140b6: 687b ldr r3, [r7, #4] + 80140b8: f8d3 3090 ldr.w r3, [r3, #144] ; 0x90 + 80140bc: 687a ldr r2, [r7, #4] + 80140be: 6912 ldr r2, [r2, #16] + 80140c0: f06f 010e mvn.w r1, #14 + 80140c4: 4610 mov r0, r2 + 80140c6: 4798 blx r3 } tcp_pcb_remove(&tcp_active_pcbs, pcb); - 80140b8: 6879 ldr r1, [r7, #4] - 80140ba: 480a ldr r0, [pc, #40] ; (80140e4 ) - 80140bc: f7ff fa54 bl 8013568 + 80140c8: 6879 ldr r1, [r7, #4] + 80140ca: 480a ldr r0, [pc, #40] ; (80140f4 ) + 80140cc: f7ff fa54 bl 8013578 tcp_free(pcb); - 80140c0: 6878 ldr r0, [r7, #4] - 80140c2: f7fe f84d bl 8012160 + 80140d0: 6878 ldr r0, [r7, #4] + 80140d2: f7fe f84d bl 8012170 return 1; - 80140c6: 2301 movs r3, #1 - 80140c8: e000 b.n 80140cc + 80140d6: 2301 movs r3, #1 + 80140d8: e000 b.n 80140dc } return 0; - 80140ca: 2300 movs r3, #0 -} - 80140cc: 4618 mov r0, r3 - 80140ce: 3708 adds r7, #8 - 80140d0: 46bd mov sp, r7 - 80140d2: bd80 pop {r7, pc} - 80140d4: 0801ec40 .word 0x0801ec40 - 80140d8: 0801ee10 .word 0x0801ee10 - 80140dc: 0801ec8c .word 0x0801ec8c - 80140e0: 2000874d .word 0x2000874d - 80140e4: 2000f7f0 .word 0x2000f7f0 - -080140e8 : + 80140da: 2300 movs r3, #0 +} + 80140dc: 4618 mov r0, r3 + 80140de: 3708 adds r7, #8 + 80140e0: 46bd mov sp, r7 + 80140e2: bd80 pop {r7, pc} + 80140e4: 0801ec50 .word 0x0801ec50 + 80140e8: 0801ee20 .word 0x0801ee20 + 80140ec: 0801ec9c .word 0x0801ec9c + 80140f0: 2000874d .word 0x2000874d + 80140f4: 2000f7f0 .word 0x2000f7f0 + +080140f8 : * @note the segment which arrived is saved in global variables, therefore only the pcb * involved is passed as a parameter to this function */ static void tcp_listen_input(struct tcp_pcb_listen *pcb) { - 80140e8: b590 push {r4, r7, lr} - 80140ea: b08b sub sp, #44 ; 0x2c - 80140ec: af04 add r7, sp, #16 - 80140ee: 6078 str r0, [r7, #4] + 80140f8: b590 push {r4, r7, lr} + 80140fa: b08b sub sp, #44 ; 0x2c + 80140fc: af04 add r7, sp, #16 + 80140fe: 6078 str r0, [r7, #4] struct tcp_pcb *npcb; u32_t iss; err_t rc; if (flags & TCP_RST) { - 80140f0: 4b6f ldr r3, [pc, #444] ; (80142b0 ) - 80140f2: 781b ldrb r3, [r3, #0] - 80140f4: f003 0304 and.w r3, r3, #4 - 80140f8: 2b00 cmp r3, #0 - 80140fa: f040 80d3 bne.w 80142a4 + 8014100: 4b6f ldr r3, [pc, #444] ; (80142c0 ) + 8014102: 781b ldrb r3, [r3, #0] + 8014104: f003 0304 and.w r3, r3, #4 + 8014108: 2b00 cmp r3, #0 + 801410a: f040 80d3 bne.w 80142b4 /* An incoming RST should be ignored. Return. */ return; } LWIP_ASSERT("tcp_listen_input: invalid pcb", pcb != NULL); - 80140fe: 687b ldr r3, [r7, #4] - 8014100: 2b00 cmp r3, #0 - 8014102: d106 bne.n 8014112 - 8014104: 4b6b ldr r3, [pc, #428] ; (80142b4 ) - 8014106: f240 2281 movw r2, #641 ; 0x281 - 801410a: 496b ldr r1, [pc, #428] ; (80142b8 ) - 801410c: 486b ldr r0, [pc, #428] ; (80142bc ) - 801410e: f008 fa9b bl 801c648 + 801410e: 687b ldr r3, [r7, #4] + 8014110: 2b00 cmp r3, #0 + 8014112: d106 bne.n 8014122 + 8014114: 4b6b ldr r3, [pc, #428] ; (80142c4 ) + 8014116: f240 2281 movw r2, #641 ; 0x281 + 801411a: 496b ldr r1, [pc, #428] ; (80142c8 ) + 801411c: 486b ldr r0, [pc, #428] ; (80142cc ) + 801411e: f008 fa9b bl 801c658 /* In the LISTEN state, we check for incoming SYN segments, creates a new PCB, and responds with a SYN|ACK. */ if (flags & TCP_ACK) { - 8014112: 4b67 ldr r3, [pc, #412] ; (80142b0 ) - 8014114: 781b ldrb r3, [r3, #0] - 8014116: f003 0310 and.w r3, r3, #16 - 801411a: 2b00 cmp r3, #0 - 801411c: d019 beq.n 8014152 + 8014122: 4b67 ldr r3, [pc, #412] ; (80142c0 ) + 8014124: 781b ldrb r3, [r3, #0] + 8014126: f003 0310 and.w r3, r3, #16 + 801412a: 2b00 cmp r3, #0 + 801412c: d019 beq.n 8014162 /* For incoming segments with the ACK flag set, respond with a RST. */ LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_listen_input: ACK in LISTEN, sending reset\n")); tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801411e: 4b68 ldr r3, [pc, #416] ; (80142c0 ) - 8014120: 6819 ldr r1, [r3, #0] - 8014122: 4b68 ldr r3, [pc, #416] ; (80142c4 ) - 8014124: 881b ldrh r3, [r3, #0] - 8014126: 461a mov r2, r3 - 8014128: 4b67 ldr r3, [pc, #412] ; (80142c8 ) - 801412a: 681b ldr r3, [r3, #0] - 801412c: 18d0 adds r0, r2, r3 + 801412e: 4b68 ldr r3, [pc, #416] ; (80142d0 ) + 8014130: 6819 ldr r1, [r3, #0] + 8014132: 4b68 ldr r3, [pc, #416] ; (80142d4 ) + 8014134: 881b ldrh r3, [r3, #0] + 8014136: 461a mov r2, r3 + 8014138: 4b67 ldr r3, [pc, #412] ; (80142d8 ) + 801413a: 681b ldr r3, [r3, #0] + 801413c: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801412e: 4b67 ldr r3, [pc, #412] ; (80142cc ) - 8014130: 681b ldr r3, [r3, #0] + 801413e: 4b67 ldr r3, [pc, #412] ; (80142dc ) + 8014140: 681b ldr r3, [r3, #0] tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8014132: 885b ldrh r3, [r3, #2] - 8014134: b29b uxth r3, r3 + 8014142: 885b ldrh r3, [r3, #2] + 8014144: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8014136: 4a65 ldr r2, [pc, #404] ; (80142cc ) - 8014138: 6812 ldr r2, [r2, #0] + 8014146: 4a65 ldr r2, [pc, #404] ; (80142dc ) + 8014148: 6812 ldr r2, [r2, #0] tcp_rst((const struct tcp_pcb *)pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801413a: 8812 ldrh r2, [r2, #0] - 801413c: b292 uxth r2, r2 - 801413e: 9202 str r2, [sp, #8] - 8014140: 9301 str r3, [sp, #4] - 8014142: 4b63 ldr r3, [pc, #396] ; (80142d0 ) - 8014144: 9300 str r3, [sp, #0] - 8014146: 4b63 ldr r3, [pc, #396] ; (80142d4 ) - 8014148: 4602 mov r2, r0 - 801414a: 6878 ldr r0, [r7, #4] - 801414c: f002 ff90 bl 8017070 + 801414a: 8812 ldrh r2, [r2, #0] + 801414c: b292 uxth r2, r2 + 801414e: 9202 str r2, [sp, #8] + 8014150: 9301 str r3, [sp, #4] + 8014152: 4b63 ldr r3, [pc, #396] ; (80142e0 ) + 8014154: 9300 str r3, [sp, #0] + 8014156: 4b63 ldr r3, [pc, #396] ; (80142e4 ) + 8014158: 4602 mov r2, r0 + 801415a: 6878 ldr r0, [r7, #4] + 801415c: f002 ff90 bl 8017080 tcp_abandon(npcb, 0); return; } tcp_output(npcb); } return; - 8014150: e0aa b.n 80142a8 + 8014160: e0aa b.n 80142b8 } else if (flags & TCP_SYN) { - 8014152: 4b57 ldr r3, [pc, #348] ; (80142b0 ) - 8014154: 781b ldrb r3, [r3, #0] - 8014156: f003 0302 and.w r3, r3, #2 - 801415a: 2b00 cmp r3, #0 - 801415c: f000 80a4 beq.w 80142a8 + 8014162: 4b57 ldr r3, [pc, #348] ; (80142c0 ) + 8014164: 781b ldrb r3, [r3, #0] + 8014166: f003 0302 and.w r3, r3, #2 + 801416a: 2b00 cmp r3, #0 + 801416c: f000 80a4 beq.w 80142b8 npcb = tcp_alloc(pcb->prio); - 8014160: 687b ldr r3, [r7, #4] - 8014162: 7d5b ldrb r3, [r3, #21] - 8014164: 4618 mov r0, r3 - 8014166: f7ff f92b bl 80133c0 - 801416a: 6178 str r0, [r7, #20] + 8014170: 687b ldr r3, [r7, #4] + 8014172: 7d5b ldrb r3, [r3, #21] + 8014174: 4618 mov r0, r3 + 8014176: f7ff f92b bl 80133d0 + 801417a: 6178 str r0, [r7, #20] if (npcb == NULL) { - 801416c: 697b ldr r3, [r7, #20] - 801416e: 2b00 cmp r3, #0 - 8014170: d111 bne.n 8014196 + 801417c: 697b ldr r3, [r7, #20] + 801417e: 2b00 cmp r3, #0 + 8014180: d111 bne.n 80141a6 TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err); - 8014172: 687b ldr r3, [r7, #4] - 8014174: 699b ldr r3, [r3, #24] - 8014176: 2b00 cmp r3, #0 - 8014178: d00a beq.n 8014190 - 801417a: 687b ldr r3, [r7, #4] - 801417c: 699b ldr r3, [r3, #24] - 801417e: 687a ldr r2, [r7, #4] - 8014180: 6910 ldr r0, [r2, #16] - 8014182: f04f 32ff mov.w r2, #4294967295 - 8014186: 2100 movs r1, #0 - 8014188: 4798 blx r3 - 801418a: 4603 mov r3, r0 - 801418c: 73bb strb r3, [r7, #14] + 8014182: 687b ldr r3, [r7, #4] + 8014184: 699b ldr r3, [r3, #24] + 8014186: 2b00 cmp r3, #0 + 8014188: d00a beq.n 80141a0 + 801418a: 687b ldr r3, [r7, #4] + 801418c: 699b ldr r3, [r3, #24] + 801418e: 687a ldr r2, [r7, #4] + 8014190: 6910 ldr r0, [r2, #16] + 8014192: f04f 32ff mov.w r2, #4294967295 + 8014196: 2100 movs r1, #0 + 8014198: 4798 blx r3 + 801419a: 4603 mov r3, r0 + 801419c: 73bb strb r3, [r7, #14] return; - 801418e: e08c b.n 80142aa + 801419e: e08c b.n 80142ba TCP_EVENT_ACCEPT(pcb, NULL, pcb->callback_arg, ERR_MEM, err); - 8014190: 23f0 movs r3, #240 ; 0xf0 - 8014192: 73bb strb r3, [r7, #14] + 80141a0: 23f0 movs r3, #240 ; 0xf0 + 80141a2: 73bb strb r3, [r7, #14] return; - 8014194: e089 b.n 80142aa + 80141a4: e089 b.n 80142ba ip_addr_copy(npcb->local_ip, *ip_current_dest_addr()); - 8014196: 4b50 ldr r3, [pc, #320] ; (80142d8 ) - 8014198: 695a ldr r2, [r3, #20] - 801419a: 697b ldr r3, [r7, #20] - 801419c: 601a str r2, [r3, #0] + 80141a6: 4b50 ldr r3, [pc, #320] ; (80142e8 ) + 80141a8: 695a ldr r2, [r3, #20] + 80141aa: 697b ldr r3, [r7, #20] + 80141ac: 601a str r2, [r3, #0] ip_addr_copy(npcb->remote_ip, *ip_current_src_addr()); - 801419e: 4b4e ldr r3, [pc, #312] ; (80142d8 ) - 80141a0: 691a ldr r2, [r3, #16] - 80141a2: 697b ldr r3, [r7, #20] - 80141a4: 605a str r2, [r3, #4] + 80141ae: 4b4e ldr r3, [pc, #312] ; (80142e8 ) + 80141b0: 691a ldr r2, [r3, #16] + 80141b2: 697b ldr r3, [r7, #20] + 80141b4: 605a str r2, [r3, #4] npcb->local_port = pcb->local_port; - 80141a6: 687b ldr r3, [r7, #4] - 80141a8: 8ada ldrh r2, [r3, #22] - 80141aa: 697b ldr r3, [r7, #20] - 80141ac: 82da strh r2, [r3, #22] + 80141b6: 687b ldr r3, [r7, #4] + 80141b8: 8ada ldrh r2, [r3, #22] + 80141ba: 697b ldr r3, [r7, #20] + 80141bc: 82da strh r2, [r3, #22] npcb->remote_port = tcphdr->src; - 80141ae: 4b47 ldr r3, [pc, #284] ; (80142cc ) - 80141b0: 681b ldr r3, [r3, #0] - 80141b2: 881b ldrh r3, [r3, #0] - 80141b4: b29a uxth r2, r3 - 80141b6: 697b ldr r3, [r7, #20] - 80141b8: 831a strh r2, [r3, #24] + 80141be: 4b47 ldr r3, [pc, #284] ; (80142dc ) + 80141c0: 681b ldr r3, [r3, #0] + 80141c2: 881b ldrh r3, [r3, #0] + 80141c4: b29a uxth r2, r3 + 80141c6: 697b ldr r3, [r7, #20] + 80141c8: 831a strh r2, [r3, #24] npcb->state = SYN_RCVD; - 80141ba: 697b ldr r3, [r7, #20] - 80141bc: 2203 movs r2, #3 - 80141be: 751a strb r2, [r3, #20] + 80141ca: 697b ldr r3, [r7, #20] + 80141cc: 2203 movs r2, #3 + 80141ce: 751a strb r2, [r3, #20] npcb->rcv_nxt = seqno + 1; - 80141c0: 4b41 ldr r3, [pc, #260] ; (80142c8 ) - 80141c2: 681b ldr r3, [r3, #0] - 80141c4: 1c5a adds r2, r3, #1 - 80141c6: 697b ldr r3, [r7, #20] - 80141c8: 625a str r2, [r3, #36] ; 0x24 + 80141d0: 4b41 ldr r3, [pc, #260] ; (80142d8 ) + 80141d2: 681b ldr r3, [r3, #0] + 80141d4: 1c5a adds r2, r3, #1 + 80141d6: 697b ldr r3, [r7, #20] + 80141d8: 625a str r2, [r3, #36] ; 0x24 npcb->rcv_ann_right_edge = npcb->rcv_nxt; - 80141ca: 697b ldr r3, [r7, #20] - 80141cc: 6a5a ldr r2, [r3, #36] ; 0x24 - 80141ce: 697b ldr r3, [r7, #20] - 80141d0: 62da str r2, [r3, #44] ; 0x2c + 80141da: 697b ldr r3, [r7, #20] + 80141dc: 6a5a ldr r2, [r3, #36] ; 0x24 + 80141de: 697b ldr r3, [r7, #20] + 80141e0: 62da str r2, [r3, #44] ; 0x2c iss = tcp_next_iss(npcb); - 80141d2: 6978 ldr r0, [r7, #20] - 80141d4: f7ff fa5c bl 8013690 - 80141d8: 6138 str r0, [r7, #16] + 80141e2: 6978 ldr r0, [r7, #20] + 80141e4: f7ff fa5c bl 80136a0 + 80141e8: 6138 str r0, [r7, #16] npcb->snd_wl2 = iss; - 80141da: 697b ldr r3, [r7, #20] - 80141dc: 693a ldr r2, [r7, #16] - 80141de: 659a str r2, [r3, #88] ; 0x58 + 80141ea: 697b ldr r3, [r7, #20] + 80141ec: 693a ldr r2, [r7, #16] + 80141ee: 659a str r2, [r3, #88] ; 0x58 npcb->snd_nxt = iss; - 80141e0: 697b ldr r3, [r7, #20] - 80141e2: 693a ldr r2, [r7, #16] - 80141e4: 651a str r2, [r3, #80] ; 0x50 + 80141f0: 697b ldr r3, [r7, #20] + 80141f2: 693a ldr r2, [r7, #16] + 80141f4: 651a str r2, [r3, #80] ; 0x50 npcb->lastack = iss; - 80141e6: 697b ldr r3, [r7, #20] - 80141e8: 693a ldr r2, [r7, #16] - 80141ea: 645a str r2, [r3, #68] ; 0x44 + 80141f6: 697b ldr r3, [r7, #20] + 80141f8: 693a ldr r2, [r7, #16] + 80141fa: 645a str r2, [r3, #68] ; 0x44 npcb->snd_lbb = iss; - 80141ec: 697b ldr r3, [r7, #20] - 80141ee: 693a ldr r2, [r7, #16] - 80141f0: 65da str r2, [r3, #92] ; 0x5c + 80141fc: 697b ldr r3, [r7, #20] + 80141fe: 693a ldr r2, [r7, #16] + 8014200: 65da str r2, [r3, #92] ; 0x5c npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */ - 80141f2: 4b35 ldr r3, [pc, #212] ; (80142c8 ) - 80141f4: 681b ldr r3, [r3, #0] - 80141f6: 1e5a subs r2, r3, #1 - 80141f8: 697b ldr r3, [r7, #20] - 80141fa: 655a str r2, [r3, #84] ; 0x54 + 8014202: 4b35 ldr r3, [pc, #212] ; (80142d8 ) + 8014204: 681b ldr r3, [r3, #0] + 8014206: 1e5a subs r2, r3, #1 + 8014208: 697b ldr r3, [r7, #20] + 801420a: 655a str r2, [r3, #84] ; 0x54 npcb->callback_arg = pcb->callback_arg; - 80141fc: 687b ldr r3, [r7, #4] - 80141fe: 691a ldr r2, [r3, #16] - 8014200: 697b ldr r3, [r7, #20] - 8014202: 611a str r2, [r3, #16] + 801420c: 687b ldr r3, [r7, #4] + 801420e: 691a ldr r2, [r3, #16] + 8014210: 697b ldr r3, [r7, #20] + 8014212: 611a str r2, [r3, #16] npcb->listener = pcb; - 8014204: 697b ldr r3, [r7, #20] - 8014206: 687a ldr r2, [r7, #4] - 8014208: 67da str r2, [r3, #124] ; 0x7c - npcb->so_options = pcb->so_options & SOF_INHERITED; - 801420a: 687b ldr r3, [r7, #4] - 801420c: 7a5b ldrb r3, [r3, #9] - 801420e: f003 030c and.w r3, r3, #12 - 8014212: b2da uxtb r2, r3 8014214: 697b ldr r3, [r7, #20] - 8014216: 725a strb r2, [r3, #9] + 8014216: 687a ldr r2, [r7, #4] + 8014218: 67da str r2, [r3, #124] ; 0x7c + npcb->so_options = pcb->so_options & SOF_INHERITED; + 801421a: 687b ldr r3, [r7, #4] + 801421c: 7a5b ldrb r3, [r3, #9] + 801421e: f003 030c and.w r3, r3, #12 + 8014222: b2da uxtb r2, r3 + 8014224: 697b ldr r3, [r7, #20] + 8014226: 725a strb r2, [r3, #9] npcb->netif_idx = pcb->netif_idx; - 8014218: 687b ldr r3, [r7, #4] - 801421a: 7a1a ldrb r2, [r3, #8] - 801421c: 697b ldr r3, [r7, #20] - 801421e: 721a strb r2, [r3, #8] + 8014228: 687b ldr r3, [r7, #4] + 801422a: 7a1a ldrb r2, [r3, #8] + 801422c: 697b ldr r3, [r7, #20] + 801422e: 721a strb r2, [r3, #8] TCP_REG_ACTIVE(npcb); - 8014220: 4b2e ldr r3, [pc, #184] ; (80142dc ) - 8014222: 681a ldr r2, [r3, #0] - 8014224: 697b ldr r3, [r7, #20] - 8014226: 60da str r2, [r3, #12] - 8014228: 4a2c ldr r2, [pc, #176] ; (80142dc ) - 801422a: 697b ldr r3, [r7, #20] - 801422c: 6013 str r3, [r2, #0] - 801422e: f003 f8e1 bl 80173f4 - 8014232: 4b2b ldr r3, [pc, #172] ; (80142e0 ) - 8014234: 2201 movs r2, #1 - 8014236: 701a strb r2, [r3, #0] + 8014230: 4b2e ldr r3, [pc, #184] ; (80142ec ) + 8014232: 681a ldr r2, [r3, #0] + 8014234: 697b ldr r3, [r7, #20] + 8014236: 60da str r2, [r3, #12] + 8014238: 4a2c ldr r2, [pc, #176] ; (80142ec ) + 801423a: 697b ldr r3, [r7, #20] + 801423c: 6013 str r3, [r2, #0] + 801423e: f003 f8e1 bl 8017404 + 8014242: 4b2b ldr r3, [pc, #172] ; (80142f0 ) + 8014244: 2201 movs r2, #1 + 8014246: 701a strb r2, [r3, #0] tcp_parseopt(npcb); - 8014238: 6978 ldr r0, [r7, #20] - 801423a: f001 fd8f bl 8015d5c + 8014248: 6978 ldr r0, [r7, #20] + 801424a: f001 fd8f bl 8015d6c npcb->snd_wnd = tcphdr->wnd; - 801423e: 4b23 ldr r3, [pc, #140] ; (80142cc ) - 8014240: 681b ldr r3, [r3, #0] - 8014242: 89db ldrh r3, [r3, #14] - 8014244: b29a uxth r2, r3 - 8014246: 697b ldr r3, [r7, #20] - 8014248: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 + 801424e: 4b23 ldr r3, [pc, #140] ; (80142dc ) + 8014250: 681b ldr r3, [r3, #0] + 8014252: 89db ldrh r3, [r3, #14] + 8014254: b29a uxth r2, r3 + 8014256: 697b ldr r3, [r7, #20] + 8014258: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 npcb->snd_wnd_max = npcb->snd_wnd; - 801424c: 697b ldr r3, [r7, #20] - 801424e: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 8014252: 697b ldr r3, [r7, #20] - 8014254: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 - npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip); - 8014258: 697b ldr r3, [r7, #20] - 801425a: 8e5c ldrh r4, [r3, #50] ; 0x32 801425c: 697b ldr r3, [r7, #20] - 801425e: 3304 adds r3, #4 - 8014260: 4618 mov r0, r3 - 8014262: f006 fe7d bl 801af60 - 8014266: 4601 mov r1, r0 + 801425e: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 8014262: 697b ldr r3, [r7, #20] + 8014264: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 + npcb->mss = tcp_eff_send_mss(npcb->mss, &npcb->local_ip, &npcb->remote_ip); 8014268: 697b ldr r3, [r7, #20] - 801426a: 3304 adds r3, #4 - 801426c: 461a mov r2, r3 - 801426e: 4620 mov r0, r4 - 8014270: f7ff fa34 bl 80136dc - 8014274: 4603 mov r3, r0 - 8014276: 461a mov r2, r3 + 801426a: 8e5c ldrh r4, [r3, #50] ; 0x32 + 801426c: 697b ldr r3, [r7, #20] + 801426e: 3304 adds r3, #4 + 8014270: 4618 mov r0, r3 + 8014272: f006 fe7d bl 801af70 + 8014276: 4601 mov r1, r0 8014278: 697b ldr r3, [r7, #20] - 801427a: 865a strh r2, [r3, #50] ; 0x32 - rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK); - 801427c: 2112 movs r1, #18 - 801427e: 6978 ldr r0, [r7, #20] - 8014280: f002 f842 bl 8016308 + 801427a: 3304 adds r3, #4 + 801427c: 461a mov r2, r3 + 801427e: 4620 mov r0, r4 + 8014280: f7ff fa34 bl 80136ec 8014284: 4603 mov r3, r0 - 8014286: 73fb strb r3, [r7, #15] + 8014286: 461a mov r2, r3 + 8014288: 697b ldr r3, [r7, #20] + 801428a: 865a strh r2, [r3, #50] ; 0x32 + rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK); + 801428c: 2112 movs r1, #18 + 801428e: 6978 ldr r0, [r7, #20] + 8014290: f002 f842 bl 8016318 + 8014294: 4603 mov r3, r0 + 8014296: 73fb strb r3, [r7, #15] if (rc != ERR_OK) { - 8014288: f997 300f ldrsb.w r3, [r7, #15] - 801428c: 2b00 cmp r3, #0 - 801428e: d004 beq.n 801429a + 8014298: f997 300f ldrsb.w r3, [r7, #15] + 801429c: 2b00 cmp r3, #0 + 801429e: d004 beq.n 80142aa tcp_abandon(npcb, 0); - 8014290: 2100 movs r1, #0 - 8014292: 6978 ldr r0, [r7, #20] - 8014294: f7fe f986 bl 80125a4 + 80142a0: 2100 movs r1, #0 + 80142a2: 6978 ldr r0, [r7, #20] + 80142a4: f7fe f986 bl 80125b4 return; - 8014298: e007 b.n 80142aa + 80142a8: e007 b.n 80142ba tcp_output(npcb); - 801429a: 6978 ldr r0, [r7, #20] - 801429c: f002 f922 bl 80164e4 + 80142aa: 6978 ldr r0, [r7, #20] + 80142ac: f002 f922 bl 80164f4 return; - 80142a0: bf00 nop - 80142a2: e001 b.n 80142a8 + 80142b0: bf00 nop + 80142b2: e001 b.n 80142b8 return; - 80142a4: bf00 nop - 80142a6: e000 b.n 80142aa + 80142b4: bf00 nop + 80142b6: e000 b.n 80142ba return; - 80142a8: bf00 nop -} - 80142aa: 371c adds r7, #28 - 80142ac: 46bd mov sp, r7 - 80142ae: bd90 pop {r4, r7, pc} - 80142b0: 2000874c .word 0x2000874c - 80142b4: 0801ec40 .word 0x0801ec40 - 80142b8: 0801ee38 .word 0x0801ee38 - 80142bc: 0801ec8c .word 0x0801ec8c - 80142c0: 20008744 .word 0x20008744 - 80142c4: 2000874a .word 0x2000874a - 80142c8: 20008740 .word 0x20008740 - 80142cc: 20008730 .word 0x20008730 - 80142d0: 2000c0cc .word 0x2000c0cc - 80142d4: 2000c0d0 .word 0x2000c0d0 - 80142d8: 2000c0bc .word 0x2000c0bc - 80142dc: 2000f7f0 .word 0x2000f7f0 - 80142e0: 2000f7ec .word 0x2000f7ec - -080142e4 : + 80142b8: bf00 nop +} + 80142ba: 371c adds r7, #28 + 80142bc: 46bd mov sp, r7 + 80142be: bd90 pop {r4, r7, pc} + 80142c0: 2000874c .word 0x2000874c + 80142c4: 0801ec50 .word 0x0801ec50 + 80142c8: 0801ee48 .word 0x0801ee48 + 80142cc: 0801ec9c .word 0x0801ec9c + 80142d0: 20008744 .word 0x20008744 + 80142d4: 2000874a .word 0x2000874a + 80142d8: 20008740 .word 0x20008740 + 80142dc: 20008730 .word 0x20008730 + 80142e0: 2000c0cc .word 0x2000c0cc + 80142e4: 2000c0d0 .word 0x2000c0d0 + 80142e8: 2000c0bc .word 0x2000c0bc + 80142ec: 2000f7f0 .word 0x2000f7f0 + 80142f0: 2000f7ec .word 0x2000f7ec + +080142f4 : * @note the segment which arrived is saved in global variables, therefore only the pcb * involved is passed as a parameter to this function */ static void tcp_timewait_input(struct tcp_pcb *pcb) { - 80142e4: b580 push {r7, lr} - 80142e6: b086 sub sp, #24 - 80142e8: af04 add r7, sp, #16 - 80142ea: 6078 str r0, [r7, #4] + 80142f4: b580 push {r7, lr} + 80142f6: b086 sub sp, #24 + 80142f8: af04 add r7, sp, #16 + 80142fa: 6078 str r0, [r7, #4] /* RFC 1337: in TIME_WAIT, ignore RST and ACK FINs + any 'acceptable' segments */ /* RFC 793 3.9 Event Processing - Segment Arrives: * - first check sequence number - we skip that one in TIME_WAIT (always * acceptable since we only send ACKs) * - second check the RST bit (... return) */ if (flags & TCP_RST) { - 80142ec: 4b30 ldr r3, [pc, #192] ; (80143b0 ) - 80142ee: 781b ldrb r3, [r3, #0] - 80142f0: f003 0304 and.w r3, r3, #4 - 80142f4: 2b00 cmp r3, #0 - 80142f6: d154 bne.n 80143a2 + 80142fc: 4b30 ldr r3, [pc, #192] ; (80143c0 ) + 80142fe: 781b ldrb r3, [r3, #0] + 8014300: f003 0304 and.w r3, r3, #4 + 8014304: 2b00 cmp r3, #0 + 8014306: d154 bne.n 80143b2 return; } LWIP_ASSERT("tcp_timewait_input: invalid pcb", pcb != NULL); - 80142f8: 687b ldr r3, [r7, #4] - 80142fa: 2b00 cmp r3, #0 - 80142fc: d106 bne.n 801430c - 80142fe: 4b2d ldr r3, [pc, #180] ; (80143b4 ) - 8014300: f240 22ee movw r2, #750 ; 0x2ee - 8014304: 492c ldr r1, [pc, #176] ; (80143b8 ) - 8014306: 482d ldr r0, [pc, #180] ; (80143bc ) - 8014308: f008 f99e bl 801c648 + 8014308: 687b ldr r3, [r7, #4] + 801430a: 2b00 cmp r3, #0 + 801430c: d106 bne.n 801431c + 801430e: 4b2d ldr r3, [pc, #180] ; (80143c4 ) + 8014310: f240 22ee movw r2, #750 ; 0x2ee + 8014314: 492c ldr r1, [pc, #176] ; (80143c8 ) + 8014316: 482d ldr r0, [pc, #180] ; (80143cc ) + 8014318: f008 f99e bl 801c658 /* - fourth, check the SYN bit, */ if (flags & TCP_SYN) { - 801430c: 4b28 ldr r3, [pc, #160] ; (80143b0 ) - 801430e: 781b ldrb r3, [r3, #0] - 8014310: f003 0302 and.w r3, r3, #2 - 8014314: 2b00 cmp r3, #0 - 8014316: d02a beq.n 801436e + 801431c: 4b28 ldr r3, [pc, #160] ; (80143c0 ) + 801431e: 781b ldrb r3, [r3, #0] + 8014320: f003 0302 and.w r3, r3, #2 + 8014324: 2b00 cmp r3, #0 + 8014326: d02a beq.n 801437e /* If an incoming segment is not acceptable, an acknowledgment should be sent in reply */ if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd)) { - 8014318: 4b29 ldr r3, [pc, #164] ; (80143c0 ) - 801431a: 681a ldr r2, [r3, #0] - 801431c: 687b ldr r3, [r7, #4] - 801431e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014320: 1ad3 subs r3, r2, r3 - 8014322: 2b00 cmp r3, #0 - 8014324: db2d blt.n 8014382 - 8014326: 4b26 ldr r3, [pc, #152] ; (80143c0 ) - 8014328: 681a ldr r2, [r3, #0] - 801432a: 687b ldr r3, [r7, #4] - 801432c: 6a5b ldr r3, [r3, #36] ; 0x24 - 801432e: 6879 ldr r1, [r7, #4] - 8014330: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8014332: 440b add r3, r1 - 8014334: 1ad3 subs r3, r2, r3 - 8014336: 2b00 cmp r3, #0 - 8014338: dc23 bgt.n 8014382 + 8014328: 4b29 ldr r3, [pc, #164] ; (80143d0 ) + 801432a: 681a ldr r2, [r3, #0] + 801432c: 687b ldr r3, [r7, #4] + 801432e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8014330: 1ad3 subs r3, r2, r3 + 8014332: 2b00 cmp r3, #0 + 8014334: db2d blt.n 8014392 + 8014336: 4b26 ldr r3, [pc, #152] ; (80143d0 ) + 8014338: 681a ldr r2, [r3, #0] + 801433a: 687b ldr r3, [r7, #4] + 801433c: 6a5b ldr r3, [r3, #36] ; 0x24 + 801433e: 6879 ldr r1, [r7, #4] + 8014340: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8014342: 440b add r3, r1 + 8014344: 1ad3 subs r3, r2, r3 + 8014346: 2b00 cmp r3, #0 + 8014348: dc23 bgt.n 8014392 /* If the SYN is in the window it is an error, send a reset */ tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801433a: 4b22 ldr r3, [pc, #136] ; (80143c4 ) - 801433c: 6819 ldr r1, [r3, #0] - 801433e: 4b22 ldr r3, [pc, #136] ; (80143c8 ) - 8014340: 881b ldrh r3, [r3, #0] - 8014342: 461a mov r2, r3 - 8014344: 4b1e ldr r3, [pc, #120] ; (80143c0 ) - 8014346: 681b ldr r3, [r3, #0] - 8014348: 18d0 adds r0, r2, r3 + 801434a: 4b22 ldr r3, [pc, #136] ; (80143d4 ) + 801434c: 6819 ldr r1, [r3, #0] + 801434e: 4b22 ldr r3, [pc, #136] ; (80143d8 ) + 8014350: 881b ldrh r3, [r3, #0] + 8014352: 461a mov r2, r3 + 8014354: 4b1e ldr r3, [pc, #120] ; (80143d0 ) + 8014356: 681b ldr r3, [r3, #0] + 8014358: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 801434a: 4b20 ldr r3, [pc, #128] ; (80143cc ) - 801434c: 681b ldr r3, [r3, #0] + 801435a: 4b20 ldr r3, [pc, #128] ; (80143dc ) + 801435c: 681b ldr r3, [r3, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801434e: 885b ldrh r3, [r3, #2] - 8014350: b29b uxth r3, r3 + 801435e: 885b ldrh r3, [r3, #2] + 8014360: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8014352: 4a1e ldr r2, [pc, #120] ; (80143cc ) - 8014354: 6812 ldr r2, [r2, #0] + 8014362: 4a1e ldr r2, [pc, #120] ; (80143dc ) + 8014364: 6812 ldr r2, [r2, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8014356: 8812 ldrh r2, [r2, #0] - 8014358: b292 uxth r2, r2 - 801435a: 9202 str r2, [sp, #8] - 801435c: 9301 str r3, [sp, #4] - 801435e: 4b1c ldr r3, [pc, #112] ; (80143d0 ) - 8014360: 9300 str r3, [sp, #0] - 8014362: 4b1c ldr r3, [pc, #112] ; (80143d4 ) - 8014364: 4602 mov r2, r0 - 8014366: 6878 ldr r0, [r7, #4] - 8014368: f002 fe82 bl 8017070 + 8014366: 8812 ldrh r2, [r2, #0] + 8014368: b292 uxth r2, r2 + 801436a: 9202 str r2, [sp, #8] + 801436c: 9301 str r3, [sp, #4] + 801436e: 4b1c ldr r3, [pc, #112] ; (80143e0 ) + 8014370: 9300 str r3, [sp, #0] + 8014372: 4b1c ldr r3, [pc, #112] ; (80143e4 ) + 8014374: 4602 mov r2, r0 + 8014376: 6878 ldr r0, [r7, #4] + 8014378: f002 fe82 bl 8017080 return; - 801436c: e01c b.n 80143a8 + 801437c: e01c b.n 80143b8 } } else if (flags & TCP_FIN) { - 801436e: 4b10 ldr r3, [pc, #64] ; (80143b0 ) - 8014370: 781b ldrb r3, [r3, #0] - 8014372: f003 0301 and.w r3, r3, #1 - 8014376: 2b00 cmp r3, #0 - 8014378: d003 beq.n 8014382 + 801437e: 4b10 ldr r3, [pc, #64] ; (80143c0 ) + 8014380: 781b ldrb r3, [r3, #0] + 8014382: f003 0301 and.w r3, r3, #1 + 8014386: 2b00 cmp r3, #0 + 8014388: d003 beq.n 8014392 /* - eighth, check the FIN bit: Remain in the TIME-WAIT state. Restart the 2 MSL time-wait timeout.*/ pcb->tmr = tcp_ticks; - 801437a: 4b17 ldr r3, [pc, #92] ; (80143d8 ) - 801437c: 681a ldr r2, [r3, #0] - 801437e: 687b ldr r3, [r7, #4] - 8014380: 621a str r2, [r3, #32] + 801438a: 4b17 ldr r3, [pc, #92] ; (80143e8 ) + 801438c: 681a ldr r2, [r3, #0] + 801438e: 687b ldr r3, [r7, #4] + 8014390: 621a str r2, [r3, #32] } if ((tcplen > 0)) { - 8014382: 4b11 ldr r3, [pc, #68] ; (80143c8 ) - 8014384: 881b ldrh r3, [r3, #0] - 8014386: 2b00 cmp r3, #0 - 8014388: d00d beq.n 80143a6 + 8014392: 4b11 ldr r3, [pc, #68] ; (80143d8 ) + 8014394: 881b ldrh r3, [r3, #0] + 8014396: 2b00 cmp r3, #0 + 8014398: d00d beq.n 80143b6 /* Acknowledge data, FIN or out-of-window SYN */ tcp_ack_now(pcb); - 801438a: 687b ldr r3, [r7, #4] - 801438c: 8b5b ldrh r3, [r3, #26] - 801438e: f043 0302 orr.w r3, r3, #2 - 8014392: b29a uxth r2, r3 - 8014394: 687b ldr r3, [r7, #4] - 8014396: 835a strh r2, [r3, #26] + 801439a: 687b ldr r3, [r7, #4] + 801439c: 8b5b ldrh r3, [r3, #26] + 801439e: f043 0302 orr.w r3, r3, #2 + 80143a2: b29a uxth r2, r3 + 80143a4: 687b ldr r3, [r7, #4] + 80143a6: 835a strh r2, [r3, #26] tcp_output(pcb); - 8014398: 6878 ldr r0, [r7, #4] - 801439a: f002 f8a3 bl 80164e4 + 80143a8: 6878 ldr r0, [r7, #4] + 80143aa: f002 f8a3 bl 80164f4 } return; - 801439e: bf00 nop - 80143a0: e001 b.n 80143a6 + 80143ae: bf00 nop + 80143b0: e001 b.n 80143b6 return; - 80143a2: bf00 nop - 80143a4: e000 b.n 80143a8 + 80143b2: bf00 nop + 80143b4: e000 b.n 80143b8 return; - 80143a6: bf00 nop -} - 80143a8: 3708 adds r7, #8 - 80143aa: 46bd mov sp, r7 - 80143ac: bd80 pop {r7, pc} - 80143ae: bf00 nop - 80143b0: 2000874c .word 0x2000874c - 80143b4: 0801ec40 .word 0x0801ec40 - 80143b8: 0801ee58 .word 0x0801ee58 - 80143bc: 0801ec8c .word 0x0801ec8c - 80143c0: 20008740 .word 0x20008740 - 80143c4: 20008744 .word 0x20008744 - 80143c8: 2000874a .word 0x2000874a - 80143cc: 20008730 .word 0x20008730 - 80143d0: 2000c0cc .word 0x2000c0cc - 80143d4: 2000c0d0 .word 0x2000c0d0 - 80143d8: 2000f7f4 .word 0x2000f7f4 - -080143dc : + 80143b6: bf00 nop +} + 80143b8: 3708 adds r7, #8 + 80143ba: 46bd mov sp, r7 + 80143bc: bd80 pop {r7, pc} + 80143be: bf00 nop + 80143c0: 2000874c .word 0x2000874c + 80143c4: 0801ec50 .word 0x0801ec50 + 80143c8: 0801ee68 .word 0x0801ee68 + 80143cc: 0801ec9c .word 0x0801ec9c + 80143d0: 20008740 .word 0x20008740 + 80143d4: 20008744 .word 0x20008744 + 80143d8: 2000874a .word 0x2000874a + 80143dc: 20008730 .word 0x20008730 + 80143e0: 2000c0cc .word 0x2000c0cc + 80143e4: 2000c0d0 .word 0x2000c0d0 + 80143e8: 2000f7f4 .word 0x2000f7f4 + +080143ec : * @note the segment which arrived is saved in global variables, therefore only the pcb * involved is passed as a parameter to this function */ static err_t tcp_process(struct tcp_pcb *pcb) { - 80143dc: b590 push {r4, r7, lr} - 80143de: b08d sub sp, #52 ; 0x34 - 80143e0: af04 add r7, sp, #16 - 80143e2: 6078 str r0, [r7, #4] + 80143ec: b590 push {r4, r7, lr} + 80143ee: b08d sub sp, #52 ; 0x34 + 80143f0: af04 add r7, sp, #16 + 80143f2: 6078 str r0, [r7, #4] struct tcp_seg *rseg; u8_t acceptable = 0; - 80143e4: 2300 movs r3, #0 - 80143e6: 76fb strb r3, [r7, #27] + 80143f4: 2300 movs r3, #0 + 80143f6: 76fb strb r3, [r7, #27] err_t err; err = ERR_OK; - 80143e8: 2300 movs r3, #0 - 80143ea: 76bb strb r3, [r7, #26] + 80143f8: 2300 movs r3, #0 + 80143fa: 76bb strb r3, [r7, #26] LWIP_ASSERT("tcp_process: invalid pcb", pcb != NULL); - 80143ec: 687b ldr r3, [r7, #4] - 80143ee: 2b00 cmp r3, #0 - 80143f0: d106 bne.n 8014400 - 80143f2: 4ba5 ldr r3, [pc, #660] ; (8014688 ) - 80143f4: f44f 7247 mov.w r2, #796 ; 0x31c - 80143f8: 49a4 ldr r1, [pc, #656] ; (801468c ) - 80143fa: 48a5 ldr r0, [pc, #660] ; (8014690 ) - 80143fc: f008 f924 bl 801c648 + 80143fc: 687b ldr r3, [r7, #4] + 80143fe: 2b00 cmp r3, #0 + 8014400: d106 bne.n 8014410 + 8014402: 4ba5 ldr r3, [pc, #660] ; (8014698 ) + 8014404: f44f 7247 mov.w r2, #796 ; 0x31c + 8014408: 49a4 ldr r1, [pc, #656] ; (801469c ) + 801440a: 48a5 ldr r0, [pc, #660] ; (80146a0 ) + 801440c: f008 f924 bl 801c658 /* Process incoming RST segments. */ if (flags & TCP_RST) { - 8014400: 4ba4 ldr r3, [pc, #656] ; (8014694 ) - 8014402: 781b ldrb r3, [r3, #0] - 8014404: f003 0304 and.w r3, r3, #4 - 8014408: 2b00 cmp r3, #0 - 801440a: d04e beq.n 80144aa + 8014410: 4ba4 ldr r3, [pc, #656] ; (80146a4 ) + 8014412: 781b ldrb r3, [r3, #0] + 8014414: f003 0304 and.w r3, r3, #4 + 8014418: 2b00 cmp r3, #0 + 801441a: d04e beq.n 80144ba /* First, determine if the reset is acceptable. */ if (pcb->state == SYN_SENT) { - 801440c: 687b ldr r3, [r7, #4] - 801440e: 7d1b ldrb r3, [r3, #20] - 8014410: 2b02 cmp r3, #2 - 8014412: d108 bne.n 8014426 + 801441c: 687b ldr r3, [r7, #4] + 801441e: 7d1b ldrb r3, [r3, #20] + 8014420: 2b02 cmp r3, #2 + 8014422: d108 bne.n 8014436 /* "In the SYN-SENT state (a RST received in response to an initial SYN), the RST is acceptable if the ACK field acknowledges the SYN." */ if (ackno == pcb->snd_nxt) { - 8014414: 687b ldr r3, [r7, #4] - 8014416: 6d1a ldr r2, [r3, #80] ; 0x50 - 8014418: 4b9f ldr r3, [pc, #636] ; (8014698 ) - 801441a: 681b ldr r3, [r3, #0] - 801441c: 429a cmp r2, r3 - 801441e: d123 bne.n 8014468 + 8014424: 687b ldr r3, [r7, #4] + 8014426: 6d1a ldr r2, [r3, #80] ; 0x50 + 8014428: 4b9f ldr r3, [pc, #636] ; (80146a8 ) + 801442a: 681b ldr r3, [r3, #0] + 801442c: 429a cmp r2, r3 + 801442e: d123 bne.n 8014478 acceptable = 1; - 8014420: 2301 movs r3, #1 - 8014422: 76fb strb r3, [r7, #27] - 8014424: e020 b.n 8014468 + 8014430: 2301 movs r3, #1 + 8014432: 76fb strb r3, [r7, #27] + 8014434: e020 b.n 8014478 } } else { /* "In all states except SYN-SENT, all reset (RST) segments are validated by checking their SEQ-fields." */ if (seqno == pcb->rcv_nxt) { - 8014426: 687b ldr r3, [r7, #4] - 8014428: 6a5a ldr r2, [r3, #36] ; 0x24 - 801442a: 4b9c ldr r3, [pc, #624] ; (801469c ) - 801442c: 681b ldr r3, [r3, #0] - 801442e: 429a cmp r2, r3 - 8014430: d102 bne.n 8014438 + 8014436: 687b ldr r3, [r7, #4] + 8014438: 6a5a ldr r2, [r3, #36] ; 0x24 + 801443a: 4b9c ldr r3, [pc, #624] ; (80146ac ) + 801443c: 681b ldr r3, [r3, #0] + 801443e: 429a cmp r2, r3 + 8014440: d102 bne.n 8014448 acceptable = 1; - 8014432: 2301 movs r3, #1 - 8014434: 76fb strb r3, [r7, #27] - 8014436: e017 b.n 8014468 + 8014442: 2301 movs r3, #1 + 8014444: 76fb strb r3, [r7, #27] + 8014446: e017 b.n 8014478 } else if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 8014438: 4b98 ldr r3, [pc, #608] ; (801469c ) - 801443a: 681a ldr r2, [r3, #0] - 801443c: 687b ldr r3, [r7, #4] - 801443e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8014440: 1ad3 subs r3, r2, r3 - 8014442: 2b00 cmp r3, #0 - 8014444: db10 blt.n 8014468 - 8014446: 4b95 ldr r3, [pc, #596] ; (801469c ) - 8014448: 681a ldr r2, [r3, #0] - 801444a: 687b ldr r3, [r7, #4] - 801444c: 6a5b ldr r3, [r3, #36] ; 0x24 - 801444e: 6879 ldr r1, [r7, #4] - 8014450: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8014452: 440b add r3, r1 - 8014454: 1ad3 subs r3, r2, r3 - 8014456: 2b00 cmp r3, #0 - 8014458: dc06 bgt.n 8014468 + 8014448: 4b98 ldr r3, [pc, #608] ; (80146ac ) + 801444a: 681a ldr r2, [r3, #0] + 801444c: 687b ldr r3, [r7, #4] + 801444e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8014450: 1ad3 subs r3, r2, r3 + 8014452: 2b00 cmp r3, #0 + 8014454: db10 blt.n 8014478 + 8014456: 4b95 ldr r3, [pc, #596] ; (80146ac ) + 8014458: 681a ldr r2, [r3, #0] + 801445a: 687b ldr r3, [r7, #4] + 801445c: 6a5b ldr r3, [r3, #36] ; 0x24 + 801445e: 6879 ldr r1, [r7, #4] + 8014460: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8014462: 440b add r3, r1 + 8014464: 1ad3 subs r3, r2, r3 + 8014466: 2b00 cmp r3, #0 + 8014468: dc06 bgt.n 8014478 pcb->rcv_nxt + pcb->rcv_wnd)) { /* If the sequence number is inside the window, we send a challenge ACK and wait for a re-send with matching sequence number. This follows RFC 5961 section 3.2 and addresses CVE-2004-0230 (RST spoofing attack), which is present in RFC 793 RST handling. */ tcp_ack_now(pcb); - 801445a: 687b ldr r3, [r7, #4] - 801445c: 8b5b ldrh r3, [r3, #26] - 801445e: f043 0302 orr.w r3, r3, #2 - 8014462: b29a uxth r2, r3 - 8014464: 687b ldr r3, [r7, #4] - 8014466: 835a strh r2, [r3, #26] + 801446a: 687b ldr r3, [r7, #4] + 801446c: 8b5b ldrh r3, [r3, #26] + 801446e: f043 0302 orr.w r3, r3, #2 + 8014472: b29a uxth r2, r3 + 8014474: 687b ldr r3, [r7, #4] + 8014476: 835a strh r2, [r3, #26] } } if (acceptable) { - 8014468: 7efb ldrb r3, [r7, #27] - 801446a: 2b00 cmp r3, #0 - 801446c: d01b beq.n 80144a6 + 8014478: 7efb ldrb r3, [r7, #27] + 801447a: 2b00 cmp r3, #0 + 801447c: d01b beq.n 80144b6 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: Connection RESET\n")); LWIP_ASSERT("tcp_input: pcb->state != CLOSED", pcb->state != CLOSED); - 801446e: 687b ldr r3, [r7, #4] - 8014470: 7d1b ldrb r3, [r3, #20] - 8014472: 2b00 cmp r3, #0 - 8014474: d106 bne.n 8014484 - 8014476: 4b84 ldr r3, [pc, #528] ; (8014688 ) - 8014478: f44f 724e mov.w r2, #824 ; 0x338 - 801447c: 4988 ldr r1, [pc, #544] ; (80146a0 ) - 801447e: 4884 ldr r0, [pc, #528] ; (8014690 ) - 8014480: f008 f8e2 bl 801c648 + 801447e: 687b ldr r3, [r7, #4] + 8014480: 7d1b ldrb r3, [r3, #20] + 8014482: 2b00 cmp r3, #0 + 8014484: d106 bne.n 8014494 + 8014486: 4b84 ldr r3, [pc, #528] ; (8014698 ) + 8014488: f44f 724e mov.w r2, #824 ; 0x338 + 801448c: 4988 ldr r1, [pc, #544] ; (80146b0 ) + 801448e: 4884 ldr r0, [pc, #528] ; (80146a0 ) + 8014490: f008 f8e2 bl 801c658 recv_flags |= TF_RESET; - 8014484: 4b87 ldr r3, [pc, #540] ; (80146a4 ) - 8014486: 781b ldrb r3, [r3, #0] - 8014488: f043 0308 orr.w r3, r3, #8 - 801448c: b2da uxtb r2, r3 - 801448e: 4b85 ldr r3, [pc, #532] ; (80146a4 ) - 8014490: 701a strb r2, [r3, #0] + 8014494: 4b87 ldr r3, [pc, #540] ; (80146b4 ) + 8014496: 781b ldrb r3, [r3, #0] + 8014498: f043 0308 orr.w r3, r3, #8 + 801449c: b2da uxtb r2, r3 + 801449e: 4b85 ldr r3, [pc, #532] ; (80146b4 ) + 80144a0: 701a strb r2, [r3, #0] tcp_clear_flags(pcb, TF_ACK_DELAY); - 8014492: 687b ldr r3, [r7, #4] - 8014494: 8b5b ldrh r3, [r3, #26] - 8014496: f023 0301 bic.w r3, r3, #1 - 801449a: b29a uxth r2, r3 - 801449c: 687b ldr r3, [r7, #4] - 801449e: 835a strh r2, [r3, #26] + 80144a2: 687b ldr r3, [r7, #4] + 80144a4: 8b5b ldrh r3, [r3, #26] + 80144a6: f023 0301 bic.w r3, r3, #1 + 80144aa: b29a uxth r2, r3 + 80144ac: 687b ldr r3, [r7, #4] + 80144ae: 835a strh r2, [r3, #26] return ERR_RST; - 80144a0: f06f 030d mvn.w r3, #13 - 80144a4: e37a b.n 8014b9c + 80144b0: f06f 030d mvn.w r3, #13 + 80144b4: e37a b.n 8014bac } else { LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n", seqno, pcb->rcv_nxt)); LWIP_DEBUGF(TCP_DEBUG, ("tcp_process: unacceptable reset seqno %"U32_F" rcv_nxt %"U32_F"\n", seqno, pcb->rcv_nxt)); return ERR_OK; - 80144a6: 2300 movs r3, #0 - 80144a8: e378 b.n 8014b9c + 80144b6: 2300 movs r3, #0 + 80144b8: e378 b.n 8014bac } } if ((flags & TCP_SYN) && (pcb->state != SYN_SENT && pcb->state != SYN_RCVD)) { - 80144aa: 4b7a ldr r3, [pc, #488] ; (8014694 ) - 80144ac: 781b ldrb r3, [r3, #0] - 80144ae: f003 0302 and.w r3, r3, #2 - 80144b2: 2b00 cmp r3, #0 - 80144b4: d010 beq.n 80144d8 - 80144b6: 687b ldr r3, [r7, #4] - 80144b8: 7d1b ldrb r3, [r3, #20] - 80144ba: 2b02 cmp r3, #2 - 80144bc: d00c beq.n 80144d8 - 80144be: 687b ldr r3, [r7, #4] - 80144c0: 7d1b ldrb r3, [r3, #20] - 80144c2: 2b03 cmp r3, #3 - 80144c4: d008 beq.n 80144d8 + 80144ba: 4b7a ldr r3, [pc, #488] ; (80146a4 ) + 80144bc: 781b ldrb r3, [r3, #0] + 80144be: f003 0302 and.w r3, r3, #2 + 80144c2: 2b00 cmp r3, #0 + 80144c4: d010 beq.n 80144e8 + 80144c6: 687b ldr r3, [r7, #4] + 80144c8: 7d1b ldrb r3, [r3, #20] + 80144ca: 2b02 cmp r3, #2 + 80144cc: d00c beq.n 80144e8 + 80144ce: 687b ldr r3, [r7, #4] + 80144d0: 7d1b ldrb r3, [r3, #20] + 80144d2: 2b03 cmp r3, #3 + 80144d4: d008 beq.n 80144e8 /* Cope with new connection attempt after remote end crashed */ tcp_ack_now(pcb); - 80144c6: 687b ldr r3, [r7, #4] - 80144c8: 8b5b ldrh r3, [r3, #26] - 80144ca: f043 0302 orr.w r3, r3, #2 - 80144ce: b29a uxth r2, r3 - 80144d0: 687b ldr r3, [r7, #4] - 80144d2: 835a strh r2, [r3, #26] + 80144d6: 687b ldr r3, [r7, #4] + 80144d8: 8b5b ldrh r3, [r3, #26] + 80144da: f043 0302 orr.w r3, r3, #2 + 80144de: b29a uxth r2, r3 + 80144e0: 687b ldr r3, [r7, #4] + 80144e2: 835a strh r2, [r3, #26] return ERR_OK; - 80144d4: 2300 movs r3, #0 - 80144d6: e361 b.n 8014b9c + 80144e4: 2300 movs r3, #0 + 80144e6: e361 b.n 8014bac } if ((pcb->flags & TF_RXCLOSED) == 0) { - 80144d8: 687b ldr r3, [r7, #4] - 80144da: 8b5b ldrh r3, [r3, #26] - 80144dc: f003 0310 and.w r3, r3, #16 - 80144e0: 2b00 cmp r3, #0 - 80144e2: d103 bne.n 80144ec + 80144e8: 687b ldr r3, [r7, #4] + 80144ea: 8b5b ldrh r3, [r3, #26] + 80144ec: f003 0310 and.w r3, r3, #16 + 80144f0: 2b00 cmp r3, #0 + 80144f2: d103 bne.n 80144fc /* Update the PCB (in)activity timer unless rx is closed (see tcp_shutdown) */ pcb->tmr = tcp_ticks; - 80144e4: 4b70 ldr r3, [pc, #448] ; (80146a8 ) - 80144e6: 681a ldr r2, [r3, #0] - 80144e8: 687b ldr r3, [r7, #4] - 80144ea: 621a str r2, [r3, #32] + 80144f4: 4b70 ldr r3, [pc, #448] ; (80146b8 ) + 80144f6: 681a ldr r2, [r3, #0] + 80144f8: 687b ldr r3, [r7, #4] + 80144fa: 621a str r2, [r3, #32] } pcb->keep_cnt_sent = 0; - 80144ec: 687b ldr r3, [r7, #4] - 80144ee: 2200 movs r2, #0 - 80144f0: f883 209b strb.w r2, [r3, #155] ; 0x9b + 80144fc: 687b ldr r3, [r7, #4] + 80144fe: 2200 movs r2, #0 + 8014500: f883 209b strb.w r2, [r3, #155] ; 0x9b pcb->persist_probe = 0; - 80144f4: 687b ldr r3, [r7, #4] - 80144f6: 2200 movs r2, #0 - 80144f8: f883 209a strb.w r2, [r3, #154] ; 0x9a + 8014504: 687b ldr r3, [r7, #4] + 8014506: 2200 movs r2, #0 + 8014508: f883 209a strb.w r2, [r3, #154] ; 0x9a tcp_parseopt(pcb); - 80144fc: 6878 ldr r0, [r7, #4] - 80144fe: f001 fc2d bl 8015d5c + 801450c: 6878 ldr r0, [r7, #4] + 801450e: f001 fc2d bl 8015d6c /* Do different things depending on the TCP state. */ switch (pcb->state) { - 8014502: 687b ldr r3, [r7, #4] - 8014504: 7d1b ldrb r3, [r3, #20] - 8014506: 3b02 subs r3, #2 - 8014508: 2b07 cmp r3, #7 - 801450a: f200 8337 bhi.w 8014b7c - 801450e: a201 add r2, pc, #4 ; (adr r2, 8014514 ) - 8014510: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8014514: 08014535 .word 0x08014535 - 8014518: 08014765 .word 0x08014765 - 801451c: 080148dd .word 0x080148dd - 8014520: 08014907 .word 0x08014907 - 8014524: 08014a2b .word 0x08014a2b - 8014528: 080148dd .word 0x080148dd - 801452c: 08014ab7 .word 0x08014ab7 - 8014530: 08014b47 .word 0x08014b47 + 8014512: 687b ldr r3, [r7, #4] + 8014514: 7d1b ldrb r3, [r3, #20] + 8014516: 3b02 subs r3, #2 + 8014518: 2b07 cmp r3, #7 + 801451a: f200 8337 bhi.w 8014b8c + 801451e: a201 add r2, pc, #4 ; (adr r2, 8014524 ) + 8014520: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8014524: 08014545 .word 0x08014545 + 8014528: 08014775 .word 0x08014775 + 801452c: 080148ed .word 0x080148ed + 8014530: 08014917 .word 0x08014917 + 8014534: 08014a3b .word 0x08014a3b + 8014538: 080148ed .word 0x080148ed + 801453c: 08014ac7 .word 0x08014ac7 + 8014540: 08014b57 .word 0x08014b57 case SYN_SENT: LWIP_DEBUGF(TCP_INPUT_DEBUG, ("SYN-SENT: ackno %"U32_F" pcb->snd_nxt %"U32_F" unacked %"U32_F"\n", ackno, pcb->snd_nxt, lwip_ntohl(pcb->unacked->tcphdr->seqno))); /* received SYN ACK with expected sequence number? */ if ((flags & TCP_ACK) && (flags & TCP_SYN) - 8014534: 4b57 ldr r3, [pc, #348] ; (8014694 ) - 8014536: 781b ldrb r3, [r3, #0] - 8014538: f003 0310 and.w r3, r3, #16 - 801453c: 2b00 cmp r3, #0 - 801453e: f000 80e4 beq.w 801470a - 8014542: 4b54 ldr r3, [pc, #336] ; (8014694 ) - 8014544: 781b ldrb r3, [r3, #0] - 8014546: f003 0302 and.w r3, r3, #2 - 801454a: 2b00 cmp r3, #0 - 801454c: f000 80dd beq.w 801470a + 8014544: 4b57 ldr r3, [pc, #348] ; (80146a4 ) + 8014546: 781b ldrb r3, [r3, #0] + 8014548: f003 0310 and.w r3, r3, #16 + 801454c: 2b00 cmp r3, #0 + 801454e: f000 80e4 beq.w 801471a + 8014552: 4b54 ldr r3, [pc, #336] ; (80146a4 ) + 8014554: 781b ldrb r3, [r3, #0] + 8014556: f003 0302 and.w r3, r3, #2 + 801455a: 2b00 cmp r3, #0 + 801455c: f000 80dd beq.w 801471a && (ackno == pcb->lastack + 1)) { - 8014550: 687b ldr r3, [r7, #4] - 8014552: 6c5b ldr r3, [r3, #68] ; 0x44 - 8014554: 1c5a adds r2, r3, #1 - 8014556: 4b50 ldr r3, [pc, #320] ; (8014698 ) - 8014558: 681b ldr r3, [r3, #0] - 801455a: 429a cmp r2, r3 - 801455c: f040 80d5 bne.w 801470a - pcb->rcv_nxt = seqno + 1; - 8014560: 4b4e ldr r3, [pc, #312] ; (801469c ) - 8014562: 681b ldr r3, [r3, #0] + 8014560: 687b ldr r3, [r7, #4] + 8014562: 6c5b ldr r3, [r3, #68] ; 0x44 8014564: 1c5a adds r2, r3, #1 - 8014566: 687b ldr r3, [r7, #4] - 8014568: 625a str r2, [r3, #36] ; 0x24 + 8014566: 4b50 ldr r3, [pc, #320] ; (80146a8 ) + 8014568: 681b ldr r3, [r3, #0] + 801456a: 429a cmp r2, r3 + 801456c: f040 80d5 bne.w 801471a + pcb->rcv_nxt = seqno + 1; + 8014570: 4b4e ldr r3, [pc, #312] ; (80146ac ) + 8014572: 681b ldr r3, [r3, #0] + 8014574: 1c5a adds r2, r3, #1 + 8014576: 687b ldr r3, [r7, #4] + 8014578: 625a str r2, [r3, #36] ; 0x24 pcb->rcv_ann_right_edge = pcb->rcv_nxt; - 801456a: 687b ldr r3, [r7, #4] - 801456c: 6a5a ldr r2, [r3, #36] ; 0x24 - 801456e: 687b ldr r3, [r7, #4] - 8014570: 62da str r2, [r3, #44] ; 0x2c + 801457a: 687b ldr r3, [r7, #4] + 801457c: 6a5a ldr r2, [r3, #36] ; 0x24 + 801457e: 687b ldr r3, [r7, #4] + 8014580: 62da str r2, [r3, #44] ; 0x2c pcb->lastack = ackno; - 8014572: 4b49 ldr r3, [pc, #292] ; (8014698 ) - 8014574: 681a ldr r2, [r3, #0] - 8014576: 687b ldr r3, [r7, #4] - 8014578: 645a str r2, [r3, #68] ; 0x44 + 8014582: 4b49 ldr r3, [pc, #292] ; (80146a8 ) + 8014584: 681a ldr r2, [r3, #0] + 8014586: 687b ldr r3, [r7, #4] + 8014588: 645a str r2, [r3, #68] ; 0x44 pcb->snd_wnd = tcphdr->wnd; - 801457a: 4b4c ldr r3, [pc, #304] ; (80146ac ) - 801457c: 681b ldr r3, [r3, #0] - 801457e: 89db ldrh r3, [r3, #14] - 8014580: b29a uxth r2, r3 - 8014582: 687b ldr r3, [r7, #4] - 8014584: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 + 801458a: 4b4c ldr r3, [pc, #304] ; (80146bc ) + 801458c: 681b ldr r3, [r3, #0] + 801458e: 89db ldrh r3, [r3, #14] + 8014590: b29a uxth r2, r3 + 8014592: 687b ldr r3, [r7, #4] + 8014594: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 pcb->snd_wnd_max = pcb->snd_wnd; - 8014588: 687b ldr r3, [r7, #4] - 801458a: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 801458e: 687b ldr r3, [r7, #4] - 8014590: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 + 8014598: 687b ldr r3, [r7, #4] + 801459a: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 801459e: 687b ldr r3, [r7, #4] + 80145a0: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 pcb->snd_wl1 = seqno - 1; /* initialise to seqno - 1 to force window update */ - 8014594: 4b41 ldr r3, [pc, #260] ; (801469c ) - 8014596: 681b ldr r3, [r3, #0] - 8014598: 1e5a subs r2, r3, #1 - 801459a: 687b ldr r3, [r7, #4] - 801459c: 655a str r2, [r3, #84] ; 0x54 + 80145a4: 4b41 ldr r3, [pc, #260] ; (80146ac ) + 80145a6: 681b ldr r3, [r3, #0] + 80145a8: 1e5a subs r2, r3, #1 + 80145aa: 687b ldr r3, [r7, #4] + 80145ac: 655a str r2, [r3, #84] ; 0x54 pcb->state = ESTABLISHED; - 801459e: 687b ldr r3, [r7, #4] - 80145a0: 2204 movs r2, #4 - 80145a2: 751a strb r2, [r3, #20] + 80145ae: 687b ldr r3, [r7, #4] + 80145b0: 2204 movs r2, #4 + 80145b2: 751a strb r2, [r3, #20] #if TCP_CALCULATE_EFF_SEND_MSS pcb->mss = tcp_eff_send_mss(pcb->mss, &pcb->local_ip, &pcb->remote_ip); - 80145a4: 687b ldr r3, [r7, #4] - 80145a6: 8e5c ldrh r4, [r3, #50] ; 0x32 - 80145a8: 687b ldr r3, [r7, #4] - 80145aa: 3304 adds r3, #4 - 80145ac: 4618 mov r0, r3 - 80145ae: f006 fcd7 bl 801af60 - 80145b2: 4601 mov r1, r0 80145b4: 687b ldr r3, [r7, #4] - 80145b6: 3304 adds r3, #4 - 80145b8: 461a mov r2, r3 - 80145ba: 4620 mov r0, r4 - 80145bc: f7ff f88e bl 80136dc - 80145c0: 4603 mov r3, r0 - 80145c2: 461a mov r2, r3 + 80145b6: 8e5c ldrh r4, [r3, #50] ; 0x32 + 80145b8: 687b ldr r3, [r7, #4] + 80145ba: 3304 adds r3, #4 + 80145bc: 4618 mov r0, r3 + 80145be: f006 fcd7 bl 801af70 + 80145c2: 4601 mov r1, r0 80145c4: 687b ldr r3, [r7, #4] - 80145c6: 865a strh r2, [r3, #50] ; 0x32 + 80145c6: 3304 adds r3, #4 + 80145c8: 461a mov r2, r3 + 80145ca: 4620 mov r0, r4 + 80145cc: f7ff f88e bl 80136ec + 80145d0: 4603 mov r3, r0 + 80145d2: 461a mov r2, r3 + 80145d4: 687b ldr r3, [r7, #4] + 80145d6: 865a strh r2, [r3, #50] ; 0x32 #endif /* TCP_CALCULATE_EFF_SEND_MSS */ pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss); - 80145c8: 687b ldr r3, [r7, #4] - 80145ca: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80145cc: 009a lsls r2, r3, #2 - 80145ce: 687b ldr r3, [r7, #4] - 80145d0: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80145d2: 005b lsls r3, r3, #1 - 80145d4: f241 111c movw r1, #4380 ; 0x111c - 80145d8: 428b cmp r3, r1 - 80145da: bf38 it cc - 80145dc: 460b movcc r3, r1 - 80145de: 429a cmp r2, r3 - 80145e0: d204 bcs.n 80145ec - 80145e2: 687b ldr r3, [r7, #4] - 80145e4: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80145e6: 009b lsls r3, r3, #2 - 80145e8: b29b uxth r3, r3 - 80145ea: e00d b.n 8014608 - 80145ec: 687b ldr r3, [r7, #4] - 80145ee: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80145f0: 005b lsls r3, r3, #1 - 80145f2: f241 121c movw r2, #4380 ; 0x111c - 80145f6: 4293 cmp r3, r2 - 80145f8: d904 bls.n 8014604 - 80145fa: 687b ldr r3, [r7, #4] - 80145fc: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80145fe: 005b lsls r3, r3, #1 - 8014600: b29b uxth r3, r3 - 8014602: e001 b.n 8014608 - 8014604: f241 131c movw r3, #4380 ; 0x111c - 8014608: 687a ldr r2, [r7, #4] - 801460a: f8a2 3048 strh.w r3, [r2, #72] ; 0x48 + 80145d8: 687b ldr r3, [r7, #4] + 80145da: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80145dc: 009a lsls r2, r3, #2 + 80145de: 687b ldr r3, [r7, #4] + 80145e0: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80145e2: 005b lsls r3, r3, #1 + 80145e4: f241 111c movw r1, #4380 ; 0x111c + 80145e8: 428b cmp r3, r1 + 80145ea: bf38 it cc + 80145ec: 460b movcc r3, r1 + 80145ee: 429a cmp r2, r3 + 80145f0: d204 bcs.n 80145fc + 80145f2: 687b ldr r3, [r7, #4] + 80145f4: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80145f6: 009b lsls r3, r3, #2 + 80145f8: b29b uxth r3, r3 + 80145fa: e00d b.n 8014618 + 80145fc: 687b ldr r3, [r7, #4] + 80145fe: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8014600: 005b lsls r3, r3, #1 + 8014602: f241 121c movw r2, #4380 ; 0x111c + 8014606: 4293 cmp r3, r2 + 8014608: d904 bls.n 8014614 + 801460a: 687b ldr r3, [r7, #4] + 801460c: 8e5b ldrh r3, [r3, #50] ; 0x32 + 801460e: 005b lsls r3, r3, #1 + 8014610: b29b uxth r3, r3 + 8014612: e001 b.n 8014618 + 8014614: f241 131c movw r3, #4380 ; 0x111c + 8014618: 687a ldr r2, [r7, #4] + 801461a: f8a2 3048 strh.w r3, [r2, #72] ; 0x48 LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SENT): cwnd %"TCPWNDSIZE_F " ssthresh %"TCPWNDSIZE_F"\n", pcb->cwnd, pcb->ssthresh)); LWIP_ASSERT("pcb->snd_queuelen > 0", (pcb->snd_queuelen > 0)); - 801460e: 687b ldr r3, [r7, #4] - 8014610: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8014614: 2b00 cmp r3, #0 - 8014616: d106 bne.n 8014626 - 8014618: 4b1b ldr r3, [pc, #108] ; (8014688 ) - 801461a: f44f 725b mov.w r2, #876 ; 0x36c - 801461e: 4924 ldr r1, [pc, #144] ; (80146b0 ) - 8014620: 481b ldr r0, [pc, #108] ; (8014690 ) - 8014622: f008 f811 bl 801c648 + 801461e: 687b ldr r3, [r7, #4] + 8014620: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 8014624: 2b00 cmp r3, #0 + 8014626: d106 bne.n 8014636 + 8014628: 4b1b ldr r3, [pc, #108] ; (8014698 ) + 801462a: f44f 725b mov.w r2, #876 ; 0x36c + 801462e: 4924 ldr r1, [pc, #144] ; (80146c0 ) + 8014630: 481b ldr r0, [pc, #108] ; (80146a0 ) + 8014632: f008 f811 bl 801c658 --pcb->snd_queuelen; - 8014626: 687b ldr r3, [r7, #4] - 8014628: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801462c: 3b01 subs r3, #1 - 801462e: b29a uxth r2, r3 - 8014630: 687b ldr r3, [r7, #4] - 8014632: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 8014636: 687b ldr r3, [r7, #4] + 8014638: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 801463c: 3b01 subs r3, #1 + 801463e: b29a uxth r2, r3 + 8014640: 687b ldr r3, [r7, #4] + 8014642: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_process: SYN-SENT --queuelen %"TCPWNDSIZE_F"\n", (tcpwnd_size_t)pcb->snd_queuelen)); rseg = pcb->unacked; - 8014636: 687b ldr r3, [r7, #4] - 8014638: 6f1b ldr r3, [r3, #112] ; 0x70 - 801463a: 61fb str r3, [r7, #28] + 8014646: 687b ldr r3, [r7, #4] + 8014648: 6f1b ldr r3, [r3, #112] ; 0x70 + 801464a: 61fb str r3, [r7, #28] if (rseg == NULL) { - 801463c: 69fb ldr r3, [r7, #28] - 801463e: 2b00 cmp r3, #0 - 8014640: d111 bne.n 8014666 + 801464c: 69fb ldr r3, [r7, #28] + 801464e: 2b00 cmp r3, #0 + 8014650: d111 bne.n 8014676 /* might happen if tcp_output fails in tcp_rexmit_rto() in which case the segment is on the unsent list */ rseg = pcb->unsent; - 8014642: 687b ldr r3, [r7, #4] - 8014644: 6edb ldr r3, [r3, #108] ; 0x6c - 8014646: 61fb str r3, [r7, #28] + 8014652: 687b ldr r3, [r7, #4] + 8014654: 6edb ldr r3, [r3, #108] ; 0x6c + 8014656: 61fb str r3, [r7, #28] LWIP_ASSERT("no segment to free", rseg != NULL); - 8014648: 69fb ldr r3, [r7, #28] - 801464a: 2b00 cmp r3, #0 - 801464c: d106 bne.n 801465c - 801464e: 4b0e ldr r3, [pc, #56] ; (8014688 ) - 8014650: f44f 725d mov.w r2, #884 ; 0x374 - 8014654: 4917 ldr r1, [pc, #92] ; (80146b4 ) - 8014656: 480e ldr r0, [pc, #56] ; (8014690 ) - 8014658: f007 fff6 bl 801c648 + 8014658: 69fb ldr r3, [r7, #28] + 801465a: 2b00 cmp r3, #0 + 801465c: d106 bne.n 801466c + 801465e: 4b0e ldr r3, [pc, #56] ; (8014698 ) + 8014660: f44f 725d mov.w r2, #884 ; 0x374 + 8014664: 4917 ldr r1, [pc, #92] ; (80146c4 ) + 8014666: 480e ldr r0, [pc, #56] ; (80146a0 ) + 8014668: f007 fff6 bl 801c658 pcb->unsent = rseg->next; - 801465c: 69fb ldr r3, [r7, #28] - 801465e: 681a ldr r2, [r3, #0] - 8014660: 687b ldr r3, [r7, #4] - 8014662: 66da str r2, [r3, #108] ; 0x6c - 8014664: e003 b.n 801466e + 801466c: 69fb ldr r3, [r7, #28] + 801466e: 681a ldr r2, [r3, #0] + 8014670: 687b ldr r3, [r7, #4] + 8014672: 66da str r2, [r3, #108] ; 0x6c + 8014674: e003 b.n 801467e } else { pcb->unacked = rseg->next; - 8014666: 69fb ldr r3, [r7, #28] - 8014668: 681a ldr r2, [r3, #0] - 801466a: 687b ldr r3, [r7, #4] - 801466c: 671a str r2, [r3, #112] ; 0x70 + 8014676: 69fb ldr r3, [r7, #28] + 8014678: 681a ldr r2, [r3, #0] + 801467a: 687b ldr r3, [r7, #4] + 801467c: 671a str r2, [r3, #112] ; 0x70 } tcp_seg_free(rseg); - 801466e: 69f8 ldr r0, [r7, #28] - 8014670: f7fe fd3e bl 80130f0 + 801467e: 69f8 ldr r0, [r7, #28] + 8014680: f7fe fd3e bl 8013100 /* If there's nothing left to acknowledge, stop the retransmit timer, otherwise reset it to start again */ if (pcb->unacked == NULL) { - 8014674: 687b ldr r3, [r7, #4] - 8014676: 6f1b ldr r3, [r3, #112] ; 0x70 - 8014678: 2b00 cmp r3, #0 - 801467a: d11d bne.n 80146b8 + 8014684: 687b ldr r3, [r7, #4] + 8014686: 6f1b ldr r3, [r3, #112] ; 0x70 + 8014688: 2b00 cmp r3, #0 + 801468a: d11d bne.n 80146c8 pcb->rtime = -1; - 801467c: 687b ldr r3, [r7, #4] - 801467e: f64f 72ff movw r2, #65535 ; 0xffff - 8014682: 861a strh r2, [r3, #48] ; 0x30 - 8014684: e01f b.n 80146c6 - 8014686: bf00 nop - 8014688: 0801ec40 .word 0x0801ec40 - 801468c: 0801ee78 .word 0x0801ee78 - 8014690: 0801ec8c .word 0x0801ec8c - 8014694: 2000874c .word 0x2000874c - 8014698: 20008744 .word 0x20008744 - 801469c: 20008740 .word 0x20008740 - 80146a0: 0801ee94 .word 0x0801ee94 - 80146a4: 2000874d .word 0x2000874d - 80146a8: 2000f7f4 .word 0x2000f7f4 - 80146ac: 20008730 .word 0x20008730 - 80146b0: 0801eeb4 .word 0x0801eeb4 - 80146b4: 0801eecc .word 0x0801eecc + 801468c: 687b ldr r3, [r7, #4] + 801468e: f64f 72ff movw r2, #65535 ; 0xffff + 8014692: 861a strh r2, [r3, #48] ; 0x30 + 8014694: e01f b.n 80146d6 + 8014696: bf00 nop + 8014698: 0801ec50 .word 0x0801ec50 + 801469c: 0801ee88 .word 0x0801ee88 + 80146a0: 0801ec9c .word 0x0801ec9c + 80146a4: 2000874c .word 0x2000874c + 80146a8: 20008744 .word 0x20008744 + 80146ac: 20008740 .word 0x20008740 + 80146b0: 0801eea4 .word 0x0801eea4 + 80146b4: 2000874d .word 0x2000874d + 80146b8: 2000f7f4 .word 0x2000f7f4 + 80146bc: 20008730 .word 0x20008730 + 80146c0: 0801eec4 .word 0x0801eec4 + 80146c4: 0801eedc .word 0x0801eedc } else { pcb->rtime = 0; - 80146b8: 687b ldr r3, [r7, #4] - 80146ba: 2200 movs r2, #0 - 80146bc: 861a strh r2, [r3, #48] ; 0x30 + 80146c8: 687b ldr r3, [r7, #4] + 80146ca: 2200 movs r2, #0 + 80146cc: 861a strh r2, [r3, #48] ; 0x30 pcb->nrtx = 0; - 80146be: 687b ldr r3, [r7, #4] - 80146c0: 2200 movs r2, #0 - 80146c2: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 80146ce: 687b ldr r3, [r7, #4] + 80146d0: 2200 movs r2, #0 + 80146d2: f883 2042 strb.w r2, [r3, #66] ; 0x42 } /* Call the user specified function to call when successfully * connected. */ TCP_EVENT_CONNECTED(pcb, ERR_OK, err); - 80146c6: 687b ldr r3, [r7, #4] - 80146c8: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 80146cc: 2b00 cmp r3, #0 - 80146ce: d00a beq.n 80146e6 - 80146d0: 687b ldr r3, [r7, #4] - 80146d2: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 - 80146d6: 687a ldr r2, [r7, #4] - 80146d8: 6910 ldr r0, [r2, #16] - 80146da: 2200 movs r2, #0 - 80146dc: 6879 ldr r1, [r7, #4] - 80146de: 4798 blx r3 - 80146e0: 4603 mov r3, r0 - 80146e2: 76bb strb r3, [r7, #26] - 80146e4: e001 b.n 80146ea - 80146e6: 2300 movs r3, #0 - 80146e8: 76bb strb r3, [r7, #26] + 80146d6: 687b ldr r3, [r7, #4] + 80146d8: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 80146dc: 2b00 cmp r3, #0 + 80146de: d00a beq.n 80146f6 + 80146e0: 687b ldr r3, [r7, #4] + 80146e2: f8d3 3088 ldr.w r3, [r3, #136] ; 0x88 + 80146e6: 687a ldr r2, [r7, #4] + 80146e8: 6910 ldr r0, [r2, #16] + 80146ea: 2200 movs r2, #0 + 80146ec: 6879 ldr r1, [r7, #4] + 80146ee: 4798 blx r3 + 80146f0: 4603 mov r3, r0 + 80146f2: 76bb strb r3, [r7, #26] + 80146f4: e001 b.n 80146fa + 80146f6: 2300 movs r3, #0 + 80146f8: 76bb strb r3, [r7, #26] if (err == ERR_ABRT) { - 80146ea: f997 301a ldrsb.w r3, [r7, #26] - 80146ee: f113 0f0d cmn.w r3, #13 - 80146f2: d102 bne.n 80146fa + 80146fa: f997 301a ldrsb.w r3, [r7, #26] + 80146fe: f113 0f0d cmn.w r3, #13 + 8014702: d102 bne.n 801470a return ERR_ABRT; - 80146f4: f06f 030c mvn.w r3, #12 - 80146f8: e250 b.n 8014b9c + 8014704: f06f 030c mvn.w r3, #12 + 8014708: e250 b.n 8014bac } tcp_ack_now(pcb); - 80146fa: 687b ldr r3, [r7, #4] - 80146fc: 8b5b ldrh r3, [r3, #26] - 80146fe: f043 0302 orr.w r3, r3, #2 - 8014702: b29a uxth r2, r3 - 8014704: 687b ldr r3, [r7, #4] - 8014706: 835a strh r2, [r3, #26] + 801470a: 687b ldr r3, [r7, #4] + 801470c: 8b5b ldrh r3, [r3, #26] + 801470e: f043 0302 orr.w r3, r3, #2 + 8014712: b29a uxth r2, r3 + 8014714: 687b ldr r3, [r7, #4] + 8014716: 835a strh r2, [r3, #26] if (pcb->nrtx < TCP_SYNMAXRTX) { pcb->rtime = 0; tcp_rexmit_rto(pcb); } } break; - 8014708: e23a b.n 8014b80 + 8014718: e23a b.n 8014b90 else if (flags & TCP_ACK) { - 801470a: 4b9d ldr r3, [pc, #628] ; (8014980 ) - 801470c: 781b ldrb r3, [r3, #0] - 801470e: f003 0310 and.w r3, r3, #16 - 8014712: 2b00 cmp r3, #0 - 8014714: f000 8234 beq.w 8014b80 + 801471a: 4b9d ldr r3, [pc, #628] ; (8014990 ) + 801471c: 781b ldrb r3, [r3, #0] + 801471e: f003 0310 and.w r3, r3, #16 + 8014722: 2b00 cmp r3, #0 + 8014724: f000 8234 beq.w 8014b90 tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8014718: 4b9a ldr r3, [pc, #616] ; (8014984 ) - 801471a: 6819 ldr r1, [r3, #0] - 801471c: 4b9a ldr r3, [pc, #616] ; (8014988 ) - 801471e: 881b ldrh r3, [r3, #0] - 8014720: 461a mov r2, r3 - 8014722: 4b9a ldr r3, [pc, #616] ; (801498c ) - 8014724: 681b ldr r3, [r3, #0] - 8014726: 18d0 adds r0, r2, r3 + 8014728: 4b9a ldr r3, [pc, #616] ; (8014994 ) + 801472a: 6819 ldr r1, [r3, #0] + 801472c: 4b9a ldr r3, [pc, #616] ; (8014998 ) + 801472e: 881b ldrh r3, [r3, #0] + 8014730: 461a mov r2, r3 + 8014732: 4b9a ldr r3, [pc, #616] ; (801499c ) + 8014734: 681b ldr r3, [r3, #0] + 8014736: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8014728: 4b99 ldr r3, [pc, #612] ; (8014990 ) - 801472a: 681b ldr r3, [r3, #0] + 8014738: 4b99 ldr r3, [pc, #612] ; (80149a0 ) + 801473a: 681b ldr r3, [r3, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801472c: 885b ldrh r3, [r3, #2] - 801472e: b29b uxth r3, r3 + 801473c: 885b ldrh r3, [r3, #2] + 801473e: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8014730: 4a97 ldr r2, [pc, #604] ; (8014990 ) - 8014732: 6812 ldr r2, [r2, #0] + 8014740: 4a97 ldr r2, [pc, #604] ; (80149a0 ) + 8014742: 6812 ldr r2, [r2, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8014734: 8812 ldrh r2, [r2, #0] - 8014736: b292 uxth r2, r2 - 8014738: 9202 str r2, [sp, #8] - 801473a: 9301 str r3, [sp, #4] - 801473c: 4b95 ldr r3, [pc, #596] ; (8014994 ) - 801473e: 9300 str r3, [sp, #0] - 8014740: 4b95 ldr r3, [pc, #596] ; (8014998 ) - 8014742: 4602 mov r2, r0 - 8014744: 6878 ldr r0, [r7, #4] - 8014746: f002 fc93 bl 8017070 + 8014744: 8812 ldrh r2, [r2, #0] + 8014746: b292 uxth r2, r2 + 8014748: 9202 str r2, [sp, #8] + 801474a: 9301 str r3, [sp, #4] + 801474c: 4b95 ldr r3, [pc, #596] ; (80149a4 ) + 801474e: 9300 str r3, [sp, #0] + 8014750: 4b95 ldr r3, [pc, #596] ; (80149a8 ) + 8014752: 4602 mov r2, r0 + 8014754: 6878 ldr r0, [r7, #4] + 8014756: f002 fc93 bl 8017080 if (pcb->nrtx < TCP_SYNMAXRTX) { - 801474a: 687b ldr r3, [r7, #4] - 801474c: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8014750: 2b05 cmp r3, #5 - 8014752: f200 8215 bhi.w 8014b80 + 801475a: 687b ldr r3, [r7, #4] + 801475c: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 8014760: 2b05 cmp r3, #5 + 8014762: f200 8215 bhi.w 8014b90 pcb->rtime = 0; - 8014756: 687b ldr r3, [r7, #4] - 8014758: 2200 movs r2, #0 - 801475a: 861a strh r2, [r3, #48] ; 0x30 + 8014766: 687b ldr r3, [r7, #4] + 8014768: 2200 movs r2, #0 + 801476a: 861a strh r2, [r3, #48] ; 0x30 tcp_rexmit_rto(pcb); - 801475c: 6878 ldr r0, [r7, #4] - 801475e: f002 fa51 bl 8016c04 + 801476c: 6878 ldr r0, [r7, #4] + 801476e: f002 fa51 bl 8016c14 break; - 8014762: e20d b.n 8014b80 + 8014772: e20d b.n 8014b90 case SYN_RCVD: if (flags & TCP_ACK) { - 8014764: 4b86 ldr r3, [pc, #536] ; (8014980 ) - 8014766: 781b ldrb r3, [r3, #0] - 8014768: f003 0310 and.w r3, r3, #16 - 801476c: 2b00 cmp r3, #0 - 801476e: f000 80a1 beq.w 80148b4 + 8014774: 4b86 ldr r3, [pc, #536] ; (8014990 ) + 8014776: 781b ldrb r3, [r3, #0] + 8014778: f003 0310 and.w r3, r3, #16 + 801477c: 2b00 cmp r3, #0 + 801477e: f000 80a1 beq.w 80148c4 /* expected ACK number? */ if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 8014772: 4b84 ldr r3, [pc, #528] ; (8014984 ) - 8014774: 681a ldr r2, [r3, #0] - 8014776: 687b ldr r3, [r7, #4] - 8014778: 6c5b ldr r3, [r3, #68] ; 0x44 - 801477a: 1ad3 subs r3, r2, r3 - 801477c: 3b01 subs r3, #1 - 801477e: 2b00 cmp r3, #0 - 8014780: db7e blt.n 8014880 - 8014782: 4b80 ldr r3, [pc, #512] ; (8014984 ) + 8014782: 4b84 ldr r3, [pc, #528] ; (8014994 ) 8014784: 681a ldr r2, [r3, #0] 8014786: 687b ldr r3, [r7, #4] - 8014788: 6d1b ldr r3, [r3, #80] ; 0x50 + 8014788: 6c5b ldr r3, [r3, #68] ; 0x44 801478a: 1ad3 subs r3, r2, r3 - 801478c: 2b00 cmp r3, #0 - 801478e: dc77 bgt.n 8014880 + 801478c: 3b01 subs r3, #1 + 801478e: 2b00 cmp r3, #0 + 8014790: db7e blt.n 8014890 + 8014792: 4b80 ldr r3, [pc, #512] ; (8014994 ) + 8014794: 681a ldr r2, [r3, #0] + 8014796: 687b ldr r3, [r7, #4] + 8014798: 6d1b ldr r3, [r3, #80] ; 0x50 + 801479a: 1ad3 subs r3, r2, r3 + 801479c: 2b00 cmp r3, #0 + 801479e: dc77 bgt.n 8014890 pcb->state = ESTABLISHED; - 8014790: 687b ldr r3, [r7, #4] - 8014792: 2204 movs r2, #4 - 8014794: 751a strb r2, [r3, #20] + 80147a0: 687b ldr r3, [r7, #4] + 80147a2: 2204 movs r2, #4 + 80147a4: 751a strb r2, [r3, #20] LWIP_DEBUGF(TCP_DEBUG, ("TCP connection established %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); #if LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG if (pcb->listener == NULL) { - 8014796: 687b ldr r3, [r7, #4] - 8014798: 6fdb ldr r3, [r3, #124] ; 0x7c - 801479a: 2b00 cmp r3, #0 - 801479c: d102 bne.n 80147a4 + 80147a6: 687b ldr r3, [r7, #4] + 80147a8: 6fdb ldr r3, [r3, #124] ; 0x7c + 80147aa: 2b00 cmp r3, #0 + 80147ac: d102 bne.n 80147b4 /* listen pcb might be closed by now */ err = ERR_VAL; - 801479e: 23fa movs r3, #250 ; 0xfa - 80147a0: 76bb strb r3, [r7, #26] - 80147a2: e01d b.n 80147e0 + 80147ae: 23fa movs r3, #250 ; 0xfa + 80147b0: 76bb strb r3, [r7, #26] + 80147b2: e01d b.n 80147f0 } else #endif /* LWIP_CALLBACK_API || TCP_LISTEN_BACKLOG */ { #if LWIP_CALLBACK_API LWIP_ASSERT("pcb->listener->accept != NULL", pcb->listener->accept != NULL); - 80147a4: 687b ldr r3, [r7, #4] - 80147a6: 6fdb ldr r3, [r3, #124] ; 0x7c - 80147a8: 699b ldr r3, [r3, #24] - 80147aa: 2b00 cmp r3, #0 - 80147ac: d106 bne.n 80147bc - 80147ae: 4b7b ldr r3, [pc, #492] ; (801499c ) - 80147b0: f44f 726a mov.w r2, #936 ; 0x3a8 - 80147b4: 497a ldr r1, [pc, #488] ; (80149a0 ) - 80147b6: 487b ldr r0, [pc, #492] ; (80149a4 ) - 80147b8: f007 ff46 bl 801c648 + 80147b4: 687b ldr r3, [r7, #4] + 80147b6: 6fdb ldr r3, [r3, #124] ; 0x7c + 80147b8: 699b ldr r3, [r3, #24] + 80147ba: 2b00 cmp r3, #0 + 80147bc: d106 bne.n 80147cc + 80147be: 4b7b ldr r3, [pc, #492] ; (80149ac ) + 80147c0: f44f 726a mov.w r2, #936 ; 0x3a8 + 80147c4: 497a ldr r1, [pc, #488] ; (80149b0 ) + 80147c6: 487b ldr r0, [pc, #492] ; (80149b4 ) + 80147c8: f007 ff46 bl 801c658 #endif tcp_backlog_accepted(pcb); /* Call the accept function. */ TCP_EVENT_ACCEPT(pcb->listener, pcb, pcb->callback_arg, ERR_OK, err); - 80147bc: 687b ldr r3, [r7, #4] - 80147be: 6fdb ldr r3, [r3, #124] ; 0x7c - 80147c0: 699b ldr r3, [r3, #24] - 80147c2: 2b00 cmp r3, #0 - 80147c4: d00a beq.n 80147dc - 80147c6: 687b ldr r3, [r7, #4] - 80147c8: 6fdb ldr r3, [r3, #124] ; 0x7c - 80147ca: 699b ldr r3, [r3, #24] - 80147cc: 687a ldr r2, [r7, #4] - 80147ce: 6910 ldr r0, [r2, #16] - 80147d0: 2200 movs r2, #0 - 80147d2: 6879 ldr r1, [r7, #4] - 80147d4: 4798 blx r3 - 80147d6: 4603 mov r3, r0 - 80147d8: 76bb strb r3, [r7, #26] - 80147da: e001 b.n 80147e0 - 80147dc: 23f0 movs r3, #240 ; 0xf0 - 80147de: 76bb strb r3, [r7, #26] + 80147cc: 687b ldr r3, [r7, #4] + 80147ce: 6fdb ldr r3, [r3, #124] ; 0x7c + 80147d0: 699b ldr r3, [r3, #24] + 80147d2: 2b00 cmp r3, #0 + 80147d4: d00a beq.n 80147ec + 80147d6: 687b ldr r3, [r7, #4] + 80147d8: 6fdb ldr r3, [r3, #124] ; 0x7c + 80147da: 699b ldr r3, [r3, #24] + 80147dc: 687a ldr r2, [r7, #4] + 80147de: 6910 ldr r0, [r2, #16] + 80147e0: 2200 movs r2, #0 + 80147e2: 6879 ldr r1, [r7, #4] + 80147e4: 4798 blx r3 + 80147e6: 4603 mov r3, r0 + 80147e8: 76bb strb r3, [r7, #26] + 80147ea: e001 b.n 80147f0 + 80147ec: 23f0 movs r3, #240 ; 0xf0 + 80147ee: 76bb strb r3, [r7, #26] } if (err != ERR_OK) { - 80147e0: f997 301a ldrsb.w r3, [r7, #26] - 80147e4: 2b00 cmp r3, #0 - 80147e6: d00a beq.n 80147fe + 80147f0: f997 301a ldrsb.w r3, [r7, #26] + 80147f4: 2b00 cmp r3, #0 + 80147f6: d00a beq.n 801480e /* If the accept function returns with an error, we abort * the connection. */ /* Already aborted? */ if (err != ERR_ABRT) { - 80147e8: f997 301a ldrsb.w r3, [r7, #26] - 80147ec: f113 0f0d cmn.w r3, #13 - 80147f0: d002 beq.n 80147f8 + 80147f8: f997 301a ldrsb.w r3, [r7, #26] + 80147fc: f113 0f0d cmn.w r3, #13 + 8014800: d002 beq.n 8014808 tcp_abort(pcb); - 80147f2: 6878 ldr r0, [r7, #4] - 80147f4: f7fd ff94 bl 8012720 + 8014802: 6878 ldr r0, [r7, #4] + 8014804: f7fd ff94 bl 8012730 } return ERR_ABRT; - 80147f8: f06f 030c mvn.w r3, #12 - 80147fc: e1ce b.n 8014b9c + 8014808: f06f 030c mvn.w r3, #12 + 801480c: e1ce b.n 8014bac } /* If there was any data contained within this ACK, * we'd better pass it on to the application as well. */ tcp_receive(pcb); - 80147fe: 6878 ldr r0, [r7, #4] - 8014800: f000 fae0 bl 8014dc4 + 801480e: 6878 ldr r0, [r7, #4] + 8014810: f000 fae0 bl 8014dd4 /* Prevent ACK for SYN to generate a sent event */ if (recv_acked != 0) { - 8014804: 4b68 ldr r3, [pc, #416] ; (80149a8 ) - 8014806: 881b ldrh r3, [r3, #0] - 8014808: 2b00 cmp r3, #0 - 801480a: d005 beq.n 8014818 + 8014814: 4b68 ldr r3, [pc, #416] ; (80149b8 ) + 8014816: 881b ldrh r3, [r3, #0] + 8014818: 2b00 cmp r3, #0 + 801481a: d005 beq.n 8014828 recv_acked--; - 801480c: 4b66 ldr r3, [pc, #408] ; (80149a8 ) - 801480e: 881b ldrh r3, [r3, #0] - 8014810: 3b01 subs r3, #1 - 8014812: b29a uxth r2, r3 - 8014814: 4b64 ldr r3, [pc, #400] ; (80149a8 ) - 8014816: 801a strh r2, [r3, #0] + 801481c: 4b66 ldr r3, [pc, #408] ; (80149b8 ) + 801481e: 881b ldrh r3, [r3, #0] + 8014820: 3b01 subs r3, #1 + 8014822: b29a uxth r2, r3 + 8014824: 4b64 ldr r3, [pc, #400] ; (80149b8 ) + 8014826: 801a strh r2, [r3, #0] } pcb->cwnd = LWIP_TCP_CALC_INITIAL_CWND(pcb->mss); - 8014818: 687b ldr r3, [r7, #4] - 801481a: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801481c: 009a lsls r2, r3, #2 - 801481e: 687b ldr r3, [r7, #4] - 8014820: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8014822: 005b lsls r3, r3, #1 - 8014824: f241 111c movw r1, #4380 ; 0x111c - 8014828: 428b cmp r3, r1 - 801482a: bf38 it cc - 801482c: 460b movcc r3, r1 - 801482e: 429a cmp r2, r3 - 8014830: d204 bcs.n 801483c - 8014832: 687b ldr r3, [r7, #4] - 8014834: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8014836: 009b lsls r3, r3, #2 - 8014838: b29b uxth r3, r3 - 801483a: e00d b.n 8014858 - 801483c: 687b ldr r3, [r7, #4] - 801483e: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8014840: 005b lsls r3, r3, #1 - 8014842: f241 121c movw r2, #4380 ; 0x111c - 8014846: 4293 cmp r3, r2 - 8014848: d904 bls.n 8014854 - 801484a: 687b ldr r3, [r7, #4] - 801484c: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801484e: 005b lsls r3, r3, #1 - 8014850: b29b uxth r3, r3 - 8014852: e001 b.n 8014858 - 8014854: f241 131c movw r3, #4380 ; 0x111c - 8014858: 687a ldr r2, [r7, #4] - 801485a: f8a2 3048 strh.w r3, [r2, #72] ; 0x48 + 8014828: 687b ldr r3, [r7, #4] + 801482a: 8e5b ldrh r3, [r3, #50] ; 0x32 + 801482c: 009a lsls r2, r3, #2 + 801482e: 687b ldr r3, [r7, #4] + 8014830: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8014832: 005b lsls r3, r3, #1 + 8014834: f241 111c movw r1, #4380 ; 0x111c + 8014838: 428b cmp r3, r1 + 801483a: bf38 it cc + 801483c: 460b movcc r3, r1 + 801483e: 429a cmp r2, r3 + 8014840: d204 bcs.n 801484c + 8014842: 687b ldr r3, [r7, #4] + 8014844: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8014846: 009b lsls r3, r3, #2 + 8014848: b29b uxth r3, r3 + 801484a: e00d b.n 8014868 + 801484c: 687b ldr r3, [r7, #4] + 801484e: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8014850: 005b lsls r3, r3, #1 + 8014852: f241 121c movw r2, #4380 ; 0x111c + 8014856: 4293 cmp r3, r2 + 8014858: d904 bls.n 8014864 + 801485a: 687b ldr r3, [r7, #4] + 801485c: 8e5b ldrh r3, [r3, #50] ; 0x32 + 801485e: 005b lsls r3, r3, #1 + 8014860: b29b uxth r3, r3 + 8014862: e001 b.n 8014868 + 8014864: f241 131c movw r3, #4380 ; 0x111c + 8014868: 687a ldr r2, [r7, #4] + 801486a: f8a2 3048 strh.w r3, [r2, #72] ; 0x48 LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_process (SYN_RCVD): cwnd %"TCPWNDSIZE_F " ssthresh %"TCPWNDSIZE_F"\n", pcb->cwnd, pcb->ssthresh)); if (recv_flags & TF_GOT_FIN) { - 801485e: 4b53 ldr r3, [pc, #332] ; (80149ac ) - 8014860: 781b ldrb r3, [r3, #0] - 8014862: f003 0320 and.w r3, r3, #32 - 8014866: 2b00 cmp r3, #0 - 8014868: d037 beq.n 80148da + 801486e: 4b53 ldr r3, [pc, #332] ; (80149bc ) + 8014870: 781b ldrb r3, [r3, #0] + 8014872: f003 0320 and.w r3, r3, #32 + 8014876: 2b00 cmp r3, #0 + 8014878: d037 beq.n 80148ea tcp_ack_now(pcb); - 801486a: 687b ldr r3, [r7, #4] - 801486c: 8b5b ldrh r3, [r3, #26] - 801486e: f043 0302 orr.w r3, r3, #2 - 8014872: b29a uxth r2, r3 - 8014874: 687b ldr r3, [r7, #4] - 8014876: 835a strh r2, [r3, #26] + 801487a: 687b ldr r3, [r7, #4] + 801487c: 8b5b ldrh r3, [r3, #26] + 801487e: f043 0302 orr.w r3, r3, #2 + 8014882: b29a uxth r2, r3 + 8014884: 687b ldr r3, [r7, #4] + 8014886: 835a strh r2, [r3, #26] pcb->state = CLOSE_WAIT; - 8014878: 687b ldr r3, [r7, #4] - 801487a: 2207 movs r2, #7 - 801487c: 751a strb r2, [r3, #20] + 8014888: 687b ldr r3, [r7, #4] + 801488a: 2207 movs r2, #7 + 801488c: 751a strb r2, [r3, #20] if (recv_flags & TF_GOT_FIN) { - 801487e: e02c b.n 80148da + 801488e: e02c b.n 80148ea } } else { /* incorrect ACK number, send RST */ tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8014880: 4b40 ldr r3, [pc, #256] ; (8014984 ) - 8014882: 6819 ldr r1, [r3, #0] - 8014884: 4b40 ldr r3, [pc, #256] ; (8014988 ) - 8014886: 881b ldrh r3, [r3, #0] - 8014888: 461a mov r2, r3 - 801488a: 4b40 ldr r3, [pc, #256] ; (801498c ) - 801488c: 681b ldr r3, [r3, #0] - 801488e: 18d0 adds r0, r2, r3 + 8014890: 4b40 ldr r3, [pc, #256] ; (8014994 ) + 8014892: 6819 ldr r1, [r3, #0] + 8014894: 4b40 ldr r3, [pc, #256] ; (8014998 ) + 8014896: 881b ldrh r3, [r3, #0] + 8014898: 461a mov r2, r3 + 801489a: 4b40 ldr r3, [pc, #256] ; (801499c ) + 801489c: 681b ldr r3, [r3, #0] + 801489e: 18d0 adds r0, r2, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8014890: 4b3f ldr r3, [pc, #252] ; (8014990 ) - 8014892: 681b ldr r3, [r3, #0] + 80148a0: 4b3f ldr r3, [pc, #252] ; (80149a0 ) + 80148a2: 681b ldr r3, [r3, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 8014894: 885b ldrh r3, [r3, #2] - 8014896: b29b uxth r3, r3 + 80148a4: 885b ldrh r3, [r3, #2] + 80148a6: b29b uxth r3, r3 ip_current_src_addr(), tcphdr->dest, tcphdr->src); - 8014898: 4a3d ldr r2, [pc, #244] ; (8014990 ) - 801489a: 6812 ldr r2, [r2, #0] + 80148a8: 4a3d ldr r2, [pc, #244] ; (80149a0 ) + 80148aa: 6812 ldr r2, [r2, #0] tcp_rst(pcb, ackno, seqno + tcplen, ip_current_dest_addr(), - 801489c: 8812 ldrh r2, [r2, #0] - 801489e: b292 uxth r2, r2 - 80148a0: 9202 str r2, [sp, #8] - 80148a2: 9301 str r3, [sp, #4] - 80148a4: 4b3b ldr r3, [pc, #236] ; (8014994 ) - 80148a6: 9300 str r3, [sp, #0] - 80148a8: 4b3b ldr r3, [pc, #236] ; (8014998 ) - 80148aa: 4602 mov r2, r0 - 80148ac: 6878 ldr r0, [r7, #4] - 80148ae: f002 fbdf bl 8017070 + 80148ac: 8812 ldrh r2, [r2, #0] + 80148ae: b292 uxth r2, r2 + 80148b0: 9202 str r2, [sp, #8] + 80148b2: 9301 str r3, [sp, #4] + 80148b4: 4b3b ldr r3, [pc, #236] ; (80149a4 ) + 80148b6: 9300 str r3, [sp, #0] + 80148b8: 4b3b ldr r3, [pc, #236] ; (80149a8 ) + 80148ba: 4602 mov r2, r0 + 80148bc: 6878 ldr r0, [r7, #4] + 80148be: f002 fbdf bl 8017080 } } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) { /* Looks like another copy of the SYN - retransmit our SYN-ACK */ tcp_rexmit(pcb); } break; - 80148b2: e167 b.n 8014b84 + 80148c2: e167 b.n 8014b94 } else if ((flags & TCP_SYN) && (seqno == pcb->rcv_nxt - 1)) { - 80148b4: 4b32 ldr r3, [pc, #200] ; (8014980 ) - 80148b6: 781b ldrb r3, [r3, #0] - 80148b8: f003 0302 and.w r3, r3, #2 - 80148bc: 2b00 cmp r3, #0 - 80148be: f000 8161 beq.w 8014b84 - 80148c2: 687b ldr r3, [r7, #4] - 80148c4: 6a5b ldr r3, [r3, #36] ; 0x24 - 80148c6: 1e5a subs r2, r3, #1 - 80148c8: 4b30 ldr r3, [pc, #192] ; (801498c ) - 80148ca: 681b ldr r3, [r3, #0] - 80148cc: 429a cmp r2, r3 - 80148ce: f040 8159 bne.w 8014b84 + 80148c4: 4b32 ldr r3, [pc, #200] ; (8014990 ) + 80148c6: 781b ldrb r3, [r3, #0] + 80148c8: f003 0302 and.w r3, r3, #2 + 80148cc: 2b00 cmp r3, #0 + 80148ce: f000 8161 beq.w 8014b94 + 80148d2: 687b ldr r3, [r7, #4] + 80148d4: 6a5b ldr r3, [r3, #36] ; 0x24 + 80148d6: 1e5a subs r2, r3, #1 + 80148d8: 4b30 ldr r3, [pc, #192] ; (801499c ) + 80148da: 681b ldr r3, [r3, #0] + 80148dc: 429a cmp r2, r3 + 80148de: f040 8159 bne.w 8014b94 tcp_rexmit(pcb); - 80148d2: 6878 ldr r0, [r7, #4] - 80148d4: f002 f9b8 bl 8016c48 + 80148e2: 6878 ldr r0, [r7, #4] + 80148e4: f002 f9b8 bl 8016c58 break; - 80148d8: e154 b.n 8014b84 - 80148da: e153 b.n 8014b84 + 80148e8: e154 b.n 8014b94 + 80148ea: e153 b.n 8014b94 case CLOSE_WAIT: /* FALLTHROUGH */ case ESTABLISHED: tcp_receive(pcb); - 80148dc: 6878 ldr r0, [r7, #4] - 80148de: f000 fa71 bl 8014dc4 + 80148ec: 6878 ldr r0, [r7, #4] + 80148ee: f000 fa71 bl 8014dd4 if (recv_flags & TF_GOT_FIN) { /* passive close */ - 80148e2: 4b32 ldr r3, [pc, #200] ; (80149ac ) - 80148e4: 781b ldrb r3, [r3, #0] - 80148e6: f003 0320 and.w r3, r3, #32 - 80148ea: 2b00 cmp r3, #0 - 80148ec: f000 814c beq.w 8014b88 + 80148f2: 4b32 ldr r3, [pc, #200] ; (80149bc ) + 80148f4: 781b ldrb r3, [r3, #0] + 80148f6: f003 0320 and.w r3, r3, #32 + 80148fa: 2b00 cmp r3, #0 + 80148fc: f000 814c beq.w 8014b98 tcp_ack_now(pcb); - 80148f0: 687b ldr r3, [r7, #4] - 80148f2: 8b5b ldrh r3, [r3, #26] - 80148f4: f043 0302 orr.w r3, r3, #2 - 80148f8: b29a uxth r2, r3 - 80148fa: 687b ldr r3, [r7, #4] - 80148fc: 835a strh r2, [r3, #26] + 8014900: 687b ldr r3, [r7, #4] + 8014902: 8b5b ldrh r3, [r3, #26] + 8014904: f043 0302 orr.w r3, r3, #2 + 8014908: b29a uxth r2, r3 + 801490a: 687b ldr r3, [r7, #4] + 801490c: 835a strh r2, [r3, #26] pcb->state = CLOSE_WAIT; - 80148fe: 687b ldr r3, [r7, #4] - 8014900: 2207 movs r2, #7 - 8014902: 751a strb r2, [r3, #20] + 801490e: 687b ldr r3, [r7, #4] + 8014910: 2207 movs r2, #7 + 8014912: 751a strb r2, [r3, #20] } break; - 8014904: e140 b.n 8014b88 + 8014914: e140 b.n 8014b98 case FIN_WAIT_1: tcp_receive(pcb); - 8014906: 6878 ldr r0, [r7, #4] - 8014908: f000 fa5c bl 8014dc4 + 8014916: 6878 ldr r0, [r7, #4] + 8014918: f000 fa5c bl 8014dd4 if (recv_flags & TF_GOT_FIN) { - 801490c: 4b27 ldr r3, [pc, #156] ; (80149ac ) - 801490e: 781b ldrb r3, [r3, #0] - 8014910: f003 0320 and.w r3, r3, #32 - 8014914: 2b00 cmp r3, #0 - 8014916: d071 beq.n 80149fc + 801491c: 4b27 ldr r3, [pc, #156] ; (80149bc ) + 801491e: 781b ldrb r3, [r3, #0] + 8014920: f003 0320 and.w r3, r3, #32 + 8014924: 2b00 cmp r3, #0 + 8014926: d071 beq.n 8014a0c if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 8014918: 4b19 ldr r3, [pc, #100] ; (8014980 ) - 801491a: 781b ldrb r3, [r3, #0] - 801491c: f003 0310 and.w r3, r3, #16 - 8014920: 2b00 cmp r3, #0 - 8014922: d060 beq.n 80149e6 - 8014924: 687b ldr r3, [r7, #4] - 8014926: 6d1a ldr r2, [r3, #80] ; 0x50 - 8014928: 4b16 ldr r3, [pc, #88] ; (8014984 ) - 801492a: 681b ldr r3, [r3, #0] - 801492c: 429a cmp r2, r3 - 801492e: d15a bne.n 80149e6 + 8014928: 4b19 ldr r3, [pc, #100] ; (8014990 ) + 801492a: 781b ldrb r3, [r3, #0] + 801492c: f003 0310 and.w r3, r3, #16 + 8014930: 2b00 cmp r3, #0 + 8014932: d060 beq.n 80149f6 + 8014934: 687b ldr r3, [r7, #4] + 8014936: 6d1a ldr r2, [r3, #80] ; 0x50 + 8014938: 4b16 ldr r3, [pc, #88] ; (8014994 ) + 801493a: 681b ldr r3, [r3, #0] + 801493c: 429a cmp r2, r3 + 801493e: d15a bne.n 80149f6 pcb->unsent == NULL) { - 8014930: 687b ldr r3, [r7, #4] - 8014932: 6edb ldr r3, [r3, #108] ; 0x6c + 8014940: 687b ldr r3, [r7, #4] + 8014942: 6edb ldr r3, [r3, #108] ; 0x6c if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 8014934: 2b00 cmp r3, #0 - 8014936: d156 bne.n 80149e6 + 8014944: 2b00 cmp r3, #0 + 8014946: d156 bne.n 80149f6 LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: FIN_WAIT_1 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); tcp_ack_now(pcb); - 8014938: 687b ldr r3, [r7, #4] - 801493a: 8b5b ldrh r3, [r3, #26] - 801493c: f043 0302 orr.w r3, r3, #2 - 8014940: b29a uxth r2, r3 - 8014942: 687b ldr r3, [r7, #4] - 8014944: 835a strh r2, [r3, #26] + 8014948: 687b ldr r3, [r7, #4] + 801494a: 8b5b ldrh r3, [r3, #26] + 801494c: f043 0302 orr.w r3, r3, #2 + 8014950: b29a uxth r2, r3 + 8014952: 687b ldr r3, [r7, #4] + 8014954: 835a strh r2, [r3, #26] tcp_pcb_purge(pcb); - 8014946: 6878 ldr r0, [r7, #4] - 8014948: f7fe fdbe bl 80134c8 + 8014956: 6878 ldr r0, [r7, #4] + 8014958: f7fe fdbe bl 80134d8 TCP_RMV_ACTIVE(pcb); - 801494c: 4b18 ldr r3, [pc, #96] ; (80149b0 ) - 801494e: 681b ldr r3, [r3, #0] - 8014950: 687a ldr r2, [r7, #4] - 8014952: 429a cmp r2, r3 - 8014954: d105 bne.n 8014962 - 8014956: 4b16 ldr r3, [pc, #88] ; (80149b0 ) - 8014958: 681b ldr r3, [r3, #0] - 801495a: 68db ldr r3, [r3, #12] - 801495c: 4a14 ldr r2, [pc, #80] ; (80149b0 ) - 801495e: 6013 str r3, [r2, #0] - 8014960: e02e b.n 80149c0 - 8014962: 4b13 ldr r3, [pc, #76] ; (80149b0 ) - 8014964: 681b ldr r3, [r3, #0] - 8014966: 617b str r3, [r7, #20] - 8014968: e027 b.n 80149ba - 801496a: 697b ldr r3, [r7, #20] - 801496c: 68db ldr r3, [r3, #12] - 801496e: 687a ldr r2, [r7, #4] - 8014970: 429a cmp r2, r3 - 8014972: d11f bne.n 80149b4 - 8014974: 687b ldr r3, [r7, #4] - 8014976: 68da ldr r2, [r3, #12] - 8014978: 697b ldr r3, [r7, #20] - 801497a: 60da str r2, [r3, #12] - 801497c: e020 b.n 80149c0 - 801497e: bf00 nop - 8014980: 2000874c .word 0x2000874c - 8014984: 20008744 .word 0x20008744 - 8014988: 2000874a .word 0x2000874a - 801498c: 20008740 .word 0x20008740 - 8014990: 20008730 .word 0x20008730 - 8014994: 2000c0cc .word 0x2000c0cc - 8014998: 2000c0d0 .word 0x2000c0d0 - 801499c: 0801ec40 .word 0x0801ec40 - 80149a0: 0801eee0 .word 0x0801eee0 - 80149a4: 0801ec8c .word 0x0801ec8c - 80149a8: 20008748 .word 0x20008748 - 80149ac: 2000874d .word 0x2000874d - 80149b0: 2000f7f0 .word 0x2000f7f0 - 80149b4: 697b ldr r3, [r7, #20] - 80149b6: 68db ldr r3, [r3, #12] - 80149b8: 617b str r3, [r7, #20] - 80149ba: 697b ldr r3, [r7, #20] - 80149bc: 2b00 cmp r3, #0 - 80149be: d1d4 bne.n 801496a - 80149c0: 687b ldr r3, [r7, #4] - 80149c2: 2200 movs r2, #0 - 80149c4: 60da str r2, [r3, #12] - 80149c6: 4b77 ldr r3, [pc, #476] ; (8014ba4 ) - 80149c8: 2201 movs r2, #1 - 80149ca: 701a strb r2, [r3, #0] + 801495c: 4b18 ldr r3, [pc, #96] ; (80149c0 ) + 801495e: 681b ldr r3, [r3, #0] + 8014960: 687a ldr r2, [r7, #4] + 8014962: 429a cmp r2, r3 + 8014964: d105 bne.n 8014972 + 8014966: 4b16 ldr r3, [pc, #88] ; (80149c0 ) + 8014968: 681b ldr r3, [r3, #0] + 801496a: 68db ldr r3, [r3, #12] + 801496c: 4a14 ldr r2, [pc, #80] ; (80149c0 ) + 801496e: 6013 str r3, [r2, #0] + 8014970: e02e b.n 80149d0 + 8014972: 4b13 ldr r3, [pc, #76] ; (80149c0 ) + 8014974: 681b ldr r3, [r3, #0] + 8014976: 617b str r3, [r7, #20] + 8014978: e027 b.n 80149ca + 801497a: 697b ldr r3, [r7, #20] + 801497c: 68db ldr r3, [r3, #12] + 801497e: 687a ldr r2, [r7, #4] + 8014980: 429a cmp r2, r3 + 8014982: d11f bne.n 80149c4 + 8014984: 687b ldr r3, [r7, #4] + 8014986: 68da ldr r2, [r3, #12] + 8014988: 697b ldr r3, [r7, #20] + 801498a: 60da str r2, [r3, #12] + 801498c: e020 b.n 80149d0 + 801498e: bf00 nop + 8014990: 2000874c .word 0x2000874c + 8014994: 20008744 .word 0x20008744 + 8014998: 2000874a .word 0x2000874a + 801499c: 20008740 .word 0x20008740 + 80149a0: 20008730 .word 0x20008730 + 80149a4: 2000c0cc .word 0x2000c0cc + 80149a8: 2000c0d0 .word 0x2000c0d0 + 80149ac: 0801ec50 .word 0x0801ec50 + 80149b0: 0801eef0 .word 0x0801eef0 + 80149b4: 0801ec9c .word 0x0801ec9c + 80149b8: 20008748 .word 0x20008748 + 80149bc: 2000874d .word 0x2000874d + 80149c0: 2000f7f0 .word 0x2000f7f0 + 80149c4: 697b ldr r3, [r7, #20] + 80149c6: 68db ldr r3, [r3, #12] + 80149c8: 617b str r3, [r7, #20] + 80149ca: 697b ldr r3, [r7, #20] + 80149cc: 2b00 cmp r3, #0 + 80149ce: d1d4 bne.n 801497a + 80149d0: 687b ldr r3, [r7, #4] + 80149d2: 2200 movs r2, #0 + 80149d4: 60da str r2, [r3, #12] + 80149d6: 4b77 ldr r3, [pc, #476] ; (8014bb4 ) + 80149d8: 2201 movs r2, #1 + 80149da: 701a strb r2, [r3, #0] pcb->state = TIME_WAIT; - 80149cc: 687b ldr r3, [r7, #4] - 80149ce: 220a movs r2, #10 - 80149d0: 751a strb r2, [r3, #20] - TCP_REG(&tcp_tw_pcbs, pcb); - 80149d2: 4b75 ldr r3, [pc, #468] ; (8014ba8 ) - 80149d4: 681a ldr r2, [r3, #0] - 80149d6: 687b ldr r3, [r7, #4] - 80149d8: 60da str r2, [r3, #12] - 80149da: 4a73 ldr r2, [pc, #460] ; (8014ba8 ) 80149dc: 687b ldr r3, [r7, #4] - 80149de: 6013 str r3, [r2, #0] - 80149e0: f002 fd08 bl 80173f4 + 80149de: 220a movs r2, #10 + 80149e0: 751a strb r2, [r3, #20] + TCP_REG(&tcp_tw_pcbs, pcb); + 80149e2: 4b75 ldr r3, [pc, #468] ; (8014bb8 ) + 80149e4: 681a ldr r2, [r3, #0] + 80149e6: 687b ldr r3, [r7, #4] + 80149e8: 60da str r2, [r3, #12] + 80149ea: 4a73 ldr r2, [pc, #460] ; (8014bb8 ) + 80149ec: 687b ldr r3, [r7, #4] + 80149ee: 6013 str r3, [r2, #0] + 80149f0: f002 fd08 bl 8017404 } } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && pcb->unsent == NULL) { pcb->state = FIN_WAIT_2; } break; - 80149e4: e0d2 b.n 8014b8c + 80149f4: e0d2 b.n 8014b9c tcp_ack_now(pcb); - 80149e6: 687b ldr r3, [r7, #4] - 80149e8: 8b5b ldrh r3, [r3, #26] - 80149ea: f043 0302 orr.w r3, r3, #2 - 80149ee: b29a uxth r2, r3 - 80149f0: 687b ldr r3, [r7, #4] - 80149f2: 835a strh r2, [r3, #26] + 80149f6: 687b ldr r3, [r7, #4] + 80149f8: 8b5b ldrh r3, [r3, #26] + 80149fa: f043 0302 orr.w r3, r3, #2 + 80149fe: b29a uxth r2, r3 + 8014a00: 687b ldr r3, [r7, #4] + 8014a02: 835a strh r2, [r3, #26] pcb->state = CLOSING; - 80149f4: 687b ldr r3, [r7, #4] - 80149f6: 2208 movs r2, #8 - 80149f8: 751a strb r2, [r3, #20] + 8014a04: 687b ldr r3, [r7, #4] + 8014a06: 2208 movs r2, #8 + 8014a08: 751a strb r2, [r3, #20] break; - 80149fa: e0c7 b.n 8014b8c + 8014a0a: e0c7 b.n 8014b9c } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 80149fc: 4b6b ldr r3, [pc, #428] ; (8014bac ) - 80149fe: 781b ldrb r3, [r3, #0] - 8014a00: f003 0310 and.w r3, r3, #16 - 8014a04: 2b00 cmp r3, #0 - 8014a06: f000 80c1 beq.w 8014b8c - 8014a0a: 687b ldr r3, [r7, #4] - 8014a0c: 6d1a ldr r2, [r3, #80] ; 0x50 - 8014a0e: 4b68 ldr r3, [pc, #416] ; (8014bb0 ) - 8014a10: 681b ldr r3, [r3, #0] - 8014a12: 429a cmp r2, r3 - 8014a14: f040 80ba bne.w 8014b8c + 8014a0c: 4b6b ldr r3, [pc, #428] ; (8014bbc ) + 8014a0e: 781b ldrb r3, [r3, #0] + 8014a10: f003 0310 and.w r3, r3, #16 + 8014a14: 2b00 cmp r3, #0 + 8014a16: f000 80c1 beq.w 8014b9c + 8014a1a: 687b ldr r3, [r7, #4] + 8014a1c: 6d1a ldr r2, [r3, #80] ; 0x50 + 8014a1e: 4b68 ldr r3, [pc, #416] ; (8014bc0 ) + 8014a20: 681b ldr r3, [r3, #0] + 8014a22: 429a cmp r2, r3 + 8014a24: f040 80ba bne.w 8014b9c pcb->unsent == NULL) { - 8014a18: 687b ldr r3, [r7, #4] - 8014a1a: 6edb ldr r3, [r3, #108] ; 0x6c + 8014a28: 687b ldr r3, [r7, #4] + 8014a2a: 6edb ldr r3, [r3, #108] ; 0x6c } else if ((flags & TCP_ACK) && (ackno == pcb->snd_nxt) && - 8014a1c: 2b00 cmp r3, #0 - 8014a1e: f040 80b5 bne.w 8014b8c + 8014a2c: 2b00 cmp r3, #0 + 8014a2e: f040 80b5 bne.w 8014b9c pcb->state = FIN_WAIT_2; - 8014a22: 687b ldr r3, [r7, #4] - 8014a24: 2206 movs r2, #6 - 8014a26: 751a strb r2, [r3, #20] + 8014a32: 687b ldr r3, [r7, #4] + 8014a34: 2206 movs r2, #6 + 8014a36: 751a strb r2, [r3, #20] break; - 8014a28: e0b0 b.n 8014b8c + 8014a38: e0b0 b.n 8014b9c case FIN_WAIT_2: tcp_receive(pcb); - 8014a2a: 6878 ldr r0, [r7, #4] - 8014a2c: f000 f9ca bl 8014dc4 + 8014a3a: 6878 ldr r0, [r7, #4] + 8014a3c: f000 f9ca bl 8014dd4 if (recv_flags & TF_GOT_FIN) { - 8014a30: 4b60 ldr r3, [pc, #384] ; (8014bb4 ) - 8014a32: 781b ldrb r3, [r3, #0] - 8014a34: f003 0320 and.w r3, r3, #32 - 8014a38: 2b00 cmp r3, #0 - 8014a3a: f000 80a9 beq.w 8014b90 + 8014a40: 4b60 ldr r3, [pc, #384] ; (8014bc4 ) + 8014a42: 781b ldrb r3, [r3, #0] + 8014a44: f003 0320 and.w r3, r3, #32 + 8014a48: 2b00 cmp r3, #0 + 8014a4a: f000 80a9 beq.w 8014ba0 LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: FIN_WAIT_2 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); tcp_ack_now(pcb); - 8014a3e: 687b ldr r3, [r7, #4] - 8014a40: 8b5b ldrh r3, [r3, #26] - 8014a42: f043 0302 orr.w r3, r3, #2 - 8014a46: b29a uxth r2, r3 - 8014a48: 687b ldr r3, [r7, #4] - 8014a4a: 835a strh r2, [r3, #26] + 8014a4e: 687b ldr r3, [r7, #4] + 8014a50: 8b5b ldrh r3, [r3, #26] + 8014a52: f043 0302 orr.w r3, r3, #2 + 8014a56: b29a uxth r2, r3 + 8014a58: 687b ldr r3, [r7, #4] + 8014a5a: 835a strh r2, [r3, #26] tcp_pcb_purge(pcb); - 8014a4c: 6878 ldr r0, [r7, #4] - 8014a4e: f7fe fd3b bl 80134c8 + 8014a5c: 6878 ldr r0, [r7, #4] + 8014a5e: f7fe fd3b bl 80134d8 TCP_RMV_ACTIVE(pcb); - 8014a52: 4b59 ldr r3, [pc, #356] ; (8014bb8 ) - 8014a54: 681b ldr r3, [r3, #0] - 8014a56: 687a ldr r2, [r7, #4] - 8014a58: 429a cmp r2, r3 - 8014a5a: d105 bne.n 8014a68 - 8014a5c: 4b56 ldr r3, [pc, #344] ; (8014bb8 ) - 8014a5e: 681b ldr r3, [r3, #0] - 8014a60: 68db ldr r3, [r3, #12] - 8014a62: 4a55 ldr r2, [pc, #340] ; (8014bb8 ) - 8014a64: 6013 str r3, [r2, #0] - 8014a66: e013 b.n 8014a90 - 8014a68: 4b53 ldr r3, [pc, #332] ; (8014bb8 ) - 8014a6a: 681b ldr r3, [r3, #0] - 8014a6c: 613b str r3, [r7, #16] - 8014a6e: e00c b.n 8014a8a - 8014a70: 693b ldr r3, [r7, #16] - 8014a72: 68db ldr r3, [r3, #12] - 8014a74: 687a ldr r2, [r7, #4] - 8014a76: 429a cmp r2, r3 - 8014a78: d104 bne.n 8014a84 - 8014a7a: 687b ldr r3, [r7, #4] - 8014a7c: 68da ldr r2, [r3, #12] - 8014a7e: 693b ldr r3, [r7, #16] - 8014a80: 60da str r2, [r3, #12] - 8014a82: e005 b.n 8014a90 - 8014a84: 693b ldr r3, [r7, #16] - 8014a86: 68db ldr r3, [r3, #12] - 8014a88: 613b str r3, [r7, #16] - 8014a8a: 693b ldr r3, [r7, #16] - 8014a8c: 2b00 cmp r3, #0 - 8014a8e: d1ef bne.n 8014a70 - 8014a90: 687b ldr r3, [r7, #4] - 8014a92: 2200 movs r2, #0 - 8014a94: 60da str r2, [r3, #12] - 8014a96: 4b43 ldr r3, [pc, #268] ; (8014ba4 ) - 8014a98: 2201 movs r2, #1 - 8014a9a: 701a strb r2, [r3, #0] + 8014a62: 4b59 ldr r3, [pc, #356] ; (8014bc8 ) + 8014a64: 681b ldr r3, [r3, #0] + 8014a66: 687a ldr r2, [r7, #4] + 8014a68: 429a cmp r2, r3 + 8014a6a: d105 bne.n 8014a78 + 8014a6c: 4b56 ldr r3, [pc, #344] ; (8014bc8 ) + 8014a6e: 681b ldr r3, [r3, #0] + 8014a70: 68db ldr r3, [r3, #12] + 8014a72: 4a55 ldr r2, [pc, #340] ; (8014bc8 ) + 8014a74: 6013 str r3, [r2, #0] + 8014a76: e013 b.n 8014aa0 + 8014a78: 4b53 ldr r3, [pc, #332] ; (8014bc8 ) + 8014a7a: 681b ldr r3, [r3, #0] + 8014a7c: 613b str r3, [r7, #16] + 8014a7e: e00c b.n 8014a9a + 8014a80: 693b ldr r3, [r7, #16] + 8014a82: 68db ldr r3, [r3, #12] + 8014a84: 687a ldr r2, [r7, #4] + 8014a86: 429a cmp r2, r3 + 8014a88: d104 bne.n 8014a94 + 8014a8a: 687b ldr r3, [r7, #4] + 8014a8c: 68da ldr r2, [r3, #12] + 8014a8e: 693b ldr r3, [r7, #16] + 8014a90: 60da str r2, [r3, #12] + 8014a92: e005 b.n 8014aa0 + 8014a94: 693b ldr r3, [r7, #16] + 8014a96: 68db ldr r3, [r3, #12] + 8014a98: 613b str r3, [r7, #16] + 8014a9a: 693b ldr r3, [r7, #16] + 8014a9c: 2b00 cmp r3, #0 + 8014a9e: d1ef bne.n 8014a80 + 8014aa0: 687b ldr r3, [r7, #4] + 8014aa2: 2200 movs r2, #0 + 8014aa4: 60da str r2, [r3, #12] + 8014aa6: 4b43 ldr r3, [pc, #268] ; (8014bb4 ) + 8014aa8: 2201 movs r2, #1 + 8014aaa: 701a strb r2, [r3, #0] pcb->state = TIME_WAIT; - 8014a9c: 687b ldr r3, [r7, #4] - 8014a9e: 220a movs r2, #10 - 8014aa0: 751a strb r2, [r3, #20] - TCP_REG(&tcp_tw_pcbs, pcb); - 8014aa2: 4b41 ldr r3, [pc, #260] ; (8014ba8 ) - 8014aa4: 681a ldr r2, [r3, #0] - 8014aa6: 687b ldr r3, [r7, #4] - 8014aa8: 60da str r2, [r3, #12] - 8014aaa: 4a3f ldr r2, [pc, #252] ; (8014ba8 ) 8014aac: 687b ldr r3, [r7, #4] - 8014aae: 6013 str r3, [r2, #0] - 8014ab0: f002 fca0 bl 80173f4 + 8014aae: 220a movs r2, #10 + 8014ab0: 751a strb r2, [r3, #20] + TCP_REG(&tcp_tw_pcbs, pcb); + 8014ab2: 4b41 ldr r3, [pc, #260] ; (8014bb8 ) + 8014ab4: 681a ldr r2, [r3, #0] + 8014ab6: 687b ldr r3, [r7, #4] + 8014ab8: 60da str r2, [r3, #12] + 8014aba: 4a3f ldr r2, [pc, #252] ; (8014bb8 ) + 8014abc: 687b ldr r3, [r7, #4] + 8014abe: 6013 str r3, [r2, #0] + 8014ac0: f002 fca0 bl 8017404 } break; - 8014ab4: e06c b.n 8014b90 + 8014ac4: e06c b.n 8014ba0 case CLOSING: tcp_receive(pcb); - 8014ab6: 6878 ldr r0, [r7, #4] - 8014ab8: f000 f984 bl 8014dc4 + 8014ac6: 6878 ldr r0, [r7, #4] + 8014ac8: f000 f984 bl 8014dd4 if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) { - 8014abc: 4b3b ldr r3, [pc, #236] ; (8014bac ) - 8014abe: 781b ldrb r3, [r3, #0] - 8014ac0: f003 0310 and.w r3, r3, #16 - 8014ac4: 2b00 cmp r3, #0 - 8014ac6: d065 beq.n 8014b94 - 8014ac8: 687b ldr r3, [r7, #4] - 8014aca: 6d1a ldr r2, [r3, #80] ; 0x50 - 8014acc: 4b38 ldr r3, [pc, #224] ; (8014bb0 ) - 8014ace: 681b ldr r3, [r3, #0] - 8014ad0: 429a cmp r2, r3 - 8014ad2: d15f bne.n 8014b94 - 8014ad4: 687b ldr r3, [r7, #4] - 8014ad6: 6edb ldr r3, [r3, #108] ; 0x6c - 8014ad8: 2b00 cmp r3, #0 - 8014ada: d15b bne.n 8014b94 + 8014acc: 4b3b ldr r3, [pc, #236] ; (8014bbc ) + 8014ace: 781b ldrb r3, [r3, #0] + 8014ad0: f003 0310 and.w r3, r3, #16 + 8014ad4: 2b00 cmp r3, #0 + 8014ad6: d065 beq.n 8014ba4 + 8014ad8: 687b ldr r3, [r7, #4] + 8014ada: 6d1a ldr r2, [r3, #80] ; 0x50 + 8014adc: 4b38 ldr r3, [pc, #224] ; (8014bc0 ) + 8014ade: 681b ldr r3, [r3, #0] + 8014ae0: 429a cmp r2, r3 + 8014ae2: d15f bne.n 8014ba4 + 8014ae4: 687b ldr r3, [r7, #4] + 8014ae6: 6edb ldr r3, [r3, #108] ; 0x6c + 8014ae8: 2b00 cmp r3, #0 + 8014aea: d15b bne.n 8014ba4 LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); tcp_pcb_purge(pcb); - 8014adc: 6878 ldr r0, [r7, #4] - 8014ade: f7fe fcf3 bl 80134c8 + 8014aec: 6878 ldr r0, [r7, #4] + 8014aee: f7fe fcf3 bl 80134d8 TCP_RMV_ACTIVE(pcb); - 8014ae2: 4b35 ldr r3, [pc, #212] ; (8014bb8 ) - 8014ae4: 681b ldr r3, [r3, #0] - 8014ae6: 687a ldr r2, [r7, #4] - 8014ae8: 429a cmp r2, r3 - 8014aea: d105 bne.n 8014af8 - 8014aec: 4b32 ldr r3, [pc, #200] ; (8014bb8 ) - 8014aee: 681b ldr r3, [r3, #0] - 8014af0: 68db ldr r3, [r3, #12] - 8014af2: 4a31 ldr r2, [pc, #196] ; (8014bb8 ) - 8014af4: 6013 str r3, [r2, #0] - 8014af6: e013 b.n 8014b20 - 8014af8: 4b2f ldr r3, [pc, #188] ; (8014bb8 ) - 8014afa: 681b ldr r3, [r3, #0] - 8014afc: 60fb str r3, [r7, #12] - 8014afe: e00c b.n 8014b1a - 8014b00: 68fb ldr r3, [r7, #12] - 8014b02: 68db ldr r3, [r3, #12] - 8014b04: 687a ldr r2, [r7, #4] - 8014b06: 429a cmp r2, r3 - 8014b08: d104 bne.n 8014b14 - 8014b0a: 687b ldr r3, [r7, #4] - 8014b0c: 68da ldr r2, [r3, #12] - 8014b0e: 68fb ldr r3, [r7, #12] - 8014b10: 60da str r2, [r3, #12] - 8014b12: e005 b.n 8014b20 - 8014b14: 68fb ldr r3, [r7, #12] - 8014b16: 68db ldr r3, [r3, #12] - 8014b18: 60fb str r3, [r7, #12] - 8014b1a: 68fb ldr r3, [r7, #12] - 8014b1c: 2b00 cmp r3, #0 - 8014b1e: d1ef bne.n 8014b00 - 8014b20: 687b ldr r3, [r7, #4] - 8014b22: 2200 movs r2, #0 - 8014b24: 60da str r2, [r3, #12] - 8014b26: 4b1f ldr r3, [pc, #124] ; (8014ba4 ) - 8014b28: 2201 movs r2, #1 - 8014b2a: 701a strb r2, [r3, #0] + 8014af2: 4b35 ldr r3, [pc, #212] ; (8014bc8 ) + 8014af4: 681b ldr r3, [r3, #0] + 8014af6: 687a ldr r2, [r7, #4] + 8014af8: 429a cmp r2, r3 + 8014afa: d105 bne.n 8014b08 + 8014afc: 4b32 ldr r3, [pc, #200] ; (8014bc8 ) + 8014afe: 681b ldr r3, [r3, #0] + 8014b00: 68db ldr r3, [r3, #12] + 8014b02: 4a31 ldr r2, [pc, #196] ; (8014bc8 ) + 8014b04: 6013 str r3, [r2, #0] + 8014b06: e013 b.n 8014b30 + 8014b08: 4b2f ldr r3, [pc, #188] ; (8014bc8 ) + 8014b0a: 681b ldr r3, [r3, #0] + 8014b0c: 60fb str r3, [r7, #12] + 8014b0e: e00c b.n 8014b2a + 8014b10: 68fb ldr r3, [r7, #12] + 8014b12: 68db ldr r3, [r3, #12] + 8014b14: 687a ldr r2, [r7, #4] + 8014b16: 429a cmp r2, r3 + 8014b18: d104 bne.n 8014b24 + 8014b1a: 687b ldr r3, [r7, #4] + 8014b1c: 68da ldr r2, [r3, #12] + 8014b1e: 68fb ldr r3, [r7, #12] + 8014b20: 60da str r2, [r3, #12] + 8014b22: e005 b.n 8014b30 + 8014b24: 68fb ldr r3, [r7, #12] + 8014b26: 68db ldr r3, [r3, #12] + 8014b28: 60fb str r3, [r7, #12] + 8014b2a: 68fb ldr r3, [r7, #12] + 8014b2c: 2b00 cmp r3, #0 + 8014b2e: d1ef bne.n 8014b10 + 8014b30: 687b ldr r3, [r7, #4] + 8014b32: 2200 movs r2, #0 + 8014b34: 60da str r2, [r3, #12] + 8014b36: 4b1f ldr r3, [pc, #124] ; (8014bb4 ) + 8014b38: 2201 movs r2, #1 + 8014b3a: 701a strb r2, [r3, #0] pcb->state = TIME_WAIT; - 8014b2c: 687b ldr r3, [r7, #4] - 8014b2e: 220a movs r2, #10 - 8014b30: 751a strb r2, [r3, #20] - TCP_REG(&tcp_tw_pcbs, pcb); - 8014b32: 4b1d ldr r3, [pc, #116] ; (8014ba8 ) - 8014b34: 681a ldr r2, [r3, #0] - 8014b36: 687b ldr r3, [r7, #4] - 8014b38: 60da str r2, [r3, #12] - 8014b3a: 4a1b ldr r2, [pc, #108] ; (8014ba8 ) 8014b3c: 687b ldr r3, [r7, #4] - 8014b3e: 6013 str r3, [r2, #0] - 8014b40: f002 fc58 bl 80173f4 + 8014b3e: 220a movs r2, #10 + 8014b40: 751a strb r2, [r3, #20] + TCP_REG(&tcp_tw_pcbs, pcb); + 8014b42: 4b1d ldr r3, [pc, #116] ; (8014bb8 ) + 8014b44: 681a ldr r2, [r3, #0] + 8014b46: 687b ldr r3, [r7, #4] + 8014b48: 60da str r2, [r3, #12] + 8014b4a: 4a1b ldr r2, [pc, #108] ; (8014bb8 ) + 8014b4c: 687b ldr r3, [r7, #4] + 8014b4e: 6013 str r3, [r2, #0] + 8014b50: f002 fc58 bl 8017404 } break; - 8014b44: e026 b.n 8014b94 + 8014b54: e026 b.n 8014ba4 case LAST_ACK: tcp_receive(pcb); - 8014b46: 6878 ldr r0, [r7, #4] - 8014b48: f000 f93c bl 8014dc4 + 8014b56: 6878 ldr r0, [r7, #4] + 8014b58: f000 f93c bl 8014dd4 if ((flags & TCP_ACK) && ackno == pcb->snd_nxt && pcb->unsent == NULL) { - 8014b4c: 4b17 ldr r3, [pc, #92] ; (8014bac ) - 8014b4e: 781b ldrb r3, [r3, #0] - 8014b50: f003 0310 and.w r3, r3, #16 - 8014b54: 2b00 cmp r3, #0 - 8014b56: d01f beq.n 8014b98 - 8014b58: 687b ldr r3, [r7, #4] - 8014b5a: 6d1a ldr r2, [r3, #80] ; 0x50 - 8014b5c: 4b14 ldr r3, [pc, #80] ; (8014bb0 ) - 8014b5e: 681b ldr r3, [r3, #0] - 8014b60: 429a cmp r2, r3 - 8014b62: d119 bne.n 8014b98 - 8014b64: 687b ldr r3, [r7, #4] - 8014b66: 6edb ldr r3, [r3, #108] ; 0x6c - 8014b68: 2b00 cmp r3, #0 - 8014b6a: d115 bne.n 8014b98 + 8014b5c: 4b17 ldr r3, [pc, #92] ; (8014bbc ) + 8014b5e: 781b ldrb r3, [r3, #0] + 8014b60: f003 0310 and.w r3, r3, #16 + 8014b64: 2b00 cmp r3, #0 + 8014b66: d01f beq.n 8014ba8 + 8014b68: 687b ldr r3, [r7, #4] + 8014b6a: 6d1a ldr r2, [r3, #80] ; 0x50 + 8014b6c: 4b14 ldr r3, [pc, #80] ; (8014bc0 ) + 8014b6e: 681b ldr r3, [r3, #0] + 8014b70: 429a cmp r2, r3 + 8014b72: d119 bne.n 8014ba8 + 8014b74: 687b ldr r3, [r7, #4] + 8014b76: 6edb ldr r3, [r3, #108] ; 0x6c + 8014b78: 2b00 cmp r3, #0 + 8014b7a: d115 bne.n 8014ba8 LWIP_DEBUGF(TCP_DEBUG, ("TCP connection closed: LAST_ACK %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest)); /* bugfix #21699: don't set pcb->state to CLOSED here or we risk leaking segments */ recv_flags |= TF_CLOSED; - 8014b6c: 4b11 ldr r3, [pc, #68] ; (8014bb4 ) - 8014b6e: 781b ldrb r3, [r3, #0] - 8014b70: f043 0310 orr.w r3, r3, #16 - 8014b74: b2da uxtb r2, r3 - 8014b76: 4b0f ldr r3, [pc, #60] ; (8014bb4 ) - 8014b78: 701a strb r2, [r3, #0] + 8014b7c: 4b11 ldr r3, [pc, #68] ; (8014bc4 ) + 8014b7e: 781b ldrb r3, [r3, #0] + 8014b80: f043 0310 orr.w r3, r3, #16 + 8014b84: b2da uxtb r2, r3 + 8014b86: 4b0f ldr r3, [pc, #60] ; (8014bc4 ) + 8014b88: 701a strb r2, [r3, #0] } break; - 8014b7a: e00d b.n 8014b98 + 8014b8a: e00d b.n 8014ba8 default: break; - 8014b7c: bf00 nop - 8014b7e: e00c b.n 8014b9a - break; - 8014b80: bf00 nop - 8014b82: e00a b.n 8014b9a - break; - 8014b84: bf00 nop - 8014b86: e008 b.n 8014b9a - break; - 8014b88: bf00 nop - 8014b8a: e006 b.n 8014b9a - break; 8014b8c: bf00 nop - 8014b8e: e004 b.n 8014b9a + 8014b8e: e00c b.n 8014baa break; 8014b90: bf00 nop - 8014b92: e002 b.n 8014b9a + 8014b92: e00a b.n 8014baa break; 8014b94: bf00 nop - 8014b96: e000 b.n 8014b9a + 8014b96: e008 b.n 8014baa break; 8014b98: bf00 nop + 8014b9a: e006 b.n 8014baa + break; + 8014b9c: bf00 nop + 8014b9e: e004 b.n 8014baa + break; + 8014ba0: bf00 nop + 8014ba2: e002 b.n 8014baa + break; + 8014ba4: bf00 nop + 8014ba6: e000 b.n 8014baa + break; + 8014ba8: bf00 nop } return ERR_OK; - 8014b9a: 2300 movs r3, #0 -} - 8014b9c: 4618 mov r0, r3 - 8014b9e: 3724 adds r7, #36 ; 0x24 - 8014ba0: 46bd mov sp, r7 - 8014ba2: bd90 pop {r4, r7, pc} - 8014ba4: 2000f7ec .word 0x2000f7ec - 8014ba8: 2000f800 .word 0x2000f800 - 8014bac: 2000874c .word 0x2000874c - 8014bb0: 20008744 .word 0x20008744 - 8014bb4: 2000874d .word 0x2000874d - 8014bb8: 2000f7f0 .word 0x2000f7f0 - -08014bbc : + 8014baa: 2300 movs r3, #0 +} + 8014bac: 4618 mov r0, r3 + 8014bae: 3724 adds r7, #36 ; 0x24 + 8014bb0: 46bd mov sp, r7 + 8014bb2: bd90 pop {r4, r7, pc} + 8014bb4: 2000f7ec .word 0x2000f7ec + 8014bb8: 2000f800 .word 0x2000f800 + 8014bbc: 2000874c .word 0x2000874c + 8014bc0: 20008744 .word 0x20008744 + 8014bc4: 2000874d .word 0x2000874d + 8014bc8: 2000f7f0 .word 0x2000f7f0 + +08014bcc : * * Called from tcp_receive() */ static void tcp_oos_insert_segment(struct tcp_seg *cseg, struct tcp_seg *next) { - 8014bbc: b590 push {r4, r7, lr} - 8014bbe: b085 sub sp, #20 - 8014bc0: af00 add r7, sp, #0 - 8014bc2: 6078 str r0, [r7, #4] - 8014bc4: 6039 str r1, [r7, #0] + 8014bcc: b590 push {r4, r7, lr} + 8014bce: b085 sub sp, #20 + 8014bd0: af00 add r7, sp, #0 + 8014bd2: 6078 str r0, [r7, #4] + 8014bd4: 6039 str r1, [r7, #0] struct tcp_seg *old_seg; LWIP_ASSERT("tcp_oos_insert_segment: invalid cseg", cseg != NULL); - 8014bc6: 687b ldr r3, [r7, #4] - 8014bc8: 2b00 cmp r3, #0 - 8014bca: d106 bne.n 8014bda - 8014bcc: 4b3b ldr r3, [pc, #236] ; (8014cbc ) - 8014bce: f240 421f movw r2, #1055 ; 0x41f - 8014bd2: 493b ldr r1, [pc, #236] ; (8014cc0 ) - 8014bd4: 483b ldr r0, [pc, #236] ; (8014cc4 ) - 8014bd6: f007 fd37 bl 801c648 + 8014bd6: 687b ldr r3, [r7, #4] + 8014bd8: 2b00 cmp r3, #0 + 8014bda: d106 bne.n 8014bea + 8014bdc: 4b3b ldr r3, [pc, #236] ; (8014ccc ) + 8014bde: f240 421f movw r2, #1055 ; 0x41f + 8014be2: 493b ldr r1, [pc, #236] ; (8014cd0 ) + 8014be4: 483b ldr r0, [pc, #236] ; (8014cd4 ) + 8014be6: f007 fd37 bl 801c658 if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { - 8014bda: 687b ldr r3, [r7, #4] - 8014bdc: 68db ldr r3, [r3, #12] - 8014bde: 899b ldrh r3, [r3, #12] - 8014be0: b29b uxth r3, r3 - 8014be2: 4618 mov r0, r3 - 8014be4: f7fb fc4c bl 8010480 - 8014be8: 4603 mov r3, r0 - 8014bea: b2db uxtb r3, r3 - 8014bec: f003 0301 and.w r3, r3, #1 - 8014bf0: 2b00 cmp r3, #0 - 8014bf2: d028 beq.n 8014c46 + 8014bea: 687b ldr r3, [r7, #4] + 8014bec: 68db ldr r3, [r3, #12] + 8014bee: 899b ldrh r3, [r3, #12] + 8014bf0: b29b uxth r3, r3 + 8014bf2: 4618 mov r0, r3 + 8014bf4: f7fb fc4c bl 8010490 + 8014bf8: 4603 mov r3, r0 + 8014bfa: b2db uxtb r3, r3 + 8014bfc: f003 0301 and.w r3, r3, #1 + 8014c00: 2b00 cmp r3, #0 + 8014c02: d028 beq.n 8014c56 /* received segment overlaps all following segments */ tcp_segs_free(next); - 8014bf4: 6838 ldr r0, [r7, #0] - 8014bf6: f7fe fa67 bl 80130c8 + 8014c04: 6838 ldr r0, [r7, #0] + 8014c06: f7fe fa67 bl 80130d8 next = NULL; - 8014bfa: 2300 movs r3, #0 - 8014bfc: 603b str r3, [r7, #0] - 8014bfe: e056 b.n 8014cae + 8014c0a: 2300 movs r3, #0 + 8014c0c: 603b str r3, [r7, #0] + 8014c0e: e056 b.n 8014cbe oos queue may have segments with FIN flag */ while (next && TCP_SEQ_GEQ((seqno + cseg->len), (next->tcphdr->seqno + next->len))) { /* cseg with FIN already processed */ if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) { - 8014c00: 683b ldr r3, [r7, #0] - 8014c02: 68db ldr r3, [r3, #12] - 8014c04: 899b ldrh r3, [r3, #12] - 8014c06: b29b uxth r3, r3 - 8014c08: 4618 mov r0, r3 - 8014c0a: f7fb fc39 bl 8010480 - 8014c0e: 4603 mov r3, r0 - 8014c10: b2db uxtb r3, r3 - 8014c12: f003 0301 and.w r3, r3, #1 - 8014c16: 2b00 cmp r3, #0 - 8014c18: d00d beq.n 8014c36 + 8014c10: 683b ldr r3, [r7, #0] + 8014c12: 68db ldr r3, [r3, #12] + 8014c14: 899b ldrh r3, [r3, #12] + 8014c16: b29b uxth r3, r3 + 8014c18: 4618 mov r0, r3 + 8014c1a: f7fb fc39 bl 8010490 + 8014c1e: 4603 mov r3, r0 + 8014c20: b2db uxtb r3, r3 + 8014c22: f003 0301 and.w r3, r3, #1 + 8014c26: 2b00 cmp r3, #0 + 8014c28: d00d beq.n 8014c46 TCPH_SET_FLAG(cseg->tcphdr, TCP_FIN); - 8014c1a: 687b ldr r3, [r7, #4] - 8014c1c: 68db ldr r3, [r3, #12] - 8014c1e: 899b ldrh r3, [r3, #12] - 8014c20: b29c uxth r4, r3 - 8014c22: 2001 movs r0, #1 - 8014c24: f7fb fc2c bl 8010480 - 8014c28: 4603 mov r3, r0 - 8014c2a: 461a mov r2, r3 - 8014c2c: 687b ldr r3, [r7, #4] - 8014c2e: 68db ldr r3, [r3, #12] - 8014c30: 4322 orrs r2, r4 - 8014c32: b292 uxth r2, r2 - 8014c34: 819a strh r2, [r3, #12] + 8014c2a: 687b ldr r3, [r7, #4] + 8014c2c: 68db ldr r3, [r3, #12] + 8014c2e: 899b ldrh r3, [r3, #12] + 8014c30: b29c uxth r4, r3 + 8014c32: 2001 movs r0, #1 + 8014c34: f7fb fc2c bl 8010490 + 8014c38: 4603 mov r3, r0 + 8014c3a: 461a mov r2, r3 + 8014c3c: 687b ldr r3, [r7, #4] + 8014c3e: 68db ldr r3, [r3, #12] + 8014c40: 4322 orrs r2, r4 + 8014c42: b292 uxth r2, r2 + 8014c44: 819a strh r2, [r3, #12] } old_seg = next; - 8014c36: 683b ldr r3, [r7, #0] - 8014c38: 60fb str r3, [r7, #12] + 8014c46: 683b ldr r3, [r7, #0] + 8014c48: 60fb str r3, [r7, #12] next = next->next; - 8014c3a: 683b ldr r3, [r7, #0] - 8014c3c: 681b ldr r3, [r3, #0] - 8014c3e: 603b str r3, [r7, #0] + 8014c4a: 683b ldr r3, [r7, #0] + 8014c4c: 681b ldr r3, [r3, #0] + 8014c4e: 603b str r3, [r7, #0] tcp_seg_free(old_seg); - 8014c40: 68f8 ldr r0, [r7, #12] - 8014c42: f7fe fa55 bl 80130f0 + 8014c50: 68f8 ldr r0, [r7, #12] + 8014c52: f7fe fa55 bl 8013100 while (next && - 8014c46: 683b ldr r3, [r7, #0] - 8014c48: 2b00 cmp r3, #0 - 8014c4a: d00e beq.n 8014c6a + 8014c56: 683b ldr r3, [r7, #0] + 8014c58: 2b00 cmp r3, #0 + 8014c5a: d00e beq.n 8014c7a TCP_SEQ_GEQ((seqno + cseg->len), - 8014c4c: 687b ldr r3, [r7, #4] - 8014c4e: 891b ldrh r3, [r3, #8] - 8014c50: 461a mov r2, r3 - 8014c52: 4b1d ldr r3, [pc, #116] ; (8014cc8 ) - 8014c54: 681b ldr r3, [r3, #0] - 8014c56: 441a add r2, r3 - 8014c58: 683b ldr r3, [r7, #0] - 8014c5a: 68db ldr r3, [r3, #12] - 8014c5c: 685b ldr r3, [r3, #4] - 8014c5e: 6839 ldr r1, [r7, #0] - 8014c60: 8909 ldrh r1, [r1, #8] - 8014c62: 440b add r3, r1 - 8014c64: 1ad3 subs r3, r2, r3 + 8014c5c: 687b ldr r3, [r7, #4] + 8014c5e: 891b ldrh r3, [r3, #8] + 8014c60: 461a mov r2, r3 + 8014c62: 4b1d ldr r3, [pc, #116] ; (8014cd8 ) + 8014c64: 681b ldr r3, [r3, #0] + 8014c66: 441a add r2, r3 + 8014c68: 683b ldr r3, [r7, #0] + 8014c6a: 68db ldr r3, [r3, #12] + 8014c6c: 685b ldr r3, [r3, #4] + 8014c6e: 6839 ldr r1, [r7, #0] + 8014c70: 8909 ldrh r1, [r1, #8] + 8014c72: 440b add r3, r1 + 8014c74: 1ad3 subs r3, r2, r3 while (next && - 8014c66: 2b00 cmp r3, #0 - 8014c68: daca bge.n 8014c00 + 8014c76: 2b00 cmp r3, #0 + 8014c78: daca bge.n 8014c10 } if (next && - 8014c6a: 683b ldr r3, [r7, #0] - 8014c6c: 2b00 cmp r3, #0 - 8014c6e: d01e beq.n 8014cae + 8014c7a: 683b ldr r3, [r7, #0] + 8014c7c: 2b00 cmp r3, #0 + 8014c7e: d01e beq.n 8014cbe TCP_SEQ_GT(seqno + cseg->len, next->tcphdr->seqno)) { - 8014c70: 687b ldr r3, [r7, #4] - 8014c72: 891b ldrh r3, [r3, #8] - 8014c74: 461a mov r2, r3 - 8014c76: 4b14 ldr r3, [pc, #80] ; (8014cc8 ) - 8014c78: 681b ldr r3, [r3, #0] - 8014c7a: 441a add r2, r3 - 8014c7c: 683b ldr r3, [r7, #0] - 8014c7e: 68db ldr r3, [r3, #12] - 8014c80: 685b ldr r3, [r3, #4] - 8014c82: 1ad3 subs r3, r2, r3 + 8014c80: 687b ldr r3, [r7, #4] + 8014c82: 891b ldrh r3, [r3, #8] + 8014c84: 461a mov r2, r3 + 8014c86: 4b14 ldr r3, [pc, #80] ; (8014cd8 ) + 8014c88: 681b ldr r3, [r3, #0] + 8014c8a: 441a add r2, r3 + 8014c8c: 683b ldr r3, [r7, #0] + 8014c8e: 68db ldr r3, [r3, #12] + 8014c90: 685b ldr r3, [r3, #4] + 8014c92: 1ad3 subs r3, r2, r3 if (next && - 8014c84: 2b00 cmp r3, #0 - 8014c86: dd12 ble.n 8014cae + 8014c94: 2b00 cmp r3, #0 + 8014c96: dd12 ble.n 8014cbe /* We need to trim the incoming segment. */ cseg->len = (u16_t)(next->tcphdr->seqno - seqno); - 8014c88: 683b ldr r3, [r7, #0] - 8014c8a: 68db ldr r3, [r3, #12] - 8014c8c: 685b ldr r3, [r3, #4] - 8014c8e: b29a uxth r2, r3 - 8014c90: 4b0d ldr r3, [pc, #52] ; (8014cc8 ) - 8014c92: 681b ldr r3, [r3, #0] - 8014c94: b29b uxth r3, r3 - 8014c96: 1ad3 subs r3, r2, r3 - 8014c98: b29a uxth r2, r3 - 8014c9a: 687b ldr r3, [r7, #4] - 8014c9c: 811a strh r2, [r3, #8] + 8014c98: 683b ldr r3, [r7, #0] + 8014c9a: 68db ldr r3, [r3, #12] + 8014c9c: 685b ldr r3, [r3, #4] + 8014c9e: b29a uxth r2, r3 + 8014ca0: 4b0d ldr r3, [pc, #52] ; (8014cd8 ) + 8014ca2: 681b ldr r3, [r3, #0] + 8014ca4: b29b uxth r3, r3 + 8014ca6: 1ad3 subs r3, r2, r3 + 8014ca8: b29a uxth r2, r3 + 8014caa: 687b ldr r3, [r7, #4] + 8014cac: 811a strh r2, [r3, #8] pbuf_realloc(cseg->p, cseg->len); - 8014c9e: 687b ldr r3, [r7, #4] - 8014ca0: 685a ldr r2, [r3, #4] - 8014ca2: 687b ldr r3, [r7, #4] - 8014ca4: 891b ldrh r3, [r3, #8] - 8014ca6: 4619 mov r1, r3 - 8014ca8: 4610 mov r0, r2 - 8014caa: f7fc fe17 bl 80118dc + 8014cae: 687b ldr r3, [r7, #4] + 8014cb0: 685a ldr r2, [r3, #4] + 8014cb2: 687b ldr r3, [r7, #4] + 8014cb4: 891b ldrh r3, [r3, #8] + 8014cb6: 4619 mov r1, r3 + 8014cb8: 4610 mov r0, r2 + 8014cba: f7fc fe17 bl 80118ec } } cseg->next = next; - 8014cae: 687b ldr r3, [r7, #4] - 8014cb0: 683a ldr r2, [r7, #0] - 8014cb2: 601a str r2, [r3, #0] + 8014cbe: 687b ldr r3, [r7, #4] + 8014cc0: 683a ldr r2, [r7, #0] + 8014cc2: 601a str r2, [r3, #0] } - 8014cb4: bf00 nop - 8014cb6: 3714 adds r7, #20 - 8014cb8: 46bd mov sp, r7 - 8014cba: bd90 pop {r4, r7, pc} - 8014cbc: 0801ec40 .word 0x0801ec40 - 8014cc0: 0801ef00 .word 0x0801ef00 - 8014cc4: 0801ec8c .word 0x0801ec8c - 8014cc8: 20008740 .word 0x20008740 + 8014cc4: bf00 nop + 8014cc6: 3714 adds r7, #20 + 8014cc8: 46bd mov sp, r7 + 8014cca: bd90 pop {r4, r7, pc} + 8014ccc: 0801ec50 .word 0x0801ec50 + 8014cd0: 0801ef10 .word 0x0801ef10 + 8014cd4: 0801ec9c .word 0x0801ec9c + 8014cd8: 20008740 .word 0x20008740 -08014ccc : +08014cdc : /** Remove segments from a list if the incoming ACK acknowledges them */ static struct tcp_seg * tcp_free_acked_segments(struct tcp_pcb *pcb, struct tcp_seg *seg_list, const char *dbg_list_name, struct tcp_seg *dbg_other_seg_list) { - 8014ccc: b5b0 push {r4, r5, r7, lr} - 8014cce: b086 sub sp, #24 - 8014cd0: af00 add r7, sp, #0 - 8014cd2: 60f8 str r0, [r7, #12] - 8014cd4: 60b9 str r1, [r7, #8] - 8014cd6: 607a str r2, [r7, #4] - 8014cd8: 603b str r3, [r7, #0] + 8014cdc: b5b0 push {r4, r5, r7, lr} + 8014cde: b086 sub sp, #24 + 8014ce0: af00 add r7, sp, #0 + 8014ce2: 60f8 str r0, [r7, #12] + 8014ce4: 60b9 str r1, [r7, #8] + 8014ce6: 607a str r2, [r7, #4] + 8014ce8: 603b str r3, [r7, #0] u16_t clen; LWIP_UNUSED_ARG(dbg_list_name); LWIP_UNUSED_ARG(dbg_other_seg_list); while (seg_list != NULL && - 8014cda: e03e b.n 8014d5a + 8014cea: e03e b.n 8014d6a LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: removing %"U32_F":%"U32_F" from pcb->%s\n", lwip_ntohl(seg_list->tcphdr->seqno), lwip_ntohl(seg_list->tcphdr->seqno) + TCP_TCPLEN(seg_list), dbg_list_name)); next = seg_list; - 8014cdc: 68bb ldr r3, [r7, #8] - 8014cde: 617b str r3, [r7, #20] + 8014cec: 68bb ldr r3, [r7, #8] + 8014cee: 617b str r3, [r7, #20] seg_list = seg_list->next; - 8014ce0: 68bb ldr r3, [r7, #8] - 8014ce2: 681b ldr r3, [r3, #0] - 8014ce4: 60bb str r3, [r7, #8] + 8014cf0: 68bb ldr r3, [r7, #8] + 8014cf2: 681b ldr r3, [r3, #0] + 8014cf4: 60bb str r3, [r7, #8] clen = pbuf_clen(next->p); - 8014ce6: 697b ldr r3, [r7, #20] - 8014ce8: 685b ldr r3, [r3, #4] - 8014cea: 4618 mov r0, r3 - 8014cec: f7fd f80a bl 8011d04 - 8014cf0: 4603 mov r3, r0 - 8014cf2: 827b strh r3, [r7, #18] + 8014cf6: 697b ldr r3, [r7, #20] + 8014cf8: 685b ldr r3, [r3, #4] + 8014cfa: 4618 mov r0, r3 + 8014cfc: f7fd f80a bl 8011d14 + 8014d00: 4603 mov r3, r0 + 8014d02: 827b strh r3, [r7, #18] LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_receive: queuelen %"TCPWNDSIZE_F" ... ", (tcpwnd_size_t)pcb->snd_queuelen)); LWIP_ASSERT("pcb->snd_queuelen >= pbuf_clen(next->p)", (pcb->snd_queuelen >= clen)); - 8014cf4: 68fb ldr r3, [r7, #12] - 8014cf6: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8014cfa: 8a7a ldrh r2, [r7, #18] - 8014cfc: 429a cmp r2, r3 - 8014cfe: d906 bls.n 8014d0e - 8014d00: 4b2a ldr r3, [pc, #168] ; (8014dac ) - 8014d02: f240 4257 movw r2, #1111 ; 0x457 - 8014d06: 492a ldr r1, [pc, #168] ; (8014db0 ) - 8014d08: 482a ldr r0, [pc, #168] ; (8014db4 ) - 8014d0a: f007 fc9d bl 801c648 + 8014d04: 68fb ldr r3, [r7, #12] + 8014d06: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 8014d0a: 8a7a ldrh r2, [r7, #18] + 8014d0c: 429a cmp r2, r3 + 8014d0e: d906 bls.n 8014d1e + 8014d10: 4b2a ldr r3, [pc, #168] ; (8014dbc ) + 8014d12: f240 4257 movw r2, #1111 ; 0x457 + 8014d16: 492a ldr r1, [pc, #168] ; (8014dc0 ) + 8014d18: 482a ldr r0, [pc, #168] ; (8014dc4 ) + 8014d1a: f007 fc9d bl 801c658 pcb->snd_queuelen = (u16_t)(pcb->snd_queuelen - clen); - 8014d0e: 68fb ldr r3, [r7, #12] - 8014d10: f8b3 2066 ldrh.w r2, [r3, #102] ; 0x66 - 8014d14: 8a7b ldrh r3, [r7, #18] - 8014d16: 1ad3 subs r3, r2, r3 - 8014d18: b29a uxth r2, r3 - 8014d1a: 68fb ldr r3, [r7, #12] - 8014d1c: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 8014d1e: 68fb ldr r3, [r7, #12] + 8014d20: f8b3 2066 ldrh.w r2, [r3, #102] ; 0x66 + 8014d24: 8a7b ldrh r3, [r7, #18] + 8014d26: 1ad3 subs r3, r2, r3 + 8014d28: b29a uxth r2, r3 + 8014d2a: 68fb ldr r3, [r7, #12] + 8014d2c: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 recv_acked = (tcpwnd_size_t)(recv_acked + next->len); - 8014d20: 697b ldr r3, [r7, #20] - 8014d22: 891a ldrh r2, [r3, #8] - 8014d24: 4b24 ldr r3, [pc, #144] ; (8014db8 ) - 8014d26: 881b ldrh r3, [r3, #0] - 8014d28: 4413 add r3, r2 - 8014d2a: b29a uxth r2, r3 - 8014d2c: 4b22 ldr r3, [pc, #136] ; (8014db8 ) - 8014d2e: 801a strh r2, [r3, #0] + 8014d30: 697b ldr r3, [r7, #20] + 8014d32: 891a ldrh r2, [r3, #8] + 8014d34: 4b24 ldr r3, [pc, #144] ; (8014dc8 ) + 8014d36: 881b ldrh r3, [r3, #0] + 8014d38: 4413 add r3, r2 + 8014d3a: b29a uxth r2, r3 + 8014d3c: 4b22 ldr r3, [pc, #136] ; (8014dc8 ) + 8014d3e: 801a strh r2, [r3, #0] tcp_seg_free(next); - 8014d30: 6978 ldr r0, [r7, #20] - 8014d32: f7fe f9dd bl 80130f0 + 8014d40: 6978 ldr r0, [r7, #20] + 8014d42: f7fe f9dd bl 8013100 LWIP_DEBUGF(TCP_QLEN_DEBUG, ("%"TCPWNDSIZE_F" (after freeing %s)\n", (tcpwnd_size_t)pcb->snd_queuelen, dbg_list_name)); if (pcb->snd_queuelen != 0) { - 8014d36: 68fb ldr r3, [r7, #12] - 8014d38: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8014d3c: 2b00 cmp r3, #0 - 8014d3e: d00c beq.n 8014d5a + 8014d46: 68fb ldr r3, [r7, #12] + 8014d48: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 8014d4c: 2b00 cmp r3, #0 + 8014d4e: d00c beq.n 8014d6a LWIP_ASSERT("tcp_receive: valid queue length", - 8014d40: 68bb ldr r3, [r7, #8] - 8014d42: 2b00 cmp r3, #0 - 8014d44: d109 bne.n 8014d5a - 8014d46: 683b ldr r3, [r7, #0] - 8014d48: 2b00 cmp r3, #0 - 8014d4a: d106 bne.n 8014d5a - 8014d4c: 4b17 ldr r3, [pc, #92] ; (8014dac ) - 8014d4e: f240 4262 movw r2, #1122 ; 0x462 - 8014d52: 491a ldr r1, [pc, #104] ; (8014dbc ) - 8014d54: 4817 ldr r0, [pc, #92] ; (8014db4 ) - 8014d56: f007 fc77 bl 801c648 + 8014d50: 68bb ldr r3, [r7, #8] + 8014d52: 2b00 cmp r3, #0 + 8014d54: d109 bne.n 8014d6a + 8014d56: 683b ldr r3, [r7, #0] + 8014d58: 2b00 cmp r3, #0 + 8014d5a: d106 bne.n 8014d6a + 8014d5c: 4b17 ldr r3, [pc, #92] ; (8014dbc ) + 8014d5e: f240 4262 movw r2, #1122 ; 0x462 + 8014d62: 491a ldr r1, [pc, #104] ; (8014dcc ) + 8014d64: 4817 ldr r0, [pc, #92] ; (8014dc4 ) + 8014d66: f007 fc77 bl 801c658 while (seg_list != NULL && - 8014d5a: 68bb ldr r3, [r7, #8] - 8014d5c: 2b00 cmp r3, #0 - 8014d5e: d020 beq.n 8014da2 + 8014d6a: 68bb ldr r3, [r7, #8] + 8014d6c: 2b00 cmp r3, #0 + 8014d6e: d020 beq.n 8014db2 TCP_SEQ_LEQ(lwip_ntohl(seg_list->tcphdr->seqno) + - 8014d60: 68bb ldr r3, [r7, #8] - 8014d62: 68db ldr r3, [r3, #12] - 8014d64: 685b ldr r3, [r3, #4] - 8014d66: 4618 mov r0, r3 - 8014d68: f7fb fb9f bl 80104aa - 8014d6c: 4604 mov r4, r0 - 8014d6e: 68bb ldr r3, [r7, #8] - 8014d70: 891b ldrh r3, [r3, #8] - 8014d72: 461d mov r5, r3 - 8014d74: 68bb ldr r3, [r7, #8] - 8014d76: 68db ldr r3, [r3, #12] - 8014d78: 899b ldrh r3, [r3, #12] - 8014d7a: b29b uxth r3, r3 - 8014d7c: 4618 mov r0, r3 - 8014d7e: f7fb fb7f bl 8010480 - 8014d82: 4603 mov r3, r0 - 8014d84: b2db uxtb r3, r3 - 8014d86: f003 0303 and.w r3, r3, #3 - 8014d8a: 2b00 cmp r3, #0 - 8014d8c: d001 beq.n 8014d92 - 8014d8e: 2301 movs r3, #1 - 8014d90: e000 b.n 8014d94 - 8014d92: 2300 movs r3, #0 - 8014d94: 442b add r3, r5 - 8014d96: 18e2 adds r2, r4, r3 - 8014d98: 4b09 ldr r3, [pc, #36] ; (8014dc0 ) - 8014d9a: 681b ldr r3, [r3, #0] - 8014d9c: 1ad3 subs r3, r2, r3 + 8014d70: 68bb ldr r3, [r7, #8] + 8014d72: 68db ldr r3, [r3, #12] + 8014d74: 685b ldr r3, [r3, #4] + 8014d76: 4618 mov r0, r3 + 8014d78: f7fb fb9f bl 80104ba + 8014d7c: 4604 mov r4, r0 + 8014d7e: 68bb ldr r3, [r7, #8] + 8014d80: 891b ldrh r3, [r3, #8] + 8014d82: 461d mov r5, r3 + 8014d84: 68bb ldr r3, [r7, #8] + 8014d86: 68db ldr r3, [r3, #12] + 8014d88: 899b ldrh r3, [r3, #12] + 8014d8a: b29b uxth r3, r3 + 8014d8c: 4618 mov r0, r3 + 8014d8e: f7fb fb7f bl 8010490 + 8014d92: 4603 mov r3, r0 + 8014d94: b2db uxtb r3, r3 + 8014d96: f003 0303 and.w r3, r3, #3 + 8014d9a: 2b00 cmp r3, #0 + 8014d9c: d001 beq.n 8014da2 + 8014d9e: 2301 movs r3, #1 + 8014da0: e000 b.n 8014da4 + 8014da2: 2300 movs r3, #0 + 8014da4: 442b add r3, r5 + 8014da6: 18e2 adds r2, r4, r3 + 8014da8: 4b09 ldr r3, [pc, #36] ; (8014dd0 ) + 8014daa: 681b ldr r3, [r3, #0] + 8014dac: 1ad3 subs r3, r2, r3 while (seg_list != NULL && - 8014d9e: 2b00 cmp r3, #0 - 8014da0: dd9c ble.n 8014cdc + 8014dae: 2b00 cmp r3, #0 + 8014db0: dd9c ble.n 8014cec seg_list != NULL || dbg_other_seg_list != NULL); } } return seg_list; - 8014da2: 68bb ldr r3, [r7, #8] -} - 8014da4: 4618 mov r0, r3 - 8014da6: 3718 adds r7, #24 - 8014da8: 46bd mov sp, r7 - 8014daa: bdb0 pop {r4, r5, r7, pc} - 8014dac: 0801ec40 .word 0x0801ec40 - 8014db0: 0801ef28 .word 0x0801ef28 - 8014db4: 0801ec8c .word 0x0801ec8c - 8014db8: 20008748 .word 0x20008748 - 8014dbc: 0801ef50 .word 0x0801ef50 - 8014dc0: 20008744 .word 0x20008744 - -08014dc4 : + 8014db2: 68bb ldr r3, [r7, #8] +} + 8014db4: 4618 mov r0, r3 + 8014db6: 3718 adds r7, #24 + 8014db8: 46bd mov sp, r7 + 8014dba: bdb0 pop {r4, r5, r7, pc} + 8014dbc: 0801ec50 .word 0x0801ec50 + 8014dc0: 0801ef38 .word 0x0801ef38 + 8014dc4: 0801ec9c .word 0x0801ec9c + 8014dc8: 20008748 .word 0x20008748 + 8014dcc: 0801ef60 .word 0x0801ef60 + 8014dd0: 20008744 .word 0x20008744 + +08014dd4 : * * Called from tcp_process(). */ static void tcp_receive(struct tcp_pcb *pcb) { - 8014dc4: b5b0 push {r4, r5, r7, lr} - 8014dc6: b094 sub sp, #80 ; 0x50 - 8014dc8: af00 add r7, sp, #0 - 8014dca: 6078 str r0, [r7, #4] + 8014dd4: b5b0 push {r4, r5, r7, lr} + 8014dd6: b094 sub sp, #80 ; 0x50 + 8014dd8: af00 add r7, sp, #0 + 8014dda: 6078 str r0, [r7, #4] s16_t m; u32_t right_wnd_edge; int found_dupack = 0; - 8014dcc: 2300 movs r3, #0 - 8014dce: 64bb str r3, [r7, #72] ; 0x48 + 8014ddc: 2300 movs r3, #0 + 8014dde: 64bb str r3, [r7, #72] ; 0x48 LWIP_ASSERT("tcp_receive: invalid pcb", pcb != NULL); - 8014dd0: 687b ldr r3, [r7, #4] - 8014dd2: 2b00 cmp r3, #0 - 8014dd4: d106 bne.n 8014de4 - 8014dd6: 4ba6 ldr r3, [pc, #664] ; (8015070 ) - 8014dd8: f240 427b movw r2, #1147 ; 0x47b - 8014ddc: 49a5 ldr r1, [pc, #660] ; (8015074 ) - 8014dde: 48a6 ldr r0, [pc, #664] ; (8015078 ) - 8014de0: f007 fc32 bl 801c648 + 8014de0: 687b ldr r3, [r7, #4] + 8014de2: 2b00 cmp r3, #0 + 8014de4: d106 bne.n 8014df4 + 8014de6: 4ba6 ldr r3, [pc, #664] ; (8015080 ) + 8014de8: f240 427b movw r2, #1147 ; 0x47b + 8014dec: 49a5 ldr r1, [pc, #660] ; (8015084 ) + 8014dee: 48a6 ldr r0, [pc, #664] ; (8015088 ) + 8014df0: f007 fc32 bl 801c658 LWIP_ASSERT("tcp_receive: wrong state", pcb->state >= ESTABLISHED); - 8014de4: 687b ldr r3, [r7, #4] - 8014de6: 7d1b ldrb r3, [r3, #20] - 8014de8: 2b03 cmp r3, #3 - 8014dea: d806 bhi.n 8014dfa - 8014dec: 4ba0 ldr r3, [pc, #640] ; (8015070 ) - 8014dee: f240 427c movw r2, #1148 ; 0x47c - 8014df2: 49a2 ldr r1, [pc, #648] ; (801507c ) - 8014df4: 48a0 ldr r0, [pc, #640] ; (8015078 ) - 8014df6: f007 fc27 bl 801c648 + 8014df4: 687b ldr r3, [r7, #4] + 8014df6: 7d1b ldrb r3, [r3, #20] + 8014df8: 2b03 cmp r3, #3 + 8014dfa: d806 bhi.n 8014e0a + 8014dfc: 4ba0 ldr r3, [pc, #640] ; (8015080 ) + 8014dfe: f240 427c movw r2, #1148 ; 0x47c + 8014e02: 49a2 ldr r1, [pc, #648] ; (801508c ) + 8014e04: 48a0 ldr r0, [pc, #640] ; (8015088 ) + 8014e06: f007 fc27 bl 801c658 if (flags & TCP_ACK) { - 8014dfa: 4ba1 ldr r3, [pc, #644] ; (8015080 ) - 8014dfc: 781b ldrb r3, [r3, #0] - 8014dfe: f003 0310 and.w r3, r3, #16 - 8014e02: 2b00 cmp r3, #0 - 8014e04: f000 8263 beq.w 80152ce + 8014e0a: 4ba1 ldr r3, [pc, #644] ; (8015090 ) + 8014e0c: 781b ldrb r3, [r3, #0] + 8014e0e: f003 0310 and.w r3, r3, #16 + 8014e12: 2b00 cmp r3, #0 + 8014e14: f000 8263 beq.w 80152de right_wnd_edge = pcb->snd_wnd + pcb->snd_wl2; - 8014e08: 687b ldr r3, [r7, #4] - 8014e0a: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8014e0e: 461a mov r2, r3 - 8014e10: 687b ldr r3, [r7, #4] - 8014e12: 6d9b ldr r3, [r3, #88] ; 0x58 - 8014e14: 4413 add r3, r2 - 8014e16: 633b str r3, [r7, #48] ; 0x30 + 8014e18: 687b ldr r3, [r7, #4] + 8014e1a: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8014e1e: 461a mov r2, r3 + 8014e20: 687b ldr r3, [r7, #4] + 8014e22: 6d9b ldr r3, [r3, #88] ; 0x58 + 8014e24: 4413 add r3, r2 + 8014e26: 633b str r3, [r7, #48] ; 0x30 /* Update window. */ if (TCP_SEQ_LT(pcb->snd_wl1, seqno) || - 8014e18: 687b ldr r3, [r7, #4] - 8014e1a: 6d5a ldr r2, [r3, #84] ; 0x54 - 8014e1c: 4b99 ldr r3, [pc, #612] ; (8015084 ) - 8014e1e: 681b ldr r3, [r3, #0] - 8014e20: 1ad3 subs r3, r2, r3 - 8014e22: 2b00 cmp r3, #0 - 8014e24: db1b blt.n 8014e5e + 8014e28: 687b ldr r3, [r7, #4] + 8014e2a: 6d5a ldr r2, [r3, #84] ; 0x54 + 8014e2c: 4b99 ldr r3, [pc, #612] ; (8015094 ) + 8014e2e: 681b ldr r3, [r3, #0] + 8014e30: 1ad3 subs r3, r2, r3 + 8014e32: 2b00 cmp r3, #0 + 8014e34: db1b blt.n 8014e6e (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 8014e26: 687b ldr r3, [r7, #4] - 8014e28: 6d5a ldr r2, [r3, #84] ; 0x54 - 8014e2a: 4b96 ldr r3, [pc, #600] ; (8015084 ) - 8014e2c: 681b ldr r3, [r3, #0] + 8014e36: 687b ldr r3, [r7, #4] + 8014e38: 6d5a ldr r2, [r3, #84] ; 0x54 + 8014e3a: 4b96 ldr r3, [pc, #600] ; (8015094 ) + 8014e3c: 681b ldr r3, [r3, #0] if (TCP_SEQ_LT(pcb->snd_wl1, seqno) || - 8014e2e: 429a cmp r2, r3 - 8014e30: d106 bne.n 8014e40 + 8014e3e: 429a cmp r2, r3 + 8014e40: d106 bne.n 8014e50 (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 8014e32: 687b ldr r3, [r7, #4] - 8014e34: 6d9a ldr r2, [r3, #88] ; 0x58 - 8014e36: 4b94 ldr r3, [pc, #592] ; (8015088 ) - 8014e38: 681b ldr r3, [r3, #0] - 8014e3a: 1ad3 subs r3, r2, r3 - 8014e3c: 2b00 cmp r3, #0 - 8014e3e: db0e blt.n 8014e5e + 8014e42: 687b ldr r3, [r7, #4] + 8014e44: 6d9a ldr r2, [r3, #88] ; 0x58 + 8014e46: 4b94 ldr r3, [pc, #592] ; (8015098 ) + 8014e48: 681b ldr r3, [r3, #0] + 8014e4a: 1ad3 subs r3, r2, r3 + 8014e4c: 2b00 cmp r3, #0 + 8014e4e: db0e blt.n 8014e6e (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) { - 8014e40: 687b ldr r3, [r7, #4] - 8014e42: 6d9a ldr r2, [r3, #88] ; 0x58 - 8014e44: 4b90 ldr r3, [pc, #576] ; (8015088 ) - 8014e46: 681b ldr r3, [r3, #0] + 8014e50: 687b ldr r3, [r7, #4] + 8014e52: 6d9a ldr r2, [r3, #88] ; 0x58 + 8014e54: 4b90 ldr r3, [pc, #576] ; (8015098 ) + 8014e56: 681b ldr r3, [r3, #0] (pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) || - 8014e48: 429a cmp r2, r3 - 8014e4a: d125 bne.n 8014e98 + 8014e58: 429a cmp r2, r3 + 8014e5a: d125 bne.n 8014ea8 (pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) { - 8014e4c: 4b8f ldr r3, [pc, #572] ; (801508c ) - 8014e4e: 681b ldr r3, [r3, #0] - 8014e50: 89db ldrh r3, [r3, #14] - 8014e52: b29a uxth r2, r3 - 8014e54: 687b ldr r3, [r7, #4] - 8014e56: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8014e5a: 429a cmp r2, r3 - 8014e5c: d91c bls.n 8014e98 + 8014e5c: 4b8f ldr r3, [pc, #572] ; (801509c ) + 8014e5e: 681b ldr r3, [r3, #0] + 8014e60: 89db ldrh r3, [r3, #14] + 8014e62: b29a uxth r2, r3 + 8014e64: 687b ldr r3, [r7, #4] + 8014e66: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8014e6a: 429a cmp r2, r3 + 8014e6c: d91c bls.n 8014ea8 pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd); - 8014e5e: 4b8b ldr r3, [pc, #556] ; (801508c ) - 8014e60: 681b ldr r3, [r3, #0] - 8014e62: 89db ldrh r3, [r3, #14] - 8014e64: b29a uxth r2, r3 - 8014e66: 687b ldr r3, [r7, #4] - 8014e68: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 + 8014e6e: 4b8b ldr r3, [pc, #556] ; (801509c ) + 8014e70: 681b ldr r3, [r3, #0] + 8014e72: 89db ldrh r3, [r3, #14] + 8014e74: b29a uxth r2, r3 + 8014e76: 687b ldr r3, [r7, #4] + 8014e78: f8a3 2060 strh.w r2, [r3, #96] ; 0x60 /* keep track of the biggest window announced by the remote host to calculate the maximum segment size */ if (pcb->snd_wnd_max < pcb->snd_wnd) { - 8014e6c: 687b ldr r3, [r7, #4] - 8014e6e: f8b3 2062 ldrh.w r2, [r3, #98] ; 0x62 - 8014e72: 687b ldr r3, [r7, #4] - 8014e74: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8014e78: 429a cmp r2, r3 - 8014e7a: d205 bcs.n 8014e88 - pcb->snd_wnd_max = pcb->snd_wnd; 8014e7c: 687b ldr r3, [r7, #4] - 8014e7e: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 8014e7e: f8b3 2062 ldrh.w r2, [r3, #98] ; 0x62 8014e82: 687b ldr r3, [r7, #4] - 8014e84: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 + 8014e84: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8014e88: 429a cmp r2, r3 + 8014e8a: d205 bcs.n 8014e98 + pcb->snd_wnd_max = pcb->snd_wnd; + 8014e8c: 687b ldr r3, [r7, #4] + 8014e8e: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 8014e92: 687b ldr r3, [r7, #4] + 8014e94: f8a3 2062 strh.w r2, [r3, #98] ; 0x62 } pcb->snd_wl1 = seqno; - 8014e88: 4b7e ldr r3, [pc, #504] ; (8015084 ) - 8014e8a: 681a ldr r2, [r3, #0] - 8014e8c: 687b ldr r3, [r7, #4] - 8014e8e: 655a str r2, [r3, #84] ; 0x54 + 8014e98: 4b7e ldr r3, [pc, #504] ; (8015094 ) + 8014e9a: 681a ldr r2, [r3, #0] + 8014e9c: 687b ldr r3, [r7, #4] + 8014e9e: 655a str r2, [r3, #84] ; 0x54 pcb->snd_wl2 = ackno; - 8014e90: 4b7d ldr r3, [pc, #500] ; (8015088 ) - 8014e92: 681a ldr r2, [r3, #0] - 8014e94: 687b ldr r3, [r7, #4] - 8014e96: 659a str r2, [r3, #88] ; 0x58 + 8014ea0: 4b7d ldr r3, [pc, #500] ; (8015098 ) + 8014ea2: 681a ldr r2, [r3, #0] + 8014ea4: 687b ldr r3, [r7, #4] + 8014ea6: 659a str r2, [r3, #88] ; 0x58 * If it only passes 1, should reset dupack counter * */ /* Clause 1 */ if (TCP_SEQ_LEQ(ackno, pcb->lastack)) { - 8014e98: 4b7b ldr r3, [pc, #492] ; (8015088 ) - 8014e9a: 681a ldr r2, [r3, #0] - 8014e9c: 687b ldr r3, [r7, #4] - 8014e9e: 6c5b ldr r3, [r3, #68] ; 0x44 - 8014ea0: 1ad3 subs r3, r2, r3 - 8014ea2: 2b00 cmp r3, #0 - 8014ea4: dc58 bgt.n 8014f58 + 8014ea8: 4b7b ldr r3, [pc, #492] ; (8015098 ) + 8014eaa: 681a ldr r2, [r3, #0] + 8014eac: 687b ldr r3, [r7, #4] + 8014eae: 6c5b ldr r3, [r3, #68] ; 0x44 + 8014eb0: 1ad3 subs r3, r2, r3 + 8014eb2: 2b00 cmp r3, #0 + 8014eb4: dc58 bgt.n 8014f68 /* Clause 2 */ if (tcplen == 0) { - 8014ea6: 4b7a ldr r3, [pc, #488] ; (8015090 ) - 8014ea8: 881b ldrh r3, [r3, #0] - 8014eaa: 2b00 cmp r3, #0 - 8014eac: d14b bne.n 8014f46 + 8014eb6: 4b7a ldr r3, [pc, #488] ; (80150a0 ) + 8014eb8: 881b ldrh r3, [r3, #0] + 8014eba: 2b00 cmp r3, #0 + 8014ebc: d14b bne.n 8014f56 /* Clause 3 */ if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge) { - 8014eae: 687b ldr r3, [r7, #4] - 8014eb0: 6d9b ldr r3, [r3, #88] ; 0x58 - 8014eb2: 687a ldr r2, [r7, #4] - 8014eb4: f8b2 2060 ldrh.w r2, [r2, #96] ; 0x60 - 8014eb8: 4413 add r3, r2 - 8014eba: 6b3a ldr r2, [r7, #48] ; 0x30 - 8014ebc: 429a cmp r2, r3 - 8014ebe: d142 bne.n 8014f46 + 8014ebe: 687b ldr r3, [r7, #4] + 8014ec0: 6d9b ldr r3, [r3, #88] ; 0x58 + 8014ec2: 687a ldr r2, [r7, #4] + 8014ec4: f8b2 2060 ldrh.w r2, [r2, #96] ; 0x60 + 8014ec8: 4413 add r3, r2 + 8014eca: 6b3a ldr r2, [r7, #48] ; 0x30 + 8014ecc: 429a cmp r2, r3 + 8014ece: d142 bne.n 8014f56 /* Clause 4 */ if (pcb->rtime >= 0) { - 8014ec0: 687b ldr r3, [r7, #4] - 8014ec2: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 8014ec6: 2b00 cmp r3, #0 - 8014ec8: db3d blt.n 8014f46 + 8014ed0: 687b ldr r3, [r7, #4] + 8014ed2: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 8014ed6: 2b00 cmp r3, #0 + 8014ed8: db3d blt.n 8014f56 /* Clause 5 */ if (pcb->lastack == ackno) { - 8014eca: 687b ldr r3, [r7, #4] - 8014ecc: 6c5a ldr r2, [r3, #68] ; 0x44 - 8014ece: 4b6e ldr r3, [pc, #440] ; (8015088 ) - 8014ed0: 681b ldr r3, [r3, #0] - 8014ed2: 429a cmp r2, r3 - 8014ed4: d137 bne.n 8014f46 + 8014eda: 687b ldr r3, [r7, #4] + 8014edc: 6c5a ldr r2, [r3, #68] ; 0x44 + 8014ede: 4b6e ldr r3, [pc, #440] ; (8015098 ) + 8014ee0: 681b ldr r3, [r3, #0] + 8014ee2: 429a cmp r2, r3 + 8014ee4: d137 bne.n 8014f56 found_dupack = 1; - 8014ed6: 2301 movs r3, #1 - 8014ed8: 64bb str r3, [r7, #72] ; 0x48 + 8014ee6: 2301 movs r3, #1 + 8014ee8: 64bb str r3, [r7, #72] ; 0x48 if ((u8_t)(pcb->dupacks + 1) > pcb->dupacks) { - 8014eda: 687b ldr r3, [r7, #4] - 8014edc: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 8014ee0: 2bff cmp r3, #255 ; 0xff - 8014ee2: d007 beq.n 8014ef4 + 8014eea: 687b ldr r3, [r7, #4] + 8014eec: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 + 8014ef0: 2bff cmp r3, #255 ; 0xff + 8014ef2: d007 beq.n 8014f04 ++pcb->dupacks; - 8014ee4: 687b ldr r3, [r7, #4] - 8014ee6: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 8014eea: 3301 adds r3, #1 - 8014eec: b2da uxtb r2, r3 - 8014eee: 687b ldr r3, [r7, #4] - 8014ef0: f883 2043 strb.w r2, [r3, #67] ; 0x43 - } - if (pcb->dupacks > 3) { 8014ef4: 687b ldr r3, [r7, #4] 8014ef6: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 8014efa: 2b03 cmp r3, #3 - 8014efc: d91b bls.n 8014f36 - /* Inflate the congestion window */ - TCP_WND_INC(pcb->cwnd, pcb->mss); + 8014efa: 3301 adds r3, #1 + 8014efc: b2da uxtb r2, r3 8014efe: 687b ldr r3, [r7, #4] - 8014f00: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8014f00: f883 2043 strb.w r2, [r3, #67] ; 0x43 + } + if (pcb->dupacks > 3) { 8014f04: 687b ldr r3, [r7, #4] - 8014f06: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8014f08: 4413 add r3, r2 - 8014f0a: b29a uxth r2, r3 - 8014f0c: 687b ldr r3, [r7, #4] - 8014f0e: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8014f12: 429a cmp r2, r3 - 8014f14: d30a bcc.n 8014f2c - 8014f16: 687b ldr r3, [r7, #4] - 8014f18: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8014f06: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 + 8014f0a: 2b03 cmp r3, #3 + 8014f0c: d91b bls.n 8014f46 + /* Inflate the congestion window */ + TCP_WND_INC(pcb->cwnd, pcb->mss); + 8014f0e: 687b ldr r3, [r7, #4] + 8014f10: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8014f14: 687b ldr r3, [r7, #4] + 8014f16: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8014f18: 4413 add r3, r2 + 8014f1a: b29a uxth r2, r3 8014f1c: 687b ldr r3, [r7, #4] - 8014f1e: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8014f20: 4413 add r3, r2 - 8014f22: b29a uxth r2, r3 - 8014f24: 687b ldr r3, [r7, #4] - 8014f26: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 8014f2a: e004 b.n 8014f36 + 8014f1e: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8014f22: 429a cmp r2, r3 + 8014f24: d30a bcc.n 8014f3c + 8014f26: 687b ldr r3, [r7, #4] + 8014f28: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 8014f2c: 687b ldr r3, [r7, #4] - 8014f2e: f64f 72ff movw r2, #65535 ; 0xffff - 8014f32: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8014f2e: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8014f30: 4413 add r3, r2 + 8014f32: b29a uxth r2, r3 + 8014f34: 687b ldr r3, [r7, #4] + 8014f36: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8014f3a: e004 b.n 8014f46 + 8014f3c: 687b ldr r3, [r7, #4] + 8014f3e: f64f 72ff movw r2, #65535 ; 0xffff + 8014f42: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 } if (pcb->dupacks >= 3) { - 8014f36: 687b ldr r3, [r7, #4] - 8014f38: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 - 8014f3c: 2b02 cmp r3, #2 - 8014f3e: d902 bls.n 8014f46 + 8014f46: 687b ldr r3, [r7, #4] + 8014f48: f893 3043 ldrb.w r3, [r3, #67] ; 0x43 + 8014f4c: 2b02 cmp r3, #2 + 8014f4e: d902 bls.n 8014f56 /* Do fast retransmit (checked via TF_INFR, not via dupacks count) */ tcp_rexmit_fast(pcb); - 8014f40: 6878 ldr r0, [r7, #4] - 8014f42: f001 feed bl 8016d20 + 8014f50: 6878 ldr r0, [r7, #4] + 8014f52: f001 feed bl 8016d30 } } } /* If Clause (1) or more is true, but not a duplicate ack, reset * count of consecutive duplicate acks */ if (!found_dupack) { - 8014f46: 6cbb ldr r3, [r7, #72] ; 0x48 - 8014f48: 2b00 cmp r3, #0 - 8014f4a: f040 8160 bne.w 801520e + 8014f56: 6cbb ldr r3, [r7, #72] ; 0x48 + 8014f58: 2b00 cmp r3, #0 + 8014f5a: f040 8160 bne.w 801521e pcb->dupacks = 0; - 8014f4e: 687b ldr r3, [r7, #4] - 8014f50: 2200 movs r2, #0 - 8014f52: f883 2043 strb.w r2, [r3, #67] ; 0x43 - 8014f56: e15a b.n 801520e + 8014f5e: 687b ldr r3, [r7, #4] + 8014f60: 2200 movs r2, #0 + 8014f62: f883 2043 strb.w r2, [r3, #67] ; 0x43 + 8014f66: e15a b.n 801521e } } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 8014f58: 4b4b ldr r3, [pc, #300] ; (8015088 ) - 8014f5a: 681a ldr r2, [r3, #0] - 8014f5c: 687b ldr r3, [r7, #4] - 8014f5e: 6c5b ldr r3, [r3, #68] ; 0x44 - 8014f60: 1ad3 subs r3, r2, r3 - 8014f62: 3b01 subs r3, #1 - 8014f64: 2b00 cmp r3, #0 - 8014f66: f2c0 814d blt.w 8015204 - 8014f6a: 4b47 ldr r3, [pc, #284] ; (8015088 ) - 8014f6c: 681a ldr r2, [r3, #0] - 8014f6e: 687b ldr r3, [r7, #4] - 8014f70: 6d1b ldr r3, [r3, #80] ; 0x50 - 8014f72: 1ad3 subs r3, r2, r3 + 8014f68: 4b4b ldr r3, [pc, #300] ; (8015098 ) + 8014f6a: 681a ldr r2, [r3, #0] + 8014f6c: 687b ldr r3, [r7, #4] + 8014f6e: 6c5b ldr r3, [r3, #68] ; 0x44 + 8014f70: 1ad3 subs r3, r2, r3 + 8014f72: 3b01 subs r3, #1 8014f74: 2b00 cmp r3, #0 - 8014f76: f300 8145 bgt.w 8015204 + 8014f76: f2c0 814d blt.w 8015214 + 8014f7a: 4b47 ldr r3, [pc, #284] ; (8015098 ) + 8014f7c: 681a ldr r2, [r3, #0] + 8014f7e: 687b ldr r3, [r7, #4] + 8014f80: 6d1b ldr r3, [r3, #80] ; 0x50 + 8014f82: 1ad3 subs r3, r2, r3 + 8014f84: 2b00 cmp r3, #0 + 8014f86: f300 8145 bgt.w 8015214 tcpwnd_size_t acked; /* Reset the "IN Fast Retransmit" flag, since we are no longer in fast retransmit. Also reset the congestion window to the slow start threshold. */ if (pcb->flags & TF_INFR) { - 8014f7a: 687b ldr r3, [r7, #4] - 8014f7c: 8b5b ldrh r3, [r3, #26] - 8014f7e: f003 0304 and.w r3, r3, #4 - 8014f82: 2b00 cmp r3, #0 - 8014f84: d010 beq.n 8014fa8 + 8014f8a: 687b ldr r3, [r7, #4] + 8014f8c: 8b5b ldrh r3, [r3, #26] + 8014f8e: f003 0304 and.w r3, r3, #4 + 8014f92: 2b00 cmp r3, #0 + 8014f94: d010 beq.n 8014fb8 tcp_clear_flags(pcb, TF_INFR); - 8014f86: 687b ldr r3, [r7, #4] - 8014f88: 8b5b ldrh r3, [r3, #26] - 8014f8a: f023 0304 bic.w r3, r3, #4 - 8014f8e: b29a uxth r2, r3 - 8014f90: 687b ldr r3, [r7, #4] - 8014f92: 835a strh r2, [r3, #26] + 8014f96: 687b ldr r3, [r7, #4] + 8014f98: 8b5b ldrh r3, [r3, #26] + 8014f9a: f023 0304 bic.w r3, r3, #4 + 8014f9e: b29a uxth r2, r3 + 8014fa0: 687b ldr r3, [r7, #4] + 8014fa2: 835a strh r2, [r3, #26] pcb->cwnd = pcb->ssthresh; - 8014f94: 687b ldr r3, [r7, #4] - 8014f96: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 8014f9a: 687b ldr r3, [r7, #4] - 8014f9c: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8014fa4: 687b ldr r3, [r7, #4] + 8014fa6: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a + 8014faa: 687b ldr r3, [r7, #4] + 8014fac: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 pcb->bytes_acked = 0; - 8014fa0: 687b ldr r3, [r7, #4] - 8014fa2: 2200 movs r2, #0 - 8014fa4: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + 8014fb0: 687b ldr r3, [r7, #4] + 8014fb2: 2200 movs r2, #0 + 8014fb4: f8a3 206a strh.w r2, [r3, #106] ; 0x6a } /* Reset the number of retransmissions. */ pcb->nrtx = 0; - 8014fa8: 687b ldr r3, [r7, #4] - 8014faa: 2200 movs r2, #0 - 8014fac: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8014fb8: 687b ldr r3, [r7, #4] + 8014fba: 2200 movs r2, #0 + 8014fbc: f883 2042 strb.w r2, [r3, #66] ; 0x42 /* Reset the retransmission time-out. */ pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); - 8014fb0: 687b ldr r3, [r7, #4] - 8014fb2: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8014fb6: 10db asrs r3, r3, #3 - 8014fb8: b21b sxth r3, r3 - 8014fba: b29a uxth r2, r3 - 8014fbc: 687b ldr r3, [r7, #4] - 8014fbe: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 8014fc2: b29b uxth r3, r3 - 8014fc4: 4413 add r3, r2 - 8014fc6: b29b uxth r3, r3 - 8014fc8: b21a sxth r2, r3 - 8014fca: 687b ldr r3, [r7, #4] - 8014fcc: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 + 8014fc0: 687b ldr r3, [r7, #4] + 8014fc2: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 8014fc6: 10db asrs r3, r3, #3 + 8014fc8: b21b sxth r3, r3 + 8014fca: b29a uxth r2, r3 + 8014fcc: 687b ldr r3, [r7, #4] + 8014fce: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 8014fd2: b29b uxth r3, r3 + 8014fd4: 4413 add r3, r2 + 8014fd6: b29b uxth r3, r3 + 8014fd8: b21a sxth r2, r3 + 8014fda: 687b ldr r3, [r7, #4] + 8014fdc: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 /* Record how much data this ACK acks */ acked = (tcpwnd_size_t)(ackno - pcb->lastack); - 8014fd0: 4b2d ldr r3, [pc, #180] ; (8015088 ) - 8014fd2: 681b ldr r3, [r3, #0] - 8014fd4: b29a uxth r2, r3 - 8014fd6: 687b ldr r3, [r7, #4] - 8014fd8: 6c5b ldr r3, [r3, #68] ; 0x44 - 8014fda: b29b uxth r3, r3 - 8014fdc: 1ad3 subs r3, r2, r3 - 8014fde: 85fb strh r3, [r7, #46] ; 0x2e + 8014fe0: 4b2d ldr r3, [pc, #180] ; (8015098 ) + 8014fe2: 681b ldr r3, [r3, #0] + 8014fe4: b29a uxth r2, r3 + 8014fe6: 687b ldr r3, [r7, #4] + 8014fe8: 6c5b ldr r3, [r3, #68] ; 0x44 + 8014fea: b29b uxth r3, r3 + 8014fec: 1ad3 subs r3, r2, r3 + 8014fee: 85fb strh r3, [r7, #46] ; 0x2e /* Reset the fast retransmit variables. */ pcb->dupacks = 0; - 8014fe0: 687b ldr r3, [r7, #4] - 8014fe2: 2200 movs r2, #0 - 8014fe4: f883 2043 strb.w r2, [r3, #67] ; 0x43 + 8014ff0: 687b ldr r3, [r7, #4] + 8014ff2: 2200 movs r2, #0 + 8014ff4: f883 2043 strb.w r2, [r3, #67] ; 0x43 pcb->lastack = ackno; - 8014fe8: 4b27 ldr r3, [pc, #156] ; (8015088 ) - 8014fea: 681a ldr r2, [r3, #0] - 8014fec: 687b ldr r3, [r7, #4] - 8014fee: 645a str r2, [r3, #68] ; 0x44 + 8014ff8: 4b27 ldr r3, [pc, #156] ; (8015098 ) + 8014ffa: 681a ldr r2, [r3, #0] + 8014ffc: 687b ldr r3, [r7, #4] + 8014ffe: 645a str r2, [r3, #68] ; 0x44 /* Update the congestion control variables (cwnd and ssthresh). */ if (pcb->state >= ESTABLISHED) { - 8014ff0: 687b ldr r3, [r7, #4] - 8014ff2: 7d1b ldrb r3, [r3, #20] - 8014ff4: 2b03 cmp r3, #3 - 8014ff6: f240 8096 bls.w 8015126 - if (pcb->cwnd < pcb->ssthresh) { - 8014ffa: 687b ldr r3, [r7, #4] - 8014ffc: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 8015000: 687b ldr r3, [r7, #4] - 8015002: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a - 8015006: 429a cmp r2, r3 - 8015008: d244 bcs.n 8015094 + 8015002: 7d1b ldrb r3, [r3, #20] + 8015004: 2b03 cmp r3, #3 + 8015006: f240 8096 bls.w 8015136 + if (pcb->cwnd < pcb->ssthresh) { + 801500a: 687b ldr r3, [r7, #4] + 801500c: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8015010: 687b ldr r3, [r7, #4] + 8015012: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a + 8015016: 429a cmp r2, r3 + 8015018: d244 bcs.n 80150a4 tcpwnd_size_t increase; /* limit to 1 SMSS segment during period following RTO */ u8_t num_seg = (pcb->flags & TF_RTO) ? 1 : 2; - 801500a: 687b ldr r3, [r7, #4] - 801500c: 8b5b ldrh r3, [r3, #26] - 801500e: f403 6300 and.w r3, r3, #2048 ; 0x800 - 8015012: 2b00 cmp r3, #0 - 8015014: d001 beq.n 801501a - 8015016: 2301 movs r3, #1 - 8015018: e000 b.n 801501c - 801501a: 2302 movs r3, #2 - 801501c: f887 302d strb.w r3, [r7, #45] ; 0x2d + 801501a: 687b ldr r3, [r7, #4] + 801501c: 8b5b ldrh r3, [r3, #26] + 801501e: f403 6300 and.w r3, r3, #2048 ; 0x800 + 8015022: 2b00 cmp r3, #0 + 8015024: d001 beq.n 801502a + 8015026: 2301 movs r3, #1 + 8015028: e000 b.n 801502c + 801502a: 2302 movs r3, #2 + 801502c: f887 302d strb.w r3, [r7, #45] ; 0x2d /* RFC 3465, section 2.2 Slow Start */ increase = LWIP_MIN(acked, (tcpwnd_size_t)(num_seg * pcb->mss)); - 8015020: f897 302d ldrb.w r3, [r7, #45] ; 0x2d - 8015024: b29a uxth r2, r3 - 8015026: 687b ldr r3, [r7, #4] - 8015028: 8e5b ldrh r3, [r3, #50] ; 0x32 - 801502a: fb12 f303 smulbb r3, r2, r3 - 801502e: b29b uxth r3, r3 - 8015030: 8dfa ldrh r2, [r7, #46] ; 0x2e - 8015032: 4293 cmp r3, r2 - 8015034: bf28 it cs - 8015036: 4613 movcs r3, r2 - 8015038: 857b strh r3, [r7, #42] ; 0x2a + 8015030: f897 302d ldrb.w r3, [r7, #45] ; 0x2d + 8015034: b29a uxth r2, r3 + 8015036: 687b ldr r3, [r7, #4] + 8015038: 8e5b ldrh r3, [r3, #50] ; 0x32 + 801503a: fb12 f303 smulbb r3, r2, r3 + 801503e: b29b uxth r3, r3 + 8015040: 8dfa ldrh r2, [r7, #46] ; 0x2e + 8015042: 4293 cmp r3, r2 + 8015044: bf28 it cs + 8015046: 4613 movcs r3, r2 + 8015048: 857b strh r3, [r7, #42] ; 0x2a TCP_WND_INC(pcb->cwnd, increase); - 801503a: 687b ldr r3, [r7, #4] - 801503c: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8015040: 8d7b ldrh r3, [r7, #42] ; 0x2a - 8015042: 4413 add r3, r2 - 8015044: b29a uxth r2, r3 - 8015046: 687b ldr r3, [r7, #4] - 8015048: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 801504c: 429a cmp r2, r3 - 801504e: d309 bcc.n 8015064 - 8015050: 687b ldr r3, [r7, #4] - 8015052: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8015056: 8d7b ldrh r3, [r7, #42] ; 0x2a - 8015058: 4413 add r3, r2 - 801505a: b29a uxth r2, r3 - 801505c: 687b ldr r3, [r7, #4] - 801505e: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 8015062: e060 b.n 8015126 - 8015064: 687b ldr r3, [r7, #4] - 8015066: f64f 72ff movw r2, #65535 ; 0xffff - 801506a: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 801506e: e05a b.n 8015126 - 8015070: 0801ec40 .word 0x0801ec40 - 8015074: 0801ef70 .word 0x0801ef70 - 8015078: 0801ec8c .word 0x0801ec8c - 801507c: 0801ef8c .word 0x0801ef8c - 8015080: 2000874c .word 0x2000874c - 8015084: 20008740 .word 0x20008740 - 8015088: 20008744 .word 0x20008744 - 801508c: 20008730 .word 0x20008730 - 8015090: 2000874a .word 0x2000874a + 801504a: 687b ldr r3, [r7, #4] + 801504c: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8015050: 8d7b ldrh r3, [r7, #42] ; 0x2a + 8015052: 4413 add r3, r2 + 8015054: b29a uxth r2, r3 + 8015056: 687b ldr r3, [r7, #4] + 8015058: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 801505c: 429a cmp r2, r3 + 801505e: d309 bcc.n 8015074 + 8015060: 687b ldr r3, [r7, #4] + 8015062: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8015066: 8d7b ldrh r3, [r7, #42] ; 0x2a + 8015068: 4413 add r3, r2 + 801506a: b29a uxth r2, r3 + 801506c: 687b ldr r3, [r7, #4] + 801506e: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 8015072: e060 b.n 8015136 + 8015074: 687b ldr r3, [r7, #4] + 8015076: f64f 72ff movw r2, #65535 ; 0xffff + 801507a: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 801507e: e05a b.n 8015136 + 8015080: 0801ec50 .word 0x0801ec50 + 8015084: 0801ef80 .word 0x0801ef80 + 8015088: 0801ec9c .word 0x0801ec9c + 801508c: 0801ef9c .word 0x0801ef9c + 8015090: 2000874c .word 0x2000874c + 8015094: 20008740 .word 0x20008740 + 8015098: 20008744 .word 0x20008744 + 801509c: 20008730 .word 0x20008730 + 80150a0: 2000874a .word 0x2000874a LWIP_DEBUGF(TCP_CWND_DEBUG, ("tcp_receive: slow start cwnd %"TCPWNDSIZE_F"\n", pcb->cwnd)); } else { /* RFC 3465, section 2.1 Congestion Avoidance */ TCP_WND_INC(pcb->bytes_acked, acked); - 8015094: 687b ldr r3, [r7, #4] - 8015096: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 801509a: 8dfb ldrh r3, [r7, #46] ; 0x2e - 801509c: 4413 add r3, r2 - 801509e: b29a uxth r2, r3 - 80150a0: 687b ldr r3, [r7, #4] - 80150a2: f8b3 306a ldrh.w r3, [r3, #106] ; 0x6a - 80150a6: 429a cmp r2, r3 - 80150a8: d309 bcc.n 80150be - 80150aa: 687b ldr r3, [r7, #4] - 80150ac: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a - 80150b0: 8dfb ldrh r3, [r7, #46] ; 0x2e - 80150b2: 4413 add r3, r2 - 80150b4: b29a uxth r2, r3 - 80150b6: 687b ldr r3, [r7, #4] - 80150b8: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - 80150bc: e004 b.n 80150c8 - 80150be: 687b ldr r3, [r7, #4] - 80150c0: f64f 72ff movw r2, #65535 ; 0xffff - 80150c4: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - if (pcb->bytes_acked >= pcb->cwnd) { - 80150c8: 687b ldr r3, [r7, #4] - 80150ca: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a + 80150a4: 687b ldr r3, [r7, #4] + 80150a6: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a + 80150aa: 8dfb ldrh r3, [r7, #46] ; 0x2e + 80150ac: 4413 add r3, r2 + 80150ae: b29a uxth r2, r3 + 80150b0: 687b ldr r3, [r7, #4] + 80150b2: f8b3 306a ldrh.w r3, [r3, #106] ; 0x6a + 80150b6: 429a cmp r2, r3 + 80150b8: d309 bcc.n 80150ce + 80150ba: 687b ldr r3, [r7, #4] + 80150bc: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a + 80150c0: 8dfb ldrh r3, [r7, #46] ; 0x2e + 80150c2: 4413 add r3, r2 + 80150c4: b29a uxth r2, r3 + 80150c6: 687b ldr r3, [r7, #4] + 80150c8: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + 80150cc: e004 b.n 80150d8 80150ce: 687b ldr r3, [r7, #4] - 80150d0: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 80150d4: 429a cmp r2, r3 - 80150d6: d326 bcc.n 8015126 - pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd); + 80150d0: f64f 72ff movw r2, #65535 ; 0xffff + 80150d4: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + if (pcb->bytes_acked >= pcb->cwnd) { 80150d8: 687b ldr r3, [r7, #4] 80150da: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a 80150de: 687b ldr r3, [r7, #4] 80150e0: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 80150e4: 1ad3 subs r3, r2, r3 - 80150e6: b29a uxth r2, r3 + 80150e4: 429a cmp r2, r3 + 80150e6: d326 bcc.n 8015136 + pcb->bytes_acked = (tcpwnd_size_t)(pcb->bytes_acked - pcb->cwnd); 80150e8: 687b ldr r3, [r7, #4] - 80150ea: f8a3 206a strh.w r2, [r3, #106] ; 0x6a - TCP_WND_INC(pcb->cwnd, pcb->mss); + 80150ea: f8b3 206a ldrh.w r2, [r3, #106] ; 0x6a 80150ee: 687b ldr r3, [r7, #4] - 80150f0: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 80150f4: 687b ldr r3, [r7, #4] - 80150f6: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80150f8: 4413 add r3, r2 - 80150fa: b29a uxth r2, r3 - 80150fc: 687b ldr r3, [r7, #4] - 80150fe: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8015102: 429a cmp r2, r3 - 8015104: d30a bcc.n 801511c - 8015106: 687b ldr r3, [r7, #4] - 8015108: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 80150f0: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 80150f4: 1ad3 subs r3, r2, r3 + 80150f6: b29a uxth r2, r3 + 80150f8: 687b ldr r3, [r7, #4] + 80150fa: f8a3 206a strh.w r2, [r3, #106] ; 0x6a + TCP_WND_INC(pcb->cwnd, pcb->mss); + 80150fe: 687b ldr r3, [r7, #4] + 8015100: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8015104: 687b ldr r3, [r7, #4] + 8015106: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8015108: 4413 add r3, r2 + 801510a: b29a uxth r2, r3 801510c: 687b ldr r3, [r7, #4] - 801510e: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8015110: 4413 add r3, r2 - 8015112: b29a uxth r2, r3 - 8015114: 687b ldr r3, [r7, #4] - 8015116: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - 801511a: e004 b.n 8015126 + 801510e: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8015112: 429a cmp r2, r3 + 8015114: d30a bcc.n 801512c + 8015116: 687b ldr r3, [r7, #4] + 8015118: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 801511c: 687b ldr r3, [r7, #4] - 801511e: f64f 72ff movw r2, #65535 ; 0xffff - 8015122: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 801511e: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8015120: 4413 add r3, r2 + 8015122: b29a uxth r2, r3 + 8015124: 687b ldr r3, [r7, #4] + 8015126: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + 801512a: e004 b.n 8015136 + 801512c: 687b ldr r3, [r7, #4] + 801512e: f64f 72ff movw r2, #65535 ; 0xffff + 8015132: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 pcb->unacked != NULL ? lwip_ntohl(pcb->unacked->tcphdr->seqno) + TCP_TCPLEN(pcb->unacked) : 0)); /* Remove segment from the unacknowledged list if the incoming ACK acknowledges them. */ pcb->unacked = tcp_free_acked_segments(pcb, pcb->unacked, "unacked", pcb->unsent); - 8015126: 687b ldr r3, [r7, #4] - 8015128: 6f19 ldr r1, [r3, #112] ; 0x70 - 801512a: 687b ldr r3, [r7, #4] - 801512c: 6edb ldr r3, [r3, #108] ; 0x6c - 801512e: 4a98 ldr r2, [pc, #608] ; (8015390 ) - 8015130: 6878 ldr r0, [r7, #4] - 8015132: f7ff fdcb bl 8014ccc - 8015136: 4602 mov r2, r0 - 8015138: 687b ldr r3, [r7, #4] - 801513a: 671a str r2, [r3, #112] ; 0x70 + 8015136: 687b ldr r3, [r7, #4] + 8015138: 6f19 ldr r1, [r3, #112] ; 0x70 + 801513a: 687b ldr r3, [r7, #4] + 801513c: 6edb ldr r3, [r3, #108] ; 0x6c + 801513e: 4a98 ldr r2, [pc, #608] ; (80153a0 ) + 8015140: 6878 ldr r0, [r7, #4] + 8015142: f7ff fdcb bl 8014cdc + 8015146: 4602 mov r2, r0 + 8015148: 687b ldr r3, [r7, #4] + 801514a: 671a str r2, [r3, #112] ; 0x70 on the list are acknowledged by the ACK. This may seem strange since an "unsent" segment shouldn't be acked. The rationale is that lwIP puts all outstanding segments on the ->unsent list after a retransmission, so these segments may in fact have been sent once. */ pcb->unsent = tcp_free_acked_segments(pcb, pcb->unsent, "unsent", pcb->unacked); - 801513c: 687b ldr r3, [r7, #4] - 801513e: 6ed9 ldr r1, [r3, #108] ; 0x6c - 8015140: 687b ldr r3, [r7, #4] - 8015142: 6f1b ldr r3, [r3, #112] ; 0x70 - 8015144: 4a93 ldr r2, [pc, #588] ; (8015394 ) - 8015146: 6878 ldr r0, [r7, #4] - 8015148: f7ff fdc0 bl 8014ccc - 801514c: 4602 mov r2, r0 - 801514e: 687b ldr r3, [r7, #4] - 8015150: 66da str r2, [r3, #108] ; 0x6c + 801514c: 687b ldr r3, [r7, #4] + 801514e: 6ed9 ldr r1, [r3, #108] ; 0x6c + 8015150: 687b ldr r3, [r7, #4] + 8015152: 6f1b ldr r3, [r3, #112] ; 0x70 + 8015154: 4a93 ldr r2, [pc, #588] ; (80153a4 ) + 8015156: 6878 ldr r0, [r7, #4] + 8015158: f7ff fdc0 bl 8014cdc + 801515c: 4602 mov r2, r0 + 801515e: 687b ldr r3, [r7, #4] + 8015160: 66da str r2, [r3, #108] ; 0x6c /* If there's nothing left to acknowledge, stop the retransmit timer, otherwise reset it to start again */ if (pcb->unacked == NULL) { - 8015152: 687b ldr r3, [r7, #4] - 8015154: 6f1b ldr r3, [r3, #112] ; 0x70 - 8015156: 2b00 cmp r3, #0 - 8015158: d104 bne.n 8015164 + 8015162: 687b ldr r3, [r7, #4] + 8015164: 6f1b ldr r3, [r3, #112] ; 0x70 + 8015166: 2b00 cmp r3, #0 + 8015168: d104 bne.n 8015174 pcb->rtime = -1; - 801515a: 687b ldr r3, [r7, #4] - 801515c: f64f 72ff movw r2, #65535 ; 0xffff - 8015160: 861a strh r2, [r3, #48] ; 0x30 - 8015162: e002 b.n 801516a + 801516a: 687b ldr r3, [r7, #4] + 801516c: f64f 72ff movw r2, #65535 ; 0xffff + 8015170: 861a strh r2, [r3, #48] ; 0x30 + 8015172: e002 b.n 801517a } else { pcb->rtime = 0; - 8015164: 687b ldr r3, [r7, #4] - 8015166: 2200 movs r2, #0 - 8015168: 861a strh r2, [r3, #48] ; 0x30 + 8015174: 687b ldr r3, [r7, #4] + 8015176: 2200 movs r2, #0 + 8015178: 861a strh r2, [r3, #48] ; 0x30 } pcb->polltmr = 0; - 801516a: 687b ldr r3, [r7, #4] - 801516c: 2200 movs r2, #0 - 801516e: 771a strb r2, [r3, #28] + 801517a: 687b ldr r3, [r7, #4] + 801517c: 2200 movs r2, #0 + 801517e: 771a strb r2, [r3, #28] #if TCP_OVERSIZE if (pcb->unsent == NULL) { - 8015170: 687b ldr r3, [r7, #4] - 8015172: 6edb ldr r3, [r3, #108] ; 0x6c - 8015174: 2b00 cmp r3, #0 - 8015176: d103 bne.n 8015180 + 8015180: 687b ldr r3, [r7, #4] + 8015182: 6edb ldr r3, [r3, #108] ; 0x6c + 8015184: 2b00 cmp r3, #0 + 8015186: d103 bne.n 8015190 pcb->unsent_oversize = 0; - 8015178: 687b ldr r3, [r7, #4] - 801517a: 2200 movs r2, #0 - 801517c: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 8015188: 687b ldr r3, [r7, #4] + 801518a: 2200 movs r2, #0 + 801518c: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 /* Inform neighbor reachability of forward progress. */ nd6_reachability_hint(ip6_current_src_addr()); } #endif /* LWIP_IPV6 && LWIP_ND6_TCP_REACHABILITY_HINTS*/ pcb->snd_buf = (tcpwnd_size_t)(pcb->snd_buf + recv_acked); - 8015180: 687b ldr r3, [r7, #4] - 8015182: f8b3 2064 ldrh.w r2, [r3, #100] ; 0x64 - 8015186: 4b84 ldr r3, [pc, #528] ; (8015398 ) - 8015188: 881b ldrh r3, [r3, #0] - 801518a: 4413 add r3, r2 - 801518c: b29a uxth r2, r3 - 801518e: 687b ldr r3, [r7, #4] - 8015190: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 + 8015190: 687b ldr r3, [r7, #4] + 8015192: f8b3 2064 ldrh.w r2, [r3, #100] ; 0x64 + 8015196: 4b84 ldr r3, [pc, #528] ; (80153a8 ) + 8015198: 881b ldrh r3, [r3, #0] + 801519a: 4413 add r3, r2 + 801519c: b29a uxth r2, r3 + 801519e: 687b ldr r3, [r7, #4] + 80151a0: f8a3 2064 strh.w r2, [r3, #100] ; 0x64 /* check if this ACK ends our retransmission of in-flight data */ if (pcb->flags & TF_RTO) { - 8015194: 687b ldr r3, [r7, #4] - 8015196: 8b5b ldrh r3, [r3, #26] - 8015198: f403 6300 and.w r3, r3, #2048 ; 0x800 - 801519c: 2b00 cmp r3, #0 - 801519e: d035 beq.n 801520c + 80151a4: 687b ldr r3, [r7, #4] + 80151a6: 8b5b ldrh r3, [r3, #26] + 80151a8: f403 6300 and.w r3, r3, #2048 ; 0x800 + 80151ac: 2b00 cmp r3, #0 + 80151ae: d035 beq.n 801521c /* RTO is done if 1) both queues are empty or 2) unacked is empty and unsent head contains data not part of RTO or 3) unacked head contains data not part of RTO */ if (pcb->unacked == NULL) { - 80151a0: 687b ldr r3, [r7, #4] - 80151a2: 6f1b ldr r3, [r3, #112] ; 0x70 - 80151a4: 2b00 cmp r3, #0 - 80151a6: d118 bne.n 80151da + 80151b0: 687b ldr r3, [r7, #4] + 80151b2: 6f1b ldr r3, [r3, #112] ; 0x70 + 80151b4: 2b00 cmp r3, #0 + 80151b6: d118 bne.n 80151ea if ((pcb->unsent == NULL) || - 80151a8: 687b ldr r3, [r7, #4] - 80151aa: 6edb ldr r3, [r3, #108] ; 0x6c - 80151ac: 2b00 cmp r3, #0 - 80151ae: d00c beq.n 80151ca + 80151b8: 687b ldr r3, [r7, #4] + 80151ba: 6edb ldr r3, [r3, #108] ; 0x6c + 80151bc: 2b00 cmp r3, #0 + 80151be: d00c beq.n 80151da (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unsent->tcphdr->seqno)))) { - 80151b0: 687b ldr r3, [r7, #4] - 80151b2: 6cdc ldr r4, [r3, #76] ; 0x4c - 80151b4: 687b ldr r3, [r7, #4] - 80151b6: 6edb ldr r3, [r3, #108] ; 0x6c - 80151b8: 68db ldr r3, [r3, #12] - 80151ba: 685b ldr r3, [r3, #4] - 80151bc: 4618 mov r0, r3 - 80151be: f7fb f974 bl 80104aa - 80151c2: 4603 mov r3, r0 - 80151c4: 1ae3 subs r3, r4, r3 + 80151c0: 687b ldr r3, [r7, #4] + 80151c2: 6cdc ldr r4, [r3, #76] ; 0x4c + 80151c4: 687b ldr r3, [r7, #4] + 80151c6: 6edb ldr r3, [r3, #108] ; 0x6c + 80151c8: 68db ldr r3, [r3, #12] + 80151ca: 685b ldr r3, [r3, #4] + 80151cc: 4618 mov r0, r3 + 80151ce: f7fb f974 bl 80104ba + 80151d2: 4603 mov r3, r0 + 80151d4: 1ae3 subs r3, r4, r3 if ((pcb->unsent == NULL) || - 80151c6: 2b00 cmp r3, #0 - 80151c8: dc20 bgt.n 801520c + 80151d6: 2b00 cmp r3, #0 + 80151d8: dc20 bgt.n 801521c tcp_clear_flags(pcb, TF_RTO); - 80151ca: 687b ldr r3, [r7, #4] - 80151cc: 8b5b ldrh r3, [r3, #26] - 80151ce: f423 6300 bic.w r3, r3, #2048 ; 0x800 - 80151d2: b29a uxth r2, r3 - 80151d4: 687b ldr r3, [r7, #4] - 80151d6: 835a strh r2, [r3, #26] + 80151da: 687b ldr r3, [r7, #4] + 80151dc: 8b5b ldrh r3, [r3, #26] + 80151de: f423 6300 bic.w r3, r3, #2048 ; 0x800 + 80151e2: b29a uxth r2, r3 + 80151e4: 687b ldr r3, [r7, #4] + 80151e6: 835a strh r2, [r3, #26] } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 80151d8: e018 b.n 801520c + 80151e8: e018 b.n 801521c } } else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) { - 80151da: 687b ldr r3, [r7, #4] - 80151dc: 6cdc ldr r4, [r3, #76] ; 0x4c - 80151de: 687b ldr r3, [r7, #4] - 80151e0: 6f1b ldr r3, [r3, #112] ; 0x70 - 80151e2: 68db ldr r3, [r3, #12] - 80151e4: 685b ldr r3, [r3, #4] - 80151e6: 4618 mov r0, r3 - 80151e8: f7fb f95f bl 80104aa - 80151ec: 4603 mov r3, r0 - 80151ee: 1ae3 subs r3, r4, r3 - 80151f0: 2b00 cmp r3, #0 - 80151f2: dc0b bgt.n 801520c + 80151ea: 687b ldr r3, [r7, #4] + 80151ec: 6cdc ldr r4, [r3, #76] ; 0x4c + 80151ee: 687b ldr r3, [r7, #4] + 80151f0: 6f1b ldr r3, [r3, #112] ; 0x70 + 80151f2: 68db ldr r3, [r3, #12] + 80151f4: 685b ldr r3, [r3, #4] + 80151f6: 4618 mov r0, r3 + 80151f8: f7fb f95f bl 80104ba + 80151fc: 4603 mov r3, r0 + 80151fe: 1ae3 subs r3, r4, r3 + 8015200: 2b00 cmp r3, #0 + 8015202: dc0b bgt.n 801521c tcp_clear_flags(pcb, TF_RTO); - 80151f4: 687b ldr r3, [r7, #4] - 80151f6: 8b5b ldrh r3, [r3, #26] - 80151f8: f423 6300 bic.w r3, r3, #2048 ; 0x800 - 80151fc: b29a uxth r2, r3 - 80151fe: 687b ldr r3, [r7, #4] - 8015200: 835a strh r2, [r3, #26] + 8015204: 687b ldr r3, [r7, #4] + 8015206: 8b5b ldrh r3, [r3, #26] + 8015208: f423 6300 bic.w r3, r3, #2048 ; 0x800 + 801520c: b29a uxth r2, r3 + 801520e: 687b ldr r3, [r7, #4] + 8015210: 835a strh r2, [r3, #26] } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 8015202: e003 b.n 801520c + 8015212: e003 b.n 801521c } } /* End of ACK for new data processing. */ } else { /* Out of sequence ACK, didn't really ack anything */ tcp_send_empty_ack(pcb); - 8015204: 6878 ldr r0, [r7, #4] - 8015206: f001 ff85 bl 8017114 - 801520a: e000 b.n 801520e + 8015214: 6878 ldr r0, [r7, #4] + 8015216: f001 ff85 bl 8017124 + 801521a: e000 b.n 801521e } else if (TCP_SEQ_BETWEEN(ackno, pcb->lastack + 1, pcb->snd_nxt)) { - 801520c: bf00 nop + 801521c: bf00 nop pcb->rttest, pcb->rtseq, ackno)); /* RTT estimation calculations. This is done by checking if the incoming segment acknowledges the segment we use to take a round-trip time measurement. */ if (pcb->rttest && TCP_SEQ_LT(pcb->rtseq, ackno)) { - 801520e: 687b ldr r3, [r7, #4] - 8015210: 6b5b ldr r3, [r3, #52] ; 0x34 - 8015212: 2b00 cmp r3, #0 - 8015214: d05b beq.n 80152ce - 8015216: 687b ldr r3, [r7, #4] - 8015218: 6b9a ldr r2, [r3, #56] ; 0x38 - 801521a: 4b60 ldr r3, [pc, #384] ; (801539c ) - 801521c: 681b ldr r3, [r3, #0] - 801521e: 1ad3 subs r3, r2, r3 - 8015220: 2b00 cmp r3, #0 - 8015222: da54 bge.n 80152ce + 801521e: 687b ldr r3, [r7, #4] + 8015220: 6b5b ldr r3, [r3, #52] ; 0x34 + 8015222: 2b00 cmp r3, #0 + 8015224: d05b beq.n 80152de + 8015226: 687b ldr r3, [r7, #4] + 8015228: 6b9a ldr r2, [r3, #56] ; 0x38 + 801522a: 4b60 ldr r3, [pc, #384] ; (80153ac ) + 801522c: 681b ldr r3, [r3, #0] + 801522e: 1ad3 subs r3, r2, r3 + 8015230: 2b00 cmp r3, #0 + 8015232: da54 bge.n 80152de /* diff between this shouldn't exceed 32K since this are tcp timer ticks and a round-trip shouldn't be that long... */ m = (s16_t)(tcp_ticks - pcb->rttest); - 8015224: 4b5e ldr r3, [pc, #376] ; (80153a0 ) - 8015226: 681b ldr r3, [r3, #0] - 8015228: b29a uxth r2, r3 - 801522a: 687b ldr r3, [r7, #4] - 801522c: 6b5b ldr r3, [r3, #52] ; 0x34 - 801522e: b29b uxth r3, r3 - 8015230: 1ad3 subs r3, r2, r3 - 8015232: b29b uxth r3, r3 - 8015234: f8a7 304e strh.w r3, [r7, #78] ; 0x4e + 8015234: 4b5e ldr r3, [pc, #376] ; (80153b0 ) + 8015236: 681b ldr r3, [r3, #0] + 8015238: b29a uxth r2, r3 + 801523a: 687b ldr r3, [r7, #4] + 801523c: 6b5b ldr r3, [r3, #52] ; 0x34 + 801523e: b29b uxth r3, r3 + 8015240: 1ad3 subs r3, r2, r3 + 8015242: b29b uxth r3, r3 + 8015244: f8a7 304e strh.w r3, [r7, #78] ; 0x4e LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: experienced rtt %"U16_F" ticks (%"U16_F" msec).\n", m, (u16_t)(m * TCP_SLOW_INTERVAL))); /* This is taken directly from VJs original code in his paper */ m = (s16_t)(m - (pcb->sa >> 3)); - 8015238: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e - 801523c: 687b ldr r3, [r7, #4] - 801523e: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8015242: 10db asrs r3, r3, #3 - 8015244: b21b sxth r3, r3 - 8015246: b29b uxth r3, r3 - 8015248: 1ad3 subs r3, r2, r3 - 801524a: b29b uxth r3, r3 - 801524c: f8a7 304e strh.w r3, [r7, #78] ; 0x4e + 8015248: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e + 801524c: 687b ldr r3, [r7, #4] + 801524e: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 8015252: 10db asrs r3, r3, #3 + 8015254: b21b sxth r3, r3 + 8015256: b29b uxth r3, r3 + 8015258: 1ad3 subs r3, r2, r3 + 801525a: b29b uxth r3, r3 + 801525c: f8a7 304e strh.w r3, [r7, #78] ; 0x4e pcb->sa = (s16_t)(pcb->sa + m); - 8015250: 687b ldr r3, [r7, #4] - 8015252: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 8015256: b29a uxth r2, r3 - 8015258: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 801525c: 4413 add r3, r2 - 801525e: b29b uxth r3, r3 - 8015260: b21a sxth r2, r3 - 8015262: 687b ldr r3, [r7, #4] - 8015264: 879a strh r2, [r3, #60] ; 0x3c + 8015260: 687b ldr r3, [r7, #4] + 8015262: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 8015266: b29a uxth r2, r3 + 8015268: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e + 801526c: 4413 add r3, r2 + 801526e: b29b uxth r3, r3 + 8015270: b21a sxth r2, r3 + 8015272: 687b ldr r3, [r7, #4] + 8015274: 879a strh r2, [r3, #60] ; 0x3c if (m < 0) { - 8015266: f9b7 304e ldrsh.w r3, [r7, #78] ; 0x4e - 801526a: 2b00 cmp r3, #0 - 801526c: da05 bge.n 801527a + 8015276: f9b7 304e ldrsh.w r3, [r7, #78] ; 0x4e + 801527a: 2b00 cmp r3, #0 + 801527c: da05 bge.n 801528a m = (s16_t) - m; - 801526e: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 8015272: 425b negs r3, r3 - 8015274: b29b uxth r3, r3 - 8015276: f8a7 304e strh.w r3, [r7, #78] ; 0x4e + 801527e: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e + 8015282: 425b negs r3, r3 + 8015284: b29b uxth r3, r3 + 8015286: f8a7 304e strh.w r3, [r7, #78] ; 0x4e } m = (s16_t)(m - (pcb->sv >> 2)); - 801527a: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e - 801527e: 687b ldr r3, [r7, #4] - 8015280: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 8015284: 109b asrs r3, r3, #2 - 8015286: b21b sxth r3, r3 - 8015288: b29b uxth r3, r3 - 801528a: 1ad3 subs r3, r2, r3 - 801528c: b29b uxth r3, r3 - 801528e: f8a7 304e strh.w r3, [r7, #78] ; 0x4e + 801528a: f8b7 204e ldrh.w r2, [r7, #78] ; 0x4e + 801528e: 687b ldr r3, [r7, #4] + 8015290: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 8015294: 109b asrs r3, r3, #2 + 8015296: b21b sxth r3, r3 + 8015298: b29b uxth r3, r3 + 801529a: 1ad3 subs r3, r2, r3 + 801529c: b29b uxth r3, r3 + 801529e: f8a7 304e strh.w r3, [r7, #78] ; 0x4e pcb->sv = (s16_t)(pcb->sv + m); - 8015292: 687b ldr r3, [r7, #4] - 8015294: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 8015298: b29a uxth r2, r3 - 801529a: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e - 801529e: 4413 add r3, r2 - 80152a0: b29b uxth r3, r3 - 80152a2: b21a sxth r2, r3 - 80152a4: 687b ldr r3, [r7, #4] - 80152a6: 87da strh r2, [r3, #62] ; 0x3e - pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); - 80152a8: 687b ldr r3, [r7, #4] - 80152aa: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c - 80152ae: 10db asrs r3, r3, #3 - 80152b0: b21b sxth r3, r3 - 80152b2: b29a uxth r2, r3 + 80152a2: 687b ldr r3, [r7, #4] + 80152a4: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 80152a8: b29a uxth r2, r3 + 80152aa: f8b7 304e ldrh.w r3, [r7, #78] ; 0x4e + 80152ae: 4413 add r3, r2 + 80152b0: b29b uxth r3, r3 + 80152b2: b21a sxth r2, r3 80152b4: 687b ldr r3, [r7, #4] - 80152b6: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e - 80152ba: b29b uxth r3, r3 - 80152bc: 4413 add r3, r2 - 80152be: b29b uxth r3, r3 - 80152c0: b21a sxth r2, r3 - 80152c2: 687b ldr r3, [r7, #4] - 80152c4: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 + 80152b6: 87da strh r2, [r3, #62] ; 0x3e + pcb->rto = (s16_t)((pcb->sa >> 3) + pcb->sv); + 80152b8: 687b ldr r3, [r7, #4] + 80152ba: f9b3 303c ldrsh.w r3, [r3, #60] ; 0x3c + 80152be: 10db asrs r3, r3, #3 + 80152c0: b21b sxth r3, r3 + 80152c2: b29a uxth r2, r3 + 80152c4: 687b ldr r3, [r7, #4] + 80152c6: f9b3 303e ldrsh.w r3, [r3, #62] ; 0x3e + 80152ca: b29b uxth r3, r3 + 80152cc: 4413 add r3, r2 + 80152ce: b29b uxth r3, r3 + 80152d0: b21a sxth r2, r3 + 80152d2: 687b ldr r3, [r7, #4] + 80152d4: f8a3 2040 strh.w r2, [r3, #64] ; 0x40 LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_receive: RTO %"U16_F" (%"U16_F" milliseconds)\n", pcb->rto, (u16_t)(pcb->rto * TCP_SLOW_INTERVAL))); pcb->rttest = 0; - 80152c8: 687b ldr r3, [r7, #4] - 80152ca: 2200 movs r2, #0 - 80152cc: 635a str r2, [r3, #52] ; 0x34 + 80152d8: 687b ldr r3, [r7, #4] + 80152da: 2200 movs r2, #0 + 80152dc: 635a str r2, [r3, #52] ; 0x34 /* If the incoming segment contains data, we must process it further unless the pcb already received a FIN. (RFC 793, chapter 3.9, "SEGMENT ARRIVES" in states CLOSE-WAIT, CLOSING, LAST-ACK and TIME-WAIT: "Ignore the segment text.") */ if ((tcplen > 0) && (pcb->state < CLOSE_WAIT)) { - 80152ce: 4b35 ldr r3, [pc, #212] ; (80153a4 ) - 80152d0: 881b ldrh r3, [r3, #0] - 80152d2: 2b00 cmp r3, #0 - 80152d4: f000 84e1 beq.w 8015c9a - 80152d8: 687b ldr r3, [r7, #4] - 80152da: 7d1b ldrb r3, [r3, #20] - 80152dc: 2b06 cmp r3, #6 - 80152de: f200 84dc bhi.w 8015c9a + 80152de: 4b35 ldr r3, [pc, #212] ; (80153b4 ) + 80152e0: 881b ldrh r3, [r3, #0] + 80152e2: 2b00 cmp r3, #0 + 80152e4: f000 84e1 beq.w 8015caa + 80152e8: 687b ldr r3, [r7, #4] + 80152ea: 7d1b ldrb r3, [r3, #20] + 80152ec: 2b06 cmp r3, #6 + 80152ee: f200 84dc bhi.w 8015caa this if the sequence number of the incoming segment is less than rcv_nxt, and the sequence number plus the length of the segment is larger than rcv_nxt. */ /* if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) { if (TCP_SEQ_LT(pcb->rcv_nxt, seqno + tcplen)) {*/ if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) { - 80152e2: 687b ldr r3, [r7, #4] - 80152e4: 6a5a ldr r2, [r3, #36] ; 0x24 - 80152e6: 4b30 ldr r3, [pc, #192] ; (80153a8 ) - 80152e8: 681b ldr r3, [r3, #0] - 80152ea: 1ad3 subs r3, r2, r3 - 80152ec: 3b01 subs r3, #1 - 80152ee: 2b00 cmp r3, #0 - 80152f0: f2c0 808e blt.w 8015410 - 80152f4: 687b ldr r3, [r7, #4] - 80152f6: 6a5a ldr r2, [r3, #36] ; 0x24 - 80152f8: 4b2a ldr r3, [pc, #168] ; (80153a4 ) - 80152fa: 881b ldrh r3, [r3, #0] - 80152fc: 4619 mov r1, r3 - 80152fe: 4b2a ldr r3, [pc, #168] ; (80153a8 ) - 8015300: 681b ldr r3, [r3, #0] - 8015302: 440b add r3, r1 - 8015304: 1ad3 subs r3, r2, r3 - 8015306: 3301 adds r3, #1 - 8015308: 2b00 cmp r3, #0 - 801530a: f300 8081 bgt.w 8015410 + 80152f2: 687b ldr r3, [r7, #4] + 80152f4: 6a5a ldr r2, [r3, #36] ; 0x24 + 80152f6: 4b30 ldr r3, [pc, #192] ; (80153b8 ) + 80152f8: 681b ldr r3, [r3, #0] + 80152fa: 1ad3 subs r3, r2, r3 + 80152fc: 3b01 subs r3, #1 + 80152fe: 2b00 cmp r3, #0 + 8015300: f2c0 808e blt.w 8015420 + 8015304: 687b ldr r3, [r7, #4] + 8015306: 6a5a ldr r2, [r3, #36] ; 0x24 + 8015308: 4b2a ldr r3, [pc, #168] ; (80153b4 ) + 801530a: 881b ldrh r3, [r3, #0] + 801530c: 4619 mov r1, r3 + 801530e: 4b2a ldr r3, [pc, #168] ; (80153b8 ) + 8015310: 681b ldr r3, [r3, #0] + 8015312: 440b add r3, r1 + 8015314: 1ad3 subs r3, r2, r3 + 8015316: 3301 adds r3, #1 + 8015318: 2b00 cmp r3, #0 + 801531a: f300 8081 bgt.w 8015420 After we are done with adjusting the pbuf pointers we must adjust the ->data pointer in the seg and the segment length.*/ struct pbuf *p = inseg.p; - 801530e: 4b27 ldr r3, [pc, #156] ; (80153ac ) - 8015310: 685b ldr r3, [r3, #4] - 8015312: 647b str r3, [r7, #68] ; 0x44 + 801531e: 4b27 ldr r3, [pc, #156] ; (80153bc ) + 8015320: 685b ldr r3, [r3, #4] + 8015322: 647b str r3, [r7, #68] ; 0x44 u32_t off32 = pcb->rcv_nxt - seqno; - 8015314: 687b ldr r3, [r7, #4] - 8015316: 6a5a ldr r2, [r3, #36] ; 0x24 - 8015318: 4b23 ldr r3, [pc, #140] ; (80153a8 ) - 801531a: 681b ldr r3, [r3, #0] - 801531c: 1ad3 subs r3, r2, r3 - 801531e: 627b str r3, [r7, #36] ; 0x24 + 8015324: 687b ldr r3, [r7, #4] + 8015326: 6a5a ldr r2, [r3, #36] ; 0x24 + 8015328: 4b23 ldr r3, [pc, #140] ; (80153b8 ) + 801532a: 681b ldr r3, [r3, #0] + 801532c: 1ad3 subs r3, r2, r3 + 801532e: 627b str r3, [r7, #36] ; 0x24 u16_t new_tot_len, off; LWIP_ASSERT("inseg.p != NULL", inseg.p); - 8015320: 4b22 ldr r3, [pc, #136] ; (80153ac ) - 8015322: 685b ldr r3, [r3, #4] - 8015324: 2b00 cmp r3, #0 - 8015326: d106 bne.n 8015336 - 8015328: 4b21 ldr r3, [pc, #132] ; (80153b0 ) - 801532a: f240 5294 movw r2, #1428 ; 0x594 - 801532e: 4921 ldr r1, [pc, #132] ; (80153b4 ) - 8015330: 4821 ldr r0, [pc, #132] ; (80153b8 ) - 8015332: f007 f989 bl 801c648 + 8015330: 4b22 ldr r3, [pc, #136] ; (80153bc ) + 8015332: 685b ldr r3, [r3, #4] + 8015334: 2b00 cmp r3, #0 + 8015336: d106 bne.n 8015346 + 8015338: 4b21 ldr r3, [pc, #132] ; (80153c0 ) + 801533a: f240 5294 movw r2, #1428 ; 0x594 + 801533e: 4921 ldr r1, [pc, #132] ; (80153c4 ) + 8015340: 4821 ldr r0, [pc, #132] ; (80153c8 ) + 8015342: f007 f989 bl 801c658 LWIP_ASSERT("insane offset!", (off32 < 0xffff)); - 8015336: 6a7b ldr r3, [r7, #36] ; 0x24 - 8015338: f64f 72fe movw r2, #65534 ; 0xfffe - 801533c: 4293 cmp r3, r2 - 801533e: d906 bls.n 801534e - 8015340: 4b1b ldr r3, [pc, #108] ; (80153b0 ) - 8015342: f240 5295 movw r2, #1429 ; 0x595 - 8015346: 491d ldr r1, [pc, #116] ; (80153bc ) - 8015348: 481b ldr r0, [pc, #108] ; (80153b8 ) - 801534a: f007 f97d bl 801c648 + 8015346: 6a7b ldr r3, [r7, #36] ; 0x24 + 8015348: f64f 72fe movw r2, #65534 ; 0xfffe + 801534c: 4293 cmp r3, r2 + 801534e: d906 bls.n 801535e + 8015350: 4b1b ldr r3, [pc, #108] ; (80153c0 ) + 8015352: f240 5295 movw r2, #1429 ; 0x595 + 8015356: 491d ldr r1, [pc, #116] ; (80153cc ) + 8015358: 481b ldr r0, [pc, #108] ; (80153c8 ) + 801535a: f007 f97d bl 801c658 off = (u16_t)off32; - 801534e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8015350: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 + 801535e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8015360: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 LWIP_ASSERT("pbuf too short!", (((s32_t)inseg.p->tot_len) >= off)); - 8015354: 4b15 ldr r3, [pc, #84] ; (80153ac ) - 8015356: 685b ldr r3, [r3, #4] - 8015358: 891b ldrh r3, [r3, #8] - 801535a: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 801535e: 429a cmp r2, r3 - 8015360: d906 bls.n 8015370 - 8015362: 4b13 ldr r3, [pc, #76] ; (80153b0 ) - 8015364: f240 5297 movw r2, #1431 ; 0x597 - 8015368: 4915 ldr r1, [pc, #84] ; (80153c0 ) - 801536a: 4813 ldr r0, [pc, #76] ; (80153b8 ) - 801536c: f007 f96c bl 801c648 + 8015364: 4b15 ldr r3, [pc, #84] ; (80153bc ) + 8015366: 685b ldr r3, [r3, #4] + 8015368: 891b ldrh r3, [r3, #8] + 801536a: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 801536e: 429a cmp r2, r3 + 8015370: d906 bls.n 8015380 + 8015372: 4b13 ldr r3, [pc, #76] ; (80153c0 ) + 8015374: f240 5297 movw r2, #1431 ; 0x597 + 8015378: 4915 ldr r1, [pc, #84] ; (80153d0 ) + 801537a: 4813 ldr r0, [pc, #76] ; (80153c8 ) + 801537c: f007 f96c bl 801c658 inseg.len -= off; - 8015370: 4b0e ldr r3, [pc, #56] ; (80153ac ) - 8015372: 891a ldrh r2, [r3, #8] - 8015374: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 8015378: 1ad3 subs r3, r2, r3 - 801537a: b29a uxth r2, r3 - 801537c: 4b0b ldr r3, [pc, #44] ; (80153ac ) - 801537e: 811a strh r2, [r3, #8] + 8015380: 4b0e ldr r3, [pc, #56] ; (80153bc ) + 8015382: 891a ldrh r2, [r3, #8] + 8015384: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 8015388: 1ad3 subs r3, r2, r3 + 801538a: b29a uxth r2, r3 + 801538c: 4b0b ldr r3, [pc, #44] ; (80153bc ) + 801538e: 811a strh r2, [r3, #8] new_tot_len = (u16_t)(inseg.p->tot_len - off); - 8015380: 4b0a ldr r3, [pc, #40] ; (80153ac ) - 8015382: 685b ldr r3, [r3, #4] - 8015384: 891a ldrh r2, [r3, #8] - 8015386: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 801538a: 1ad3 subs r3, r2, r3 - 801538c: 847b strh r3, [r7, #34] ; 0x22 + 8015390: 4b0a ldr r3, [pc, #40] ; (80153bc ) + 8015392: 685b ldr r3, [r3, #4] + 8015394: 891a ldrh r2, [r3, #8] + 8015396: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 801539a: 1ad3 subs r3, r2, r3 + 801539c: 847b strh r3, [r7, #34] ; 0x22 while (p->len < off) { - 801538e: e029 b.n 80153e4 - 8015390: 0801efa8 .word 0x0801efa8 - 8015394: 0801efb0 .word 0x0801efb0 - 8015398: 20008748 .word 0x20008748 - 801539c: 20008744 .word 0x20008744 - 80153a0: 2000f7f4 .word 0x2000f7f4 - 80153a4: 2000874a .word 0x2000874a - 80153a8: 20008740 .word 0x20008740 - 80153ac: 20008720 .word 0x20008720 - 80153b0: 0801ec40 .word 0x0801ec40 - 80153b4: 0801efb8 .word 0x0801efb8 - 80153b8: 0801ec8c .word 0x0801ec8c - 80153bc: 0801efc8 .word 0x0801efc8 - 80153c0: 0801efd8 .word 0x0801efd8 + 801539e: e029 b.n 80153f4 + 80153a0: 0801efb8 .word 0x0801efb8 + 80153a4: 0801efc0 .word 0x0801efc0 + 80153a8: 20008748 .word 0x20008748 + 80153ac: 20008744 .word 0x20008744 + 80153b0: 2000f7f4 .word 0x2000f7f4 + 80153b4: 2000874a .word 0x2000874a + 80153b8: 20008740 .word 0x20008740 + 80153bc: 20008720 .word 0x20008720 + 80153c0: 0801ec50 .word 0x0801ec50 + 80153c4: 0801efc8 .word 0x0801efc8 + 80153c8: 0801ec9c .word 0x0801ec9c + 80153cc: 0801efd8 .word 0x0801efd8 + 80153d0: 0801efe8 .word 0x0801efe8 off -= p->len; - 80153c4: 6c7b ldr r3, [r7, #68] ; 0x44 - 80153c6: 895b ldrh r3, [r3, #10] - 80153c8: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 80153cc: 1ad3 subs r3, r2, r3 - 80153ce: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 + 80153d4: 6c7b ldr r3, [r7, #68] ; 0x44 + 80153d6: 895b ldrh r3, [r3, #10] + 80153d8: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 80153dc: 1ad3 subs r3, r2, r3 + 80153de: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 /* all pbufs up to and including this one have len==0, so tot_len is equal */ p->tot_len = new_tot_len; - 80153d2: 6c7b ldr r3, [r7, #68] ; 0x44 - 80153d4: 8c7a ldrh r2, [r7, #34] ; 0x22 - 80153d6: 811a strh r2, [r3, #8] + 80153e2: 6c7b ldr r3, [r7, #68] ; 0x44 + 80153e4: 8c7a ldrh r2, [r7, #34] ; 0x22 + 80153e6: 811a strh r2, [r3, #8] p->len = 0; - 80153d8: 6c7b ldr r3, [r7, #68] ; 0x44 - 80153da: 2200 movs r2, #0 - 80153dc: 815a strh r2, [r3, #10] + 80153e8: 6c7b ldr r3, [r7, #68] ; 0x44 + 80153ea: 2200 movs r2, #0 + 80153ec: 815a strh r2, [r3, #10] p = p->next; - 80153de: 6c7b ldr r3, [r7, #68] ; 0x44 - 80153e0: 681b ldr r3, [r3, #0] - 80153e2: 647b str r3, [r7, #68] ; 0x44 + 80153ee: 6c7b ldr r3, [r7, #68] ; 0x44 + 80153f0: 681b ldr r3, [r3, #0] + 80153f2: 647b str r3, [r7, #68] ; 0x44 while (p->len < off) { - 80153e4: 6c7b ldr r3, [r7, #68] ; 0x44 - 80153e6: 895b ldrh r3, [r3, #10] - 80153e8: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 80153ec: 429a cmp r2, r3 - 80153ee: d8e9 bhi.n 80153c4 + 80153f4: 6c7b ldr r3, [r7, #68] ; 0x44 + 80153f6: 895b ldrh r3, [r3, #10] + 80153f8: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 80153fc: 429a cmp r2, r3 + 80153fe: d8e9 bhi.n 80153d4 } /* cannot fail... */ pbuf_remove_header(p, off); - 80153f0: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 80153f4: 4619 mov r1, r3 - 80153f6: 6c78 ldr r0, [r7, #68] ; 0x44 - 80153f8: f7fc fb70 bl 8011adc + 8015400: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 8015404: 4619 mov r1, r3 + 8015406: 6c78 ldr r0, [r7, #68] ; 0x44 + 8015408: f7fc fb70 bl 8011aec inseg.tcphdr->seqno = seqno = pcb->rcv_nxt; - 80153fc: 687b ldr r3, [r7, #4] - 80153fe: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015400: 4a91 ldr r2, [pc, #580] ; (8015648 ) - 8015402: 6013 str r3, [r2, #0] - 8015404: 4b91 ldr r3, [pc, #580] ; (801564c ) - 8015406: 68db ldr r3, [r3, #12] - 8015408: 4a8f ldr r2, [pc, #572] ; (8015648 ) - 801540a: 6812 ldr r2, [r2, #0] - 801540c: 605a str r2, [r3, #4] + 801540c: 687b ldr r3, [r7, #4] + 801540e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015410: 4a91 ldr r2, [pc, #580] ; (8015658 ) + 8015412: 6013 str r3, [r2, #0] + 8015414: 4b91 ldr r3, [pc, #580] ; (801565c ) + 8015416: 68db ldr r3, [r3, #12] + 8015418: 4a8f ldr r2, [pc, #572] ; (8015658 ) + 801541a: 6812 ldr r2, [r2, #0] + 801541c: 605a str r2, [r3, #4] if (TCP_SEQ_BETWEEN(pcb->rcv_nxt, seqno + 1, seqno + tcplen - 1)) { - 801540e: e00d b.n 801542c + 801541e: e00d b.n 801543c } else { if (TCP_SEQ_LT(seqno, pcb->rcv_nxt)) { - 8015410: 4b8d ldr r3, [pc, #564] ; (8015648 ) - 8015412: 681a ldr r2, [r3, #0] - 8015414: 687b ldr r3, [r7, #4] - 8015416: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015418: 1ad3 subs r3, r2, r3 - 801541a: 2b00 cmp r3, #0 - 801541c: da06 bge.n 801542c + 8015420: 4b8d ldr r3, [pc, #564] ; (8015658 ) + 8015422: 681a ldr r2, [r3, #0] + 8015424: 687b ldr r3, [r7, #4] + 8015426: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015428: 1ad3 subs r3, r2, r3 + 801542a: 2b00 cmp r3, #0 + 801542c: da06 bge.n 801543c /* the whole segment is < rcv_nxt */ /* must be a duplicate of a packet that has already been correctly handled */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: duplicate seqno %"U32_F"\n", seqno)); tcp_ack_now(pcb); - 801541e: 687b ldr r3, [r7, #4] - 8015420: 8b5b ldrh r3, [r3, #26] - 8015422: f043 0302 orr.w r3, r3, #2 - 8015426: b29a uxth r2, r3 - 8015428: 687b ldr r3, [r7, #4] - 801542a: 835a strh r2, [r3, #26] + 801542e: 687b ldr r3, [r7, #4] + 8015430: 8b5b ldrh r3, [r3, #26] + 8015432: f043 0302 orr.w r3, r3, #2 + 8015436: b29a uxth r2, r3 + 8015438: 687b ldr r3, [r7, #4] + 801543a: 835a strh r2, [r3, #26] } /* The sequence number must be within the window (above rcv_nxt and below rcv_nxt + rcv_wnd) in order to be further processed. */ if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 801542c: 4b86 ldr r3, [pc, #536] ; (8015648 ) - 801542e: 681a ldr r2, [r3, #0] - 8015430: 687b ldr r3, [r7, #4] - 8015432: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015434: 1ad3 subs r3, r2, r3 - 8015436: 2b00 cmp r3, #0 - 8015438: f2c0 842a blt.w 8015c90 - 801543c: 4b82 ldr r3, [pc, #520] ; (8015648 ) + 801543c: 4b86 ldr r3, [pc, #536] ; (8015658 ) 801543e: 681a ldr r2, [r3, #0] 8015440: 687b ldr r3, [r7, #4] 8015442: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015444: 6879 ldr r1, [r7, #4] - 8015446: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8015448: 440b add r3, r1 - 801544a: 1ad3 subs r3, r2, r3 - 801544c: 3301 adds r3, #1 - 801544e: 2b00 cmp r3, #0 - 8015450: f300 841e bgt.w 8015c90 + 8015444: 1ad3 subs r3, r2, r3 + 8015446: 2b00 cmp r3, #0 + 8015448: f2c0 842a blt.w 8015ca0 + 801544c: 4b82 ldr r3, [pc, #520] ; (8015658 ) + 801544e: 681a ldr r2, [r3, #0] + 8015450: 687b ldr r3, [r7, #4] + 8015452: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015454: 6879 ldr r1, [r7, #4] + 8015456: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8015458: 440b add r3, r1 + 801545a: 1ad3 subs r3, r2, r3 + 801545c: 3301 adds r3, #1 + 801545e: 2b00 cmp r3, #0 + 8015460: f300 841e bgt.w 8015ca0 pcb->rcv_nxt + pcb->rcv_wnd - 1)) { if (pcb->rcv_nxt == seqno) { - 8015454: 687b ldr r3, [r7, #4] - 8015456: 6a5a ldr r2, [r3, #36] ; 0x24 - 8015458: 4b7b ldr r3, [pc, #492] ; (8015648 ) - 801545a: 681b ldr r3, [r3, #0] - 801545c: 429a cmp r2, r3 - 801545e: f040 829a bne.w 8015996 + 8015464: 687b ldr r3, [r7, #4] + 8015466: 6a5a ldr r2, [r3, #36] ; 0x24 + 8015468: 4b7b ldr r3, [pc, #492] ; (8015658 ) + 801546a: 681b ldr r3, [r3, #0] + 801546c: 429a cmp r2, r3 + 801546e: f040 829a bne.w 80159a6 /* The incoming segment is the next in sequence. We check if we have to trim the end of the segment and update rcv_nxt and pass the data to the application. */ tcplen = TCP_TCPLEN(&inseg); - 8015462: 4b7a ldr r3, [pc, #488] ; (801564c ) - 8015464: 891c ldrh r4, [r3, #8] - 8015466: 4b79 ldr r3, [pc, #484] ; (801564c ) - 8015468: 68db ldr r3, [r3, #12] - 801546a: 899b ldrh r3, [r3, #12] - 801546c: b29b uxth r3, r3 - 801546e: 4618 mov r0, r3 - 8015470: f7fb f806 bl 8010480 - 8015474: 4603 mov r3, r0 - 8015476: b2db uxtb r3, r3 - 8015478: f003 0303 and.w r3, r3, #3 - 801547c: 2b00 cmp r3, #0 - 801547e: d001 beq.n 8015484 - 8015480: 2301 movs r3, #1 - 8015482: e000 b.n 8015486 - 8015484: 2300 movs r3, #0 - 8015486: 4423 add r3, r4 - 8015488: b29a uxth r2, r3 - 801548a: 4b71 ldr r3, [pc, #452] ; (8015650 ) - 801548c: 801a strh r2, [r3, #0] + 8015472: 4b7a ldr r3, [pc, #488] ; (801565c ) + 8015474: 891c ldrh r4, [r3, #8] + 8015476: 4b79 ldr r3, [pc, #484] ; (801565c ) + 8015478: 68db ldr r3, [r3, #12] + 801547a: 899b ldrh r3, [r3, #12] + 801547c: b29b uxth r3, r3 + 801547e: 4618 mov r0, r3 + 8015480: f7fb f806 bl 8010490 + 8015484: 4603 mov r3, r0 + 8015486: b2db uxtb r3, r3 + 8015488: f003 0303 and.w r3, r3, #3 + 801548c: 2b00 cmp r3, #0 + 801548e: d001 beq.n 8015494 + 8015490: 2301 movs r3, #1 + 8015492: e000 b.n 8015496 + 8015494: 2300 movs r3, #0 + 8015496: 4423 add r3, r4 + 8015498: b29a uxth r2, r3 + 801549a: 4b71 ldr r3, [pc, #452] ; (8015660 ) + 801549c: 801a strh r2, [r3, #0] if (tcplen > pcb->rcv_wnd) { - 801548e: 687b ldr r3, [r7, #4] - 8015490: 8d1a ldrh r2, [r3, #40] ; 0x28 - 8015492: 4b6f ldr r3, [pc, #444] ; (8015650 ) - 8015494: 881b ldrh r3, [r3, #0] - 8015496: 429a cmp r2, r3 - 8015498: d275 bcs.n 8015586 + 801549e: 687b ldr r3, [r7, #4] + 80154a0: 8d1a ldrh r2, [r3, #40] ; 0x28 + 80154a2: 4b6f ldr r3, [pc, #444] ; (8015660 ) + 80154a4: 881b ldrh r3, [r3, #0] + 80154a6: 429a cmp r2, r3 + 80154a8: d275 bcs.n 8015596 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: other end overran receive window" "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n", seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd)); if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 801549a: 4b6c ldr r3, [pc, #432] ; (801564c ) - 801549c: 68db ldr r3, [r3, #12] - 801549e: 899b ldrh r3, [r3, #12] - 80154a0: b29b uxth r3, r3 - 80154a2: 4618 mov r0, r3 - 80154a4: f7fa ffec bl 8010480 - 80154a8: 4603 mov r3, r0 - 80154aa: b2db uxtb r3, r3 - 80154ac: f003 0301 and.w r3, r3, #1 - 80154b0: 2b00 cmp r3, #0 - 80154b2: d01f beq.n 80154f4 + 80154aa: 4b6c ldr r3, [pc, #432] ; (801565c ) + 80154ac: 68db ldr r3, [r3, #12] + 80154ae: 899b ldrh r3, [r3, #12] + 80154b0: b29b uxth r3, r3 + 80154b2: 4618 mov r0, r3 + 80154b4: f7fa ffec bl 8010490 + 80154b8: 4603 mov r3, r0 + 80154ba: b2db uxtb r3, r3 + 80154bc: f003 0301 and.w r3, r3, #1 + 80154c0: 2b00 cmp r3, #0 + 80154c2: d01f beq.n 8015504 /* Must remove the FIN from the header as we're trimming * that byte of sequence-space from the packet */ TCPH_FLAGS_SET(inseg.tcphdr, TCPH_FLAGS(inseg.tcphdr) & ~(unsigned int)TCP_FIN); - 80154b4: 4b65 ldr r3, [pc, #404] ; (801564c ) - 80154b6: 68db ldr r3, [r3, #12] - 80154b8: 899b ldrh r3, [r3, #12] - 80154ba: b29b uxth r3, r3 - 80154bc: b21b sxth r3, r3 - 80154be: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 80154c2: b21c sxth r4, r3 - 80154c4: 4b61 ldr r3, [pc, #388] ; (801564c ) + 80154c4: 4b65 ldr r3, [pc, #404] ; (801565c ) 80154c6: 68db ldr r3, [r3, #12] 80154c8: 899b ldrh r3, [r3, #12] 80154ca: b29b uxth r3, r3 - 80154cc: 4618 mov r0, r3 - 80154ce: f7fa ffd7 bl 8010480 - 80154d2: 4603 mov r3, r0 - 80154d4: b2db uxtb r3, r3 - 80154d6: b29b uxth r3, r3 - 80154d8: f003 033e and.w r3, r3, #62 ; 0x3e - 80154dc: b29b uxth r3, r3 - 80154de: 4618 mov r0, r3 - 80154e0: f7fa ffce bl 8010480 - 80154e4: 4603 mov r3, r0 - 80154e6: b21b sxth r3, r3 - 80154e8: 4323 orrs r3, r4 - 80154ea: b21a sxth r2, r3 - 80154ec: 4b57 ldr r3, [pc, #348] ; (801564c ) - 80154ee: 68db ldr r3, [r3, #12] - 80154f0: b292 uxth r2, r2 - 80154f2: 819a strh r2, [r3, #12] + 80154cc: b21b sxth r3, r3 + 80154ce: f423 537c bic.w r3, r3, #16128 ; 0x3f00 + 80154d2: b21c sxth r4, r3 + 80154d4: 4b61 ldr r3, [pc, #388] ; (801565c ) + 80154d6: 68db ldr r3, [r3, #12] + 80154d8: 899b ldrh r3, [r3, #12] + 80154da: b29b uxth r3, r3 + 80154dc: 4618 mov r0, r3 + 80154de: f7fa ffd7 bl 8010490 + 80154e2: 4603 mov r3, r0 + 80154e4: b2db uxtb r3, r3 + 80154e6: b29b uxth r3, r3 + 80154e8: f003 033e and.w r3, r3, #62 ; 0x3e + 80154ec: b29b uxth r3, r3 + 80154ee: 4618 mov r0, r3 + 80154f0: f7fa ffce bl 8010490 + 80154f4: 4603 mov r3, r0 + 80154f6: b21b sxth r3, r3 + 80154f8: 4323 orrs r3, r4 + 80154fa: b21a sxth r2, r3 + 80154fc: 4b57 ldr r3, [pc, #348] ; (801565c ) + 80154fe: 68db ldr r3, [r3, #12] + 8015500: b292 uxth r2, r2 + 8015502: 819a strh r2, [r3, #12] } /* Adjust length of segment to fit in the window. */ TCPWND_CHECK16(pcb->rcv_wnd); inseg.len = (u16_t)pcb->rcv_wnd; - 80154f4: 687b ldr r3, [r7, #4] - 80154f6: 8d1a ldrh r2, [r3, #40] ; 0x28 - 80154f8: 4b54 ldr r3, [pc, #336] ; (801564c ) - 80154fa: 811a strh r2, [r3, #8] + 8015504: 687b ldr r3, [r7, #4] + 8015506: 8d1a ldrh r2, [r3, #40] ; 0x28 + 8015508: 4b54 ldr r3, [pc, #336] ; (801565c ) + 801550a: 811a strh r2, [r3, #8] if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { - 80154fc: 4b53 ldr r3, [pc, #332] ; (801564c ) - 80154fe: 68db ldr r3, [r3, #12] - 8015500: 899b ldrh r3, [r3, #12] - 8015502: b29b uxth r3, r3 - 8015504: 4618 mov r0, r3 - 8015506: f7fa ffbb bl 8010480 - 801550a: 4603 mov r3, r0 - 801550c: b2db uxtb r3, r3 - 801550e: f003 0302 and.w r3, r3, #2 - 8015512: 2b00 cmp r3, #0 - 8015514: d005 beq.n 8015522 + 801550c: 4b53 ldr r3, [pc, #332] ; (801565c ) + 801550e: 68db ldr r3, [r3, #12] + 8015510: 899b ldrh r3, [r3, #12] + 8015512: b29b uxth r3, r3 + 8015514: 4618 mov r0, r3 + 8015516: f7fa ffbb bl 8010490 + 801551a: 4603 mov r3, r0 + 801551c: b2db uxtb r3, r3 + 801551e: f003 0302 and.w r3, r3, #2 + 8015522: 2b00 cmp r3, #0 + 8015524: d005 beq.n 8015532 inseg.len -= 1; - 8015516: 4b4d ldr r3, [pc, #308] ; (801564c ) - 8015518: 891b ldrh r3, [r3, #8] - 801551a: 3b01 subs r3, #1 - 801551c: b29a uxth r2, r3 - 801551e: 4b4b ldr r3, [pc, #300] ; (801564c ) - 8015520: 811a strh r2, [r3, #8] + 8015526: 4b4d ldr r3, [pc, #308] ; (801565c ) + 8015528: 891b ldrh r3, [r3, #8] + 801552a: 3b01 subs r3, #1 + 801552c: b29a uxth r2, r3 + 801552e: 4b4b ldr r3, [pc, #300] ; (801565c ) + 8015530: 811a strh r2, [r3, #8] } pbuf_realloc(inseg.p, inseg.len); - 8015522: 4b4a ldr r3, [pc, #296] ; (801564c ) - 8015524: 685a ldr r2, [r3, #4] - 8015526: 4b49 ldr r3, [pc, #292] ; (801564c ) - 8015528: 891b ldrh r3, [r3, #8] - 801552a: 4619 mov r1, r3 - 801552c: 4610 mov r0, r2 - 801552e: f7fc f9d5 bl 80118dc + 8015532: 4b4a ldr r3, [pc, #296] ; (801565c ) + 8015534: 685a ldr r2, [r3, #4] + 8015536: 4b49 ldr r3, [pc, #292] ; (801565c ) + 8015538: 891b ldrh r3, [r3, #8] + 801553a: 4619 mov r1, r3 + 801553c: 4610 mov r0, r2 + 801553e: f7fc f9d5 bl 80118ec tcplen = TCP_TCPLEN(&inseg); - 8015532: 4b46 ldr r3, [pc, #280] ; (801564c ) - 8015534: 891c ldrh r4, [r3, #8] - 8015536: 4b45 ldr r3, [pc, #276] ; (801564c ) - 8015538: 68db ldr r3, [r3, #12] - 801553a: 899b ldrh r3, [r3, #12] - 801553c: b29b uxth r3, r3 - 801553e: 4618 mov r0, r3 - 8015540: f7fa ff9e bl 8010480 - 8015544: 4603 mov r3, r0 - 8015546: b2db uxtb r3, r3 - 8015548: f003 0303 and.w r3, r3, #3 - 801554c: 2b00 cmp r3, #0 - 801554e: d001 beq.n 8015554 - 8015550: 2301 movs r3, #1 - 8015552: e000 b.n 8015556 - 8015554: 2300 movs r3, #0 - 8015556: 4423 add r3, r4 - 8015558: b29a uxth r2, r3 - 801555a: 4b3d ldr r3, [pc, #244] ; (8015650 ) - 801555c: 801a strh r2, [r3, #0] + 8015542: 4b46 ldr r3, [pc, #280] ; (801565c ) + 8015544: 891c ldrh r4, [r3, #8] + 8015546: 4b45 ldr r3, [pc, #276] ; (801565c ) + 8015548: 68db ldr r3, [r3, #12] + 801554a: 899b ldrh r3, [r3, #12] + 801554c: b29b uxth r3, r3 + 801554e: 4618 mov r0, r3 + 8015550: f7fa ff9e bl 8010490 + 8015554: 4603 mov r3, r0 + 8015556: b2db uxtb r3, r3 + 8015558: f003 0303 and.w r3, r3, #3 + 801555c: 2b00 cmp r3, #0 + 801555e: d001 beq.n 8015564 + 8015560: 2301 movs r3, #1 + 8015562: e000 b.n 8015566 + 8015564: 2300 movs r3, #0 + 8015566: 4423 add r3, r4 + 8015568: b29a uxth r2, r3 + 801556a: 4b3d ldr r3, [pc, #244] ; (8015660 ) + 801556c: 801a strh r2, [r3, #0] LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n", - 801555e: 4b3c ldr r3, [pc, #240] ; (8015650 ) - 8015560: 881b ldrh r3, [r3, #0] - 8015562: 461a mov r2, r3 - 8015564: 4b38 ldr r3, [pc, #224] ; (8015648 ) - 8015566: 681b ldr r3, [r3, #0] - 8015568: 441a add r2, r3 - 801556a: 687b ldr r3, [r7, #4] - 801556c: 6a5b ldr r3, [r3, #36] ; 0x24 - 801556e: 6879 ldr r1, [r7, #4] - 8015570: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8015572: 440b add r3, r1 - 8015574: 429a cmp r2, r3 - 8015576: d006 beq.n 8015586 - 8015578: 4b36 ldr r3, [pc, #216] ; (8015654 ) - 801557a: f240 52cc movw r2, #1484 ; 0x5cc - 801557e: 4936 ldr r1, [pc, #216] ; (8015658 ) - 8015580: 4836 ldr r0, [pc, #216] ; (801565c ) - 8015582: f007 f861 bl 801c648 + 801556e: 4b3c ldr r3, [pc, #240] ; (8015660 ) + 8015570: 881b ldrh r3, [r3, #0] + 8015572: 461a mov r2, r3 + 8015574: 4b38 ldr r3, [pc, #224] ; (8015658 ) + 8015576: 681b ldr r3, [r3, #0] + 8015578: 441a add r2, r3 + 801557a: 687b ldr r3, [r7, #4] + 801557c: 6a5b ldr r3, [r3, #36] ; 0x24 + 801557e: 6879 ldr r1, [r7, #4] + 8015580: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8015582: 440b add r3, r1 + 8015584: 429a cmp r2, r3 + 8015586: d006 beq.n 8015596 + 8015588: 4b36 ldr r3, [pc, #216] ; (8015664 ) + 801558a: f240 52cc movw r2, #1484 ; 0x5cc + 801558e: 4936 ldr r1, [pc, #216] ; (8015668 ) + 8015590: 4836 ldr r0, [pc, #216] ; (801566c ) + 8015592: f007 f861 bl 801c658 } #if TCP_QUEUE_OOSEQ /* Received in-sequence data, adjust ooseq data if: - FIN has been received or - inseq overlaps with ooseq */ if (pcb->ooseq != NULL) { - 8015586: 687b ldr r3, [r7, #4] - 8015588: 6f5b ldr r3, [r3, #116] ; 0x74 - 801558a: 2b00 cmp r3, #0 - 801558c: f000 80e7 beq.w 801575e + 8015596: 687b ldr r3, [r7, #4] + 8015598: 6f5b ldr r3, [r3, #116] ; 0x74 + 801559a: 2b00 cmp r3, #0 + 801559c: f000 80e7 beq.w 801576e if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 8015590: 4b2e ldr r3, [pc, #184] ; (801564c ) - 8015592: 68db ldr r3, [r3, #12] - 8015594: 899b ldrh r3, [r3, #12] - 8015596: b29b uxth r3, r3 - 8015598: 4618 mov r0, r3 - 801559a: f7fa ff71 bl 8010480 - 801559e: 4603 mov r3, r0 - 80155a0: b2db uxtb r3, r3 - 80155a2: f003 0301 and.w r3, r3, #1 - 80155a6: 2b00 cmp r3, #0 - 80155a8: d010 beq.n 80155cc + 80155a0: 4b2e ldr r3, [pc, #184] ; (801565c ) + 80155a2: 68db ldr r3, [r3, #12] + 80155a4: 899b ldrh r3, [r3, #12] + 80155a6: b29b uxth r3, r3 + 80155a8: 4618 mov r0, r3 + 80155aa: f7fa ff71 bl 8010490 + 80155ae: 4603 mov r3, r0 + 80155b0: b2db uxtb r3, r3 + 80155b2: f003 0301 and.w r3, r3, #1 + 80155b6: 2b00 cmp r3, #0 + 80155b8: d010 beq.n 80155dc LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received in-order FIN, binning ooseq queue\n")); /* Received in-order FIN means anything that was received * out of order must now have been received in-order, so * bin the ooseq queue */ while (pcb->ooseq != NULL) { - 80155aa: e00a b.n 80155c2 + 80155ba: e00a b.n 80155d2 struct tcp_seg *old_ooseq = pcb->ooseq; - 80155ac: 687b ldr r3, [r7, #4] - 80155ae: 6f5b ldr r3, [r3, #116] ; 0x74 - 80155b0: 60fb str r3, [r7, #12] + 80155bc: 687b ldr r3, [r7, #4] + 80155be: 6f5b ldr r3, [r3, #116] ; 0x74 + 80155c0: 60fb str r3, [r7, #12] pcb->ooseq = pcb->ooseq->next; - 80155b2: 687b ldr r3, [r7, #4] - 80155b4: 6f5b ldr r3, [r3, #116] ; 0x74 - 80155b6: 681a ldr r2, [r3, #0] - 80155b8: 687b ldr r3, [r7, #4] - 80155ba: 675a str r2, [r3, #116] ; 0x74 - tcp_seg_free(old_ooseq); - 80155bc: 68f8 ldr r0, [r7, #12] - 80155be: f7fd fd97 bl 80130f0 - while (pcb->ooseq != NULL) { 80155c2: 687b ldr r3, [r7, #4] 80155c4: 6f5b ldr r3, [r3, #116] ; 0x74 - 80155c6: 2b00 cmp r3, #0 - 80155c8: d1f0 bne.n 80155ac - 80155ca: e0c8 b.n 801575e + 80155c6: 681a ldr r2, [r3, #0] + 80155c8: 687b ldr r3, [r7, #4] + 80155ca: 675a str r2, [r3, #116] ; 0x74 + tcp_seg_free(old_ooseq); + 80155cc: 68f8 ldr r0, [r7, #12] + 80155ce: f7fd fd97 bl 8013100 + while (pcb->ooseq != NULL) { + 80155d2: 687b ldr r3, [r7, #4] + 80155d4: 6f5b ldr r3, [r3, #116] ; 0x74 + 80155d6: 2b00 cmp r3, #0 + 80155d8: d1f0 bne.n 80155bc + 80155da: e0c8 b.n 801576e } } else { struct tcp_seg *next = pcb->ooseq; - 80155cc: 687b ldr r3, [r7, #4] - 80155ce: 6f5b ldr r3, [r3, #116] ; 0x74 - 80155d0: 63fb str r3, [r7, #60] ; 0x3c + 80155dc: 687b ldr r3, [r7, #4] + 80155de: 6f5b ldr r3, [r3, #116] ; 0x74 + 80155e0: 63fb str r3, [r7, #60] ; 0x3c /* Remove all segments on ooseq that are covered by inseg already. * FIN is copied from ooseq to inseg if present. */ while (next && - 80155d2: e052 b.n 801567a + 80155e2: e052 b.n 801568a TCP_SEQ_GEQ(seqno + tcplen, next->tcphdr->seqno + next->len)) { struct tcp_seg *tmp; /* inseg cannot have FIN here (already processed above) */ if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 && - 80155d4: 6bfb ldr r3, [r7, #60] ; 0x3c - 80155d6: 68db ldr r3, [r3, #12] - 80155d8: 899b ldrh r3, [r3, #12] - 80155da: b29b uxth r3, r3 - 80155dc: 4618 mov r0, r3 - 80155de: f7fa ff4f bl 8010480 - 80155e2: 4603 mov r3, r0 - 80155e4: b2db uxtb r3, r3 - 80155e6: f003 0301 and.w r3, r3, #1 - 80155ea: 2b00 cmp r3, #0 - 80155ec: d03d beq.n 801566a + 80155e4: 6bfb ldr r3, [r7, #60] ; 0x3c + 80155e6: 68db ldr r3, [r3, #12] + 80155e8: 899b ldrh r3, [r3, #12] + 80155ea: b29b uxth r3, r3 + 80155ec: 4618 mov r0, r3 + 80155ee: f7fa ff4f bl 8010490 + 80155f2: 4603 mov r3, r0 + 80155f4: b2db uxtb r3, r3 + 80155f6: f003 0301 and.w r3, r3, #1 + 80155fa: 2b00 cmp r3, #0 + 80155fc: d03d beq.n 801567a (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) == 0) { - 80155ee: 4b17 ldr r3, [pc, #92] ; (801564c ) - 80155f0: 68db ldr r3, [r3, #12] - 80155f2: 899b ldrh r3, [r3, #12] - 80155f4: b29b uxth r3, r3 - 80155f6: 4618 mov r0, r3 - 80155f8: f7fa ff42 bl 8010480 - 80155fc: 4603 mov r3, r0 - 80155fe: b2db uxtb r3, r3 - 8015600: f003 0302 and.w r3, r3, #2 + 80155fe: 4b17 ldr r3, [pc, #92] ; (801565c ) + 8015600: 68db ldr r3, [r3, #12] + 8015602: 899b ldrh r3, [r3, #12] + 8015604: b29b uxth r3, r3 + 8015606: 4618 mov r0, r3 + 8015608: f7fa ff42 bl 8010490 + 801560c: 4603 mov r3, r0 + 801560e: b2db uxtb r3, r3 + 8015610: f003 0302 and.w r3, r3, #2 if ((TCPH_FLAGS(next->tcphdr) & TCP_FIN) != 0 && - 8015604: 2b00 cmp r3, #0 - 8015606: d130 bne.n 801566a + 8015614: 2b00 cmp r3, #0 + 8015616: d130 bne.n 801567a TCPH_SET_FLAG(inseg.tcphdr, TCP_FIN); - 8015608: 4b10 ldr r3, [pc, #64] ; (801564c ) - 801560a: 68db ldr r3, [r3, #12] - 801560c: 899b ldrh r3, [r3, #12] - 801560e: b29c uxth r4, r3 - 8015610: 2001 movs r0, #1 - 8015612: f7fa ff35 bl 8010480 - 8015616: 4603 mov r3, r0 - 8015618: 461a mov r2, r3 - 801561a: 4b0c ldr r3, [pc, #48] ; (801564c ) - 801561c: 68db ldr r3, [r3, #12] - 801561e: 4322 orrs r2, r4 - 8015620: b292 uxth r2, r2 - 8015622: 819a strh r2, [r3, #12] + 8015618: 4b10 ldr r3, [pc, #64] ; (801565c ) + 801561a: 68db ldr r3, [r3, #12] + 801561c: 899b ldrh r3, [r3, #12] + 801561e: b29c uxth r4, r3 + 8015620: 2001 movs r0, #1 + 8015622: f7fa ff35 bl 8010490 + 8015626: 4603 mov r3, r0 + 8015628: 461a mov r2, r3 + 801562a: 4b0c ldr r3, [pc, #48] ; (801565c ) + 801562c: 68db ldr r3, [r3, #12] + 801562e: 4322 orrs r2, r4 + 8015630: b292 uxth r2, r2 + 8015632: 819a strh r2, [r3, #12] tcplen = TCP_TCPLEN(&inseg); - 8015624: 4b09 ldr r3, [pc, #36] ; (801564c ) - 8015626: 891c ldrh r4, [r3, #8] - 8015628: 4b08 ldr r3, [pc, #32] ; (801564c ) - 801562a: 68db ldr r3, [r3, #12] - 801562c: 899b ldrh r3, [r3, #12] - 801562e: b29b uxth r3, r3 - 8015630: 4618 mov r0, r3 - 8015632: f7fa ff25 bl 8010480 - 8015636: 4603 mov r3, r0 - 8015638: b2db uxtb r3, r3 - 801563a: f003 0303 and.w r3, r3, #3 - 801563e: 2b00 cmp r3, #0 - 8015640: d00e beq.n 8015660 - 8015642: 2301 movs r3, #1 - 8015644: e00d b.n 8015662 - 8015646: bf00 nop - 8015648: 20008740 .word 0x20008740 - 801564c: 20008720 .word 0x20008720 - 8015650: 2000874a .word 0x2000874a - 8015654: 0801ec40 .word 0x0801ec40 - 8015658: 0801efe8 .word 0x0801efe8 - 801565c: 0801ec8c .word 0x0801ec8c - 8015660: 2300 movs r3, #0 - 8015662: 4423 add r3, r4 - 8015664: b29a uxth r2, r3 - 8015666: 4b98 ldr r3, [pc, #608] ; (80158c8 ) - 8015668: 801a strh r2, [r3, #0] + 8015634: 4b09 ldr r3, [pc, #36] ; (801565c ) + 8015636: 891c ldrh r4, [r3, #8] + 8015638: 4b08 ldr r3, [pc, #32] ; (801565c ) + 801563a: 68db ldr r3, [r3, #12] + 801563c: 899b ldrh r3, [r3, #12] + 801563e: b29b uxth r3, r3 + 8015640: 4618 mov r0, r3 + 8015642: f7fa ff25 bl 8010490 + 8015646: 4603 mov r3, r0 + 8015648: b2db uxtb r3, r3 + 801564a: f003 0303 and.w r3, r3, #3 + 801564e: 2b00 cmp r3, #0 + 8015650: d00e beq.n 8015670 + 8015652: 2301 movs r3, #1 + 8015654: e00d b.n 8015672 + 8015656: bf00 nop + 8015658: 20008740 .word 0x20008740 + 801565c: 20008720 .word 0x20008720 + 8015660: 2000874a .word 0x2000874a + 8015664: 0801ec50 .word 0x0801ec50 + 8015668: 0801eff8 .word 0x0801eff8 + 801566c: 0801ec9c .word 0x0801ec9c + 8015670: 2300 movs r3, #0 + 8015672: 4423 add r3, r4 + 8015674: b29a uxth r2, r3 + 8015676: 4b98 ldr r3, [pc, #608] ; (80158d8 ) + 8015678: 801a strh r2, [r3, #0] } tmp = next; - 801566a: 6bfb ldr r3, [r7, #60] ; 0x3c - 801566c: 613b str r3, [r7, #16] + 801567a: 6bfb ldr r3, [r7, #60] ; 0x3c + 801567c: 613b str r3, [r7, #16] next = next->next; - 801566e: 6bfb ldr r3, [r7, #60] ; 0x3c - 8015670: 681b ldr r3, [r3, #0] - 8015672: 63fb str r3, [r7, #60] ; 0x3c + 801567e: 6bfb ldr r3, [r7, #60] ; 0x3c + 8015680: 681b ldr r3, [r3, #0] + 8015682: 63fb str r3, [r7, #60] ; 0x3c tcp_seg_free(tmp); - 8015674: 6938 ldr r0, [r7, #16] - 8015676: f7fd fd3b bl 80130f0 + 8015684: 6938 ldr r0, [r7, #16] + 8015686: f7fd fd3b bl 8013100 while (next && - 801567a: 6bfb ldr r3, [r7, #60] ; 0x3c - 801567c: 2b00 cmp r3, #0 - 801567e: d00e beq.n 801569e + 801568a: 6bfb ldr r3, [r7, #60] ; 0x3c + 801568c: 2b00 cmp r3, #0 + 801568e: d00e beq.n 80156ae TCP_SEQ_GEQ(seqno + tcplen, - 8015680: 4b91 ldr r3, [pc, #580] ; (80158c8 ) - 8015682: 881b ldrh r3, [r3, #0] - 8015684: 461a mov r2, r3 - 8015686: 4b91 ldr r3, [pc, #580] ; (80158cc ) - 8015688: 681b ldr r3, [r3, #0] - 801568a: 441a add r2, r3 - 801568c: 6bfb ldr r3, [r7, #60] ; 0x3c - 801568e: 68db ldr r3, [r3, #12] - 8015690: 685b ldr r3, [r3, #4] - 8015692: 6bf9 ldr r1, [r7, #60] ; 0x3c - 8015694: 8909 ldrh r1, [r1, #8] - 8015696: 440b add r3, r1 - 8015698: 1ad3 subs r3, r2, r3 + 8015690: 4b91 ldr r3, [pc, #580] ; (80158d8 ) + 8015692: 881b ldrh r3, [r3, #0] + 8015694: 461a mov r2, r3 + 8015696: 4b91 ldr r3, [pc, #580] ; (80158dc ) + 8015698: 681b ldr r3, [r3, #0] + 801569a: 441a add r2, r3 + 801569c: 6bfb ldr r3, [r7, #60] ; 0x3c + 801569e: 68db ldr r3, [r3, #12] + 80156a0: 685b ldr r3, [r3, #4] + 80156a2: 6bf9 ldr r1, [r7, #60] ; 0x3c + 80156a4: 8909 ldrh r1, [r1, #8] + 80156a6: 440b add r3, r1 + 80156a8: 1ad3 subs r3, r2, r3 while (next && - 801569a: 2b00 cmp r3, #0 - 801569c: da9a bge.n 80155d4 + 80156aa: 2b00 cmp r3, #0 + 80156ac: da9a bge.n 80155e4 } /* Now trim right side of inseg if it overlaps with the first * segment on ooseq */ if (next && - 801569e: 6bfb ldr r3, [r7, #60] ; 0x3c - 80156a0: 2b00 cmp r3, #0 - 80156a2: d059 beq.n 8015758 + 80156ae: 6bfb ldr r3, [r7, #60] ; 0x3c + 80156b0: 2b00 cmp r3, #0 + 80156b2: d059 beq.n 8015768 TCP_SEQ_GT(seqno + tcplen, - 80156a4: 4b88 ldr r3, [pc, #544] ; (80158c8 ) - 80156a6: 881b ldrh r3, [r3, #0] - 80156a8: 461a mov r2, r3 - 80156aa: 4b88 ldr r3, [pc, #544] ; (80158cc ) - 80156ac: 681b ldr r3, [r3, #0] - 80156ae: 441a add r2, r3 - 80156b0: 6bfb ldr r3, [r7, #60] ; 0x3c - 80156b2: 68db ldr r3, [r3, #12] - 80156b4: 685b ldr r3, [r3, #4] - 80156b6: 1ad3 subs r3, r2, r3 + 80156b4: 4b88 ldr r3, [pc, #544] ; (80158d8 ) + 80156b6: 881b ldrh r3, [r3, #0] + 80156b8: 461a mov r2, r3 + 80156ba: 4b88 ldr r3, [pc, #544] ; (80158dc ) + 80156bc: 681b ldr r3, [r3, #0] + 80156be: 441a add r2, r3 + 80156c0: 6bfb ldr r3, [r7, #60] ; 0x3c + 80156c2: 68db ldr r3, [r3, #12] + 80156c4: 685b ldr r3, [r3, #4] + 80156c6: 1ad3 subs r3, r2, r3 if (next && - 80156b8: 2b00 cmp r3, #0 - 80156ba: dd4d ble.n 8015758 + 80156c8: 2b00 cmp r3, #0 + 80156ca: dd4d ble.n 8015768 next->tcphdr->seqno)) { /* inseg cannot have FIN here (already processed above) */ inseg.len = (u16_t)(next->tcphdr->seqno - seqno); - 80156bc: 6bfb ldr r3, [r7, #60] ; 0x3c - 80156be: 68db ldr r3, [r3, #12] - 80156c0: 685b ldr r3, [r3, #4] - 80156c2: b29a uxth r2, r3 - 80156c4: 4b81 ldr r3, [pc, #516] ; (80158cc ) - 80156c6: 681b ldr r3, [r3, #0] - 80156c8: b29b uxth r3, r3 - 80156ca: 1ad3 subs r3, r2, r3 - 80156cc: b29a uxth r2, r3 - 80156ce: 4b80 ldr r3, [pc, #512] ; (80158d0 ) - 80156d0: 811a strh r2, [r3, #8] - if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { - 80156d2: 4b7f ldr r3, [pc, #508] ; (80158d0 ) - 80156d4: 68db ldr r3, [r3, #12] - 80156d6: 899b ldrh r3, [r3, #12] + 80156cc: 6bfb ldr r3, [r7, #60] ; 0x3c + 80156ce: 68db ldr r3, [r3, #12] + 80156d0: 685b ldr r3, [r3, #4] + 80156d2: b29a uxth r2, r3 + 80156d4: 4b81 ldr r3, [pc, #516] ; (80158dc ) + 80156d6: 681b ldr r3, [r3, #0] 80156d8: b29b uxth r3, r3 - 80156da: 4618 mov r0, r3 - 80156dc: f7fa fed0 bl 8010480 - 80156e0: 4603 mov r3, r0 - 80156e2: b2db uxtb r3, r3 - 80156e4: f003 0302 and.w r3, r3, #2 - 80156e8: 2b00 cmp r3, #0 - 80156ea: d005 beq.n 80156f8 + 80156da: 1ad3 subs r3, r2, r3 + 80156dc: b29a uxth r2, r3 + 80156de: 4b80 ldr r3, [pc, #512] ; (80158e0 ) + 80156e0: 811a strh r2, [r3, #8] + if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) { + 80156e2: 4b7f ldr r3, [pc, #508] ; (80158e0 ) + 80156e4: 68db ldr r3, [r3, #12] + 80156e6: 899b ldrh r3, [r3, #12] + 80156e8: b29b uxth r3, r3 + 80156ea: 4618 mov r0, r3 + 80156ec: f7fa fed0 bl 8010490 + 80156f0: 4603 mov r3, r0 + 80156f2: b2db uxtb r3, r3 + 80156f4: f003 0302 and.w r3, r3, #2 + 80156f8: 2b00 cmp r3, #0 + 80156fa: d005 beq.n 8015708 inseg.len -= 1; - 80156ec: 4b78 ldr r3, [pc, #480] ; (80158d0 ) - 80156ee: 891b ldrh r3, [r3, #8] - 80156f0: 3b01 subs r3, #1 - 80156f2: b29a uxth r2, r3 - 80156f4: 4b76 ldr r3, [pc, #472] ; (80158d0 ) - 80156f6: 811a strh r2, [r3, #8] + 80156fc: 4b78 ldr r3, [pc, #480] ; (80158e0 ) + 80156fe: 891b ldrh r3, [r3, #8] + 8015700: 3b01 subs r3, #1 + 8015702: b29a uxth r2, r3 + 8015704: 4b76 ldr r3, [pc, #472] ; (80158e0 ) + 8015706: 811a strh r2, [r3, #8] } pbuf_realloc(inseg.p, inseg.len); - 80156f8: 4b75 ldr r3, [pc, #468] ; (80158d0 ) - 80156fa: 685a ldr r2, [r3, #4] - 80156fc: 4b74 ldr r3, [pc, #464] ; (80158d0 ) - 80156fe: 891b ldrh r3, [r3, #8] - 8015700: 4619 mov r1, r3 - 8015702: 4610 mov r0, r2 - 8015704: f7fc f8ea bl 80118dc + 8015708: 4b75 ldr r3, [pc, #468] ; (80158e0 ) + 801570a: 685a ldr r2, [r3, #4] + 801570c: 4b74 ldr r3, [pc, #464] ; (80158e0 ) + 801570e: 891b ldrh r3, [r3, #8] + 8015710: 4619 mov r1, r3 + 8015712: 4610 mov r0, r2 + 8015714: f7fc f8ea bl 80118ec tcplen = TCP_TCPLEN(&inseg); - 8015708: 4b71 ldr r3, [pc, #452] ; (80158d0 ) - 801570a: 891c ldrh r4, [r3, #8] - 801570c: 4b70 ldr r3, [pc, #448] ; (80158d0 ) - 801570e: 68db ldr r3, [r3, #12] - 8015710: 899b ldrh r3, [r3, #12] - 8015712: b29b uxth r3, r3 - 8015714: 4618 mov r0, r3 - 8015716: f7fa feb3 bl 8010480 - 801571a: 4603 mov r3, r0 - 801571c: b2db uxtb r3, r3 - 801571e: f003 0303 and.w r3, r3, #3 - 8015722: 2b00 cmp r3, #0 - 8015724: d001 beq.n 801572a - 8015726: 2301 movs r3, #1 - 8015728: e000 b.n 801572c - 801572a: 2300 movs r3, #0 - 801572c: 4423 add r3, r4 - 801572e: b29a uxth r2, r3 - 8015730: 4b65 ldr r3, [pc, #404] ; (80158c8 ) - 8015732: 801a strh r2, [r3, #0] + 8015718: 4b71 ldr r3, [pc, #452] ; (80158e0 ) + 801571a: 891c ldrh r4, [r3, #8] + 801571c: 4b70 ldr r3, [pc, #448] ; (80158e0 ) + 801571e: 68db ldr r3, [r3, #12] + 8015720: 899b ldrh r3, [r3, #12] + 8015722: b29b uxth r3, r3 + 8015724: 4618 mov r0, r3 + 8015726: f7fa feb3 bl 8010490 + 801572a: 4603 mov r3, r0 + 801572c: b2db uxtb r3, r3 + 801572e: f003 0303 and.w r3, r3, #3 + 8015732: 2b00 cmp r3, #0 + 8015734: d001 beq.n 801573a + 8015736: 2301 movs r3, #1 + 8015738: e000 b.n 801573c + 801573a: 2300 movs r3, #0 + 801573c: 4423 add r3, r4 + 801573e: b29a uxth r2, r3 + 8015740: 4b65 ldr r3, [pc, #404] ; (80158d8 ) + 8015742: 801a strh r2, [r3, #0] LWIP_ASSERT("tcp_receive: segment not trimmed correctly to ooseq queue\n", - 8015734: 4b64 ldr r3, [pc, #400] ; (80158c8 ) - 8015736: 881b ldrh r3, [r3, #0] - 8015738: 461a mov r2, r3 - 801573a: 4b64 ldr r3, [pc, #400] ; (80158cc ) - 801573c: 681b ldr r3, [r3, #0] - 801573e: 441a add r2, r3 - 8015740: 6bfb ldr r3, [r7, #60] ; 0x3c - 8015742: 68db ldr r3, [r3, #12] - 8015744: 685b ldr r3, [r3, #4] - 8015746: 429a cmp r2, r3 - 8015748: d006 beq.n 8015758 - 801574a: 4b62 ldr r3, [pc, #392] ; (80158d4 ) - 801574c: f240 52fd movw r2, #1533 ; 0x5fd - 8015750: 4961 ldr r1, [pc, #388] ; (80158d8 ) - 8015752: 4862 ldr r0, [pc, #392] ; (80158dc ) - 8015754: f006 ff78 bl 801c648 + 8015744: 4b64 ldr r3, [pc, #400] ; (80158d8 ) + 8015746: 881b ldrh r3, [r3, #0] + 8015748: 461a mov r2, r3 + 801574a: 4b64 ldr r3, [pc, #400] ; (80158dc ) + 801574c: 681b ldr r3, [r3, #0] + 801574e: 441a add r2, r3 + 8015750: 6bfb ldr r3, [r7, #60] ; 0x3c + 8015752: 68db ldr r3, [r3, #12] + 8015754: 685b ldr r3, [r3, #4] + 8015756: 429a cmp r2, r3 + 8015758: d006 beq.n 8015768 + 801575a: 4b62 ldr r3, [pc, #392] ; (80158e4 ) + 801575c: f240 52fd movw r2, #1533 ; 0x5fd + 8015760: 4961 ldr r1, [pc, #388] ; (80158e8 ) + 8015762: 4862 ldr r0, [pc, #392] ; (80158ec ) + 8015764: f006 ff78 bl 801c658 (seqno + tcplen) == next->tcphdr->seqno); } pcb->ooseq = next; - 8015758: 687b ldr r3, [r7, #4] - 801575a: 6bfa ldr r2, [r7, #60] ; 0x3c - 801575c: 675a str r2, [r3, #116] ; 0x74 + 8015768: 687b ldr r3, [r7, #4] + 801576a: 6bfa ldr r2, [r7, #60] ; 0x3c + 801576c: 675a str r2, [r3, #116] ; 0x74 } } #endif /* TCP_QUEUE_OOSEQ */ pcb->rcv_nxt = seqno + tcplen; - 801575e: 4b5a ldr r3, [pc, #360] ; (80158c8 ) - 8015760: 881b ldrh r3, [r3, #0] - 8015762: 461a mov r2, r3 - 8015764: 4b59 ldr r3, [pc, #356] ; (80158cc ) - 8015766: 681b ldr r3, [r3, #0] - 8015768: 441a add r2, r3 - 801576a: 687b ldr r3, [r7, #4] - 801576c: 625a str r2, [r3, #36] ; 0x24 + 801576e: 4b5a ldr r3, [pc, #360] ; (80158d8 ) + 8015770: 881b ldrh r3, [r3, #0] + 8015772: 461a mov r2, r3 + 8015774: 4b59 ldr r3, [pc, #356] ; (80158dc ) + 8015776: 681b ldr r3, [r3, #0] + 8015778: 441a add r2, r3 + 801577a: 687b ldr r3, [r7, #4] + 801577c: 625a str r2, [r3, #36] ; 0x24 /* Update the receiver's (our) window. */ LWIP_ASSERT("tcp_receive: tcplen > rcv_wnd\n", pcb->rcv_wnd >= tcplen); - 801576e: 687b ldr r3, [r7, #4] - 8015770: 8d1a ldrh r2, [r3, #40] ; 0x28 - 8015772: 4b55 ldr r3, [pc, #340] ; (80158c8 ) - 8015774: 881b ldrh r3, [r3, #0] - 8015776: 429a cmp r2, r3 - 8015778: d206 bcs.n 8015788 - 801577a: 4b56 ldr r3, [pc, #344] ; (80158d4 ) - 801577c: f240 6207 movw r2, #1543 ; 0x607 - 8015780: 4957 ldr r1, [pc, #348] ; (80158e0 ) - 8015782: 4856 ldr r0, [pc, #344] ; (80158dc ) - 8015784: f006 ff60 bl 801c648 + 801577e: 687b ldr r3, [r7, #4] + 8015780: 8d1a ldrh r2, [r3, #40] ; 0x28 + 8015782: 4b55 ldr r3, [pc, #340] ; (80158d8 ) + 8015784: 881b ldrh r3, [r3, #0] + 8015786: 429a cmp r2, r3 + 8015788: d206 bcs.n 8015798 + 801578a: 4b56 ldr r3, [pc, #344] ; (80158e4 ) + 801578c: f240 6207 movw r2, #1543 ; 0x607 + 8015790: 4957 ldr r1, [pc, #348] ; (80158f0 ) + 8015792: 4856 ldr r0, [pc, #344] ; (80158ec ) + 8015794: f006 ff60 bl 801c658 pcb->rcv_wnd -= tcplen; - 8015788: 687b ldr r3, [r7, #4] - 801578a: 8d1a ldrh r2, [r3, #40] ; 0x28 - 801578c: 4b4e ldr r3, [pc, #312] ; (80158c8 ) - 801578e: 881b ldrh r3, [r3, #0] - 8015790: 1ad3 subs r3, r2, r3 - 8015792: b29a uxth r2, r3 - 8015794: 687b ldr r3, [r7, #4] - 8015796: 851a strh r2, [r3, #40] ; 0x28 + 8015798: 687b ldr r3, [r7, #4] + 801579a: 8d1a ldrh r2, [r3, #40] ; 0x28 + 801579c: 4b4e ldr r3, [pc, #312] ; (80158d8 ) + 801579e: 881b ldrh r3, [r3, #0] + 80157a0: 1ad3 subs r3, r2, r3 + 80157a2: b29a uxth r2, r3 + 80157a4: 687b ldr r3, [r7, #4] + 80157a6: 851a strh r2, [r3, #40] ; 0x28 tcp_update_rcv_ann_wnd(pcb); - 8015798: 6878 ldr r0, [r7, #4] - 801579a: f7fc ffcd bl 8012738 + 80157a8: 6878 ldr r0, [r7, #4] + 80157aa: f7fc ffcd bl 8012748 chains its data on this pbuf as well. If the segment was a FIN, we set the TF_GOT_FIN flag that will be used to indicate to the application that the remote side has closed its end of the connection. */ if (inseg.p->tot_len > 0) { - 801579e: 4b4c ldr r3, [pc, #304] ; (80158d0 ) - 80157a0: 685b ldr r3, [r3, #4] - 80157a2: 891b ldrh r3, [r3, #8] - 80157a4: 2b00 cmp r3, #0 - 80157a6: d006 beq.n 80157b6 + 80157ae: 4b4c ldr r3, [pc, #304] ; (80158e0 ) + 80157b0: 685b ldr r3, [r3, #4] + 80157b2: 891b ldrh r3, [r3, #8] + 80157b4: 2b00 cmp r3, #0 + 80157b6: d006 beq.n 80157c6 recv_data = inseg.p; - 80157a8: 4b49 ldr r3, [pc, #292] ; (80158d0 ) - 80157aa: 685b ldr r3, [r3, #4] - 80157ac: 4a4d ldr r2, [pc, #308] ; (80158e4 ) - 80157ae: 6013 str r3, [r2, #0] + 80157b8: 4b49 ldr r3, [pc, #292] ; (80158e0 ) + 80157ba: 685b ldr r3, [r3, #4] + 80157bc: 4a4d ldr r2, [pc, #308] ; (80158f4 ) + 80157be: 6013 str r3, [r2, #0] /* Since this pbuf now is the responsibility of the application, we delete our reference to it so that we won't (mistakingly) deallocate it. */ inseg.p = NULL; - 80157b0: 4b47 ldr r3, [pc, #284] ; (80158d0 ) - 80157b2: 2200 movs r2, #0 - 80157b4: 605a str r2, [r3, #4] + 80157c0: 4b47 ldr r3, [pc, #284] ; (80158e0 ) + 80157c2: 2200 movs r2, #0 + 80157c4: 605a str r2, [r3, #4] } if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) { - 80157b6: 4b46 ldr r3, [pc, #280] ; (80158d0 ) - 80157b8: 68db ldr r3, [r3, #12] - 80157ba: 899b ldrh r3, [r3, #12] - 80157bc: b29b uxth r3, r3 - 80157be: 4618 mov r0, r3 - 80157c0: f7fa fe5e bl 8010480 - 80157c4: 4603 mov r3, r0 - 80157c6: b2db uxtb r3, r3 - 80157c8: f003 0301 and.w r3, r3, #1 - 80157cc: 2b00 cmp r3, #0 - 80157ce: f000 80b8 beq.w 8015942 + 80157c6: 4b46 ldr r3, [pc, #280] ; (80158e0 ) + 80157c8: 68db ldr r3, [r3, #12] + 80157ca: 899b ldrh r3, [r3, #12] + 80157cc: b29b uxth r3, r3 + 80157ce: 4618 mov r0, r3 + 80157d0: f7fa fe5e bl 8010490 + 80157d4: 4603 mov r3, r0 + 80157d6: b2db uxtb r3, r3 + 80157d8: f003 0301 and.w r3, r3, #1 + 80157dc: 2b00 cmp r3, #0 + 80157de: f000 80b8 beq.w 8015952 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: received FIN.\n")); recv_flags |= TF_GOT_FIN; - 80157d2: 4b45 ldr r3, [pc, #276] ; (80158e8 ) - 80157d4: 781b ldrb r3, [r3, #0] - 80157d6: f043 0320 orr.w r3, r3, #32 - 80157da: b2da uxtb r2, r3 - 80157dc: 4b42 ldr r3, [pc, #264] ; (80158e8 ) - 80157de: 701a strb r2, [r3, #0] + 80157e2: 4b45 ldr r3, [pc, #276] ; (80158f8 ) + 80157e4: 781b ldrb r3, [r3, #0] + 80157e6: f043 0320 orr.w r3, r3, #32 + 80157ea: b2da uxtb r2, r3 + 80157ec: 4b42 ldr r3, [pc, #264] ; (80158f8 ) + 80157ee: 701a strb r2, [r3, #0] } #if TCP_QUEUE_OOSEQ /* We now check if we have segments on the ->ooseq queue that are now in sequence. */ while (pcb->ooseq != NULL && - 80157e0: e0af b.n 8015942 + 80157f0: e0af b.n 8015952 pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) { struct tcp_seg *cseg = pcb->ooseq; - 80157e2: 687b ldr r3, [r7, #4] - 80157e4: 6f5b ldr r3, [r3, #116] ; 0x74 - 80157e6: 60bb str r3, [r7, #8] + 80157f2: 687b ldr r3, [r7, #4] + 80157f4: 6f5b ldr r3, [r3, #116] ; 0x74 + 80157f6: 60bb str r3, [r7, #8] seqno = pcb->ooseq->tcphdr->seqno; - 80157e8: 687b ldr r3, [r7, #4] - 80157ea: 6f5b ldr r3, [r3, #116] ; 0x74 - 80157ec: 68db ldr r3, [r3, #12] - 80157ee: 685b ldr r3, [r3, #4] - 80157f0: 4a36 ldr r2, [pc, #216] ; (80158cc ) - 80157f2: 6013 str r3, [r2, #0] + 80157f8: 687b ldr r3, [r7, #4] + 80157fa: 6f5b ldr r3, [r3, #116] ; 0x74 + 80157fc: 68db ldr r3, [r3, #12] + 80157fe: 685b ldr r3, [r3, #4] + 8015800: 4a36 ldr r2, [pc, #216] ; (80158dc ) + 8015802: 6013 str r3, [r2, #0] pcb->rcv_nxt += TCP_TCPLEN(cseg); - 80157f4: 68bb ldr r3, [r7, #8] - 80157f6: 891b ldrh r3, [r3, #8] - 80157f8: 461c mov r4, r3 - 80157fa: 68bb ldr r3, [r7, #8] - 80157fc: 68db ldr r3, [r3, #12] - 80157fe: 899b ldrh r3, [r3, #12] - 8015800: b29b uxth r3, r3 - 8015802: 4618 mov r0, r3 - 8015804: f7fa fe3c bl 8010480 - 8015808: 4603 mov r3, r0 - 801580a: b2db uxtb r3, r3 - 801580c: f003 0303 and.w r3, r3, #3 - 8015810: 2b00 cmp r3, #0 - 8015812: d001 beq.n 8015818 - 8015814: 2301 movs r3, #1 - 8015816: e000 b.n 801581a - 8015818: 2300 movs r3, #0 - 801581a: 191a adds r2, r3, r4 - 801581c: 687b ldr r3, [r7, #4] - 801581e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015820: 441a add r2, r3 - 8015822: 687b ldr r3, [r7, #4] - 8015824: 625a str r2, [r3, #36] ; 0x24 + 8015804: 68bb ldr r3, [r7, #8] + 8015806: 891b ldrh r3, [r3, #8] + 8015808: 461c mov r4, r3 + 801580a: 68bb ldr r3, [r7, #8] + 801580c: 68db ldr r3, [r3, #12] + 801580e: 899b ldrh r3, [r3, #12] + 8015810: b29b uxth r3, r3 + 8015812: 4618 mov r0, r3 + 8015814: f7fa fe3c bl 8010490 + 8015818: 4603 mov r3, r0 + 801581a: b2db uxtb r3, r3 + 801581c: f003 0303 and.w r3, r3, #3 + 8015820: 2b00 cmp r3, #0 + 8015822: d001 beq.n 8015828 + 8015824: 2301 movs r3, #1 + 8015826: e000 b.n 801582a + 8015828: 2300 movs r3, #0 + 801582a: 191a adds r2, r3, r4 + 801582c: 687b ldr r3, [r7, #4] + 801582e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015830: 441a add r2, r3 + 8015832: 687b ldr r3, [r7, #4] + 8015834: 625a str r2, [r3, #36] ; 0x24 LWIP_ASSERT("tcp_receive: ooseq tcplen > rcv_wnd\n", - 8015826: 687b ldr r3, [r7, #4] - 8015828: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801582a: 461c mov r4, r3 - 801582c: 68bb ldr r3, [r7, #8] - 801582e: 891b ldrh r3, [r3, #8] - 8015830: 461d mov r5, r3 - 8015832: 68bb ldr r3, [r7, #8] - 8015834: 68db ldr r3, [r3, #12] - 8015836: 899b ldrh r3, [r3, #12] - 8015838: b29b uxth r3, r3 - 801583a: 4618 mov r0, r3 - 801583c: f7fa fe20 bl 8010480 - 8015840: 4603 mov r3, r0 - 8015842: b2db uxtb r3, r3 - 8015844: f003 0303 and.w r3, r3, #3 - 8015848: 2b00 cmp r3, #0 - 801584a: d001 beq.n 8015850 - 801584c: 2301 movs r3, #1 - 801584e: e000 b.n 8015852 - 8015850: 2300 movs r3, #0 - 8015852: 442b add r3, r5 - 8015854: 429c cmp r4, r3 - 8015856: d206 bcs.n 8015866 - 8015858: 4b1e ldr r3, [pc, #120] ; (80158d4 ) - 801585a: f240 622c movw r2, #1580 ; 0x62c - 801585e: 4923 ldr r1, [pc, #140] ; (80158ec ) - 8015860: 481e ldr r0, [pc, #120] ; (80158dc ) - 8015862: f006 fef1 bl 801c648 + 8015836: 687b ldr r3, [r7, #4] + 8015838: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801583a: 461c mov r4, r3 + 801583c: 68bb ldr r3, [r7, #8] + 801583e: 891b ldrh r3, [r3, #8] + 8015840: 461d mov r5, r3 + 8015842: 68bb ldr r3, [r7, #8] + 8015844: 68db ldr r3, [r3, #12] + 8015846: 899b ldrh r3, [r3, #12] + 8015848: b29b uxth r3, r3 + 801584a: 4618 mov r0, r3 + 801584c: f7fa fe20 bl 8010490 + 8015850: 4603 mov r3, r0 + 8015852: b2db uxtb r3, r3 + 8015854: f003 0303 and.w r3, r3, #3 + 8015858: 2b00 cmp r3, #0 + 801585a: d001 beq.n 8015860 + 801585c: 2301 movs r3, #1 + 801585e: e000 b.n 8015862 + 8015860: 2300 movs r3, #0 + 8015862: 442b add r3, r5 + 8015864: 429c cmp r4, r3 + 8015866: d206 bcs.n 8015876 + 8015868: 4b1e ldr r3, [pc, #120] ; (80158e4 ) + 801586a: f240 622c movw r2, #1580 ; 0x62c + 801586e: 4923 ldr r1, [pc, #140] ; (80158fc ) + 8015870: 481e ldr r0, [pc, #120] ; (80158ec ) + 8015872: f006 fef1 bl 801c658 pcb->rcv_wnd >= TCP_TCPLEN(cseg)); pcb->rcv_wnd -= TCP_TCPLEN(cseg); - 8015866: 68bb ldr r3, [r7, #8] - 8015868: 891b ldrh r3, [r3, #8] - 801586a: 461c mov r4, r3 - 801586c: 68bb ldr r3, [r7, #8] - 801586e: 68db ldr r3, [r3, #12] - 8015870: 899b ldrh r3, [r3, #12] - 8015872: b29b uxth r3, r3 - 8015874: 4618 mov r0, r3 - 8015876: f7fa fe03 bl 8010480 - 801587a: 4603 mov r3, r0 - 801587c: b2db uxtb r3, r3 - 801587e: f003 0303 and.w r3, r3, #3 - 8015882: 2b00 cmp r3, #0 - 8015884: d001 beq.n 801588a - 8015886: 2301 movs r3, #1 - 8015888: e000 b.n 801588c - 801588a: 2300 movs r3, #0 - 801588c: 1919 adds r1, r3, r4 - 801588e: 687b ldr r3, [r7, #4] - 8015890: 8d1a ldrh r2, [r3, #40] ; 0x28 - 8015892: b28b uxth r3, r1 - 8015894: 1ad3 subs r3, r2, r3 - 8015896: b29a uxth r2, r3 - 8015898: 687b ldr r3, [r7, #4] - 801589a: 851a strh r2, [r3, #40] ; 0x28 + 8015876: 68bb ldr r3, [r7, #8] + 8015878: 891b ldrh r3, [r3, #8] + 801587a: 461c mov r4, r3 + 801587c: 68bb ldr r3, [r7, #8] + 801587e: 68db ldr r3, [r3, #12] + 8015880: 899b ldrh r3, [r3, #12] + 8015882: b29b uxth r3, r3 + 8015884: 4618 mov r0, r3 + 8015886: f7fa fe03 bl 8010490 + 801588a: 4603 mov r3, r0 + 801588c: b2db uxtb r3, r3 + 801588e: f003 0303 and.w r3, r3, #3 + 8015892: 2b00 cmp r3, #0 + 8015894: d001 beq.n 801589a + 8015896: 2301 movs r3, #1 + 8015898: e000 b.n 801589c + 801589a: 2300 movs r3, #0 + 801589c: 1919 adds r1, r3, r4 + 801589e: 687b ldr r3, [r7, #4] + 80158a0: 8d1a ldrh r2, [r3, #40] ; 0x28 + 80158a2: b28b uxth r3, r1 + 80158a4: 1ad3 subs r3, r2, r3 + 80158a6: b29a uxth r2, r3 + 80158a8: 687b ldr r3, [r7, #4] + 80158aa: 851a strh r2, [r3, #40] ; 0x28 tcp_update_rcv_ann_wnd(pcb); - 801589c: 6878 ldr r0, [r7, #4] - 801589e: f7fc ff4b bl 8012738 + 80158ac: 6878 ldr r0, [r7, #4] + 80158ae: f7fc ff4b bl 8012748 if (cseg->p->tot_len > 0) { - 80158a2: 68bb ldr r3, [r7, #8] - 80158a4: 685b ldr r3, [r3, #4] - 80158a6: 891b ldrh r3, [r3, #8] - 80158a8: 2b00 cmp r3, #0 - 80158aa: d028 beq.n 80158fe + 80158b2: 68bb ldr r3, [r7, #8] + 80158b4: 685b ldr r3, [r3, #4] + 80158b6: 891b ldrh r3, [r3, #8] + 80158b8: 2b00 cmp r3, #0 + 80158ba: d028 beq.n 801590e /* Chain this pbuf onto the pbuf that we will pass to the application. */ /* With window scaling, this can overflow recv_data->tot_len, but that's not a problem since we explicitly fix that before passing recv_data to the application. */ if (recv_data) { - 80158ac: 4b0d ldr r3, [pc, #52] ; (80158e4 ) - 80158ae: 681b ldr r3, [r3, #0] - 80158b0: 2b00 cmp r3, #0 - 80158b2: d01d beq.n 80158f0 + 80158bc: 4b0d ldr r3, [pc, #52] ; (80158f4 ) + 80158be: 681b ldr r3, [r3, #0] + 80158c0: 2b00 cmp r3, #0 + 80158c2: d01d beq.n 8015900 pbuf_cat(recv_data, cseg->p); - 80158b4: 4b0b ldr r3, [pc, #44] ; (80158e4 ) - 80158b6: 681a ldr r2, [r3, #0] - 80158b8: 68bb ldr r3, [r7, #8] - 80158ba: 685b ldr r3, [r3, #4] - 80158bc: 4619 mov r1, r3 - 80158be: 4610 mov r0, r2 - 80158c0: f7fc fa60 bl 8011d84 - 80158c4: e018 b.n 80158f8 - 80158c6: bf00 nop - 80158c8: 2000874a .word 0x2000874a - 80158cc: 20008740 .word 0x20008740 - 80158d0: 20008720 .word 0x20008720 - 80158d4: 0801ec40 .word 0x0801ec40 - 80158d8: 0801f020 .word 0x0801f020 - 80158dc: 0801ec8c .word 0x0801ec8c - 80158e0: 0801f05c .word 0x0801f05c - 80158e4: 20008750 .word 0x20008750 - 80158e8: 2000874d .word 0x2000874d - 80158ec: 0801f07c .word 0x0801f07c + 80158c4: 4b0b ldr r3, [pc, #44] ; (80158f4 ) + 80158c6: 681a ldr r2, [r3, #0] + 80158c8: 68bb ldr r3, [r7, #8] + 80158ca: 685b ldr r3, [r3, #4] + 80158cc: 4619 mov r1, r3 + 80158ce: 4610 mov r0, r2 + 80158d0: f7fc fa60 bl 8011d94 + 80158d4: e018 b.n 8015908 + 80158d6: bf00 nop + 80158d8: 2000874a .word 0x2000874a + 80158dc: 20008740 .word 0x20008740 + 80158e0: 20008720 .word 0x20008720 + 80158e4: 0801ec50 .word 0x0801ec50 + 80158e8: 0801f030 .word 0x0801f030 + 80158ec: 0801ec9c .word 0x0801ec9c + 80158f0: 0801f06c .word 0x0801f06c + 80158f4: 20008750 .word 0x20008750 + 80158f8: 2000874d .word 0x2000874d + 80158fc: 0801f08c .word 0x0801f08c } else { recv_data = cseg->p; - 80158f0: 68bb ldr r3, [r7, #8] - 80158f2: 685b ldr r3, [r3, #4] - 80158f4: 4a70 ldr r2, [pc, #448] ; (8015ab8 ) - 80158f6: 6013 str r3, [r2, #0] + 8015900: 68bb ldr r3, [r7, #8] + 8015902: 685b ldr r3, [r3, #4] + 8015904: 4a70 ldr r2, [pc, #448] ; (8015ac8 ) + 8015906: 6013 str r3, [r2, #0] } cseg->p = NULL; - 80158f8: 68bb ldr r3, [r7, #8] - 80158fa: 2200 movs r2, #0 - 80158fc: 605a str r2, [r3, #4] + 8015908: 68bb ldr r3, [r7, #8] + 801590a: 2200 movs r2, #0 + 801590c: 605a str r2, [r3, #4] } if (TCPH_FLAGS(cseg->tcphdr) & TCP_FIN) { - 80158fe: 68bb ldr r3, [r7, #8] - 8015900: 68db ldr r3, [r3, #12] - 8015902: 899b ldrh r3, [r3, #12] - 8015904: b29b uxth r3, r3 - 8015906: 4618 mov r0, r3 - 8015908: f7fa fdba bl 8010480 - 801590c: 4603 mov r3, r0 - 801590e: b2db uxtb r3, r3 - 8015910: f003 0301 and.w r3, r3, #1 - 8015914: 2b00 cmp r3, #0 - 8015916: d00d beq.n 8015934 + 801590e: 68bb ldr r3, [r7, #8] + 8015910: 68db ldr r3, [r3, #12] + 8015912: 899b ldrh r3, [r3, #12] + 8015914: b29b uxth r3, r3 + 8015916: 4618 mov r0, r3 + 8015918: f7fa fdba bl 8010490 + 801591c: 4603 mov r3, r0 + 801591e: b2db uxtb r3, r3 + 8015920: f003 0301 and.w r3, r3, #1 + 8015924: 2b00 cmp r3, #0 + 8015926: d00d beq.n 8015944 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: dequeued FIN.\n")); recv_flags |= TF_GOT_FIN; - 8015918: 4b68 ldr r3, [pc, #416] ; (8015abc ) - 801591a: 781b ldrb r3, [r3, #0] - 801591c: f043 0320 orr.w r3, r3, #32 - 8015920: b2da uxtb r2, r3 - 8015922: 4b66 ldr r3, [pc, #408] ; (8015abc ) - 8015924: 701a strb r2, [r3, #0] + 8015928: 4b68 ldr r3, [pc, #416] ; (8015acc ) + 801592a: 781b ldrb r3, [r3, #0] + 801592c: f043 0320 orr.w r3, r3, #32 + 8015930: b2da uxtb r2, r3 + 8015932: 4b66 ldr r3, [pc, #408] ; (8015acc ) + 8015934: 701a strb r2, [r3, #0] if (pcb->state == ESTABLISHED) { /* force passive close or we can move to active close */ - 8015926: 687b ldr r3, [r7, #4] - 8015928: 7d1b ldrb r3, [r3, #20] - 801592a: 2b04 cmp r3, #4 - 801592c: d102 bne.n 8015934 + 8015936: 687b ldr r3, [r7, #4] + 8015938: 7d1b ldrb r3, [r3, #20] + 801593a: 2b04 cmp r3, #4 + 801593c: d102 bne.n 8015944 pcb->state = CLOSE_WAIT; - 801592e: 687b ldr r3, [r7, #4] - 8015930: 2207 movs r2, #7 - 8015932: 751a strb r2, [r3, #20] + 801593e: 687b ldr r3, [r7, #4] + 8015940: 2207 movs r2, #7 + 8015942: 751a strb r2, [r3, #20] } } pcb->ooseq = cseg->next; - 8015934: 68bb ldr r3, [r7, #8] - 8015936: 681a ldr r2, [r3, #0] - 8015938: 687b ldr r3, [r7, #4] - 801593a: 675a str r2, [r3, #116] ; 0x74 + 8015944: 68bb ldr r3, [r7, #8] + 8015946: 681a ldr r2, [r3, #0] + 8015948: 687b ldr r3, [r7, #4] + 801594a: 675a str r2, [r3, #116] ; 0x74 tcp_seg_free(cseg); - 801593c: 68b8 ldr r0, [r7, #8] - 801593e: f7fd fbd7 bl 80130f0 + 801594c: 68b8 ldr r0, [r7, #8] + 801594e: f7fd fbd7 bl 8013100 while (pcb->ooseq != NULL && - 8015942: 687b ldr r3, [r7, #4] - 8015944: 6f5b ldr r3, [r3, #116] ; 0x74 - 8015946: 2b00 cmp r3, #0 - 8015948: d008 beq.n 801595c - pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) { - 801594a: 687b ldr r3, [r7, #4] - 801594c: 6f5b ldr r3, [r3, #116] ; 0x74 - 801594e: 68db ldr r3, [r3, #12] - 8015950: 685a ldr r2, [r3, #4] 8015952: 687b ldr r3, [r7, #4] - 8015954: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015954: 6f5b ldr r3, [r3, #116] ; 0x74 + 8015956: 2b00 cmp r3, #0 + 8015958: d008 beq.n 801596c + pcb->ooseq->tcphdr->seqno == pcb->rcv_nxt) { + 801595a: 687b ldr r3, [r7, #4] + 801595c: 6f5b ldr r3, [r3, #116] ; 0x74 + 801595e: 68db ldr r3, [r3, #12] + 8015960: 685a ldr r2, [r3, #4] + 8015962: 687b ldr r3, [r7, #4] + 8015964: 6a5b ldr r3, [r3, #36] ; 0x24 while (pcb->ooseq != NULL && - 8015956: 429a cmp r2, r3 - 8015958: f43f af43 beq.w 80157e2 + 8015966: 429a cmp r2, r3 + 8015968: f43f af43 beq.w 80157f2 #endif /* LWIP_TCP_SACK_OUT */ #endif /* TCP_QUEUE_OOSEQ */ /* Acknowledge the segment(s). */ tcp_ack(pcb); - 801595c: 687b ldr r3, [r7, #4] - 801595e: 8b5b ldrh r3, [r3, #26] - 8015960: f003 0301 and.w r3, r3, #1 - 8015964: 2b00 cmp r3, #0 - 8015966: d00e beq.n 8015986 - 8015968: 687b ldr r3, [r7, #4] - 801596a: 8b5b ldrh r3, [r3, #26] - 801596c: f023 0301 bic.w r3, r3, #1 - 8015970: b29a uxth r2, r3 - 8015972: 687b ldr r3, [r7, #4] - 8015974: 835a strh r2, [r3, #26] - 8015976: 687b ldr r3, [r7, #4] - 8015978: 8b5b ldrh r3, [r3, #26] - 801597a: f043 0302 orr.w r3, r3, #2 - 801597e: b29a uxth r2, r3 - 8015980: 687b ldr r3, [r7, #4] - 8015982: 835a strh r2, [r3, #26] - if (pcb->rcv_nxt == seqno) { - 8015984: e188 b.n 8015c98 - tcp_ack(pcb); + 801596c: 687b ldr r3, [r7, #4] + 801596e: 8b5b ldrh r3, [r3, #26] + 8015970: f003 0301 and.w r3, r3, #1 + 8015974: 2b00 cmp r3, #0 + 8015976: d00e beq.n 8015996 + 8015978: 687b ldr r3, [r7, #4] + 801597a: 8b5b ldrh r3, [r3, #26] + 801597c: f023 0301 bic.w r3, r3, #1 + 8015980: b29a uxth r2, r3 + 8015982: 687b ldr r3, [r7, #4] + 8015984: 835a strh r2, [r3, #26] 8015986: 687b ldr r3, [r7, #4] 8015988: 8b5b ldrh r3, [r3, #26] - 801598a: f043 0301 orr.w r3, r3, #1 + 801598a: f043 0302 orr.w r3, r3, #2 801598e: b29a uxth r2, r3 8015990: 687b ldr r3, [r7, #4] 8015992: 835a strh r2, [r3, #26] if (pcb->rcv_nxt == seqno) { - 8015994: e180 b.n 8015c98 + 8015994: e188 b.n 8015ca8 + tcp_ack(pcb); + 8015996: 687b ldr r3, [r7, #4] + 8015998: 8b5b ldrh r3, [r3, #26] + 801599a: f043 0301 orr.w r3, r3, #1 + 801599e: b29a uxth r2, r3 + 80159a0: 687b ldr r3, [r7, #4] + 80159a2: 835a strh r2, [r3, #26] + if (pcb->rcv_nxt == seqno) { + 80159a4: e180 b.n 8015ca8 } else { /* We get here if the incoming segment is out-of-sequence. */ #if TCP_QUEUE_OOSEQ /* We queue the segment on the ->ooseq queue. */ if (pcb->ooseq == NULL) { - 8015996: 687b ldr r3, [r7, #4] - 8015998: 6f5b ldr r3, [r3, #116] ; 0x74 - 801599a: 2b00 cmp r3, #0 - 801599c: d106 bne.n 80159ac - pcb->ooseq = tcp_seg_copy(&inseg); - 801599e: 4848 ldr r0, [pc, #288] ; (8015ac0 ) - 80159a0: f7fd fbbe bl 8013120 - 80159a4: 4602 mov r2, r0 80159a6: 687b ldr r3, [r7, #4] - 80159a8: 675a str r2, [r3, #116] ; 0x74 - 80159aa: e16d b.n 8015c88 + 80159a8: 6f5b ldr r3, [r3, #116] ; 0x74 + 80159aa: 2b00 cmp r3, #0 + 80159ac: d106 bne.n 80159bc + pcb->ooseq = tcp_seg_copy(&inseg); + 80159ae: 4848 ldr r0, [pc, #288] ; (8015ad0 ) + 80159b0: f7fd fbbe bl 8013130 + 80159b4: 4602 mov r2, r0 + 80159b6: 687b ldr r3, [r7, #4] + 80159b8: 675a str r2, [r3, #116] ; 0x74 + 80159ba: e16d b.n 8015c98 #if LWIP_TCP_SACK_OUT /* This is the left edge of the lowest possible SACK range. It may start before the newly received segment (possibly adjusted below). */ u32_t sackbeg = TCP_SEQ_LT(seqno, pcb->ooseq->tcphdr->seqno) ? seqno : pcb->ooseq->tcphdr->seqno; #endif /* LWIP_TCP_SACK_OUT */ struct tcp_seg *next, *prev = NULL; - 80159ac: 2300 movs r3, #0 - 80159ae: 637b str r3, [r7, #52] ; 0x34 + 80159bc: 2300 movs r3, #0 + 80159be: 637b str r3, [r7, #52] ; 0x34 for (next = pcb->ooseq; next != NULL; next = next->next) { - 80159b0: 687b ldr r3, [r7, #4] - 80159b2: 6f5b ldr r3, [r3, #116] ; 0x74 - 80159b4: 63bb str r3, [r7, #56] ; 0x38 - 80159b6: e157 b.n 8015c68 + 80159c0: 687b ldr r3, [r7, #4] + 80159c2: 6f5b ldr r3, [r3, #116] ; 0x74 + 80159c4: 63bb str r3, [r7, #56] ; 0x38 + 80159c6: e157 b.n 8015c78 if (seqno == next->tcphdr->seqno) { - 80159b8: 6bbb ldr r3, [r7, #56] ; 0x38 - 80159ba: 68db ldr r3, [r3, #12] - 80159bc: 685a ldr r2, [r3, #4] - 80159be: 4b41 ldr r3, [pc, #260] ; (8015ac4 ) - 80159c0: 681b ldr r3, [r3, #0] - 80159c2: 429a cmp r2, r3 - 80159c4: d11d bne.n 8015a02 + 80159c8: 6bbb ldr r3, [r7, #56] ; 0x38 + 80159ca: 68db ldr r3, [r3, #12] + 80159cc: 685a ldr r2, [r3, #4] + 80159ce: 4b41 ldr r3, [pc, #260] ; (8015ad4 ) + 80159d0: 681b ldr r3, [r3, #0] + 80159d2: 429a cmp r2, r3 + 80159d4: d11d bne.n 8015a12 /* The sequence number of the incoming segment is the same as the sequence number of the segment on ->ooseq. We check the lengths to see which one to discard. */ if (inseg.len > next->len) { - 80159c6: 4b3e ldr r3, [pc, #248] ; (8015ac0 ) - 80159c8: 891a ldrh r2, [r3, #8] - 80159ca: 6bbb ldr r3, [r7, #56] ; 0x38 - 80159cc: 891b ldrh r3, [r3, #8] - 80159ce: 429a cmp r2, r3 - 80159d0: f240 814f bls.w 8015c72 + 80159d6: 4b3e ldr r3, [pc, #248] ; (8015ad0 ) + 80159d8: 891a ldrh r2, [r3, #8] + 80159da: 6bbb ldr r3, [r7, #56] ; 0x38 + 80159dc: 891b ldrh r3, [r3, #8] + 80159de: 429a cmp r2, r3 + 80159e0: f240 814f bls.w 8015c82 /* The incoming segment is larger than the old segment. We replace some segments with the new one. */ struct tcp_seg *cseg = tcp_seg_copy(&inseg); - 80159d4: 483a ldr r0, [pc, #232] ; (8015ac0 ) - 80159d6: f7fd fba3 bl 8013120 - 80159da: 6178 str r0, [r7, #20] + 80159e4: 483a ldr r0, [pc, #232] ; (8015ad0 ) + 80159e6: f7fd fba3 bl 8013130 + 80159ea: 6178 str r0, [r7, #20] if (cseg != NULL) { - 80159dc: 697b ldr r3, [r7, #20] - 80159de: 2b00 cmp r3, #0 - 80159e0: f000 8149 beq.w 8015c76 + 80159ec: 697b ldr r3, [r7, #20] + 80159ee: 2b00 cmp r3, #0 + 80159f0: f000 8149 beq.w 8015c86 if (prev != NULL) { - 80159e4: 6b7b ldr r3, [r7, #52] ; 0x34 - 80159e6: 2b00 cmp r3, #0 - 80159e8: d003 beq.n 80159f2 + 80159f4: 6b7b ldr r3, [r7, #52] ; 0x34 + 80159f6: 2b00 cmp r3, #0 + 80159f8: d003 beq.n 8015a02 prev->next = cseg; - 80159ea: 6b7b ldr r3, [r7, #52] ; 0x34 - 80159ec: 697a ldr r2, [r7, #20] - 80159ee: 601a str r2, [r3, #0] - 80159f0: e002 b.n 80159f8 + 80159fa: 6b7b ldr r3, [r7, #52] ; 0x34 + 80159fc: 697a ldr r2, [r7, #20] + 80159fe: 601a str r2, [r3, #0] + 8015a00: e002 b.n 8015a08 } else { pcb->ooseq = cseg; - 80159f2: 687b ldr r3, [r7, #4] - 80159f4: 697a ldr r2, [r7, #20] - 80159f6: 675a str r2, [r3, #116] ; 0x74 + 8015a02: 687b ldr r3, [r7, #4] + 8015a04: 697a ldr r2, [r7, #20] + 8015a06: 675a str r2, [r3, #116] ; 0x74 } tcp_oos_insert_segment(cseg, next); - 80159f8: 6bb9 ldr r1, [r7, #56] ; 0x38 - 80159fa: 6978 ldr r0, [r7, #20] - 80159fc: f7ff f8de bl 8014bbc + 8015a08: 6bb9 ldr r1, [r7, #56] ; 0x38 + 8015a0a: 6978 ldr r0, [r7, #20] + 8015a0c: f7ff f8de bl 8014bcc } break; - 8015a00: e139 b.n 8015c76 + 8015a10: e139 b.n 8015c86 segment was smaller than the old one; in either case, we ditch the incoming segment. */ break; } } else { if (prev == NULL) { - 8015a02: 6b7b ldr r3, [r7, #52] ; 0x34 - 8015a04: 2b00 cmp r3, #0 - 8015a06: d117 bne.n 8015a38 - if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) { - 8015a08: 4b2e ldr r3, [pc, #184] ; (8015ac4 ) - 8015a0a: 681a ldr r2, [r3, #0] - 8015a0c: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015a0e: 68db ldr r3, [r3, #12] - 8015a10: 685b ldr r3, [r3, #4] - 8015a12: 1ad3 subs r3, r2, r3 + 8015a12: 6b7b ldr r3, [r7, #52] ; 0x34 8015a14: 2b00 cmp r3, #0 - 8015a16: da57 bge.n 8015ac8 + 8015a16: d117 bne.n 8015a48 + if (TCP_SEQ_LT(seqno, next->tcphdr->seqno)) { + 8015a18: 4b2e ldr r3, [pc, #184] ; (8015ad4 ) + 8015a1a: 681a ldr r2, [r3, #0] + 8015a1c: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015a1e: 68db ldr r3, [r3, #12] + 8015a20: 685b ldr r3, [r3, #4] + 8015a22: 1ad3 subs r3, r2, r3 + 8015a24: 2b00 cmp r3, #0 + 8015a26: da57 bge.n 8015ad8 /* The sequence number of the incoming segment is lower than the sequence number of the first segment on the queue. We put the incoming segment first on the queue. */ struct tcp_seg *cseg = tcp_seg_copy(&inseg); - 8015a18: 4829 ldr r0, [pc, #164] ; (8015ac0 ) - 8015a1a: f7fd fb81 bl 8013120 - 8015a1e: 61b8 str r0, [r7, #24] + 8015a28: 4829 ldr r0, [pc, #164] ; (8015ad0 ) + 8015a2a: f7fd fb81 bl 8013130 + 8015a2e: 61b8 str r0, [r7, #24] if (cseg != NULL) { - 8015a20: 69bb ldr r3, [r7, #24] - 8015a22: 2b00 cmp r3, #0 - 8015a24: f000 8129 beq.w 8015c7a + 8015a30: 69bb ldr r3, [r7, #24] + 8015a32: 2b00 cmp r3, #0 + 8015a34: f000 8129 beq.w 8015c8a pcb->ooseq = cseg; - 8015a28: 687b ldr r3, [r7, #4] - 8015a2a: 69ba ldr r2, [r7, #24] - 8015a2c: 675a str r2, [r3, #116] ; 0x74 + 8015a38: 687b ldr r3, [r7, #4] + 8015a3a: 69ba ldr r2, [r7, #24] + 8015a3c: 675a str r2, [r3, #116] ; 0x74 tcp_oos_insert_segment(cseg, next); - 8015a2e: 6bb9 ldr r1, [r7, #56] ; 0x38 - 8015a30: 69b8 ldr r0, [r7, #24] - 8015a32: f7ff f8c3 bl 8014bbc + 8015a3e: 6bb9 ldr r1, [r7, #56] ; 0x38 + 8015a40: 69b8 ldr r0, [r7, #24] + 8015a42: f7ff f8c3 bl 8014bcc } break; - 8015a36: e120 b.n 8015c7a + 8015a46: e120 b.n 8015c8a } } else { /*if (TCP_SEQ_LT(prev->tcphdr->seqno, seqno) && TCP_SEQ_LT(seqno, next->tcphdr->seqno)) {*/ if (TCP_SEQ_BETWEEN(seqno, prev->tcphdr->seqno + 1, next->tcphdr->seqno - 1)) { - 8015a38: 4b22 ldr r3, [pc, #136] ; (8015ac4 ) - 8015a3a: 681a ldr r2, [r3, #0] - 8015a3c: 6b7b ldr r3, [r7, #52] ; 0x34 - 8015a3e: 68db ldr r3, [r3, #12] - 8015a40: 685b ldr r3, [r3, #4] - 8015a42: 1ad3 subs r3, r2, r3 - 8015a44: 3b01 subs r3, #1 - 8015a46: 2b00 cmp r3, #0 - 8015a48: db3e blt.n 8015ac8 - 8015a4a: 4b1e ldr r3, [pc, #120] ; (8015ac4 ) - 8015a4c: 681a ldr r2, [r3, #0] - 8015a4e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015a50: 68db ldr r3, [r3, #12] - 8015a52: 685b ldr r3, [r3, #4] - 8015a54: 1ad3 subs r3, r2, r3 - 8015a56: 3301 adds r3, #1 - 8015a58: 2b00 cmp r3, #0 - 8015a5a: dc35 bgt.n 8015ac8 + 8015a48: 4b22 ldr r3, [pc, #136] ; (8015ad4 ) + 8015a4a: 681a ldr r2, [r3, #0] + 8015a4c: 6b7b ldr r3, [r7, #52] ; 0x34 + 8015a4e: 68db ldr r3, [r3, #12] + 8015a50: 685b ldr r3, [r3, #4] + 8015a52: 1ad3 subs r3, r2, r3 + 8015a54: 3b01 subs r3, #1 + 8015a56: 2b00 cmp r3, #0 + 8015a58: db3e blt.n 8015ad8 + 8015a5a: 4b1e ldr r3, [pc, #120] ; (8015ad4 ) + 8015a5c: 681a ldr r2, [r3, #0] + 8015a5e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015a60: 68db ldr r3, [r3, #12] + 8015a62: 685b ldr r3, [r3, #4] + 8015a64: 1ad3 subs r3, r2, r3 + 8015a66: 3301 adds r3, #1 + 8015a68: 2b00 cmp r3, #0 + 8015a6a: dc35 bgt.n 8015ad8 /* The sequence number of the incoming segment is in between the sequence numbers of the previous and the next segment on ->ooseq. We trim trim the previous segment, delete next segments that included in received segment and trim received, if needed. */ struct tcp_seg *cseg = tcp_seg_copy(&inseg); - 8015a5c: 4818 ldr r0, [pc, #96] ; (8015ac0 ) - 8015a5e: f7fd fb5f bl 8013120 - 8015a62: 61f8 str r0, [r7, #28] + 8015a6c: 4818 ldr r0, [pc, #96] ; (8015ad0 ) + 8015a6e: f7fd fb5f bl 8013130 + 8015a72: 61f8 str r0, [r7, #28] if (cseg != NULL) { - 8015a64: 69fb ldr r3, [r7, #28] - 8015a66: 2b00 cmp r3, #0 - 8015a68: f000 8109 beq.w 8015c7e + 8015a74: 69fb ldr r3, [r7, #28] + 8015a76: 2b00 cmp r3, #0 + 8015a78: f000 8109 beq.w 8015c8e if (TCP_SEQ_GT(prev->tcphdr->seqno + prev->len, seqno)) { - 8015a6c: 6b7b ldr r3, [r7, #52] ; 0x34 - 8015a6e: 68db ldr r3, [r3, #12] - 8015a70: 685b ldr r3, [r3, #4] - 8015a72: 6b7a ldr r2, [r7, #52] ; 0x34 - 8015a74: 8912 ldrh r2, [r2, #8] - 8015a76: 441a add r2, r3 - 8015a78: 4b12 ldr r3, [pc, #72] ; (8015ac4 ) - 8015a7a: 681b ldr r3, [r3, #0] - 8015a7c: 1ad3 subs r3, r2, r3 - 8015a7e: 2b00 cmp r3, #0 - 8015a80: dd12 ble.n 8015aa8 + 8015a7c: 6b7b ldr r3, [r7, #52] ; 0x34 + 8015a7e: 68db ldr r3, [r3, #12] + 8015a80: 685b ldr r3, [r3, #4] + 8015a82: 6b7a ldr r2, [r7, #52] ; 0x34 + 8015a84: 8912 ldrh r2, [r2, #8] + 8015a86: 441a add r2, r3 + 8015a88: 4b12 ldr r3, [pc, #72] ; (8015ad4 ) + 8015a8a: 681b ldr r3, [r3, #0] + 8015a8c: 1ad3 subs r3, r2, r3 + 8015a8e: 2b00 cmp r3, #0 + 8015a90: dd12 ble.n 8015ab8 /* We need to trim the prev segment. */ prev->len = (u16_t)(seqno - prev->tcphdr->seqno); - 8015a82: 4b10 ldr r3, [pc, #64] ; (8015ac4 ) - 8015a84: 681b ldr r3, [r3, #0] - 8015a86: b29a uxth r2, r3 - 8015a88: 6b7b ldr r3, [r7, #52] ; 0x34 - 8015a8a: 68db ldr r3, [r3, #12] - 8015a8c: 685b ldr r3, [r3, #4] - 8015a8e: b29b uxth r3, r3 - 8015a90: 1ad3 subs r3, r2, r3 - 8015a92: b29a uxth r2, r3 - 8015a94: 6b7b ldr r3, [r7, #52] ; 0x34 - 8015a96: 811a strh r2, [r3, #8] - pbuf_realloc(prev->p, prev->len); + 8015a92: 4b10 ldr r3, [pc, #64] ; (8015ad4 ) + 8015a94: 681b ldr r3, [r3, #0] + 8015a96: b29a uxth r2, r3 8015a98: 6b7b ldr r3, [r7, #52] ; 0x34 - 8015a9a: 685a ldr r2, [r3, #4] - 8015a9c: 6b7b ldr r3, [r7, #52] ; 0x34 - 8015a9e: 891b ldrh r3, [r3, #8] - 8015aa0: 4619 mov r1, r3 - 8015aa2: 4610 mov r0, r2 - 8015aa4: f7fb ff1a bl 80118dc + 8015a9a: 68db ldr r3, [r3, #12] + 8015a9c: 685b ldr r3, [r3, #4] + 8015a9e: b29b uxth r3, r3 + 8015aa0: 1ad3 subs r3, r2, r3 + 8015aa2: b29a uxth r2, r3 + 8015aa4: 6b7b ldr r3, [r7, #52] ; 0x34 + 8015aa6: 811a strh r2, [r3, #8] + pbuf_realloc(prev->p, prev->len); + 8015aa8: 6b7b ldr r3, [r7, #52] ; 0x34 + 8015aaa: 685a ldr r2, [r3, #4] + 8015aac: 6b7b ldr r3, [r7, #52] ; 0x34 + 8015aae: 891b ldrh r3, [r3, #8] + 8015ab0: 4619 mov r1, r3 + 8015ab2: 4610 mov r0, r2 + 8015ab4: f7fb ff1a bl 80118ec } prev->next = cseg; - 8015aa8: 6b7b ldr r3, [r7, #52] ; 0x34 - 8015aaa: 69fa ldr r2, [r7, #28] - 8015aac: 601a str r2, [r3, #0] + 8015ab8: 6b7b ldr r3, [r7, #52] ; 0x34 + 8015aba: 69fa ldr r2, [r7, #28] + 8015abc: 601a str r2, [r3, #0] tcp_oos_insert_segment(cseg, next); - 8015aae: 6bb9 ldr r1, [r7, #56] ; 0x38 - 8015ab0: 69f8 ldr r0, [r7, #28] - 8015ab2: f7ff f883 bl 8014bbc + 8015abe: 6bb9 ldr r1, [r7, #56] ; 0x38 + 8015ac0: 69f8 ldr r0, [r7, #28] + 8015ac2: f7ff f883 bl 8014bcc } break; - 8015ab6: e0e2 b.n 8015c7e - 8015ab8: 20008750 .word 0x20008750 - 8015abc: 2000874d .word 0x2000874d - 8015ac0: 20008720 .word 0x20008720 - 8015ac4: 20008740 .word 0x20008740 + 8015ac6: e0e2 b.n 8015c8e + 8015ac8: 20008750 .word 0x20008750 + 8015acc: 2000874d .word 0x2000874d + 8015ad0: 20008720 .word 0x20008720 + 8015ad4: 20008740 .word 0x20008740 #endif /* LWIP_TCP_SACK_OUT */ /* We don't use 'prev' below, so let's set it to current 'next'. This way even if we break the loop below, 'prev' will be pointing at the segment right in front of the newly added one. */ prev = next; - 8015ac8: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015aca: 637b str r3, [r7, #52] ; 0x34 + 8015ad8: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015ada: 637b str r3, [r7, #52] ; 0x34 /* If the "next" segment is the last segment on the ooseq queue, we add the incoming segment to the end of the list. */ if (next->next == NULL && - 8015acc: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015ace: 681b ldr r3, [r3, #0] - 8015ad0: 2b00 cmp r3, #0 - 8015ad2: f040 80c6 bne.w 8015c62 + 8015adc: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015ade: 681b ldr r3, [r3, #0] + 8015ae0: 2b00 cmp r3, #0 + 8015ae2: f040 80c6 bne.w 8015c72 TCP_SEQ_GT(seqno, next->tcphdr->seqno)) { - 8015ad6: 4b80 ldr r3, [pc, #512] ; (8015cd8 ) - 8015ad8: 681a ldr r2, [r3, #0] - 8015ada: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015adc: 68db ldr r3, [r3, #12] - 8015ade: 685b ldr r3, [r3, #4] - 8015ae0: 1ad3 subs r3, r2, r3 + 8015ae6: 4b80 ldr r3, [pc, #512] ; (8015ce8 ) + 8015ae8: 681a ldr r2, [r3, #0] + 8015aea: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015aec: 68db ldr r3, [r3, #12] + 8015aee: 685b ldr r3, [r3, #4] + 8015af0: 1ad3 subs r3, r2, r3 if (next->next == NULL && - 8015ae2: 2b00 cmp r3, #0 - 8015ae4: f340 80bd ble.w 8015c62 + 8015af2: 2b00 cmp r3, #0 + 8015af4: f340 80bd ble.w 8015c72 if (TCPH_FLAGS(next->tcphdr) & TCP_FIN) { - 8015ae8: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015aea: 68db ldr r3, [r3, #12] - 8015aec: 899b ldrh r3, [r3, #12] - 8015aee: b29b uxth r3, r3 - 8015af0: 4618 mov r0, r3 - 8015af2: f7fa fcc5 bl 8010480 - 8015af6: 4603 mov r3, r0 - 8015af8: b2db uxtb r3, r3 - 8015afa: f003 0301 and.w r3, r3, #1 - 8015afe: 2b00 cmp r3, #0 - 8015b00: f040 80bf bne.w 8015c82 + 8015af8: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015afa: 68db ldr r3, [r3, #12] + 8015afc: 899b ldrh r3, [r3, #12] + 8015afe: b29b uxth r3, r3 + 8015b00: 4618 mov r0, r3 + 8015b02: f7fa fcc5 bl 8010490 + 8015b06: 4603 mov r3, r0 + 8015b08: b2db uxtb r3, r3 + 8015b0a: f003 0301 and.w r3, r3, #1 + 8015b0e: 2b00 cmp r3, #0 + 8015b10: f040 80bf bne.w 8015c92 /* segment "next" already contains all data */ break; } next->next = tcp_seg_copy(&inseg); - 8015b04: 4875 ldr r0, [pc, #468] ; (8015cdc ) - 8015b06: f7fd fb0b bl 8013120 - 8015b0a: 4602 mov r2, r0 - 8015b0c: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b0e: 601a str r2, [r3, #0] + 8015b14: 4875 ldr r0, [pc, #468] ; (8015cec ) + 8015b16: f7fd fb0b bl 8013130 + 8015b1a: 4602 mov r2, r0 + 8015b1c: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015b1e: 601a str r2, [r3, #0] if (next->next != NULL) { - 8015b10: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b12: 681b ldr r3, [r3, #0] - 8015b14: 2b00 cmp r3, #0 - 8015b16: f000 80b6 beq.w 8015c86 + 8015b20: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015b22: 681b ldr r3, [r3, #0] + 8015b24: 2b00 cmp r3, #0 + 8015b26: f000 80b6 beq.w 8015c96 if (TCP_SEQ_GT(next->tcphdr->seqno + next->len, seqno)) { - 8015b1a: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b1c: 68db ldr r3, [r3, #12] - 8015b1e: 685b ldr r3, [r3, #4] - 8015b20: 6bba ldr r2, [r7, #56] ; 0x38 - 8015b22: 8912 ldrh r2, [r2, #8] - 8015b24: 441a add r2, r3 - 8015b26: 4b6c ldr r3, [pc, #432] ; (8015cd8 ) - 8015b28: 681b ldr r3, [r3, #0] - 8015b2a: 1ad3 subs r3, r2, r3 - 8015b2c: 2b00 cmp r3, #0 - 8015b2e: dd12 ble.n 8015b56 + 8015b2a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015b2c: 68db ldr r3, [r3, #12] + 8015b2e: 685b ldr r3, [r3, #4] + 8015b30: 6bba ldr r2, [r7, #56] ; 0x38 + 8015b32: 8912 ldrh r2, [r2, #8] + 8015b34: 441a add r2, r3 + 8015b36: 4b6c ldr r3, [pc, #432] ; (8015ce8 ) + 8015b38: 681b ldr r3, [r3, #0] + 8015b3a: 1ad3 subs r3, r2, r3 + 8015b3c: 2b00 cmp r3, #0 + 8015b3e: dd12 ble.n 8015b66 /* We need to trim the last segment. */ next->len = (u16_t)(seqno - next->tcphdr->seqno); - 8015b30: 4b69 ldr r3, [pc, #420] ; (8015cd8 ) - 8015b32: 681b ldr r3, [r3, #0] - 8015b34: b29a uxth r2, r3 - 8015b36: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b38: 68db ldr r3, [r3, #12] - 8015b3a: 685b ldr r3, [r3, #4] - 8015b3c: b29b uxth r3, r3 - 8015b3e: 1ad3 subs r3, r2, r3 - 8015b40: b29a uxth r2, r3 - 8015b42: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b44: 811a strh r2, [r3, #8] - pbuf_realloc(next->p, next->len); + 8015b40: 4b69 ldr r3, [pc, #420] ; (8015ce8 ) + 8015b42: 681b ldr r3, [r3, #0] + 8015b44: b29a uxth r2, r3 8015b46: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b48: 685a ldr r2, [r3, #4] - 8015b4a: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b4c: 891b ldrh r3, [r3, #8] - 8015b4e: 4619 mov r1, r3 - 8015b50: 4610 mov r0, r2 - 8015b52: f7fb fec3 bl 80118dc + 8015b48: 68db ldr r3, [r3, #12] + 8015b4a: 685b ldr r3, [r3, #4] + 8015b4c: b29b uxth r3, r3 + 8015b4e: 1ad3 subs r3, r2, r3 + 8015b50: b29a uxth r2, r3 + 8015b52: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015b54: 811a strh r2, [r3, #8] + pbuf_realloc(next->p, next->len); + 8015b56: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015b58: 685a ldr r2, [r3, #4] + 8015b5a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015b5c: 891b ldrh r3, [r3, #8] + 8015b5e: 4619 mov r1, r3 + 8015b60: 4610 mov r0, r2 + 8015b62: f7fb fec3 bl 80118ec } /* check if the remote side overruns our receive window */ if (TCP_SEQ_GT((u32_t)tcplen + seqno, pcb->rcv_nxt + (u32_t)pcb->rcv_wnd)) { - 8015b56: 4b62 ldr r3, [pc, #392] ; (8015ce0 ) - 8015b58: 881b ldrh r3, [r3, #0] - 8015b5a: 461a mov r2, r3 - 8015b5c: 4b5e ldr r3, [pc, #376] ; (8015cd8 ) - 8015b5e: 681b ldr r3, [r3, #0] - 8015b60: 441a add r2, r3 - 8015b62: 687b ldr r3, [r7, #4] - 8015b64: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015b66: 6879 ldr r1, [r7, #4] - 8015b68: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8015b6a: 440b add r3, r1 - 8015b6c: 1ad3 subs r3, r2, r3 - 8015b6e: 2b00 cmp r3, #0 - 8015b70: f340 8089 ble.w 8015c86 + 8015b66: 4b62 ldr r3, [pc, #392] ; (8015cf0 ) + 8015b68: 881b ldrh r3, [r3, #0] + 8015b6a: 461a mov r2, r3 + 8015b6c: 4b5e ldr r3, [pc, #376] ; (8015ce8 ) + 8015b6e: 681b ldr r3, [r3, #0] + 8015b70: 441a add r2, r3 + 8015b72: 687b ldr r3, [r7, #4] + 8015b74: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015b76: 6879 ldr r1, [r7, #4] + 8015b78: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8015b7a: 440b add r3, r1 + 8015b7c: 1ad3 subs r3, r2, r3 + 8015b7e: 2b00 cmp r3, #0 + 8015b80: f340 8089 ble.w 8015c96 LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_receive: other end overran receive window" "seqno %"U32_F" len %"U16_F" right edge %"U32_F"\n", seqno, tcplen, pcb->rcv_nxt + pcb->rcv_wnd)); if (TCPH_FLAGS(next->next->tcphdr) & TCP_FIN) { - 8015b74: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b76: 681b ldr r3, [r3, #0] - 8015b78: 68db ldr r3, [r3, #12] - 8015b7a: 899b ldrh r3, [r3, #12] - 8015b7c: b29b uxth r3, r3 - 8015b7e: 4618 mov r0, r3 - 8015b80: f7fa fc7e bl 8010480 - 8015b84: 4603 mov r3, r0 - 8015b86: b2db uxtb r3, r3 - 8015b88: f003 0301 and.w r3, r3, #1 - 8015b8c: 2b00 cmp r3, #0 - 8015b8e: d022 beq.n 8015bd6 + 8015b84: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015b86: 681b ldr r3, [r3, #0] + 8015b88: 68db ldr r3, [r3, #12] + 8015b8a: 899b ldrh r3, [r3, #12] + 8015b8c: b29b uxth r3, r3 + 8015b8e: 4618 mov r0, r3 + 8015b90: f7fa fc7e bl 8010490 + 8015b94: 4603 mov r3, r0 + 8015b96: b2db uxtb r3, r3 + 8015b98: f003 0301 and.w r3, r3, #1 + 8015b9c: 2b00 cmp r3, #0 + 8015b9e: d022 beq.n 8015be6 /* Must remove the FIN from the header as we're trimming * that byte of sequence-space from the packet */ TCPH_FLAGS_SET(next->next->tcphdr, TCPH_FLAGS(next->next->tcphdr) & ~TCP_FIN); - 8015b90: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015b92: 681b ldr r3, [r3, #0] - 8015b94: 68db ldr r3, [r3, #12] - 8015b96: 899b ldrh r3, [r3, #12] - 8015b98: b29b uxth r3, r3 - 8015b9a: b21b sxth r3, r3 - 8015b9c: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 8015ba0: b21c sxth r4, r3 - 8015ba2: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015ba4: 681b ldr r3, [r3, #0] - 8015ba6: 68db ldr r3, [r3, #12] - 8015ba8: 899b ldrh r3, [r3, #12] - 8015baa: b29b uxth r3, r3 - 8015bac: 4618 mov r0, r3 - 8015bae: f7fa fc67 bl 8010480 - 8015bb2: 4603 mov r3, r0 - 8015bb4: b2db uxtb r3, r3 - 8015bb6: b29b uxth r3, r3 - 8015bb8: f003 033e and.w r3, r3, #62 ; 0x3e - 8015bbc: b29b uxth r3, r3 - 8015bbe: 4618 mov r0, r3 - 8015bc0: f7fa fc5e bl 8010480 - 8015bc4: 4603 mov r3, r0 - 8015bc6: b21b sxth r3, r3 - 8015bc8: 4323 orrs r3, r4 - 8015bca: b21a sxth r2, r3 - 8015bcc: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015bce: 681b ldr r3, [r3, #0] - 8015bd0: 68db ldr r3, [r3, #12] - 8015bd2: b292 uxth r2, r2 - 8015bd4: 819a strh r2, [r3, #12] + 8015ba0: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015ba2: 681b ldr r3, [r3, #0] + 8015ba4: 68db ldr r3, [r3, #12] + 8015ba6: 899b ldrh r3, [r3, #12] + 8015ba8: b29b uxth r3, r3 + 8015baa: b21b sxth r3, r3 + 8015bac: f423 537c bic.w r3, r3, #16128 ; 0x3f00 + 8015bb0: b21c sxth r4, r3 + 8015bb2: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015bb4: 681b ldr r3, [r3, #0] + 8015bb6: 68db ldr r3, [r3, #12] + 8015bb8: 899b ldrh r3, [r3, #12] + 8015bba: b29b uxth r3, r3 + 8015bbc: 4618 mov r0, r3 + 8015bbe: f7fa fc67 bl 8010490 + 8015bc2: 4603 mov r3, r0 + 8015bc4: b2db uxtb r3, r3 + 8015bc6: b29b uxth r3, r3 + 8015bc8: f003 033e and.w r3, r3, #62 ; 0x3e + 8015bcc: b29b uxth r3, r3 + 8015bce: 4618 mov r0, r3 + 8015bd0: f7fa fc5e bl 8010490 + 8015bd4: 4603 mov r3, r0 + 8015bd6: b21b sxth r3, r3 + 8015bd8: 4323 orrs r3, r4 + 8015bda: b21a sxth r2, r3 + 8015bdc: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015bde: 681b ldr r3, [r3, #0] + 8015be0: 68db ldr r3, [r3, #12] + 8015be2: b292 uxth r2, r2 + 8015be4: 819a strh r2, [r3, #12] } /* Adjust length of segment to fit in the window. */ next->next->len = (u16_t)(pcb->rcv_nxt + pcb->rcv_wnd - seqno); - 8015bd6: 687b ldr r3, [r7, #4] - 8015bd8: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015bda: b29a uxth r2, r3 - 8015bdc: 687b ldr r3, [r7, #4] - 8015bde: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8015be0: 4413 add r3, r2 - 8015be2: b299 uxth r1, r3 - 8015be4: 4b3c ldr r3, [pc, #240] ; (8015cd8 ) - 8015be6: 681b ldr r3, [r3, #0] - 8015be8: b29a uxth r2, r3 - 8015bea: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015bec: 681b ldr r3, [r3, #0] - 8015bee: 1a8a subs r2, r1, r2 - 8015bf0: b292 uxth r2, r2 - 8015bf2: 811a strh r2, [r3, #8] - pbuf_realloc(next->next->p, next->next->len); - 8015bf4: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015be6: 687b ldr r3, [r7, #4] + 8015be8: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015bea: b29a uxth r2, r3 + 8015bec: 687b ldr r3, [r7, #4] + 8015bee: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8015bf0: 4413 add r3, r2 + 8015bf2: b299 uxth r1, r3 + 8015bf4: 4b3c ldr r3, [pc, #240] ; (8015ce8 ) 8015bf6: 681b ldr r3, [r3, #0] - 8015bf8: 685a ldr r2, [r3, #4] + 8015bf8: b29a uxth r2, r3 8015bfa: 6bbb ldr r3, [r7, #56] ; 0x38 8015bfc: 681b ldr r3, [r3, #0] - 8015bfe: 891b ldrh r3, [r3, #8] - 8015c00: 4619 mov r1, r3 - 8015c02: 4610 mov r0, r2 - 8015c04: f7fb fe6a bl 80118dc + 8015bfe: 1a8a subs r2, r1, r2 + 8015c00: b292 uxth r2, r2 + 8015c02: 811a strh r2, [r3, #8] + pbuf_realloc(next->next->p, next->next->len); + 8015c04: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015c06: 681b ldr r3, [r3, #0] + 8015c08: 685a ldr r2, [r3, #4] + 8015c0a: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015c0c: 681b ldr r3, [r3, #0] + 8015c0e: 891b ldrh r3, [r3, #8] + 8015c10: 4619 mov r1, r3 + 8015c12: 4610 mov r0, r2 + 8015c14: f7fb fe6a bl 80118ec tcplen = TCP_TCPLEN(next->next); - 8015c08: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015c0a: 681b ldr r3, [r3, #0] - 8015c0c: 891c ldrh r4, [r3, #8] - 8015c0e: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015c10: 681b ldr r3, [r3, #0] - 8015c12: 68db ldr r3, [r3, #12] - 8015c14: 899b ldrh r3, [r3, #12] - 8015c16: b29b uxth r3, r3 - 8015c18: 4618 mov r0, r3 - 8015c1a: f7fa fc31 bl 8010480 - 8015c1e: 4603 mov r3, r0 - 8015c20: b2db uxtb r3, r3 - 8015c22: f003 0303 and.w r3, r3, #3 - 8015c26: 2b00 cmp r3, #0 - 8015c28: d001 beq.n 8015c2e - 8015c2a: 2301 movs r3, #1 - 8015c2c: e000 b.n 8015c30 - 8015c2e: 2300 movs r3, #0 - 8015c30: 4423 add r3, r4 - 8015c32: b29a uxth r2, r3 - 8015c34: 4b2a ldr r3, [pc, #168] ; (8015ce0 ) - 8015c36: 801a strh r2, [r3, #0] + 8015c18: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015c1a: 681b ldr r3, [r3, #0] + 8015c1c: 891c ldrh r4, [r3, #8] + 8015c1e: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015c20: 681b ldr r3, [r3, #0] + 8015c22: 68db ldr r3, [r3, #12] + 8015c24: 899b ldrh r3, [r3, #12] + 8015c26: b29b uxth r3, r3 + 8015c28: 4618 mov r0, r3 + 8015c2a: f7fa fc31 bl 8010490 + 8015c2e: 4603 mov r3, r0 + 8015c30: b2db uxtb r3, r3 + 8015c32: f003 0303 and.w r3, r3, #3 + 8015c36: 2b00 cmp r3, #0 + 8015c38: d001 beq.n 8015c3e + 8015c3a: 2301 movs r3, #1 + 8015c3c: e000 b.n 8015c40 + 8015c3e: 2300 movs r3, #0 + 8015c40: 4423 add r3, r4 + 8015c42: b29a uxth r2, r3 + 8015c44: 4b2a ldr r3, [pc, #168] ; (8015cf0 ) + 8015c46: 801a strh r2, [r3, #0] LWIP_ASSERT("tcp_receive: segment not trimmed correctly to rcv_wnd\n", - 8015c38: 4b29 ldr r3, [pc, #164] ; (8015ce0 ) - 8015c3a: 881b ldrh r3, [r3, #0] - 8015c3c: 461a mov r2, r3 - 8015c3e: 4b26 ldr r3, [pc, #152] ; (8015cd8 ) - 8015c40: 681b ldr r3, [r3, #0] - 8015c42: 441a add r2, r3 - 8015c44: 687b ldr r3, [r7, #4] - 8015c46: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015c48: 6879 ldr r1, [r7, #4] - 8015c4a: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8015c4c: 440b add r3, r1 - 8015c4e: 429a cmp r2, r3 - 8015c50: d019 beq.n 8015c86 - 8015c52: 4b24 ldr r3, [pc, #144] ; (8015ce4 ) - 8015c54: f240 62f9 movw r2, #1785 ; 0x6f9 - 8015c58: 4923 ldr r1, [pc, #140] ; (8015ce8 ) - 8015c5a: 4824 ldr r0, [pc, #144] ; (8015cec ) - 8015c5c: f006 fcf4 bl 801c648 + 8015c48: 4b29 ldr r3, [pc, #164] ; (8015cf0 ) + 8015c4a: 881b ldrh r3, [r3, #0] + 8015c4c: 461a mov r2, r3 + 8015c4e: 4b26 ldr r3, [pc, #152] ; (8015ce8 ) + 8015c50: 681b ldr r3, [r3, #0] + 8015c52: 441a add r2, r3 + 8015c54: 687b ldr r3, [r7, #4] + 8015c56: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015c58: 6879 ldr r1, [r7, #4] + 8015c5a: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8015c5c: 440b add r3, r1 + 8015c5e: 429a cmp r2, r3 + 8015c60: d019 beq.n 8015c96 + 8015c62: 4b24 ldr r3, [pc, #144] ; (8015cf4 ) + 8015c64: f240 62f9 movw r2, #1785 ; 0x6f9 + 8015c68: 4923 ldr r1, [pc, #140] ; (8015cf8 ) + 8015c6a: 4824 ldr r0, [pc, #144] ; (8015cfc ) + 8015c6c: f006 fcf4 bl 801c658 (seqno + tcplen) == (pcb->rcv_nxt + pcb->rcv_wnd)); } } break; - 8015c60: e011 b.n 8015c86 + 8015c70: e011 b.n 8015c96 for (next = pcb->ooseq; next != NULL; next = next->next) { - 8015c62: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015c64: 681b ldr r3, [r3, #0] - 8015c66: 63bb str r3, [r7, #56] ; 0x38 - 8015c68: 6bbb ldr r3, [r7, #56] ; 0x38 - 8015c6a: 2b00 cmp r3, #0 - 8015c6c: f47f aea4 bne.w 80159b8 - 8015c70: e00a b.n 8015c88 + 8015c72: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015c74: 681b ldr r3, [r3, #0] + 8015c76: 63bb str r3, [r7, #56] ; 0x38 + 8015c78: 6bbb ldr r3, [r7, #56] ; 0x38 + 8015c7a: 2b00 cmp r3, #0 + 8015c7c: f47f aea4 bne.w 80159c8 + 8015c80: e00a b.n 8015c98 break; - 8015c72: bf00 nop - 8015c74: e008 b.n 8015c88 + 8015c82: bf00 nop + 8015c84: e008 b.n 8015c98 break; - 8015c76: bf00 nop - 8015c78: e006 b.n 8015c88 + 8015c86: bf00 nop + 8015c88: e006 b.n 8015c98 break; - 8015c7a: bf00 nop - 8015c7c: e004 b.n 8015c88 + 8015c8a: bf00 nop + 8015c8c: e004 b.n 8015c98 break; - 8015c7e: bf00 nop - 8015c80: e002 b.n 8015c88 + 8015c8e: bf00 nop + 8015c90: e002 b.n 8015c98 break; - 8015c82: bf00 nop - 8015c84: e000 b.n 8015c88 + 8015c92: bf00 nop + 8015c94: e000 b.n 8015c98 break; - 8015c86: bf00 nop + 8015c96: bf00 nop #endif /* TCP_OOSEQ_BYTES_LIMIT || TCP_OOSEQ_PBUFS_LIMIT */ #endif /* TCP_QUEUE_OOSEQ */ /* We send the ACK packet after we've (potentially) dealt with SACKs, so they can be included in the acknowledgment. */ tcp_send_empty_ack(pcb); - 8015c88: 6878 ldr r0, [r7, #4] - 8015c8a: f001 fa43 bl 8017114 + 8015c98: 6878 ldr r0, [r7, #4] + 8015c9a: f001 fa43 bl 8017124 if (pcb->rcv_nxt == seqno) { - 8015c8e: e003 b.n 8015c98 + 8015c9e: e003 b.n 8015ca8 } } else { /* The incoming segment is not within the window. */ tcp_send_empty_ack(pcb); - 8015c90: 6878 ldr r0, [r7, #4] - 8015c92: f001 fa3f bl 8017114 + 8015ca0: 6878 ldr r0, [r7, #4] + 8015ca2: f001 fa3f bl 8017124 if (TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, - 8015c96: e01a b.n 8015cce - 8015c98: e019 b.n 8015cce + 8015ca6: e01a b.n 8015cde + 8015ca8: e019 b.n 8015cde } } else { /* Segments with length 0 is taken care of here. Segments that fall out of the window are ACKed. */ if (!TCP_SEQ_BETWEEN(seqno, pcb->rcv_nxt, pcb->rcv_nxt + pcb->rcv_wnd - 1)) { - 8015c9a: 4b0f ldr r3, [pc, #60] ; (8015cd8 ) - 8015c9c: 681a ldr r2, [r3, #0] - 8015c9e: 687b ldr r3, [r7, #4] - 8015ca0: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015ca2: 1ad3 subs r3, r2, r3 - 8015ca4: 2b00 cmp r3, #0 - 8015ca6: db0a blt.n 8015cbe - 8015ca8: 4b0b ldr r3, [pc, #44] ; (8015cd8 ) - 8015caa: 681a ldr r2, [r3, #0] - 8015cac: 687b ldr r3, [r7, #4] - 8015cae: 6a5b ldr r3, [r3, #36] ; 0x24 - 8015cb0: 6879 ldr r1, [r7, #4] - 8015cb2: 8d09 ldrh r1, [r1, #40] ; 0x28 - 8015cb4: 440b add r3, r1 - 8015cb6: 1ad3 subs r3, r2, r3 - 8015cb8: 3301 adds r3, #1 - 8015cba: 2b00 cmp r3, #0 - 8015cbc: dd07 ble.n 8015cce + 8015caa: 4b0f ldr r3, [pc, #60] ; (8015ce8 ) + 8015cac: 681a ldr r2, [r3, #0] + 8015cae: 687b ldr r3, [r7, #4] + 8015cb0: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015cb2: 1ad3 subs r3, r2, r3 + 8015cb4: 2b00 cmp r3, #0 + 8015cb6: db0a blt.n 8015cce + 8015cb8: 4b0b ldr r3, [pc, #44] ; (8015ce8 ) + 8015cba: 681a ldr r2, [r3, #0] + 8015cbc: 687b ldr r3, [r7, #4] + 8015cbe: 6a5b ldr r3, [r3, #36] ; 0x24 + 8015cc0: 6879 ldr r1, [r7, #4] + 8015cc2: 8d09 ldrh r1, [r1, #40] ; 0x28 + 8015cc4: 440b add r3, r1 + 8015cc6: 1ad3 subs r3, r2, r3 + 8015cc8: 3301 adds r3, #1 + 8015cca: 2b00 cmp r3, #0 + 8015ccc: dd07 ble.n 8015cde tcp_ack_now(pcb); - 8015cbe: 687b ldr r3, [r7, #4] - 8015cc0: 8b5b ldrh r3, [r3, #26] - 8015cc2: f043 0302 orr.w r3, r3, #2 - 8015cc6: b29a uxth r2, r3 - 8015cc8: 687b ldr r3, [r7, #4] - 8015cca: 835a strh r2, [r3, #26] + 8015cce: 687b ldr r3, [r7, #4] + 8015cd0: 8b5b ldrh r3, [r3, #26] + 8015cd2: f043 0302 orr.w r3, r3, #2 + 8015cd6: b29a uxth r2, r3 + 8015cd8: 687b ldr r3, [r7, #4] + 8015cda: 835a strh r2, [r3, #26] } } } - 8015ccc: e7ff b.n 8015cce - 8015cce: bf00 nop - 8015cd0: 3750 adds r7, #80 ; 0x50 - 8015cd2: 46bd mov sp, r7 - 8015cd4: bdb0 pop {r4, r5, r7, pc} - 8015cd6: bf00 nop - 8015cd8: 20008740 .word 0x20008740 - 8015cdc: 20008720 .word 0x20008720 - 8015ce0: 2000874a .word 0x2000874a - 8015ce4: 0801ec40 .word 0x0801ec40 - 8015ce8: 0801efe8 .word 0x0801efe8 - 8015cec: 0801ec8c .word 0x0801ec8c + 8015cdc: e7ff b.n 8015cde + 8015cde: bf00 nop + 8015ce0: 3750 adds r7, #80 ; 0x50 + 8015ce2: 46bd mov sp, r7 + 8015ce4: bdb0 pop {r4, r5, r7, pc} + 8015ce6: bf00 nop + 8015ce8: 20008740 .word 0x20008740 + 8015cec: 20008720 .word 0x20008720 + 8015cf0: 2000874a .word 0x2000874a + 8015cf4: 0801ec50 .word 0x0801ec50 + 8015cf8: 0801eff8 .word 0x0801eff8 + 8015cfc: 0801ec9c .word 0x0801ec9c -08015cf0 : +08015d00 : static u8_t tcp_get_next_optbyte(void) { - 8015cf0: b480 push {r7} - 8015cf2: b083 sub sp, #12 - 8015cf4: af00 add r7, sp, #0 + 8015d00: b480 push {r7} + 8015d02: b083 sub sp, #12 + 8015d04: af00 add r7, sp, #0 u16_t optidx = tcp_optidx++; - 8015cf6: 4b15 ldr r3, [pc, #84] ; (8015d4c ) - 8015cf8: 881b ldrh r3, [r3, #0] - 8015cfa: 1c5a adds r2, r3, #1 - 8015cfc: b291 uxth r1, r2 - 8015cfe: 4a13 ldr r2, [pc, #76] ; (8015d4c ) - 8015d00: 8011 strh r1, [r2, #0] - 8015d02: 80fb strh r3, [r7, #6] + 8015d06: 4b15 ldr r3, [pc, #84] ; (8015d5c ) + 8015d08: 881b ldrh r3, [r3, #0] + 8015d0a: 1c5a adds r2, r3, #1 + 8015d0c: b291 uxth r1, r2 + 8015d0e: 4a13 ldr r2, [pc, #76] ; (8015d5c ) + 8015d10: 8011 strh r1, [r2, #0] + 8015d12: 80fb strh r3, [r7, #6] if ((tcphdr_opt2 == NULL) || (optidx < tcphdr_opt1len)) { - 8015d04: 4b12 ldr r3, [pc, #72] ; (8015d50 ) - 8015d06: 681b ldr r3, [r3, #0] - 8015d08: 2b00 cmp r3, #0 - 8015d0a: d004 beq.n 8015d16 - 8015d0c: 4b11 ldr r3, [pc, #68] ; (8015d54 ) - 8015d0e: 881b ldrh r3, [r3, #0] - 8015d10: 88fa ldrh r2, [r7, #6] - 8015d12: 429a cmp r2, r3 - 8015d14: d208 bcs.n 8015d28 + 8015d14: 4b12 ldr r3, [pc, #72] ; (8015d60 ) + 8015d16: 681b ldr r3, [r3, #0] + 8015d18: 2b00 cmp r3, #0 + 8015d1a: d004 beq.n 8015d26 + 8015d1c: 4b11 ldr r3, [pc, #68] ; (8015d64 ) + 8015d1e: 881b ldrh r3, [r3, #0] + 8015d20: 88fa ldrh r2, [r7, #6] + 8015d22: 429a cmp r2, r3 + 8015d24: d208 bcs.n 8015d38 u8_t *opts = (u8_t *)tcphdr + TCP_HLEN; - 8015d16: 4b10 ldr r3, [pc, #64] ; (8015d58 ) - 8015d18: 681b ldr r3, [r3, #0] - 8015d1a: 3314 adds r3, #20 - 8015d1c: 603b str r3, [r7, #0] + 8015d26: 4b10 ldr r3, [pc, #64] ; (8015d68 ) + 8015d28: 681b ldr r3, [r3, #0] + 8015d2a: 3314 adds r3, #20 + 8015d2c: 603b str r3, [r7, #0] return opts[optidx]; - 8015d1e: 88fb ldrh r3, [r7, #6] - 8015d20: 683a ldr r2, [r7, #0] - 8015d22: 4413 add r3, r2 - 8015d24: 781b ldrb r3, [r3, #0] - 8015d26: e00b b.n 8015d40 + 8015d2e: 88fb ldrh r3, [r7, #6] + 8015d30: 683a ldr r2, [r7, #0] + 8015d32: 4413 add r3, r2 + 8015d34: 781b ldrb r3, [r3, #0] + 8015d36: e00b b.n 8015d50 } else { u8_t idx = (u8_t)(optidx - tcphdr_opt1len); - 8015d28: 88fb ldrh r3, [r7, #6] - 8015d2a: b2da uxtb r2, r3 - 8015d2c: 4b09 ldr r3, [pc, #36] ; (8015d54 ) - 8015d2e: 881b ldrh r3, [r3, #0] - 8015d30: b2db uxtb r3, r3 - 8015d32: 1ad3 subs r3, r2, r3 - 8015d34: 717b strb r3, [r7, #5] + 8015d38: 88fb ldrh r3, [r7, #6] + 8015d3a: b2da uxtb r2, r3 + 8015d3c: 4b09 ldr r3, [pc, #36] ; (8015d64 ) + 8015d3e: 881b ldrh r3, [r3, #0] + 8015d40: b2db uxtb r3, r3 + 8015d42: 1ad3 subs r3, r2, r3 + 8015d44: 717b strb r3, [r7, #5] return tcphdr_opt2[idx]; - 8015d36: 4b06 ldr r3, [pc, #24] ; (8015d50 ) - 8015d38: 681a ldr r2, [r3, #0] - 8015d3a: 797b ldrb r3, [r7, #5] - 8015d3c: 4413 add r3, r2 - 8015d3e: 781b ldrb r3, [r3, #0] - } -} - 8015d40: 4618 mov r0, r3 - 8015d42: 370c adds r7, #12 - 8015d44: 46bd mov sp, r7 - 8015d46: f85d 7b04 ldr.w r7, [sp], #4 - 8015d4a: 4770 bx lr - 8015d4c: 2000873c .word 0x2000873c - 8015d50: 20008738 .word 0x20008738 - 8015d54: 20008736 .word 0x20008736 - 8015d58: 20008730 .word 0x20008730 - -08015d5c : + 8015d46: 4b06 ldr r3, [pc, #24] ; (8015d60 ) + 8015d48: 681a ldr r2, [r3, #0] + 8015d4a: 797b ldrb r3, [r7, #5] + 8015d4c: 4413 add r3, r2 + 8015d4e: 781b ldrb r3, [r3, #0] + } +} + 8015d50: 4618 mov r0, r3 + 8015d52: 370c adds r7, #12 + 8015d54: 46bd mov sp, r7 + 8015d56: f85d 7b04 ldr.w r7, [sp], #4 + 8015d5a: 4770 bx lr + 8015d5c: 2000873c .word 0x2000873c + 8015d60: 20008738 .word 0x20008738 + 8015d64: 20008736 .word 0x20008736 + 8015d68: 20008730 .word 0x20008730 + +08015d6c : * * @param pcb the tcp_pcb for which a segment arrived */ static void tcp_parseopt(struct tcp_pcb *pcb) { - 8015d5c: b580 push {r7, lr} - 8015d5e: b084 sub sp, #16 - 8015d60: af00 add r7, sp, #0 - 8015d62: 6078 str r0, [r7, #4] + 8015d6c: b580 push {r7, lr} + 8015d6e: b084 sub sp, #16 + 8015d70: af00 add r7, sp, #0 + 8015d72: 6078 str r0, [r7, #4] u16_t mss; #if LWIP_TCP_TIMESTAMPS u32_t tsval; #endif LWIP_ASSERT("tcp_parseopt: invalid pcb", pcb != NULL); - 8015d64: 687b ldr r3, [r7, #4] - 8015d66: 2b00 cmp r3, #0 - 8015d68: d106 bne.n 8015d78 - 8015d6a: 4b31 ldr r3, [pc, #196] ; (8015e30 ) - 8015d6c: f240 727d movw r2, #1917 ; 0x77d - 8015d70: 4930 ldr r1, [pc, #192] ; (8015e34 ) - 8015d72: 4831 ldr r0, [pc, #196] ; (8015e38 ) - 8015d74: f006 fc68 bl 801c648 + 8015d74: 687b ldr r3, [r7, #4] + 8015d76: 2b00 cmp r3, #0 + 8015d78: d106 bne.n 8015d88 + 8015d7a: 4b31 ldr r3, [pc, #196] ; (8015e40 ) + 8015d7c: f240 727d movw r2, #1917 ; 0x77d + 8015d80: 4930 ldr r1, [pc, #192] ; (8015e44 ) + 8015d82: 4831 ldr r0, [pc, #196] ; (8015e48 ) + 8015d84: f006 fc68 bl 801c658 /* Parse the TCP MSS option, if present. */ if (tcphdr_optlen != 0) { - 8015d78: 4b30 ldr r3, [pc, #192] ; (8015e3c ) - 8015d7a: 881b ldrh r3, [r3, #0] - 8015d7c: 2b00 cmp r3, #0 - 8015d7e: d053 beq.n 8015e28 + 8015d88: 4b30 ldr r3, [pc, #192] ; (8015e4c ) + 8015d8a: 881b ldrh r3, [r3, #0] + 8015d8c: 2b00 cmp r3, #0 + 8015d8e: d053 beq.n 8015e38 for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) { - 8015d80: 4b2f ldr r3, [pc, #188] ; (8015e40 ) - 8015d82: 2200 movs r2, #0 - 8015d84: 801a strh r2, [r3, #0] - 8015d86: e043 b.n 8015e10 + 8015d90: 4b2f ldr r3, [pc, #188] ; (8015e50 ) + 8015d92: 2200 movs r2, #0 + 8015d94: 801a strh r2, [r3, #0] + 8015d96: e043 b.n 8015e20 u8_t opt = tcp_get_next_optbyte(); - 8015d88: f7ff ffb2 bl 8015cf0 - 8015d8c: 4603 mov r3, r0 - 8015d8e: 73fb strb r3, [r7, #15] + 8015d98: f7ff ffb2 bl 8015d00 + 8015d9c: 4603 mov r3, r0 + 8015d9e: 73fb strb r3, [r7, #15] switch (opt) { - 8015d90: 7bfb ldrb r3, [r7, #15] - 8015d92: 2b01 cmp r3, #1 - 8015d94: d03c beq.n 8015e10 - 8015d96: 2b02 cmp r3, #2 - 8015d98: d002 beq.n 8015da0 - 8015d9a: 2b00 cmp r3, #0 - 8015d9c: d03f beq.n 8015e1e - 8015d9e: e026 b.n 8015dee + 8015da0: 7bfb ldrb r3, [r7, #15] + 8015da2: 2b01 cmp r3, #1 + 8015da4: d03c beq.n 8015e20 + 8015da6: 2b02 cmp r3, #2 + 8015da8: d002 beq.n 8015db0 + 8015daa: 2b00 cmp r3, #0 + 8015dac: d03f beq.n 8015e2e + 8015dae: e026 b.n 8015dfe /* NOP option. */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: NOP\n")); break; case LWIP_TCP_OPT_MSS: LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: MSS\n")); if (tcp_get_next_optbyte() != LWIP_TCP_OPT_LEN_MSS || (tcp_optidx - 2 + LWIP_TCP_OPT_LEN_MSS) > tcphdr_optlen) { - 8015da0: f7ff ffa6 bl 8015cf0 - 8015da4: 4603 mov r3, r0 - 8015da6: 2b04 cmp r3, #4 - 8015da8: d13b bne.n 8015e22 - 8015daa: 4b25 ldr r3, [pc, #148] ; (8015e40 ) - 8015dac: 881b ldrh r3, [r3, #0] - 8015dae: 3302 adds r3, #2 - 8015db0: 4a22 ldr r2, [pc, #136] ; (8015e3c ) - 8015db2: 8812 ldrh r2, [r2, #0] - 8015db4: 4293 cmp r3, r2 - 8015db6: dc34 bgt.n 8015e22 + 8015db0: f7ff ffa6 bl 8015d00 + 8015db4: 4603 mov r3, r0 + 8015db6: 2b04 cmp r3, #4 + 8015db8: d13b bne.n 8015e32 + 8015dba: 4b25 ldr r3, [pc, #148] ; (8015e50 ) + 8015dbc: 881b ldrh r3, [r3, #0] + 8015dbe: 3302 adds r3, #2 + 8015dc0: 4a22 ldr r2, [pc, #136] ; (8015e4c ) + 8015dc2: 8812 ldrh r2, [r2, #0] + 8015dc4: 4293 cmp r3, r2 + 8015dc6: dc34 bgt.n 8015e32 /* Bad length */ LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: bad length\n")); return; } /* An MSS option with the right option length. */ mss = (u16_t)(tcp_get_next_optbyte() << 8); - 8015db8: f7ff ff9a bl 8015cf0 - 8015dbc: 4603 mov r3, r0 - 8015dbe: b29b uxth r3, r3 - 8015dc0: 021b lsls r3, r3, #8 - 8015dc2: 81bb strh r3, [r7, #12] + 8015dc8: f7ff ff9a bl 8015d00 + 8015dcc: 4603 mov r3, r0 + 8015dce: b29b uxth r3, r3 + 8015dd0: 021b lsls r3, r3, #8 + 8015dd2: 81bb strh r3, [r7, #12] mss |= tcp_get_next_optbyte(); - 8015dc4: f7ff ff94 bl 8015cf0 - 8015dc8: 4603 mov r3, r0 - 8015dca: b29a uxth r2, r3 - 8015dcc: 89bb ldrh r3, [r7, #12] - 8015dce: 4313 orrs r3, r2 - 8015dd0: 81bb strh r3, [r7, #12] + 8015dd4: f7ff ff94 bl 8015d00 + 8015dd8: 4603 mov r3, r0 + 8015dda: b29a uxth r2, r3 + 8015ddc: 89bb ldrh r3, [r7, #12] + 8015dde: 4313 orrs r3, r2 + 8015de0: 81bb strh r3, [r7, #12] /* Limit the mss to the configured TCP_MSS and prevent division by zero */ pcb->mss = ((mss > TCP_MSS) || (mss == 0)) ? TCP_MSS : mss; - 8015dd2: 89bb ldrh r3, [r7, #12] - 8015dd4: f5b3 7f06 cmp.w r3, #536 ; 0x218 - 8015dd8: d804 bhi.n 8015de4 - 8015dda: 89bb ldrh r3, [r7, #12] - 8015ddc: 2b00 cmp r3, #0 - 8015dde: d001 beq.n 8015de4 - 8015de0: 89ba ldrh r2, [r7, #12] - 8015de2: e001 b.n 8015de8 - 8015de4: f44f 7206 mov.w r2, #536 ; 0x218 - 8015de8: 687b ldr r3, [r7, #4] - 8015dea: 865a strh r2, [r3, #50] ; 0x32 + 8015de2: 89bb ldrh r3, [r7, #12] + 8015de4: f5b3 7f06 cmp.w r3, #536 ; 0x218 + 8015de8: d804 bhi.n 8015df4 + 8015dea: 89bb ldrh r3, [r7, #12] + 8015dec: 2b00 cmp r3, #0 + 8015dee: d001 beq.n 8015df4 + 8015df0: 89ba ldrh r2, [r7, #12] + 8015df2: e001 b.n 8015df8 + 8015df4: f44f 7206 mov.w r2, #536 ; 0x218 + 8015df8: 687b ldr r3, [r7, #4] + 8015dfa: 865a strh r2, [r3, #50] ; 0x32 break; - 8015dec: e010 b.n 8015e10 + 8015dfc: e010 b.n 8015e20 } break; #endif /* LWIP_TCP_SACK_OUT */ default: LWIP_DEBUGF(TCP_INPUT_DEBUG, ("tcp_parseopt: other\n")); data = tcp_get_next_optbyte(); - 8015dee: f7ff ff7f bl 8015cf0 - 8015df2: 4603 mov r3, r0 - 8015df4: 72fb strb r3, [r7, #11] + 8015dfe: f7ff ff7f bl 8015d00 + 8015e02: 4603 mov r3, r0 + 8015e04: 72fb strb r3, [r7, #11] if (data < 2) { - 8015df6: 7afb ldrb r3, [r7, #11] - 8015df8: 2b01 cmp r3, #1 - 8015dfa: d914 bls.n 8015e26 + 8015e06: 7afb ldrb r3, [r7, #11] + 8015e08: 2b01 cmp r3, #1 + 8015e0a: d914 bls.n 8015e36 and we don't process them further. */ return; } /* All other options have a length field, so that we easily can skip past them. */ tcp_optidx += data - 2; - 8015dfc: 7afb ldrb r3, [r7, #11] - 8015dfe: b29a uxth r2, r3 - 8015e00: 4b0f ldr r3, [pc, #60] ; (8015e40 ) - 8015e02: 881b ldrh r3, [r3, #0] - 8015e04: 4413 add r3, r2 - 8015e06: b29b uxth r3, r3 - 8015e08: 3b02 subs r3, #2 - 8015e0a: b29a uxth r2, r3 - 8015e0c: 4b0c ldr r3, [pc, #48] ; (8015e40 ) - 8015e0e: 801a strh r2, [r3, #0] + 8015e0c: 7afb ldrb r3, [r7, #11] + 8015e0e: b29a uxth r2, r3 + 8015e10: 4b0f ldr r3, [pc, #60] ; (8015e50 ) + 8015e12: 881b ldrh r3, [r3, #0] + 8015e14: 4413 add r3, r2 + 8015e16: b29b uxth r3, r3 + 8015e18: 3b02 subs r3, #2 + 8015e1a: b29a uxth r2, r3 + 8015e1c: 4b0c ldr r3, [pc, #48] ; (8015e50 ) + 8015e1e: 801a strh r2, [r3, #0] for (tcp_optidx = 0; tcp_optidx < tcphdr_optlen; ) { - 8015e10: 4b0b ldr r3, [pc, #44] ; (8015e40 ) - 8015e12: 881a ldrh r2, [r3, #0] - 8015e14: 4b09 ldr r3, [pc, #36] ; (8015e3c ) - 8015e16: 881b ldrh r3, [r3, #0] - 8015e18: 429a cmp r2, r3 - 8015e1a: d3b5 bcc.n 8015d88 - 8015e1c: e004 b.n 8015e28 + 8015e20: 4b0b ldr r3, [pc, #44] ; (8015e50 ) + 8015e22: 881a ldrh r2, [r3, #0] + 8015e24: 4b09 ldr r3, [pc, #36] ; (8015e4c ) + 8015e26: 881b ldrh r3, [r3, #0] + 8015e28: 429a cmp r2, r3 + 8015e2a: d3b5 bcc.n 8015d98 + 8015e2c: e004 b.n 8015e38 return; - 8015e1e: bf00 nop - 8015e20: e002 b.n 8015e28 + 8015e2e: bf00 nop + 8015e30: e002 b.n 8015e38 return; - 8015e22: bf00 nop - 8015e24: e000 b.n 8015e28 + 8015e32: bf00 nop + 8015e34: e000 b.n 8015e38 return; - 8015e26: bf00 nop + 8015e36: bf00 nop } } } } - 8015e28: 3710 adds r7, #16 - 8015e2a: 46bd mov sp, r7 - 8015e2c: bd80 pop {r7, pc} - 8015e2e: bf00 nop - 8015e30: 0801ec40 .word 0x0801ec40 - 8015e34: 0801f0a4 .word 0x0801f0a4 - 8015e38: 0801ec8c .word 0x0801ec8c - 8015e3c: 20008734 .word 0x20008734 - 8015e40: 2000873c .word 0x2000873c + 8015e38: 3710 adds r7, #16 + 8015e3a: 46bd mov sp, r7 + 8015e3c: bd80 pop {r7, pc} + 8015e3e: bf00 nop + 8015e40: 0801ec50 .word 0x0801ec50 + 8015e44: 0801f0b4 .word 0x0801f0b4 + 8015e48: 0801ec9c .word 0x0801ec9c + 8015e4c: 20008734 .word 0x20008734 + 8015e50: 2000873c .word 0x2000873c -08015e44 : +08015e54 : void tcp_trigger_input_pcb_close(void) { - 8015e44: b480 push {r7} - 8015e46: af00 add r7, sp, #0 + 8015e54: b480 push {r7} + 8015e56: af00 add r7, sp, #0 recv_flags |= TF_CLOSED; - 8015e48: 4b05 ldr r3, [pc, #20] ; (8015e60 ) - 8015e4a: 781b ldrb r3, [r3, #0] - 8015e4c: f043 0310 orr.w r3, r3, #16 - 8015e50: b2da uxtb r2, r3 - 8015e52: 4b03 ldr r3, [pc, #12] ; (8015e60 ) - 8015e54: 701a strb r2, [r3, #0] -} - 8015e56: bf00 nop - 8015e58: 46bd mov sp, r7 - 8015e5a: f85d 7b04 ldr.w r7, [sp], #4 - 8015e5e: 4770 bx lr - 8015e60: 2000874d .word 0x2000874d - -08015e64 : + 8015e58: 4b05 ldr r3, [pc, #20] ; (8015e70 ) + 8015e5a: 781b ldrb r3, [r3, #0] + 8015e5c: f043 0310 orr.w r3, r3, #16 + 8015e60: b2da uxtb r2, r3 + 8015e62: 4b03 ldr r3, [pc, #12] ; (8015e70 ) + 8015e64: 701a strb r2, [r3, #0] +} + 8015e66: bf00 nop + 8015e68: 46bd mov sp, r7 + 8015e6a: f85d 7b04 ldr.w r7, [sp], #4 + 8015e6e: 4770 bx lr + 8015e70: 2000874d .word 0x2000874d + +08015e74 : static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif); /* tcp_route: common code that returns a fixed bound netif or calls ip_route */ static struct netif * tcp_route(const struct tcp_pcb *pcb, const ip_addr_t *src, const ip_addr_t *dst) { - 8015e64: b580 push {r7, lr} - 8015e66: b084 sub sp, #16 - 8015e68: af00 add r7, sp, #0 - 8015e6a: 60f8 str r0, [r7, #12] - 8015e6c: 60b9 str r1, [r7, #8] - 8015e6e: 607a str r2, [r7, #4] + 8015e74: b580 push {r7, lr} + 8015e76: b084 sub sp, #16 + 8015e78: af00 add r7, sp, #0 + 8015e7a: 60f8 str r0, [r7, #12] + 8015e7c: 60b9 str r1, [r7, #8] + 8015e7e: 607a str r2, [r7, #4] LWIP_UNUSED_ARG(src); /* in case IPv4-only and source-based routing is disabled */ if ((pcb != NULL) && (pcb->netif_idx != NETIF_NO_INDEX)) { - 8015e70: 68fb ldr r3, [r7, #12] - 8015e72: 2b00 cmp r3, #0 - 8015e74: d00a beq.n 8015e8c - 8015e76: 68fb ldr r3, [r7, #12] - 8015e78: 7a1b ldrb r3, [r3, #8] - 8015e7a: 2b00 cmp r3, #0 - 8015e7c: d006 beq.n 8015e8c + 8015e80: 68fb ldr r3, [r7, #12] + 8015e82: 2b00 cmp r3, #0 + 8015e84: d00a beq.n 8015e9c + 8015e86: 68fb ldr r3, [r7, #12] + 8015e88: 7a1b ldrb r3, [r3, #8] + 8015e8a: 2b00 cmp r3, #0 + 8015e8c: d006 beq.n 8015e9c return netif_get_by_index(pcb->netif_idx); - 8015e7e: 68fb ldr r3, [r7, #12] - 8015e80: 7a1b ldrb r3, [r3, #8] - 8015e82: 4618 mov r0, r3 - 8015e84: f7fb fb26 bl 80114d4 - 8015e88: 4603 mov r3, r0 - 8015e8a: e003 b.n 8015e94 + 8015e8e: 68fb ldr r3, [r7, #12] + 8015e90: 7a1b ldrb r3, [r3, #8] + 8015e92: 4618 mov r0, r3 + 8015e94: f7fb fb26 bl 80114e4 + 8015e98: 4603 mov r3, r0 + 8015e9a: e003 b.n 8015ea4 } else { return ip_route(src, dst); - 8015e8c: 6878 ldr r0, [r7, #4] - 8015e8e: f005 f867 bl 801af60 - 8015e92: 4603 mov r3, r0 + 8015e9c: 6878 ldr r0, [r7, #4] + 8015e9e: f005 f867 bl 801af70 + 8015ea2: 4603 mov r3, r0 } } - 8015e94: 4618 mov r0, r3 - 8015e96: 3710 adds r7, #16 - 8015e98: 46bd mov sp, r7 - 8015e9a: bd80 pop {r7, pc} + 8015ea4: 4618 mov r0, r3 + 8015ea6: 3710 adds r7, #16 + 8015ea8: 46bd mov sp, r7 + 8015eaa: bd80 pop {r7, pc} -08015e9c : +08015eac : * The TCP header is filled in except ackno and wnd. * p is freed on failure. */ static struct tcp_seg * tcp_create_segment(const struct tcp_pcb *pcb, struct pbuf *p, u8_t hdrflags, u32_t seqno, u8_t optflags) { - 8015e9c: b590 push {r4, r7, lr} - 8015e9e: b087 sub sp, #28 - 8015ea0: af00 add r7, sp, #0 - 8015ea2: 60f8 str r0, [r7, #12] - 8015ea4: 60b9 str r1, [r7, #8] - 8015ea6: 603b str r3, [r7, #0] - 8015ea8: 4613 mov r3, r2 - 8015eaa: 71fb strb r3, [r7, #7] + 8015eac: b590 push {r4, r7, lr} + 8015eae: b087 sub sp, #28 + 8015eb0: af00 add r7, sp, #0 + 8015eb2: 60f8 str r0, [r7, #12] + 8015eb4: 60b9 str r1, [r7, #8] + 8015eb6: 603b str r3, [r7, #0] + 8015eb8: 4613 mov r3, r2 + 8015eba: 71fb strb r3, [r7, #7] struct tcp_seg *seg; u8_t optlen; LWIP_ASSERT("tcp_create_segment: invalid pcb", pcb != NULL); - 8015eac: 68fb ldr r3, [r7, #12] - 8015eae: 2b00 cmp r3, #0 - 8015eb0: d105 bne.n 8015ebe - 8015eb2: 4b44 ldr r3, [pc, #272] ; (8015fc4 ) - 8015eb4: 22a3 movs r2, #163 ; 0xa3 - 8015eb6: 4944 ldr r1, [pc, #272] ; (8015fc8 ) - 8015eb8: 4844 ldr r0, [pc, #272] ; (8015fcc ) - 8015eba: f006 fbc5 bl 801c648 + 8015ebc: 68fb ldr r3, [r7, #12] + 8015ebe: 2b00 cmp r3, #0 + 8015ec0: d105 bne.n 8015ece + 8015ec2: 4b44 ldr r3, [pc, #272] ; (8015fd4 ) + 8015ec4: 22a3 movs r2, #163 ; 0xa3 + 8015ec6: 4944 ldr r1, [pc, #272] ; (8015fd8 ) + 8015ec8: 4844 ldr r0, [pc, #272] ; (8015fdc ) + 8015eca: f006 fbc5 bl 801c658 LWIP_ASSERT("tcp_create_segment: invalid pbuf", p != NULL); - 8015ebe: 68bb ldr r3, [r7, #8] - 8015ec0: 2b00 cmp r3, #0 - 8015ec2: d105 bne.n 8015ed0 - 8015ec4: 4b3f ldr r3, [pc, #252] ; (8015fc4 ) - 8015ec6: 22a4 movs r2, #164 ; 0xa4 - 8015ec8: 4941 ldr r1, [pc, #260] ; (8015fd0 ) - 8015eca: 4840 ldr r0, [pc, #256] ; (8015fcc ) - 8015ecc: f006 fbbc bl 801c648 + 8015ece: 68bb ldr r3, [r7, #8] + 8015ed0: 2b00 cmp r3, #0 + 8015ed2: d105 bne.n 8015ee0 + 8015ed4: 4b3f ldr r3, [pc, #252] ; (8015fd4 ) + 8015ed6: 22a4 movs r2, #164 ; 0xa4 + 8015ed8: 4941 ldr r1, [pc, #260] ; (8015fe0 ) + 8015eda: 4840 ldr r0, [pc, #256] ; (8015fdc ) + 8015edc: f006 fbbc bl 801c658 optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - 8015ed0: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 - 8015ed4: 009b lsls r3, r3, #2 - 8015ed6: b2db uxtb r3, r3 - 8015ed8: f003 0304 and.w r3, r3, #4 - 8015edc: 75fb strb r3, [r7, #23] + 8015ee0: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 + 8015ee4: 009b lsls r3, r3, #2 + 8015ee6: b2db uxtb r3, r3 + 8015ee8: f003 0304 and.w r3, r3, #4 + 8015eec: 75fb strb r3, [r7, #23] if ((seg = (struct tcp_seg *)memp_malloc(MEMP_TCP_SEG)) == NULL) { - 8015ede: 2003 movs r0, #3 - 8015ee0: f7fa ff84 bl 8010dec - 8015ee4: 6138 str r0, [r7, #16] - 8015ee6: 693b ldr r3, [r7, #16] - 8015ee8: 2b00 cmp r3, #0 - 8015eea: d104 bne.n 8015ef6 + 8015eee: 2003 movs r0, #3 + 8015ef0: f7fa ff84 bl 8010dfc + 8015ef4: 6138 str r0, [r7, #16] + 8015ef6: 693b ldr r3, [r7, #16] + 8015ef8: 2b00 cmp r3, #0 + 8015efa: d104 bne.n 8015f06 LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no memory.\n")); pbuf_free(p); - 8015eec: 68b8 ldr r0, [r7, #8] - 8015eee: f7fb fe7b bl 8011be8 + 8015efc: 68b8 ldr r0, [r7, #8] + 8015efe: f7fb fe7b bl 8011bf8 return NULL; - 8015ef2: 2300 movs r3, #0 - 8015ef4: e061 b.n 8015fba + 8015f02: 2300 movs r3, #0 + 8015f04: e061 b.n 8015fca } seg->flags = optflags; - 8015ef6: 693b ldr r3, [r7, #16] - 8015ef8: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 - 8015efc: 729a strb r2, [r3, #10] + 8015f06: 693b ldr r3, [r7, #16] + 8015f08: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 + 8015f0c: 729a strb r2, [r3, #10] seg->next = NULL; - 8015efe: 693b ldr r3, [r7, #16] - 8015f00: 2200 movs r2, #0 - 8015f02: 601a str r2, [r3, #0] + 8015f0e: 693b ldr r3, [r7, #16] + 8015f10: 2200 movs r2, #0 + 8015f12: 601a str r2, [r3, #0] seg->p = p; - 8015f04: 693b ldr r3, [r7, #16] - 8015f06: 68ba ldr r2, [r7, #8] - 8015f08: 605a str r2, [r3, #4] + 8015f14: 693b ldr r3, [r7, #16] + 8015f16: 68ba ldr r2, [r7, #8] + 8015f18: 605a str r2, [r3, #4] LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); - 8015f0a: 68bb ldr r3, [r7, #8] - 8015f0c: 891a ldrh r2, [r3, #8] - 8015f0e: 7dfb ldrb r3, [r7, #23] - 8015f10: b29b uxth r3, r3 - 8015f12: 429a cmp r2, r3 - 8015f14: d205 bcs.n 8015f22 - 8015f16: 4b2b ldr r3, [pc, #172] ; (8015fc4 ) - 8015f18: 22b0 movs r2, #176 ; 0xb0 - 8015f1a: 492e ldr r1, [pc, #184] ; (8015fd4 ) - 8015f1c: 482b ldr r0, [pc, #172] ; (8015fcc ) - 8015f1e: f006 fb93 bl 801c648 + 8015f1a: 68bb ldr r3, [r7, #8] + 8015f1c: 891a ldrh r2, [r3, #8] + 8015f1e: 7dfb ldrb r3, [r7, #23] + 8015f20: b29b uxth r3, r3 + 8015f22: 429a cmp r2, r3 + 8015f24: d205 bcs.n 8015f32 + 8015f26: 4b2b ldr r3, [pc, #172] ; (8015fd4 ) + 8015f28: 22b0 movs r2, #176 ; 0xb0 + 8015f2a: 492e ldr r1, [pc, #184] ; (8015fe4 ) + 8015f2c: 482b ldr r0, [pc, #172] ; (8015fdc ) + 8015f2e: f006 fb93 bl 801c658 seg->len = p->tot_len - optlen; - 8015f22: 68bb ldr r3, [r7, #8] - 8015f24: 891a ldrh r2, [r3, #8] - 8015f26: 7dfb ldrb r3, [r7, #23] - 8015f28: b29b uxth r3, r3 - 8015f2a: 1ad3 subs r3, r2, r3 - 8015f2c: b29a uxth r2, r3 - 8015f2e: 693b ldr r3, [r7, #16] - 8015f30: 811a strh r2, [r3, #8] + 8015f32: 68bb ldr r3, [r7, #8] + 8015f34: 891a ldrh r2, [r3, #8] + 8015f36: 7dfb ldrb r3, [r7, #23] + 8015f38: b29b uxth r3, r3 + 8015f3a: 1ad3 subs r3, r2, r3 + 8015f3c: b29a uxth r2, r3 + 8015f3e: 693b ldr r3, [r7, #16] + 8015f40: 811a strh r2, [r3, #8] LWIP_ASSERT("invalid optflags passed: TF_SEG_DATA_CHECKSUMMED", (optflags & TF_SEG_DATA_CHECKSUMMED) == 0); #endif /* TCP_CHECKSUM_ON_COPY */ /* build TCP header */ if (pbuf_add_header(p, TCP_HLEN)) { - 8015f32: 2114 movs r1, #20 - 8015f34: 68b8 ldr r0, [r7, #8] - 8015f36: f7fb fdc1 bl 8011abc - 8015f3a: 4603 mov r3, r0 - 8015f3c: 2b00 cmp r3, #0 - 8015f3e: d004 beq.n 8015f4a + 8015f42: 2114 movs r1, #20 + 8015f44: 68b8 ldr r0, [r7, #8] + 8015f46: f7fb fdc1 bl 8011acc + 8015f4a: 4603 mov r3, r0 + 8015f4c: 2b00 cmp r3, #0 + 8015f4e: d004 beq.n 8015f5a LWIP_DEBUGF(TCP_OUTPUT_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_create_segment: no room for TCP header in pbuf.\n")); TCP_STATS_INC(tcp.err); tcp_seg_free(seg); - 8015f40: 6938 ldr r0, [r7, #16] - 8015f42: f7fd f8d5 bl 80130f0 + 8015f50: 6938 ldr r0, [r7, #16] + 8015f52: f7fd f8d5 bl 8013100 return NULL; - 8015f46: 2300 movs r3, #0 - 8015f48: e037 b.n 8015fba + 8015f56: 2300 movs r3, #0 + 8015f58: e037 b.n 8015fca } seg->tcphdr = (struct tcp_hdr *)seg->p->payload; - 8015f4a: 693b ldr r3, [r7, #16] - 8015f4c: 685b ldr r3, [r3, #4] - 8015f4e: 685a ldr r2, [r3, #4] - 8015f50: 693b ldr r3, [r7, #16] - 8015f52: 60da str r2, [r3, #12] + 8015f5a: 693b ldr r3, [r7, #16] + 8015f5c: 685b ldr r3, [r3, #4] + 8015f5e: 685a ldr r2, [r3, #4] + 8015f60: 693b ldr r3, [r7, #16] + 8015f62: 60da str r2, [r3, #12] seg->tcphdr->src = lwip_htons(pcb->local_port); - 8015f54: 68fb ldr r3, [r7, #12] - 8015f56: 8ada ldrh r2, [r3, #22] - 8015f58: 693b ldr r3, [r7, #16] - 8015f5a: 68dc ldr r4, [r3, #12] - 8015f5c: 4610 mov r0, r2 - 8015f5e: f7fa fa8f bl 8010480 - 8015f62: 4603 mov r3, r0 - 8015f64: 8023 strh r3, [r4, #0] + 8015f64: 68fb ldr r3, [r7, #12] + 8015f66: 8ada ldrh r2, [r3, #22] + 8015f68: 693b ldr r3, [r7, #16] + 8015f6a: 68dc ldr r4, [r3, #12] + 8015f6c: 4610 mov r0, r2 + 8015f6e: f7fa fa8f bl 8010490 + 8015f72: 4603 mov r3, r0 + 8015f74: 8023 strh r3, [r4, #0] seg->tcphdr->dest = lwip_htons(pcb->remote_port); - 8015f66: 68fb ldr r3, [r7, #12] - 8015f68: 8b1a ldrh r2, [r3, #24] - 8015f6a: 693b ldr r3, [r7, #16] - 8015f6c: 68dc ldr r4, [r3, #12] - 8015f6e: 4610 mov r0, r2 - 8015f70: f7fa fa86 bl 8010480 - 8015f74: 4603 mov r3, r0 - 8015f76: 8063 strh r3, [r4, #2] + 8015f76: 68fb ldr r3, [r7, #12] + 8015f78: 8b1a ldrh r2, [r3, #24] + 8015f7a: 693b ldr r3, [r7, #16] + 8015f7c: 68dc ldr r4, [r3, #12] + 8015f7e: 4610 mov r0, r2 + 8015f80: f7fa fa86 bl 8010490 + 8015f84: 4603 mov r3, r0 + 8015f86: 8063 strh r3, [r4, #2] seg->tcphdr->seqno = lwip_htonl(seqno); - 8015f78: 693b ldr r3, [r7, #16] - 8015f7a: 68dc ldr r4, [r3, #12] - 8015f7c: 6838 ldr r0, [r7, #0] - 8015f7e: f7fa fa94 bl 80104aa - 8015f82: 4603 mov r3, r0 - 8015f84: 6063 str r3, [r4, #4] + 8015f88: 693b ldr r3, [r7, #16] + 8015f8a: 68dc ldr r4, [r3, #12] + 8015f8c: 6838 ldr r0, [r7, #0] + 8015f8e: f7fa fa94 bl 80104ba + 8015f92: 4603 mov r3, r0 + 8015f94: 6063 str r3, [r4, #4] /* ackno is set in tcp_output */ TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags); - 8015f86: 7dfb ldrb r3, [r7, #23] - 8015f88: 089b lsrs r3, r3, #2 - 8015f8a: b2db uxtb r3, r3 - 8015f8c: b29b uxth r3, r3 - 8015f8e: 3305 adds r3, #5 - 8015f90: b29b uxth r3, r3 - 8015f92: 031b lsls r3, r3, #12 - 8015f94: b29a uxth r2, r3 - 8015f96: 79fb ldrb r3, [r7, #7] - 8015f98: b29b uxth r3, r3 - 8015f9a: 4313 orrs r3, r2 - 8015f9c: b29a uxth r2, r3 - 8015f9e: 693b ldr r3, [r7, #16] - 8015fa0: 68dc ldr r4, [r3, #12] - 8015fa2: 4610 mov r0, r2 - 8015fa4: f7fa fa6c bl 8010480 - 8015fa8: 4603 mov r3, r0 - 8015faa: 81a3 strh r3, [r4, #12] + 8015f96: 7dfb ldrb r3, [r7, #23] + 8015f98: 089b lsrs r3, r3, #2 + 8015f9a: b2db uxtb r3, r3 + 8015f9c: b29b uxth r3, r3 + 8015f9e: 3305 adds r3, #5 + 8015fa0: b29b uxth r3, r3 + 8015fa2: 031b lsls r3, r3, #12 + 8015fa4: b29a uxth r2, r3 + 8015fa6: 79fb ldrb r3, [r7, #7] + 8015fa8: b29b uxth r3, r3 + 8015faa: 4313 orrs r3, r2 + 8015fac: b29a uxth r2, r3 + 8015fae: 693b ldr r3, [r7, #16] + 8015fb0: 68dc ldr r4, [r3, #12] + 8015fb2: 4610 mov r0, r2 + 8015fb4: f7fa fa6c bl 8010490 + 8015fb8: 4603 mov r3, r0 + 8015fba: 81a3 strh r3, [r4, #12] /* wnd and chksum are set in tcp_output */ seg->tcphdr->urgp = 0; - 8015fac: 693b ldr r3, [r7, #16] - 8015fae: 68db ldr r3, [r3, #12] - 8015fb0: 2200 movs r2, #0 - 8015fb2: 749a strb r2, [r3, #18] - 8015fb4: 2200 movs r2, #0 - 8015fb6: 74da strb r2, [r3, #19] + 8015fbc: 693b ldr r3, [r7, #16] + 8015fbe: 68db ldr r3, [r3, #12] + 8015fc0: 2200 movs r2, #0 + 8015fc2: 749a strb r2, [r3, #18] + 8015fc4: 2200 movs r2, #0 + 8015fc6: 74da strb r2, [r3, #19] return seg; - 8015fb8: 693b ldr r3, [r7, #16] -} - 8015fba: 4618 mov r0, r3 - 8015fbc: 371c adds r7, #28 - 8015fbe: 46bd mov sp, r7 - 8015fc0: bd90 pop {r4, r7, pc} - 8015fc2: bf00 nop - 8015fc4: 0801f0c0 .word 0x0801f0c0 - 8015fc8: 0801f0f4 .word 0x0801f0f4 - 8015fcc: 0801f114 .word 0x0801f114 - 8015fd0: 0801f13c .word 0x0801f13c - 8015fd4: 0801f160 .word 0x0801f160 - -08015fd8 : + 8015fc8: 693b ldr r3, [r7, #16] +} + 8015fca: 4618 mov r0, r3 + 8015fcc: 371c adds r7, #28 + 8015fce: 46bd mov sp, r7 + 8015fd0: bd90 pop {r4, r7, pc} + 8015fd2: bf00 nop + 8015fd4: 0801f0d0 .word 0x0801f0d0 + 8015fd8: 0801f104 .word 0x0801f104 + 8015fdc: 0801f124 .word 0x0801f124 + 8015fe0: 0801f14c .word 0x0801f14c + 8015fe4: 0801f170 .word 0x0801f170 + +08015fe8 : * @param pcb the tcp_pcb for which to split the unsent head * @param split the amount of payload to remain in the head */ err_t tcp_split_unsent_seg(struct tcp_pcb *pcb, u16_t split) { - 8015fd8: b590 push {r4, r7, lr} - 8015fda: b08b sub sp, #44 ; 0x2c - 8015fdc: af02 add r7, sp, #8 - 8015fde: 6078 str r0, [r7, #4] - 8015fe0: 460b mov r3, r1 - 8015fe2: 807b strh r3, [r7, #2] + 8015fe8: b590 push {r4, r7, lr} + 8015fea: b08b sub sp, #44 ; 0x2c + 8015fec: af02 add r7, sp, #8 + 8015fee: 6078 str r0, [r7, #4] + 8015ff0: 460b mov r3, r1 + 8015ff2: 807b strh r3, [r7, #2] struct tcp_seg *seg = NULL, *useg = NULL; - 8015fe4: 2300 movs r3, #0 - 8015fe6: 61fb str r3, [r7, #28] - 8015fe8: 2300 movs r3, #0 - 8015fea: 617b str r3, [r7, #20] + 8015ff4: 2300 movs r3, #0 + 8015ff6: 61fb str r3, [r7, #28] + 8015ff8: 2300 movs r3, #0 + 8015ffa: 617b str r3, [r7, #20] struct pbuf *p = NULL; - 8015fec: 2300 movs r3, #0 - 8015fee: 613b str r3, [r7, #16] + 8015ffc: 2300 movs r3, #0 + 8015ffe: 613b str r3, [r7, #16] u16_t chksum = 0; u8_t chksum_swapped = 0; struct pbuf *q; #endif /* TCP_CHECKSUM_ON_COPY */ LWIP_ASSERT("tcp_split_unsent_seg: invalid pcb", pcb != NULL); - 8015ff0: 687b ldr r3, [r7, #4] - 8015ff2: 2b00 cmp r3, #0 - 8015ff4: d106 bne.n 8016004 - 8015ff6: 4b95 ldr r3, [pc, #596] ; (801624c ) - 8015ff8: f240 324b movw r2, #843 ; 0x34b - 8015ffc: 4994 ldr r1, [pc, #592] ; (8016250 ) - 8015ffe: 4895 ldr r0, [pc, #596] ; (8016254 ) - 8016000: f006 fb22 bl 801c648 + 8016000: 687b ldr r3, [r7, #4] + 8016002: 2b00 cmp r3, #0 + 8016004: d106 bne.n 8016014 + 8016006: 4b95 ldr r3, [pc, #596] ; (801625c ) + 8016008: f240 324b movw r2, #843 ; 0x34b + 801600c: 4994 ldr r1, [pc, #592] ; (8016260 ) + 801600e: 4895 ldr r0, [pc, #596] ; (8016264 ) + 8016010: f006 fb22 bl 801c658 useg = pcb->unsent; - 8016004: 687b ldr r3, [r7, #4] - 8016006: 6edb ldr r3, [r3, #108] ; 0x6c - 8016008: 617b str r3, [r7, #20] + 8016014: 687b ldr r3, [r7, #4] + 8016016: 6edb ldr r3, [r3, #108] ; 0x6c + 8016018: 617b str r3, [r7, #20] if (useg == NULL) { - 801600a: 697b ldr r3, [r7, #20] - 801600c: 2b00 cmp r3, #0 - 801600e: d102 bne.n 8016016 + 801601a: 697b ldr r3, [r7, #20] + 801601c: 2b00 cmp r3, #0 + 801601e: d102 bne.n 8016026 return ERR_MEM; - 8016010: f04f 33ff mov.w r3, #4294967295 - 8016014: e116 b.n 8016244 + 8016020: f04f 33ff mov.w r3, #4294967295 + 8016024: e116 b.n 8016254 } if (split == 0) { - 8016016: 887b ldrh r3, [r7, #2] - 8016018: 2b00 cmp r3, #0 - 801601a: d109 bne.n 8016030 + 8016026: 887b ldrh r3, [r7, #2] + 8016028: 2b00 cmp r3, #0 + 801602a: d109 bne.n 8016040 LWIP_ASSERT("Can't split segment into length 0", 0); - 801601c: 4b8b ldr r3, [pc, #556] ; (801624c ) - 801601e: f240 3253 movw r2, #851 ; 0x353 - 8016022: 498d ldr r1, [pc, #564] ; (8016258 ) - 8016024: 488b ldr r0, [pc, #556] ; (8016254 ) - 8016026: f006 fb0f bl 801c648 + 801602c: 4b8b ldr r3, [pc, #556] ; (801625c ) + 801602e: f240 3253 movw r2, #851 ; 0x353 + 8016032: 498d ldr r1, [pc, #564] ; (8016268 ) + 8016034: 488b ldr r0, [pc, #556] ; (8016264 ) + 8016036: f006 fb0f bl 801c658 return ERR_VAL; - 801602a: f06f 0305 mvn.w r3, #5 - 801602e: e109 b.n 8016244 + 801603a: f06f 0305 mvn.w r3, #5 + 801603e: e109 b.n 8016254 } if (useg->len <= split) { - 8016030: 697b ldr r3, [r7, #20] - 8016032: 891b ldrh r3, [r3, #8] - 8016034: 887a ldrh r2, [r7, #2] - 8016036: 429a cmp r2, r3 - 8016038: d301 bcc.n 801603e + 8016040: 697b ldr r3, [r7, #20] + 8016042: 891b ldrh r3, [r3, #8] + 8016044: 887a ldrh r2, [r7, #2] + 8016046: 429a cmp r2, r3 + 8016048: d301 bcc.n 801604e return ERR_OK; - 801603a: 2300 movs r3, #0 - 801603c: e102 b.n 8016244 + 801604a: 2300 movs r3, #0 + 801604c: e102 b.n 8016254 } LWIP_ASSERT("split <= mss", split <= pcb->mss); - 801603e: 687b ldr r3, [r7, #4] - 8016040: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8016042: 887a ldrh r2, [r7, #2] - 8016044: 429a cmp r2, r3 - 8016046: d906 bls.n 8016056 - 8016048: 4b80 ldr r3, [pc, #512] ; (801624c ) - 801604a: f240 325b movw r2, #859 ; 0x35b - 801604e: 4983 ldr r1, [pc, #524] ; (801625c ) - 8016050: 4880 ldr r0, [pc, #512] ; (8016254 ) - 8016052: f006 faf9 bl 801c648 + 801604e: 687b ldr r3, [r7, #4] + 8016050: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8016052: 887a ldrh r2, [r7, #2] + 8016054: 429a cmp r2, r3 + 8016056: d906 bls.n 8016066 + 8016058: 4b80 ldr r3, [pc, #512] ; (801625c ) + 801605a: f240 325b movw r2, #859 ; 0x35b + 801605e: 4983 ldr r1, [pc, #524] ; (801626c ) + 8016060: 4880 ldr r0, [pc, #512] ; (8016264 ) + 8016062: f006 faf9 bl 801c658 LWIP_ASSERT("useg->len > 0", useg->len > 0); - 8016056: 697b ldr r3, [r7, #20] - 8016058: 891b ldrh r3, [r3, #8] - 801605a: 2b00 cmp r3, #0 - 801605c: d106 bne.n 801606c - 801605e: 4b7b ldr r3, [pc, #492] ; (801624c ) - 8016060: f44f 7257 mov.w r2, #860 ; 0x35c - 8016064: 497e ldr r1, [pc, #504] ; (8016260 ) - 8016066: 487b ldr r0, [pc, #492] ; (8016254 ) - 8016068: f006 faee bl 801c648 + 8016066: 697b ldr r3, [r7, #20] + 8016068: 891b ldrh r3, [r3, #8] + 801606a: 2b00 cmp r3, #0 + 801606c: d106 bne.n 801607c + 801606e: 4b7b ldr r3, [pc, #492] ; (801625c ) + 8016070: f44f 7257 mov.w r2, #860 ; 0x35c + 8016074: 497e ldr r1, [pc, #504] ; (8016270 ) + 8016076: 487b ldr r0, [pc, #492] ; (8016264 ) + 8016078: f006 faee bl 801c658 * to split this packet so we may actually exceed the max value by * one! */ LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue: split_unsent_seg: %u\n", (unsigned int)pcb->snd_queuelen)); optflags = useg->flags; - 801606c: 697b ldr r3, [r7, #20] - 801606e: 7a9b ldrb r3, [r3, #10] - 8016070: 73fb strb r3, [r7, #15] + 801607c: 697b ldr r3, [r7, #20] + 801607e: 7a9b ldrb r3, [r3, #10] + 8016080: 73fb strb r3, [r7, #15] #if TCP_CHECKSUM_ON_COPY /* Remove since checksum is not stored until after tcp_create_segment() */ optflags &= ~TF_SEG_DATA_CHECKSUMMED; #endif /* TCP_CHECKSUM_ON_COPY */ optlen = LWIP_TCP_OPT_LENGTH(optflags); - 8016072: 7bfb ldrb r3, [r7, #15] - 8016074: 009b lsls r3, r3, #2 - 8016076: b2db uxtb r3, r3 - 8016078: f003 0304 and.w r3, r3, #4 - 801607c: 73bb strb r3, [r7, #14] + 8016082: 7bfb ldrb r3, [r7, #15] + 8016084: 009b lsls r3, r3, #2 + 8016086: b2db uxtb r3, r3 + 8016088: f003 0304 and.w r3, r3, #4 + 801608c: 73bb strb r3, [r7, #14] remainder = useg->len - split; - 801607e: 697b ldr r3, [r7, #20] - 8016080: 891a ldrh r2, [r3, #8] - 8016082: 887b ldrh r3, [r7, #2] - 8016084: 1ad3 subs r3, r2, r3 - 8016086: 81bb strh r3, [r7, #12] + 801608e: 697b ldr r3, [r7, #20] + 8016090: 891a ldrh r2, [r3, #8] + 8016092: 887b ldrh r3, [r7, #2] + 8016094: 1ad3 subs r3, r2, r3 + 8016096: 81bb strh r3, [r7, #12] /* Create new pbuf for the remainder of the split */ p = pbuf_alloc(PBUF_TRANSPORT, remainder + optlen, PBUF_RAM); - 8016088: 7bbb ldrb r3, [r7, #14] - 801608a: b29a uxth r2, r3 - 801608c: 89bb ldrh r3, [r7, #12] - 801608e: 4413 add r3, r2 - 8016090: b29b uxth r3, r3 - 8016092: f44f 7220 mov.w r2, #640 ; 0x280 - 8016096: 4619 mov r1, r3 - 8016098: 2036 movs r0, #54 ; 0x36 - 801609a: f7fb fac5 bl 8011628 - 801609e: 6138 str r0, [r7, #16] + 8016098: 7bbb ldrb r3, [r7, #14] + 801609a: b29a uxth r2, r3 + 801609c: 89bb ldrh r3, [r7, #12] + 801609e: 4413 add r3, r2 + 80160a0: b29b uxth r3, r3 + 80160a2: f44f 7220 mov.w r2, #640 ; 0x280 + 80160a6: 4619 mov r1, r3 + 80160a8: 2036 movs r0, #54 ; 0x36 + 80160aa: f7fb fac5 bl 8011638 + 80160ae: 6138 str r0, [r7, #16] if (p == NULL) { - 80160a0: 693b ldr r3, [r7, #16] - 80160a2: 2b00 cmp r3, #0 - 80160a4: f000 80b7 beq.w 8016216 + 80160b0: 693b ldr r3, [r7, #16] + 80160b2: 2b00 cmp r3, #0 + 80160b4: f000 80b7 beq.w 8016226 ("tcp_split_unsent_seg: could not allocate memory for pbuf remainder %u\n", remainder)); goto memerr; } /* Offset into the original pbuf is past TCP/IP headers, options, and split amount */ offset = useg->p->tot_len - useg->len + split; - 80160a8: 697b ldr r3, [r7, #20] - 80160aa: 685b ldr r3, [r3, #4] - 80160ac: 891a ldrh r2, [r3, #8] - 80160ae: 697b ldr r3, [r7, #20] - 80160b0: 891b ldrh r3, [r3, #8] - 80160b2: 1ad3 subs r3, r2, r3 - 80160b4: b29a uxth r2, r3 - 80160b6: 887b ldrh r3, [r7, #2] - 80160b8: 4413 add r3, r2 - 80160ba: 817b strh r3, [r7, #10] + 80160b8: 697b ldr r3, [r7, #20] + 80160ba: 685b ldr r3, [r3, #4] + 80160bc: 891a ldrh r2, [r3, #8] + 80160be: 697b ldr r3, [r7, #20] + 80160c0: 891b ldrh r3, [r3, #8] + 80160c2: 1ad3 subs r3, r2, r3 + 80160c4: b29a uxth r2, r3 + 80160c6: 887b ldrh r3, [r7, #2] + 80160c8: 4413 add r3, r2 + 80160ca: 817b strh r3, [r7, #10] /* Copy remainder into new pbuf, headers and options will not be filled out */ if (pbuf_copy_partial(useg->p, (u8_t *)p->payload + optlen, remainder, offset ) != remainder) { - 80160bc: 697b ldr r3, [r7, #20] - 80160be: 6858 ldr r0, [r3, #4] - 80160c0: 693b ldr r3, [r7, #16] - 80160c2: 685a ldr r2, [r3, #4] - 80160c4: 7bbb ldrb r3, [r7, #14] - 80160c6: 18d1 adds r1, r2, r3 - 80160c8: 897b ldrh r3, [r7, #10] - 80160ca: 89ba ldrh r2, [r7, #12] - 80160cc: f7fb ff92 bl 8011ff4 - 80160d0: 4603 mov r3, r0 - 80160d2: 461a mov r2, r3 - 80160d4: 89bb ldrh r3, [r7, #12] - 80160d6: 4293 cmp r3, r2 - 80160d8: f040 809f bne.w 801621a + 80160cc: 697b ldr r3, [r7, #20] + 80160ce: 6858 ldr r0, [r3, #4] + 80160d0: 693b ldr r3, [r7, #16] + 80160d2: 685a ldr r2, [r3, #4] + 80160d4: 7bbb ldrb r3, [r7, #14] + 80160d6: 18d1 adds r1, r2, r3 + 80160d8: 897b ldrh r3, [r7, #10] + 80160da: 89ba ldrh r2, [r7, #12] + 80160dc: f7fb ff92 bl 8012004 + 80160e0: 4603 mov r3, r0 + 80160e2: 461a mov r2, r3 + 80160e4: 89bb ldrh r3, [r7, #12] + 80160e6: 4293 cmp r3, r2 + 80160e8: f040 809f bne.w 801622a #endif /* TCP_CHECKSUM_ON_COPY */ /* Options are created when calling tcp_output() */ /* Migrate flags from original segment */ split_flags = TCPH_FLAGS(useg->tcphdr); - 80160dc: 697b ldr r3, [r7, #20] - 80160de: 68db ldr r3, [r3, #12] - 80160e0: 899b ldrh r3, [r3, #12] - 80160e2: b29b uxth r3, r3 - 80160e4: 4618 mov r0, r3 - 80160e6: f7fa f9cb bl 8010480 - 80160ea: 4603 mov r3, r0 - 80160ec: b2db uxtb r3, r3 - 80160ee: f003 033f and.w r3, r3, #63 ; 0x3f - 80160f2: 76fb strb r3, [r7, #27] + 80160ec: 697b ldr r3, [r7, #20] + 80160ee: 68db ldr r3, [r3, #12] + 80160f0: 899b ldrh r3, [r3, #12] + 80160f2: b29b uxth r3, r3 + 80160f4: 4618 mov r0, r3 + 80160f6: f7fa f9cb bl 8010490 + 80160fa: 4603 mov r3, r0 + 80160fc: b2db uxtb r3, r3 + 80160fe: f003 033f and.w r3, r3, #63 ; 0x3f + 8016102: 76fb strb r3, [r7, #27] remainder_flags = 0; /* ACK added in tcp_output() */ - 80160f4: 2300 movs r3, #0 - 80160f6: 76bb strb r3, [r7, #26] + 8016104: 2300 movs r3, #0 + 8016106: 76bb strb r3, [r7, #26] if (split_flags & TCP_PSH) { - 80160f8: 7efb ldrb r3, [r7, #27] - 80160fa: f003 0308 and.w r3, r3, #8 - 80160fe: 2b00 cmp r3, #0 - 8016100: d007 beq.n 8016112 + 8016108: 7efb ldrb r3, [r7, #27] + 801610a: f003 0308 and.w r3, r3, #8 + 801610e: 2b00 cmp r3, #0 + 8016110: d007 beq.n 8016122 split_flags &= ~TCP_PSH; - 8016102: 7efb ldrb r3, [r7, #27] - 8016104: f023 0308 bic.w r3, r3, #8 - 8016108: 76fb strb r3, [r7, #27] + 8016112: 7efb ldrb r3, [r7, #27] + 8016114: f023 0308 bic.w r3, r3, #8 + 8016118: 76fb strb r3, [r7, #27] remainder_flags |= TCP_PSH; - 801610a: 7ebb ldrb r3, [r7, #26] - 801610c: f043 0308 orr.w r3, r3, #8 - 8016110: 76bb strb r3, [r7, #26] + 801611a: 7ebb ldrb r3, [r7, #26] + 801611c: f043 0308 orr.w r3, r3, #8 + 8016120: 76bb strb r3, [r7, #26] } if (split_flags & TCP_FIN) { - 8016112: 7efb ldrb r3, [r7, #27] - 8016114: f003 0301 and.w r3, r3, #1 - 8016118: 2b00 cmp r3, #0 - 801611a: d007 beq.n 801612c + 8016122: 7efb ldrb r3, [r7, #27] + 8016124: f003 0301 and.w r3, r3, #1 + 8016128: 2b00 cmp r3, #0 + 801612a: d007 beq.n 801613c split_flags &= ~TCP_FIN; - 801611c: 7efb ldrb r3, [r7, #27] - 801611e: f023 0301 bic.w r3, r3, #1 - 8016122: 76fb strb r3, [r7, #27] + 801612c: 7efb ldrb r3, [r7, #27] + 801612e: f023 0301 bic.w r3, r3, #1 + 8016132: 76fb strb r3, [r7, #27] remainder_flags |= TCP_FIN; - 8016124: 7ebb ldrb r3, [r7, #26] - 8016126: f043 0301 orr.w r3, r3, #1 - 801612a: 76bb strb r3, [r7, #26] + 8016134: 7ebb ldrb r3, [r7, #26] + 8016136: f043 0301 orr.w r3, r3, #1 + 801613a: 76bb strb r3, [r7, #26] } /* SYN should be left on split, RST should not be present with data */ seg = tcp_create_segment(pcb, p, remainder_flags, lwip_ntohl(useg->tcphdr->seqno) + split, optflags); - 801612c: 697b ldr r3, [r7, #20] - 801612e: 68db ldr r3, [r3, #12] - 8016130: 685b ldr r3, [r3, #4] - 8016132: 4618 mov r0, r3 - 8016134: f7fa f9b9 bl 80104aa - 8016138: 4602 mov r2, r0 - 801613a: 887b ldrh r3, [r7, #2] - 801613c: 18d1 adds r1, r2, r3 - 801613e: 7eba ldrb r2, [r7, #26] - 8016140: 7bfb ldrb r3, [r7, #15] - 8016142: 9300 str r3, [sp, #0] - 8016144: 460b mov r3, r1 - 8016146: 6939 ldr r1, [r7, #16] - 8016148: 6878 ldr r0, [r7, #4] - 801614a: f7ff fea7 bl 8015e9c - 801614e: 61f8 str r0, [r7, #28] + 801613c: 697b ldr r3, [r7, #20] + 801613e: 68db ldr r3, [r3, #12] + 8016140: 685b ldr r3, [r3, #4] + 8016142: 4618 mov r0, r3 + 8016144: f7fa f9b9 bl 80104ba + 8016148: 4602 mov r2, r0 + 801614a: 887b ldrh r3, [r7, #2] + 801614c: 18d1 adds r1, r2, r3 + 801614e: 7eba ldrb r2, [r7, #26] + 8016150: 7bfb ldrb r3, [r7, #15] + 8016152: 9300 str r3, [sp, #0] + 8016154: 460b mov r3, r1 + 8016156: 6939 ldr r1, [r7, #16] + 8016158: 6878 ldr r0, [r7, #4] + 801615a: f7ff fea7 bl 8015eac + 801615e: 61f8 str r0, [r7, #28] if (seg == NULL) { - 8016150: 69fb ldr r3, [r7, #28] - 8016152: 2b00 cmp r3, #0 - 8016154: d063 beq.n 801621e + 8016160: 69fb ldr r3, [r7, #28] + 8016162: 2b00 cmp r3, #0 + 8016164: d063 beq.n 801622e seg->chksum_swapped = chksum_swapped; seg->flags |= TF_SEG_DATA_CHECKSUMMED; #endif /* TCP_CHECKSUM_ON_COPY */ /* Remove this segment from the queue since trimming it may free pbufs */ pcb->snd_queuelen -= pbuf_clen(useg->p); - 8016156: 697b ldr r3, [r7, #20] - 8016158: 685b ldr r3, [r3, #4] - 801615a: 4618 mov r0, r3 - 801615c: f7fb fdd2 bl 8011d04 - 8016160: 4603 mov r3, r0 - 8016162: 461a mov r2, r3 - 8016164: 687b ldr r3, [r7, #4] - 8016166: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 801616a: 1a9b subs r3, r3, r2 - 801616c: b29a uxth r2, r3 - 801616e: 687b ldr r3, [r7, #4] - 8016170: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 8016166: 697b ldr r3, [r7, #20] + 8016168: 685b ldr r3, [r3, #4] + 801616a: 4618 mov r0, r3 + 801616c: f7fb fdd2 bl 8011d14 + 8016170: 4603 mov r3, r0 + 8016172: 461a mov r2, r3 + 8016174: 687b ldr r3, [r7, #4] + 8016176: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 801617a: 1a9b subs r3, r3, r2 + 801617c: b29a uxth r2, r3 + 801617e: 687b ldr r3, [r7, #4] + 8016180: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 /* Trim the original pbuf into our split size. At this point our remainder segment must be setup successfully because we are modifying the original segment */ pbuf_realloc(useg->p, useg->p->tot_len - remainder); - 8016174: 697b ldr r3, [r7, #20] - 8016176: 6858 ldr r0, [r3, #4] - 8016178: 697b ldr r3, [r7, #20] - 801617a: 685b ldr r3, [r3, #4] - 801617c: 891a ldrh r2, [r3, #8] - 801617e: 89bb ldrh r3, [r7, #12] - 8016180: 1ad3 subs r3, r2, r3 - 8016182: b29b uxth r3, r3 - 8016184: 4619 mov r1, r3 - 8016186: f7fb fba9 bl 80118dc - useg->len -= remainder; - 801618a: 697b ldr r3, [r7, #20] + 8016184: 697b ldr r3, [r7, #20] + 8016186: 6858 ldr r0, [r3, #4] + 8016188: 697b ldr r3, [r7, #20] + 801618a: 685b ldr r3, [r3, #4] 801618c: 891a ldrh r2, [r3, #8] 801618e: 89bb ldrh r3, [r7, #12] 8016190: 1ad3 subs r3, r2, r3 - 8016192: b29a uxth r2, r3 - 8016194: 697b ldr r3, [r7, #20] - 8016196: 811a strh r2, [r3, #8] + 8016192: b29b uxth r3, r3 + 8016194: 4619 mov r1, r3 + 8016196: f7fb fba9 bl 80118ec + useg->len -= remainder; + 801619a: 697b ldr r3, [r7, #20] + 801619c: 891a ldrh r2, [r3, #8] + 801619e: 89bb ldrh r3, [r7, #12] + 80161a0: 1ad3 subs r3, r2, r3 + 80161a2: b29a uxth r2, r3 + 80161a4: 697b ldr r3, [r7, #20] + 80161a6: 811a strh r2, [r3, #8] TCPH_SET_FLAG(useg->tcphdr, split_flags); - 8016198: 697b ldr r3, [r7, #20] - 801619a: 68db ldr r3, [r3, #12] - 801619c: 899b ldrh r3, [r3, #12] - 801619e: b29c uxth r4, r3 - 80161a0: 7efb ldrb r3, [r7, #27] - 80161a2: b29b uxth r3, r3 - 80161a4: 4618 mov r0, r3 - 80161a6: f7fa f96b bl 8010480 - 80161aa: 4603 mov r3, r0 - 80161ac: 461a mov r2, r3 - 80161ae: 697b ldr r3, [r7, #20] - 80161b0: 68db ldr r3, [r3, #12] - 80161b2: 4322 orrs r2, r4 - 80161b4: b292 uxth r2, r2 - 80161b6: 819a strh r2, [r3, #12] + 80161a8: 697b ldr r3, [r7, #20] + 80161aa: 68db ldr r3, [r3, #12] + 80161ac: 899b ldrh r3, [r3, #12] + 80161ae: b29c uxth r4, r3 + 80161b0: 7efb ldrb r3, [r7, #27] + 80161b2: b29b uxth r3, r3 + 80161b4: 4618 mov r0, r3 + 80161b6: f7fa f96b bl 8010490 + 80161ba: 4603 mov r3, r0 + 80161bc: 461a mov r2, r3 + 80161be: 697b ldr r3, [r7, #20] + 80161c0: 68db ldr r3, [r3, #12] + 80161c2: 4322 orrs r2, r4 + 80161c4: b292 uxth r2, r2 + 80161c6: 819a strh r2, [r3, #12] /* By trimming, realloc may have actually shrunk the pbuf, so clear oversize_left */ useg->oversize_left = 0; #endif /* TCP_OVERSIZE_DBGCHECK */ /* Add back to the queue with new trimmed pbuf */ pcb->snd_queuelen += pbuf_clen(useg->p); - 80161b8: 697b ldr r3, [r7, #20] - 80161ba: 685b ldr r3, [r3, #4] - 80161bc: 4618 mov r0, r3 - 80161be: f7fb fda1 bl 8011d04 - 80161c2: 4603 mov r3, r0 - 80161c4: 461a mov r2, r3 - 80161c6: 687b ldr r3, [r7, #4] - 80161c8: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 80161cc: 4413 add r3, r2 - 80161ce: b29a uxth r2, r3 - 80161d0: 687b ldr r3, [r7, #4] - 80161d2: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 80161c8: 697b ldr r3, [r7, #20] + 80161ca: 685b ldr r3, [r3, #4] + 80161cc: 4618 mov r0, r3 + 80161ce: f7fb fda1 bl 8011d14 + 80161d2: 4603 mov r3, r0 + 80161d4: 461a mov r2, r3 + 80161d6: 687b ldr r3, [r7, #4] + 80161d8: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 80161dc: 4413 add r3, r2 + 80161de: b29a uxth r2, r3 + 80161e0: 687b ldr r3, [r7, #4] + 80161e2: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 #endif /* TCP_CHECKSUM_ON_COPY */ /* Update number of segments on the queues. Note that length now may * exceed TCP_SND_QUEUELEN! We don't have to touch pcb->snd_buf * because the total amount of data is constant when packet is split */ pcb->snd_queuelen += pbuf_clen(seg->p); - 80161d6: 69fb ldr r3, [r7, #28] - 80161d8: 685b ldr r3, [r3, #4] - 80161da: 4618 mov r0, r3 - 80161dc: f7fb fd92 bl 8011d04 - 80161e0: 4603 mov r3, r0 - 80161e2: 461a mov r2, r3 - 80161e4: 687b ldr r3, [r7, #4] - 80161e6: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 80161ea: 4413 add r3, r2 - 80161ec: b29a uxth r2, r3 - 80161ee: 687b ldr r3, [r7, #4] - 80161f0: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + 80161e6: 69fb ldr r3, [r7, #28] + 80161e8: 685b ldr r3, [r3, #4] + 80161ea: 4618 mov r0, r3 + 80161ec: f7fb fd92 bl 8011d14 + 80161f0: 4603 mov r3, r0 + 80161f2: 461a mov r2, r3 + 80161f4: 687b ldr r3, [r7, #4] + 80161f6: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 80161fa: 4413 add r3, r2 + 80161fc: b29a uxth r2, r3 + 80161fe: 687b ldr r3, [r7, #4] + 8016200: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 /* Finally insert remainder into queue after split (which stays head) */ seg->next = useg->next; - 80161f4: 697b ldr r3, [r7, #20] - 80161f6: 681a ldr r2, [r3, #0] - 80161f8: 69fb ldr r3, [r7, #28] - 80161fa: 601a str r2, [r3, #0] + 8016204: 697b ldr r3, [r7, #20] + 8016206: 681a ldr r2, [r3, #0] + 8016208: 69fb ldr r3, [r7, #28] + 801620a: 601a str r2, [r3, #0] useg->next = seg; - 80161fc: 697b ldr r3, [r7, #20] - 80161fe: 69fa ldr r2, [r7, #28] - 8016200: 601a str r2, [r3, #0] + 801620c: 697b ldr r3, [r7, #20] + 801620e: 69fa ldr r2, [r7, #28] + 8016210: 601a str r2, [r3, #0] #if TCP_OVERSIZE /* If remainder is last segment on the unsent, ensure we clear the oversize amount * because the remainder is always sized to the exact remaining amount */ if (seg->next == NULL) { - 8016202: 69fb ldr r3, [r7, #28] - 8016204: 681b ldr r3, [r3, #0] - 8016206: 2b00 cmp r3, #0 - 8016208: d103 bne.n 8016212 + 8016212: 69fb ldr r3, [r7, #28] + 8016214: 681b ldr r3, [r3, #0] + 8016216: 2b00 cmp r3, #0 + 8016218: d103 bne.n 8016222 pcb->unsent_oversize = 0; - 801620a: 687b ldr r3, [r7, #4] - 801620c: 2200 movs r2, #0 - 801620e: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 801621a: 687b ldr r3, [r7, #4] + 801621c: 2200 movs r2, #0 + 801621e: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 } #endif /* TCP_OVERSIZE */ return ERR_OK; - 8016212: 2300 movs r3, #0 - 8016214: e016 b.n 8016244 + 8016222: 2300 movs r3, #0 + 8016224: e016 b.n 8016254 goto memerr; - 8016216: bf00 nop - 8016218: e002 b.n 8016220 + 8016226: bf00 nop + 8016228: e002 b.n 8016230 goto memerr; - 801621a: bf00 nop - 801621c: e000 b.n 8016220 + 801622a: bf00 nop + 801622c: e000 b.n 8016230 goto memerr; - 801621e: bf00 nop + 801622e: bf00 nop memerr: TCP_STATS_INC(tcp.memerr); LWIP_ASSERT("seg == NULL", seg == NULL); - 8016220: 69fb ldr r3, [r7, #28] - 8016222: 2b00 cmp r3, #0 - 8016224: d006 beq.n 8016234 - 8016226: 4b09 ldr r3, [pc, #36] ; (801624c ) - 8016228: f44f 7276 mov.w r2, #984 ; 0x3d8 - 801622c: 490d ldr r1, [pc, #52] ; (8016264 ) - 801622e: 4809 ldr r0, [pc, #36] ; (8016254 ) - 8016230: f006 fa0a bl 801c648 + 8016230: 69fb ldr r3, [r7, #28] + 8016232: 2b00 cmp r3, #0 + 8016234: d006 beq.n 8016244 + 8016236: 4b09 ldr r3, [pc, #36] ; (801625c ) + 8016238: f44f 7276 mov.w r2, #984 ; 0x3d8 + 801623c: 490d ldr r1, [pc, #52] ; (8016274 ) + 801623e: 4809 ldr r0, [pc, #36] ; (8016264 ) + 8016240: f006 fa0a bl 801c658 if (p != NULL) { - 8016234: 693b ldr r3, [r7, #16] - 8016236: 2b00 cmp r3, #0 - 8016238: d002 beq.n 8016240 + 8016244: 693b ldr r3, [r7, #16] + 8016246: 2b00 cmp r3, #0 + 8016248: d002 beq.n 8016250 pbuf_free(p); - 801623a: 6938 ldr r0, [r7, #16] - 801623c: f7fb fcd4 bl 8011be8 + 801624a: 6938 ldr r0, [r7, #16] + 801624c: f7fb fcd4 bl 8011bf8 } return ERR_MEM; - 8016240: f04f 33ff mov.w r3, #4294967295 -} - 8016244: 4618 mov r0, r3 - 8016246: 3724 adds r7, #36 ; 0x24 - 8016248: 46bd mov sp, r7 - 801624a: bd90 pop {r4, r7, pc} - 801624c: 0801f0c0 .word 0x0801f0c0 - 8016250: 0801f454 .word 0x0801f454 - 8016254: 0801f114 .word 0x0801f114 - 8016258: 0801f478 .word 0x0801f478 - 801625c: 0801f49c .word 0x0801f49c - 8016260: 0801f4ac .word 0x0801f4ac - 8016264: 0801f4bc .word 0x0801f4bc - -08016268 : + 8016250: f04f 33ff mov.w r3, #4294967295 +} + 8016254: 4618 mov r0, r3 + 8016256: 3724 adds r7, #36 ; 0x24 + 8016258: 46bd mov sp, r7 + 801625a: bd90 pop {r4, r7, pc} + 801625c: 0801f0d0 .word 0x0801f0d0 + 8016260: 0801f464 .word 0x0801f464 + 8016264: 0801f124 .word 0x0801f124 + 8016268: 0801f488 .word 0x0801f488 + 801626c: 0801f4ac .word 0x0801f4ac + 8016270: 0801f4bc .word 0x0801f4bc + 8016274: 0801f4cc .word 0x0801f4cc + +08016278 : * @param pcb the tcp_pcb over which to send a segment * @return ERR_OK if sent, another err_t otherwise */ err_t tcp_send_fin(struct tcp_pcb *pcb) { - 8016268: b590 push {r4, r7, lr} - 801626a: b085 sub sp, #20 - 801626c: af00 add r7, sp, #0 - 801626e: 6078 str r0, [r7, #4] + 8016278: b590 push {r4, r7, lr} + 801627a: b085 sub sp, #20 + 801627c: af00 add r7, sp, #0 + 801627e: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_send_fin: invalid pcb", pcb != NULL); - 8016270: 687b ldr r3, [r7, #4] - 8016272: 2b00 cmp r3, #0 - 8016274: d106 bne.n 8016284 - 8016276: 4b21 ldr r3, [pc, #132] ; (80162fc ) - 8016278: f240 32eb movw r2, #1003 ; 0x3eb - 801627c: 4920 ldr r1, [pc, #128] ; (8016300 ) - 801627e: 4821 ldr r0, [pc, #132] ; (8016304 ) - 8016280: f006 f9e2 bl 801c648 + 8016280: 687b ldr r3, [r7, #4] + 8016282: 2b00 cmp r3, #0 + 8016284: d106 bne.n 8016294 + 8016286: 4b21 ldr r3, [pc, #132] ; (801630c ) + 8016288: f240 32eb movw r2, #1003 ; 0x3eb + 801628c: 4920 ldr r1, [pc, #128] ; (8016310 ) + 801628e: 4821 ldr r0, [pc, #132] ; (8016314 ) + 8016290: f006 f9e2 bl 801c658 /* first, try to add the fin to the last unsent segment */ if (pcb->unsent != NULL) { - 8016284: 687b ldr r3, [r7, #4] - 8016286: 6edb ldr r3, [r3, #108] ; 0x6c - 8016288: 2b00 cmp r3, #0 - 801628a: d02e beq.n 80162ea + 8016294: 687b ldr r3, [r7, #4] + 8016296: 6edb ldr r3, [r3, #108] ; 0x6c + 8016298: 2b00 cmp r3, #0 + 801629a: d02e beq.n 80162fa struct tcp_seg *last_unsent; for (last_unsent = pcb->unsent; last_unsent->next != NULL; - 801628c: 687b ldr r3, [r7, #4] - 801628e: 6edb ldr r3, [r3, #108] ; 0x6c - 8016290: 60fb str r3, [r7, #12] - 8016292: e002 b.n 801629a + 801629c: 687b ldr r3, [r7, #4] + 801629e: 6edb ldr r3, [r3, #108] ; 0x6c + 80162a0: 60fb str r3, [r7, #12] + 80162a2: e002 b.n 80162aa last_unsent = last_unsent->next); - 8016294: 68fb ldr r3, [r7, #12] - 8016296: 681b ldr r3, [r3, #0] - 8016298: 60fb str r3, [r7, #12] + 80162a4: 68fb ldr r3, [r7, #12] + 80162a6: 681b ldr r3, [r3, #0] + 80162a8: 60fb str r3, [r7, #12] for (last_unsent = pcb->unsent; last_unsent->next != NULL; - 801629a: 68fb ldr r3, [r7, #12] - 801629c: 681b ldr r3, [r3, #0] - 801629e: 2b00 cmp r3, #0 - 80162a0: d1f8 bne.n 8016294 + 80162aa: 68fb ldr r3, [r7, #12] + 80162ac: 681b ldr r3, [r3, #0] + 80162ae: 2b00 cmp r3, #0 + 80162b0: d1f8 bne.n 80162a4 if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) { - 80162a2: 68fb ldr r3, [r7, #12] - 80162a4: 68db ldr r3, [r3, #12] - 80162a6: 899b ldrh r3, [r3, #12] - 80162a8: b29b uxth r3, r3 - 80162aa: 4618 mov r0, r3 - 80162ac: f7fa f8e8 bl 8010480 - 80162b0: 4603 mov r3, r0 - 80162b2: b2db uxtb r3, r3 - 80162b4: f003 0307 and.w r3, r3, #7 - 80162b8: 2b00 cmp r3, #0 - 80162ba: d116 bne.n 80162ea + 80162b2: 68fb ldr r3, [r7, #12] + 80162b4: 68db ldr r3, [r3, #12] + 80162b6: 899b ldrh r3, [r3, #12] + 80162b8: b29b uxth r3, r3 + 80162ba: 4618 mov r0, r3 + 80162bc: f7fa f8e8 bl 8010490 + 80162c0: 4603 mov r3, r0 + 80162c2: b2db uxtb r3, r3 + 80162c4: f003 0307 and.w r3, r3, #7 + 80162c8: 2b00 cmp r3, #0 + 80162ca: d116 bne.n 80162fa /* no SYN/FIN/RST flag in the header, we can add the FIN flag */ TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN); - 80162bc: 68fb ldr r3, [r7, #12] - 80162be: 68db ldr r3, [r3, #12] - 80162c0: 899b ldrh r3, [r3, #12] - 80162c2: b29c uxth r4, r3 - 80162c4: 2001 movs r0, #1 - 80162c6: f7fa f8db bl 8010480 - 80162ca: 4603 mov r3, r0 - 80162cc: 461a mov r2, r3 - 80162ce: 68fb ldr r3, [r7, #12] - 80162d0: 68db ldr r3, [r3, #12] - 80162d2: 4322 orrs r2, r4 - 80162d4: b292 uxth r2, r2 - 80162d6: 819a strh r2, [r3, #12] + 80162cc: 68fb ldr r3, [r7, #12] + 80162ce: 68db ldr r3, [r3, #12] + 80162d0: 899b ldrh r3, [r3, #12] + 80162d2: b29c uxth r4, r3 + 80162d4: 2001 movs r0, #1 + 80162d6: f7fa f8db bl 8010490 + 80162da: 4603 mov r3, r0 + 80162dc: 461a mov r2, r3 + 80162de: 68fb ldr r3, [r7, #12] + 80162e0: 68db ldr r3, [r3, #12] + 80162e2: 4322 orrs r2, r4 + 80162e4: b292 uxth r2, r2 + 80162e6: 819a strh r2, [r3, #12] tcp_set_flags(pcb, TF_FIN); - 80162d8: 687b ldr r3, [r7, #4] - 80162da: 8b5b ldrh r3, [r3, #26] - 80162dc: f043 0320 orr.w r3, r3, #32 - 80162e0: b29a uxth r2, r3 - 80162e2: 687b ldr r3, [r7, #4] - 80162e4: 835a strh r2, [r3, #26] + 80162e8: 687b ldr r3, [r7, #4] + 80162ea: 8b5b ldrh r3, [r3, #26] + 80162ec: f043 0320 orr.w r3, r3, #32 + 80162f0: b29a uxth r2, r3 + 80162f2: 687b ldr r3, [r7, #4] + 80162f4: 835a strh r2, [r3, #26] return ERR_OK; - 80162e6: 2300 movs r3, #0 - 80162e8: e004 b.n 80162f4 + 80162f6: 2300 movs r3, #0 + 80162f8: e004 b.n 8016304 } } /* no data, no length, flags, copy=1, no optdata */ return tcp_enqueue_flags(pcb, TCP_FIN); - 80162ea: 2101 movs r1, #1 - 80162ec: 6878 ldr r0, [r7, #4] - 80162ee: f000 f80b bl 8016308 - 80162f2: 4603 mov r3, r0 -} - 80162f4: 4618 mov r0, r3 - 80162f6: 3714 adds r7, #20 - 80162f8: 46bd mov sp, r7 - 80162fa: bd90 pop {r4, r7, pc} - 80162fc: 0801f0c0 .word 0x0801f0c0 - 8016300: 0801f4c8 .word 0x0801f4c8 - 8016304: 0801f114 .word 0x0801f114 - -08016308 : + 80162fa: 2101 movs r1, #1 + 80162fc: 6878 ldr r0, [r7, #4] + 80162fe: f000 f80b bl 8016318 + 8016302: 4603 mov r3, r0 +} + 8016304: 4618 mov r0, r3 + 8016306: 3714 adds r7, #20 + 8016308: 46bd mov sp, r7 + 801630a: bd90 pop {r4, r7, pc} + 801630c: 0801f0d0 .word 0x0801f0d0 + 8016310: 0801f4d8 .word 0x0801f4d8 + 8016314: 0801f124 .word 0x0801f124 + +08016318 : * @param pcb Protocol control block for the TCP connection. * @param flags TCP header flags to set in the outgoing segment. */ err_t tcp_enqueue_flags(struct tcp_pcb *pcb, u8_t flags) { - 8016308: b580 push {r7, lr} - 801630a: b08a sub sp, #40 ; 0x28 - 801630c: af02 add r7, sp, #8 - 801630e: 6078 str r0, [r7, #4] - 8016310: 460b mov r3, r1 - 8016312: 70fb strb r3, [r7, #3] + 8016318: b580 push {r7, lr} + 801631a: b08a sub sp, #40 ; 0x28 + 801631c: af02 add r7, sp, #8 + 801631e: 6078 str r0, [r7, #4] + 8016320: 460b mov r3, r1 + 8016322: 70fb strb r3, [r7, #3] struct pbuf *p; struct tcp_seg *seg; u8_t optflags = 0; - 8016314: 2300 movs r3, #0 - 8016316: 77fb strb r3, [r7, #31] + 8016324: 2300 movs r3, #0 + 8016326: 77fb strb r3, [r7, #31] u8_t optlen = 0; - 8016318: 2300 movs r3, #0 - 801631a: 75fb strb r3, [r7, #23] + 8016328: 2300 movs r3, #0 + 801632a: 75fb strb r3, [r7, #23] LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: queuelen: %"U16_F"\n", (u16_t)pcb->snd_queuelen)); LWIP_ASSERT("tcp_enqueue_flags: need either TCP_SYN or TCP_FIN in flags (programmer violates API)", - 801631c: 78fb ldrb r3, [r7, #3] - 801631e: f003 0303 and.w r3, r3, #3 - 8016322: 2b00 cmp r3, #0 - 8016324: d106 bne.n 8016334 - 8016326: 4b67 ldr r3, [pc, #412] ; (80164c4 ) - 8016328: f240 4212 movw r2, #1042 ; 0x412 - 801632c: 4966 ldr r1, [pc, #408] ; (80164c8 ) - 801632e: 4867 ldr r0, [pc, #412] ; (80164cc ) - 8016330: f006 f98a bl 801c648 + 801632c: 78fb ldrb r3, [r7, #3] + 801632e: f003 0303 and.w r3, r3, #3 + 8016332: 2b00 cmp r3, #0 + 8016334: d106 bne.n 8016344 + 8016336: 4b67 ldr r3, [pc, #412] ; (80164d4 ) + 8016338: f240 4212 movw r2, #1042 ; 0x412 + 801633c: 4966 ldr r1, [pc, #408] ; (80164d8 ) + 801633e: 4867 ldr r0, [pc, #412] ; (80164dc ) + 8016340: f006 f98a bl 801c658 (flags & (TCP_SYN | TCP_FIN)) != 0); LWIP_ASSERT("tcp_enqueue_flags: invalid pcb", pcb != NULL); - 8016334: 687b ldr r3, [r7, #4] - 8016336: 2b00 cmp r3, #0 - 8016338: d106 bne.n 8016348 - 801633a: 4b62 ldr r3, [pc, #392] ; (80164c4 ) - 801633c: f240 4213 movw r2, #1043 ; 0x413 - 8016340: 4963 ldr r1, [pc, #396] ; (80164d0 ) - 8016342: 4862 ldr r0, [pc, #392] ; (80164cc ) - 8016344: f006 f980 bl 801c648 + 8016344: 687b ldr r3, [r7, #4] + 8016346: 2b00 cmp r3, #0 + 8016348: d106 bne.n 8016358 + 801634a: 4b62 ldr r3, [pc, #392] ; (80164d4 ) + 801634c: f240 4213 movw r2, #1043 ; 0x413 + 8016350: 4963 ldr r1, [pc, #396] ; (80164e0 ) + 8016352: 4862 ldr r0, [pc, #392] ; (80164dc ) + 8016354: f006 f980 bl 801c658 /* No need to check pcb->snd_queuelen if only SYN or FIN are allowed! */ /* Get options for this segment. This is a special case since this is the only place where a SYN can be sent. */ if (flags & TCP_SYN) { - 8016348: 78fb ldrb r3, [r7, #3] - 801634a: f003 0302 and.w r3, r3, #2 - 801634e: 2b00 cmp r3, #0 - 8016350: d001 beq.n 8016356 + 8016358: 78fb ldrb r3, [r7, #3] + 801635a: f003 0302 and.w r3, r3, #2 + 801635e: 2b00 cmp r3, #0 + 8016360: d001 beq.n 8016366 optflags = TF_SEG_OPTS_MSS; - 8016352: 2301 movs r3, #1 - 8016354: 77fb strb r3, [r7, #31] + 8016362: 2301 movs r3, #1 + 8016364: 77fb strb r3, [r7, #31] /* Make sure the timestamp option is only included in data segments if we agreed about it with the remote host (and in active open SYN segments). */ optflags |= TF_SEG_OPTS_TS; } #endif /* LWIP_TCP_TIMESTAMPS */ optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - 8016356: 7ffb ldrb r3, [r7, #31] - 8016358: 009b lsls r3, r3, #2 - 801635a: b2db uxtb r3, r3 - 801635c: f003 0304 and.w r3, r3, #4 - 8016360: 75fb strb r3, [r7, #23] + 8016366: 7ffb ldrb r3, [r7, #31] + 8016368: 009b lsls r3, r3, #2 + 801636a: b2db uxtb r3, r3 + 801636c: f003 0304 and.w r3, r3, #4 + 8016370: 75fb strb r3, [r7, #23] /* Allocate pbuf with room for TCP header + options */ if ((p = pbuf_alloc(PBUF_TRANSPORT, optlen, PBUF_RAM)) == NULL) { - 8016362: 7dfb ldrb r3, [r7, #23] - 8016364: b29b uxth r3, r3 - 8016366: f44f 7220 mov.w r2, #640 ; 0x280 - 801636a: 4619 mov r1, r3 - 801636c: 2036 movs r0, #54 ; 0x36 - 801636e: f7fb f95b bl 8011628 - 8016372: 6138 str r0, [r7, #16] - 8016374: 693b ldr r3, [r7, #16] - 8016376: 2b00 cmp r3, #0 - 8016378: d109 bne.n 801638e + 8016372: 7dfb ldrb r3, [r7, #23] + 8016374: b29b uxth r3, r3 + 8016376: f44f 7220 mov.w r2, #640 ; 0x280 + 801637a: 4619 mov r1, r3 + 801637c: 2036 movs r0, #54 ; 0x36 + 801637e: f7fb f95b bl 8011638 + 8016382: 6138 str r0, [r7, #16] + 8016384: 693b ldr r3, [r7, #16] + 8016386: 2b00 cmp r3, #0 + 8016388: d109 bne.n 801639e tcp_set_flags(pcb, TF_NAGLEMEMERR); - 801637a: 687b ldr r3, [r7, #4] - 801637c: 8b5b ldrh r3, [r3, #26] - 801637e: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8016382: b29a uxth r2, r3 - 8016384: 687b ldr r3, [r7, #4] - 8016386: 835a strh r2, [r3, #26] + 801638a: 687b ldr r3, [r7, #4] + 801638c: 8b5b ldrh r3, [r3, #26] + 801638e: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8016392: b29a uxth r2, r3 + 8016394: 687b ldr r3, [r7, #4] + 8016396: 835a strh r2, [r3, #26] TCP_STATS_INC(tcp.memerr); return ERR_MEM; - 8016388: f04f 33ff mov.w r3, #4294967295 - 801638c: e095 b.n 80164ba + 8016398: f04f 33ff mov.w r3, #4294967295 + 801639c: e095 b.n 80164ca } LWIP_ASSERT("tcp_enqueue_flags: check that first pbuf can hold optlen", - 801638e: 693b ldr r3, [r7, #16] - 8016390: 895a ldrh r2, [r3, #10] - 8016392: 7dfb ldrb r3, [r7, #23] - 8016394: b29b uxth r3, r3 - 8016396: 429a cmp r2, r3 - 8016398: d206 bcs.n 80163a8 - 801639a: 4b4a ldr r3, [pc, #296] ; (80164c4 ) - 801639c: f240 423a movw r2, #1082 ; 0x43a - 80163a0: 494c ldr r1, [pc, #304] ; (80164d4 ) - 80163a2: 484a ldr r0, [pc, #296] ; (80164cc ) - 80163a4: f006 f950 bl 801c648 + 801639e: 693b ldr r3, [r7, #16] + 80163a0: 895a ldrh r2, [r3, #10] + 80163a2: 7dfb ldrb r3, [r7, #23] + 80163a4: b29b uxth r3, r3 + 80163a6: 429a cmp r2, r3 + 80163a8: d206 bcs.n 80163b8 + 80163aa: 4b4a ldr r3, [pc, #296] ; (80164d4 ) + 80163ac: f240 423a movw r2, #1082 ; 0x43a + 80163b0: 494c ldr r1, [pc, #304] ; (80164e4 ) + 80163b2: 484a ldr r0, [pc, #296] ; (80164dc ) + 80163b4: f006 f950 bl 801c658 (p->len >= optlen)); /* Allocate memory for tcp_seg, and fill in fields. */ if ((seg = tcp_create_segment(pcb, p, flags, pcb->snd_lbb, optflags)) == NULL) { - 80163a8: 687b ldr r3, [r7, #4] - 80163aa: 6dd9 ldr r1, [r3, #92] ; 0x5c - 80163ac: 78fa ldrb r2, [r7, #3] - 80163ae: 7ffb ldrb r3, [r7, #31] - 80163b0: 9300 str r3, [sp, #0] - 80163b2: 460b mov r3, r1 - 80163b4: 6939 ldr r1, [r7, #16] - 80163b6: 6878 ldr r0, [r7, #4] - 80163b8: f7ff fd70 bl 8015e9c - 80163bc: 60f8 str r0, [r7, #12] - 80163be: 68fb ldr r3, [r7, #12] - 80163c0: 2b00 cmp r3, #0 - 80163c2: d109 bne.n 80163d8 + 80163b8: 687b ldr r3, [r7, #4] + 80163ba: 6dd9 ldr r1, [r3, #92] ; 0x5c + 80163bc: 78fa ldrb r2, [r7, #3] + 80163be: 7ffb ldrb r3, [r7, #31] + 80163c0: 9300 str r3, [sp, #0] + 80163c2: 460b mov r3, r1 + 80163c4: 6939 ldr r1, [r7, #16] + 80163c6: 6878 ldr r0, [r7, #4] + 80163c8: f7ff fd70 bl 8015eac + 80163cc: 60f8 str r0, [r7, #12] + 80163ce: 68fb ldr r3, [r7, #12] + 80163d0: 2b00 cmp r3, #0 + 80163d2: d109 bne.n 80163e8 tcp_set_flags(pcb, TF_NAGLEMEMERR); - 80163c4: 687b ldr r3, [r7, #4] - 80163c6: 8b5b ldrh r3, [r3, #26] - 80163c8: f043 0380 orr.w r3, r3, #128 ; 0x80 - 80163cc: b29a uxth r2, r3 - 80163ce: 687b ldr r3, [r7, #4] - 80163d0: 835a strh r2, [r3, #26] + 80163d4: 687b ldr r3, [r7, #4] + 80163d6: 8b5b ldrh r3, [r3, #26] + 80163d8: f043 0380 orr.w r3, r3, #128 ; 0x80 + 80163dc: b29a uxth r2, r3 + 80163de: 687b ldr r3, [r7, #4] + 80163e0: 835a strh r2, [r3, #26] TCP_STATS_INC(tcp.memerr); return ERR_MEM; - 80163d2: f04f 33ff mov.w r3, #4294967295 - 80163d6: e070 b.n 80164ba + 80163e2: f04f 33ff mov.w r3, #4294967295 + 80163e6: e070 b.n 80164ca } LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0); - 80163d8: 68fb ldr r3, [r7, #12] - 80163da: 68db ldr r3, [r3, #12] - 80163dc: f003 0303 and.w r3, r3, #3 - 80163e0: 2b00 cmp r3, #0 - 80163e2: d006 beq.n 80163f2 - 80163e4: 4b37 ldr r3, [pc, #220] ; (80164c4 ) - 80163e6: f240 4242 movw r2, #1090 ; 0x442 - 80163ea: 493b ldr r1, [pc, #236] ; (80164d8 ) - 80163ec: 4837 ldr r0, [pc, #220] ; (80164cc ) - 80163ee: f006 f92b bl 801c648 + 80163e8: 68fb ldr r3, [r7, #12] + 80163ea: 68db ldr r3, [r3, #12] + 80163ec: f003 0303 and.w r3, r3, #3 + 80163f0: 2b00 cmp r3, #0 + 80163f2: d006 beq.n 8016402 + 80163f4: 4b37 ldr r3, [pc, #220] ; (80164d4 ) + 80163f6: f240 4242 movw r2, #1090 ; 0x442 + 80163fa: 493b ldr r1, [pc, #236] ; (80164e8 ) + 80163fc: 4837 ldr r0, [pc, #220] ; (80164dc ) + 80163fe: f006 f92b bl 801c658 LWIP_ASSERT("tcp_enqueue_flags: invalid segment length", seg->len == 0); - 80163f2: 68fb ldr r3, [r7, #12] - 80163f4: 891b ldrh r3, [r3, #8] - 80163f6: 2b00 cmp r3, #0 - 80163f8: d006 beq.n 8016408 - 80163fa: 4b32 ldr r3, [pc, #200] ; (80164c4 ) - 80163fc: f240 4243 movw r2, #1091 ; 0x443 - 8016400: 4936 ldr r1, [pc, #216] ; (80164dc ) - 8016402: 4832 ldr r0, [pc, #200] ; (80164cc ) - 8016404: f006 f920 bl 801c648 + 8016402: 68fb ldr r3, [r7, #12] + 8016404: 891b ldrh r3, [r3, #8] + 8016406: 2b00 cmp r3, #0 + 8016408: d006 beq.n 8016418 + 801640a: 4b32 ldr r3, [pc, #200] ; (80164d4 ) + 801640c: f240 4243 movw r2, #1091 ; 0x443 + 8016410: 4936 ldr r1, [pc, #216] ; (80164ec ) + 8016412: 4832 ldr r0, [pc, #200] ; (80164dc ) + 8016414: f006 f920 bl 801c658 lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg), (u16_t)flags)); /* Now append seg to pcb->unsent queue */ if (pcb->unsent == NULL) { - 8016408: 687b ldr r3, [r7, #4] - 801640a: 6edb ldr r3, [r3, #108] ; 0x6c - 801640c: 2b00 cmp r3, #0 - 801640e: d103 bne.n 8016418 + 8016418: 687b ldr r3, [r7, #4] + 801641a: 6edb ldr r3, [r3, #108] ; 0x6c + 801641c: 2b00 cmp r3, #0 + 801641e: d103 bne.n 8016428 pcb->unsent = seg; - 8016410: 687b ldr r3, [r7, #4] - 8016412: 68fa ldr r2, [r7, #12] - 8016414: 66da str r2, [r3, #108] ; 0x6c - 8016416: e00d b.n 8016434 + 8016420: 687b ldr r3, [r7, #4] + 8016422: 68fa ldr r2, [r7, #12] + 8016424: 66da str r2, [r3, #108] ; 0x6c + 8016426: e00d b.n 8016444 } else { struct tcp_seg *useg; for (useg = pcb->unsent; useg->next != NULL; useg = useg->next); - 8016418: 687b ldr r3, [r7, #4] - 801641a: 6edb ldr r3, [r3, #108] ; 0x6c - 801641c: 61bb str r3, [r7, #24] - 801641e: e002 b.n 8016426 - 8016420: 69bb ldr r3, [r7, #24] - 8016422: 681b ldr r3, [r3, #0] - 8016424: 61bb str r3, [r7, #24] - 8016426: 69bb ldr r3, [r7, #24] - 8016428: 681b ldr r3, [r3, #0] - 801642a: 2b00 cmp r3, #0 - 801642c: d1f8 bne.n 8016420 + 8016428: 687b ldr r3, [r7, #4] + 801642a: 6edb ldr r3, [r3, #108] ; 0x6c + 801642c: 61bb str r3, [r7, #24] + 801642e: e002 b.n 8016436 + 8016430: 69bb ldr r3, [r7, #24] + 8016432: 681b ldr r3, [r3, #0] + 8016434: 61bb str r3, [r7, #24] + 8016436: 69bb ldr r3, [r7, #24] + 8016438: 681b ldr r3, [r3, #0] + 801643a: 2b00 cmp r3, #0 + 801643c: d1f8 bne.n 8016430 useg->next = seg; - 801642e: 69bb ldr r3, [r7, #24] - 8016430: 68fa ldr r2, [r7, #12] - 8016432: 601a str r2, [r3, #0] + 801643e: 69bb ldr r3, [r7, #24] + 8016440: 68fa ldr r2, [r7, #12] + 8016442: 601a str r2, [r3, #0] } #if TCP_OVERSIZE /* The new unsent tail has no space */ pcb->unsent_oversize = 0; - 8016434: 687b ldr r3, [r7, #4] - 8016436: 2200 movs r2, #0 - 8016438: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 8016444: 687b ldr r3, [r7, #4] + 8016446: 2200 movs r2, #0 + 8016448: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 #endif /* TCP_OVERSIZE */ /* SYN and FIN bump the sequence number */ if ((flags & TCP_SYN) || (flags & TCP_FIN)) { - 801643c: 78fb ldrb r3, [r7, #3] - 801643e: f003 0302 and.w r3, r3, #2 - 8016442: 2b00 cmp r3, #0 - 8016444: d104 bne.n 8016450 - 8016446: 78fb ldrb r3, [r7, #3] - 8016448: f003 0301 and.w r3, r3, #1 - 801644c: 2b00 cmp r3, #0 - 801644e: d004 beq.n 801645a + 801644c: 78fb ldrb r3, [r7, #3] + 801644e: f003 0302 and.w r3, r3, #2 + 8016452: 2b00 cmp r3, #0 + 8016454: d104 bne.n 8016460 + 8016456: 78fb ldrb r3, [r7, #3] + 8016458: f003 0301 and.w r3, r3, #1 + 801645c: 2b00 cmp r3, #0 + 801645e: d004 beq.n 801646a pcb->snd_lbb++; - 8016450: 687b ldr r3, [r7, #4] - 8016452: 6ddb ldr r3, [r3, #92] ; 0x5c - 8016454: 1c5a adds r2, r3, #1 - 8016456: 687b ldr r3, [r7, #4] - 8016458: 65da str r2, [r3, #92] ; 0x5c + 8016460: 687b ldr r3, [r7, #4] + 8016462: 6ddb ldr r3, [r3, #92] ; 0x5c + 8016464: 1c5a adds r2, r3, #1 + 8016466: 687b ldr r3, [r7, #4] + 8016468: 65da str r2, [r3, #92] ; 0x5c /* optlen does not influence snd_buf */ } if (flags & TCP_FIN) { - 801645a: 78fb ldrb r3, [r7, #3] - 801645c: f003 0301 and.w r3, r3, #1 - 8016460: 2b00 cmp r3, #0 - 8016462: d006 beq.n 8016472 + 801646a: 78fb ldrb r3, [r7, #3] + 801646c: f003 0301 and.w r3, r3, #1 + 8016470: 2b00 cmp r3, #0 + 8016472: d006 beq.n 8016482 tcp_set_flags(pcb, TF_FIN); - 8016464: 687b ldr r3, [r7, #4] - 8016466: 8b5b ldrh r3, [r3, #26] - 8016468: f043 0320 orr.w r3, r3, #32 - 801646c: b29a uxth r2, r3 - 801646e: 687b ldr r3, [r7, #4] - 8016470: 835a strh r2, [r3, #26] + 8016474: 687b ldr r3, [r7, #4] + 8016476: 8b5b ldrh r3, [r3, #26] + 8016478: f043 0320 orr.w r3, r3, #32 + 801647c: b29a uxth r2, r3 + 801647e: 687b ldr r3, [r7, #4] + 8016480: 835a strh r2, [r3, #26] } /* update number of segments on the queues */ pcb->snd_queuelen += pbuf_clen(seg->p); - 8016472: 68fb ldr r3, [r7, #12] - 8016474: 685b ldr r3, [r3, #4] - 8016476: 4618 mov r0, r3 - 8016478: f7fb fc44 bl 8011d04 - 801647c: 4603 mov r3, r0 - 801647e: 461a mov r2, r3 - 8016480: 687b ldr r3, [r7, #4] - 8016482: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8016486: 4413 add r3, r2 - 8016488: b29a uxth r2, r3 - 801648a: 687b ldr r3, [r7, #4] - 801648c: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 - LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: %"S16_F" (after enqueued)\n", pcb->snd_queuelen)); - if (pcb->snd_queuelen != 0) { + 8016482: 68fb ldr r3, [r7, #12] + 8016484: 685b ldr r3, [r3, #4] + 8016486: 4618 mov r0, r3 + 8016488: f7fb fc44 bl 8011d14 + 801648c: 4603 mov r3, r0 + 801648e: 461a mov r2, r3 8016490: 687b ldr r3, [r7, #4] 8016492: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 8016496: 2b00 cmp r3, #0 - 8016498: d00e beq.n 80164b8 - LWIP_ASSERT("tcp_enqueue_flags: invalid queue length", + 8016496: 4413 add r3, r2 + 8016498: b29a uxth r2, r3 801649a: 687b ldr r3, [r7, #4] - 801649c: 6f1b ldr r3, [r3, #112] ; 0x70 - 801649e: 2b00 cmp r3, #0 - 80164a0: d10a bne.n 80164b8 - 80164a2: 687b ldr r3, [r7, #4] - 80164a4: 6edb ldr r3, [r3, #108] ; 0x6c + 801649c: f8a3 2066 strh.w r2, [r3, #102] ; 0x66 + LWIP_DEBUGF(TCP_QLEN_DEBUG, ("tcp_enqueue_flags: %"S16_F" (after enqueued)\n", pcb->snd_queuelen)); + if (pcb->snd_queuelen != 0) { + 80164a0: 687b ldr r3, [r7, #4] + 80164a2: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 80164a6: 2b00 cmp r3, #0 - 80164a8: d106 bne.n 80164b8 - 80164aa: 4b06 ldr r3, [pc, #24] ; (80164c4 ) - 80164ac: f240 4266 movw r2, #1126 ; 0x466 - 80164b0: 490b ldr r1, [pc, #44] ; (80164e0 ) - 80164b2: 4806 ldr r0, [pc, #24] ; (80164cc ) - 80164b4: f006 f8c8 bl 801c648 + 80164a8: d00e beq.n 80164c8 + LWIP_ASSERT("tcp_enqueue_flags: invalid queue length", + 80164aa: 687b ldr r3, [r7, #4] + 80164ac: 6f1b ldr r3, [r3, #112] ; 0x70 + 80164ae: 2b00 cmp r3, #0 + 80164b0: d10a bne.n 80164c8 + 80164b2: 687b ldr r3, [r7, #4] + 80164b4: 6edb ldr r3, [r3, #108] ; 0x6c + 80164b6: 2b00 cmp r3, #0 + 80164b8: d106 bne.n 80164c8 + 80164ba: 4b06 ldr r3, [pc, #24] ; (80164d4 ) + 80164bc: f240 4266 movw r2, #1126 ; 0x466 + 80164c0: 490b ldr r1, [pc, #44] ; (80164f0 ) + 80164c2: 4806 ldr r0, [pc, #24] ; (80164dc ) + 80164c4: f006 f8c8 bl 801c658 pcb->unacked != NULL || pcb->unsent != NULL); } return ERR_OK; - 80164b8: 2300 movs r3, #0 -} - 80164ba: 4618 mov r0, r3 - 80164bc: 3720 adds r7, #32 - 80164be: 46bd mov sp, r7 - 80164c0: bd80 pop {r7, pc} - 80164c2: bf00 nop - 80164c4: 0801f0c0 .word 0x0801f0c0 - 80164c8: 0801f4e4 .word 0x0801f4e4 - 80164cc: 0801f114 .word 0x0801f114 - 80164d0: 0801f53c .word 0x0801f53c - 80164d4: 0801f55c .word 0x0801f55c - 80164d8: 0801f598 .word 0x0801f598 - 80164dc: 0801f5b0 .word 0x0801f5b0 - 80164e0: 0801f5dc .word 0x0801f5dc - -080164e4 : + 80164c8: 2300 movs r3, #0 +} + 80164ca: 4618 mov r0, r3 + 80164cc: 3720 adds r7, #32 + 80164ce: 46bd mov sp, r7 + 80164d0: bd80 pop {r7, pc} + 80164d2: bf00 nop + 80164d4: 0801f0d0 .word 0x0801f0d0 + 80164d8: 0801f4f4 .word 0x0801f4f4 + 80164dc: 0801f124 .word 0x0801f124 + 80164e0: 0801f54c .word 0x0801f54c + 80164e4: 0801f56c .word 0x0801f56c + 80164e8: 0801f5a8 .word 0x0801f5a8 + 80164ec: 0801f5c0 .word 0x0801f5c0 + 80164f0: 0801f5ec .word 0x0801f5ec + +080164f4 : * @return ERR_OK if data has been sent or nothing to send * another err_t on error */ err_t tcp_output(struct tcp_pcb *pcb) { - 80164e4: b5b0 push {r4, r5, r7, lr} - 80164e6: b08a sub sp, #40 ; 0x28 - 80164e8: af00 add r7, sp, #0 - 80164ea: 6078 str r0, [r7, #4] + 80164f4: b5b0 push {r4, r5, r7, lr} + 80164f6: b08a sub sp, #40 ; 0x28 + 80164f8: af00 add r7, sp, #0 + 80164fa: 6078 str r0, [r7, #4] s16_t i = 0; #endif /* TCP_CWND_DEBUG */ LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("tcp_output: invalid pcb", pcb != NULL); - 80164ec: 687b ldr r3, [r7, #4] - 80164ee: 2b00 cmp r3, #0 - 80164f0: d106 bne.n 8016500 - 80164f2: 4ba0 ldr r3, [pc, #640] ; (8016774 ) - 80164f4: f240 42e1 movw r2, #1249 ; 0x4e1 - 80164f8: 499f ldr r1, [pc, #636] ; (8016778 ) - 80164fa: 48a0 ldr r0, [pc, #640] ; (801677c ) - 80164fc: f006 f8a4 bl 801c648 + 80164fc: 687b ldr r3, [r7, #4] + 80164fe: 2b00 cmp r3, #0 + 8016500: d106 bne.n 8016510 + 8016502: 4ba0 ldr r3, [pc, #640] ; (8016784 ) + 8016504: f240 42e1 movw r2, #1249 ; 0x4e1 + 8016508: 499f ldr r1, [pc, #636] ; (8016788 ) + 801650a: 48a0 ldr r0, [pc, #640] ; (801678c ) + 801650c: f006 f8a4 bl 801c658 /* pcb->state LISTEN not allowed here */ LWIP_ASSERT("don't call tcp_output for listen-pcbs", - 8016500: 687b ldr r3, [r7, #4] - 8016502: 7d1b ldrb r3, [r3, #20] - 8016504: 2b01 cmp r3, #1 - 8016506: d106 bne.n 8016516 - 8016508: 4b9a ldr r3, [pc, #616] ; (8016774 ) - 801650a: f240 42e4 movw r2, #1252 ; 0x4e4 - 801650e: 499c ldr r1, [pc, #624] ; (8016780 ) - 8016510: 489a ldr r0, [pc, #616] ; (801677c ) - 8016512: f006 f899 bl 801c648 + 8016510: 687b ldr r3, [r7, #4] + 8016512: 7d1b ldrb r3, [r3, #20] + 8016514: 2b01 cmp r3, #1 + 8016516: d106 bne.n 8016526 + 8016518: 4b9a ldr r3, [pc, #616] ; (8016784 ) + 801651a: f240 42e4 movw r2, #1252 ; 0x4e4 + 801651e: 499c ldr r1, [pc, #624] ; (8016790 ) + 8016520: 489a ldr r0, [pc, #616] ; (801678c ) + 8016522: f006 f899 bl 801c658 /* First, check if we are invoked by the TCP input processing code. If so, we do not output anything. Instead, we rely on the input processing code to call us when input processing is done with. */ if (tcp_input_pcb == pcb) { - 8016516: 4b9b ldr r3, [pc, #620] ; (8016784 ) - 8016518: 681b ldr r3, [r3, #0] - 801651a: 687a ldr r2, [r7, #4] - 801651c: 429a cmp r2, r3 - 801651e: d101 bne.n 8016524 + 8016526: 4b9b ldr r3, [pc, #620] ; (8016794 ) + 8016528: 681b ldr r3, [r3, #0] + 801652a: 687a ldr r2, [r7, #4] + 801652c: 429a cmp r2, r3 + 801652e: d101 bne.n 8016534 return ERR_OK; - 8016520: 2300 movs r3, #0 - 8016522: e1d2 b.n 80168ca + 8016530: 2300 movs r3, #0 + 8016532: e1d2 b.n 80168da } wnd = LWIP_MIN(pcb->snd_wnd, pcb->cwnd); - 8016524: 687b ldr r3, [r7, #4] - 8016526: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 - 801652a: 687b ldr r3, [r7, #4] - 801652c: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8016530: 429a cmp r2, r3 - 8016532: d203 bcs.n 801653c 8016534: 687b ldr r3, [r7, #4] - 8016536: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 801653a: e002 b.n 8016542 - 801653c: 687b ldr r3, [r7, #4] - 801653e: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8016542: 61bb str r3, [r7, #24] + 8016536: f8b3 2060 ldrh.w r2, [r3, #96] ; 0x60 + 801653a: 687b ldr r3, [r7, #4] + 801653c: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8016540: 429a cmp r2, r3 + 8016542: d203 bcs.n 801654c + 8016544: 687b ldr r3, [r7, #4] + 8016546: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 801654a: e002 b.n 8016552 + 801654c: 687b ldr r3, [r7, #4] + 801654e: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8016552: 61bb str r3, [r7, #24] seg = pcb->unsent; - 8016544: 687b ldr r3, [r7, #4] - 8016546: 6edb ldr r3, [r3, #108] ; 0x6c - 8016548: 627b str r3, [r7, #36] ; 0x24 + 8016554: 687b ldr r3, [r7, #4] + 8016556: 6edb ldr r3, [r3, #108] ; 0x6c + 8016558: 627b str r3, [r7, #36] ; 0x24 if (seg == NULL) { - 801654a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801654c: 2b00 cmp r3, #0 - 801654e: d10b bne.n 8016568 + 801655a: 6a7b ldr r3, [r7, #36] ; 0x24 + 801655c: 2b00 cmp r3, #0 + 801655e: d10b bne.n 8016578 ", seg == NULL, ack %"U32_F"\n", pcb->snd_wnd, pcb->cwnd, wnd, pcb->lastack)); /* If the TF_ACK_NOW flag is set and the ->unsent queue is empty, construct * an empty ACK segment and send it. */ if (pcb->flags & TF_ACK_NOW) { - 8016550: 687b ldr r3, [r7, #4] - 8016552: 8b5b ldrh r3, [r3, #26] - 8016554: f003 0302 and.w r3, r3, #2 - 8016558: 2b00 cmp r3, #0 - 801655a: f000 81a9 beq.w 80168b0 + 8016560: 687b ldr r3, [r7, #4] + 8016562: 8b5b ldrh r3, [r3, #26] + 8016564: f003 0302 and.w r3, r3, #2 + 8016568: 2b00 cmp r3, #0 + 801656a: f000 81a9 beq.w 80168c0 return tcp_send_empty_ack(pcb); - 801655e: 6878 ldr r0, [r7, #4] - 8016560: f000 fdd8 bl 8017114 - 8016564: 4603 mov r3, r0 - 8016566: e1b0 b.n 80168ca + 801656e: 6878 ldr r0, [r7, #4] + 8016570: f000 fdd8 bl 8017124 + 8016574: 4603 mov r3, r0 + 8016576: e1b0 b.n 80168da pcb->snd_wnd, pcb->cwnd, wnd, lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len, lwip_ntohl(seg->tcphdr->seqno), pcb->lastack)); } netif = tcp_route(pcb, &pcb->local_ip, &pcb->remote_ip); - 8016568: 6879 ldr r1, [r7, #4] - 801656a: 687b ldr r3, [r7, #4] - 801656c: 3304 adds r3, #4 - 801656e: 461a mov r2, r3 - 8016570: 6878 ldr r0, [r7, #4] - 8016572: f7ff fc77 bl 8015e64 - 8016576: 6178 str r0, [r7, #20] + 8016578: 6879 ldr r1, [r7, #4] + 801657a: 687b ldr r3, [r7, #4] + 801657c: 3304 adds r3, #4 + 801657e: 461a mov r2, r3 + 8016580: 6878 ldr r0, [r7, #4] + 8016582: f7ff fc77 bl 8015e74 + 8016586: 6178 str r0, [r7, #20] if (netif == NULL) { - 8016578: 697b ldr r3, [r7, #20] - 801657a: 2b00 cmp r3, #0 - 801657c: d102 bne.n 8016584 + 8016588: 697b ldr r3, [r7, #20] + 801658a: 2b00 cmp r3, #0 + 801658c: d102 bne.n 8016594 return ERR_RTE; - 801657e: f06f 0303 mvn.w r3, #3 - 8016582: e1a2 b.n 80168ca + 801658e: f06f 0303 mvn.w r3, #3 + 8016592: e1a2 b.n 80168da } /* If we don't have a local IP address, we get one from netif */ if (ip_addr_isany(&pcb->local_ip)) { - 8016584: 687b ldr r3, [r7, #4] - 8016586: 2b00 cmp r3, #0 - 8016588: d003 beq.n 8016592 - 801658a: 687b ldr r3, [r7, #4] - 801658c: 681b ldr r3, [r3, #0] - 801658e: 2b00 cmp r3, #0 - 8016590: d111 bne.n 80165b6 + 8016594: 687b ldr r3, [r7, #4] + 8016596: 2b00 cmp r3, #0 + 8016598: d003 beq.n 80165a2 + 801659a: 687b ldr r3, [r7, #4] + 801659c: 681b ldr r3, [r3, #0] + 801659e: 2b00 cmp r3, #0 + 80165a0: d111 bne.n 80165c6 const ip_addr_t *local_ip = ip_netif_get_local_ip(netif, &pcb->remote_ip); - 8016592: 697b ldr r3, [r7, #20] - 8016594: 2b00 cmp r3, #0 - 8016596: d002 beq.n 801659e - 8016598: 697b ldr r3, [r7, #20] - 801659a: 3304 adds r3, #4 - 801659c: e000 b.n 80165a0 - 801659e: 2300 movs r3, #0 - 80165a0: 613b str r3, [r7, #16] - if (local_ip == NULL) { - 80165a2: 693b ldr r3, [r7, #16] + 80165a2: 697b ldr r3, [r7, #20] 80165a4: 2b00 cmp r3, #0 - 80165a6: d102 bne.n 80165ae + 80165a6: d002 beq.n 80165ae + 80165a8: 697b ldr r3, [r7, #20] + 80165aa: 3304 adds r3, #4 + 80165ac: e000 b.n 80165b0 + 80165ae: 2300 movs r3, #0 + 80165b0: 613b str r3, [r7, #16] + if (local_ip == NULL) { + 80165b2: 693b ldr r3, [r7, #16] + 80165b4: 2b00 cmp r3, #0 + 80165b6: d102 bne.n 80165be return ERR_RTE; - 80165a8: f06f 0303 mvn.w r3, #3 - 80165ac: e18d b.n 80168ca + 80165b8: f06f 0303 mvn.w r3, #3 + 80165bc: e18d b.n 80168da } ip_addr_copy(pcb->local_ip, *local_ip); - 80165ae: 693b ldr r3, [r7, #16] - 80165b0: 681a ldr r2, [r3, #0] - 80165b2: 687b ldr r3, [r7, #4] - 80165b4: 601a str r2, [r3, #0] + 80165be: 693b ldr r3, [r7, #16] + 80165c0: 681a ldr r2, [r3, #0] + 80165c2: 687b ldr r3, [r7, #4] + 80165c4: 601a str r2, [r3, #0] } /* Handle the current segment not fitting within the window */ if (lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len > wnd) { - 80165b6: 6a7b ldr r3, [r7, #36] ; 0x24 - 80165b8: 68db ldr r3, [r3, #12] - 80165ba: 685b ldr r3, [r3, #4] - 80165bc: 4618 mov r0, r3 - 80165be: f7f9 ff74 bl 80104aa - 80165c2: 4602 mov r2, r0 - 80165c4: 687b ldr r3, [r7, #4] - 80165c6: 6c5b ldr r3, [r3, #68] ; 0x44 - 80165c8: 1ad3 subs r3, r2, r3 - 80165ca: 6a7a ldr r2, [r7, #36] ; 0x24 - 80165cc: 8912 ldrh r2, [r2, #8] - 80165ce: 4413 add r3, r2 - 80165d0: 69ba ldr r2, [r7, #24] - 80165d2: 429a cmp r2, r3 - 80165d4: d227 bcs.n 8016626 + 80165c6: 6a7b ldr r3, [r7, #36] ; 0x24 + 80165c8: 68db ldr r3, [r3, #12] + 80165ca: 685b ldr r3, [r3, #4] + 80165cc: 4618 mov r0, r3 + 80165ce: f7f9 ff74 bl 80104ba + 80165d2: 4602 mov r2, r0 + 80165d4: 687b ldr r3, [r7, #4] + 80165d6: 6c5b ldr r3, [r3, #68] ; 0x44 + 80165d8: 1ad3 subs r3, r2, r3 + 80165da: 6a7a ldr r2, [r7, #36] ; 0x24 + 80165dc: 8912 ldrh r2, [r2, #8] + 80165de: 4413 add r3, r2 + 80165e0: 69ba ldr r2, [r7, #24] + 80165e2: 429a cmp r2, r3 + 80165e4: d227 bcs.n 8016636 * within the remaining (could be 0) send window and RTO timer is not running (we * have no in-flight data). If window is still too small after persist timer fires, * then we split the segment. We don't consider the congestion window since a cwnd * smaller than 1 SMSS implies in-flight data */ if (wnd == pcb->snd_wnd && pcb->unacked == NULL && pcb->persist_backoff == 0) { - 80165d6: 687b ldr r3, [r7, #4] - 80165d8: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 80165dc: 461a mov r2, r3 - 80165de: 69bb ldr r3, [r7, #24] - 80165e0: 4293 cmp r3, r2 - 80165e2: d114 bne.n 801660e - 80165e4: 687b ldr r3, [r7, #4] - 80165e6: 6f1b ldr r3, [r3, #112] ; 0x70 - 80165e8: 2b00 cmp r3, #0 - 80165ea: d110 bne.n 801660e - 80165ec: 687b ldr r3, [r7, #4] - 80165ee: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 - 80165f2: 2b00 cmp r3, #0 - 80165f4: d10b bne.n 801660e + 80165e6: 687b ldr r3, [r7, #4] + 80165e8: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 80165ec: 461a mov r2, r3 + 80165ee: 69bb ldr r3, [r7, #24] + 80165f0: 4293 cmp r3, r2 + 80165f2: d114 bne.n 801661e + 80165f4: 687b ldr r3, [r7, #4] + 80165f6: 6f1b ldr r3, [r3, #112] ; 0x70 + 80165f8: 2b00 cmp r3, #0 + 80165fa: d110 bne.n 801661e + 80165fc: 687b ldr r3, [r7, #4] + 80165fe: f893 3099 ldrb.w r3, [r3, #153] ; 0x99 + 8016602: 2b00 cmp r3, #0 + 8016604: d10b bne.n 801661e pcb->persist_cnt = 0; - 80165f6: 687b ldr r3, [r7, #4] - 80165f8: 2200 movs r2, #0 - 80165fa: f883 2098 strb.w r2, [r3, #152] ; 0x98 - pcb->persist_backoff = 1; - 80165fe: 687b ldr r3, [r7, #4] - 8016600: 2201 movs r2, #1 - 8016602: f883 2099 strb.w r2, [r3, #153] ; 0x99 - pcb->persist_probe = 0; 8016606: 687b ldr r3, [r7, #4] 8016608: 2200 movs r2, #0 - 801660a: f883 209a strb.w r2, [r3, #154] ; 0x9a + 801660a: f883 2098 strb.w r2, [r3, #152] ; 0x98 + pcb->persist_backoff = 1; + 801660e: 687b ldr r3, [r7, #4] + 8016610: 2201 movs r2, #1 + 8016612: f883 2099 strb.w r2, [r3, #153] ; 0x99 + pcb->persist_probe = 0; + 8016616: 687b ldr r3, [r7, #4] + 8016618: 2200 movs r2, #0 + 801661a: f883 209a strb.w r2, [r3, #154] ; 0x9a } /* We need an ACK, but can't send data now, so send an empty ACK */ if (pcb->flags & TF_ACK_NOW) { - 801660e: 687b ldr r3, [r7, #4] - 8016610: 8b5b ldrh r3, [r3, #26] - 8016612: f003 0302 and.w r3, r3, #2 - 8016616: 2b00 cmp r3, #0 - 8016618: f000 814c beq.w 80168b4 + 801661e: 687b ldr r3, [r7, #4] + 8016620: 8b5b ldrh r3, [r3, #26] + 8016622: f003 0302 and.w r3, r3, #2 + 8016626: 2b00 cmp r3, #0 + 8016628: f000 814c beq.w 80168c4 return tcp_send_empty_ack(pcb); - 801661c: 6878 ldr r0, [r7, #4] - 801661e: f000 fd79 bl 8017114 - 8016622: 4603 mov r3, r0 - 8016624: e151 b.n 80168ca + 801662c: 6878 ldr r0, [r7, #4] + 801662e: f000 fd79 bl 8017124 + 8016632: 4603 mov r3, r0 + 8016634: e151 b.n 80168da } goto output_done; } /* Stop persist timer, above conditions are not active */ pcb->persist_backoff = 0; - 8016626: 687b ldr r3, [r7, #4] - 8016628: 2200 movs r2, #0 - 801662a: f883 2099 strb.w r2, [r3, #153] ; 0x99 + 8016636: 687b ldr r3, [r7, #4] + 8016638: 2200 movs r2, #0 + 801663a: f883 2099 strb.w r2, [r3, #153] ; 0x99 /* useg should point to last segment on unacked queue */ useg = pcb->unacked; - 801662e: 687b ldr r3, [r7, #4] - 8016630: 6f1b ldr r3, [r3, #112] ; 0x70 - 8016632: 623b str r3, [r7, #32] - if (useg != NULL) { - 8016634: 6a3b ldr r3, [r7, #32] - 8016636: 2b00 cmp r3, #0 - 8016638: f000 811b beq.w 8016872 - for (; useg->next != NULL; useg = useg->next); - 801663c: e002 b.n 8016644 - 801663e: 6a3b ldr r3, [r7, #32] - 8016640: 681b ldr r3, [r3, #0] + 801663e: 687b ldr r3, [r7, #4] + 8016640: 6f1b ldr r3, [r3, #112] ; 0x70 8016642: 623b str r3, [r7, #32] + if (useg != NULL) { 8016644: 6a3b ldr r3, [r7, #32] - 8016646: 681b ldr r3, [r3, #0] - 8016648: 2b00 cmp r3, #0 - 801664a: d1f8 bne.n 801663e + 8016646: 2b00 cmp r3, #0 + 8016648: f000 811b beq.w 8016882 + for (; useg->next != NULL; useg = useg->next); + 801664c: e002 b.n 8016654 + 801664e: 6a3b ldr r3, [r7, #32] + 8016650: 681b ldr r3, [r3, #0] + 8016652: 623b str r3, [r7, #32] + 8016654: 6a3b ldr r3, [r7, #32] + 8016656: 681b ldr r3, [r3, #0] + 8016658: 2b00 cmp r3, #0 + 801665a: d1f8 bne.n 801664e } /* data available and window allows it to be sent? */ while (seg != NULL && - 801664c: e111 b.n 8016872 + 801665c: e111 b.n 8016882 lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) { LWIP_ASSERT("RST not expected here!", - 801664e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016650: 68db ldr r3, [r3, #12] - 8016652: 899b ldrh r3, [r3, #12] - 8016654: b29b uxth r3, r3 - 8016656: 4618 mov r0, r3 - 8016658: f7f9 ff12 bl 8010480 - 801665c: 4603 mov r3, r0 - 801665e: b2db uxtb r3, r3 - 8016660: f003 0304 and.w r3, r3, #4 - 8016664: 2b00 cmp r3, #0 - 8016666: d006 beq.n 8016676 - 8016668: 4b42 ldr r3, [pc, #264] ; (8016774 ) - 801666a: f240 5237 movw r2, #1335 ; 0x537 - 801666e: 4946 ldr r1, [pc, #280] ; (8016788 ) - 8016670: 4842 ldr r0, [pc, #264] ; (801677c ) - 8016672: f005 ffe9 bl 801c648 + 801665e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8016660: 68db ldr r3, [r3, #12] + 8016662: 899b ldrh r3, [r3, #12] + 8016664: b29b uxth r3, r3 + 8016666: 4618 mov r0, r3 + 8016668: f7f9 ff12 bl 8010490 + 801666c: 4603 mov r3, r0 + 801666e: b2db uxtb r3, r3 + 8016670: f003 0304 and.w r3, r3, #4 + 8016674: 2b00 cmp r3, #0 + 8016676: d006 beq.n 8016686 + 8016678: 4b42 ldr r3, [pc, #264] ; (8016784 ) + 801667a: f240 5237 movw r2, #1335 ; 0x537 + 801667e: 4946 ldr r1, [pc, #280] ; (8016798 ) + 8016680: 4842 ldr r0, [pc, #264] ; (801678c ) + 8016682: f005 ffe9 bl 801c658 * - if tcp_write had a memory error before (prevent delayed ACK timeout) or * - if FIN was already enqueued for this PCB (SYN is always alone in a segment - * either seg->next != NULL or pcb->unacked == NULL; * RST is no sent using tcp_write/tcp_output. */ if ((tcp_do_output_nagle(pcb) == 0) && - 8016676: 687b ldr r3, [r7, #4] - 8016678: 6f1b ldr r3, [r3, #112] ; 0x70 - 801667a: 2b00 cmp r3, #0 - 801667c: d01f beq.n 80166be - 801667e: 687b ldr r3, [r7, #4] - 8016680: 8b5b ldrh r3, [r3, #26] - 8016682: f003 0344 and.w r3, r3, #68 ; 0x44 - 8016686: 2b00 cmp r3, #0 - 8016688: d119 bne.n 80166be - 801668a: 687b ldr r3, [r7, #4] - 801668c: 6edb ldr r3, [r3, #108] ; 0x6c - 801668e: 2b00 cmp r3, #0 - 8016690: d00b beq.n 80166aa - 8016692: 687b ldr r3, [r7, #4] - 8016694: 6edb ldr r3, [r3, #108] ; 0x6c - 8016696: 681b ldr r3, [r3, #0] - 8016698: 2b00 cmp r3, #0 - 801669a: d110 bne.n 80166be - 801669c: 687b ldr r3, [r7, #4] - 801669e: 6edb ldr r3, [r3, #108] ; 0x6c - 80166a0: 891a ldrh r2, [r3, #8] + 8016686: 687b ldr r3, [r7, #4] + 8016688: 6f1b ldr r3, [r3, #112] ; 0x70 + 801668a: 2b00 cmp r3, #0 + 801668c: d01f beq.n 80166ce + 801668e: 687b ldr r3, [r7, #4] + 8016690: 8b5b ldrh r3, [r3, #26] + 8016692: f003 0344 and.w r3, r3, #68 ; 0x44 + 8016696: 2b00 cmp r3, #0 + 8016698: d119 bne.n 80166ce + 801669a: 687b ldr r3, [r7, #4] + 801669c: 6edb ldr r3, [r3, #108] ; 0x6c + 801669e: 2b00 cmp r3, #0 + 80166a0: d00b beq.n 80166ba 80166a2: 687b ldr r3, [r7, #4] - 80166a4: 8e5b ldrh r3, [r3, #50] ; 0x32 - 80166a6: 429a cmp r2, r3 - 80166a8: d209 bcs.n 80166be - 80166aa: 687b ldr r3, [r7, #4] - 80166ac: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 - 80166b0: 2b00 cmp r3, #0 - 80166b2: d004 beq.n 80166be - 80166b4: 687b ldr r3, [r7, #4] - 80166b6: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 - 80166ba: 2b08 cmp r3, #8 - 80166bc: d901 bls.n 80166c2 - 80166be: 2301 movs r3, #1 - 80166c0: e000 b.n 80166c4 - 80166c2: 2300 movs r3, #0 - 80166c4: 2b00 cmp r3, #0 - 80166c6: d106 bne.n 80166d6 + 80166a4: 6edb ldr r3, [r3, #108] ; 0x6c + 80166a6: 681b ldr r3, [r3, #0] + 80166a8: 2b00 cmp r3, #0 + 80166aa: d110 bne.n 80166ce + 80166ac: 687b ldr r3, [r7, #4] + 80166ae: 6edb ldr r3, [r3, #108] ; 0x6c + 80166b0: 891a ldrh r2, [r3, #8] + 80166b2: 687b ldr r3, [r7, #4] + 80166b4: 8e5b ldrh r3, [r3, #50] ; 0x32 + 80166b6: 429a cmp r2, r3 + 80166b8: d209 bcs.n 80166ce + 80166ba: 687b ldr r3, [r7, #4] + 80166bc: f8b3 3064 ldrh.w r3, [r3, #100] ; 0x64 + 80166c0: 2b00 cmp r3, #0 + 80166c2: d004 beq.n 80166ce + 80166c4: 687b ldr r3, [r7, #4] + 80166c6: f8b3 3066 ldrh.w r3, [r3, #102] ; 0x66 + 80166ca: 2b08 cmp r3, #8 + 80166cc: d901 bls.n 80166d2 + 80166ce: 2301 movs r3, #1 + 80166d0: e000 b.n 80166d4 + 80166d2: 2300 movs r3, #0 + 80166d4: 2b00 cmp r3, #0 + 80166d6: d106 bne.n 80166e6 ((pcb->flags & (TF_NAGLEMEMERR | TF_FIN)) == 0)) { - 80166c8: 687b ldr r3, [r7, #4] - 80166ca: 8b5b ldrh r3, [r3, #26] - 80166cc: f003 03a0 and.w r3, r3, #160 ; 0xa0 + 80166d8: 687b ldr r3, [r7, #4] + 80166da: 8b5b ldrh r3, [r3, #26] + 80166dc: f003 03a0 and.w r3, r3, #160 ; 0xa0 if ((tcp_do_output_nagle(pcb) == 0) && - 80166d0: 2b00 cmp r3, #0 - 80166d2: f000 80e3 beq.w 801689c + 80166e0: 2b00 cmp r3, #0 + 80166e2: f000 80e3 beq.w 80168ac pcb->lastack, lwip_ntohl(seg->tcphdr->seqno), pcb->lastack, i)); ++i; #endif /* TCP_CWND_DEBUG */ if (pcb->state != SYN_SENT) { - 80166d6: 687b ldr r3, [r7, #4] - 80166d8: 7d1b ldrb r3, [r3, #20] - 80166da: 2b02 cmp r3, #2 - 80166dc: d00d beq.n 80166fa + 80166e6: 687b ldr r3, [r7, #4] + 80166e8: 7d1b ldrb r3, [r3, #20] + 80166ea: 2b02 cmp r3, #2 + 80166ec: d00d beq.n 801670a TCPH_SET_FLAG(seg->tcphdr, TCP_ACK); - 80166de: 6a7b ldr r3, [r7, #36] ; 0x24 - 80166e0: 68db ldr r3, [r3, #12] - 80166e2: 899b ldrh r3, [r3, #12] - 80166e4: b29c uxth r4, r3 - 80166e6: 2010 movs r0, #16 - 80166e8: f7f9 feca bl 8010480 - 80166ec: 4603 mov r3, r0 - 80166ee: 461a mov r2, r3 - 80166f0: 6a7b ldr r3, [r7, #36] ; 0x24 - 80166f2: 68db ldr r3, [r3, #12] - 80166f4: 4322 orrs r2, r4 - 80166f6: b292 uxth r2, r2 - 80166f8: 819a strh r2, [r3, #12] + 80166ee: 6a7b ldr r3, [r7, #36] ; 0x24 + 80166f0: 68db ldr r3, [r3, #12] + 80166f2: 899b ldrh r3, [r3, #12] + 80166f4: b29c uxth r4, r3 + 80166f6: 2010 movs r0, #16 + 80166f8: f7f9 feca bl 8010490 + 80166fc: 4603 mov r3, r0 + 80166fe: 461a mov r2, r3 + 8016700: 6a7b ldr r3, [r7, #36] ; 0x24 + 8016702: 68db ldr r3, [r3, #12] + 8016704: 4322 orrs r2, r4 + 8016706: b292 uxth r2, r2 + 8016708: 819a strh r2, [r3, #12] } err = tcp_output_segment(seg, pcb, netif); - 80166fa: 697a ldr r2, [r7, #20] - 80166fc: 6879 ldr r1, [r7, #4] - 80166fe: 6a78 ldr r0, [r7, #36] ; 0x24 - 8016700: f000 f908 bl 8016914 - 8016704: 4603 mov r3, r0 - 8016706: 73fb strb r3, [r7, #15] + 801670a: 697a ldr r2, [r7, #20] + 801670c: 6879 ldr r1, [r7, #4] + 801670e: 6a78 ldr r0, [r7, #36] ; 0x24 + 8016710: f000 f908 bl 8016924 + 8016714: 4603 mov r3, r0 + 8016716: 73fb strb r3, [r7, #15] if (err != ERR_OK) { - 8016708: f997 300f ldrsb.w r3, [r7, #15] - 801670c: 2b00 cmp r3, #0 - 801670e: d009 beq.n 8016724 + 8016718: f997 300f ldrsb.w r3, [r7, #15] + 801671c: 2b00 cmp r3, #0 + 801671e: d009 beq.n 8016734 /* segment could not be sent, for whatever reason */ tcp_set_flags(pcb, TF_NAGLEMEMERR); - 8016710: 687b ldr r3, [r7, #4] - 8016712: 8b5b ldrh r3, [r3, #26] - 8016714: f043 0380 orr.w r3, r3, #128 ; 0x80 - 8016718: b29a uxth r2, r3 - 801671a: 687b ldr r3, [r7, #4] - 801671c: 835a strh r2, [r3, #26] + 8016720: 687b ldr r3, [r7, #4] + 8016722: 8b5b ldrh r3, [r3, #26] + 8016724: f043 0380 orr.w r3, r3, #128 ; 0x80 + 8016728: b29a uxth r2, r3 + 801672a: 687b ldr r3, [r7, #4] + 801672c: 835a strh r2, [r3, #26] return err; - 801671e: f997 300f ldrsb.w r3, [r7, #15] - 8016722: e0d2 b.n 80168ca + 801672e: f997 300f ldrsb.w r3, [r7, #15] + 8016732: e0d2 b.n 80168da } #if TCP_OVERSIZE_DBGCHECK seg->oversize_left = 0; #endif /* TCP_OVERSIZE_DBGCHECK */ pcb->unsent = seg->next; - 8016724: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016726: 681a ldr r2, [r3, #0] - 8016728: 687b ldr r3, [r7, #4] - 801672a: 66da str r2, [r3, #108] ; 0x6c + 8016734: 6a7b ldr r3, [r7, #36] ; 0x24 + 8016736: 681a ldr r2, [r3, #0] + 8016738: 687b ldr r3, [r7, #4] + 801673a: 66da str r2, [r3, #108] ; 0x6c if (pcb->state != SYN_SENT) { - 801672c: 687b ldr r3, [r7, #4] - 801672e: 7d1b ldrb r3, [r3, #20] - 8016730: 2b02 cmp r3, #2 - 8016732: d006 beq.n 8016742 + 801673c: 687b ldr r3, [r7, #4] + 801673e: 7d1b ldrb r3, [r3, #20] + 8016740: 2b02 cmp r3, #2 + 8016742: d006 beq.n 8016752 tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 8016734: 687b ldr r3, [r7, #4] - 8016736: 8b5b ldrh r3, [r3, #26] - 8016738: f023 0303 bic.w r3, r3, #3 - 801673c: b29a uxth r2, r3 - 801673e: 687b ldr r3, [r7, #4] - 8016740: 835a strh r2, [r3, #26] + 8016744: 687b ldr r3, [r7, #4] + 8016746: 8b5b ldrh r3, [r3, #26] + 8016748: f023 0303 bic.w r3, r3, #3 + 801674c: b29a uxth r2, r3 + 801674e: 687b ldr r3, [r7, #4] + 8016750: 835a strh r2, [r3, #26] } snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg); - 8016742: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016744: 68db ldr r3, [r3, #12] - 8016746: 685b ldr r3, [r3, #4] - 8016748: 4618 mov r0, r3 - 801674a: f7f9 feae bl 80104aa - 801674e: 4604 mov r4, r0 - 8016750: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016752: 891b ldrh r3, [r3, #8] - 8016754: 461d mov r5, r3 - 8016756: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016758: 68db ldr r3, [r3, #12] - 801675a: 899b ldrh r3, [r3, #12] - 801675c: b29b uxth r3, r3 - 801675e: 4618 mov r0, r3 - 8016760: f7f9 fe8e bl 8010480 - 8016764: 4603 mov r3, r0 - 8016766: b2db uxtb r3, r3 - 8016768: f003 0303 and.w r3, r3, #3 - 801676c: 2b00 cmp r3, #0 - 801676e: d00d beq.n 801678c - 8016770: 2301 movs r3, #1 - 8016772: e00c b.n 801678e - 8016774: 0801f0c0 .word 0x0801f0c0 - 8016778: 0801f604 .word 0x0801f604 - 801677c: 0801f114 .word 0x0801f114 - 8016780: 0801f61c .word 0x0801f61c - 8016784: 2000f804 .word 0x2000f804 - 8016788: 0801f644 .word 0x0801f644 - 801678c: 2300 movs r3, #0 - 801678e: 442b add r3, r5 - 8016790: 4423 add r3, r4 - 8016792: 60bb str r3, [r7, #8] + 8016752: 6a7b ldr r3, [r7, #36] ; 0x24 + 8016754: 68db ldr r3, [r3, #12] + 8016756: 685b ldr r3, [r3, #4] + 8016758: 4618 mov r0, r3 + 801675a: f7f9 feae bl 80104ba + 801675e: 4604 mov r4, r0 + 8016760: 6a7b ldr r3, [r7, #36] ; 0x24 + 8016762: 891b ldrh r3, [r3, #8] + 8016764: 461d mov r5, r3 + 8016766: 6a7b ldr r3, [r7, #36] ; 0x24 + 8016768: 68db ldr r3, [r3, #12] + 801676a: 899b ldrh r3, [r3, #12] + 801676c: b29b uxth r3, r3 + 801676e: 4618 mov r0, r3 + 8016770: f7f9 fe8e bl 8010490 + 8016774: 4603 mov r3, r0 + 8016776: b2db uxtb r3, r3 + 8016778: f003 0303 and.w r3, r3, #3 + 801677c: 2b00 cmp r3, #0 + 801677e: d00d beq.n 801679c + 8016780: 2301 movs r3, #1 + 8016782: e00c b.n 801679e + 8016784: 0801f0d0 .word 0x0801f0d0 + 8016788: 0801f614 .word 0x0801f614 + 801678c: 0801f124 .word 0x0801f124 + 8016790: 0801f62c .word 0x0801f62c + 8016794: 2000f804 .word 0x2000f804 + 8016798: 0801f654 .word 0x0801f654 + 801679c: 2300 movs r3, #0 + 801679e: 442b add r3, r5 + 80167a0: 4423 add r3, r4 + 80167a2: 60bb str r3, [r7, #8] if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) { - 8016794: 687b ldr r3, [r7, #4] - 8016796: 6d1a ldr r2, [r3, #80] ; 0x50 - 8016798: 68bb ldr r3, [r7, #8] - 801679a: 1ad3 subs r3, r2, r3 - 801679c: 2b00 cmp r3, #0 - 801679e: da02 bge.n 80167a6 + 80167a4: 687b ldr r3, [r7, #4] + 80167a6: 6d1a ldr r2, [r3, #80] ; 0x50 + 80167a8: 68bb ldr r3, [r7, #8] + 80167aa: 1ad3 subs r3, r2, r3 + 80167ac: 2b00 cmp r3, #0 + 80167ae: da02 bge.n 80167b6 pcb->snd_nxt = snd_nxt; - 80167a0: 687b ldr r3, [r7, #4] - 80167a2: 68ba ldr r2, [r7, #8] - 80167a4: 651a str r2, [r3, #80] ; 0x50 + 80167b0: 687b ldr r3, [r7, #4] + 80167b2: 68ba ldr r2, [r7, #8] + 80167b4: 651a str r2, [r3, #80] ; 0x50 } /* put segment on unacknowledged list if length > 0 */ if (TCP_TCPLEN(seg) > 0) { - 80167a6: 6a7b ldr r3, [r7, #36] ; 0x24 - 80167a8: 891b ldrh r3, [r3, #8] - 80167aa: 461c mov r4, r3 - 80167ac: 6a7b ldr r3, [r7, #36] ; 0x24 - 80167ae: 68db ldr r3, [r3, #12] - 80167b0: 899b ldrh r3, [r3, #12] - 80167b2: b29b uxth r3, r3 - 80167b4: 4618 mov r0, r3 - 80167b6: f7f9 fe63 bl 8010480 - 80167ba: 4603 mov r3, r0 - 80167bc: b2db uxtb r3, r3 - 80167be: f003 0303 and.w r3, r3, #3 - 80167c2: 2b00 cmp r3, #0 - 80167c4: d001 beq.n 80167ca - 80167c6: 2301 movs r3, #1 - 80167c8: e000 b.n 80167cc - 80167ca: 2300 movs r3, #0 - 80167cc: 4423 add r3, r4 - 80167ce: 2b00 cmp r3, #0 - 80167d0: d049 beq.n 8016866 + 80167b6: 6a7b ldr r3, [r7, #36] ; 0x24 + 80167b8: 891b ldrh r3, [r3, #8] + 80167ba: 461c mov r4, r3 + 80167bc: 6a7b ldr r3, [r7, #36] ; 0x24 + 80167be: 68db ldr r3, [r3, #12] + 80167c0: 899b ldrh r3, [r3, #12] + 80167c2: b29b uxth r3, r3 + 80167c4: 4618 mov r0, r3 + 80167c6: f7f9 fe63 bl 8010490 + 80167ca: 4603 mov r3, r0 + 80167cc: b2db uxtb r3, r3 + 80167ce: f003 0303 and.w r3, r3, #3 + 80167d2: 2b00 cmp r3, #0 + 80167d4: d001 beq.n 80167da + 80167d6: 2301 movs r3, #1 + 80167d8: e000 b.n 80167dc + 80167da: 2300 movs r3, #0 + 80167dc: 4423 add r3, r4 + 80167de: 2b00 cmp r3, #0 + 80167e0: d049 beq.n 8016876 seg->next = NULL; - 80167d2: 6a7b ldr r3, [r7, #36] ; 0x24 - 80167d4: 2200 movs r2, #0 - 80167d6: 601a str r2, [r3, #0] + 80167e2: 6a7b ldr r3, [r7, #36] ; 0x24 + 80167e4: 2200 movs r2, #0 + 80167e6: 601a str r2, [r3, #0] /* unacked list is empty? */ if (pcb->unacked == NULL) { - 80167d8: 687b ldr r3, [r7, #4] - 80167da: 6f1b ldr r3, [r3, #112] ; 0x70 - 80167dc: 2b00 cmp r3, #0 - 80167de: d105 bne.n 80167ec + 80167e8: 687b ldr r3, [r7, #4] + 80167ea: 6f1b ldr r3, [r3, #112] ; 0x70 + 80167ec: 2b00 cmp r3, #0 + 80167ee: d105 bne.n 80167fc pcb->unacked = seg; - 80167e0: 687b ldr r3, [r7, #4] - 80167e2: 6a7a ldr r2, [r7, #36] ; 0x24 - 80167e4: 671a str r2, [r3, #112] ; 0x70 + 80167f0: 687b ldr r3, [r7, #4] + 80167f2: 6a7a ldr r2, [r7, #36] ; 0x24 + 80167f4: 671a str r2, [r3, #112] ; 0x70 useg = seg; - 80167e6: 6a7b ldr r3, [r7, #36] ; 0x24 - 80167e8: 623b str r3, [r7, #32] - 80167ea: e03f b.n 801686c + 80167f6: 6a7b ldr r3, [r7, #36] ; 0x24 + 80167f8: 623b str r3, [r7, #32] + 80167fa: e03f b.n 801687c /* unacked list is not empty? */ } else { /* In the case of fast retransmit, the packet should not go to the tail * of the unacked queue, but rather somewhere before it. We need to check for * this case. -STJ Jul 27, 2004 */ if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) { - 80167ec: 6a7b ldr r3, [r7, #36] ; 0x24 - 80167ee: 68db ldr r3, [r3, #12] - 80167f0: 685b ldr r3, [r3, #4] - 80167f2: 4618 mov r0, r3 - 80167f4: f7f9 fe59 bl 80104aa - 80167f8: 4604 mov r4, r0 - 80167fa: 6a3b ldr r3, [r7, #32] - 80167fc: 68db ldr r3, [r3, #12] - 80167fe: 685b ldr r3, [r3, #4] - 8016800: 4618 mov r0, r3 - 8016802: f7f9 fe52 bl 80104aa - 8016806: 4603 mov r3, r0 - 8016808: 1ae3 subs r3, r4, r3 - 801680a: 2b00 cmp r3, #0 - 801680c: da24 bge.n 8016858 + 80167fc: 6a7b ldr r3, [r7, #36] ; 0x24 + 80167fe: 68db ldr r3, [r3, #12] + 8016800: 685b ldr r3, [r3, #4] + 8016802: 4618 mov r0, r3 + 8016804: f7f9 fe59 bl 80104ba + 8016808: 4604 mov r4, r0 + 801680a: 6a3b ldr r3, [r7, #32] + 801680c: 68db ldr r3, [r3, #12] + 801680e: 685b ldr r3, [r3, #4] + 8016810: 4618 mov r0, r3 + 8016812: f7f9 fe52 bl 80104ba + 8016816: 4603 mov r3, r0 + 8016818: 1ae3 subs r3, r4, r3 + 801681a: 2b00 cmp r3, #0 + 801681c: da24 bge.n 8016868 /* add segment to before tail of unacked list, keeping the list sorted */ struct tcp_seg **cur_seg = &(pcb->unacked); - 801680e: 687b ldr r3, [r7, #4] - 8016810: 3370 adds r3, #112 ; 0x70 - 8016812: 61fb str r3, [r7, #28] + 801681e: 687b ldr r3, [r7, #4] + 8016820: 3370 adds r3, #112 ; 0x70 + 8016822: 61fb str r3, [r7, #28] while (*cur_seg && - 8016814: e002 b.n 801681c + 8016824: e002 b.n 801682c TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { cur_seg = &((*cur_seg)->next ); - 8016816: 69fb ldr r3, [r7, #28] - 8016818: 681b ldr r3, [r3, #0] - 801681a: 61fb str r3, [r7, #28] + 8016826: 69fb ldr r3, [r7, #28] + 8016828: 681b ldr r3, [r3, #0] + 801682a: 61fb str r3, [r7, #28] while (*cur_seg && - 801681c: 69fb ldr r3, [r7, #28] - 801681e: 681b ldr r3, [r3, #0] - 8016820: 2b00 cmp r3, #0 - 8016822: d011 beq.n 8016848 + 801682c: 69fb ldr r3, [r7, #28] + 801682e: 681b ldr r3, [r3, #0] + 8016830: 2b00 cmp r3, #0 + 8016832: d011 beq.n 8016858 TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - 8016824: 69fb ldr r3, [r7, #28] - 8016826: 681b ldr r3, [r3, #0] - 8016828: 68db ldr r3, [r3, #12] - 801682a: 685b ldr r3, [r3, #4] - 801682c: 4618 mov r0, r3 - 801682e: f7f9 fe3c bl 80104aa - 8016832: 4604 mov r4, r0 - 8016834: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016836: 68db ldr r3, [r3, #12] - 8016838: 685b ldr r3, [r3, #4] - 801683a: 4618 mov r0, r3 - 801683c: f7f9 fe35 bl 80104aa - 8016840: 4603 mov r3, r0 - 8016842: 1ae3 subs r3, r4, r3 + 8016834: 69fb ldr r3, [r7, #28] + 8016836: 681b ldr r3, [r3, #0] + 8016838: 68db ldr r3, [r3, #12] + 801683a: 685b ldr r3, [r3, #4] + 801683c: 4618 mov r0, r3 + 801683e: f7f9 fe3c bl 80104ba + 8016842: 4604 mov r4, r0 + 8016844: 6a7b ldr r3, [r7, #36] ; 0x24 + 8016846: 68db ldr r3, [r3, #12] + 8016848: 685b ldr r3, [r3, #4] + 801684a: 4618 mov r0, r3 + 801684c: f7f9 fe35 bl 80104ba + 8016850: 4603 mov r3, r0 + 8016852: 1ae3 subs r3, r4, r3 while (*cur_seg && - 8016844: 2b00 cmp r3, #0 - 8016846: dbe6 blt.n 8016816 + 8016854: 2b00 cmp r3, #0 + 8016856: dbe6 blt.n 8016826 } seg->next = (*cur_seg); - 8016848: 69fb ldr r3, [r7, #28] - 801684a: 681a ldr r2, [r3, #0] - 801684c: 6a7b ldr r3, [r7, #36] ; 0x24 - 801684e: 601a str r2, [r3, #0] + 8016858: 69fb ldr r3, [r7, #28] + 801685a: 681a ldr r2, [r3, #0] + 801685c: 6a7b ldr r3, [r7, #36] ; 0x24 + 801685e: 601a str r2, [r3, #0] (*cur_seg) = seg; - 8016850: 69fb ldr r3, [r7, #28] - 8016852: 6a7a ldr r2, [r7, #36] ; 0x24 - 8016854: 601a str r2, [r3, #0] - 8016856: e009 b.n 801686c + 8016860: 69fb ldr r3, [r7, #28] + 8016862: 6a7a ldr r2, [r7, #36] ; 0x24 + 8016864: 601a str r2, [r3, #0] + 8016866: e009 b.n 801687c } else { /* add segment to tail of unacked list */ useg->next = seg; - 8016858: 6a3b ldr r3, [r7, #32] - 801685a: 6a7a ldr r2, [r7, #36] ; 0x24 - 801685c: 601a str r2, [r3, #0] + 8016868: 6a3b ldr r3, [r7, #32] + 801686a: 6a7a ldr r2, [r7, #36] ; 0x24 + 801686c: 601a str r2, [r3, #0] useg = useg->next; - 801685e: 6a3b ldr r3, [r7, #32] - 8016860: 681b ldr r3, [r3, #0] - 8016862: 623b str r3, [r7, #32] - 8016864: e002 b.n 801686c + 801686e: 6a3b ldr r3, [r7, #32] + 8016870: 681b ldr r3, [r3, #0] + 8016872: 623b str r3, [r7, #32] + 8016874: e002 b.n 801687c } } /* do not queue empty segments on the unacked list */ } else { tcp_seg_free(seg); - 8016866: 6a78 ldr r0, [r7, #36] ; 0x24 - 8016868: f7fc fc42 bl 80130f0 + 8016876: 6a78 ldr r0, [r7, #36] ; 0x24 + 8016878: f7fc fc42 bl 8013100 } seg = pcb->unsent; - 801686c: 687b ldr r3, [r7, #4] - 801686e: 6edb ldr r3, [r3, #108] ; 0x6c - 8016870: 627b str r3, [r7, #36] ; 0x24 + 801687c: 687b ldr r3, [r7, #4] + 801687e: 6edb ldr r3, [r3, #108] ; 0x6c + 8016880: 627b str r3, [r7, #36] ; 0x24 while (seg != NULL && - 8016872: 6a7b ldr r3, [r7, #36] ; 0x24 - 8016874: 2b00 cmp r3, #0 - 8016876: d012 beq.n 801689e + 8016882: 6a7b ldr r3, [r7, #36] ; 0x24 + 8016884: 2b00 cmp r3, #0 + 8016886: d012 beq.n 80168ae lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) { - 8016878: 6a7b ldr r3, [r7, #36] ; 0x24 - 801687a: 68db ldr r3, [r3, #12] - 801687c: 685b ldr r3, [r3, #4] - 801687e: 4618 mov r0, r3 - 8016880: f7f9 fe13 bl 80104aa - 8016884: 4602 mov r2, r0 - 8016886: 687b ldr r3, [r7, #4] - 8016888: 6c5b ldr r3, [r3, #68] ; 0x44 - 801688a: 1ad3 subs r3, r2, r3 - 801688c: 6a7a ldr r2, [r7, #36] ; 0x24 - 801688e: 8912 ldrh r2, [r2, #8] - 8016890: 4413 add r3, r2 + 8016888: 6a7b ldr r3, [r7, #36] ; 0x24 + 801688a: 68db ldr r3, [r3, #12] + 801688c: 685b ldr r3, [r3, #4] + 801688e: 4618 mov r0, r3 + 8016890: f7f9 fe13 bl 80104ba + 8016894: 4602 mov r2, r0 + 8016896: 687b ldr r3, [r7, #4] + 8016898: 6c5b ldr r3, [r3, #68] ; 0x44 + 801689a: 1ad3 subs r3, r2, r3 + 801689c: 6a7a ldr r2, [r7, #36] ; 0x24 + 801689e: 8912 ldrh r2, [r2, #8] + 80168a0: 4413 add r3, r2 while (seg != NULL && - 8016892: 69ba ldr r2, [r7, #24] - 8016894: 429a cmp r2, r3 - 8016896: f4bf aeda bcs.w 801664e - 801689a: e000 b.n 801689e + 80168a2: 69ba ldr r2, [r7, #24] + 80168a4: 429a cmp r2, r3 + 80168a6: f4bf aeda bcs.w 801665e + 80168aa: e000 b.n 80168ae break; - 801689c: bf00 nop + 80168ac: bf00 nop } #if TCP_OVERSIZE if (pcb->unsent == NULL) { - 801689e: 687b ldr r3, [r7, #4] - 80168a0: 6edb ldr r3, [r3, #108] ; 0x6c - 80168a2: 2b00 cmp r3, #0 - 80168a4: d108 bne.n 80168b8 + 80168ae: 687b ldr r3, [r7, #4] + 80168b0: 6edb ldr r3, [r3, #108] ; 0x6c + 80168b2: 2b00 cmp r3, #0 + 80168b4: d108 bne.n 80168c8 /* last unsent has been removed, reset unsent_oversize */ pcb->unsent_oversize = 0; - 80168a6: 687b ldr r3, [r7, #4] - 80168a8: 2200 movs r2, #0 - 80168aa: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 - 80168ae: e004 b.n 80168ba + 80168b6: 687b ldr r3, [r7, #4] + 80168b8: 2200 movs r2, #0 + 80168ba: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 80168be: e004 b.n 80168ca goto output_done; - 80168b0: bf00 nop - 80168b2: e002 b.n 80168ba + 80168c0: bf00 nop + 80168c2: e002 b.n 80168ca goto output_done; - 80168b4: bf00 nop - 80168b6: e000 b.n 80168ba + 80168c4: bf00 nop + 80168c6: e000 b.n 80168ca } #endif /* TCP_OVERSIZE */ output_done: - 80168b8: bf00 nop + 80168c8: bf00 nop tcp_clear_flags(pcb, TF_NAGLEMEMERR); - 80168ba: 687b ldr r3, [r7, #4] - 80168bc: 8b5b ldrh r3, [r3, #26] - 80168be: f023 0380 bic.w r3, r3, #128 ; 0x80 - 80168c2: b29a uxth r2, r3 - 80168c4: 687b ldr r3, [r7, #4] - 80168c6: 835a strh r2, [r3, #26] + 80168ca: 687b ldr r3, [r7, #4] + 80168cc: 8b5b ldrh r3, [r3, #26] + 80168ce: f023 0380 bic.w r3, r3, #128 ; 0x80 + 80168d2: b29a uxth r2, r3 + 80168d4: 687b ldr r3, [r7, #4] + 80168d6: 835a strh r2, [r3, #26] return ERR_OK; - 80168c8: 2300 movs r3, #0 + 80168d8: 2300 movs r3, #0 } - 80168ca: 4618 mov r0, r3 - 80168cc: 3728 adds r7, #40 ; 0x28 - 80168ce: 46bd mov sp, r7 - 80168d0: bdb0 pop {r4, r5, r7, pc} - 80168d2: bf00 nop + 80168da: 4618 mov r0, r3 + 80168dc: 3728 adds r7, #40 ; 0x28 + 80168de: 46bd mov sp, r7 + 80168e0: bdb0 pop {r4, r5, r7, pc} + 80168e2: bf00 nop -080168d4 : +080168e4 : * @arg seg the tcp segment to check * @return 1 if ref != 1, 0 if ref == 1 */ static int tcp_output_segment_busy(const struct tcp_seg *seg) { - 80168d4: b580 push {r7, lr} - 80168d6: b082 sub sp, #8 - 80168d8: af00 add r7, sp, #0 - 80168da: 6078 str r0, [r7, #4] + 80168e4: b580 push {r7, lr} + 80168e6: b082 sub sp, #8 + 80168e8: af00 add r7, sp, #0 + 80168ea: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_output_segment_busy: invalid seg", seg != NULL); - 80168dc: 687b ldr r3, [r7, #4] - 80168de: 2b00 cmp r3, #0 - 80168e0: d106 bne.n 80168f0 - 80168e2: 4b09 ldr r3, [pc, #36] ; (8016908 ) - 80168e4: f240 529a movw r2, #1434 ; 0x59a - 80168e8: 4908 ldr r1, [pc, #32] ; (801690c ) - 80168ea: 4809 ldr r0, [pc, #36] ; (8016910 ) - 80168ec: f005 feac bl 801c648 + 80168ec: 687b ldr r3, [r7, #4] + 80168ee: 2b00 cmp r3, #0 + 80168f0: d106 bne.n 8016900 + 80168f2: 4b09 ldr r3, [pc, #36] ; (8016918 ) + 80168f4: f240 529a movw r2, #1434 ; 0x59a + 80168f8: 4908 ldr r1, [pc, #32] ; (801691c ) + 80168fa: 4809 ldr r0, [pc, #36] ; (8016920 ) + 80168fc: f005 feac bl 801c658 /* We only need to check the first pbuf here: If a pbuf is queued for transmission, a driver calls pbuf_ref(), which only changes the ref count of the first pbuf */ if (seg->p->ref != 1) { - 80168f0: 687b ldr r3, [r7, #4] - 80168f2: 685b ldr r3, [r3, #4] - 80168f4: 7b9b ldrb r3, [r3, #14] - 80168f6: 2b01 cmp r3, #1 - 80168f8: d001 beq.n 80168fe + 8016900: 687b ldr r3, [r7, #4] + 8016902: 685b ldr r3, [r3, #4] + 8016904: 7b9b ldrb r3, [r3, #14] + 8016906: 2b01 cmp r3, #1 + 8016908: d001 beq.n 801690e /* other reference found */ return 1; - 80168fa: 2301 movs r3, #1 - 80168fc: e000 b.n 8016900 + 801690a: 2301 movs r3, #1 + 801690c: e000 b.n 8016910 } /* no other references found */ return 0; - 80168fe: 2300 movs r3, #0 + 801690e: 2300 movs r3, #0 } - 8016900: 4618 mov r0, r3 - 8016902: 3708 adds r7, #8 - 8016904: 46bd mov sp, r7 - 8016906: bd80 pop {r7, pc} - 8016908: 0801f0c0 .word 0x0801f0c0 - 801690c: 0801f65c .word 0x0801f65c - 8016910: 0801f114 .word 0x0801f114 + 8016910: 4618 mov r0, r3 + 8016912: 3708 adds r7, #8 + 8016914: 46bd mov sp, r7 + 8016916: bd80 pop {r7, pc} + 8016918: 0801f0d0 .word 0x0801f0d0 + 801691c: 0801f66c .word 0x0801f66c + 8016920: 0801f124 .word 0x0801f124 -08016914 : +08016924 : * @param pcb the tcp_pcb for the TCP connection used to send the segment * @param netif the netif used to send the segment */ static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct netif *netif) { - 8016914: b5b0 push {r4, r5, r7, lr} - 8016916: b08c sub sp, #48 ; 0x30 - 8016918: af04 add r7, sp, #16 - 801691a: 60f8 str r0, [r7, #12] - 801691c: 60b9 str r1, [r7, #8] - 801691e: 607a str r2, [r7, #4] + 8016924: b5b0 push {r4, r5, r7, lr} + 8016926: b08c sub sp, #48 ; 0x30 + 8016928: af04 add r7, sp, #16 + 801692a: 60f8 str r0, [r7, #12] + 801692c: 60b9 str r1, [r7, #8] + 801692e: 607a str r2, [r7, #4] u32_t *opts; #if TCP_CHECKSUM_ON_COPY int seg_chksum_was_swapped = 0; #endif LWIP_ASSERT("tcp_output_segment: invalid seg", seg != NULL); - 8016920: 68fb ldr r3, [r7, #12] - 8016922: 2b00 cmp r3, #0 - 8016924: d106 bne.n 8016934 - 8016926: 4b64 ldr r3, [pc, #400] ; (8016ab8 ) - 8016928: f44f 62b7 mov.w r2, #1464 ; 0x5b8 - 801692c: 4963 ldr r1, [pc, #396] ; (8016abc ) - 801692e: 4864 ldr r0, [pc, #400] ; (8016ac0 ) - 8016930: f005 fe8a bl 801c648 + 8016930: 68fb ldr r3, [r7, #12] + 8016932: 2b00 cmp r3, #0 + 8016934: d106 bne.n 8016944 + 8016936: 4b64 ldr r3, [pc, #400] ; (8016ac8 ) + 8016938: f44f 62b7 mov.w r2, #1464 ; 0x5b8 + 801693c: 4963 ldr r1, [pc, #396] ; (8016acc ) + 801693e: 4864 ldr r0, [pc, #400] ; (8016ad0 ) + 8016940: f005 fe8a bl 801c658 LWIP_ASSERT("tcp_output_segment: invalid pcb", pcb != NULL); - 8016934: 68bb ldr r3, [r7, #8] - 8016936: 2b00 cmp r3, #0 - 8016938: d106 bne.n 8016948 - 801693a: 4b5f ldr r3, [pc, #380] ; (8016ab8 ) - 801693c: f240 52b9 movw r2, #1465 ; 0x5b9 - 8016940: 4960 ldr r1, [pc, #384] ; (8016ac4 ) - 8016942: 485f ldr r0, [pc, #380] ; (8016ac0 ) - 8016944: f005 fe80 bl 801c648 + 8016944: 68bb ldr r3, [r7, #8] + 8016946: 2b00 cmp r3, #0 + 8016948: d106 bne.n 8016958 + 801694a: 4b5f ldr r3, [pc, #380] ; (8016ac8 ) + 801694c: f240 52b9 movw r2, #1465 ; 0x5b9 + 8016950: 4960 ldr r1, [pc, #384] ; (8016ad4 ) + 8016952: 485f ldr r0, [pc, #380] ; (8016ad0 ) + 8016954: f005 fe80 bl 801c658 LWIP_ASSERT("tcp_output_segment: invalid netif", netif != NULL); - 8016948: 687b ldr r3, [r7, #4] - 801694a: 2b00 cmp r3, #0 - 801694c: d106 bne.n 801695c - 801694e: 4b5a ldr r3, [pc, #360] ; (8016ab8 ) - 8016950: f240 52ba movw r2, #1466 ; 0x5ba - 8016954: 495c ldr r1, [pc, #368] ; (8016ac8 ) - 8016956: 485a ldr r0, [pc, #360] ; (8016ac0 ) - 8016958: f005 fe76 bl 801c648 + 8016958: 687b ldr r3, [r7, #4] + 801695a: 2b00 cmp r3, #0 + 801695c: d106 bne.n 801696c + 801695e: 4b5a ldr r3, [pc, #360] ; (8016ac8 ) + 8016960: f240 52ba movw r2, #1466 ; 0x5ba + 8016964: 495c ldr r1, [pc, #368] ; (8016ad8 ) + 8016966: 485a ldr r0, [pc, #360] ; (8016ad0 ) + 8016968: f005 fe76 bl 801c658 if (tcp_output_segment_busy(seg)) { - 801695c: 68f8 ldr r0, [r7, #12] - 801695e: f7ff ffb9 bl 80168d4 - 8016962: 4603 mov r3, r0 - 8016964: 2b00 cmp r3, #0 - 8016966: d001 beq.n 801696c + 801696c: 68f8 ldr r0, [r7, #12] + 801696e: f7ff ffb9 bl 80168e4 + 8016972: 4603 mov r3, r0 + 8016974: 2b00 cmp r3, #0 + 8016976: d001 beq.n 801697c /* This should not happen: rexmit functions should have checked this. However, since this function modifies p->len, we must not continue in this case. */ LWIP_DEBUGF(TCP_RTO_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("tcp_output_segment: segment busy\n")); return ERR_OK; - 8016968: 2300 movs r3, #0 - 801696a: e0a0 b.n 8016aae + 8016978: 2300 movs r3, #0 + 801697a: e0a0 b.n 8016abe } /* The TCP header has already been constructed, but the ackno and wnd fields remain. */ seg->tcphdr->ackno = lwip_htonl(pcb->rcv_nxt); - 801696c: 68bb ldr r3, [r7, #8] - 801696e: 6a5a ldr r2, [r3, #36] ; 0x24 - 8016970: 68fb ldr r3, [r7, #12] - 8016972: 68dc ldr r4, [r3, #12] - 8016974: 4610 mov r0, r2 - 8016976: f7f9 fd98 bl 80104aa - 801697a: 4603 mov r3, r0 - 801697c: 60a3 str r3, [r4, #8] + 801697c: 68bb ldr r3, [r7, #8] + 801697e: 6a5a ldr r2, [r3, #36] ; 0x24 + 8016980: 68fb ldr r3, [r7, #12] + 8016982: 68dc ldr r4, [r3, #12] + 8016984: 4610 mov r0, r2 + 8016986: f7f9 fd98 bl 80104ba + 801698a: 4603 mov r3, r0 + 801698c: 60a3 str r3, [r4, #8] the window scale option) is never scaled. */ seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(pcb->rcv_ann_wnd)); } else #endif /* LWIP_WND_SCALE */ { seg->tcphdr->wnd = lwip_htons(TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd))); - 801697e: 68bb ldr r3, [r7, #8] - 8016980: 8d5a ldrh r2, [r3, #42] ; 0x2a - 8016982: 68fb ldr r3, [r7, #12] - 8016984: 68dc ldr r4, [r3, #12] - 8016986: 4610 mov r0, r2 - 8016988: f7f9 fd7a bl 8010480 - 801698c: 4603 mov r3, r0 - 801698e: 81e3 strh r3, [r4, #14] + 801698e: 68bb ldr r3, [r7, #8] + 8016990: 8d5a ldrh r2, [r3, #42] ; 0x2a + 8016992: 68fb ldr r3, [r7, #12] + 8016994: 68dc ldr r4, [r3, #12] + 8016996: 4610 mov r0, r2 + 8016998: f7f9 fd7a bl 8010490 + 801699c: 4603 mov r3, r0 + 801699e: 81e3 strh r3, [r4, #14] } pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; - 8016990: 68bb ldr r3, [r7, #8] - 8016992: 6a5b ldr r3, [r3, #36] ; 0x24 - 8016994: 68ba ldr r2, [r7, #8] - 8016996: 8d52 ldrh r2, [r2, #42] ; 0x2a - 8016998: 441a add r2, r3 - 801699a: 68bb ldr r3, [r7, #8] - 801699c: 62da str r2, [r3, #44] ; 0x2c + 80169a0: 68bb ldr r3, [r7, #8] + 80169a2: 6a5b ldr r3, [r3, #36] ; 0x24 + 80169a4: 68ba ldr r2, [r7, #8] + 80169a6: 8d52 ldrh r2, [r2, #42] ; 0x2a + 80169a8: 441a add r2, r3 + 80169aa: 68bb ldr r3, [r7, #8] + 80169ac: 62da str r2, [r3, #44] ; 0x2c /* Add any requested options. NB MSS option is only set on SYN packets, so ignore it here */ /* cast through void* to get rid of alignment warnings */ opts = (u32_t *)(void *)(seg->tcphdr + 1); - 801699e: 68fb ldr r3, [r7, #12] - 80169a0: 68db ldr r3, [r3, #12] - 80169a2: 3314 adds r3, #20 - 80169a4: 61fb str r3, [r7, #28] + 80169ae: 68fb ldr r3, [r7, #12] + 80169b0: 68db ldr r3, [r3, #12] + 80169b2: 3314 adds r3, #20 + 80169b4: 61fb str r3, [r7, #28] if (seg->flags & TF_SEG_OPTS_MSS) { - 80169a6: 68fb ldr r3, [r7, #12] - 80169a8: 7a9b ldrb r3, [r3, #10] - 80169aa: f003 0301 and.w r3, r3, #1 - 80169ae: 2b00 cmp r3, #0 - 80169b0: d015 beq.n 80169de + 80169b6: 68fb ldr r3, [r7, #12] + 80169b8: 7a9b ldrb r3, [r3, #10] + 80169ba: f003 0301 and.w r3, r3, #1 + 80169be: 2b00 cmp r3, #0 + 80169c0: d015 beq.n 80169ee u16_t mss; #if TCP_CALCULATE_EFF_SEND_MSS mss = tcp_eff_send_mss_netif(TCP_MSS, netif, &pcb->remote_ip); - 80169b2: 68bb ldr r3, [r7, #8] - 80169b4: 3304 adds r3, #4 - 80169b6: 461a mov r2, r3 - 80169b8: 6879 ldr r1, [r7, #4] - 80169ba: f44f 7006 mov.w r0, #536 ; 0x218 - 80169be: f7fc fe8d bl 80136dc - 80169c2: 4603 mov r3, r0 - 80169c4: 837b strh r3, [r7, #26] + 80169c2: 68bb ldr r3, [r7, #8] + 80169c4: 3304 adds r3, #4 + 80169c6: 461a mov r2, r3 + 80169c8: 6879 ldr r1, [r7, #4] + 80169ca: f44f 7006 mov.w r0, #536 ; 0x218 + 80169ce: f7fc fe8d bl 80136ec + 80169d2: 4603 mov r3, r0 + 80169d4: 837b strh r3, [r7, #26] #else /* TCP_CALCULATE_EFF_SEND_MSS */ mss = TCP_MSS; #endif /* TCP_CALCULATE_EFF_SEND_MSS */ *opts = TCP_BUILD_MSS_OPTION(mss); - 80169c6: 8b7b ldrh r3, [r7, #26] - 80169c8: f043 7301 orr.w r3, r3, #33816576 ; 0x2040000 - 80169cc: 4618 mov r0, r3 - 80169ce: f7f9 fd6c bl 80104aa - 80169d2: 4602 mov r2, r0 - 80169d4: 69fb ldr r3, [r7, #28] - 80169d6: 601a str r2, [r3, #0] + 80169d6: 8b7b ldrh r3, [r7, #26] + 80169d8: f043 7301 orr.w r3, r3, #33816576 ; 0x2040000 + 80169dc: 4618 mov r0, r3 + 80169de: f7f9 fd6c bl 80104ba + 80169e2: 4602 mov r2, r0 + 80169e4: 69fb ldr r3, [r7, #28] + 80169e6: 601a str r2, [r3, #0] opts += 1; - 80169d8: 69fb ldr r3, [r7, #28] - 80169da: 3304 adds r3, #4 - 80169dc: 61fb str r3, [r7, #28] + 80169e8: 69fb ldr r3, [r7, #28] + 80169ea: 3304 adds r3, #4 + 80169ec: 61fb str r3, [r7, #28] } #endif /* Set retransmission timer running if it is not currently enabled This must be set before checking the route. */ if (pcb->rtime < 0) { - 80169de: 68bb ldr r3, [r7, #8] - 80169e0: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 - 80169e4: 2b00 cmp r3, #0 - 80169e6: da02 bge.n 80169ee + 80169ee: 68bb ldr r3, [r7, #8] + 80169f0: f9b3 3030 ldrsh.w r3, [r3, #48] ; 0x30 + 80169f4: 2b00 cmp r3, #0 + 80169f6: da02 bge.n 80169fe pcb->rtime = 0; - 80169e8: 68bb ldr r3, [r7, #8] - 80169ea: 2200 movs r2, #0 - 80169ec: 861a strh r2, [r3, #48] ; 0x30 + 80169f8: 68bb ldr r3, [r7, #8] + 80169fa: 2200 movs r2, #0 + 80169fc: 861a strh r2, [r3, #48] ; 0x30 } if (pcb->rttest == 0) { - 80169ee: 68bb ldr r3, [r7, #8] - 80169f0: 6b5b ldr r3, [r3, #52] ; 0x34 - 80169f2: 2b00 cmp r3, #0 - 80169f4: d10c bne.n 8016a10 + 80169fe: 68bb ldr r3, [r7, #8] + 8016a00: 6b5b ldr r3, [r3, #52] ; 0x34 + 8016a02: 2b00 cmp r3, #0 + 8016a04: d10c bne.n 8016a20 pcb->rttest = tcp_ticks; - 80169f6: 4b35 ldr r3, [pc, #212] ; (8016acc ) - 80169f8: 681a ldr r2, [r3, #0] - 80169fa: 68bb ldr r3, [r7, #8] - 80169fc: 635a str r2, [r3, #52] ; 0x34 + 8016a06: 4b35 ldr r3, [pc, #212] ; (8016adc ) + 8016a08: 681a ldr r2, [r3, #0] + 8016a0a: 68bb ldr r3, [r7, #8] + 8016a0c: 635a str r2, [r3, #52] ; 0x34 pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno); - 80169fe: 68fb ldr r3, [r7, #12] - 8016a00: 68db ldr r3, [r3, #12] - 8016a02: 685b ldr r3, [r3, #4] - 8016a04: 4618 mov r0, r3 - 8016a06: f7f9 fd50 bl 80104aa - 8016a0a: 4602 mov r2, r0 - 8016a0c: 68bb ldr r3, [r7, #8] - 8016a0e: 639a str r2, [r3, #56] ; 0x38 + 8016a0e: 68fb ldr r3, [r7, #12] + 8016a10: 68db ldr r3, [r3, #12] + 8016a12: 685b ldr r3, [r3, #4] + 8016a14: 4618 mov r0, r3 + 8016a16: f7f9 fd50 bl 80104ba + 8016a1a: 4602 mov r2, r0 + 8016a1c: 68bb ldr r3, [r7, #8] + 8016a1e: 639a str r2, [r3, #56] ; 0x38 } LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output_segment: %"U32_F":%"U32_F"\n", lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) + seg->len)); len = (u16_t)((u8_t *)seg->tcphdr - (u8_t *)seg->p->payload); - 8016a10: 68fb ldr r3, [r7, #12] - 8016a12: 68db ldr r3, [r3, #12] - 8016a14: 461a mov r2, r3 - 8016a16: 68fb ldr r3, [r7, #12] - 8016a18: 685b ldr r3, [r3, #4] - 8016a1a: 685b ldr r3, [r3, #4] - 8016a1c: 1ad3 subs r3, r2, r3 - 8016a1e: 833b strh r3, [r7, #24] + 8016a20: 68fb ldr r3, [r7, #12] + 8016a22: 68db ldr r3, [r3, #12] + 8016a24: 461a mov r2, r3 + 8016a26: 68fb ldr r3, [r7, #12] + 8016a28: 685b ldr r3, [r3, #4] + 8016a2a: 685b ldr r3, [r3, #4] + 8016a2c: 1ad3 subs r3, r2, r3 + 8016a2e: 833b strh r3, [r7, #24] if (len == 0) { /** Exclude retransmitted segments from this count. */ MIB2_STATS_INC(mib2.tcpoutsegs); } seg->p->len -= len; - 8016a20: 68fb ldr r3, [r7, #12] - 8016a22: 685b ldr r3, [r3, #4] - 8016a24: 8959 ldrh r1, [r3, #10] - 8016a26: 68fb ldr r3, [r7, #12] - 8016a28: 685b ldr r3, [r3, #4] - 8016a2a: 8b3a ldrh r2, [r7, #24] - 8016a2c: 1a8a subs r2, r1, r2 - 8016a2e: b292 uxth r2, r2 - 8016a30: 815a strh r2, [r3, #10] + 8016a30: 68fb ldr r3, [r7, #12] + 8016a32: 685b ldr r3, [r3, #4] + 8016a34: 8959 ldrh r1, [r3, #10] + 8016a36: 68fb ldr r3, [r7, #12] + 8016a38: 685b ldr r3, [r3, #4] + 8016a3a: 8b3a ldrh r2, [r7, #24] + 8016a3c: 1a8a subs r2, r1, r2 + 8016a3e: b292 uxth r2, r2 + 8016a40: 815a strh r2, [r3, #10] seg->p->tot_len -= len; - 8016a32: 68fb ldr r3, [r7, #12] - 8016a34: 685b ldr r3, [r3, #4] - 8016a36: 8919 ldrh r1, [r3, #8] - 8016a38: 68fb ldr r3, [r7, #12] - 8016a3a: 685b ldr r3, [r3, #4] - 8016a3c: 8b3a ldrh r2, [r7, #24] - 8016a3e: 1a8a subs r2, r1, r2 - 8016a40: b292 uxth r2, r2 - 8016a42: 811a strh r2, [r3, #8] + 8016a42: 68fb ldr r3, [r7, #12] + 8016a44: 685b ldr r3, [r3, #4] + 8016a46: 8919 ldrh r1, [r3, #8] + 8016a48: 68fb ldr r3, [r7, #12] + 8016a4a: 685b ldr r3, [r3, #4] + 8016a4c: 8b3a ldrh r2, [r7, #24] + 8016a4e: 1a8a subs r2, r1, r2 + 8016a50: b292 uxth r2, r2 + 8016a52: 811a strh r2, [r3, #8] seg->p->payload = seg->tcphdr; - 8016a44: 68fb ldr r3, [r7, #12] - 8016a46: 685b ldr r3, [r3, #4] - 8016a48: 68fa ldr r2, [r7, #12] - 8016a4a: 68d2 ldr r2, [r2, #12] - 8016a4c: 605a str r2, [r3, #4] + 8016a54: 68fb ldr r3, [r7, #12] + 8016a56: 685b ldr r3, [r3, #4] + 8016a58: 68fa ldr r2, [r7, #12] + 8016a5a: 68d2 ldr r2, [r2, #12] + 8016a5c: 605a str r2, [r3, #4] seg->tcphdr->chksum = 0; - 8016a4e: 68fb ldr r3, [r7, #12] - 8016a50: 68db ldr r3, [r3, #12] - 8016a52: 2200 movs r2, #0 - 8016a54: 741a strb r2, [r3, #16] - 8016a56: 2200 movs r2, #0 - 8016a58: 745a strb r2, [r3, #17] + 8016a5e: 68fb ldr r3, [r7, #12] + 8016a60: 68db ldr r3, [r3, #12] + 8016a62: 2200 movs r2, #0 + 8016a64: 741a strb r2, [r3, #16] + 8016a66: 2200 movs r2, #0 + 8016a68: 745a strb r2, [r3, #17] #ifdef LWIP_HOOK_TCP_OUT_ADD_TCPOPTS opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(seg->p, seg->tcphdr, pcb, opts); #endif LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(seg->tcphdr + 1)) + LWIP_TCP_OPT_LENGTH_SEGMENT(seg->flags, pcb)); - 8016a5a: 68fb ldr r3, [r7, #12] - 8016a5c: 68db ldr r3, [r3, #12] - 8016a5e: f103 0214 add.w r2, r3, #20 - 8016a62: 68fb ldr r3, [r7, #12] - 8016a64: 7a9b ldrb r3, [r3, #10] - 8016a66: 009b lsls r3, r3, #2 - 8016a68: f003 0304 and.w r3, r3, #4 - 8016a6c: 4413 add r3, r2 - 8016a6e: 69fa ldr r2, [r7, #28] - 8016a70: 429a cmp r2, r3 - 8016a72: d006 beq.n 8016a82 - 8016a74: 4b10 ldr r3, [pc, #64] ; (8016ab8 ) - 8016a76: f240 621c movw r2, #1564 ; 0x61c - 8016a7a: 4915 ldr r1, [pc, #84] ; (8016ad0 ) - 8016a7c: 4810 ldr r0, [pc, #64] ; (8016ac0 ) - 8016a7e: f005 fde3 bl 801c648 + 8016a6a: 68fb ldr r3, [r7, #12] + 8016a6c: 68db ldr r3, [r3, #12] + 8016a6e: f103 0214 add.w r2, r3, #20 + 8016a72: 68fb ldr r3, [r7, #12] + 8016a74: 7a9b ldrb r3, [r3, #10] + 8016a76: 009b lsls r3, r3, #2 + 8016a78: f003 0304 and.w r3, r3, #4 + 8016a7c: 4413 add r3, r2 + 8016a7e: 69fa ldr r2, [r7, #28] + 8016a80: 429a cmp r2, r3 + 8016a82: d006 beq.n 8016a92 + 8016a84: 4b10 ldr r3, [pc, #64] ; (8016ac8 ) + 8016a86: f240 621c movw r2, #1564 ; 0x61c + 8016a8a: 4915 ldr r1, [pc, #84] ; (8016ae0 ) + 8016a8c: 4810 ldr r0, [pc, #64] ; (8016ad0 ) + 8016a8e: f005 fde3 bl 801c658 } #endif /* CHECKSUM_GEN_TCP */ TCP_STATS_INC(tcp.xmit); NETIF_SET_HINTS(netif, &(pcb->netif_hints)); err = ip_output_if(seg->p, &pcb->local_ip, &pcb->remote_ip, pcb->ttl, - 8016a82: 68fb ldr r3, [r7, #12] - 8016a84: 6858 ldr r0, [r3, #4] - 8016a86: 68b9 ldr r1, [r7, #8] - 8016a88: 68bb ldr r3, [r7, #8] - 8016a8a: 1d1c adds r4, r3, #4 - 8016a8c: 68bb ldr r3, [r7, #8] - 8016a8e: 7add ldrb r5, [r3, #11] - 8016a90: 68bb ldr r3, [r7, #8] - 8016a92: 7a9b ldrb r3, [r3, #10] - 8016a94: 687a ldr r2, [r7, #4] - 8016a96: 9202 str r2, [sp, #8] - 8016a98: 2206 movs r2, #6 - 8016a9a: 9201 str r2, [sp, #4] - 8016a9c: 9300 str r3, [sp, #0] - 8016a9e: 462b mov r3, r5 - 8016aa0: 4622 mov r2, r4 - 8016aa2: f004 fc37 bl 801b314 - 8016aa6: 4603 mov r3, r0 - 8016aa8: 75fb strb r3, [r7, #23] + 8016a92: 68fb ldr r3, [r7, #12] + 8016a94: 6858 ldr r0, [r3, #4] + 8016a96: 68b9 ldr r1, [r7, #8] + 8016a98: 68bb ldr r3, [r7, #8] + 8016a9a: 1d1c adds r4, r3, #4 + 8016a9c: 68bb ldr r3, [r7, #8] + 8016a9e: 7add ldrb r5, [r3, #11] + 8016aa0: 68bb ldr r3, [r7, #8] + 8016aa2: 7a9b ldrb r3, [r3, #10] + 8016aa4: 687a ldr r2, [r7, #4] + 8016aa6: 9202 str r2, [sp, #8] + 8016aa8: 2206 movs r2, #6 + 8016aaa: 9201 str r2, [sp, #4] + 8016aac: 9300 str r3, [sp, #0] + 8016aae: 462b mov r3, r5 + 8016ab0: 4622 mov r2, r4 + 8016ab2: f004 fc37 bl 801b324 + 8016ab6: 4603 mov r3, r0 + 8016ab8: 75fb strb r3, [r7, #23] seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum); seg->chksum_swapped = 1; } #endif return err; - 8016aaa: f997 3017 ldrsb.w r3, [r7, #23] -} - 8016aae: 4618 mov r0, r3 - 8016ab0: 3720 adds r7, #32 - 8016ab2: 46bd mov sp, r7 - 8016ab4: bdb0 pop {r4, r5, r7, pc} - 8016ab6: bf00 nop - 8016ab8: 0801f0c0 .word 0x0801f0c0 - 8016abc: 0801f684 .word 0x0801f684 - 8016ac0: 0801f114 .word 0x0801f114 - 8016ac4: 0801f6a4 .word 0x0801f6a4 - 8016ac8: 0801f6c4 .word 0x0801f6c4 - 8016acc: 2000f7f4 .word 0x2000f7f4 - 8016ad0: 0801f6e8 .word 0x0801f6e8 - -08016ad4 : + 8016aba: f997 3017 ldrsb.w r3, [r7, #23] +} + 8016abe: 4618 mov r0, r3 + 8016ac0: 3720 adds r7, #32 + 8016ac2: 46bd mov sp, r7 + 8016ac4: bdb0 pop {r4, r5, r7, pc} + 8016ac6: bf00 nop + 8016ac8: 0801f0d0 .word 0x0801f0d0 + 8016acc: 0801f694 .word 0x0801f694 + 8016ad0: 0801f124 .word 0x0801f124 + 8016ad4: 0801f6b4 .word 0x0801f6b4 + 8016ad8: 0801f6d4 .word 0x0801f6d4 + 8016adc: 2000f7f4 .word 0x2000f7f4 + 8016ae0: 0801f6f8 .word 0x0801f6f8 + +08016ae4 : * * @param pcb the tcp_pcb for which to re-enqueue all unacked segments */ err_t tcp_rexmit_rto_prepare(struct tcp_pcb *pcb) { - 8016ad4: b5b0 push {r4, r5, r7, lr} - 8016ad6: b084 sub sp, #16 - 8016ad8: af00 add r7, sp, #0 - 8016ada: 6078 str r0, [r7, #4] + 8016ae4: b5b0 push {r4, r5, r7, lr} + 8016ae6: b084 sub sp, #16 + 8016ae8: af00 add r7, sp, #0 + 8016aea: 6078 str r0, [r7, #4] struct tcp_seg *seg; LWIP_ASSERT("tcp_rexmit_rto_prepare: invalid pcb", pcb != NULL); - 8016adc: 687b ldr r3, [r7, #4] - 8016ade: 2b00 cmp r3, #0 - 8016ae0: d106 bne.n 8016af0 - 8016ae2: 4b31 ldr r3, [pc, #196] ; (8016ba8 ) - 8016ae4: f240 6263 movw r2, #1635 ; 0x663 - 8016ae8: 4930 ldr r1, [pc, #192] ; (8016bac ) - 8016aea: 4831 ldr r0, [pc, #196] ; (8016bb0 ) - 8016aec: f005 fdac bl 801c648 + 8016aec: 687b ldr r3, [r7, #4] + 8016aee: 2b00 cmp r3, #0 + 8016af0: d106 bne.n 8016b00 + 8016af2: 4b31 ldr r3, [pc, #196] ; (8016bb8 ) + 8016af4: f240 6263 movw r2, #1635 ; 0x663 + 8016af8: 4930 ldr r1, [pc, #192] ; (8016bbc ) + 8016afa: 4831 ldr r0, [pc, #196] ; (8016bc0 ) + 8016afc: f005 fdac bl 801c658 if (pcb->unacked == NULL) { - 8016af0: 687b ldr r3, [r7, #4] - 8016af2: 6f1b ldr r3, [r3, #112] ; 0x70 - 8016af4: 2b00 cmp r3, #0 - 8016af6: d102 bne.n 8016afe + 8016b00: 687b ldr r3, [r7, #4] + 8016b02: 6f1b ldr r3, [r3, #112] ; 0x70 + 8016b04: 2b00 cmp r3, #0 + 8016b06: d102 bne.n 8016b0e return ERR_VAL; - 8016af8: f06f 0305 mvn.w r3, #5 - 8016afc: e050 b.n 8016ba0 + 8016b08: f06f 0305 mvn.w r3, #5 + 8016b0c: e050 b.n 8016bb0 /* Move all unacked segments to the head of the unsent queue. However, give up if any of the unsent pbufs are still referenced by the netif driver due to deferred transmission. No point loading the link further if it is struggling to flush its buffered writes. */ for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) { - 8016afe: 687b ldr r3, [r7, #4] - 8016b00: 6f1b ldr r3, [r3, #112] ; 0x70 - 8016b02: 60fb str r3, [r7, #12] - 8016b04: e00b b.n 8016b1e + 8016b0e: 687b ldr r3, [r7, #4] + 8016b10: 6f1b ldr r3, [r3, #112] ; 0x70 + 8016b12: 60fb str r3, [r7, #12] + 8016b14: e00b b.n 8016b2e if (tcp_output_segment_busy(seg)) { - 8016b06: 68f8 ldr r0, [r7, #12] - 8016b08: f7ff fee4 bl 80168d4 - 8016b0c: 4603 mov r3, r0 - 8016b0e: 2b00 cmp r3, #0 - 8016b10: d002 beq.n 8016b18 + 8016b16: 68f8 ldr r0, [r7, #12] + 8016b18: f7ff fee4 bl 80168e4 + 8016b1c: 4603 mov r3, r0 + 8016b1e: 2b00 cmp r3, #0 + 8016b20: d002 beq.n 8016b28 LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n")); return ERR_VAL; - 8016b12: f06f 0305 mvn.w r3, #5 - 8016b16: e043 b.n 8016ba0 + 8016b22: f06f 0305 mvn.w r3, #5 + 8016b26: e043 b.n 8016bb0 for (seg = pcb->unacked; seg->next != NULL; seg = seg->next) { - 8016b18: 68fb ldr r3, [r7, #12] - 8016b1a: 681b ldr r3, [r3, #0] - 8016b1c: 60fb str r3, [r7, #12] - 8016b1e: 68fb ldr r3, [r7, #12] - 8016b20: 681b ldr r3, [r3, #0] - 8016b22: 2b00 cmp r3, #0 - 8016b24: d1ef bne.n 8016b06 + 8016b28: 68fb ldr r3, [r7, #12] + 8016b2a: 681b ldr r3, [r3, #0] + 8016b2c: 60fb str r3, [r7, #12] + 8016b2e: 68fb ldr r3, [r7, #12] + 8016b30: 681b ldr r3, [r3, #0] + 8016b32: 2b00 cmp r3, #0 + 8016b34: d1ef bne.n 8016b16 } } if (tcp_output_segment_busy(seg)) { - 8016b26: 68f8 ldr r0, [r7, #12] - 8016b28: f7ff fed4 bl 80168d4 - 8016b2c: 4603 mov r3, r0 - 8016b2e: 2b00 cmp r3, #0 - 8016b30: d002 beq.n 8016b38 + 8016b36: 68f8 ldr r0, [r7, #12] + 8016b38: f7ff fed4 bl 80168e4 + 8016b3c: 4603 mov r3, r0 + 8016b3e: 2b00 cmp r3, #0 + 8016b40: d002 beq.n 8016b48 LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit_rto: segment busy\n")); return ERR_VAL; - 8016b32: f06f 0305 mvn.w r3, #5 - 8016b36: e033 b.n 8016ba0 + 8016b42: f06f 0305 mvn.w r3, #5 + 8016b46: e033 b.n 8016bb0 } /* concatenate unsent queue after unacked queue */ seg->next = pcb->unsent; - 8016b38: 687b ldr r3, [r7, #4] - 8016b3a: 6eda ldr r2, [r3, #108] ; 0x6c - 8016b3c: 68fb ldr r3, [r7, #12] - 8016b3e: 601a str r2, [r3, #0] + 8016b48: 687b ldr r3, [r7, #4] + 8016b4a: 6eda ldr r2, [r3, #108] ; 0x6c + 8016b4c: 68fb ldr r3, [r7, #12] + 8016b4e: 601a str r2, [r3, #0] if (pcb->unsent == NULL) { pcb->unsent_oversize = seg->oversize_left; } #endif /* TCP_OVERSIZE_DBGCHECK */ /* unsent queue is the concatenated queue (of unacked, unsent) */ pcb->unsent = pcb->unacked; - 8016b40: 687b ldr r3, [r7, #4] - 8016b42: 6f1a ldr r2, [r3, #112] ; 0x70 - 8016b44: 687b ldr r3, [r7, #4] - 8016b46: 66da str r2, [r3, #108] ; 0x6c + 8016b50: 687b ldr r3, [r7, #4] + 8016b52: 6f1a ldr r2, [r3, #112] ; 0x70 + 8016b54: 687b ldr r3, [r7, #4] + 8016b56: 66da str r2, [r3, #108] ; 0x6c /* unacked queue is now empty */ pcb->unacked = NULL; - 8016b48: 687b ldr r3, [r7, #4] - 8016b4a: 2200 movs r2, #0 - 8016b4c: 671a str r2, [r3, #112] ; 0x70 + 8016b58: 687b ldr r3, [r7, #4] + 8016b5a: 2200 movs r2, #0 + 8016b5c: 671a str r2, [r3, #112] ; 0x70 /* Mark RTO in-progress */ tcp_set_flags(pcb, TF_RTO); - 8016b4e: 687b ldr r3, [r7, #4] - 8016b50: 8b5b ldrh r3, [r3, #26] - 8016b52: f443 6300 orr.w r3, r3, #2048 ; 0x800 - 8016b56: b29a uxth r2, r3 - 8016b58: 687b ldr r3, [r7, #4] - 8016b5a: 835a strh r2, [r3, #26] + 8016b5e: 687b ldr r3, [r7, #4] + 8016b60: 8b5b ldrh r3, [r3, #26] + 8016b62: f443 6300 orr.w r3, r3, #2048 ; 0x800 + 8016b66: b29a uxth r2, r3 + 8016b68: 687b ldr r3, [r7, #4] + 8016b6a: 835a strh r2, [r3, #26] /* Record the next byte following retransmit */ pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg); - 8016b5c: 68fb ldr r3, [r7, #12] - 8016b5e: 68db ldr r3, [r3, #12] - 8016b60: 685b ldr r3, [r3, #4] - 8016b62: 4618 mov r0, r3 - 8016b64: f7f9 fca1 bl 80104aa - 8016b68: 4604 mov r4, r0 - 8016b6a: 68fb ldr r3, [r7, #12] - 8016b6c: 891b ldrh r3, [r3, #8] - 8016b6e: 461d mov r5, r3 - 8016b70: 68fb ldr r3, [r7, #12] - 8016b72: 68db ldr r3, [r3, #12] - 8016b74: 899b ldrh r3, [r3, #12] - 8016b76: b29b uxth r3, r3 - 8016b78: 4618 mov r0, r3 - 8016b7a: f7f9 fc81 bl 8010480 - 8016b7e: 4603 mov r3, r0 - 8016b80: b2db uxtb r3, r3 - 8016b82: f003 0303 and.w r3, r3, #3 - 8016b86: 2b00 cmp r3, #0 - 8016b88: d001 beq.n 8016b8e - 8016b8a: 2301 movs r3, #1 - 8016b8c: e000 b.n 8016b90 - 8016b8e: 2300 movs r3, #0 - 8016b90: 442b add r3, r5 - 8016b92: 18e2 adds r2, r4, r3 - 8016b94: 687b ldr r3, [r7, #4] - 8016b96: 64da str r2, [r3, #76] ; 0x4c + 8016b6c: 68fb ldr r3, [r7, #12] + 8016b6e: 68db ldr r3, [r3, #12] + 8016b70: 685b ldr r3, [r3, #4] + 8016b72: 4618 mov r0, r3 + 8016b74: f7f9 fca1 bl 80104ba + 8016b78: 4604 mov r4, r0 + 8016b7a: 68fb ldr r3, [r7, #12] + 8016b7c: 891b ldrh r3, [r3, #8] + 8016b7e: 461d mov r5, r3 + 8016b80: 68fb ldr r3, [r7, #12] + 8016b82: 68db ldr r3, [r3, #12] + 8016b84: 899b ldrh r3, [r3, #12] + 8016b86: b29b uxth r3, r3 + 8016b88: 4618 mov r0, r3 + 8016b8a: f7f9 fc81 bl 8010490 + 8016b8e: 4603 mov r3, r0 + 8016b90: b2db uxtb r3, r3 + 8016b92: f003 0303 and.w r3, r3, #3 + 8016b96: 2b00 cmp r3, #0 + 8016b98: d001 beq.n 8016b9e + 8016b9a: 2301 movs r3, #1 + 8016b9c: e000 b.n 8016ba0 + 8016b9e: 2300 movs r3, #0 + 8016ba0: 442b add r3, r5 + 8016ba2: 18e2 adds r2, r4, r3 + 8016ba4: 687b ldr r3, [r7, #4] + 8016ba6: 64da str r2, [r3, #76] ; 0x4c /* Don't take any RTT measurements after retransmitting. */ pcb->rttest = 0; - 8016b98: 687b ldr r3, [r7, #4] - 8016b9a: 2200 movs r2, #0 - 8016b9c: 635a str r2, [r3, #52] ; 0x34 + 8016ba8: 687b ldr r3, [r7, #4] + 8016baa: 2200 movs r2, #0 + 8016bac: 635a str r2, [r3, #52] ; 0x34 return ERR_OK; - 8016b9e: 2300 movs r3, #0 + 8016bae: 2300 movs r3, #0 } - 8016ba0: 4618 mov r0, r3 - 8016ba2: 3710 adds r7, #16 - 8016ba4: 46bd mov sp, r7 - 8016ba6: bdb0 pop {r4, r5, r7, pc} - 8016ba8: 0801f0c0 .word 0x0801f0c0 - 8016bac: 0801f6fc .word 0x0801f6fc - 8016bb0: 0801f114 .word 0x0801f114 + 8016bb0: 4618 mov r0, r3 + 8016bb2: 3710 adds r7, #16 + 8016bb4: 46bd mov sp, r7 + 8016bb6: bdb0 pop {r4, r5, r7, pc} + 8016bb8: 0801f0d0 .word 0x0801f0d0 + 8016bbc: 0801f70c .word 0x0801f70c + 8016bc0: 0801f124 .word 0x0801f124 -08016bb4 : +08016bc4 : * * @param pcb the tcp_pcb for which to re-enqueue all unacked segments */ void tcp_rexmit_rto_commit(struct tcp_pcb *pcb) { - 8016bb4: b580 push {r7, lr} - 8016bb6: b082 sub sp, #8 - 8016bb8: af00 add r7, sp, #0 - 8016bba: 6078 str r0, [r7, #4] + 8016bc4: b580 push {r7, lr} + 8016bc6: b082 sub sp, #8 + 8016bc8: af00 add r7, sp, #0 + 8016bca: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL); - 8016bbc: 687b ldr r3, [r7, #4] - 8016bbe: 2b00 cmp r3, #0 - 8016bc0: d106 bne.n 8016bd0 - 8016bc2: 4b0d ldr r3, [pc, #52] ; (8016bf8 ) - 8016bc4: f44f 62d3 mov.w r2, #1688 ; 0x698 - 8016bc8: 490c ldr r1, [pc, #48] ; (8016bfc ) - 8016bca: 480d ldr r0, [pc, #52] ; (8016c00 ) - 8016bcc: f005 fd3c bl 801c648 + 8016bcc: 687b ldr r3, [r7, #4] + 8016bce: 2b00 cmp r3, #0 + 8016bd0: d106 bne.n 8016be0 + 8016bd2: 4b0d ldr r3, [pc, #52] ; (8016c08 ) + 8016bd4: f44f 62d3 mov.w r2, #1688 ; 0x698 + 8016bd8: 490c ldr r1, [pc, #48] ; (8016c0c ) + 8016bda: 480d ldr r0, [pc, #52] ; (8016c10 ) + 8016bdc: f005 fd3c bl 801c658 /* increment number of retransmissions */ if (pcb->nrtx < 0xFF) { - 8016bd0: 687b ldr r3, [r7, #4] - 8016bd2: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8016bd6: 2bff cmp r3, #255 ; 0xff - 8016bd8: d007 beq.n 8016bea + 8016be0: 687b ldr r3, [r7, #4] + 8016be2: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 8016be6: 2bff cmp r3, #255 ; 0xff + 8016be8: d007 beq.n 8016bfa ++pcb->nrtx; - 8016bda: 687b ldr r3, [r7, #4] - 8016bdc: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8016be0: 3301 adds r3, #1 - 8016be2: b2da uxtb r2, r3 - 8016be4: 687b ldr r3, [r7, #4] - 8016be6: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8016bea: 687b ldr r3, [r7, #4] + 8016bec: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 8016bf0: 3301 adds r3, #1 + 8016bf2: b2da uxtb r2, r3 + 8016bf4: 687b ldr r3, [r7, #4] + 8016bf6: f883 2042 strb.w r2, [r3, #66] ; 0x42 } /* Do the actual retransmission */ tcp_output(pcb); - 8016bea: 6878 ldr r0, [r7, #4] - 8016bec: f7ff fc7a bl 80164e4 -} - 8016bf0: bf00 nop - 8016bf2: 3708 adds r7, #8 - 8016bf4: 46bd mov sp, r7 - 8016bf6: bd80 pop {r7, pc} - 8016bf8: 0801f0c0 .word 0x0801f0c0 - 8016bfc: 0801f720 .word 0x0801f720 - 8016c00: 0801f114 .word 0x0801f114 - -08016c04 : + 8016bfa: 6878 ldr r0, [r7, #4] + 8016bfc: f7ff fc7a bl 80164f4 +} + 8016c00: bf00 nop + 8016c02: 3708 adds r7, #8 + 8016c04: 46bd mov sp, r7 + 8016c06: bd80 pop {r7, pc} + 8016c08: 0801f0d0 .word 0x0801f0d0 + 8016c0c: 0801f730 .word 0x0801f730 + 8016c10: 0801f124 .word 0x0801f124 + +08016c14 : * * @param pcb the tcp_pcb for which to re-enqueue all unacked segments */ void tcp_rexmit_rto(struct tcp_pcb *pcb) { - 8016c04: b580 push {r7, lr} - 8016c06: b082 sub sp, #8 - 8016c08: af00 add r7, sp, #0 - 8016c0a: 6078 str r0, [r7, #4] + 8016c14: b580 push {r7, lr} + 8016c16: b082 sub sp, #8 + 8016c18: af00 add r7, sp, #0 + 8016c1a: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_rexmit_rto: invalid pcb", pcb != NULL); - 8016c0c: 687b ldr r3, [r7, #4] - 8016c0e: 2b00 cmp r3, #0 - 8016c10: d106 bne.n 8016c20 - 8016c12: 4b0a ldr r3, [pc, #40] ; (8016c3c ) - 8016c14: f240 62ad movw r2, #1709 ; 0x6ad - 8016c18: 4909 ldr r1, [pc, #36] ; (8016c40 ) - 8016c1a: 480a ldr r0, [pc, #40] ; (8016c44 ) - 8016c1c: f005 fd14 bl 801c648 + 8016c1c: 687b ldr r3, [r7, #4] + 8016c1e: 2b00 cmp r3, #0 + 8016c20: d106 bne.n 8016c30 + 8016c22: 4b0a ldr r3, [pc, #40] ; (8016c4c ) + 8016c24: f240 62ad movw r2, #1709 ; 0x6ad + 8016c28: 4909 ldr r1, [pc, #36] ; (8016c50 ) + 8016c2a: 480a ldr r0, [pc, #40] ; (8016c54 ) + 8016c2c: f005 fd14 bl 801c658 if (tcp_rexmit_rto_prepare(pcb) == ERR_OK) { - 8016c20: 6878 ldr r0, [r7, #4] - 8016c22: f7ff ff57 bl 8016ad4 - 8016c26: 4603 mov r3, r0 - 8016c28: 2b00 cmp r3, #0 - 8016c2a: d102 bne.n 8016c32 + 8016c30: 6878 ldr r0, [r7, #4] + 8016c32: f7ff ff57 bl 8016ae4 + 8016c36: 4603 mov r3, r0 + 8016c38: 2b00 cmp r3, #0 + 8016c3a: d102 bne.n 8016c42 tcp_rexmit_rto_commit(pcb); - 8016c2c: 6878 ldr r0, [r7, #4] - 8016c2e: f7ff ffc1 bl 8016bb4 + 8016c3c: 6878 ldr r0, [r7, #4] + 8016c3e: f7ff ffc1 bl 8016bc4 } } - 8016c32: bf00 nop - 8016c34: 3708 adds r7, #8 - 8016c36: 46bd mov sp, r7 - 8016c38: bd80 pop {r7, pc} - 8016c3a: bf00 nop - 8016c3c: 0801f0c0 .word 0x0801f0c0 - 8016c40: 0801f744 .word 0x0801f744 - 8016c44: 0801f114 .word 0x0801f114 + 8016c42: bf00 nop + 8016c44: 3708 adds r7, #8 + 8016c46: 46bd mov sp, r7 + 8016c48: bd80 pop {r7, pc} + 8016c4a: bf00 nop + 8016c4c: 0801f0d0 .word 0x0801f0d0 + 8016c50: 0801f754 .word 0x0801f754 + 8016c54: 0801f124 .word 0x0801f124 -08016c48 : +08016c58 : * * @param pcb the tcp_pcb for which to retransmit the first unacked segment */ err_t tcp_rexmit(struct tcp_pcb *pcb) { - 8016c48: b590 push {r4, r7, lr} - 8016c4a: b085 sub sp, #20 - 8016c4c: af00 add r7, sp, #0 - 8016c4e: 6078 str r0, [r7, #4] + 8016c58: b590 push {r4, r7, lr} + 8016c5a: b085 sub sp, #20 + 8016c5c: af00 add r7, sp, #0 + 8016c5e: 6078 str r0, [r7, #4] struct tcp_seg *seg; struct tcp_seg **cur_seg; LWIP_ASSERT("tcp_rexmit: invalid pcb", pcb != NULL); - 8016c50: 687b ldr r3, [r7, #4] - 8016c52: 2b00 cmp r3, #0 - 8016c54: d106 bne.n 8016c64 - 8016c56: 4b2f ldr r3, [pc, #188] ; (8016d14 ) - 8016c58: f240 62c1 movw r2, #1729 ; 0x6c1 - 8016c5c: 492e ldr r1, [pc, #184] ; (8016d18 ) - 8016c5e: 482f ldr r0, [pc, #188] ; (8016d1c ) - 8016c60: f005 fcf2 bl 801c648 + 8016c60: 687b ldr r3, [r7, #4] + 8016c62: 2b00 cmp r3, #0 + 8016c64: d106 bne.n 8016c74 + 8016c66: 4b2f ldr r3, [pc, #188] ; (8016d24 ) + 8016c68: f240 62c1 movw r2, #1729 ; 0x6c1 + 8016c6c: 492e ldr r1, [pc, #184] ; (8016d28 ) + 8016c6e: 482f ldr r0, [pc, #188] ; (8016d2c ) + 8016c70: f005 fcf2 bl 801c658 if (pcb->unacked == NULL) { - 8016c64: 687b ldr r3, [r7, #4] - 8016c66: 6f1b ldr r3, [r3, #112] ; 0x70 - 8016c68: 2b00 cmp r3, #0 - 8016c6a: d102 bne.n 8016c72 + 8016c74: 687b ldr r3, [r7, #4] + 8016c76: 6f1b ldr r3, [r3, #112] ; 0x70 + 8016c78: 2b00 cmp r3, #0 + 8016c7a: d102 bne.n 8016c82 return ERR_VAL; - 8016c6c: f06f 0305 mvn.w r3, #5 - 8016c70: e04c b.n 8016d0c + 8016c7c: f06f 0305 mvn.w r3, #5 + 8016c80: e04c b.n 8016d1c } seg = pcb->unacked; - 8016c72: 687b ldr r3, [r7, #4] - 8016c74: 6f1b ldr r3, [r3, #112] ; 0x70 - 8016c76: 60bb str r3, [r7, #8] + 8016c82: 687b ldr r3, [r7, #4] + 8016c84: 6f1b ldr r3, [r3, #112] ; 0x70 + 8016c86: 60bb str r3, [r7, #8] /* Give up if the segment is still referenced by the netif driver due to deferred transmission. */ if (tcp_output_segment_busy(seg)) { - 8016c78: 68b8 ldr r0, [r7, #8] - 8016c7a: f7ff fe2b bl 80168d4 - 8016c7e: 4603 mov r3, r0 - 8016c80: 2b00 cmp r3, #0 - 8016c82: d002 beq.n 8016c8a + 8016c88: 68b8 ldr r0, [r7, #8] + 8016c8a: f7ff fe2b bl 80168e4 + 8016c8e: 4603 mov r3, r0 + 8016c90: 2b00 cmp r3, #0 + 8016c92: d002 beq.n 8016c9a LWIP_DEBUGF(TCP_RTO_DEBUG, ("tcp_rexmit busy\n")); return ERR_VAL; - 8016c84: f06f 0305 mvn.w r3, #5 - 8016c88: e040 b.n 8016d0c + 8016c94: f06f 0305 mvn.w r3, #5 + 8016c98: e040 b.n 8016d1c } /* Move the first unacked segment to the unsent queue */ /* Keep the unsent queue sorted. */ pcb->unacked = seg->next; - 8016c8a: 68bb ldr r3, [r7, #8] - 8016c8c: 681a ldr r2, [r3, #0] - 8016c8e: 687b ldr r3, [r7, #4] - 8016c90: 671a str r2, [r3, #112] ; 0x70 + 8016c9a: 68bb ldr r3, [r7, #8] + 8016c9c: 681a ldr r2, [r3, #0] + 8016c9e: 687b ldr r3, [r7, #4] + 8016ca0: 671a str r2, [r3, #112] ; 0x70 cur_seg = &(pcb->unsent); - 8016c92: 687b ldr r3, [r7, #4] - 8016c94: 336c adds r3, #108 ; 0x6c - 8016c96: 60fb str r3, [r7, #12] + 8016ca2: 687b ldr r3, [r7, #4] + 8016ca4: 336c adds r3, #108 ; 0x6c + 8016ca6: 60fb str r3, [r7, #12] while (*cur_seg && - 8016c98: e002 b.n 8016ca0 + 8016ca8: e002 b.n 8016cb0 TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { cur_seg = &((*cur_seg)->next ); - 8016c9a: 68fb ldr r3, [r7, #12] - 8016c9c: 681b ldr r3, [r3, #0] - 8016c9e: 60fb str r3, [r7, #12] + 8016caa: 68fb ldr r3, [r7, #12] + 8016cac: 681b ldr r3, [r3, #0] + 8016cae: 60fb str r3, [r7, #12] while (*cur_seg && - 8016ca0: 68fb ldr r3, [r7, #12] - 8016ca2: 681b ldr r3, [r3, #0] - 8016ca4: 2b00 cmp r3, #0 - 8016ca6: d011 beq.n 8016ccc + 8016cb0: 68fb ldr r3, [r7, #12] + 8016cb2: 681b ldr r3, [r3, #0] + 8016cb4: 2b00 cmp r3, #0 + 8016cb6: d011 beq.n 8016cdc TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { - 8016ca8: 68fb ldr r3, [r7, #12] - 8016caa: 681b ldr r3, [r3, #0] - 8016cac: 68db ldr r3, [r3, #12] - 8016cae: 685b ldr r3, [r3, #4] - 8016cb0: 4618 mov r0, r3 - 8016cb2: f7f9 fbfa bl 80104aa - 8016cb6: 4604 mov r4, r0 - 8016cb8: 68bb ldr r3, [r7, #8] - 8016cba: 68db ldr r3, [r3, #12] - 8016cbc: 685b ldr r3, [r3, #4] - 8016cbe: 4618 mov r0, r3 - 8016cc0: f7f9 fbf3 bl 80104aa - 8016cc4: 4603 mov r3, r0 - 8016cc6: 1ae3 subs r3, r4, r3 + 8016cb8: 68fb ldr r3, [r7, #12] + 8016cba: 681b ldr r3, [r3, #0] + 8016cbc: 68db ldr r3, [r3, #12] + 8016cbe: 685b ldr r3, [r3, #4] + 8016cc0: 4618 mov r0, r3 + 8016cc2: f7f9 fbfa bl 80104ba + 8016cc6: 4604 mov r4, r0 + 8016cc8: 68bb ldr r3, [r7, #8] + 8016cca: 68db ldr r3, [r3, #12] + 8016ccc: 685b ldr r3, [r3, #4] + 8016cce: 4618 mov r0, r3 + 8016cd0: f7f9 fbf3 bl 80104ba + 8016cd4: 4603 mov r3, r0 + 8016cd6: 1ae3 subs r3, r4, r3 while (*cur_seg && - 8016cc8: 2b00 cmp r3, #0 - 8016cca: dbe6 blt.n 8016c9a + 8016cd8: 2b00 cmp r3, #0 + 8016cda: dbe6 blt.n 8016caa } seg->next = *cur_seg; - 8016ccc: 68fb ldr r3, [r7, #12] - 8016cce: 681a ldr r2, [r3, #0] - 8016cd0: 68bb ldr r3, [r7, #8] - 8016cd2: 601a str r2, [r3, #0] + 8016cdc: 68fb ldr r3, [r7, #12] + 8016cde: 681a ldr r2, [r3, #0] + 8016ce0: 68bb ldr r3, [r7, #8] + 8016ce2: 601a str r2, [r3, #0] *cur_seg = seg; - 8016cd4: 68fb ldr r3, [r7, #12] - 8016cd6: 68ba ldr r2, [r7, #8] - 8016cd8: 601a str r2, [r3, #0] + 8016ce4: 68fb ldr r3, [r7, #12] + 8016ce6: 68ba ldr r2, [r7, #8] + 8016ce8: 601a str r2, [r3, #0] #if TCP_OVERSIZE if (seg->next == NULL) { - 8016cda: 68bb ldr r3, [r7, #8] - 8016cdc: 681b ldr r3, [r3, #0] - 8016cde: 2b00 cmp r3, #0 - 8016ce0: d103 bne.n 8016cea + 8016cea: 68bb ldr r3, [r7, #8] + 8016cec: 681b ldr r3, [r3, #0] + 8016cee: 2b00 cmp r3, #0 + 8016cf0: d103 bne.n 8016cfa /* the retransmitted segment is last in unsent, so reset unsent_oversize */ pcb->unsent_oversize = 0; - 8016ce2: 687b ldr r3, [r7, #4] - 8016ce4: 2200 movs r2, #0 - 8016ce6: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 + 8016cf2: 687b ldr r3, [r7, #4] + 8016cf4: 2200 movs r2, #0 + 8016cf6: f8a3 2068 strh.w r2, [r3, #104] ; 0x68 } #endif /* TCP_OVERSIZE */ if (pcb->nrtx < 0xFF) { - 8016cea: 687b ldr r3, [r7, #4] - 8016cec: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8016cf0: 2bff cmp r3, #255 ; 0xff - 8016cf2: d007 beq.n 8016d04 + 8016cfa: 687b ldr r3, [r7, #4] + 8016cfc: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 8016d00: 2bff cmp r3, #255 ; 0xff + 8016d02: d007 beq.n 8016d14 ++pcb->nrtx; - 8016cf4: 687b ldr r3, [r7, #4] - 8016cf6: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 - 8016cfa: 3301 adds r3, #1 - 8016cfc: b2da uxtb r2, r3 - 8016cfe: 687b ldr r3, [r7, #4] - 8016d00: f883 2042 strb.w r2, [r3, #66] ; 0x42 + 8016d04: 687b ldr r3, [r7, #4] + 8016d06: f893 3042 ldrb.w r3, [r3, #66] ; 0x42 + 8016d0a: 3301 adds r3, #1 + 8016d0c: b2da uxtb r2, r3 + 8016d0e: 687b ldr r3, [r7, #4] + 8016d10: f883 2042 strb.w r2, [r3, #66] ; 0x42 } /* Don't take any rtt measurements after retransmitting. */ pcb->rttest = 0; - 8016d04: 687b ldr r3, [r7, #4] - 8016d06: 2200 movs r2, #0 - 8016d08: 635a str r2, [r3, #52] ; 0x34 + 8016d14: 687b ldr r3, [r7, #4] + 8016d16: 2200 movs r2, #0 + 8016d18: 635a str r2, [r3, #52] ; 0x34 /* Do the actual retransmission. */ MIB2_STATS_INC(mib2.tcpretranssegs); /* No need to call tcp_output: we are always called from tcp_input() and thus tcp_output directly returns. */ return ERR_OK; - 8016d0a: 2300 movs r3, #0 + 8016d1a: 2300 movs r3, #0 } - 8016d0c: 4618 mov r0, r3 - 8016d0e: 3714 adds r7, #20 - 8016d10: 46bd mov sp, r7 - 8016d12: bd90 pop {r4, r7, pc} - 8016d14: 0801f0c0 .word 0x0801f0c0 - 8016d18: 0801f760 .word 0x0801f760 - 8016d1c: 0801f114 .word 0x0801f114 + 8016d1c: 4618 mov r0, r3 + 8016d1e: 3714 adds r7, #20 + 8016d20: 46bd mov sp, r7 + 8016d22: bd90 pop {r4, r7, pc} + 8016d24: 0801f0d0 .word 0x0801f0d0 + 8016d28: 0801f770 .word 0x0801f770 + 8016d2c: 0801f124 .word 0x0801f124 -08016d20 : +08016d30 : * * @param pcb the tcp_pcb for which to retransmit the first unacked segment */ void tcp_rexmit_fast(struct tcp_pcb *pcb) { - 8016d20: b580 push {r7, lr} - 8016d22: b082 sub sp, #8 - 8016d24: af00 add r7, sp, #0 - 8016d26: 6078 str r0, [r7, #4] + 8016d30: b580 push {r7, lr} + 8016d32: b082 sub sp, #8 + 8016d34: af00 add r7, sp, #0 + 8016d36: 6078 str r0, [r7, #4] LWIP_ASSERT("tcp_rexmit_fast: invalid pcb", pcb != NULL); - 8016d28: 687b ldr r3, [r7, #4] - 8016d2a: 2b00 cmp r3, #0 - 8016d2c: d106 bne.n 8016d3c - 8016d2e: 4b2f ldr r3, [pc, #188] ; (8016dec ) - 8016d30: f240 62f9 movw r2, #1785 ; 0x6f9 - 8016d34: 492e ldr r1, [pc, #184] ; (8016df0 ) - 8016d36: 482f ldr r0, [pc, #188] ; (8016df4 ) - 8016d38: f005 fc86 bl 801c648 + 8016d38: 687b ldr r3, [r7, #4] + 8016d3a: 2b00 cmp r3, #0 + 8016d3c: d106 bne.n 8016d4c + 8016d3e: 4b2f ldr r3, [pc, #188] ; (8016dfc ) + 8016d40: f240 62f9 movw r2, #1785 ; 0x6f9 + 8016d44: 492e ldr r1, [pc, #184] ; (8016e00 ) + 8016d46: 482f ldr r0, [pc, #188] ; (8016e04 ) + 8016d48: f005 fc86 bl 801c658 if (pcb->unacked != NULL && !(pcb->flags & TF_INFR)) { - 8016d3c: 687b ldr r3, [r7, #4] - 8016d3e: 6f1b ldr r3, [r3, #112] ; 0x70 - 8016d40: 2b00 cmp r3, #0 - 8016d42: d04f beq.n 8016de4 - 8016d44: 687b ldr r3, [r7, #4] - 8016d46: 8b5b ldrh r3, [r3, #26] - 8016d48: f003 0304 and.w r3, r3, #4 - 8016d4c: 2b00 cmp r3, #0 - 8016d4e: d149 bne.n 8016de4 + 8016d4c: 687b ldr r3, [r7, #4] + 8016d4e: 6f1b ldr r3, [r3, #112] ; 0x70 + 8016d50: 2b00 cmp r3, #0 + 8016d52: d04f beq.n 8016df4 + 8016d54: 687b ldr r3, [r7, #4] + 8016d56: 8b5b ldrh r3, [r3, #26] + 8016d58: f003 0304 and.w r3, r3, #4 + 8016d5c: 2b00 cmp r3, #0 + 8016d5e: d149 bne.n 8016df4 LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupacks %"U16_F" (%"U32_F "), fast retransmit %"U32_F"\n", (u16_t)pcb->dupacks, pcb->lastack, lwip_ntohl(pcb->unacked->tcphdr->seqno))); if (tcp_rexmit(pcb) == ERR_OK) { - 8016d50: 6878 ldr r0, [r7, #4] - 8016d52: f7ff ff79 bl 8016c48 - 8016d56: 4603 mov r3, r0 - 8016d58: 2b00 cmp r3, #0 - 8016d5a: d143 bne.n 8016de4 + 8016d60: 6878 ldr r0, [r7, #4] + 8016d62: f7ff ff79 bl 8016c58 + 8016d66: 4603 mov r3, r0 + 8016d68: 2b00 cmp r3, #0 + 8016d6a: d143 bne.n 8016df4 /* Set ssthresh to half of the minimum of the current * cwnd and the advertised window */ pcb->ssthresh = LWIP_MIN(pcb->cwnd, pcb->snd_wnd) / 2; - 8016d5c: 687b ldr r3, [r7, #4] - 8016d5e: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 - 8016d62: 687b ldr r3, [r7, #4] - 8016d64: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8016d68: 429a cmp r2, r3 - 8016d6a: d208 bcs.n 8016d7e 8016d6c: 687b ldr r3, [r7, #4] - 8016d6e: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 - 8016d72: 2b00 cmp r3, #0 - 8016d74: da00 bge.n 8016d78 - 8016d76: 3301 adds r3, #1 - 8016d78: 105b asrs r3, r3, #1 - 8016d7a: b29b uxth r3, r3 - 8016d7c: e007 b.n 8016d8e - 8016d7e: 687b ldr r3, [r7, #4] - 8016d80: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 - 8016d84: 2b00 cmp r3, #0 - 8016d86: da00 bge.n 8016d8a - 8016d88: 3301 adds r3, #1 - 8016d8a: 105b asrs r3, r3, #1 - 8016d8c: b29b uxth r3, r3 - 8016d8e: 687a ldr r2, [r7, #4] - 8016d90: f8a2 304a strh.w r3, [r2, #74] ; 0x4a + 8016d6e: f8b3 2048 ldrh.w r2, [r3, #72] ; 0x48 + 8016d72: 687b ldr r3, [r7, #4] + 8016d74: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8016d78: 429a cmp r2, r3 + 8016d7a: d208 bcs.n 8016d8e + 8016d7c: 687b ldr r3, [r7, #4] + 8016d7e: f8b3 3048 ldrh.w r3, [r3, #72] ; 0x48 + 8016d82: 2b00 cmp r3, #0 + 8016d84: da00 bge.n 8016d88 + 8016d86: 3301 adds r3, #1 + 8016d88: 105b asrs r3, r3, #1 + 8016d8a: b29b uxth r3, r3 + 8016d8c: e007 b.n 8016d9e + 8016d8e: 687b ldr r3, [r7, #4] + 8016d90: f8b3 3060 ldrh.w r3, [r3, #96] ; 0x60 + 8016d94: 2b00 cmp r3, #0 + 8016d96: da00 bge.n 8016d9a + 8016d98: 3301 adds r3, #1 + 8016d9a: 105b asrs r3, r3, #1 + 8016d9c: b29b uxth r3, r3 + 8016d9e: 687a ldr r2, [r7, #4] + 8016da0: f8a2 304a strh.w r3, [r2, #74] ; 0x4a /* The minimum value for ssthresh should be 2 MSS */ if (pcb->ssthresh < (2U * pcb->mss)) { - 8016d94: 687b ldr r3, [r7, #4] - 8016d96: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a - 8016d9a: 461a mov r2, r3 - 8016d9c: 687b ldr r3, [r7, #4] - 8016d9e: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8016da0: 005b lsls r3, r3, #1 - 8016da2: 429a cmp r2, r3 - 8016da4: d206 bcs.n 8016db4 + 8016da4: 687b ldr r3, [r7, #4] + 8016da6: f8b3 304a ldrh.w r3, [r3, #74] ; 0x4a + 8016daa: 461a mov r2, r3 + 8016dac: 687b ldr r3, [r7, #4] + 8016dae: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8016db0: 005b lsls r3, r3, #1 + 8016db2: 429a cmp r2, r3 + 8016db4: d206 bcs.n 8016dc4 LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: The minimum value for ssthresh %"TCPWNDSIZE_F " should be min 2 mss %"U16_F"...\n", pcb->ssthresh, (u16_t)(2 * pcb->mss))); pcb->ssthresh = 2 * pcb->mss; - 8016da6: 687b ldr r3, [r7, #4] - 8016da8: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8016daa: 005b lsls r3, r3, #1 - 8016dac: b29a uxth r2, r3 - 8016dae: 687b ldr r3, [r7, #4] - 8016db0: f8a3 204a strh.w r2, [r3, #74] ; 0x4a + 8016db6: 687b ldr r3, [r7, #4] + 8016db8: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8016dba: 005b lsls r3, r3, #1 + 8016dbc: b29a uxth r2, r3 + 8016dbe: 687b ldr r3, [r7, #4] + 8016dc0: f8a3 204a strh.w r2, [r3, #74] ; 0x4a } pcb->cwnd = pcb->ssthresh + 3 * pcb->mss; - 8016db4: 687b ldr r3, [r7, #4] - 8016db6: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a - 8016dba: 687b ldr r3, [r7, #4] - 8016dbc: 8e5b ldrh r3, [r3, #50] ; 0x32 - 8016dbe: 4619 mov r1, r3 - 8016dc0: 0049 lsls r1, r1, #1 - 8016dc2: 440b add r3, r1 - 8016dc4: b29b uxth r3, r3 - 8016dc6: 4413 add r3, r2 - 8016dc8: b29a uxth r2, r3 + 8016dc4: 687b ldr r3, [r7, #4] + 8016dc6: f8b3 204a ldrh.w r2, [r3, #74] ; 0x4a 8016dca: 687b ldr r3, [r7, #4] - 8016dcc: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 - tcp_set_flags(pcb, TF_INFR); - 8016dd0: 687b ldr r3, [r7, #4] - 8016dd2: 8b5b ldrh r3, [r3, #26] - 8016dd4: f043 0304 orr.w r3, r3, #4 + 8016dcc: 8e5b ldrh r3, [r3, #50] ; 0x32 + 8016dce: 4619 mov r1, r3 + 8016dd0: 0049 lsls r1, r1, #1 + 8016dd2: 440b add r3, r1 + 8016dd4: b29b uxth r3, r3 + 8016dd6: 4413 add r3, r2 8016dd8: b29a uxth r2, r3 8016dda: 687b ldr r3, [r7, #4] - 8016ddc: 835a strh r2, [r3, #26] + 8016ddc: f8a3 2048 strh.w r2, [r3, #72] ; 0x48 + tcp_set_flags(pcb, TF_INFR); + 8016de0: 687b ldr r3, [r7, #4] + 8016de2: 8b5b ldrh r3, [r3, #26] + 8016de4: f043 0304 orr.w r3, r3, #4 + 8016de8: b29a uxth r2, r3 + 8016dea: 687b ldr r3, [r7, #4] + 8016dec: 835a strh r2, [r3, #26] /* Reset the retransmission timer to prevent immediate rto retransmissions */ pcb->rtime = 0; - 8016dde: 687b ldr r3, [r7, #4] - 8016de0: 2200 movs r2, #0 - 8016de2: 861a strh r2, [r3, #48] ; 0x30 + 8016dee: 687b ldr r3, [r7, #4] + 8016df0: 2200 movs r2, #0 + 8016df2: 861a strh r2, [r3, #48] ; 0x30 } } } - 8016de4: bf00 nop - 8016de6: 3708 adds r7, #8 - 8016de8: 46bd mov sp, r7 - 8016dea: bd80 pop {r7, pc} - 8016dec: 0801f0c0 .word 0x0801f0c0 - 8016df0: 0801f778 .word 0x0801f778 - 8016df4: 0801f114 .word 0x0801f114 + 8016df4: bf00 nop + 8016df6: 3708 adds r7, #8 + 8016df8: 46bd mov sp, r7 + 8016dfa: bd80 pop {r7, pc} + 8016dfc: 0801f0d0 .word 0x0801f0d0 + 8016e00: 0801f788 .word 0x0801f788 + 8016e04: 0801f124 .word 0x0801f124 -08016df8 : +08016e08 : static struct pbuf * tcp_output_alloc_header_common(u32_t ackno, u16_t optlen, u16_t datalen, u32_t seqno_be /* already in network byte order */, u16_t src_port, u16_t dst_port, u8_t flags, u16_t wnd) { - 8016df8: b580 push {r7, lr} - 8016dfa: b086 sub sp, #24 - 8016dfc: af00 add r7, sp, #0 - 8016dfe: 60f8 str r0, [r7, #12] - 8016e00: 607b str r3, [r7, #4] - 8016e02: 460b mov r3, r1 - 8016e04: 817b strh r3, [r7, #10] - 8016e06: 4613 mov r3, r2 - 8016e08: 813b strh r3, [r7, #8] + 8016e08: b580 push {r7, lr} + 8016e0a: b086 sub sp, #24 + 8016e0c: af00 add r7, sp, #0 + 8016e0e: 60f8 str r0, [r7, #12] + 8016e10: 607b str r3, [r7, #4] + 8016e12: 460b mov r3, r1 + 8016e14: 817b strh r3, [r7, #10] + 8016e16: 4613 mov r3, r2 + 8016e18: 813b strh r3, [r7, #8] struct tcp_hdr *tcphdr; struct pbuf *p; p = pbuf_alloc(PBUF_IP, TCP_HLEN + optlen + datalen, PBUF_RAM); - 8016e0a: 897a ldrh r2, [r7, #10] - 8016e0c: 893b ldrh r3, [r7, #8] - 8016e0e: 4413 add r3, r2 - 8016e10: b29b uxth r3, r3 - 8016e12: 3314 adds r3, #20 - 8016e14: b29b uxth r3, r3 - 8016e16: f44f 7220 mov.w r2, #640 ; 0x280 - 8016e1a: 4619 mov r1, r3 - 8016e1c: 2022 movs r0, #34 ; 0x22 - 8016e1e: f7fa fc03 bl 8011628 - 8016e22: 6178 str r0, [r7, #20] + 8016e1a: 897a ldrh r2, [r7, #10] + 8016e1c: 893b ldrh r3, [r7, #8] + 8016e1e: 4413 add r3, r2 + 8016e20: b29b uxth r3, r3 + 8016e22: 3314 adds r3, #20 + 8016e24: b29b uxth r3, r3 + 8016e26: f44f 7220 mov.w r2, #640 ; 0x280 + 8016e2a: 4619 mov r1, r3 + 8016e2c: 2022 movs r0, #34 ; 0x22 + 8016e2e: f7fa fc03 bl 8011638 + 8016e32: 6178 str r0, [r7, #20] if (p != NULL) { - 8016e24: 697b ldr r3, [r7, #20] - 8016e26: 2b00 cmp r3, #0 - 8016e28: d04e beq.n 8016ec8 + 8016e34: 697b ldr r3, [r7, #20] + 8016e36: 2b00 cmp r3, #0 + 8016e38: d04e beq.n 8016ed8 LWIP_ASSERT("check that first pbuf can hold struct tcp_hdr", - 8016e2a: 697b ldr r3, [r7, #20] - 8016e2c: 895b ldrh r3, [r3, #10] - 8016e2e: 461a mov r2, r3 - 8016e30: 897b ldrh r3, [r7, #10] - 8016e32: 3314 adds r3, #20 - 8016e34: 429a cmp r2, r3 - 8016e36: da06 bge.n 8016e46 - 8016e38: 4b26 ldr r3, [pc, #152] ; (8016ed4 ) - 8016e3a: f240 7224 movw r2, #1828 ; 0x724 - 8016e3e: 4926 ldr r1, [pc, #152] ; (8016ed8 ) - 8016e40: 4826 ldr r0, [pc, #152] ; (8016edc ) - 8016e42: f005 fc01 bl 801c648 + 8016e3a: 697b ldr r3, [r7, #20] + 8016e3c: 895b ldrh r3, [r3, #10] + 8016e3e: 461a mov r2, r3 + 8016e40: 897b ldrh r3, [r7, #10] + 8016e42: 3314 adds r3, #20 + 8016e44: 429a cmp r2, r3 + 8016e46: da06 bge.n 8016e56 + 8016e48: 4b26 ldr r3, [pc, #152] ; (8016ee4 ) + 8016e4a: f240 7224 movw r2, #1828 ; 0x724 + 8016e4e: 4926 ldr r1, [pc, #152] ; (8016ee8 ) + 8016e50: 4826 ldr r0, [pc, #152] ; (8016eec ) + 8016e52: f005 fc01 bl 801c658 (p->len >= TCP_HLEN + optlen)); tcphdr = (struct tcp_hdr *)p->payload; - 8016e46: 697b ldr r3, [r7, #20] - 8016e48: 685b ldr r3, [r3, #4] - 8016e4a: 613b str r3, [r7, #16] + 8016e56: 697b ldr r3, [r7, #20] + 8016e58: 685b ldr r3, [r3, #4] + 8016e5a: 613b str r3, [r7, #16] tcphdr->src = lwip_htons(src_port); - 8016e4c: 8c3b ldrh r3, [r7, #32] - 8016e4e: 4618 mov r0, r3 - 8016e50: f7f9 fb16 bl 8010480 - 8016e54: 4603 mov r3, r0 - 8016e56: 461a mov r2, r3 - 8016e58: 693b ldr r3, [r7, #16] - 8016e5a: 801a strh r2, [r3, #0] - tcphdr->dest = lwip_htons(dst_port); - 8016e5c: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8016e5c: 8c3b ldrh r3, [r7, #32] 8016e5e: 4618 mov r0, r3 - 8016e60: f7f9 fb0e bl 8010480 + 8016e60: f7f9 fb16 bl 8010490 8016e64: 4603 mov r3, r0 8016e66: 461a mov r2, r3 8016e68: 693b ldr r3, [r7, #16] - 8016e6a: 805a strh r2, [r3, #2] + 8016e6a: 801a strh r2, [r3, #0] + tcphdr->dest = lwip_htons(dst_port); + 8016e6c: 8cbb ldrh r3, [r7, #36] ; 0x24 + 8016e6e: 4618 mov r0, r3 + 8016e70: f7f9 fb0e bl 8010490 + 8016e74: 4603 mov r3, r0 + 8016e76: 461a mov r2, r3 + 8016e78: 693b ldr r3, [r7, #16] + 8016e7a: 805a strh r2, [r3, #2] tcphdr->seqno = seqno_be; - 8016e6c: 693b ldr r3, [r7, #16] - 8016e6e: 687a ldr r2, [r7, #4] - 8016e70: 605a str r2, [r3, #4] + 8016e7c: 693b ldr r3, [r7, #16] + 8016e7e: 687a ldr r2, [r7, #4] + 8016e80: 605a str r2, [r3, #4] tcphdr->ackno = lwip_htonl(ackno); - 8016e72: 68f8 ldr r0, [r7, #12] - 8016e74: f7f9 fb19 bl 80104aa - 8016e78: 4602 mov r2, r0 - 8016e7a: 693b ldr r3, [r7, #16] - 8016e7c: 609a str r2, [r3, #8] + 8016e82: 68f8 ldr r0, [r7, #12] + 8016e84: f7f9 fb19 bl 80104ba + 8016e88: 4602 mov r2, r0 + 8016e8a: 693b ldr r3, [r7, #16] + 8016e8c: 609a str r2, [r3, #8] TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), flags); - 8016e7e: 897b ldrh r3, [r7, #10] - 8016e80: 089b lsrs r3, r3, #2 - 8016e82: b29b uxth r3, r3 - 8016e84: 3305 adds r3, #5 - 8016e86: b29b uxth r3, r3 - 8016e88: 031b lsls r3, r3, #12 - 8016e8a: b29a uxth r2, r3 - 8016e8c: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 - 8016e90: b29b uxth r3, r3 - 8016e92: 4313 orrs r3, r2 - 8016e94: b29b uxth r3, r3 - 8016e96: 4618 mov r0, r3 - 8016e98: f7f9 faf2 bl 8010480 - 8016e9c: 4603 mov r3, r0 - 8016e9e: 461a mov r2, r3 - 8016ea0: 693b ldr r3, [r7, #16] - 8016ea2: 819a strh r2, [r3, #12] - tcphdr->wnd = lwip_htons(wnd); - 8016ea4: 8dbb ldrh r3, [r7, #44] ; 0x2c + 8016e8e: 897b ldrh r3, [r7, #10] + 8016e90: 089b lsrs r3, r3, #2 + 8016e92: b29b uxth r3, r3 + 8016e94: 3305 adds r3, #5 + 8016e96: b29b uxth r3, r3 + 8016e98: 031b lsls r3, r3, #12 + 8016e9a: b29a uxth r2, r3 + 8016e9c: f897 3028 ldrb.w r3, [r7, #40] ; 0x28 + 8016ea0: b29b uxth r3, r3 + 8016ea2: 4313 orrs r3, r2 + 8016ea4: b29b uxth r3, r3 8016ea6: 4618 mov r0, r3 - 8016ea8: f7f9 faea bl 8010480 + 8016ea8: f7f9 faf2 bl 8010490 8016eac: 4603 mov r3, r0 8016eae: 461a mov r2, r3 8016eb0: 693b ldr r3, [r7, #16] - 8016eb2: 81da strh r2, [r3, #14] + 8016eb2: 819a strh r2, [r3, #12] + tcphdr->wnd = lwip_htons(wnd); + 8016eb4: 8dbb ldrh r3, [r7, #44] ; 0x2c + 8016eb6: 4618 mov r0, r3 + 8016eb8: f7f9 faea bl 8010490 + 8016ebc: 4603 mov r3, r0 + 8016ebe: 461a mov r2, r3 + 8016ec0: 693b ldr r3, [r7, #16] + 8016ec2: 81da strh r2, [r3, #14] tcphdr->chksum = 0; - 8016eb4: 693b ldr r3, [r7, #16] - 8016eb6: 2200 movs r2, #0 - 8016eb8: 741a strb r2, [r3, #16] - 8016eba: 2200 movs r2, #0 - 8016ebc: 745a strb r2, [r3, #17] + 8016ec4: 693b ldr r3, [r7, #16] + 8016ec6: 2200 movs r2, #0 + 8016ec8: 741a strb r2, [r3, #16] + 8016eca: 2200 movs r2, #0 + 8016ecc: 745a strb r2, [r3, #17] tcphdr->urgp = 0; - 8016ebe: 693b ldr r3, [r7, #16] - 8016ec0: 2200 movs r2, #0 - 8016ec2: 749a strb r2, [r3, #18] - 8016ec4: 2200 movs r2, #0 - 8016ec6: 74da strb r2, [r3, #19] + 8016ece: 693b ldr r3, [r7, #16] + 8016ed0: 2200 movs r2, #0 + 8016ed2: 749a strb r2, [r3, #18] + 8016ed4: 2200 movs r2, #0 + 8016ed6: 74da strb r2, [r3, #19] } return p; - 8016ec8: 697b ldr r3, [r7, #20] -} - 8016eca: 4618 mov r0, r3 - 8016ecc: 3718 adds r7, #24 - 8016ece: 46bd mov sp, r7 - 8016ed0: bd80 pop {r7, pc} - 8016ed2: bf00 nop - 8016ed4: 0801f0c0 .word 0x0801f0c0 - 8016ed8: 0801f798 .word 0x0801f798 - 8016edc: 0801f114 .word 0x0801f114 - -08016ee0 : + 8016ed8: 697b ldr r3, [r7, #20] +} + 8016eda: 4618 mov r0, r3 + 8016edc: 3718 adds r7, #24 + 8016ede: 46bd mov sp, r7 + 8016ee0: bd80 pop {r7, pc} + 8016ee2: bf00 nop + 8016ee4: 0801f0d0 .word 0x0801f0d0 + 8016ee8: 0801f7a8 .word 0x0801f7a8 + 8016eec: 0801f124 .word 0x0801f124 + +08016ef0 : * @return pbuf with p->payload being the tcp_hdr */ static struct pbuf * tcp_output_alloc_header(struct tcp_pcb *pcb, u16_t optlen, u16_t datalen, u32_t seqno_be /* already in network byte order */) { - 8016ee0: b5b0 push {r4, r5, r7, lr} - 8016ee2: b08a sub sp, #40 ; 0x28 - 8016ee4: af04 add r7, sp, #16 - 8016ee6: 60f8 str r0, [r7, #12] - 8016ee8: 607b str r3, [r7, #4] - 8016eea: 460b mov r3, r1 - 8016eec: 817b strh r3, [r7, #10] - 8016eee: 4613 mov r3, r2 - 8016ef0: 813b strh r3, [r7, #8] + 8016ef0: b5b0 push {r4, r5, r7, lr} + 8016ef2: b08a sub sp, #40 ; 0x28 + 8016ef4: af04 add r7, sp, #16 + 8016ef6: 60f8 str r0, [r7, #12] + 8016ef8: 607b str r3, [r7, #4] + 8016efa: 460b mov r3, r1 + 8016efc: 817b strh r3, [r7, #10] + 8016efe: 4613 mov r3, r2 + 8016f00: 813b strh r3, [r7, #8] struct pbuf *p; LWIP_ASSERT("tcp_output_alloc_header: invalid pcb", pcb != NULL); - 8016ef2: 68fb ldr r3, [r7, #12] - 8016ef4: 2b00 cmp r3, #0 - 8016ef6: d106 bne.n 8016f06 - 8016ef8: 4b15 ldr r3, [pc, #84] ; (8016f50 ) - 8016efa: f240 7242 movw r2, #1858 ; 0x742 - 8016efe: 4915 ldr r1, [pc, #84] ; (8016f54 ) - 8016f00: 4815 ldr r0, [pc, #84] ; (8016f58 ) - 8016f02: f005 fba1 bl 801c648 + 8016f02: 68fb ldr r3, [r7, #12] + 8016f04: 2b00 cmp r3, #0 + 8016f06: d106 bne.n 8016f16 + 8016f08: 4b15 ldr r3, [pc, #84] ; (8016f60 ) + 8016f0a: f240 7242 movw r2, #1858 ; 0x742 + 8016f0e: 4915 ldr r1, [pc, #84] ; (8016f64 ) + 8016f10: 4815 ldr r0, [pc, #84] ; (8016f68 ) + 8016f12: f005 fba1 bl 801c658 p = tcp_output_alloc_header_common(pcb->rcv_nxt, optlen, datalen, - 8016f06: 68fb ldr r3, [r7, #12] - 8016f08: 6a58 ldr r0, [r3, #36] ; 0x24 - 8016f0a: 68fb ldr r3, [r7, #12] - 8016f0c: 8adb ldrh r3, [r3, #22] - 8016f0e: 68fa ldr r2, [r7, #12] - 8016f10: 8b12 ldrh r2, [r2, #24] - 8016f12: 68f9 ldr r1, [r7, #12] - 8016f14: 8d49 ldrh r1, [r1, #42] ; 0x2a - 8016f16: 893d ldrh r5, [r7, #8] - 8016f18: 897c ldrh r4, [r7, #10] - 8016f1a: 9103 str r1, [sp, #12] - 8016f1c: 2110 movs r1, #16 - 8016f1e: 9102 str r1, [sp, #8] - 8016f20: 9201 str r2, [sp, #4] - 8016f22: 9300 str r3, [sp, #0] - 8016f24: 687b ldr r3, [r7, #4] - 8016f26: 462a mov r2, r5 - 8016f28: 4621 mov r1, r4 - 8016f2a: f7ff ff65 bl 8016df8 - 8016f2e: 6178 str r0, [r7, #20] + 8016f16: 68fb ldr r3, [r7, #12] + 8016f18: 6a58 ldr r0, [r3, #36] ; 0x24 + 8016f1a: 68fb ldr r3, [r7, #12] + 8016f1c: 8adb ldrh r3, [r3, #22] + 8016f1e: 68fa ldr r2, [r7, #12] + 8016f20: 8b12 ldrh r2, [r2, #24] + 8016f22: 68f9 ldr r1, [r7, #12] + 8016f24: 8d49 ldrh r1, [r1, #42] ; 0x2a + 8016f26: 893d ldrh r5, [r7, #8] + 8016f28: 897c ldrh r4, [r7, #10] + 8016f2a: 9103 str r1, [sp, #12] + 8016f2c: 2110 movs r1, #16 + 8016f2e: 9102 str r1, [sp, #8] + 8016f30: 9201 str r2, [sp, #4] + 8016f32: 9300 str r3, [sp, #0] + 8016f34: 687b ldr r3, [r7, #4] + 8016f36: 462a mov r2, r5 + 8016f38: 4621 mov r1, r4 + 8016f3a: f7ff ff65 bl 8016e08 + 8016f3e: 6178 str r0, [r7, #20] seqno_be, pcb->local_port, pcb->remote_port, TCP_ACK, TCPWND_MIN16(RCV_WND_SCALE(pcb, pcb->rcv_ann_wnd))); if (p != NULL) { - 8016f30: 697b ldr r3, [r7, #20] - 8016f32: 2b00 cmp r3, #0 - 8016f34: d006 beq.n 8016f44 + 8016f40: 697b ldr r3, [r7, #20] + 8016f42: 2b00 cmp r3, #0 + 8016f44: d006 beq.n 8016f54 /* If we're sending a packet, update the announced right window edge */ pcb->rcv_ann_right_edge = pcb->rcv_nxt + pcb->rcv_ann_wnd; - 8016f36: 68fb ldr r3, [r7, #12] - 8016f38: 6a5b ldr r3, [r3, #36] ; 0x24 - 8016f3a: 68fa ldr r2, [r7, #12] - 8016f3c: 8d52 ldrh r2, [r2, #42] ; 0x2a - 8016f3e: 441a add r2, r3 - 8016f40: 68fb ldr r3, [r7, #12] - 8016f42: 62da str r2, [r3, #44] ; 0x2c + 8016f46: 68fb ldr r3, [r7, #12] + 8016f48: 6a5b ldr r3, [r3, #36] ; 0x24 + 8016f4a: 68fa ldr r2, [r7, #12] + 8016f4c: 8d52 ldrh r2, [r2, #42] ; 0x2a + 8016f4e: 441a add r2, r3 + 8016f50: 68fb ldr r3, [r7, #12] + 8016f52: 62da str r2, [r3, #44] ; 0x2c } return p; - 8016f44: 697b ldr r3, [r7, #20] + 8016f54: 697b ldr r3, [r7, #20] } - 8016f46: 4618 mov r0, r3 - 8016f48: 3718 adds r7, #24 - 8016f4a: 46bd mov sp, r7 - 8016f4c: bdb0 pop {r4, r5, r7, pc} - 8016f4e: bf00 nop - 8016f50: 0801f0c0 .word 0x0801f0c0 - 8016f54: 0801f7c8 .word 0x0801f7c8 - 8016f58: 0801f114 .word 0x0801f114 + 8016f56: 4618 mov r0, r3 + 8016f58: 3718 adds r7, #24 + 8016f5a: 46bd mov sp, r7 + 8016f5c: bdb0 pop {r4, r5, r7, pc} + 8016f5e: bf00 nop + 8016f60: 0801f0d0 .word 0x0801f0d0 + 8016f64: 0801f7d8 .word 0x0801f7d8 + 8016f68: 0801f124 .word 0x0801f124 -08016f5c : +08016f6c : /* Fill in options for control segments */ static void tcp_output_fill_options(const struct tcp_pcb *pcb, struct pbuf *p, u8_t optflags, u8_t num_sacks) { - 8016f5c: b580 push {r7, lr} - 8016f5e: b088 sub sp, #32 - 8016f60: af00 add r7, sp, #0 - 8016f62: 60f8 str r0, [r7, #12] - 8016f64: 60b9 str r1, [r7, #8] - 8016f66: 4611 mov r1, r2 - 8016f68: 461a mov r2, r3 - 8016f6a: 460b mov r3, r1 - 8016f6c: 71fb strb r3, [r7, #7] - 8016f6e: 4613 mov r3, r2 - 8016f70: 71bb strb r3, [r7, #6] + 8016f6c: b580 push {r7, lr} + 8016f6e: b088 sub sp, #32 + 8016f70: af00 add r7, sp, #0 + 8016f72: 60f8 str r0, [r7, #12] + 8016f74: 60b9 str r1, [r7, #8] + 8016f76: 4611 mov r1, r2 + 8016f78: 461a mov r2, r3 + 8016f7a: 460b mov r3, r1 + 8016f7c: 71fb strb r3, [r7, #7] + 8016f7e: 4613 mov r3, r2 + 8016f80: 71bb strb r3, [r7, #6] struct tcp_hdr *tcphdr; u32_t *opts; u16_t sacks_len = 0; - 8016f72: 2300 movs r3, #0 - 8016f74: 83fb strh r3, [r7, #30] + 8016f82: 2300 movs r3, #0 + 8016f84: 83fb strh r3, [r7, #30] LWIP_ASSERT("tcp_output_fill_options: invalid pbuf", p != NULL); - 8016f76: 68bb ldr r3, [r7, #8] - 8016f78: 2b00 cmp r3, #0 - 8016f7a: d106 bne.n 8016f8a - 8016f7c: 4b13 ldr r3, [pc, #76] ; (8016fcc ) - 8016f7e: f240 7256 movw r2, #1878 ; 0x756 - 8016f82: 4913 ldr r1, [pc, #76] ; (8016fd0 ) - 8016f84: 4813 ldr r0, [pc, #76] ; (8016fd4 ) - 8016f86: f005 fb5f bl 801c648 + 8016f86: 68bb ldr r3, [r7, #8] + 8016f88: 2b00 cmp r3, #0 + 8016f8a: d106 bne.n 8016f9a + 8016f8c: 4b13 ldr r3, [pc, #76] ; (8016fdc ) + 8016f8e: f240 7256 movw r2, #1878 ; 0x756 + 8016f92: 4913 ldr r1, [pc, #76] ; (8016fe0 ) + 8016f94: 4813 ldr r0, [pc, #76] ; (8016fe4 ) + 8016f96: f005 fb5f bl 801c658 tcphdr = (struct tcp_hdr *)p->payload; - 8016f8a: 68bb ldr r3, [r7, #8] - 8016f8c: 685b ldr r3, [r3, #4] - 8016f8e: 61bb str r3, [r7, #24] + 8016f9a: 68bb ldr r3, [r7, #8] + 8016f9c: 685b ldr r3, [r3, #4] + 8016f9e: 61bb str r3, [r7, #24] opts = (u32_t *)(void *)(tcphdr + 1); - 8016f90: 69bb ldr r3, [r7, #24] - 8016f92: 3314 adds r3, #20 - 8016f94: 617b str r3, [r7, #20] + 8016fa0: 69bb ldr r3, [r7, #24] + 8016fa2: 3314 adds r3, #20 + 8016fa4: 617b str r3, [r7, #20] opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, tcphdr, pcb, opts); #endif LWIP_UNUSED_ARG(pcb); LWIP_UNUSED_ARG(sacks_len); LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(tcphdr + 1)) + sacks_len * 4 + LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb)); - 8016f96: 69bb ldr r3, [r7, #24] - 8016f98: f103 0214 add.w r2, r3, #20 - 8016f9c: 8bfb ldrh r3, [r7, #30] - 8016f9e: 009b lsls r3, r3, #2 - 8016fa0: 4619 mov r1, r3 - 8016fa2: 79fb ldrb r3, [r7, #7] - 8016fa4: 009b lsls r3, r3, #2 - 8016fa6: f003 0304 and.w r3, r3, #4 - 8016faa: 440b add r3, r1 - 8016fac: 4413 add r3, r2 - 8016fae: 697a ldr r2, [r7, #20] - 8016fb0: 429a cmp r2, r3 - 8016fb2: d006 beq.n 8016fc2 - 8016fb4: 4b05 ldr r3, [pc, #20] ; (8016fcc ) - 8016fb6: f240 7275 movw r2, #1909 ; 0x775 - 8016fba: 4907 ldr r1, [pc, #28] ; (8016fd8 ) - 8016fbc: 4805 ldr r0, [pc, #20] ; (8016fd4 ) - 8016fbe: f005 fb43 bl 801c648 + 8016fa6: 69bb ldr r3, [r7, #24] + 8016fa8: f103 0214 add.w r2, r3, #20 + 8016fac: 8bfb ldrh r3, [r7, #30] + 8016fae: 009b lsls r3, r3, #2 + 8016fb0: 4619 mov r1, r3 + 8016fb2: 79fb ldrb r3, [r7, #7] + 8016fb4: 009b lsls r3, r3, #2 + 8016fb6: f003 0304 and.w r3, r3, #4 + 8016fba: 440b add r3, r1 + 8016fbc: 4413 add r3, r2 + 8016fbe: 697a ldr r2, [r7, #20] + 8016fc0: 429a cmp r2, r3 + 8016fc2: d006 beq.n 8016fd2 + 8016fc4: 4b05 ldr r3, [pc, #20] ; (8016fdc ) + 8016fc6: f240 7275 movw r2, #1909 ; 0x775 + 8016fca: 4907 ldr r1, [pc, #28] ; (8016fe8 ) + 8016fcc: 4805 ldr r0, [pc, #20] ; (8016fe4 ) + 8016fce: f005 fb43 bl 801c658 LWIP_UNUSED_ARG(optflags); /* for LWIP_NOASSERT */ LWIP_UNUSED_ARG(opts); /* for LWIP_NOASSERT */ } - 8016fc2: bf00 nop - 8016fc4: 3720 adds r7, #32 - 8016fc6: 46bd mov sp, r7 - 8016fc8: bd80 pop {r7, pc} - 8016fca: bf00 nop - 8016fcc: 0801f0c0 .word 0x0801f0c0 - 8016fd0: 0801f7f0 .word 0x0801f7f0 - 8016fd4: 0801f114 .word 0x0801f114 - 8016fd8: 0801f6e8 .word 0x0801f6e8 - -08016fdc : + 8016fd2: bf00 nop + 8016fd4: 3720 adds r7, #32 + 8016fd6: 46bd mov sp, r7 + 8016fd8: bd80 pop {r7, pc} + 8016fda: bf00 nop + 8016fdc: 0801f0d0 .word 0x0801f0d0 + 8016fe0: 0801f800 .word 0x0801f800 + 8016fe4: 0801f124 .word 0x0801f124 + 8016fe8: 0801f6f8 .word 0x0801f6f8 + +08016fec : * header checksum and calling ip_output_if while handling netif hints and stats. */ static err_t tcp_output_control_segment(const struct tcp_pcb *pcb, struct pbuf *p, const ip_addr_t *src, const ip_addr_t *dst) { - 8016fdc: b580 push {r7, lr} - 8016fde: b08a sub sp, #40 ; 0x28 - 8016fe0: af04 add r7, sp, #16 - 8016fe2: 60f8 str r0, [r7, #12] - 8016fe4: 60b9 str r1, [r7, #8] - 8016fe6: 607a str r2, [r7, #4] - 8016fe8: 603b str r3, [r7, #0] + 8016fec: b580 push {r7, lr} + 8016fee: b08a sub sp, #40 ; 0x28 + 8016ff0: af04 add r7, sp, #16 + 8016ff2: 60f8 str r0, [r7, #12] + 8016ff4: 60b9 str r1, [r7, #8] + 8016ff6: 607a str r2, [r7, #4] + 8016ff8: 603b str r3, [r7, #0] err_t err; struct netif *netif; LWIP_ASSERT("tcp_output_control_segment: invalid pbuf", p != NULL); - 8016fea: 68bb ldr r3, [r7, #8] - 8016fec: 2b00 cmp r3, #0 - 8016fee: d106 bne.n 8016ffe - 8016ff0: 4b1c ldr r3, [pc, #112] ; (8017064 ) - 8016ff2: f240 7287 movw r2, #1927 ; 0x787 - 8016ff6: 491c ldr r1, [pc, #112] ; (8017068 ) - 8016ff8: 481c ldr r0, [pc, #112] ; (801706c ) - 8016ffa: f005 fb25 bl 801c648 + 8016ffa: 68bb ldr r3, [r7, #8] + 8016ffc: 2b00 cmp r3, #0 + 8016ffe: d106 bne.n 801700e + 8017000: 4b1c ldr r3, [pc, #112] ; (8017074 ) + 8017002: f240 7287 movw r2, #1927 ; 0x787 + 8017006: 491c ldr r1, [pc, #112] ; (8017078 ) + 8017008: 481c ldr r0, [pc, #112] ; (801707c ) + 801700a: f005 fb25 bl 801c658 netif = tcp_route(pcb, src, dst); - 8016ffe: 683a ldr r2, [r7, #0] - 8017000: 6879 ldr r1, [r7, #4] - 8017002: 68f8 ldr r0, [r7, #12] - 8017004: f7fe ff2e bl 8015e64 - 8017008: 6138 str r0, [r7, #16] + 801700e: 683a ldr r2, [r7, #0] + 8017010: 6879 ldr r1, [r7, #4] + 8017012: 68f8 ldr r0, [r7, #12] + 8017014: f7fe ff2e bl 8015e74 + 8017018: 6138 str r0, [r7, #16] if (netif == NULL) { - 801700a: 693b ldr r3, [r7, #16] - 801700c: 2b00 cmp r3, #0 - 801700e: d102 bne.n 8017016 + 801701a: 693b ldr r3, [r7, #16] + 801701c: 2b00 cmp r3, #0 + 801701e: d102 bne.n 8017026 err = ERR_RTE; - 8017010: 23fc movs r3, #252 ; 0xfc - 8017012: 75fb strb r3, [r7, #23] - 8017014: e01c b.n 8017050 + 8017020: 23fc movs r3, #252 ; 0xfc + 8017022: 75fb strb r3, [r7, #23] + 8017024: e01c b.n 8017060 struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload; tcphdr->chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len, src, dst); } #endif if (pcb != NULL) { - 8017016: 68fb ldr r3, [r7, #12] - 8017018: 2b00 cmp r3, #0 - 801701a: d006 beq.n 801702a + 8017026: 68fb ldr r3, [r7, #12] + 8017028: 2b00 cmp r3, #0 + 801702a: d006 beq.n 801703a NETIF_SET_HINTS(netif, LWIP_CONST_CAST(struct netif_hint*, &(pcb->netif_hints))); ttl = pcb->ttl; - 801701c: 68fb ldr r3, [r7, #12] - 801701e: 7adb ldrb r3, [r3, #11] - 8017020: 75bb strb r3, [r7, #22] + 801702c: 68fb ldr r3, [r7, #12] + 801702e: 7adb ldrb r3, [r3, #11] + 8017030: 75bb strb r3, [r7, #22] tos = pcb->tos; - 8017022: 68fb ldr r3, [r7, #12] - 8017024: 7a9b ldrb r3, [r3, #10] - 8017026: 757b strb r3, [r7, #21] - 8017028: e003 b.n 8017032 + 8017032: 68fb ldr r3, [r7, #12] + 8017034: 7a9b ldrb r3, [r3, #10] + 8017036: 757b strb r3, [r7, #21] + 8017038: e003 b.n 8017042 } else { /* Send output with hardcoded TTL/HL since we have no access to the pcb */ ttl = TCP_TTL; - 801702a: 23ff movs r3, #255 ; 0xff - 801702c: 75bb strb r3, [r7, #22] + 801703a: 23ff movs r3, #255 ; 0xff + 801703c: 75bb strb r3, [r7, #22] tos = 0; - 801702e: 2300 movs r3, #0 - 8017030: 757b strb r3, [r7, #21] + 801703e: 2300 movs r3, #0 + 8017040: 757b strb r3, [r7, #21] } TCP_STATS_INC(tcp.xmit); err = ip_output_if(p, src, dst, ttl, tos, IP_PROTO_TCP, netif); - 8017032: 7dba ldrb r2, [r7, #22] - 8017034: 693b ldr r3, [r7, #16] - 8017036: 9302 str r3, [sp, #8] - 8017038: 2306 movs r3, #6 - 801703a: 9301 str r3, [sp, #4] - 801703c: 7d7b ldrb r3, [r7, #21] - 801703e: 9300 str r3, [sp, #0] - 8017040: 4613 mov r3, r2 - 8017042: 683a ldr r2, [r7, #0] - 8017044: 6879 ldr r1, [r7, #4] - 8017046: 68b8 ldr r0, [r7, #8] - 8017048: f004 f964 bl 801b314 - 801704c: 4603 mov r3, r0 - 801704e: 75fb strb r3, [r7, #23] + 8017042: 7dba ldrb r2, [r7, #22] + 8017044: 693b ldr r3, [r7, #16] + 8017046: 9302 str r3, [sp, #8] + 8017048: 2306 movs r3, #6 + 801704a: 9301 str r3, [sp, #4] + 801704c: 7d7b ldrb r3, [r7, #21] + 801704e: 9300 str r3, [sp, #0] + 8017050: 4613 mov r3, r2 + 8017052: 683a ldr r2, [r7, #0] + 8017054: 6879 ldr r1, [r7, #4] + 8017056: 68b8 ldr r0, [r7, #8] + 8017058: f004 f964 bl 801b324 + 801705c: 4603 mov r3, r0 + 801705e: 75fb strb r3, [r7, #23] NETIF_RESET_HINTS(netif); } pbuf_free(p); - 8017050: 68b8 ldr r0, [r7, #8] - 8017052: f7fa fdc9 bl 8011be8 + 8017060: 68b8 ldr r0, [r7, #8] + 8017062: f7fa fdc9 bl 8011bf8 return err; - 8017056: f997 3017 ldrsb.w r3, [r7, #23] -} - 801705a: 4618 mov r0, r3 - 801705c: 3718 adds r7, #24 - 801705e: 46bd mov sp, r7 - 8017060: bd80 pop {r7, pc} - 8017062: bf00 nop - 8017064: 0801f0c0 .word 0x0801f0c0 - 8017068: 0801f818 .word 0x0801f818 - 801706c: 0801f114 .word 0x0801f114 - -08017070 : + 8017066: f997 3017 ldrsb.w r3, [r7, #23] +} + 801706a: 4618 mov r0, r3 + 801706c: 3718 adds r7, #24 + 801706e: 46bd mov sp, r7 + 8017070: bd80 pop {r7, pc} + 8017072: bf00 nop + 8017074: 0801f0d0 .word 0x0801f0d0 + 8017078: 0801f828 .word 0x0801f828 + 801707c: 0801f124 .word 0x0801f124 + +08017080 : */ void tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno, const ip_addr_t *local_ip, const ip_addr_t *remote_ip, u16_t local_port, u16_t remote_port) { - 8017070: b590 push {r4, r7, lr} - 8017072: b08b sub sp, #44 ; 0x2c - 8017074: af04 add r7, sp, #16 - 8017076: 60f8 str r0, [r7, #12] - 8017078: 60b9 str r1, [r7, #8] - 801707a: 607a str r2, [r7, #4] - 801707c: 603b str r3, [r7, #0] + 8017080: b590 push {r4, r7, lr} + 8017082: b08b sub sp, #44 ; 0x2c + 8017084: af04 add r7, sp, #16 + 8017086: 60f8 str r0, [r7, #12] + 8017088: 60b9 str r1, [r7, #8] + 801708a: 607a str r2, [r7, #4] + 801708c: 603b str r3, [r7, #0] struct pbuf *p; u16_t wnd; u8_t optlen; LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL); - 801707e: 683b ldr r3, [r7, #0] - 8017080: 2b00 cmp r3, #0 - 8017082: d106 bne.n 8017092 - 8017084: 4b1f ldr r3, [pc, #124] ; (8017104 ) - 8017086: f240 72c4 movw r2, #1988 ; 0x7c4 - 801708a: 491f ldr r1, [pc, #124] ; (8017108 ) - 801708c: 481f ldr r0, [pc, #124] ; (801710c ) - 801708e: f005 fadb bl 801c648 + 801708e: 683b ldr r3, [r7, #0] + 8017090: 2b00 cmp r3, #0 + 8017092: d106 bne.n 80170a2 + 8017094: 4b1f ldr r3, [pc, #124] ; (8017114 ) + 8017096: f240 72c4 movw r2, #1988 ; 0x7c4 + 801709a: 491f ldr r1, [pc, #124] ; (8017118 ) + 801709c: 481f ldr r0, [pc, #124] ; (801711c ) + 801709e: f005 fadb bl 801c658 LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL); - 8017092: 6abb ldr r3, [r7, #40] ; 0x28 - 8017094: 2b00 cmp r3, #0 - 8017096: d106 bne.n 80170a6 - 8017098: 4b1a ldr r3, [pc, #104] ; (8017104 ) - 801709a: f240 72c5 movw r2, #1989 ; 0x7c5 - 801709e: 491c ldr r1, [pc, #112] ; (8017110 ) - 80170a0: 481a ldr r0, [pc, #104] ; (801710c ) - 80170a2: f005 fad1 bl 801c648 + 80170a2: 6abb ldr r3, [r7, #40] ; 0x28 + 80170a4: 2b00 cmp r3, #0 + 80170a6: d106 bne.n 80170b6 + 80170a8: 4b1a ldr r3, [pc, #104] ; (8017114 ) + 80170aa: f240 72c5 movw r2, #1989 ; 0x7c5 + 80170ae: 491c ldr r1, [pc, #112] ; (8017120 ) + 80170b0: 481a ldr r0, [pc, #104] ; (801711c ) + 80170b2: f005 fad1 bl 801c658 optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 80170a6: 2300 movs r3, #0 - 80170a8: 75fb strb r3, [r7, #23] + 80170b6: 2300 movs r3, #0 + 80170b8: 75fb strb r3, [r7, #23] #if LWIP_WND_SCALE wnd = PP_HTONS(((TCP_WND >> TCP_RCV_SCALE) & 0xFFFF)); #else wnd = PP_HTONS(TCP_WND); - 80170aa: f246 0308 movw r3, #24584 ; 0x6008 - 80170ae: 82bb strh r3, [r7, #20] + 80170ba: f246 0308 movw r3, #24584 ; 0x6008 + 80170be: 82bb strh r3, [r7, #20] #endif p = tcp_output_alloc_header_common(ackno, optlen, 0, lwip_htonl(seqno), local_port, - 80170b0: 7dfb ldrb r3, [r7, #23] - 80170b2: b29c uxth r4, r3 - 80170b4: 68b8 ldr r0, [r7, #8] - 80170b6: f7f9 f9f8 bl 80104aa - 80170ba: 4602 mov r2, r0 - 80170bc: 8abb ldrh r3, [r7, #20] - 80170be: 9303 str r3, [sp, #12] - 80170c0: 2314 movs r3, #20 - 80170c2: 9302 str r3, [sp, #8] - 80170c4: 8e3b ldrh r3, [r7, #48] ; 0x30 - 80170c6: 9301 str r3, [sp, #4] - 80170c8: 8dbb ldrh r3, [r7, #44] ; 0x2c - 80170ca: 9300 str r3, [sp, #0] - 80170cc: 4613 mov r3, r2 - 80170ce: 2200 movs r2, #0 - 80170d0: 4621 mov r1, r4 - 80170d2: 6878 ldr r0, [r7, #4] - 80170d4: f7ff fe90 bl 8016df8 - 80170d8: 6138 str r0, [r7, #16] + 80170c0: 7dfb ldrb r3, [r7, #23] + 80170c2: b29c uxth r4, r3 + 80170c4: 68b8 ldr r0, [r7, #8] + 80170c6: f7f9 f9f8 bl 80104ba + 80170ca: 4602 mov r2, r0 + 80170cc: 8abb ldrh r3, [r7, #20] + 80170ce: 9303 str r3, [sp, #12] + 80170d0: 2314 movs r3, #20 + 80170d2: 9302 str r3, [sp, #8] + 80170d4: 8e3b ldrh r3, [r7, #48] ; 0x30 + 80170d6: 9301 str r3, [sp, #4] + 80170d8: 8dbb ldrh r3, [r7, #44] ; 0x2c + 80170da: 9300 str r3, [sp, #0] + 80170dc: 4613 mov r3, r2 + 80170de: 2200 movs r2, #0 + 80170e0: 4621 mov r1, r4 + 80170e2: 6878 ldr r0, [r7, #4] + 80170e4: f7ff fe90 bl 8016e08 + 80170e8: 6138 str r0, [r7, #16] remote_port, TCP_RST | TCP_ACK, wnd); if (p == NULL) { - 80170da: 693b ldr r3, [r7, #16] - 80170dc: 2b00 cmp r3, #0 - 80170de: d00c beq.n 80170fa + 80170ea: 693b ldr r3, [r7, #16] + 80170ec: 2b00 cmp r3, #0 + 80170ee: d00c beq.n 801710a LWIP_DEBUGF(TCP_DEBUG, ("tcp_rst: could not allocate memory for pbuf\n")); return; } tcp_output_fill_options(pcb, p, 0, optlen); - 80170e0: 7dfb ldrb r3, [r7, #23] - 80170e2: 2200 movs r2, #0 - 80170e4: 6939 ldr r1, [r7, #16] - 80170e6: 68f8 ldr r0, [r7, #12] - 80170e8: f7ff ff38 bl 8016f5c + 80170f0: 7dfb ldrb r3, [r7, #23] + 80170f2: 2200 movs r2, #0 + 80170f4: 6939 ldr r1, [r7, #16] + 80170f6: 68f8 ldr r0, [r7, #12] + 80170f8: f7ff ff38 bl 8016f6c MIB2_STATS_INC(mib2.tcpoutrsts); tcp_output_control_segment(pcb, p, local_ip, remote_ip); - 80170ec: 6abb ldr r3, [r7, #40] ; 0x28 - 80170ee: 683a ldr r2, [r7, #0] - 80170f0: 6939 ldr r1, [r7, #16] - 80170f2: 68f8 ldr r0, [r7, #12] - 80170f4: f7ff ff72 bl 8016fdc - 80170f8: e000 b.n 80170fc + 80170fc: 6abb ldr r3, [r7, #40] ; 0x28 + 80170fe: 683a ldr r2, [r7, #0] + 8017100: 6939 ldr r1, [r7, #16] + 8017102: 68f8 ldr r0, [r7, #12] + 8017104: f7ff ff72 bl 8016fec + 8017108: e000 b.n 801710c return; - 80170fa: bf00 nop + 801710a: bf00 nop LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_rst: seqno %"U32_F" ackno %"U32_F".\n", seqno, ackno)); } - 80170fc: 371c adds r7, #28 - 80170fe: 46bd mov sp, r7 - 8017100: bd90 pop {r4, r7, pc} - 8017102: bf00 nop - 8017104: 0801f0c0 .word 0x0801f0c0 - 8017108: 0801f844 .word 0x0801f844 - 801710c: 0801f114 .word 0x0801f114 - 8017110: 0801f860 .word 0x0801f860 + 801710c: 371c adds r7, #28 + 801710e: 46bd mov sp, r7 + 8017110: bd90 pop {r4, r7, pc} + 8017112: bf00 nop + 8017114: 0801f0d0 .word 0x0801f0d0 + 8017118: 0801f854 .word 0x0801f854 + 801711c: 0801f124 .word 0x0801f124 + 8017120: 0801f870 .word 0x0801f870 -08017114 : +08017124 : * * @param pcb Protocol control block for the TCP connection to send the ACK */ err_t tcp_send_empty_ack(struct tcp_pcb *pcb) { - 8017114: b590 push {r4, r7, lr} - 8017116: b087 sub sp, #28 - 8017118: af00 add r7, sp, #0 - 801711a: 6078 str r0, [r7, #4] + 8017124: b590 push {r4, r7, lr} + 8017126: b087 sub sp, #28 + 8017128: af00 add r7, sp, #0 + 801712a: 6078 str r0, [r7, #4] err_t err; struct pbuf *p; u8_t optlen, optflags = 0; - 801711c: 2300 movs r3, #0 - 801711e: 75fb strb r3, [r7, #23] + 801712c: 2300 movs r3, #0 + 801712e: 75fb strb r3, [r7, #23] u8_t num_sacks = 0; - 8017120: 2300 movs r3, #0 - 8017122: 75bb strb r3, [r7, #22] + 8017130: 2300 movs r3, #0 + 8017132: 75bb strb r3, [r7, #22] LWIP_ASSERT("tcp_send_empty_ack: invalid pcb", pcb != NULL); - 8017124: 687b ldr r3, [r7, #4] - 8017126: 2b00 cmp r3, #0 - 8017128: d106 bne.n 8017138 - 801712a: 4b28 ldr r3, [pc, #160] ; (80171cc ) - 801712c: f240 72ea movw r2, #2026 ; 0x7ea - 8017130: 4927 ldr r1, [pc, #156] ; (80171d0 ) - 8017132: 4828 ldr r0, [pc, #160] ; (80171d4 ) - 8017134: f005 fa88 bl 801c648 + 8017134: 687b ldr r3, [r7, #4] + 8017136: 2b00 cmp r3, #0 + 8017138: d106 bne.n 8017148 + 801713a: 4b28 ldr r3, [pc, #160] ; (80171dc ) + 801713c: f240 72ea movw r2, #2026 ; 0x7ea + 8017140: 4927 ldr r1, [pc, #156] ; (80171e0 ) + 8017142: 4828 ldr r0, [pc, #160] ; (80171e4 ) + 8017144: f005 fa88 bl 801c658 #if LWIP_TCP_TIMESTAMPS if (pcb->flags & TF_TIMESTAMP) { optflags = TF_SEG_OPTS_TS; } #endif optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); - 8017138: 7dfb ldrb r3, [r7, #23] - 801713a: 009b lsls r3, r3, #2 - 801713c: b2db uxtb r3, r3 - 801713e: f003 0304 and.w r3, r3, #4 - 8017142: 757b strb r3, [r7, #21] + 8017148: 7dfb ldrb r3, [r7, #23] + 801714a: 009b lsls r3, r3, #2 + 801714c: b2db uxtb r3, r3 + 801714e: f003 0304 and.w r3, r3, #4 + 8017152: 757b strb r3, [r7, #21] if ((num_sacks = tcp_get_num_sacks(pcb, optlen)) > 0) { optlen += 4 + num_sacks * 8; /* 4 bytes for header (including 2*NOP), plus 8B for each SACK */ } #endif p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt)); - 8017144: 7d7b ldrb r3, [r7, #21] - 8017146: b29c uxth r4, r3 - 8017148: 687b ldr r3, [r7, #4] - 801714a: 6d1b ldr r3, [r3, #80] ; 0x50 - 801714c: 4618 mov r0, r3 - 801714e: f7f9 f9ac bl 80104aa - 8017152: 4603 mov r3, r0 - 8017154: 2200 movs r2, #0 - 8017156: 4621 mov r1, r4 - 8017158: 6878 ldr r0, [r7, #4] - 801715a: f7ff fec1 bl 8016ee0 - 801715e: 6138 str r0, [r7, #16] + 8017154: 7d7b ldrb r3, [r7, #21] + 8017156: b29c uxth r4, r3 + 8017158: 687b ldr r3, [r7, #4] + 801715a: 6d1b ldr r3, [r3, #80] ; 0x50 + 801715c: 4618 mov r0, r3 + 801715e: f7f9 f9ac bl 80104ba + 8017162: 4603 mov r3, r0 + 8017164: 2200 movs r2, #0 + 8017166: 4621 mov r1, r4 + 8017168: 6878 ldr r0, [r7, #4] + 801716a: f7ff fec1 bl 8016ef0 + 801716e: 6138 str r0, [r7, #16] if (p == NULL) { - 8017160: 693b ldr r3, [r7, #16] - 8017162: 2b00 cmp r3, #0 - 8017164: d109 bne.n 801717a + 8017170: 693b ldr r3, [r7, #16] + 8017172: 2b00 cmp r3, #0 + 8017174: d109 bne.n 801718a /* let tcp_fasttmr retry sending this ACK */ tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 8017166: 687b ldr r3, [r7, #4] - 8017168: 8b5b ldrh r3, [r3, #26] - 801716a: f043 0303 orr.w r3, r3, #3 - 801716e: b29a uxth r2, r3 - 8017170: 687b ldr r3, [r7, #4] - 8017172: 835a strh r2, [r3, #26] + 8017176: 687b ldr r3, [r7, #4] + 8017178: 8b5b ldrh r3, [r3, #26] + 801717a: f043 0303 orr.w r3, r3, #3 + 801717e: b29a uxth r2, r3 + 8017180: 687b ldr r3, [r7, #4] + 8017182: 835a strh r2, [r3, #26] LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: (ACK) could not allocate pbuf\n")); return ERR_BUF; - 8017174: f06f 0301 mvn.w r3, #1 - 8017178: e023 b.n 80171c2 + 8017184: f06f 0301 mvn.w r3, #1 + 8017188: e023 b.n 80171d2 } tcp_output_fill_options(pcb, p, optflags, num_sacks); - 801717a: 7dbb ldrb r3, [r7, #22] - 801717c: 7dfa ldrb r2, [r7, #23] - 801717e: 6939 ldr r1, [r7, #16] - 8017180: 6878 ldr r0, [r7, #4] - 8017182: f7ff feeb bl 8016f5c + 801718a: 7dbb ldrb r3, [r7, #22] + 801718c: 7dfa ldrb r2, [r7, #23] + 801718e: 6939 ldr r1, [r7, #16] + 8017190: 6878 ldr r0, [r7, #4] + 8017192: f7ff feeb bl 8016f6c pcb->ts_lastacksent = pcb->rcv_nxt; #endif LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_output: sending ACK for %"U32_F"\n", pcb->rcv_nxt)); err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - 8017186: 687a ldr r2, [r7, #4] - 8017188: 687b ldr r3, [r7, #4] - 801718a: 3304 adds r3, #4 - 801718c: 6939 ldr r1, [r7, #16] - 801718e: 6878 ldr r0, [r7, #4] - 8017190: f7ff ff24 bl 8016fdc - 8017194: 4603 mov r3, r0 - 8017196: 73fb strb r3, [r7, #15] + 8017196: 687a ldr r2, [r7, #4] + 8017198: 687b ldr r3, [r7, #4] + 801719a: 3304 adds r3, #4 + 801719c: 6939 ldr r1, [r7, #16] + 801719e: 6878 ldr r0, [r7, #4] + 80171a0: f7ff ff24 bl 8016fec + 80171a4: 4603 mov r3, r0 + 80171a6: 73fb strb r3, [r7, #15] if (err != ERR_OK) { - 8017198: f997 300f ldrsb.w r3, [r7, #15] - 801719c: 2b00 cmp r3, #0 - 801719e: d007 beq.n 80171b0 + 80171a8: f997 300f ldrsb.w r3, [r7, #15] + 80171ac: 2b00 cmp r3, #0 + 80171ae: d007 beq.n 80171c0 /* let tcp_fasttmr retry sending this ACK */ tcp_set_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); - 80171a0: 687b ldr r3, [r7, #4] - 80171a2: 8b5b ldrh r3, [r3, #26] - 80171a4: f043 0303 orr.w r3, r3, #3 - 80171a8: b29a uxth r2, r3 - 80171aa: 687b ldr r3, [r7, #4] - 80171ac: 835a strh r2, [r3, #26] - 80171ae: e006 b.n 80171be - } else { - /* remove ACK flags from the PCB, as we sent an empty ACK now */ - tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); 80171b0: 687b ldr r3, [r7, #4] 80171b2: 8b5b ldrh r3, [r3, #26] - 80171b4: f023 0303 bic.w r3, r3, #3 + 80171b4: f043 0303 orr.w r3, r3, #3 80171b8: b29a uxth r2, r3 80171ba: 687b ldr r3, [r7, #4] 80171bc: 835a strh r2, [r3, #26] + 80171be: e006 b.n 80171ce + } else { + /* remove ACK flags from the PCB, as we sent an empty ACK now */ + tcp_clear_flags(pcb, TF_ACK_DELAY | TF_ACK_NOW); + 80171c0: 687b ldr r3, [r7, #4] + 80171c2: 8b5b ldrh r3, [r3, #26] + 80171c4: f023 0303 bic.w r3, r3, #3 + 80171c8: b29a uxth r2, r3 + 80171ca: 687b ldr r3, [r7, #4] + 80171cc: 835a strh r2, [r3, #26] } return err; - 80171be: f997 300f ldrsb.w r3, [r7, #15] -} - 80171c2: 4618 mov r0, r3 - 80171c4: 371c adds r7, #28 - 80171c6: 46bd mov sp, r7 - 80171c8: bd90 pop {r4, r7, pc} - 80171ca: bf00 nop - 80171cc: 0801f0c0 .word 0x0801f0c0 - 80171d0: 0801f87c .word 0x0801f87c - 80171d4: 0801f114 .word 0x0801f114 - -080171d8 : + 80171ce: f997 300f ldrsb.w r3, [r7, #15] +} + 80171d2: 4618 mov r0, r3 + 80171d4: 371c adds r7, #28 + 80171d6: 46bd mov sp, r7 + 80171d8: bd90 pop {r4, r7, pc} + 80171da: bf00 nop + 80171dc: 0801f0d0 .word 0x0801f0d0 + 80171e0: 0801f88c .word 0x0801f88c + 80171e4: 0801f124 .word 0x0801f124 + +080171e8 : * * @param pcb the tcp_pcb for which to send a keepalive packet */ err_t tcp_keepalive(struct tcp_pcb *pcb) { - 80171d8: b590 push {r4, r7, lr} - 80171da: b087 sub sp, #28 - 80171dc: af00 add r7, sp, #0 - 80171de: 6078 str r0, [r7, #4] + 80171e8: b590 push {r4, r7, lr} + 80171ea: b087 sub sp, #28 + 80171ec: af00 add r7, sp, #0 + 80171ee: 6078 str r0, [r7, #4] err_t err; struct pbuf *p; u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 80171e0: 2300 movs r3, #0 - 80171e2: 75fb strb r3, [r7, #23] + 80171f0: 2300 movs r3, #0 + 80171f2: 75fb strb r3, [r7, #23] LWIP_ASSERT("tcp_keepalive: invalid pcb", pcb != NULL); - 80171e4: 687b ldr r3, [r7, #4] - 80171e6: 2b00 cmp r3, #0 - 80171e8: d106 bne.n 80171f8 - 80171ea: 4b18 ldr r3, [pc, #96] ; (801724c ) - 80171ec: f640 0224 movw r2, #2084 ; 0x824 - 80171f0: 4917 ldr r1, [pc, #92] ; (8017250 ) - 80171f2: 4818 ldr r0, [pc, #96] ; (8017254 ) - 80171f4: f005 fa28 bl 801c648 + 80171f4: 687b ldr r3, [r7, #4] + 80171f6: 2b00 cmp r3, #0 + 80171f8: d106 bne.n 8017208 + 80171fa: 4b18 ldr r3, [pc, #96] ; (801725c ) + 80171fc: f640 0224 movw r2, #2084 ; 0x824 + 8017200: 4917 ldr r1, [pc, #92] ; (8017260 ) + 8017202: 4818 ldr r0, [pc, #96] ; (8017264 ) + 8017204: f005 fa28 bl 801c658 LWIP_DEBUGF(TCP_DEBUG, ("\n")); LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: tcp_ticks %"U32_F" pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n", tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent)); p = tcp_output_alloc_header(pcb, optlen, 0, lwip_htonl(pcb->snd_nxt - 1)); - 80171f8: 7dfb ldrb r3, [r7, #23] - 80171fa: b29c uxth r4, r3 - 80171fc: 687b ldr r3, [r7, #4] - 80171fe: 6d1b ldr r3, [r3, #80] ; 0x50 - 8017200: 3b01 subs r3, #1 - 8017202: 4618 mov r0, r3 - 8017204: f7f9 f951 bl 80104aa - 8017208: 4603 mov r3, r0 - 801720a: 2200 movs r2, #0 - 801720c: 4621 mov r1, r4 - 801720e: 6878 ldr r0, [r7, #4] - 8017210: f7ff fe66 bl 8016ee0 - 8017214: 6138 str r0, [r7, #16] + 8017208: 7dfb ldrb r3, [r7, #23] + 801720a: b29c uxth r4, r3 + 801720c: 687b ldr r3, [r7, #4] + 801720e: 6d1b ldr r3, [r3, #80] ; 0x50 + 8017210: 3b01 subs r3, #1 + 8017212: 4618 mov r0, r3 + 8017214: f7f9 f951 bl 80104ba + 8017218: 4603 mov r3, r0 + 801721a: 2200 movs r2, #0 + 801721c: 4621 mov r1, r4 + 801721e: 6878 ldr r0, [r7, #4] + 8017220: f7ff fe66 bl 8016ef0 + 8017224: 6138 str r0, [r7, #16] if (p == NULL) { - 8017216: 693b ldr r3, [r7, #16] - 8017218: 2b00 cmp r3, #0 - 801721a: d102 bne.n 8017222 + 8017226: 693b ldr r3, [r7, #16] + 8017228: 2b00 cmp r3, #0 + 801722a: d102 bne.n 8017232 LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: could not allocate memory for pbuf\n")); return ERR_MEM; - 801721c: f04f 33ff mov.w r3, #4294967295 - 8017220: e010 b.n 8017244 + 801722c: f04f 33ff mov.w r3, #4294967295 + 8017230: e010 b.n 8017254 } tcp_output_fill_options(pcb, p, 0, optlen); - 8017222: 7dfb ldrb r3, [r7, #23] - 8017224: 2200 movs r2, #0 - 8017226: 6939 ldr r1, [r7, #16] - 8017228: 6878 ldr r0, [r7, #4] - 801722a: f7ff fe97 bl 8016f5c + 8017232: 7dfb ldrb r3, [r7, #23] + 8017234: 2200 movs r2, #0 + 8017236: 6939 ldr r1, [r7, #16] + 8017238: 6878 ldr r0, [r7, #4] + 801723a: f7ff fe97 bl 8016f6c err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - 801722e: 687a ldr r2, [r7, #4] - 8017230: 687b ldr r3, [r7, #4] - 8017232: 3304 adds r3, #4 - 8017234: 6939 ldr r1, [r7, #16] - 8017236: 6878 ldr r0, [r7, #4] - 8017238: f7ff fed0 bl 8016fdc - 801723c: 4603 mov r3, r0 - 801723e: 73fb strb r3, [r7, #15] + 801723e: 687a ldr r2, [r7, #4] + 8017240: 687b ldr r3, [r7, #4] + 8017242: 3304 adds r3, #4 + 8017244: 6939 ldr r1, [r7, #16] + 8017246: 6878 ldr r0, [r7, #4] + 8017248: f7ff fed0 bl 8016fec + 801724c: 4603 mov r3, r0 + 801724e: 73fb strb r3, [r7, #15] LWIP_DEBUGF(TCP_DEBUG, ("tcp_keepalive: seqno %"U32_F" ackno %"U32_F" err %d.\n", pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err)); return err; - 8017240: f997 300f ldrsb.w r3, [r7, #15] + 8017250: f997 300f ldrsb.w r3, [r7, #15] } - 8017244: 4618 mov r0, r3 - 8017246: 371c adds r7, #28 - 8017248: 46bd mov sp, r7 - 801724a: bd90 pop {r4, r7, pc} - 801724c: 0801f0c0 .word 0x0801f0c0 - 8017250: 0801f89c .word 0x0801f89c - 8017254: 0801f114 .word 0x0801f114 + 8017254: 4618 mov r0, r3 + 8017256: 371c adds r7, #28 + 8017258: 46bd mov sp, r7 + 801725a: bd90 pop {r4, r7, pc} + 801725c: 0801f0d0 .word 0x0801f0d0 + 8017260: 0801f8ac .word 0x0801f8ac + 8017264: 0801f124 .word 0x0801f124 -08017258 : +08017268 : * * @param pcb the tcp_pcb for which to send a zero-window probe packet */ err_t tcp_zero_window_probe(struct tcp_pcb *pcb) { - 8017258: b590 push {r4, r7, lr} - 801725a: b08b sub sp, #44 ; 0x2c - 801725c: af00 add r7, sp, #0 - 801725e: 6078 str r0, [r7, #4] + 8017268: b590 push {r4, r7, lr} + 801726a: b08b sub sp, #44 ; 0x2c + 801726c: af00 add r7, sp, #0 + 801726e: 6078 str r0, [r7, #4] struct tcp_hdr *tcphdr; struct tcp_seg *seg; u16_t len; u8_t is_fin; u32_t snd_nxt; u8_t optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); - 8017260: 2300 movs r3, #0 - 8017262: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8017270: 2300 movs r3, #0 + 8017272: f887 3027 strb.w r3, [r7, #39] ; 0x27 LWIP_ASSERT("tcp_zero_window_probe: invalid pcb", pcb != NULL); - 8017266: 687b ldr r3, [r7, #4] - 8017268: 2b00 cmp r3, #0 - 801726a: d106 bne.n 801727a - 801726c: 4b4c ldr r3, [pc, #304] ; (80173a0 ) - 801726e: f640 024f movw r2, #2127 ; 0x84f - 8017272: 494c ldr r1, [pc, #304] ; (80173a4 ) - 8017274: 484c ldr r0, [pc, #304] ; (80173a8 ) - 8017276: f005 f9e7 bl 801c648 + 8017276: 687b ldr r3, [r7, #4] + 8017278: 2b00 cmp r3, #0 + 801727a: d106 bne.n 801728a + 801727c: 4b4c ldr r3, [pc, #304] ; (80173b0 ) + 801727e: f640 024f movw r2, #2127 ; 0x84f + 8017282: 494c ldr r1, [pc, #304] ; (80173b4 ) + 8017284: 484c ldr r0, [pc, #304] ; (80173b8 ) + 8017286: f005 f9e7 bl 801c658 ("tcp_zero_window_probe: tcp_ticks %"U32_F " pcb->tmr %"U32_F" pcb->keep_cnt_sent %"U16_F"\n", tcp_ticks, pcb->tmr, (u16_t)pcb->keep_cnt_sent)); /* Only consider unsent, persist timer should be off when there is data in-flight */ seg = pcb->unsent; - 801727a: 687b ldr r3, [r7, #4] - 801727c: 6edb ldr r3, [r3, #108] ; 0x6c - 801727e: 623b str r3, [r7, #32] + 801728a: 687b ldr r3, [r7, #4] + 801728c: 6edb ldr r3, [r3, #108] ; 0x6c + 801728e: 623b str r3, [r7, #32] if (seg == NULL) { - 8017280: 6a3b ldr r3, [r7, #32] - 8017282: 2b00 cmp r3, #0 - 8017284: d101 bne.n 801728a + 8017290: 6a3b ldr r3, [r7, #32] + 8017292: 2b00 cmp r3, #0 + 8017294: d101 bne.n 801729a /* Not expected, persist timer should be off when the send buffer is empty */ return ERR_OK; - 8017286: 2300 movs r3, #0 - 8017288: e086 b.n 8017398 + 8017296: 2300 movs r3, #0 + 8017298: e086 b.n 80173a8 /* increment probe count. NOTE: we record probe even if it fails to actually transmit due to an error. This ensures memory exhaustion/ routing problem doesn't leave a zero-window pcb as an indefinite zombie. RTO mechanism has similar behavior, see pcb->nrtx */ if (pcb->persist_probe < 0xFF) { - 801728a: 687b ldr r3, [r7, #4] - 801728c: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 8017290: 2bff cmp r3, #255 ; 0xff - 8017292: d007 beq.n 80172a4 + 801729a: 687b ldr r3, [r7, #4] + 801729c: f893 309a ldrb.w r3, [r3, #154] ; 0x9a + 80172a0: 2bff cmp r3, #255 ; 0xff + 80172a2: d007 beq.n 80172b4 ++pcb->persist_probe; - 8017294: 687b ldr r3, [r7, #4] - 8017296: f893 309a ldrb.w r3, [r3, #154] ; 0x9a - 801729a: 3301 adds r3, #1 - 801729c: b2da uxtb r2, r3 - 801729e: 687b ldr r3, [r7, #4] - 80172a0: f883 209a strb.w r2, [r3, #154] ; 0x9a + 80172a4: 687b ldr r3, [r7, #4] + 80172a6: f893 309a ldrb.w r3, [r3, #154] ; 0x9a + 80172aa: 3301 adds r3, #1 + 80172ac: b2da uxtb r2, r3 + 80172ae: 687b ldr r3, [r7, #4] + 80172b0: f883 209a strb.w r2, [r3, #154] ; 0x9a } is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0); - 80172a4: 6a3b ldr r3, [r7, #32] - 80172a6: 68db ldr r3, [r3, #12] - 80172a8: 899b ldrh r3, [r3, #12] - 80172aa: b29b uxth r3, r3 - 80172ac: 4618 mov r0, r3 - 80172ae: f7f9 f8e7 bl 8010480 - 80172b2: 4603 mov r3, r0 - 80172b4: b2db uxtb r3, r3 - 80172b6: f003 0301 and.w r3, r3, #1 - 80172ba: 2b00 cmp r3, #0 - 80172bc: d005 beq.n 80172ca - 80172be: 6a3b ldr r3, [r7, #32] - 80172c0: 891b ldrh r3, [r3, #8] - 80172c2: 2b00 cmp r3, #0 - 80172c4: d101 bne.n 80172ca - 80172c6: 2301 movs r3, #1 - 80172c8: e000 b.n 80172cc - 80172ca: 2300 movs r3, #0 - 80172cc: 77fb strb r3, [r7, #31] + 80172b4: 6a3b ldr r3, [r7, #32] + 80172b6: 68db ldr r3, [r3, #12] + 80172b8: 899b ldrh r3, [r3, #12] + 80172ba: b29b uxth r3, r3 + 80172bc: 4618 mov r0, r3 + 80172be: f7f9 f8e7 bl 8010490 + 80172c2: 4603 mov r3, r0 + 80172c4: b2db uxtb r3, r3 + 80172c6: f003 0301 and.w r3, r3, #1 + 80172ca: 2b00 cmp r3, #0 + 80172cc: d005 beq.n 80172da + 80172ce: 6a3b ldr r3, [r7, #32] + 80172d0: 891b ldrh r3, [r3, #8] + 80172d2: 2b00 cmp r3, #0 + 80172d4: d101 bne.n 80172da + 80172d6: 2301 movs r3, #1 + 80172d8: e000 b.n 80172dc + 80172da: 2300 movs r3, #0 + 80172dc: 77fb strb r3, [r7, #31] /* we want to send one seqno: either FIN or data (no options) */ len = is_fin ? 0 : 1; - 80172ce: 7ffb ldrb r3, [r7, #31] - 80172d0: 2b00 cmp r3, #0 - 80172d2: bf0c ite eq - 80172d4: 2301 moveq r3, #1 - 80172d6: 2300 movne r3, #0 - 80172d8: b2db uxtb r3, r3 - 80172da: 83bb strh r3, [r7, #28] + 80172de: 7ffb ldrb r3, [r7, #31] + 80172e0: 2b00 cmp r3, #0 + 80172e2: bf0c ite eq + 80172e4: 2301 moveq r3, #1 + 80172e6: 2300 movne r3, #0 + 80172e8: b2db uxtb r3, r3 + 80172ea: 83bb strh r3, [r7, #28] p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno); - 80172dc: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 80172e0: b299 uxth r1, r3 - 80172e2: 6a3b ldr r3, [r7, #32] - 80172e4: 68db ldr r3, [r3, #12] - 80172e6: 685b ldr r3, [r3, #4] - 80172e8: 8bba ldrh r2, [r7, #28] - 80172ea: 6878 ldr r0, [r7, #4] - 80172ec: f7ff fdf8 bl 8016ee0 - 80172f0: 61b8 str r0, [r7, #24] + 80172ec: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 80172f0: b299 uxth r1, r3 + 80172f2: 6a3b ldr r3, [r7, #32] + 80172f4: 68db ldr r3, [r3, #12] + 80172f6: 685b ldr r3, [r3, #4] + 80172f8: 8bba ldrh r2, [r7, #28] + 80172fa: 6878 ldr r0, [r7, #4] + 80172fc: f7ff fdf8 bl 8016ef0 + 8017300: 61b8 str r0, [r7, #24] if (p == NULL) { - 80172f2: 69bb ldr r3, [r7, #24] - 80172f4: 2b00 cmp r3, #0 - 80172f6: d102 bne.n 80172fe + 8017302: 69bb ldr r3, [r7, #24] + 8017304: 2b00 cmp r3, #0 + 8017306: d102 bne.n 801730e LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: no memory for pbuf\n")); return ERR_MEM; - 80172f8: f04f 33ff mov.w r3, #4294967295 - 80172fc: e04c b.n 8017398 + 8017308: f04f 33ff mov.w r3, #4294967295 + 801730c: e04c b.n 80173a8 } tcphdr = (struct tcp_hdr *)p->payload; - 80172fe: 69bb ldr r3, [r7, #24] - 8017300: 685b ldr r3, [r3, #4] - 8017302: 617b str r3, [r7, #20] + 801730e: 69bb ldr r3, [r7, #24] + 8017310: 685b ldr r3, [r3, #4] + 8017312: 617b str r3, [r7, #20] if (is_fin) { - 8017304: 7ffb ldrb r3, [r7, #31] - 8017306: 2b00 cmp r3, #0 - 8017308: d011 beq.n 801732e + 8017314: 7ffb ldrb r3, [r7, #31] + 8017316: 2b00 cmp r3, #0 + 8017318: d011 beq.n 801733e /* FIN segment, no data */ TCPH_FLAGS_SET(tcphdr, TCP_ACK | TCP_FIN); - 801730a: 697b ldr r3, [r7, #20] - 801730c: 899b ldrh r3, [r3, #12] - 801730e: b29b uxth r3, r3 - 8017310: b21b sxth r3, r3 - 8017312: f423 537c bic.w r3, r3, #16128 ; 0x3f00 - 8017316: b21c sxth r4, r3 - 8017318: 2011 movs r0, #17 - 801731a: f7f9 f8b1 bl 8010480 - 801731e: 4603 mov r3, r0 + 801731a: 697b ldr r3, [r7, #20] + 801731c: 899b ldrh r3, [r3, #12] + 801731e: b29b uxth r3, r3 8017320: b21b sxth r3, r3 - 8017322: 4323 orrs r3, r4 - 8017324: b21b sxth r3, r3 - 8017326: b29a uxth r2, r3 - 8017328: 697b ldr r3, [r7, #20] - 801732a: 819a strh r2, [r3, #12] - 801732c: e010 b.n 8017350 + 8017322: f423 537c bic.w r3, r3, #16128 ; 0x3f00 + 8017326: b21c sxth r4, r3 + 8017328: 2011 movs r0, #17 + 801732a: f7f9 f8b1 bl 8010490 + 801732e: 4603 mov r3, r0 + 8017330: b21b sxth r3, r3 + 8017332: 4323 orrs r3, r4 + 8017334: b21b sxth r3, r3 + 8017336: b29a uxth r2, r3 + 8017338: 697b ldr r3, [r7, #20] + 801733a: 819a strh r2, [r3, #12] + 801733c: e010 b.n 8017360 } else { /* Data segment, copy in one byte from the head of the unacked queue */ char *d = ((char *)p->payload + TCP_HLEN); - 801732e: 69bb ldr r3, [r7, #24] - 8017330: 685b ldr r3, [r3, #4] - 8017332: 3314 adds r3, #20 - 8017334: 613b str r3, [r7, #16] + 801733e: 69bb ldr r3, [r7, #24] + 8017340: 685b ldr r3, [r3, #4] + 8017342: 3314 adds r3, #20 + 8017344: 613b str r3, [r7, #16] /* Depending on whether the segment has already been sent (unacked) or not (unsent), seg->p->payload points to the IP header or TCP header. Ensure we copy the first TCP data byte: */ pbuf_copy_partial(seg->p, d, 1, seg->p->tot_len - seg->len); - 8017336: 6a3b ldr r3, [r7, #32] - 8017338: 6858 ldr r0, [r3, #4] - 801733a: 6a3b ldr r3, [r7, #32] - 801733c: 685b ldr r3, [r3, #4] - 801733e: 891a ldrh r2, [r3, #8] - 8017340: 6a3b ldr r3, [r7, #32] - 8017342: 891b ldrh r3, [r3, #8] - 8017344: 1ad3 subs r3, r2, r3 - 8017346: b29b uxth r3, r3 - 8017348: 2201 movs r2, #1 - 801734a: 6939 ldr r1, [r7, #16] - 801734c: f7fa fe52 bl 8011ff4 + 8017346: 6a3b ldr r3, [r7, #32] + 8017348: 6858 ldr r0, [r3, #4] + 801734a: 6a3b ldr r3, [r7, #32] + 801734c: 685b ldr r3, [r3, #4] + 801734e: 891a ldrh r2, [r3, #8] + 8017350: 6a3b ldr r3, [r7, #32] + 8017352: 891b ldrh r3, [r3, #8] + 8017354: 1ad3 subs r3, r2, r3 + 8017356: b29b uxth r3, r3 + 8017358: 2201 movs r2, #1 + 801735a: 6939 ldr r1, [r7, #16] + 801735c: f7fa fe52 bl 8012004 } /* The byte may be acknowledged without the window being opened. */ snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1; - 8017350: 6a3b ldr r3, [r7, #32] - 8017352: 68db ldr r3, [r3, #12] - 8017354: 685b ldr r3, [r3, #4] - 8017356: 4618 mov r0, r3 - 8017358: f7f9 f8a7 bl 80104aa - 801735c: 4603 mov r3, r0 - 801735e: 3301 adds r3, #1 - 8017360: 60fb str r3, [r7, #12] + 8017360: 6a3b ldr r3, [r7, #32] + 8017362: 68db ldr r3, [r3, #12] + 8017364: 685b ldr r3, [r3, #4] + 8017366: 4618 mov r0, r3 + 8017368: f7f9 f8a7 bl 80104ba + 801736c: 4603 mov r3, r0 + 801736e: 3301 adds r3, #1 + 8017370: 60fb str r3, [r7, #12] if (TCP_SEQ_LT(pcb->snd_nxt, snd_nxt)) { - 8017362: 687b ldr r3, [r7, #4] - 8017364: 6d1a ldr r2, [r3, #80] ; 0x50 - 8017366: 68fb ldr r3, [r7, #12] - 8017368: 1ad3 subs r3, r2, r3 - 801736a: 2b00 cmp r3, #0 - 801736c: da02 bge.n 8017374 + 8017372: 687b ldr r3, [r7, #4] + 8017374: 6d1a ldr r2, [r3, #80] ; 0x50 + 8017376: 68fb ldr r3, [r7, #12] + 8017378: 1ad3 subs r3, r2, r3 + 801737a: 2b00 cmp r3, #0 + 801737c: da02 bge.n 8017384 pcb->snd_nxt = snd_nxt; - 801736e: 687b ldr r3, [r7, #4] - 8017370: 68fa ldr r2, [r7, #12] - 8017372: 651a str r2, [r3, #80] ; 0x50 + 801737e: 687b ldr r3, [r7, #4] + 8017380: 68fa ldr r2, [r7, #12] + 8017382: 651a str r2, [r3, #80] ; 0x50 } tcp_output_fill_options(pcb, p, 0, optlen); - 8017374: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8017378: 2200 movs r2, #0 - 801737a: 69b9 ldr r1, [r7, #24] - 801737c: 6878 ldr r0, [r7, #4] - 801737e: f7ff fded bl 8016f5c + 8017384: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8017388: 2200 movs r2, #0 + 801738a: 69b9 ldr r1, [r7, #24] + 801738c: 6878 ldr r0, [r7, #4] + 801738e: f7ff fded bl 8016f6c err = tcp_output_control_segment(pcb, p, &pcb->local_ip, &pcb->remote_ip); - 8017382: 687a ldr r2, [r7, #4] - 8017384: 687b ldr r3, [r7, #4] - 8017386: 3304 adds r3, #4 - 8017388: 69b9 ldr r1, [r7, #24] - 801738a: 6878 ldr r0, [r7, #4] - 801738c: f7ff fe26 bl 8016fdc - 8017390: 4603 mov r3, r0 - 8017392: 72fb strb r3, [r7, #11] + 8017392: 687a ldr r2, [r7, #4] + 8017394: 687b ldr r3, [r7, #4] + 8017396: 3304 adds r3, #4 + 8017398: 69b9 ldr r1, [r7, #24] + 801739a: 6878 ldr r0, [r7, #4] + 801739c: f7ff fe26 bl 8016fec + 80173a0: 4603 mov r3, r0 + 80173a2: 72fb strb r3, [r7, #11] LWIP_DEBUGF(TCP_DEBUG, ("tcp_zero_window_probe: seqno %"U32_F " ackno %"U32_F" err %d.\n", pcb->snd_nxt - 1, pcb->rcv_nxt, (int)err)); return err; - 8017394: f997 300b ldrsb.w r3, [r7, #11] + 80173a4: f997 300b ldrsb.w r3, [r7, #11] } - 8017398: 4618 mov r0, r3 - 801739a: 372c adds r7, #44 ; 0x2c - 801739c: 46bd mov sp, r7 - 801739e: bd90 pop {r4, r7, pc} - 80173a0: 0801f0c0 .word 0x0801f0c0 - 80173a4: 0801f8b8 .word 0x0801f8b8 - 80173a8: 0801f114 .word 0x0801f114 + 80173a8: 4618 mov r0, r3 + 80173aa: 372c adds r7, #44 ; 0x2c + 80173ac: 46bd mov sp, r7 + 80173ae: bd90 pop {r4, r7, pc} + 80173b0: 0801f0d0 .word 0x0801f0d0 + 80173b4: 0801f8c8 .word 0x0801f8c8 + 80173b8: 0801f124 .word 0x0801f124 -080173ac : +080173bc : * * @param arg unused argument */ static void tcpip_tcp_timer(void *arg) { - 80173ac: b580 push {r7, lr} - 80173ae: b082 sub sp, #8 - 80173b0: af00 add r7, sp, #0 - 80173b2: 6078 str r0, [r7, #4] + 80173bc: b580 push {r7, lr} + 80173be: b082 sub sp, #8 + 80173c0: af00 add r7, sp, #0 + 80173c2: 6078 str r0, [r7, #4] LWIP_UNUSED_ARG(arg); /* call TCP timer handler */ tcp_tmr(); - 80173b4: f7fa ff0c bl 80121d0 + 80173c4: f7fa ff0c bl 80121e0 /* timer still needed? */ if (tcp_active_pcbs || tcp_tw_pcbs) { - 80173b8: 4b0a ldr r3, [pc, #40] ; (80173e4 ) - 80173ba: 681b ldr r3, [r3, #0] - 80173bc: 2b00 cmp r3, #0 - 80173be: d103 bne.n 80173c8 - 80173c0: 4b09 ldr r3, [pc, #36] ; (80173e8 ) - 80173c2: 681b ldr r3, [r3, #0] - 80173c4: 2b00 cmp r3, #0 - 80173c6: d005 beq.n 80173d4 + 80173c8: 4b0a ldr r3, [pc, #40] ; (80173f4 ) + 80173ca: 681b ldr r3, [r3, #0] + 80173cc: 2b00 cmp r3, #0 + 80173ce: d103 bne.n 80173d8 + 80173d0: 4b09 ldr r3, [pc, #36] ; (80173f8 ) + 80173d2: 681b ldr r3, [r3, #0] + 80173d4: 2b00 cmp r3, #0 + 80173d6: d005 beq.n 80173e4 /* restart timer */ sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); - 80173c8: 2200 movs r2, #0 - 80173ca: 4908 ldr r1, [pc, #32] ; (80173ec ) - 80173cc: 20fa movs r0, #250 ; 0xfa - 80173ce: f000 f8f1 bl 80175b4 - 80173d2: e002 b.n 80173da + 80173d8: 2200 movs r2, #0 + 80173da: 4908 ldr r1, [pc, #32] ; (80173fc ) + 80173dc: 20fa movs r0, #250 ; 0xfa + 80173de: f000 f8f1 bl 80175c4 + 80173e2: e002 b.n 80173ea } else { /* disable timer */ tcpip_tcp_timer_active = 0; - 80173d4: 4b06 ldr r3, [pc, #24] ; (80173f0 ) - 80173d6: 2200 movs r2, #0 - 80173d8: 601a str r2, [r3, #0] - } -} - 80173da: bf00 nop - 80173dc: 3708 adds r7, #8 - 80173de: 46bd mov sp, r7 - 80173e0: bd80 pop {r7, pc} - 80173e2: bf00 nop - 80173e4: 2000f7f0 .word 0x2000f7f0 - 80173e8: 2000f800 .word 0x2000f800 - 80173ec: 080173ad .word 0x080173ad - 80173f0: 2000875c .word 0x2000875c - -080173f4 : + 80173e4: 4b06 ldr r3, [pc, #24] ; (8017400 ) + 80173e6: 2200 movs r2, #0 + 80173e8: 601a str r2, [r3, #0] + } +} + 80173ea: bf00 nop + 80173ec: 3708 adds r7, #8 + 80173ee: 46bd mov sp, r7 + 80173f0: bd80 pop {r7, pc} + 80173f2: bf00 nop + 80173f4: 2000f7f0 .word 0x2000f7f0 + 80173f8: 2000f800 .word 0x2000f800 + 80173fc: 080173bd .word 0x080173bd + 8017400: 2000875c .word 0x2000875c + +08017404 : * the reason is to have the TCP timer only running when * there are active (or time-wait) PCBs. */ void tcp_timer_needed(void) { - 80173f4: b580 push {r7, lr} - 80173f6: af00 add r7, sp, #0 + 8017404: b580 push {r7, lr} + 8017406: af00 add r7, sp, #0 LWIP_ASSERT_CORE_LOCKED(); /* timer is off but needed again? */ if (!tcpip_tcp_timer_active && (tcp_active_pcbs || tcp_tw_pcbs)) { - 80173f8: 4b0a ldr r3, [pc, #40] ; (8017424 ) - 80173fa: 681b ldr r3, [r3, #0] - 80173fc: 2b00 cmp r3, #0 - 80173fe: d10f bne.n 8017420 - 8017400: 4b09 ldr r3, [pc, #36] ; (8017428 ) - 8017402: 681b ldr r3, [r3, #0] - 8017404: 2b00 cmp r3, #0 - 8017406: d103 bne.n 8017410 - 8017408: 4b08 ldr r3, [pc, #32] ; (801742c ) + 8017408: 4b0a ldr r3, [pc, #40] ; (8017434 ) 801740a: 681b ldr r3, [r3, #0] 801740c: 2b00 cmp r3, #0 - 801740e: d007 beq.n 8017420 + 801740e: d10f bne.n 8017430 + 8017410: 4b09 ldr r3, [pc, #36] ; (8017438 ) + 8017412: 681b ldr r3, [r3, #0] + 8017414: 2b00 cmp r3, #0 + 8017416: d103 bne.n 8017420 + 8017418: 4b08 ldr r3, [pc, #32] ; (801743c ) + 801741a: 681b ldr r3, [r3, #0] + 801741c: 2b00 cmp r3, #0 + 801741e: d007 beq.n 8017430 /* enable and start timer */ tcpip_tcp_timer_active = 1; - 8017410: 4b04 ldr r3, [pc, #16] ; (8017424 ) - 8017412: 2201 movs r2, #1 - 8017414: 601a str r2, [r3, #0] + 8017420: 4b04 ldr r3, [pc, #16] ; (8017434 ) + 8017422: 2201 movs r2, #1 + 8017424: 601a str r2, [r3, #0] sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL); - 8017416: 2200 movs r2, #0 - 8017418: 4905 ldr r1, [pc, #20] ; (8017430 ) - 801741a: 20fa movs r0, #250 ; 0xfa - 801741c: f000 f8ca bl 80175b4 + 8017426: 2200 movs r2, #0 + 8017428: 4905 ldr r1, [pc, #20] ; (8017440 ) + 801742a: 20fa movs r0, #250 ; 0xfa + 801742c: f000 f8ca bl 80175c4 } } - 8017420: bf00 nop - 8017422: bd80 pop {r7, pc} - 8017424: 2000875c .word 0x2000875c - 8017428: 2000f7f0 .word 0x2000f7f0 - 801742c: 2000f800 .word 0x2000f800 - 8017430: 080173ad .word 0x080173ad + 8017430: bf00 nop + 8017432: bd80 pop {r7, pc} + 8017434: 2000875c .word 0x2000875c + 8017438: 2000f7f0 .word 0x2000f7f0 + 801743c: 2000f800 .word 0x2000f800 + 8017440: 080173bd .word 0x080173bd -08017434 : +08017444 : #if LWIP_DEBUG_TIMERNAMES sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg, const char *handler_name) #else /* LWIP_DEBUG_TIMERNAMES */ sys_timeout_abs(u32_t abs_time, sys_timeout_handler handler, void *arg) #endif { - 8017434: b580 push {r7, lr} - 8017436: b086 sub sp, #24 - 8017438: af00 add r7, sp, #0 - 801743a: 60f8 str r0, [r7, #12] - 801743c: 60b9 str r1, [r7, #8] - 801743e: 607a str r2, [r7, #4] + 8017444: b580 push {r7, lr} + 8017446: b086 sub sp, #24 + 8017448: af00 add r7, sp, #0 + 801744a: 60f8 str r0, [r7, #12] + 801744c: 60b9 str r1, [r7, #8] + 801744e: 607a str r2, [r7, #4] struct sys_timeo *timeout, *t; timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); - 8017440: 200a movs r0, #10 - 8017442: f7f9 fcd3 bl 8010dec - 8017446: 6138 str r0, [r7, #16] + 8017450: 200a movs r0, #10 + 8017452: f7f9 fcd3 bl 8010dfc + 8017456: 6138 str r0, [r7, #16] if (timeout == NULL) { - 8017448: 693b ldr r3, [r7, #16] - 801744a: 2b00 cmp r3, #0 - 801744c: d109 bne.n 8017462 + 8017458: 693b ldr r3, [r7, #16] + 801745a: 2b00 cmp r3, #0 + 801745c: d109 bne.n 8017472 LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); - 801744e: 693b ldr r3, [r7, #16] - 8017450: 2b00 cmp r3, #0 - 8017452: d151 bne.n 80174f8 - 8017454: 4b2a ldr r3, [pc, #168] ; (8017500 ) - 8017456: 22be movs r2, #190 ; 0xbe - 8017458: 492a ldr r1, [pc, #168] ; (8017504 ) - 801745a: 482b ldr r0, [pc, #172] ; (8017508 ) - 801745c: f005 f8f4 bl 801c648 + 801745e: 693b ldr r3, [r7, #16] + 8017460: 2b00 cmp r3, #0 + 8017462: d151 bne.n 8017508 + 8017464: 4b2a ldr r3, [pc, #168] ; (8017510 ) + 8017466: 22be movs r2, #190 ; 0xbe + 8017468: 492a ldr r1, [pc, #168] ; (8017514 ) + 801746a: 482b ldr r0, [pc, #172] ; (8017518 ) + 801746c: f005 f8f4 bl 801c658 return; - 8017460: e04a b.n 80174f8 + 8017470: e04a b.n 8017508 } timeout->next = NULL; - 8017462: 693b ldr r3, [r7, #16] - 8017464: 2200 movs r2, #0 - 8017466: 601a str r2, [r3, #0] + 8017472: 693b ldr r3, [r7, #16] + 8017474: 2200 movs r2, #0 + 8017476: 601a str r2, [r3, #0] timeout->h = handler; - 8017468: 693b ldr r3, [r7, #16] - 801746a: 68ba ldr r2, [r7, #8] - 801746c: 609a str r2, [r3, #8] + 8017478: 693b ldr r3, [r7, #16] + 801747a: 68ba ldr r2, [r7, #8] + 801747c: 609a str r2, [r3, #8] timeout->arg = arg; - 801746e: 693b ldr r3, [r7, #16] - 8017470: 687a ldr r2, [r7, #4] - 8017472: 60da str r2, [r3, #12] + 801747e: 693b ldr r3, [r7, #16] + 8017480: 687a ldr r2, [r7, #4] + 8017482: 60da str r2, [r3, #12] timeout->time = abs_time; - 8017474: 693b ldr r3, [r7, #16] - 8017476: 68fa ldr r2, [r7, #12] - 8017478: 605a str r2, [r3, #4] + 8017484: 693b ldr r3, [r7, #16] + 8017486: 68fa ldr r2, [r7, #12] + 8017488: 605a str r2, [r3, #4] timeout->handler_name = handler_name; LWIP_DEBUGF(TIMERS_DEBUG, ("sys_timeout: %p abs_time=%"U32_F" handler=%s arg=%p\n", (void *)timeout, abs_time, handler_name, (void *)arg)); #endif /* LWIP_DEBUG_TIMERNAMES */ if (next_timeout == NULL) { - 801747a: 4b24 ldr r3, [pc, #144] ; (801750c ) - 801747c: 681b ldr r3, [r3, #0] - 801747e: 2b00 cmp r3, #0 - 8017480: d103 bne.n 801748a + 801748a: 4b24 ldr r3, [pc, #144] ; (801751c ) + 801748c: 681b ldr r3, [r3, #0] + 801748e: 2b00 cmp r3, #0 + 8017490: d103 bne.n 801749a next_timeout = timeout; - 8017482: 4a22 ldr r2, [pc, #136] ; (801750c ) - 8017484: 693b ldr r3, [r7, #16] - 8017486: 6013 str r3, [r2, #0] + 8017492: 4a22 ldr r2, [pc, #136] ; (801751c ) + 8017494: 693b ldr r3, [r7, #16] + 8017496: 6013 str r3, [r2, #0] return; - 8017488: e037 b.n 80174fa + 8017498: e037 b.n 801750a } if (TIME_LESS_THAN(timeout->time, next_timeout->time)) { - 801748a: 693b ldr r3, [r7, #16] - 801748c: 685a ldr r2, [r3, #4] - 801748e: 4b1f ldr r3, [pc, #124] ; (801750c ) - 8017490: 681b ldr r3, [r3, #0] - 8017492: 685b ldr r3, [r3, #4] - 8017494: 1ad3 subs r3, r2, r3 - 8017496: 0fdb lsrs r3, r3, #31 - 8017498: f003 0301 and.w r3, r3, #1 - 801749c: b2db uxtb r3, r3 - 801749e: 2b00 cmp r3, #0 - 80174a0: d007 beq.n 80174b2 + 801749a: 693b ldr r3, [r7, #16] + 801749c: 685a ldr r2, [r3, #4] + 801749e: 4b1f ldr r3, [pc, #124] ; (801751c ) + 80174a0: 681b ldr r3, [r3, #0] + 80174a2: 685b ldr r3, [r3, #4] + 80174a4: 1ad3 subs r3, r2, r3 + 80174a6: 0fdb lsrs r3, r3, #31 + 80174a8: f003 0301 and.w r3, r3, #1 + 80174ac: b2db uxtb r3, r3 + 80174ae: 2b00 cmp r3, #0 + 80174b0: d007 beq.n 80174c2 timeout->next = next_timeout; - 80174a2: 4b1a ldr r3, [pc, #104] ; (801750c ) - 80174a4: 681a ldr r2, [r3, #0] - 80174a6: 693b ldr r3, [r7, #16] - 80174a8: 601a str r2, [r3, #0] + 80174b2: 4b1a ldr r3, [pc, #104] ; (801751c ) + 80174b4: 681a ldr r2, [r3, #0] + 80174b6: 693b ldr r3, [r7, #16] + 80174b8: 601a str r2, [r3, #0] next_timeout = timeout; - 80174aa: 4a18 ldr r2, [pc, #96] ; (801750c ) - 80174ac: 693b ldr r3, [r7, #16] - 80174ae: 6013 str r3, [r2, #0] - 80174b0: e023 b.n 80174fa + 80174ba: 4a18 ldr r2, [pc, #96] ; (801751c ) + 80174bc: 693b ldr r3, [r7, #16] + 80174be: 6013 str r3, [r2, #0] + 80174c0: e023 b.n 801750a } else { for (t = next_timeout; t != NULL; t = t->next) { - 80174b2: 4b16 ldr r3, [pc, #88] ; (801750c ) - 80174b4: 681b ldr r3, [r3, #0] - 80174b6: 617b str r3, [r7, #20] - 80174b8: e01a b.n 80174f0 + 80174c2: 4b16 ldr r3, [pc, #88] ; (801751c ) + 80174c4: 681b ldr r3, [r3, #0] + 80174c6: 617b str r3, [r7, #20] + 80174c8: e01a b.n 8017500 if ((t->next == NULL) || TIME_LESS_THAN(timeout->time, t->next->time)) { - 80174ba: 697b ldr r3, [r7, #20] - 80174bc: 681b ldr r3, [r3, #0] - 80174be: 2b00 cmp r3, #0 - 80174c0: d00b beq.n 80174da - 80174c2: 693b ldr r3, [r7, #16] - 80174c4: 685a ldr r2, [r3, #4] - 80174c6: 697b ldr r3, [r7, #20] - 80174c8: 681b ldr r3, [r3, #0] - 80174ca: 685b ldr r3, [r3, #4] - 80174cc: 1ad3 subs r3, r2, r3 - 80174ce: 0fdb lsrs r3, r3, #31 - 80174d0: f003 0301 and.w r3, r3, #1 - 80174d4: b2db uxtb r3, r3 - 80174d6: 2b00 cmp r3, #0 - 80174d8: d007 beq.n 80174ea + 80174ca: 697b ldr r3, [r7, #20] + 80174cc: 681b ldr r3, [r3, #0] + 80174ce: 2b00 cmp r3, #0 + 80174d0: d00b beq.n 80174ea + 80174d2: 693b ldr r3, [r7, #16] + 80174d4: 685a ldr r2, [r3, #4] + 80174d6: 697b ldr r3, [r7, #20] + 80174d8: 681b ldr r3, [r3, #0] + 80174da: 685b ldr r3, [r3, #4] + 80174dc: 1ad3 subs r3, r2, r3 + 80174de: 0fdb lsrs r3, r3, #31 + 80174e0: f003 0301 and.w r3, r3, #1 + 80174e4: b2db uxtb r3, r3 + 80174e6: 2b00 cmp r3, #0 + 80174e8: d007 beq.n 80174fa timeout->next = t->next; - 80174da: 697b ldr r3, [r7, #20] - 80174dc: 681a ldr r2, [r3, #0] - 80174de: 693b ldr r3, [r7, #16] - 80174e0: 601a str r2, [r3, #0] + 80174ea: 697b ldr r3, [r7, #20] + 80174ec: 681a ldr r2, [r3, #0] + 80174ee: 693b ldr r3, [r7, #16] + 80174f0: 601a str r2, [r3, #0] t->next = timeout; - 80174e2: 697b ldr r3, [r7, #20] - 80174e4: 693a ldr r2, [r7, #16] - 80174e6: 601a str r2, [r3, #0] + 80174f2: 697b ldr r3, [r7, #20] + 80174f4: 693a ldr r2, [r7, #16] + 80174f6: 601a str r2, [r3, #0] break; - 80174e8: e007 b.n 80174fa + 80174f8: e007 b.n 801750a for (t = next_timeout; t != NULL; t = t->next) { - 80174ea: 697b ldr r3, [r7, #20] - 80174ec: 681b ldr r3, [r3, #0] - 80174ee: 617b str r3, [r7, #20] - 80174f0: 697b ldr r3, [r7, #20] - 80174f2: 2b00 cmp r3, #0 - 80174f4: d1e1 bne.n 80174ba - 80174f6: e000 b.n 80174fa + 80174fa: 697b ldr r3, [r7, #20] + 80174fc: 681b ldr r3, [r3, #0] + 80174fe: 617b str r3, [r7, #20] + 8017500: 697b ldr r3, [r7, #20] + 8017502: 2b00 cmp r3, #0 + 8017504: d1e1 bne.n 80174ca + 8017506: e000 b.n 801750a return; - 80174f8: bf00 nop + 8017508: bf00 nop } } } } - 80174fa: 3718 adds r7, #24 - 80174fc: 46bd mov sp, r7 - 80174fe: bd80 pop {r7, pc} - 8017500: 0801f8dc .word 0x0801f8dc - 8017504: 0801f910 .word 0x0801f910 - 8017508: 0801f950 .word 0x0801f950 - 801750c: 20008754 .word 0x20008754 + 801750a: 3718 adds r7, #24 + 801750c: 46bd mov sp, r7 + 801750e: bd80 pop {r7, pc} + 8017510: 0801f8ec .word 0x0801f8ec + 8017514: 0801f920 .word 0x0801f920 + 8017518: 0801f960 .word 0x0801f960 + 801751c: 20008754 .word 0x20008754 -08017510 : +08017520 : #if !LWIP_TESTMODE static #endif void lwip_cyclic_timer(void *arg) { - 8017510: b580 push {r7, lr} - 8017512: b086 sub sp, #24 - 8017514: af00 add r7, sp, #0 - 8017516: 6078 str r0, [r7, #4] + 8017520: b580 push {r7, lr} + 8017522: b086 sub sp, #24 + 8017524: af00 add r7, sp, #0 + 8017526: 6078 str r0, [r7, #4] u32_t now; u32_t next_timeout_time; const struct lwip_cyclic_timer *cyclic = (const struct lwip_cyclic_timer *)arg; - 8017518: 687b ldr r3, [r7, #4] - 801751a: 617b str r3, [r7, #20] + 8017528: 687b ldr r3, [r7, #4] + 801752a: 617b str r3, [r7, #20] #if LWIP_DEBUG_TIMERNAMES LWIP_DEBUGF(TIMERS_DEBUG, ("tcpip: %s()\n", cyclic->handler_name)); #endif cyclic->handler(); - 801751c: 697b ldr r3, [r7, #20] - 801751e: 685b ldr r3, [r3, #4] - 8017520: 4798 blx r3 + 801752c: 697b ldr r3, [r7, #20] + 801752e: 685b ldr r3, [r3, #4] + 8017530: 4798 blx r3 now = sys_now(); - 8017522: f7f5 fcef bl 800cf04 - 8017526: 6138 str r0, [r7, #16] + 8017532: f7f5 fce9 bl 800cf08 + 8017536: 6138 str r0, [r7, #16] next_timeout_time = (u32_t)(current_timeout_due_time + cyclic->interval_ms); /* overflow handled by TIME_LESS_THAN macro */ - 8017528: 697b ldr r3, [r7, #20] - 801752a: 681a ldr r2, [r3, #0] - 801752c: 4b0f ldr r3, [pc, #60] ; (801756c ) - 801752e: 681b ldr r3, [r3, #0] - 8017530: 4413 add r3, r2 - 8017532: 60fb str r3, [r7, #12] + 8017538: 697b ldr r3, [r7, #20] + 801753a: 681a ldr r2, [r3, #0] + 801753c: 4b0f ldr r3, [pc, #60] ; (801757c ) + 801753e: 681b ldr r3, [r3, #0] + 8017540: 4413 add r3, r2 + 8017542: 60fb str r3, [r7, #12] if (TIME_LESS_THAN(next_timeout_time, now)) { - 8017534: 68fa ldr r2, [r7, #12] - 8017536: 693b ldr r3, [r7, #16] - 8017538: 1ad3 subs r3, r2, r3 - 801753a: 0fdb lsrs r3, r3, #31 - 801753c: f003 0301 and.w r3, r3, #1 - 8017540: b2db uxtb r3, r3 - 8017542: 2b00 cmp r3, #0 - 8017544: d009 beq.n 801755a + 8017544: 68fa ldr r2, [r7, #12] + 8017546: 693b ldr r3, [r7, #16] + 8017548: 1ad3 subs r3, r2, r3 + 801754a: 0fdb lsrs r3, r3, #31 + 801754c: f003 0301 and.w r3, r3, #1 + 8017550: b2db uxtb r3, r3 + 8017552: 2b00 cmp r3, #0 + 8017554: d009 beq.n 801756a /* timer would immediately expire again -> "overload" -> restart without any correction */ #if LWIP_DEBUG_TIMERNAMES sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg, cyclic->handler_name); #else sys_timeout_abs((u32_t)(now + cyclic->interval_ms), lwip_cyclic_timer, arg); - 8017546: 697b ldr r3, [r7, #20] - 8017548: 681a ldr r2, [r3, #0] - 801754a: 693b ldr r3, [r7, #16] - 801754c: 4413 add r3, r2 - 801754e: 687a ldr r2, [r7, #4] - 8017550: 4907 ldr r1, [pc, #28] ; (8017570 ) - 8017552: 4618 mov r0, r3 - 8017554: f7ff ff6e bl 8017434 + 8017556: 697b ldr r3, [r7, #20] + 8017558: 681a ldr r2, [r3, #0] + 801755a: 693b ldr r3, [r7, #16] + 801755c: 4413 add r3, r2 + 801755e: 687a ldr r2, [r7, #4] + 8017560: 4907 ldr r1, [pc, #28] ; (8017580 ) + 8017562: 4618 mov r0, r3 + 8017564: f7ff ff6e bl 8017444 sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg, cyclic->handler_name); #else sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg); #endif } } - 8017558: e004 b.n 8017564 + 8017568: e004 b.n 8017574 sys_timeout_abs(next_timeout_time, lwip_cyclic_timer, arg); - 801755a: 687a ldr r2, [r7, #4] - 801755c: 4904 ldr r1, [pc, #16] ; (8017570 ) - 801755e: 68f8 ldr r0, [r7, #12] - 8017560: f7ff ff68 bl 8017434 + 801756a: 687a ldr r2, [r7, #4] + 801756c: 4904 ldr r1, [pc, #16] ; (8017580 ) + 801756e: 68f8 ldr r0, [r7, #12] + 8017570: f7ff ff68 bl 8017444 } - 8017564: bf00 nop - 8017566: 3718 adds r7, #24 - 8017568: 46bd mov sp, r7 - 801756a: bd80 pop {r7, pc} - 801756c: 20008758 .word 0x20008758 - 8017570: 08017511 .word 0x08017511 + 8017574: bf00 nop + 8017576: 3718 adds r7, #24 + 8017578: 46bd mov sp, r7 + 801757a: bd80 pop {r7, pc} + 801757c: 20008758 .word 0x20008758 + 8017580: 08017521 .word 0x08017521 -08017574 : +08017584 : /** Initialize this module */ void sys_timeouts_init(void) { - 8017574: b580 push {r7, lr} - 8017576: b082 sub sp, #8 - 8017578: af00 add r7, sp, #0 + 8017584: b580 push {r7, lr} + 8017586: b082 sub sp, #8 + 8017588: af00 add r7, sp, #0 size_t i; /* tcp_tmr() at index 0 is started on demand */ for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) { - 801757a: 2301 movs r3, #1 - 801757c: 607b str r3, [r7, #4] - 801757e: e00e b.n 801759e + 801758a: 2301 movs r3, #1 + 801758c: 607b str r3, [r7, #4] + 801758e: e00e b.n 80175ae /* we have to cast via size_t to get rid of const warning (this is OK as cyclic_timer() casts back to const* */ sys_timeout(lwip_cyclic_timers[i].interval_ms, lwip_cyclic_timer, LWIP_CONST_CAST(void *, &lwip_cyclic_timers[i])); - 8017580: 4a0a ldr r2, [pc, #40] ; (80175ac ) - 8017582: 687b ldr r3, [r7, #4] - 8017584: f852 0033 ldr.w r0, [r2, r3, lsl #3] - 8017588: 687b ldr r3, [r7, #4] - 801758a: 00db lsls r3, r3, #3 - 801758c: 4a07 ldr r2, [pc, #28] ; (80175ac ) - 801758e: 4413 add r3, r2 - 8017590: 461a mov r2, r3 - 8017592: 4907 ldr r1, [pc, #28] ; (80175b0 ) - 8017594: f000 f80e bl 80175b4 - for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) { + 8017590: 4a0a ldr r2, [pc, #40] ; (80175bc ) + 8017592: 687b ldr r3, [r7, #4] + 8017594: f852 0033 ldr.w r0, [r2, r3, lsl #3] 8017598: 687b ldr r3, [r7, #4] - 801759a: 3301 adds r3, #1 - 801759c: 607b str r3, [r7, #4] - 801759e: 687b ldr r3, [r7, #4] - 80175a0: 2b04 cmp r3, #4 - 80175a2: d9ed bls.n 8017580 - } -} - 80175a4: bf00 nop - 80175a6: 3708 adds r7, #8 - 80175a8: 46bd mov sp, r7 - 80175aa: bd80 pop {r7, pc} - 80175ac: 080227d0 .word 0x080227d0 - 80175b0: 08017511 .word 0x08017511 - -080175b4 : + 801759a: 00db lsls r3, r3, #3 + 801759c: 4a07 ldr r2, [pc, #28] ; (80175bc ) + 801759e: 4413 add r3, r2 + 80175a0: 461a mov r2, r3 + 80175a2: 4907 ldr r1, [pc, #28] ; (80175c0 ) + 80175a4: f000 f80e bl 80175c4 + for (i = (LWIP_TCP ? 1 : 0); i < LWIP_ARRAYSIZE(lwip_cyclic_timers); i++) { + 80175a8: 687b ldr r3, [r7, #4] + 80175aa: 3301 adds r3, #1 + 80175ac: 607b str r3, [r7, #4] + 80175ae: 687b ldr r3, [r7, #4] + 80175b0: 2b04 cmp r3, #4 + 80175b2: d9ed bls.n 8017590 + } +} + 80175b4: bf00 nop + 80175b6: 3708 adds r7, #8 + 80175b8: 46bd mov sp, r7 + 80175ba: bd80 pop {r7, pc} + 80175bc: 080227e0 .word 0x080227e0 + 80175c0: 08017521 .word 0x08017521 + +080175c4 : sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char *handler_name) #else /* LWIP_DEBUG_TIMERNAMES */ void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg) #endif /* LWIP_DEBUG_TIMERNAMES */ { - 80175b4: b580 push {r7, lr} - 80175b6: b086 sub sp, #24 - 80175b8: af00 add r7, sp, #0 - 80175ba: 60f8 str r0, [r7, #12] - 80175bc: 60b9 str r1, [r7, #8] - 80175be: 607a str r2, [r7, #4] + 80175c4: b580 push {r7, lr} + 80175c6: b086 sub sp, #24 + 80175c8: af00 add r7, sp, #0 + 80175ca: 60f8 str r0, [r7, #12] + 80175cc: 60b9 str r1, [r7, #8] + 80175ce: 607a str r2, [r7, #4] u32_t next_timeout_time; LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("Timeout time too long, max is LWIP_UINT32_MAX/4 msecs", msecs <= (LWIP_UINT32_MAX / 4)); - 80175c0: 68fb ldr r3, [r7, #12] - 80175c2: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 - 80175c6: d306 bcc.n 80175d6 - 80175c8: 4b0a ldr r3, [pc, #40] ; (80175f4 ) - 80175ca: f240 1229 movw r2, #297 ; 0x129 - 80175ce: 490a ldr r1, [pc, #40] ; (80175f8 ) - 80175d0: 480a ldr r0, [pc, #40] ; (80175fc ) - 80175d2: f005 f839 bl 801c648 + 80175d0: 68fb ldr r3, [r7, #12] + 80175d2: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 + 80175d6: d306 bcc.n 80175e6 + 80175d8: 4b0a ldr r3, [pc, #40] ; (8017604 ) + 80175da: f240 1229 movw r2, #297 ; 0x129 + 80175de: 490a ldr r1, [pc, #40] ; (8017608 ) + 80175e0: 480a ldr r0, [pc, #40] ; (801760c ) + 80175e2: f005 f839 bl 801c658 next_timeout_time = (u32_t)(sys_now() + msecs); /* overflow handled by TIME_LESS_THAN macro */ - 80175d6: f7f5 fc95 bl 800cf04 - 80175da: 4602 mov r2, r0 - 80175dc: 68fb ldr r3, [r7, #12] - 80175de: 4413 add r3, r2 - 80175e0: 617b str r3, [r7, #20] + 80175e6: f7f5 fc8f bl 800cf08 + 80175ea: 4602 mov r2, r0 + 80175ec: 68fb ldr r3, [r7, #12] + 80175ee: 4413 add r3, r2 + 80175f0: 617b str r3, [r7, #20] #if LWIP_DEBUG_TIMERNAMES sys_timeout_abs(next_timeout_time, handler, arg, handler_name); #else sys_timeout_abs(next_timeout_time, handler, arg); - 80175e2: 687a ldr r2, [r7, #4] - 80175e4: 68b9 ldr r1, [r7, #8] - 80175e6: 6978 ldr r0, [r7, #20] - 80175e8: f7ff ff24 bl 8017434 + 80175f2: 687a ldr r2, [r7, #4] + 80175f4: 68b9 ldr r1, [r7, #8] + 80175f6: 6978 ldr r0, [r7, #20] + 80175f8: f7ff ff24 bl 8017444 #endif } - 80175ec: bf00 nop - 80175ee: 3718 adds r7, #24 - 80175f0: 46bd mov sp, r7 - 80175f2: bd80 pop {r7, pc} - 80175f4: 0801f8dc .word 0x0801f8dc - 80175f8: 0801f978 .word 0x0801f978 - 80175fc: 0801f950 .word 0x0801f950 + 80175fc: bf00 nop + 80175fe: 3718 adds r7, #24 + 8017600: 46bd mov sp, r7 + 8017602: bd80 pop {r7, pc} + 8017604: 0801f8ec .word 0x0801f8ec + 8017608: 0801f988 .word 0x0801f988 + 801760c: 0801f960 .word 0x0801f960 -08017600 : +08017610 : * * Must be called periodically from your main loop. */ void sys_check_timeouts(void) { - 8017600: b580 push {r7, lr} - 8017602: b084 sub sp, #16 - 8017604: af00 add r7, sp, #0 + 8017610: b580 push {r7, lr} + 8017612: b084 sub sp, #16 + 8017614: af00 add r7, sp, #0 u32_t now; LWIP_ASSERT_CORE_LOCKED(); /* Process only timers expired at the start of the function. */ now = sys_now(); - 8017606: f7f5 fc7d bl 800cf04 - 801760a: 60f8 str r0, [r7, #12] + 8017616: f7f5 fc77 bl 800cf08 + 801761a: 60f8 str r0, [r7, #12] sys_timeout_handler handler; void *arg; PBUF_CHECK_FREE_OOSEQ(); tmptimeout = next_timeout; - 801760c: 4b17 ldr r3, [pc, #92] ; (801766c ) - 801760e: 681b ldr r3, [r3, #0] - 8017610: 60bb str r3, [r7, #8] + 801761c: 4b17 ldr r3, [pc, #92] ; (801767c ) + 801761e: 681b ldr r3, [r3, #0] + 8017620: 60bb str r3, [r7, #8] if (tmptimeout == NULL) { - 8017612: 68bb ldr r3, [r7, #8] - 8017614: 2b00 cmp r3, #0 - 8017616: d022 beq.n 801765e + 8017622: 68bb ldr r3, [r7, #8] + 8017624: 2b00 cmp r3, #0 + 8017626: d022 beq.n 801766e return; } if (TIME_LESS_THAN(now, tmptimeout->time)) { - 8017618: 68bb ldr r3, [r7, #8] - 801761a: 685b ldr r3, [r3, #4] - 801761c: 68fa ldr r2, [r7, #12] - 801761e: 1ad3 subs r3, r2, r3 - 8017620: 0fdb lsrs r3, r3, #31 - 8017622: f003 0301 and.w r3, r3, #1 - 8017626: b2db uxtb r3, r3 - 8017628: 2b00 cmp r3, #0 - 801762a: d11a bne.n 8017662 + 8017628: 68bb ldr r3, [r7, #8] + 801762a: 685b ldr r3, [r3, #4] + 801762c: 68fa ldr r2, [r7, #12] + 801762e: 1ad3 subs r3, r2, r3 + 8017630: 0fdb lsrs r3, r3, #31 + 8017632: f003 0301 and.w r3, r3, #1 + 8017636: b2db uxtb r3, r3 + 8017638: 2b00 cmp r3, #0 + 801763a: d11a bne.n 8017672 return; } /* Timeout has expired */ next_timeout = tmptimeout->next; - 801762c: 68bb ldr r3, [r7, #8] - 801762e: 681b ldr r3, [r3, #0] - 8017630: 4a0e ldr r2, [pc, #56] ; (801766c ) - 8017632: 6013 str r3, [r2, #0] + 801763c: 68bb ldr r3, [r7, #8] + 801763e: 681b ldr r3, [r3, #0] + 8017640: 4a0e ldr r2, [pc, #56] ; (801767c ) + 8017642: 6013 str r3, [r2, #0] handler = tmptimeout->h; - 8017634: 68bb ldr r3, [r7, #8] - 8017636: 689b ldr r3, [r3, #8] - 8017638: 607b str r3, [r7, #4] + 8017644: 68bb ldr r3, [r7, #8] + 8017646: 689b ldr r3, [r3, #8] + 8017648: 607b str r3, [r7, #4] arg = tmptimeout->arg; - 801763a: 68bb ldr r3, [r7, #8] - 801763c: 68db ldr r3, [r3, #12] - 801763e: 603b str r3, [r7, #0] + 801764a: 68bb ldr r3, [r7, #8] + 801764c: 68db ldr r3, [r3, #12] + 801764e: 603b str r3, [r7, #0] current_timeout_due_time = tmptimeout->time; - 8017640: 68bb ldr r3, [r7, #8] - 8017642: 685b ldr r3, [r3, #4] - 8017644: 4a0a ldr r2, [pc, #40] ; (8017670 ) - 8017646: 6013 str r3, [r2, #0] + 8017650: 68bb ldr r3, [r7, #8] + 8017652: 685b ldr r3, [r3, #4] + 8017654: 4a0a ldr r2, [pc, #40] ; (8017680 ) + 8017656: 6013 str r3, [r2, #0] if (handler != NULL) { LWIP_DEBUGF(TIMERS_DEBUG, ("sct calling h=%s t=%"U32_F" arg=%p\n", tmptimeout->handler_name, sys_now() - tmptimeout->time, arg)); } #endif /* LWIP_DEBUG_TIMERNAMES */ memp_free(MEMP_SYS_TIMEOUT, tmptimeout); - 8017648: 68b9 ldr r1, [r7, #8] - 801764a: 200a movs r0, #10 - 801764c: f7f9 fc20 bl 8010e90 + 8017658: 68b9 ldr r1, [r7, #8] + 801765a: 200a movs r0, #10 + 801765c: f7f9 fc20 bl 8010ea0 if (handler != NULL) { - 8017650: 687b ldr r3, [r7, #4] - 8017652: 2b00 cmp r3, #0 - 8017654: d0da beq.n 801760c + 8017660: 687b ldr r3, [r7, #4] + 8017662: 2b00 cmp r3, #0 + 8017664: d0da beq.n 801761c handler(arg); - 8017656: 687b ldr r3, [r7, #4] - 8017658: 6838 ldr r0, [r7, #0] - 801765a: 4798 blx r3 + 8017666: 687b ldr r3, [r7, #4] + 8017668: 6838 ldr r0, [r7, #0] + 801766a: 4798 blx r3 do { - 801765c: e7d6 b.n 801760c + 801766c: e7d6 b.n 801761c return; - 801765e: bf00 nop - 8017660: e000 b.n 8017664 + 801766e: bf00 nop + 8017670: e000 b.n 8017674 return; - 8017662: bf00 nop + 8017672: bf00 nop } LWIP_TCPIP_THREAD_ALIVE(); /* Repeat until all expired timers have been called */ } while (1); } - 8017664: 3710 adds r7, #16 - 8017666: 46bd mov sp, r7 - 8017668: bd80 pop {r7, pc} - 801766a: bf00 nop - 801766c: 20008754 .word 0x20008754 - 8017670: 20008758 .word 0x20008758 + 8017674: 3710 adds r7, #16 + 8017676: 46bd mov sp, r7 + 8017678: bd80 pop {r7, pc} + 801767a: bf00 nop + 801767c: 20008754 .word 0x20008754 + 8017680: 20008758 .word 0x20008758 -08017674 : +08017684 : /** Return the time left before the next timeout is due. If no timeouts are * enqueued, returns 0xffffffff */ u32_t sys_timeouts_sleeptime(void) { - 8017674: b580 push {r7, lr} - 8017676: b082 sub sp, #8 - 8017678: af00 add r7, sp, #0 + 8017684: b580 push {r7, lr} + 8017686: b082 sub sp, #8 + 8017688: af00 add r7, sp, #0 u32_t now; LWIP_ASSERT_CORE_LOCKED(); if (next_timeout == NULL) { - 801767a: 4b16 ldr r3, [pc, #88] ; (80176d4 ) - 801767c: 681b ldr r3, [r3, #0] - 801767e: 2b00 cmp r3, #0 - 8017680: d102 bne.n 8017688 + 801768a: 4b16 ldr r3, [pc, #88] ; (80176e4 ) + 801768c: 681b ldr r3, [r3, #0] + 801768e: 2b00 cmp r3, #0 + 8017690: d102 bne.n 8017698 return SYS_TIMEOUTS_SLEEPTIME_INFINITE; - 8017682: f04f 33ff mov.w r3, #4294967295 - 8017686: e020 b.n 80176ca + 8017692: f04f 33ff mov.w r3, #4294967295 + 8017696: e020 b.n 80176da } now = sys_now(); - 8017688: f7f5 fc3c bl 800cf04 - 801768c: 6078 str r0, [r7, #4] + 8017698: f7f5 fc36 bl 800cf08 + 801769c: 6078 str r0, [r7, #4] if (TIME_LESS_THAN(next_timeout->time, now)) { - 801768e: 4b11 ldr r3, [pc, #68] ; (80176d4 ) - 8017690: 681b ldr r3, [r3, #0] - 8017692: 685a ldr r2, [r3, #4] - 8017694: 687b ldr r3, [r7, #4] - 8017696: 1ad3 subs r3, r2, r3 - 8017698: 0fdb lsrs r3, r3, #31 - 801769a: f003 0301 and.w r3, r3, #1 - 801769e: b2db uxtb r3, r3 - 80176a0: 2b00 cmp r3, #0 - 80176a2: d001 beq.n 80176a8 + 801769e: 4b11 ldr r3, [pc, #68] ; (80176e4 ) + 80176a0: 681b ldr r3, [r3, #0] + 80176a2: 685a ldr r2, [r3, #4] + 80176a4: 687b ldr r3, [r7, #4] + 80176a6: 1ad3 subs r3, r2, r3 + 80176a8: 0fdb lsrs r3, r3, #31 + 80176aa: f003 0301 and.w r3, r3, #1 + 80176ae: b2db uxtb r3, r3 + 80176b0: 2b00 cmp r3, #0 + 80176b2: d001 beq.n 80176b8 return 0; - 80176a4: 2300 movs r3, #0 - 80176a6: e010 b.n 80176ca + 80176b4: 2300 movs r3, #0 + 80176b6: e010 b.n 80176da } else { u32_t ret = (u32_t)(next_timeout->time - now); - 80176a8: 4b0a ldr r3, [pc, #40] ; (80176d4 ) - 80176aa: 681b ldr r3, [r3, #0] - 80176ac: 685a ldr r2, [r3, #4] - 80176ae: 687b ldr r3, [r7, #4] - 80176b0: 1ad3 subs r3, r2, r3 - 80176b2: 603b str r3, [r7, #0] + 80176b8: 4b0a ldr r3, [pc, #40] ; (80176e4 ) + 80176ba: 681b ldr r3, [r3, #0] + 80176bc: 685a ldr r2, [r3, #4] + 80176be: 687b ldr r3, [r7, #4] + 80176c0: 1ad3 subs r3, r2, r3 + 80176c2: 603b str r3, [r7, #0] LWIP_ASSERT("invalid sleeptime", ret <= LWIP_MAX_TIMEOUT); - 80176b4: 683b ldr r3, [r7, #0] - 80176b6: 2b00 cmp r3, #0 - 80176b8: da06 bge.n 80176c8 - 80176ba: 4b07 ldr r3, [pc, #28] ; (80176d8 ) - 80176bc: f44f 72dc mov.w r2, #440 ; 0x1b8 - 80176c0: 4906 ldr r1, [pc, #24] ; (80176dc ) - 80176c2: 4807 ldr r0, [pc, #28] ; (80176e0 ) - 80176c4: f004 ffc0 bl 801c648 + 80176c4: 683b ldr r3, [r7, #0] + 80176c6: 2b00 cmp r3, #0 + 80176c8: da06 bge.n 80176d8 + 80176ca: 4b07 ldr r3, [pc, #28] ; (80176e8 ) + 80176cc: f44f 72dc mov.w r2, #440 ; 0x1b8 + 80176d0: 4906 ldr r1, [pc, #24] ; (80176ec ) + 80176d2: 4807 ldr r0, [pc, #28] ; (80176f0 ) + 80176d4: f004 ffc0 bl 801c658 return ret; - 80176c8: 683b ldr r3, [r7, #0] + 80176d8: 683b ldr r3, [r7, #0] } } - 80176ca: 4618 mov r0, r3 - 80176cc: 3708 adds r7, #8 - 80176ce: 46bd mov sp, r7 - 80176d0: bd80 pop {r7, pc} - 80176d2: bf00 nop - 80176d4: 20008754 .word 0x20008754 - 80176d8: 0801f8dc .word 0x0801f8dc - 80176dc: 0801f9b0 .word 0x0801f9b0 - 80176e0: 0801f950 .word 0x0801f950 + 80176da: 4618 mov r0, r3 + 80176dc: 3708 adds r7, #8 + 80176de: 46bd mov sp, r7 + 80176e0: bd80 pop {r7, pc} + 80176e2: bf00 nop + 80176e4: 20008754 .word 0x20008754 + 80176e8: 0801f8ec .word 0x0801f8ec + 80176ec: 0801f9c0 .word 0x0801f9c0 + 80176f0: 0801f960 .word 0x0801f960 -080176e4 : +080176f4 : /** * Initialize this module. */ void udp_init(void) { - 80176e4: b580 push {r7, lr} - 80176e6: af00 add r7, sp, #0 + 80176f4: b580 push {r7, lr} + 80176f6: af00 add r7, sp, #0 #ifdef LWIP_RAND udp_port = UDP_ENSURE_LOCAL_PORT_RANGE(LWIP_RAND()); - 80176e8: f004 ffc6 bl 801c678 - 80176ec: 4603 mov r3, r0 - 80176ee: b29b uxth r3, r3 - 80176f0: f3c3 030d ubfx r3, r3, #0, #14 - 80176f4: b29b uxth r3, r3 - 80176f6: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 - 80176fa: b29a uxth r2, r3 - 80176fc: 4b01 ldr r3, [pc, #4] ; (8017704 ) - 80176fe: 801a strh r2, [r3, #0] + 80176f8: f004 ffc6 bl 801c688 + 80176fc: 4603 mov r3, r0 + 80176fe: b29b uxth r3, r3 + 8017700: f3c3 030d ubfx r3, r3, #0, #14 + 8017704: b29b uxth r3, r3 + 8017706: f5a3 4380 sub.w r3, r3, #16384 ; 0x4000 + 801770a: b29a uxth r2, r3 + 801770c: 4b01 ldr r3, [pc, #4] ; (8017714 ) + 801770e: 801a strh r2, [r3, #0] #endif /* LWIP_RAND */ } - 8017700: bf00 nop - 8017702: bd80 pop {r7, pc} - 8017704: 20000070 .word 0x20000070 + 8017710: bf00 nop + 8017712: bd80 pop {r7, pc} + 8017714: 20000070 .word 0x20000070 -08017708 : +08017718 : * * @return a new (free) local UDP port number */ static u16_t udp_new_port(void) { - 8017708: b480 push {r7} - 801770a: b083 sub sp, #12 - 801770c: af00 add r7, sp, #0 + 8017718: b480 push {r7} + 801771a: b083 sub sp, #12 + 801771c: af00 add r7, sp, #0 u16_t n = 0; - 801770e: 2300 movs r3, #0 - 8017710: 80fb strh r3, [r7, #6] + 801771e: 2300 movs r3, #0 + 8017720: 80fb strh r3, [r7, #6] struct udp_pcb *pcb; again: if (udp_port++ == UDP_LOCAL_PORT_RANGE_END) { - 8017712: 4b17 ldr r3, [pc, #92] ; (8017770 ) - 8017714: 881b ldrh r3, [r3, #0] - 8017716: 1c5a adds r2, r3, #1 - 8017718: b291 uxth r1, r2 - 801771a: 4a15 ldr r2, [pc, #84] ; (8017770 ) - 801771c: 8011 strh r1, [r2, #0] - 801771e: f64f 72ff movw r2, #65535 ; 0xffff - 8017722: 4293 cmp r3, r2 - 8017724: d103 bne.n 801772e + 8017722: 4b17 ldr r3, [pc, #92] ; (8017780 ) + 8017724: 881b ldrh r3, [r3, #0] + 8017726: 1c5a adds r2, r3, #1 + 8017728: b291 uxth r1, r2 + 801772a: 4a15 ldr r2, [pc, #84] ; (8017780 ) + 801772c: 8011 strh r1, [r2, #0] + 801772e: f64f 72ff movw r2, #65535 ; 0xffff + 8017732: 4293 cmp r3, r2 + 8017734: d103 bne.n 801773e udp_port = UDP_LOCAL_PORT_RANGE_START; - 8017726: 4b12 ldr r3, [pc, #72] ; (8017770 ) - 8017728: f44f 4240 mov.w r2, #49152 ; 0xc000 - 801772c: 801a strh r2, [r3, #0] + 8017736: 4b12 ldr r3, [pc, #72] ; (8017780 ) + 8017738: f44f 4240 mov.w r2, #49152 ; 0xc000 + 801773c: 801a strh r2, [r3, #0] } /* Check all PCBs. */ for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 801772e: 4b11 ldr r3, [pc, #68] ; (8017774 ) - 8017730: 681b ldr r3, [r3, #0] - 8017732: 603b str r3, [r7, #0] - 8017734: e011 b.n 801775a + 801773e: 4b11 ldr r3, [pc, #68] ; (8017784 ) + 8017740: 681b ldr r3, [r3, #0] + 8017742: 603b str r3, [r7, #0] + 8017744: e011 b.n 801776a if (pcb->local_port == udp_port) { - 8017736: 683b ldr r3, [r7, #0] - 8017738: 8a5a ldrh r2, [r3, #18] - 801773a: 4b0d ldr r3, [pc, #52] ; (8017770 ) - 801773c: 881b ldrh r3, [r3, #0] - 801773e: 429a cmp r2, r3 - 8017740: d108 bne.n 8017754 + 8017746: 683b ldr r3, [r7, #0] + 8017748: 8a5a ldrh r2, [r3, #18] + 801774a: 4b0d ldr r3, [pc, #52] ; (8017780 ) + 801774c: 881b ldrh r3, [r3, #0] + 801774e: 429a cmp r2, r3 + 8017750: d108 bne.n 8017764 if (++n > (UDP_LOCAL_PORT_RANGE_END - UDP_LOCAL_PORT_RANGE_START)) { - 8017742: 88fb ldrh r3, [r7, #6] - 8017744: 3301 adds r3, #1 - 8017746: 80fb strh r3, [r7, #6] - 8017748: 88fb ldrh r3, [r7, #6] - 801774a: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 - 801774e: d3e0 bcc.n 8017712 + 8017752: 88fb ldrh r3, [r7, #6] + 8017754: 3301 adds r3, #1 + 8017756: 80fb strh r3, [r7, #6] + 8017758: 88fb ldrh r3, [r7, #6] + 801775a: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 + 801775e: d3e0 bcc.n 8017722 return 0; - 8017750: 2300 movs r3, #0 - 8017752: e007 b.n 8017764 + 8017760: 2300 movs r3, #0 + 8017762: e007 b.n 8017774 for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 8017754: 683b ldr r3, [r7, #0] - 8017756: 68db ldr r3, [r3, #12] - 8017758: 603b str r3, [r7, #0] - 801775a: 683b ldr r3, [r7, #0] - 801775c: 2b00 cmp r3, #0 - 801775e: d1ea bne.n 8017736 + 8017764: 683b ldr r3, [r7, #0] + 8017766: 68db ldr r3, [r3, #12] + 8017768: 603b str r3, [r7, #0] + 801776a: 683b ldr r3, [r7, #0] + 801776c: 2b00 cmp r3, #0 + 801776e: d1ea bne.n 8017746 } goto again; } } return udp_port; - 8017760: 4b03 ldr r3, [pc, #12] ; (8017770 ) - 8017762: 881b ldrh r3, [r3, #0] -} - 8017764: 4618 mov r0, r3 - 8017766: 370c adds r7, #12 - 8017768: 46bd mov sp, r7 - 801776a: f85d 7b04 ldr.w r7, [sp], #4 - 801776e: 4770 bx lr - 8017770: 20000070 .word 0x20000070 - 8017774: 2000f808 .word 0x2000f808 - -08017778 : + 8017770: 4b03 ldr r3, [pc, #12] ; (8017780 ) + 8017772: 881b ldrh r3, [r3, #0] +} + 8017774: 4618 mov r0, r3 + 8017776: 370c adds r7, #12 + 8017778: 46bd mov sp, r7 + 801777a: f85d 7b04 ldr.w r7, [sp], #4 + 801777e: 4770 bx lr + 8017780: 20000070 .word 0x20000070 + 8017784: 2000f808 .word 0x2000f808 + +08017788 : * @param broadcast 1 if his is an IPv4 broadcast (global or subnet-only), 0 otherwise (only used for IPv4) * @return 1 on match, 0 otherwise */ static u8_t udp_input_local_match(struct udp_pcb *pcb, struct netif *inp, u8_t broadcast) { - 8017778: b580 push {r7, lr} - 801777a: b084 sub sp, #16 - 801777c: af00 add r7, sp, #0 - 801777e: 60f8 str r0, [r7, #12] - 8017780: 60b9 str r1, [r7, #8] - 8017782: 4613 mov r3, r2 - 8017784: 71fb strb r3, [r7, #7] + 8017788: b580 push {r7, lr} + 801778a: b084 sub sp, #16 + 801778c: af00 add r7, sp, #0 + 801778e: 60f8 str r0, [r7, #12] + 8017790: 60b9 str r1, [r7, #8] + 8017792: 4613 mov r3, r2 + 8017794: 71fb strb r3, [r7, #7] LWIP_UNUSED_ARG(inp); /* in IPv6 only case */ LWIP_UNUSED_ARG(broadcast); /* in IPv6 only case */ LWIP_ASSERT("udp_input_local_match: invalid pcb", pcb != NULL); - 8017786: 68fb ldr r3, [r7, #12] - 8017788: 2b00 cmp r3, #0 - 801778a: d105 bne.n 8017798 - 801778c: 4b27 ldr r3, [pc, #156] ; (801782c ) - 801778e: 2287 movs r2, #135 ; 0x87 - 8017790: 4927 ldr r1, [pc, #156] ; (8017830 ) - 8017792: 4828 ldr r0, [pc, #160] ; (8017834 ) - 8017794: f004 ff58 bl 801c648 + 8017796: 68fb ldr r3, [r7, #12] + 8017798: 2b00 cmp r3, #0 + 801779a: d105 bne.n 80177a8 + 801779c: 4b27 ldr r3, [pc, #156] ; (801783c ) + 801779e: 2287 movs r2, #135 ; 0x87 + 80177a0: 4927 ldr r1, [pc, #156] ; (8017840 ) + 80177a2: 4828 ldr r0, [pc, #160] ; (8017844 ) + 80177a4: f004 ff58 bl 801c658 LWIP_ASSERT("udp_input_local_match: invalid netif", inp != NULL); - 8017798: 68bb ldr r3, [r7, #8] - 801779a: 2b00 cmp r3, #0 - 801779c: d105 bne.n 80177aa - 801779e: 4b23 ldr r3, [pc, #140] ; (801782c ) - 80177a0: 2288 movs r2, #136 ; 0x88 - 80177a2: 4925 ldr r1, [pc, #148] ; (8017838 ) - 80177a4: 4823 ldr r0, [pc, #140] ; (8017834 ) - 80177a6: f004 ff4f bl 801c648 + 80177a8: 68bb ldr r3, [r7, #8] + 80177aa: 2b00 cmp r3, #0 + 80177ac: d105 bne.n 80177ba + 80177ae: 4b23 ldr r3, [pc, #140] ; (801783c ) + 80177b0: 2288 movs r2, #136 ; 0x88 + 80177b2: 4925 ldr r1, [pc, #148] ; (8017848 ) + 80177b4: 4823 ldr r0, [pc, #140] ; (8017844 ) + 80177b6: f004 ff4f bl 801c658 /* check if PCB is bound to specific netif */ if ((pcb->netif_idx != NETIF_NO_INDEX) && - 80177aa: 68fb ldr r3, [r7, #12] - 80177ac: 7a1b ldrb r3, [r3, #8] - 80177ae: 2b00 cmp r3, #0 - 80177b0: d00b beq.n 80177ca + 80177ba: 68fb ldr r3, [r7, #12] + 80177bc: 7a1b ldrb r3, [r3, #8] + 80177be: 2b00 cmp r3, #0 + 80177c0: d00b beq.n 80177da (pcb->netif_idx != netif_get_index(ip_data.current_input_netif))) { - 80177b2: 68fb ldr r3, [r7, #12] - 80177b4: 7a1a ldrb r2, [r3, #8] - 80177b6: 4b21 ldr r3, [pc, #132] ; (801783c ) - 80177b8: 685b ldr r3, [r3, #4] - 80177ba: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 80177be: 3301 adds r3, #1 - 80177c0: b2db uxtb r3, r3 + 80177c2: 68fb ldr r3, [r7, #12] + 80177c4: 7a1a ldrb r2, [r3, #8] + 80177c6: 4b21 ldr r3, [pc, #132] ; (801784c ) + 80177c8: 685b ldr r3, [r3, #4] + 80177ca: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 80177ce: 3301 adds r3, #1 + 80177d0: b2db uxtb r3, r3 if ((pcb->netif_idx != NETIF_NO_INDEX) && - 80177c2: 429a cmp r2, r3 - 80177c4: d001 beq.n 80177ca + 80177d2: 429a cmp r2, r3 + 80177d4: d001 beq.n 80177da return 0; - 80177c6: 2300 movs r3, #0 - 80177c8: e02b b.n 8017822 + 80177d6: 2300 movs r3, #0 + 80177d8: e02b b.n 8017832 /* Only need to check PCB if incoming IP version matches PCB IP version */ if (IP_ADDR_PCB_VERSION_MATCH_EXACT(pcb, ip_current_dest_addr())) { #if LWIP_IPV4 /* Special case: IPv4 broadcast: all or broadcasts in my subnet * Note: broadcast variable can only be 1 if it is an IPv4 broadcast */ if (broadcast != 0) { - 80177ca: 79fb ldrb r3, [r7, #7] - 80177cc: 2b00 cmp r3, #0 - 80177ce: d018 beq.n 8017802 + 80177da: 79fb ldrb r3, [r7, #7] + 80177dc: 2b00 cmp r3, #0 + 80177de: d018 beq.n 8017812 #if IP_SOF_BROADCAST_RECV if (ip_get_option(pcb, SOF_BROADCAST)) #endif /* IP_SOF_BROADCAST_RECV */ { if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 80177d0: 68fb ldr r3, [r7, #12] - 80177d2: 2b00 cmp r3, #0 - 80177d4: d013 beq.n 80177fe - 80177d6: 68fb ldr r3, [r7, #12] - 80177d8: 681b ldr r3, [r3, #0] - 80177da: 2b00 cmp r3, #0 - 80177dc: d00f beq.n 80177fe + 80177e0: 68fb ldr r3, [r7, #12] + 80177e2: 2b00 cmp r3, #0 + 80177e4: d013 beq.n 801780e + 80177e6: 68fb ldr r3, [r7, #12] + 80177e8: 681b ldr r3, [r3, #0] + 80177ea: 2b00 cmp r3, #0 + 80177ec: d00f beq.n 801780e ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) || - 80177de: 4b17 ldr r3, [pc, #92] ; (801783c ) - 80177e0: 695b ldr r3, [r3, #20] + 80177ee: 4b17 ldr r3, [pc, #92] ; (801784c ) + 80177f0: 695b ldr r3, [r3, #20] if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 80177e2: f1b3 3fff cmp.w r3, #4294967295 - 80177e6: d00a beq.n 80177fe + 80177f2: f1b3 3fff cmp.w r3, #4294967295 + 80177f6: d00a beq.n 801780e ip4_addr_netcmp(ip_2_ip4(&pcb->local_ip), ip4_current_dest_addr(), netif_ip4_netmask(inp))) { - 80177e8: 68fb ldr r3, [r7, #12] - 80177ea: 681a ldr r2, [r3, #0] - 80177ec: 4b13 ldr r3, [pc, #76] ; (801783c ) - 80177ee: 695b ldr r3, [r3, #20] - 80177f0: 405a eors r2, r3 - 80177f2: 68bb ldr r3, [r7, #8] - 80177f4: 3308 adds r3, #8 - 80177f6: 681b ldr r3, [r3, #0] - 80177f8: 4013 ands r3, r2 + 80177f8: 68fb ldr r3, [r7, #12] + 80177fa: 681a ldr r2, [r3, #0] + 80177fc: 4b13 ldr r3, [pc, #76] ; (801784c ) + 80177fe: 695b ldr r3, [r3, #20] + 8017800: 405a eors r2, r3 + 8017802: 68bb ldr r3, [r7, #8] + 8017804: 3308 adds r3, #8 + 8017806: 681b ldr r3, [r3, #0] + 8017808: 4013 ands r3, r2 ((ip4_current_dest_addr()->addr == IPADDR_BROADCAST)) || - 80177fa: 2b00 cmp r3, #0 - 80177fc: d110 bne.n 8017820 + 801780a: 2b00 cmp r3, #0 + 801780c: d110 bne.n 8017830 return 1; - 80177fe: 2301 movs r3, #1 - 8017800: e00f b.n 8017822 + 801780e: 2301 movs r3, #1 + 8017810: e00f b.n 8017832 } } } else #endif /* LWIP_IPV4 */ /* Handle IPv4 and IPv6: all or exact match */ if (ip_addr_isany(&pcb->local_ip) || ip_addr_cmp(&pcb->local_ip, ip_current_dest_addr())) { - 8017802: 68fb ldr r3, [r7, #12] - 8017804: 2b00 cmp r3, #0 - 8017806: d009 beq.n 801781c - 8017808: 68fb ldr r3, [r7, #12] - 801780a: 681b ldr r3, [r3, #0] - 801780c: 2b00 cmp r3, #0 - 801780e: d005 beq.n 801781c - 8017810: 68fb ldr r3, [r7, #12] - 8017812: 681a ldr r2, [r3, #0] - 8017814: 4b09 ldr r3, [pc, #36] ; (801783c ) - 8017816: 695b ldr r3, [r3, #20] - 8017818: 429a cmp r2, r3 - 801781a: d101 bne.n 8017820 + 8017812: 68fb ldr r3, [r7, #12] + 8017814: 2b00 cmp r3, #0 + 8017816: d009 beq.n 801782c + 8017818: 68fb ldr r3, [r7, #12] + 801781a: 681b ldr r3, [r3, #0] + 801781c: 2b00 cmp r3, #0 + 801781e: d005 beq.n 801782c + 8017820: 68fb ldr r3, [r7, #12] + 8017822: 681a ldr r2, [r3, #0] + 8017824: 4b09 ldr r3, [pc, #36] ; (801784c ) + 8017826: 695b ldr r3, [r3, #20] + 8017828: 429a cmp r2, r3 + 801782a: d101 bne.n 8017830 return 1; - 801781c: 2301 movs r3, #1 - 801781e: e000 b.n 8017822 + 801782c: 2301 movs r3, #1 + 801782e: e000 b.n 8017832 } } return 0; - 8017820: 2300 movs r3, #0 -} - 8017822: 4618 mov r0, r3 - 8017824: 3710 adds r7, #16 - 8017826: 46bd mov sp, r7 - 8017828: bd80 pop {r7, pc} - 801782a: bf00 nop - 801782c: 0801f9c4 .word 0x0801f9c4 - 8017830: 0801f9f4 .word 0x0801f9f4 - 8017834: 0801fa18 .word 0x0801fa18 - 8017838: 0801fa40 .word 0x0801fa40 - 801783c: 2000c0bc .word 0x2000c0bc - -08017840 : + 8017830: 2300 movs r3, #0 +} + 8017832: 4618 mov r0, r3 + 8017834: 3710 adds r7, #16 + 8017836: 46bd mov sp, r7 + 8017838: bd80 pop {r7, pc} + 801783a: bf00 nop + 801783c: 0801f9d4 .word 0x0801f9d4 + 8017840: 0801fa04 .word 0x0801fa04 + 8017844: 0801fa28 .word 0x0801fa28 + 8017848: 0801fa50 .word 0x0801fa50 + 801784c: 2000c0bc .word 0x2000c0bc + +08017850 : * @param inp network interface on which the datagram was received. * */ void udp_input(struct pbuf *p, struct netif *inp) { - 8017840: b590 push {r4, r7, lr} - 8017842: b08d sub sp, #52 ; 0x34 - 8017844: af02 add r7, sp, #8 - 8017846: 6078 str r0, [r7, #4] - 8017848: 6039 str r1, [r7, #0] + 8017850: b590 push {r4, r7, lr} + 8017852: b08d sub sp, #52 ; 0x34 + 8017854: af02 add r7, sp, #8 + 8017856: 6078 str r0, [r7, #4] + 8017858: 6039 str r1, [r7, #0] struct udp_hdr *udphdr; struct udp_pcb *pcb, *prev; struct udp_pcb *uncon_pcb; u16_t src, dest; u8_t broadcast; u8_t for_us = 0; - 801784a: 2300 movs r3, #0 - 801784c: 76fb strb r3, [r7, #27] + 801785a: 2300 movs r3, #0 + 801785c: 76fb strb r3, [r7, #27] LWIP_UNUSED_ARG(inp); LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("udp_input: invalid pbuf", p != NULL); - 801784e: 687b ldr r3, [r7, #4] - 8017850: 2b00 cmp r3, #0 - 8017852: d105 bne.n 8017860 - 8017854: 4b7c ldr r3, [pc, #496] ; (8017a48 ) - 8017856: 22cf movs r2, #207 ; 0xcf - 8017858: 497c ldr r1, [pc, #496] ; (8017a4c ) - 801785a: 487d ldr r0, [pc, #500] ; (8017a50 ) - 801785c: f004 fef4 bl 801c648 + 801785e: 687b ldr r3, [r7, #4] + 8017860: 2b00 cmp r3, #0 + 8017862: d105 bne.n 8017870 + 8017864: 4b7c ldr r3, [pc, #496] ; (8017a58 ) + 8017866: 22cf movs r2, #207 ; 0xcf + 8017868: 497c ldr r1, [pc, #496] ; (8017a5c ) + 801786a: 487d ldr r0, [pc, #500] ; (8017a60 ) + 801786c: f004 fef4 bl 801c658 LWIP_ASSERT("udp_input: invalid netif", inp != NULL); - 8017860: 683b ldr r3, [r7, #0] - 8017862: 2b00 cmp r3, #0 - 8017864: d105 bne.n 8017872 - 8017866: 4b78 ldr r3, [pc, #480] ; (8017a48 ) - 8017868: 22d0 movs r2, #208 ; 0xd0 - 801786a: 497a ldr r1, [pc, #488] ; (8017a54 ) - 801786c: 4878 ldr r0, [pc, #480] ; (8017a50 ) - 801786e: f004 feeb bl 801c648 + 8017870: 683b ldr r3, [r7, #0] + 8017872: 2b00 cmp r3, #0 + 8017874: d105 bne.n 8017882 + 8017876: 4b78 ldr r3, [pc, #480] ; (8017a58 ) + 8017878: 22d0 movs r2, #208 ; 0xd0 + 801787a: 497a ldr r1, [pc, #488] ; (8017a64 ) + 801787c: 4878 ldr r0, [pc, #480] ; (8017a60 ) + 801787e: f004 feeb bl 801c658 PERF_START; UDP_STATS_INC(udp.recv); /* Check minimum length (UDP header) */ if (p->len < UDP_HLEN) { - 8017872: 687b ldr r3, [r7, #4] - 8017874: 895b ldrh r3, [r3, #10] - 8017876: 2b07 cmp r3, #7 - 8017878: d803 bhi.n 8017882 + 8017882: 687b ldr r3, [r7, #4] + 8017884: 895b ldrh r3, [r3, #10] + 8017886: 2b07 cmp r3, #7 + 8017888: d803 bhi.n 8017892 LWIP_DEBUGF(UDP_DEBUG, ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len)); UDP_STATS_INC(udp.lenerr); UDP_STATS_INC(udp.drop); MIB2_STATS_INC(mib2.udpinerrors); pbuf_free(p); - 801787a: 6878 ldr r0, [r7, #4] - 801787c: f7fa f9b4 bl 8011be8 + 801788a: 6878 ldr r0, [r7, #4] + 801788c: f7fa f9b4 bl 8011bf8 goto end; - 8017880: e0de b.n 8017a40 + 8017890: e0de b.n 8017a50 } udphdr = (struct udp_hdr *)p->payload; - 8017882: 687b ldr r3, [r7, #4] - 8017884: 685b ldr r3, [r3, #4] - 8017886: 617b str r3, [r7, #20] + 8017892: 687b ldr r3, [r7, #4] + 8017894: 685b ldr r3, [r3, #4] + 8017896: 617b str r3, [r7, #20] /* is broadcast packet ? */ broadcast = ip_addr_isbroadcast(ip_current_dest_addr(), ip_current_netif()); - 8017888: 4b73 ldr r3, [pc, #460] ; (8017a58 ) - 801788a: 695a ldr r2, [r3, #20] - 801788c: 4b72 ldr r3, [pc, #456] ; (8017a58 ) - 801788e: 681b ldr r3, [r3, #0] - 8017890: 4619 mov r1, r3 - 8017892: 4610 mov r0, r2 - 8017894: f003 fe16 bl 801b4c4 - 8017898: 4603 mov r3, r0 - 801789a: 74fb strb r3, [r7, #19] + 8017898: 4b73 ldr r3, [pc, #460] ; (8017a68 ) + 801789a: 695a ldr r2, [r3, #20] + 801789c: 4b72 ldr r3, [pc, #456] ; (8017a68 ) + 801789e: 681b ldr r3, [r3, #0] + 80178a0: 4619 mov r1, r3 + 80178a2: 4610 mov r0, r2 + 80178a4: f003 fe16 bl 801b4d4 + 80178a8: 4603 mov r3, r0 + 80178aa: 74fb strb r3, [r7, #19] LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len)); /* convert src and dest ports to host byte order */ src = lwip_ntohs(udphdr->src); - 801789c: 697b ldr r3, [r7, #20] - 801789e: 881b ldrh r3, [r3, #0] - 80178a0: b29b uxth r3, r3 - 80178a2: 4618 mov r0, r3 - 80178a4: f7f8 fdec bl 8010480 - 80178a8: 4603 mov r3, r0 - 80178aa: 823b strh r3, [r7, #16] - dest = lwip_ntohs(udphdr->dest); 80178ac: 697b ldr r3, [r7, #20] - 80178ae: 885b ldrh r3, [r3, #2] + 80178ae: 881b ldrh r3, [r3, #0] 80178b0: b29b uxth r3, r3 80178b2: 4618 mov r0, r3 - 80178b4: f7f8 fde4 bl 8010480 + 80178b4: f7f8 fdec bl 8010490 80178b8: 4603 mov r3, r0 - 80178ba: 81fb strh r3, [r7, #14] + 80178ba: 823b strh r3, [r7, #16] + dest = lwip_ntohs(udphdr->dest); + 80178bc: 697b ldr r3, [r7, #20] + 80178be: 885b ldrh r3, [r3, #2] + 80178c0: b29b uxth r3, r3 + 80178c2: 4618 mov r0, r3 + 80178c4: f7f8 fde4 bl 8010490 + 80178c8: 4603 mov r3, r0 + 80178ca: 81fb strh r3, [r7, #14] ip_addr_debug_print_val(UDP_DEBUG, *ip_current_dest_addr()); LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", lwip_ntohs(udphdr->dest))); ip_addr_debug_print_val(UDP_DEBUG, *ip_current_src_addr()); LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", lwip_ntohs(udphdr->src))); pcb = NULL; - 80178bc: 2300 movs r3, #0 - 80178be: 627b str r3, [r7, #36] ; 0x24 + 80178cc: 2300 movs r3, #0 + 80178ce: 627b str r3, [r7, #36] ; 0x24 prev = NULL; - 80178c0: 2300 movs r3, #0 - 80178c2: 623b str r3, [r7, #32] + 80178d0: 2300 movs r3, #0 + 80178d2: 623b str r3, [r7, #32] uncon_pcb = NULL; - 80178c4: 2300 movs r3, #0 - 80178c6: 61fb str r3, [r7, #28] + 80178d4: 2300 movs r3, #0 + 80178d6: 61fb str r3, [r7, #28] /* Iterate through the UDP pcb list for a matching pcb. * 'Perfect match' pcbs (connected to the remote port & ip address) are * preferred. If no perfect match is found, the first unconnected pcb that * matches the local port and ip address gets the datagram. */ for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 80178c8: 4b64 ldr r3, [pc, #400] ; (8017a5c ) - 80178ca: 681b ldr r3, [r3, #0] - 80178cc: 627b str r3, [r7, #36] ; 0x24 - 80178ce: e054 b.n 801797a + 80178d8: 4b64 ldr r3, [pc, #400] ; (8017a6c ) + 80178da: 681b ldr r3, [r3, #0] + 80178dc: 627b str r3, [r7, #36] ; 0x24 + 80178de: e054 b.n 801798a LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F") <-- (", pcb->local_port)); ip_addr_debug_print_val(UDP_DEBUG, pcb->remote_ip); LWIP_DEBUGF(UDP_DEBUG, (", %"U16_F")\n", pcb->remote_port)); /* compare PCB local addr+port to UDP destination addr+port */ if ((pcb->local_port == dest) && - 80178d0: 6a7b ldr r3, [r7, #36] ; 0x24 - 80178d2: 8a5b ldrh r3, [r3, #18] - 80178d4: 89fa ldrh r2, [r7, #14] - 80178d6: 429a cmp r2, r3 - 80178d8: d14a bne.n 8017970 + 80178e0: 6a7b ldr r3, [r7, #36] ; 0x24 + 80178e2: 8a5b ldrh r3, [r3, #18] + 80178e4: 89fa ldrh r2, [r7, #14] + 80178e6: 429a cmp r2, r3 + 80178e8: d14a bne.n 8017980 (udp_input_local_match(pcb, inp, broadcast) != 0)) { - 80178da: 7cfb ldrb r3, [r7, #19] - 80178dc: 461a mov r2, r3 - 80178de: 6839 ldr r1, [r7, #0] - 80178e0: 6a78 ldr r0, [r7, #36] ; 0x24 - 80178e2: f7ff ff49 bl 8017778 - 80178e6: 4603 mov r3, r0 + 80178ea: 7cfb ldrb r3, [r7, #19] + 80178ec: 461a mov r2, r3 + 80178ee: 6839 ldr r1, [r7, #0] + 80178f0: 6a78 ldr r0, [r7, #36] ; 0x24 + 80178f2: f7ff ff49 bl 8017788 + 80178f6: 4603 mov r3, r0 if ((pcb->local_port == dest) && - 80178e8: 2b00 cmp r3, #0 - 80178ea: d041 beq.n 8017970 + 80178f8: 2b00 cmp r3, #0 + 80178fa: d041 beq.n 8017980 if ((pcb->flags & UDP_FLAGS_CONNECTED) == 0) { - 80178ec: 6a7b ldr r3, [r7, #36] ; 0x24 - 80178ee: 7c1b ldrb r3, [r3, #16] - 80178f0: f003 0304 and.w r3, r3, #4 - 80178f4: 2b00 cmp r3, #0 - 80178f6: d11d bne.n 8017934 + 80178fc: 6a7b ldr r3, [r7, #36] ; 0x24 + 80178fe: 7c1b ldrb r3, [r3, #16] + 8017900: f003 0304 and.w r3, r3, #4 + 8017904: 2b00 cmp r3, #0 + 8017906: d11d bne.n 8017944 if (uncon_pcb == NULL) { - 80178f8: 69fb ldr r3, [r7, #28] - 80178fa: 2b00 cmp r3, #0 - 80178fc: d102 bne.n 8017904 + 8017908: 69fb ldr r3, [r7, #28] + 801790a: 2b00 cmp r3, #0 + 801790c: d102 bne.n 8017914 /* the first unconnected matching PCB */ uncon_pcb = pcb; - 80178fe: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017900: 61fb str r3, [r7, #28] - 8017902: e017 b.n 8017934 + 801790e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017910: 61fb str r3, [r7, #28] + 8017912: e017 b.n 8017944 #if LWIP_IPV4 } else if (broadcast && ip4_current_dest_addr()->addr == IPADDR_BROADCAST) { - 8017904: 7cfb ldrb r3, [r7, #19] - 8017906: 2b00 cmp r3, #0 - 8017908: d014 beq.n 8017934 - 801790a: 4b53 ldr r3, [pc, #332] ; (8017a58 ) - 801790c: 695b ldr r3, [r3, #20] - 801790e: f1b3 3fff cmp.w r3, #4294967295 - 8017912: d10f bne.n 8017934 + 8017914: 7cfb ldrb r3, [r7, #19] + 8017916: 2b00 cmp r3, #0 + 8017918: d014 beq.n 8017944 + 801791a: 4b53 ldr r3, [pc, #332] ; (8017a68 ) + 801791c: 695b ldr r3, [r3, #20] + 801791e: f1b3 3fff cmp.w r3, #4294967295 + 8017922: d10f bne.n 8017944 /* global broadcast address (only valid for IPv4; match was checked before) */ if (!IP_IS_V4_VAL(uncon_pcb->local_ip) || !ip4_addr_cmp(ip_2_ip4(&uncon_pcb->local_ip), netif_ip4_addr(inp))) { - 8017914: 69fb ldr r3, [r7, #28] - 8017916: 681a ldr r2, [r3, #0] - 8017918: 683b ldr r3, [r7, #0] - 801791a: 3304 adds r3, #4 - 801791c: 681b ldr r3, [r3, #0] - 801791e: 429a cmp r2, r3 - 8017920: d008 beq.n 8017934 + 8017924: 69fb ldr r3, [r7, #28] + 8017926: 681a ldr r2, [r3, #0] + 8017928: 683b ldr r3, [r7, #0] + 801792a: 3304 adds r3, #4 + 801792c: 681b ldr r3, [r3, #0] + 801792e: 429a cmp r2, r3 + 8017930: d008 beq.n 8017944 /* uncon_pcb does not match the input netif, check this pcb */ if (IP_IS_V4_VAL(pcb->local_ip) && ip4_addr_cmp(ip_2_ip4(&pcb->local_ip), netif_ip4_addr(inp))) { - 8017922: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017924: 681a ldr r2, [r3, #0] - 8017926: 683b ldr r3, [r7, #0] - 8017928: 3304 adds r3, #4 - 801792a: 681b ldr r3, [r3, #0] - 801792c: 429a cmp r2, r3 - 801792e: d101 bne.n 8017934 + 8017932: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017934: 681a ldr r2, [r3, #0] + 8017936: 683b ldr r3, [r7, #0] + 8017938: 3304 adds r3, #4 + 801793a: 681b ldr r3, [r3, #0] + 801793c: 429a cmp r2, r3 + 801793e: d101 bne.n 8017944 /* better match */ uncon_pcb = pcb; - 8017930: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017932: 61fb str r3, [r7, #28] + 8017940: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017942: 61fb str r3, [r7, #28] } #endif /* SO_REUSE */ } /* compare PCB remote addr+port to UDP source addr+port */ if ((pcb->remote_port == src) && - 8017934: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017936: 8a9b ldrh r3, [r3, #20] - 8017938: 8a3a ldrh r2, [r7, #16] - 801793a: 429a cmp r2, r3 - 801793c: d118 bne.n 8017970 + 8017944: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017946: 8a9b ldrh r3, [r3, #20] + 8017948: 8a3a ldrh r2, [r7, #16] + 801794a: 429a cmp r2, r3 + 801794c: d118 bne.n 8017980 (ip_addr_isany_val(pcb->remote_ip) || - 801793e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017940: 685b ldr r3, [r3, #4] + 801794e: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017950: 685b ldr r3, [r3, #4] if ((pcb->remote_port == src) && - 8017942: 2b00 cmp r3, #0 - 8017944: d005 beq.n 8017952 + 8017952: 2b00 cmp r3, #0 + 8017954: d005 beq.n 8017962 ip_addr_cmp(&pcb->remote_ip, ip_current_src_addr()))) { - 8017946: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017948: 685a ldr r2, [r3, #4] - 801794a: 4b43 ldr r3, [pc, #268] ; (8017a58 ) - 801794c: 691b ldr r3, [r3, #16] + 8017956: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017958: 685a ldr r2, [r3, #4] + 801795a: 4b43 ldr r3, [pc, #268] ; (8017a68 ) + 801795c: 691b ldr r3, [r3, #16] (ip_addr_isany_val(pcb->remote_ip) || - 801794e: 429a cmp r2, r3 - 8017950: d10e bne.n 8017970 + 801795e: 429a cmp r2, r3 + 8017960: d10e bne.n 8017980 /* the first fully matching PCB */ if (prev != NULL) { - 8017952: 6a3b ldr r3, [r7, #32] - 8017954: 2b00 cmp r3, #0 - 8017956: d014 beq.n 8017982 + 8017962: 6a3b ldr r3, [r7, #32] + 8017964: 2b00 cmp r3, #0 + 8017966: d014 beq.n 8017992 /* move the pcb to the front of udp_pcbs so that is found faster next time */ prev->next = pcb->next; - 8017958: 6a7b ldr r3, [r7, #36] ; 0x24 - 801795a: 68da ldr r2, [r3, #12] - 801795c: 6a3b ldr r3, [r7, #32] - 801795e: 60da str r2, [r3, #12] + 8017968: 6a7b ldr r3, [r7, #36] ; 0x24 + 801796a: 68da ldr r2, [r3, #12] + 801796c: 6a3b ldr r3, [r7, #32] + 801796e: 60da str r2, [r3, #12] pcb->next = udp_pcbs; - 8017960: 4b3e ldr r3, [pc, #248] ; (8017a5c ) - 8017962: 681a ldr r2, [r3, #0] - 8017964: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017966: 60da str r2, [r3, #12] + 8017970: 4b3e ldr r3, [pc, #248] ; (8017a6c ) + 8017972: 681a ldr r2, [r3, #0] + 8017974: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017976: 60da str r2, [r3, #12] udp_pcbs = pcb; - 8017968: 4a3c ldr r2, [pc, #240] ; (8017a5c ) - 801796a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801796c: 6013 str r3, [r2, #0] + 8017978: 4a3c ldr r2, [pc, #240] ; (8017a6c ) + 801797a: 6a7b ldr r3, [r7, #36] ; 0x24 + 801797c: 6013 str r3, [r2, #0] } else { UDP_STATS_INC(udp.cachehit); } break; - 801796e: e008 b.n 8017982 + 801797e: e008 b.n 8017992 } } prev = pcb; - 8017970: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017972: 623b str r3, [r7, #32] - for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { - 8017974: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017976: 68db ldr r3, [r3, #12] - 8017978: 627b str r3, [r7, #36] ; 0x24 - 801797a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801797c: 2b00 cmp r3, #0 - 801797e: d1a7 bne.n 80178d0 - 8017980: e000 b.n 8017984 + 8017980: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017982: 623b str r3, [r7, #32] + for (pcb = udp_pcbs; pcb != NULL; pcb = pcb->next) { + 8017984: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017986: 68db ldr r3, [r3, #12] + 8017988: 627b str r3, [r7, #36] ; 0x24 + 801798a: 6a7b ldr r3, [r7, #36] ; 0x24 + 801798c: 2b00 cmp r3, #0 + 801798e: d1a7 bne.n 80178e0 + 8017990: e000 b.n 8017994 break; - 8017982: bf00 nop + 8017992: bf00 nop } /* no fully matching pcb found? then look for an unconnected pcb */ if (pcb == NULL) { - 8017984: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017986: 2b00 cmp r3, #0 - 8017988: d101 bne.n 801798e + 8017994: 6a7b ldr r3, [r7, #36] ; 0x24 + 8017996: 2b00 cmp r3, #0 + 8017998: d101 bne.n 801799e pcb = uncon_pcb; - 801798a: 69fb ldr r3, [r7, #28] - 801798c: 627b str r3, [r7, #36] ; 0x24 + 801799a: 69fb ldr r3, [r7, #28] + 801799c: 627b str r3, [r7, #36] ; 0x24 } /* Check checksum if this is a match or if it was directed at us. */ if (pcb != NULL) { - 801798e: 6a7b ldr r3, [r7, #36] ; 0x24 - 8017990: 2b00 cmp r3, #0 - 8017992: d002 beq.n 801799a + 801799e: 6a7b ldr r3, [r7, #36] ; 0x24 + 80179a0: 2b00 cmp r3, #0 + 80179a2: d002 beq.n 80179aa for_us = 1; - 8017994: 2301 movs r3, #1 - 8017996: 76fb strb r3, [r7, #27] - 8017998: e00a b.n 80179b0 + 80179a4: 2301 movs r3, #1 + 80179a6: 76fb strb r3, [r7, #27] + 80179a8: e00a b.n 80179c0 for_us = netif_get_ip6_addr_match(inp, ip6_current_dest_addr()) >= 0; } #endif /* LWIP_IPV6 */ #if LWIP_IPV4 if (!ip_current_is_v6()) { for_us = ip4_addr_cmp(netif_ip4_addr(inp), ip4_current_dest_addr()); - 801799a: 683b ldr r3, [r7, #0] - 801799c: 3304 adds r3, #4 - 801799e: 681a ldr r2, [r3, #0] - 80179a0: 4b2d ldr r3, [pc, #180] ; (8017a58 ) - 80179a2: 695b ldr r3, [r3, #20] - 80179a4: 429a cmp r2, r3 - 80179a6: bf0c ite eq - 80179a8: 2301 moveq r3, #1 - 80179aa: 2300 movne r3, #0 - 80179ac: b2db uxtb r3, r3 - 80179ae: 76fb strb r3, [r7, #27] + 80179aa: 683b ldr r3, [r7, #0] + 80179ac: 3304 adds r3, #4 + 80179ae: 681a ldr r2, [r3, #0] + 80179b0: 4b2d ldr r3, [pc, #180] ; (8017a68 ) + 80179b2: 695b ldr r3, [r3, #20] + 80179b4: 429a cmp r2, r3 + 80179b6: bf0c ite eq + 80179b8: 2301 moveq r3, #1 + 80179ba: 2300 movne r3, #0 + 80179bc: b2db uxtb r3, r3 + 80179be: 76fb strb r3, [r7, #27] } #endif /* LWIP_IPV4 */ } if (for_us) { - 80179b0: 7efb ldrb r3, [r7, #27] - 80179b2: 2b00 cmp r3, #0 - 80179b4: d041 beq.n 8017a3a + 80179c0: 7efb ldrb r3, [r7, #27] + 80179c2: 2b00 cmp r3, #0 + 80179c4: d041 beq.n 8017a4a } } } } #endif /* CHECKSUM_CHECK_UDP */ if (pbuf_remove_header(p, UDP_HLEN)) { - 80179b6: 2108 movs r1, #8 - 80179b8: 6878 ldr r0, [r7, #4] - 80179ba: f7fa f88f bl 8011adc - 80179be: 4603 mov r3, r0 - 80179c0: 2b00 cmp r3, #0 - 80179c2: d00a beq.n 80179da + 80179c6: 2108 movs r1, #8 + 80179c8: 6878 ldr r0, [r7, #4] + 80179ca: f7fa f88f bl 8011aec + 80179ce: 4603 mov r3, r0 + 80179d0: 2b00 cmp r3, #0 + 80179d2: d00a beq.n 80179ea /* Can we cope with this failing? Just assert for now */ LWIP_ASSERT("pbuf_remove_header failed\n", 0); - 80179c4: 4b20 ldr r3, [pc, #128] ; (8017a48 ) - 80179c6: f44f 72b8 mov.w r2, #368 ; 0x170 - 80179ca: 4925 ldr r1, [pc, #148] ; (8017a60 ) - 80179cc: 4820 ldr r0, [pc, #128] ; (8017a50 ) - 80179ce: f004 fe3b bl 801c648 + 80179d4: 4b20 ldr r3, [pc, #128] ; (8017a58 ) + 80179d6: f44f 72b8 mov.w r2, #368 ; 0x170 + 80179da: 4925 ldr r1, [pc, #148] ; (8017a70 ) + 80179dc: 4820 ldr r0, [pc, #128] ; (8017a60 ) + 80179de: f004 fe3b bl 801c658 UDP_STATS_INC(udp.drop); MIB2_STATS_INC(mib2.udpinerrors); pbuf_free(p); - 80179d2: 6878 ldr r0, [r7, #4] - 80179d4: f7fa f908 bl 8011be8 + 80179e2: 6878 ldr r0, [r7, #4] + 80179e4: f7fa f908 bl 8011bf8 goto end; - 80179d8: e032 b.n 8017a40 + 80179e8: e032 b.n 8017a50 } if (pcb != NULL) { - 80179da: 6a7b ldr r3, [r7, #36] ; 0x24 - 80179dc: 2b00 cmp r3, #0 - 80179de: d012 beq.n 8017a06 + 80179ea: 6a7b ldr r3, [r7, #36] ; 0x24 + 80179ec: 2b00 cmp r3, #0 + 80179ee: d012 beq.n 8017a16 } } } #endif /* SO_REUSE && SO_REUSE_RXTOALL */ /* callback */ if (pcb->recv != NULL) { - 80179e0: 6a7b ldr r3, [r7, #36] ; 0x24 - 80179e2: 699b ldr r3, [r3, #24] - 80179e4: 2b00 cmp r3, #0 - 80179e6: d00a beq.n 80179fe + 80179f0: 6a7b ldr r3, [r7, #36] ; 0x24 + 80179f2: 699b ldr r3, [r3, #24] + 80179f4: 2b00 cmp r3, #0 + 80179f6: d00a beq.n 8017a0e /* now the recv function is responsible for freeing p */ pcb->recv(pcb->recv_arg, pcb, p, ip_current_src_addr(), src); - 80179e8: 6a7b ldr r3, [r7, #36] ; 0x24 - 80179ea: 699c ldr r4, [r3, #24] - 80179ec: 6a7b ldr r3, [r7, #36] ; 0x24 - 80179ee: 69d8 ldr r0, [r3, #28] - 80179f0: 8a3b ldrh r3, [r7, #16] - 80179f2: 9300 str r3, [sp, #0] - 80179f4: 4b1b ldr r3, [pc, #108] ; (8017a64 ) - 80179f6: 687a ldr r2, [r7, #4] - 80179f8: 6a79 ldr r1, [r7, #36] ; 0x24 - 80179fa: 47a0 blx r4 + 80179f8: 6a7b ldr r3, [r7, #36] ; 0x24 + 80179fa: 699c ldr r4, [r3, #24] + 80179fc: 6a7b ldr r3, [r7, #36] ; 0x24 + 80179fe: 69d8 ldr r0, [r3, #28] + 8017a00: 8a3b ldrh r3, [r7, #16] + 8017a02: 9300 str r3, [sp, #0] + 8017a04: 4b1b ldr r3, [pc, #108] ; (8017a74 ) + 8017a06: 687a ldr r2, [r7, #4] + 8017a08: 6a79 ldr r1, [r7, #36] ; 0x24 + 8017a0a: 47a0 blx r4 } else { pbuf_free(p); } end: PERF_STOP("udp_input"); return; - 80179fc: e021 b.n 8017a42 + 8017a0c: e021 b.n 8017a52 pbuf_free(p); - 80179fe: 6878 ldr r0, [r7, #4] - 8017a00: f7fa f8f2 bl 8011be8 + 8017a0e: 6878 ldr r0, [r7, #4] + 8017a10: f7fa f8f2 bl 8011bf8 goto end; - 8017a04: e01c b.n 8017a40 + 8017a14: e01c b.n 8017a50 if (!broadcast && !ip_addr_ismulticast(ip_current_dest_addr())) { - 8017a06: 7cfb ldrb r3, [r7, #19] - 8017a08: 2b00 cmp r3, #0 - 8017a0a: d112 bne.n 8017a32 - 8017a0c: 4b12 ldr r3, [pc, #72] ; (8017a58 ) - 8017a0e: 695b ldr r3, [r3, #20] - 8017a10: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 8017a14: 2be0 cmp r3, #224 ; 0xe0 - 8017a16: d00c beq.n 8017a32 + 8017a16: 7cfb ldrb r3, [r7, #19] + 8017a18: 2b00 cmp r3, #0 + 8017a1a: d112 bne.n 8017a42 + 8017a1c: 4b12 ldr r3, [pc, #72] ; (8017a68 ) + 8017a1e: 695b ldr r3, [r3, #20] + 8017a20: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 8017a24: 2be0 cmp r3, #224 ; 0xe0 + 8017a26: d00c beq.n 8017a42 pbuf_header_force(p, (s16_t)(ip_current_header_tot_len() + UDP_HLEN)); - 8017a18: 4b0f ldr r3, [pc, #60] ; (8017a58 ) - 8017a1a: 899b ldrh r3, [r3, #12] - 8017a1c: 3308 adds r3, #8 - 8017a1e: b29b uxth r3, r3 - 8017a20: b21b sxth r3, r3 - 8017a22: 4619 mov r1, r3 - 8017a24: 6878 ldr r0, [r7, #4] - 8017a26: f7fa f8cc bl 8011bc2 + 8017a28: 4b0f ldr r3, [pc, #60] ; (8017a68 ) + 8017a2a: 899b ldrh r3, [r3, #12] + 8017a2c: 3308 adds r3, #8 + 8017a2e: b29b uxth r3, r3 + 8017a30: b21b sxth r3, r3 + 8017a32: 4619 mov r1, r3 + 8017a34: 6878 ldr r0, [r7, #4] + 8017a36: f7fa f8cc bl 8011bd2 icmp_port_unreach(ip_current_is_v6(), p); - 8017a2a: 2103 movs r1, #3 - 8017a2c: 6878 ldr r0, [r7, #4] - 8017a2e: f003 fa0d bl 801ae4c + 8017a3a: 2103 movs r1, #3 + 8017a3c: 6878 ldr r0, [r7, #4] + 8017a3e: f003 fa0d bl 801ae5c pbuf_free(p); - 8017a32: 6878 ldr r0, [r7, #4] - 8017a34: f7fa f8d8 bl 8011be8 + 8017a42: 6878 ldr r0, [r7, #4] + 8017a44: f7fa f8d8 bl 8011bf8 return; - 8017a38: e003 b.n 8017a42 + 8017a48: e003 b.n 8017a52 pbuf_free(p); - 8017a3a: 6878 ldr r0, [r7, #4] - 8017a3c: f7fa f8d4 bl 8011be8 + 8017a4a: 6878 ldr r0, [r7, #4] + 8017a4c: f7fa f8d4 bl 8011bf8 return; - 8017a40: bf00 nop + 8017a50: bf00 nop UDP_STATS_INC(udp.drop); MIB2_STATS_INC(mib2.udpinerrors); pbuf_free(p); PERF_STOP("udp_input"); #endif /* CHECKSUM_CHECK_UDP */ } - 8017a42: 372c adds r7, #44 ; 0x2c - 8017a44: 46bd mov sp, r7 - 8017a46: bd90 pop {r4, r7, pc} - 8017a48: 0801f9c4 .word 0x0801f9c4 - 8017a4c: 0801fa68 .word 0x0801fa68 - 8017a50: 0801fa18 .word 0x0801fa18 - 8017a54: 0801fa80 .word 0x0801fa80 - 8017a58: 2000c0bc .word 0x2000c0bc - 8017a5c: 2000f808 .word 0x2000f808 - 8017a60: 0801fa9c .word 0x0801fa9c - 8017a64: 2000c0cc .word 0x2000c0cc - -08017a68 : + 8017a52: 372c adds r7, #44 ; 0x2c + 8017a54: 46bd mov sp, r7 + 8017a56: bd90 pop {r4, r7, pc} + 8017a58: 0801f9d4 .word 0x0801f9d4 + 8017a5c: 0801fa78 .word 0x0801fa78 + 8017a60: 0801fa28 .word 0x0801fa28 + 8017a64: 0801fa90 .word 0x0801fa90 + 8017a68: 2000c0bc .word 0x2000c0bc + 8017a6c: 2000f808 .word 0x2000f808 + 8017a70: 0801faac .word 0x0801faac + 8017a74: 2000c0cc .word 0x2000c0cc + +08017a78 : * @see udp_disconnect() udp_send() */ err_t udp_sendto_if(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif) { - 8017a68: b580 push {r7, lr} - 8017a6a: b088 sub sp, #32 - 8017a6c: af02 add r7, sp, #8 - 8017a6e: 60f8 str r0, [r7, #12] - 8017a70: 60b9 str r1, [r7, #8] - 8017a72: 607a str r2, [r7, #4] - 8017a74: 807b strh r3, [r7, #2] + 8017a78: b580 push {r7, lr} + 8017a7a: b088 sub sp, #32 + 8017a7c: af02 add r7, sp, #8 + 8017a7e: 60f8 str r0, [r7, #12] + 8017a80: 60b9 str r1, [r7, #8] + 8017a82: 607a str r2, [r7, #4] + 8017a84: 807b strh r3, [r7, #2] u16_t chksum) { #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ const ip_addr_t *src_ip; LWIP_ERROR("udp_sendto_if: invalid pcb", pcb != NULL, return ERR_ARG); - 8017a76: 68fb ldr r3, [r7, #12] - 8017a78: 2b00 cmp r3, #0 - 8017a7a: d109 bne.n 8017a90 - 8017a7c: 4b2e ldr r3, [pc, #184] ; (8017b38 ) - 8017a7e: f44f 7220 mov.w r2, #640 ; 0x280 - 8017a82: 492e ldr r1, [pc, #184] ; (8017b3c ) - 8017a84: 482e ldr r0, [pc, #184] ; (8017b40 ) - 8017a86: f004 fddf bl 801c648 - 8017a8a: f06f 030f mvn.w r3, #15 - 8017a8e: e04f b.n 8017b30 + 8017a86: 68fb ldr r3, [r7, #12] + 8017a88: 2b00 cmp r3, #0 + 8017a8a: d109 bne.n 8017aa0 + 8017a8c: 4b2e ldr r3, [pc, #184] ; (8017b48 ) + 8017a8e: f44f 7220 mov.w r2, #640 ; 0x280 + 8017a92: 492e ldr r1, [pc, #184] ; (8017b4c ) + 8017a94: 482e ldr r0, [pc, #184] ; (8017b50 ) + 8017a96: f004 fddf bl 801c658 + 8017a9a: f06f 030f mvn.w r3, #15 + 8017a9e: e04f b.n 8017b40 LWIP_ERROR("udp_sendto_if: invalid pbuf", p != NULL, return ERR_ARG); - 8017a90: 68bb ldr r3, [r7, #8] - 8017a92: 2b00 cmp r3, #0 - 8017a94: d109 bne.n 8017aaa - 8017a96: 4b28 ldr r3, [pc, #160] ; (8017b38 ) - 8017a98: f240 2281 movw r2, #641 ; 0x281 - 8017a9c: 4929 ldr r1, [pc, #164] ; (8017b44 ) - 8017a9e: 4828 ldr r0, [pc, #160] ; (8017b40 ) - 8017aa0: f004 fdd2 bl 801c648 - 8017aa4: f06f 030f mvn.w r3, #15 - 8017aa8: e042 b.n 8017b30 + 8017aa0: 68bb ldr r3, [r7, #8] + 8017aa2: 2b00 cmp r3, #0 + 8017aa4: d109 bne.n 8017aba + 8017aa6: 4b28 ldr r3, [pc, #160] ; (8017b48 ) + 8017aa8: f240 2281 movw r2, #641 ; 0x281 + 8017aac: 4929 ldr r1, [pc, #164] ; (8017b54 ) + 8017aae: 4828 ldr r0, [pc, #160] ; (8017b50 ) + 8017ab0: f004 fdd2 bl 801c658 + 8017ab4: f06f 030f mvn.w r3, #15 + 8017ab8: e042 b.n 8017b40 LWIP_ERROR("udp_sendto_if: invalid dst_ip", dst_ip != NULL, return ERR_ARG); - 8017aaa: 687b ldr r3, [r7, #4] - 8017aac: 2b00 cmp r3, #0 - 8017aae: d109 bne.n 8017ac4 - 8017ab0: 4b21 ldr r3, [pc, #132] ; (8017b38 ) - 8017ab2: f240 2282 movw r2, #642 ; 0x282 - 8017ab6: 4924 ldr r1, [pc, #144] ; (8017b48 ) - 8017ab8: 4821 ldr r0, [pc, #132] ; (8017b40 ) - 8017aba: f004 fdc5 bl 801c648 - 8017abe: f06f 030f mvn.w r3, #15 - 8017ac2: e035 b.n 8017b30 + 8017aba: 687b ldr r3, [r7, #4] + 8017abc: 2b00 cmp r3, #0 + 8017abe: d109 bne.n 8017ad4 + 8017ac0: 4b21 ldr r3, [pc, #132] ; (8017b48 ) + 8017ac2: f240 2282 movw r2, #642 ; 0x282 + 8017ac6: 4924 ldr r1, [pc, #144] ; (8017b58 ) + 8017ac8: 4821 ldr r0, [pc, #132] ; (8017b50 ) + 8017aca: f004 fdc5 bl 801c658 + 8017ace: f06f 030f mvn.w r3, #15 + 8017ad2: e035 b.n 8017b40 LWIP_ERROR("udp_sendto_if: invalid netif", netif != NULL, return ERR_ARG); - 8017ac4: 6a3b ldr r3, [r7, #32] - 8017ac6: 2b00 cmp r3, #0 - 8017ac8: d109 bne.n 8017ade - 8017aca: 4b1b ldr r3, [pc, #108] ; (8017b38 ) - 8017acc: f240 2283 movw r2, #643 ; 0x283 - 8017ad0: 491e ldr r1, [pc, #120] ; (8017b4c ) - 8017ad2: 481b ldr r0, [pc, #108] ; (8017b40 ) - 8017ad4: f004 fdb8 bl 801c648 - 8017ad8: f06f 030f mvn.w r3, #15 - 8017adc: e028 b.n 8017b30 + 8017ad4: 6a3b ldr r3, [r7, #32] + 8017ad6: 2b00 cmp r3, #0 + 8017ad8: d109 bne.n 8017aee + 8017ada: 4b1b ldr r3, [pc, #108] ; (8017b48 ) + 8017adc: f240 2283 movw r2, #643 ; 0x283 + 8017ae0: 491e ldr r1, [pc, #120] ; (8017b5c ) + 8017ae2: 481b ldr r0, [pc, #108] ; (8017b50 ) + 8017ae4: f004 fdb8 bl 801c658 + 8017ae8: f06f 030f mvn.w r3, #15 + 8017aec: e028 b.n 8017b40 #endif /* LWIP_IPV6 */ #if LWIP_IPV4 && LWIP_IPV6 else #endif /* LWIP_IPV4 && LWIP_IPV6 */ #if LWIP_IPV4 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 8017ade: 68fb ldr r3, [r7, #12] - 8017ae0: 2b00 cmp r3, #0 - 8017ae2: d009 beq.n 8017af8 - 8017ae4: 68fb ldr r3, [r7, #12] - 8017ae6: 681b ldr r3, [r3, #0] - 8017ae8: 2b00 cmp r3, #0 - 8017aea: d005 beq.n 8017af8 + 8017aee: 68fb ldr r3, [r7, #12] + 8017af0: 2b00 cmp r3, #0 + 8017af2: d009 beq.n 8017b08 + 8017af4: 68fb ldr r3, [r7, #12] + 8017af6: 681b ldr r3, [r3, #0] + 8017af8: 2b00 cmp r3, #0 + 8017afa: d005 beq.n 8017b08 ip4_addr_ismulticast(ip_2_ip4(&pcb->local_ip))) { - 8017aec: 68fb ldr r3, [r7, #12] - 8017aee: 681b ldr r3, [r3, #0] - 8017af0: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 8017afc: 68fb ldr r3, [r7, #12] + 8017afe: 681b ldr r3, [r3, #0] + 8017b00: f003 03f0 and.w r3, r3, #240 ; 0xf0 if (ip4_addr_isany(ip_2_ip4(&pcb->local_ip)) || - 8017af4: 2be0 cmp r3, #224 ; 0xe0 - 8017af6: d103 bne.n 8017b00 + 8017b04: 2be0 cmp r3, #224 ; 0xe0 + 8017b06: d103 bne.n 8017b10 /* if the local_ip is any or multicast * use the outgoing network interface IP address as source address */ src_ip = netif_ip_addr4(netif); - 8017af8: 6a3b ldr r3, [r7, #32] - 8017afa: 3304 adds r3, #4 - 8017afc: 617b str r3, [r7, #20] - 8017afe: e00b b.n 8017b18 + 8017b08: 6a3b ldr r3, [r7, #32] + 8017b0a: 3304 adds r3, #4 + 8017b0c: 617b str r3, [r7, #20] + 8017b0e: e00b b.n 8017b28 } else { /* check if UDP PCB local IP address is correct * this could be an old address if netif->ip_addr has changed */ if (!ip4_addr_cmp(ip_2_ip4(&(pcb->local_ip)), netif_ip4_addr(netif))) { - 8017b00: 68fb ldr r3, [r7, #12] - 8017b02: 681a ldr r2, [r3, #0] - 8017b04: 6a3b ldr r3, [r7, #32] - 8017b06: 3304 adds r3, #4 - 8017b08: 681b ldr r3, [r3, #0] - 8017b0a: 429a cmp r2, r3 - 8017b0c: d002 beq.n 8017b14 + 8017b10: 68fb ldr r3, [r7, #12] + 8017b12: 681a ldr r2, [r3, #0] + 8017b14: 6a3b ldr r3, [r7, #32] + 8017b16: 3304 adds r3, #4 + 8017b18: 681b ldr r3, [r3, #0] + 8017b1a: 429a cmp r2, r3 + 8017b1c: d002 beq.n 8017b24 /* local_ip doesn't match, drop the packet */ return ERR_RTE; - 8017b0e: f06f 0303 mvn.w r3, #3 - 8017b12: e00d b.n 8017b30 + 8017b1e: f06f 0303 mvn.w r3, #3 + 8017b22: e00d b.n 8017b40 } /* use UDP PCB local IP address as source address */ src_ip = &pcb->local_ip; - 8017b14: 68fb ldr r3, [r7, #12] - 8017b16: 617b str r3, [r7, #20] + 8017b24: 68fb ldr r3, [r7, #12] + 8017b26: 617b str r3, [r7, #20] } #endif /* LWIP_IPV4 */ #if LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip); #else /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ return udp_sendto_if_src(pcb, p, dst_ip, dst_port, netif, src_ip); - 8017b18: 887a ldrh r2, [r7, #2] - 8017b1a: 697b ldr r3, [r7, #20] - 8017b1c: 9301 str r3, [sp, #4] - 8017b1e: 6a3b ldr r3, [r7, #32] - 8017b20: 9300 str r3, [sp, #0] - 8017b22: 4613 mov r3, r2 - 8017b24: 687a ldr r2, [r7, #4] - 8017b26: 68b9 ldr r1, [r7, #8] - 8017b28: 68f8 ldr r0, [r7, #12] - 8017b2a: f000 f811 bl 8017b50 - 8017b2e: 4603 mov r3, r0 + 8017b28: 887a ldrh r2, [r7, #2] + 8017b2a: 697b ldr r3, [r7, #20] + 8017b2c: 9301 str r3, [sp, #4] + 8017b2e: 6a3b ldr r3, [r7, #32] + 8017b30: 9300 str r3, [sp, #0] + 8017b32: 4613 mov r3, r2 + 8017b34: 687a ldr r2, [r7, #4] + 8017b36: 68b9 ldr r1, [r7, #8] + 8017b38: 68f8 ldr r0, [r7, #12] + 8017b3a: f000 f811 bl 8017b60 + 8017b3e: 4603 mov r3, r0 #endif /* LWIP_CHECKSUM_ON_COPY && CHECKSUM_GEN_UDP */ } - 8017b30: 4618 mov r0, r3 - 8017b32: 3718 adds r7, #24 - 8017b34: 46bd mov sp, r7 - 8017b36: bd80 pop {r7, pc} - 8017b38: 0801f9c4 .word 0x0801f9c4 - 8017b3c: 0801fb38 .word 0x0801fb38 - 8017b40: 0801fa18 .word 0x0801fa18 - 8017b44: 0801fb54 .word 0x0801fb54 - 8017b48: 0801fb70 .word 0x0801fb70 - 8017b4c: 0801fb90 .word 0x0801fb90 - -08017b50 : + 8017b40: 4618 mov r0, r3 + 8017b42: 3718 adds r7, #24 + 8017b44: 46bd mov sp, r7 + 8017b46: bd80 pop {r7, pc} + 8017b48: 0801f9d4 .word 0x0801f9d4 + 8017b4c: 0801fb48 .word 0x0801fb48 + 8017b50: 0801fa28 .word 0x0801fa28 + 8017b54: 0801fb64 .word 0x0801fb64 + 8017b58: 0801fb80 .word 0x0801fb80 + 8017b5c: 0801fba0 .word 0x0801fba0 + +08017b60 : /** @ingroup udp_raw * Same as @ref udp_sendto_if, but with source address */ err_t udp_sendto_if_src(struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *dst_ip, u16_t dst_port, struct netif *netif, const ip_addr_t *src_ip) { - 8017b50: b580 push {r7, lr} - 8017b52: b08c sub sp, #48 ; 0x30 - 8017b54: af04 add r7, sp, #16 - 8017b56: 60f8 str r0, [r7, #12] - 8017b58: 60b9 str r1, [r7, #8] - 8017b5a: 607a str r2, [r7, #4] - 8017b5c: 807b strh r3, [r7, #2] + 8017b60: b580 push {r7, lr} + 8017b62: b08c sub sp, #48 ; 0x30 + 8017b64: af04 add r7, sp, #16 + 8017b66: 60f8 str r0, [r7, #12] + 8017b68: 60b9 str r1, [r7, #8] + 8017b6a: 607a str r2, [r7, #4] + 8017b6c: 807b strh r3, [r7, #2] u8_t ip_proto; u8_t ttl; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("udp_sendto_if_src: invalid pcb", pcb != NULL, return ERR_ARG); - 8017b5e: 68fb ldr r3, [r7, #12] - 8017b60: 2b00 cmp r3, #0 - 8017b62: d109 bne.n 8017b78 - 8017b64: 4b65 ldr r3, [pc, #404] ; (8017cfc ) - 8017b66: f240 22d1 movw r2, #721 ; 0x2d1 - 8017b6a: 4965 ldr r1, [pc, #404] ; (8017d00 ) - 8017b6c: 4865 ldr r0, [pc, #404] ; (8017d04 ) - 8017b6e: f004 fd6b bl 801c648 - 8017b72: f06f 030f mvn.w r3, #15 - 8017b76: e0bc b.n 8017cf2 + 8017b6e: 68fb ldr r3, [r7, #12] + 8017b70: 2b00 cmp r3, #0 + 8017b72: d109 bne.n 8017b88 + 8017b74: 4b65 ldr r3, [pc, #404] ; (8017d0c ) + 8017b76: f240 22d1 movw r2, #721 ; 0x2d1 + 8017b7a: 4965 ldr r1, [pc, #404] ; (8017d10 ) + 8017b7c: 4865 ldr r0, [pc, #404] ; (8017d14 ) + 8017b7e: f004 fd6b bl 801c658 + 8017b82: f06f 030f mvn.w r3, #15 + 8017b86: e0bc b.n 8017d02 LWIP_ERROR("udp_sendto_if_src: invalid pbuf", p != NULL, return ERR_ARG); - 8017b78: 68bb ldr r3, [r7, #8] - 8017b7a: 2b00 cmp r3, #0 - 8017b7c: d109 bne.n 8017b92 - 8017b7e: 4b5f ldr r3, [pc, #380] ; (8017cfc ) - 8017b80: f240 22d2 movw r2, #722 ; 0x2d2 - 8017b84: 4960 ldr r1, [pc, #384] ; (8017d08 ) - 8017b86: 485f ldr r0, [pc, #380] ; (8017d04 ) - 8017b88: f004 fd5e bl 801c648 - 8017b8c: f06f 030f mvn.w r3, #15 - 8017b90: e0af b.n 8017cf2 + 8017b88: 68bb ldr r3, [r7, #8] + 8017b8a: 2b00 cmp r3, #0 + 8017b8c: d109 bne.n 8017ba2 + 8017b8e: 4b5f ldr r3, [pc, #380] ; (8017d0c ) + 8017b90: f240 22d2 movw r2, #722 ; 0x2d2 + 8017b94: 4960 ldr r1, [pc, #384] ; (8017d18 ) + 8017b96: 485f ldr r0, [pc, #380] ; (8017d14 ) + 8017b98: f004 fd5e bl 801c658 + 8017b9c: f06f 030f mvn.w r3, #15 + 8017ba0: e0af b.n 8017d02 LWIP_ERROR("udp_sendto_if_src: invalid dst_ip", dst_ip != NULL, return ERR_ARG); - 8017b92: 687b ldr r3, [r7, #4] - 8017b94: 2b00 cmp r3, #0 - 8017b96: d109 bne.n 8017bac - 8017b98: 4b58 ldr r3, [pc, #352] ; (8017cfc ) - 8017b9a: f240 22d3 movw r2, #723 ; 0x2d3 - 8017b9e: 495b ldr r1, [pc, #364] ; (8017d0c ) - 8017ba0: 4858 ldr r0, [pc, #352] ; (8017d04 ) - 8017ba2: f004 fd51 bl 801c648 - 8017ba6: f06f 030f mvn.w r3, #15 - 8017baa: e0a2 b.n 8017cf2 + 8017ba2: 687b ldr r3, [r7, #4] + 8017ba4: 2b00 cmp r3, #0 + 8017ba6: d109 bne.n 8017bbc + 8017ba8: 4b58 ldr r3, [pc, #352] ; (8017d0c ) + 8017baa: f240 22d3 movw r2, #723 ; 0x2d3 + 8017bae: 495b ldr r1, [pc, #364] ; (8017d1c ) + 8017bb0: 4858 ldr r0, [pc, #352] ; (8017d14 ) + 8017bb2: f004 fd51 bl 801c658 + 8017bb6: f06f 030f mvn.w r3, #15 + 8017bba: e0a2 b.n 8017d02 LWIP_ERROR("udp_sendto_if_src: invalid src_ip", src_ip != NULL, return ERR_ARG); - 8017bac: 6afb ldr r3, [r7, #44] ; 0x2c - 8017bae: 2b00 cmp r3, #0 - 8017bb0: d109 bne.n 8017bc6 - 8017bb2: 4b52 ldr r3, [pc, #328] ; (8017cfc ) - 8017bb4: f44f 7235 mov.w r2, #724 ; 0x2d4 - 8017bb8: 4955 ldr r1, [pc, #340] ; (8017d10 ) - 8017bba: 4852 ldr r0, [pc, #328] ; (8017d04 ) - 8017bbc: f004 fd44 bl 801c648 - 8017bc0: f06f 030f mvn.w r3, #15 - 8017bc4: e095 b.n 8017cf2 + 8017bbc: 6afb ldr r3, [r7, #44] ; 0x2c + 8017bbe: 2b00 cmp r3, #0 + 8017bc0: d109 bne.n 8017bd6 + 8017bc2: 4b52 ldr r3, [pc, #328] ; (8017d0c ) + 8017bc4: f44f 7235 mov.w r2, #724 ; 0x2d4 + 8017bc8: 4955 ldr r1, [pc, #340] ; (8017d20 ) + 8017bca: 4852 ldr r0, [pc, #328] ; (8017d14 ) + 8017bcc: f004 fd44 bl 801c658 + 8017bd0: f06f 030f mvn.w r3, #15 + 8017bd4: e095 b.n 8017d02 LWIP_ERROR("udp_sendto_if_src: invalid netif", netif != NULL, return ERR_ARG); - 8017bc6: 6abb ldr r3, [r7, #40] ; 0x28 - 8017bc8: 2b00 cmp r3, #0 - 8017bca: d109 bne.n 8017be0 - 8017bcc: 4b4b ldr r3, [pc, #300] ; (8017cfc ) - 8017bce: f240 22d5 movw r2, #725 ; 0x2d5 - 8017bd2: 4950 ldr r1, [pc, #320] ; (8017d14 ) - 8017bd4: 484b ldr r0, [pc, #300] ; (8017d04 ) - 8017bd6: f004 fd37 bl 801c648 - 8017bda: f06f 030f mvn.w r3, #15 - 8017bde: e088 b.n 8017cf2 + 8017bd6: 6abb ldr r3, [r7, #40] ; 0x28 + 8017bd8: 2b00 cmp r3, #0 + 8017bda: d109 bne.n 8017bf0 + 8017bdc: 4b4b ldr r3, [pc, #300] ; (8017d0c ) + 8017bde: f240 22d5 movw r2, #725 ; 0x2d5 + 8017be2: 4950 ldr r1, [pc, #320] ; (8017d24 ) + 8017be4: 484b ldr r0, [pc, #300] ; (8017d14 ) + 8017be6: f004 fd37 bl 801c658 + 8017bea: f06f 030f mvn.w r3, #15 + 8017bee: e088 b.n 8017d02 return ERR_VAL; } #endif /* LWIP_IPV4 && IP_SOF_BROADCAST */ /* if the PCB is not yet bound to a port, bind it here */ if (pcb->local_port == 0) { - 8017be0: 68fb ldr r3, [r7, #12] - 8017be2: 8a5b ldrh r3, [r3, #18] - 8017be4: 2b00 cmp r3, #0 - 8017be6: d10f bne.n 8017c08 + 8017bf0: 68fb ldr r3, [r7, #12] + 8017bf2: 8a5b ldrh r3, [r3, #18] + 8017bf4: 2b00 cmp r3, #0 + 8017bf6: d10f bne.n 8017c18 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_send: not yet bound to a port, binding now\n")); err = udp_bind(pcb, &pcb->local_ip, pcb->local_port); - 8017be8: 68f9 ldr r1, [r7, #12] - 8017bea: 68fb ldr r3, [r7, #12] - 8017bec: 8a5b ldrh r3, [r3, #18] - 8017bee: 461a mov r2, r3 - 8017bf0: 68f8 ldr r0, [r7, #12] - 8017bf2: f000 f893 bl 8017d1c - 8017bf6: 4603 mov r3, r0 - 8017bf8: 76fb strb r3, [r7, #27] + 8017bf8: 68f9 ldr r1, [r7, #12] + 8017bfa: 68fb ldr r3, [r7, #12] + 8017bfc: 8a5b ldrh r3, [r3, #18] + 8017bfe: 461a mov r2, r3 + 8017c00: 68f8 ldr r0, [r7, #12] + 8017c02: f000 f893 bl 8017d2c + 8017c06: 4603 mov r3, r0 + 8017c08: 76fb strb r3, [r7, #27] if (err != ERR_OK) { - 8017bfa: f997 301b ldrsb.w r3, [r7, #27] - 8017bfe: 2b00 cmp r3, #0 - 8017c00: d002 beq.n 8017c08 + 8017c0a: f997 301b ldrsb.w r3, [r7, #27] + 8017c0e: 2b00 cmp r3, #0 + 8017c10: d002 beq.n 8017c18 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: forced port bind failed\n")); return err; - 8017c02: f997 301b ldrsb.w r3, [r7, #27] - 8017c06: e074 b.n 8017cf2 + 8017c12: f997 301b ldrsb.w r3, [r7, #27] + 8017c16: e074 b.n 8017d02 } } /* packet too large to add a UDP header without causing an overflow? */ if ((u16_t)(p->tot_len + UDP_HLEN) < p->tot_len) { - 8017c08: 68bb ldr r3, [r7, #8] - 8017c0a: 891b ldrh r3, [r3, #8] - 8017c0c: f64f 72f7 movw r2, #65527 ; 0xfff7 - 8017c10: 4293 cmp r3, r2 - 8017c12: d902 bls.n 8017c1a + 8017c18: 68bb ldr r3, [r7, #8] + 8017c1a: 891b ldrh r3, [r3, #8] + 8017c1c: f64f 72f7 movw r2, #65527 ; 0xfff7 + 8017c20: 4293 cmp r3, r2 + 8017c22: d902 bls.n 8017c2a return ERR_MEM; - 8017c14: f04f 33ff mov.w r3, #4294967295 - 8017c18: e06b b.n 8017cf2 + 8017c24: f04f 33ff mov.w r3, #4294967295 + 8017c28: e06b b.n 8017d02 } /* not enough space to add an UDP header to first pbuf in given p chain? */ if (pbuf_add_header(p, UDP_HLEN)) { - 8017c1a: 2108 movs r1, #8 - 8017c1c: 68b8 ldr r0, [r7, #8] - 8017c1e: f7f9 ff4d bl 8011abc - 8017c22: 4603 mov r3, r0 - 8017c24: 2b00 cmp r3, #0 - 8017c26: d015 beq.n 8017c54 + 8017c2a: 2108 movs r1, #8 + 8017c2c: 68b8 ldr r0, [r7, #8] + 8017c2e: f7f9 ff4d bl 8011acc + 8017c32: 4603 mov r3, r0 + 8017c34: 2b00 cmp r3, #0 + 8017c36: d015 beq.n 8017c64 /* allocate header in a separate new pbuf */ q = pbuf_alloc(PBUF_IP, UDP_HLEN, PBUF_RAM); - 8017c28: f44f 7220 mov.w r2, #640 ; 0x280 - 8017c2c: 2108 movs r1, #8 - 8017c2e: 2022 movs r0, #34 ; 0x22 - 8017c30: f7f9 fcfa bl 8011628 - 8017c34: 61f8 str r0, [r7, #28] + 8017c38: f44f 7220 mov.w r2, #640 ; 0x280 + 8017c3c: 2108 movs r1, #8 + 8017c3e: 2022 movs r0, #34 ; 0x22 + 8017c40: f7f9 fcfa bl 8011638 + 8017c44: 61f8 str r0, [r7, #28] /* new header pbuf could not be allocated? */ if (q == NULL) { - 8017c36: 69fb ldr r3, [r7, #28] - 8017c38: 2b00 cmp r3, #0 - 8017c3a: d102 bne.n 8017c42 + 8017c46: 69fb ldr r3, [r7, #28] + 8017c48: 2b00 cmp r3, #0 + 8017c4a: d102 bne.n 8017c52 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("udp_send: could not allocate header\n")); return ERR_MEM; - 8017c3c: f04f 33ff mov.w r3, #4294967295 - 8017c40: e057 b.n 8017cf2 + 8017c4c: f04f 33ff mov.w r3, #4294967295 + 8017c50: e057 b.n 8017d02 } if (p->tot_len != 0) { - 8017c42: 68bb ldr r3, [r7, #8] - 8017c44: 891b ldrh r3, [r3, #8] - 8017c46: 2b00 cmp r3, #0 - 8017c48: d006 beq.n 8017c58 + 8017c52: 68bb ldr r3, [r7, #8] + 8017c54: 891b ldrh r3, [r3, #8] + 8017c56: 2b00 cmp r3, #0 + 8017c58: d006 beq.n 8017c68 /* chain header q in front of given pbuf p (only if p contains data) */ pbuf_chain(q, p); - 8017c4a: 68b9 ldr r1, [r7, #8] - 8017c4c: 69f8 ldr r0, [r7, #28] - 8017c4e: f7fa f8ef bl 8011e30 - 8017c52: e001 b.n 8017c58 + 8017c5a: 68b9 ldr r1, [r7, #8] + 8017c5c: 69f8 ldr r0, [r7, #28] + 8017c5e: f7fa f8ef bl 8011e40 + 8017c62: e001 b.n 8017c68 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: added header pbuf %p before given pbuf %p\n", (void *)q, (void *)p)); } else { /* adding space for header within p succeeded */ /* first pbuf q equals given pbuf */ q = p; - 8017c54: 68bb ldr r3, [r7, #8] - 8017c56: 61fb str r3, [r7, #28] + 8017c64: 68bb ldr r3, [r7, #8] + 8017c66: 61fb str r3, [r7, #28] LWIP_DEBUGF(UDP_DEBUG, ("udp_send: added header in given pbuf %p\n", (void *)p)); } LWIP_ASSERT("check that first pbuf can hold struct udp_hdr", - 8017c58: 69fb ldr r3, [r7, #28] - 8017c5a: 895b ldrh r3, [r3, #10] - 8017c5c: 2b07 cmp r3, #7 - 8017c5e: d806 bhi.n 8017c6e - 8017c60: 4b26 ldr r3, [pc, #152] ; (8017cfc ) - 8017c62: f240 320e movw r2, #782 ; 0x30e - 8017c66: 492c ldr r1, [pc, #176] ; (8017d18 ) - 8017c68: 4826 ldr r0, [pc, #152] ; (8017d04 ) - 8017c6a: f004 fced bl 801c648 + 8017c68: 69fb ldr r3, [r7, #28] + 8017c6a: 895b ldrh r3, [r3, #10] + 8017c6c: 2b07 cmp r3, #7 + 8017c6e: d806 bhi.n 8017c7e + 8017c70: 4b26 ldr r3, [pc, #152] ; (8017d0c ) + 8017c72: f240 320e movw r2, #782 ; 0x30e + 8017c76: 492c ldr r1, [pc, #176] ; (8017d28 ) + 8017c78: 4826 ldr r0, [pc, #152] ; (8017d14 ) + 8017c7a: f004 fced bl 801c658 (q->len >= sizeof(struct udp_hdr))); /* q now represents the packet to be sent */ udphdr = (struct udp_hdr *)q->payload; - 8017c6e: 69fb ldr r3, [r7, #28] - 8017c70: 685b ldr r3, [r3, #4] - 8017c72: 617b str r3, [r7, #20] + 8017c7e: 69fb ldr r3, [r7, #28] + 8017c80: 685b ldr r3, [r3, #4] + 8017c82: 617b str r3, [r7, #20] udphdr->src = lwip_htons(pcb->local_port); - 8017c74: 68fb ldr r3, [r7, #12] - 8017c76: 8a5b ldrh r3, [r3, #18] - 8017c78: 4618 mov r0, r3 - 8017c7a: f7f8 fc01 bl 8010480 - 8017c7e: 4603 mov r3, r0 - 8017c80: 461a mov r2, r3 - 8017c82: 697b ldr r3, [r7, #20] - 8017c84: 801a strh r2, [r3, #0] - udphdr->dest = lwip_htons(dst_port); - 8017c86: 887b ldrh r3, [r7, #2] + 8017c84: 68fb ldr r3, [r7, #12] + 8017c86: 8a5b ldrh r3, [r3, #18] 8017c88: 4618 mov r0, r3 - 8017c8a: f7f8 fbf9 bl 8010480 + 8017c8a: f7f8 fc01 bl 8010490 8017c8e: 4603 mov r3, r0 8017c90: 461a mov r2, r3 8017c92: 697b ldr r3, [r7, #20] - 8017c94: 805a strh r2, [r3, #2] + 8017c94: 801a strh r2, [r3, #0] + udphdr->dest = lwip_htons(dst_port); + 8017c96: 887b ldrh r3, [r7, #2] + 8017c98: 4618 mov r0, r3 + 8017c9a: f7f8 fbf9 bl 8010490 + 8017c9e: 4603 mov r3, r0 + 8017ca0: 461a mov r2, r3 + 8017ca2: 697b ldr r3, [r7, #20] + 8017ca4: 805a strh r2, [r3, #2] /* in UDP, 0 checksum means 'no checksum' */ udphdr->chksum = 0x0000; - 8017c96: 697b ldr r3, [r7, #20] - 8017c98: 2200 movs r2, #0 - 8017c9a: 719a strb r2, [r3, #6] - 8017c9c: 2200 movs r2, #0 - 8017c9e: 71da strb r2, [r3, #7] + 8017ca6: 697b ldr r3, [r7, #20] + 8017ca8: 2200 movs r2, #0 + 8017caa: 719a strb r2, [r3, #6] + 8017cac: 2200 movs r2, #0 + 8017cae: 71da strb r2, [r3, #7] ip_proto = IP_PROTO_UDPLITE; } else #endif /* LWIP_UDPLITE */ { /* UDP */ LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len)); udphdr->len = lwip_htons(q->tot_len); - 8017ca0: 69fb ldr r3, [r7, #28] - 8017ca2: 891b ldrh r3, [r3, #8] - 8017ca4: 4618 mov r0, r3 - 8017ca6: f7f8 fbeb bl 8010480 - 8017caa: 4603 mov r3, r0 - 8017cac: 461a mov r2, r3 - 8017cae: 697b ldr r3, [r7, #20] - 8017cb0: 809a strh r2, [r3, #4] + 8017cb0: 69fb ldr r3, [r7, #28] + 8017cb2: 891b ldrh r3, [r3, #8] + 8017cb4: 4618 mov r0, r3 + 8017cb6: f7f8 fbeb bl 8010490 + 8017cba: 4603 mov r3, r0 + 8017cbc: 461a mov r2, r3 + 8017cbe: 697b ldr r3, [r7, #20] + 8017cc0: 809a strh r2, [r3, #4] } udphdr->chksum = udpchksum; } } #endif /* CHECKSUM_GEN_UDP */ ip_proto = IP_PROTO_UDP; - 8017cb2: 2311 movs r3, #17 - 8017cb4: 74fb strb r3, [r7, #19] + 8017cc2: 2311 movs r3, #17 + 8017cc4: 74fb strb r3, [r7, #19] /* Determine TTL to use */ #if LWIP_MULTICAST_TX_OPTIONS ttl = (ip_addr_ismulticast(dst_ip) ? udp_get_multicast_ttl(pcb) : pcb->ttl); #else /* LWIP_MULTICAST_TX_OPTIONS */ ttl = pcb->ttl; - 8017cb6: 68fb ldr r3, [r7, #12] - 8017cb8: 7adb ldrb r3, [r3, #11] - 8017cba: 74bb strb r3, [r7, #18] + 8017cc6: 68fb ldr r3, [r7, #12] + 8017cc8: 7adb ldrb r3, [r3, #11] + 8017cca: 74bb strb r3, [r7, #18] LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP checksum 0x%04"X16_F"\n", udphdr->chksum)); LWIP_DEBUGF(UDP_DEBUG, ("udp_send: ip_output_if (,,,,0x%02"X16_F",)\n", (u16_t)ip_proto)); /* output to IP */ NETIF_SET_HINTS(netif, &(pcb->netif_hints)); err = ip_output_if_src(q, src_ip, dst_ip, ttl, pcb->tos, ip_proto, netif); - 8017cbc: 68fb ldr r3, [r7, #12] - 8017cbe: 7a9b ldrb r3, [r3, #10] - 8017cc0: 7cb9 ldrb r1, [r7, #18] - 8017cc2: 6aba ldr r2, [r7, #40] ; 0x28 - 8017cc4: 9202 str r2, [sp, #8] - 8017cc6: 7cfa ldrb r2, [r7, #19] - 8017cc8: 9201 str r2, [sp, #4] - 8017cca: 9300 str r3, [sp, #0] - 8017ccc: 460b mov r3, r1 - 8017cce: 687a ldr r2, [r7, #4] - 8017cd0: 6af9 ldr r1, [r7, #44] ; 0x2c - 8017cd2: 69f8 ldr r0, [r7, #28] - 8017cd4: f003 fb48 bl 801b368 - 8017cd8: 4603 mov r3, r0 - 8017cda: 76fb strb r3, [r7, #27] + 8017ccc: 68fb ldr r3, [r7, #12] + 8017cce: 7a9b ldrb r3, [r3, #10] + 8017cd0: 7cb9 ldrb r1, [r7, #18] + 8017cd2: 6aba ldr r2, [r7, #40] ; 0x28 + 8017cd4: 9202 str r2, [sp, #8] + 8017cd6: 7cfa ldrb r2, [r7, #19] + 8017cd8: 9201 str r2, [sp, #4] + 8017cda: 9300 str r3, [sp, #0] + 8017cdc: 460b mov r3, r1 + 8017cde: 687a ldr r2, [r7, #4] + 8017ce0: 6af9 ldr r1, [r7, #44] ; 0x2c + 8017ce2: 69f8 ldr r0, [r7, #28] + 8017ce4: f003 fb48 bl 801b378 + 8017ce8: 4603 mov r3, r0 + 8017cea: 76fb strb r3, [r7, #27] /* @todo: must this be increased even if error occurred? */ MIB2_STATS_INC(mib2.udpoutdatagrams); /* did we chain a separate header pbuf earlier? */ if (q != p) { - 8017cdc: 69fa ldr r2, [r7, #28] - 8017cde: 68bb ldr r3, [r7, #8] - 8017ce0: 429a cmp r2, r3 - 8017ce2: d004 beq.n 8017cee + 8017cec: 69fa ldr r2, [r7, #28] + 8017cee: 68bb ldr r3, [r7, #8] + 8017cf0: 429a cmp r2, r3 + 8017cf2: d004 beq.n 8017cfe /* free the header pbuf */ pbuf_free(q); - 8017ce4: 69f8 ldr r0, [r7, #28] - 8017ce6: f7f9 ff7f bl 8011be8 + 8017cf4: 69f8 ldr r0, [r7, #28] + 8017cf6: f7f9 ff7f bl 8011bf8 q = NULL; - 8017cea: 2300 movs r3, #0 - 8017cec: 61fb str r3, [r7, #28] + 8017cfa: 2300 movs r3, #0 + 8017cfc: 61fb str r3, [r7, #28] /* p is still referenced by the caller, and will live on */ } UDP_STATS_INC(udp.xmit); return err; - 8017cee: f997 301b ldrsb.w r3, [r7, #27] -} - 8017cf2: 4618 mov r0, r3 - 8017cf4: 3720 adds r7, #32 - 8017cf6: 46bd mov sp, r7 - 8017cf8: bd80 pop {r7, pc} - 8017cfa: bf00 nop - 8017cfc: 0801f9c4 .word 0x0801f9c4 - 8017d00: 0801fbb0 .word 0x0801fbb0 - 8017d04: 0801fa18 .word 0x0801fa18 - 8017d08: 0801fbd0 .word 0x0801fbd0 - 8017d0c: 0801fbf0 .word 0x0801fbf0 - 8017d10: 0801fc14 .word 0x0801fc14 - 8017d14: 0801fc38 .word 0x0801fc38 - 8017d18: 0801fc5c .word 0x0801fc5c - -08017d1c : + 8017cfe: f997 301b ldrsb.w r3, [r7, #27] +} + 8017d02: 4618 mov r0, r3 + 8017d04: 3720 adds r7, #32 + 8017d06: 46bd mov sp, r7 + 8017d08: bd80 pop {r7, pc} + 8017d0a: bf00 nop + 8017d0c: 0801f9d4 .word 0x0801f9d4 + 8017d10: 0801fbc0 .word 0x0801fbc0 + 8017d14: 0801fa28 .word 0x0801fa28 + 8017d18: 0801fbe0 .word 0x0801fbe0 + 8017d1c: 0801fc00 .word 0x0801fc00 + 8017d20: 0801fc24 .word 0x0801fc24 + 8017d24: 0801fc48 .word 0x0801fc48 + 8017d28: 0801fc6c .word 0x0801fc6c + +08017d2c : * * @see udp_disconnect() */ err_t udp_bind(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) { - 8017d1c: b580 push {r7, lr} - 8017d1e: b086 sub sp, #24 - 8017d20: af00 add r7, sp, #0 - 8017d22: 60f8 str r0, [r7, #12] - 8017d24: 60b9 str r1, [r7, #8] - 8017d26: 4613 mov r3, r2 - 8017d28: 80fb strh r3, [r7, #6] + 8017d2c: b580 push {r7, lr} + 8017d2e: b086 sub sp, #24 + 8017d30: af00 add r7, sp, #0 + 8017d32: 60f8 str r0, [r7, #12] + 8017d34: 60b9 str r1, [r7, #8] + 8017d36: 4613 mov r3, r2 + 8017d38: 80fb strh r3, [r7, #6] LWIP_ASSERT_CORE_LOCKED(); #if LWIP_IPV4 /* Don't propagate NULL pointer (IPv4 ANY) to subsequent functions */ if (ipaddr == NULL) { - 8017d2a: 68bb ldr r3, [r7, #8] - 8017d2c: 2b00 cmp r3, #0 - 8017d2e: d101 bne.n 8017d34 + 8017d3a: 68bb ldr r3, [r7, #8] + 8017d3c: 2b00 cmp r3, #0 + 8017d3e: d101 bne.n 8017d44 ipaddr = IP4_ADDR_ANY; - 8017d30: 4b39 ldr r3, [pc, #228] ; (8017e18 ) - 8017d32: 60bb str r3, [r7, #8] + 8017d40: 4b39 ldr r3, [pc, #228] ; (8017e28 ) + 8017d42: 60bb str r3, [r7, #8] } #else /* LWIP_IPV4 */ LWIP_ERROR("udp_bind: invalid ipaddr", ipaddr != NULL, return ERR_ARG); #endif /* LWIP_IPV4 */ LWIP_ERROR("udp_bind: invalid pcb", pcb != NULL, return ERR_ARG); - 8017d34: 68fb ldr r3, [r7, #12] - 8017d36: 2b00 cmp r3, #0 - 8017d38: d109 bne.n 8017d4e - 8017d3a: 4b38 ldr r3, [pc, #224] ; (8017e1c ) - 8017d3c: f240 32b7 movw r2, #951 ; 0x3b7 - 8017d40: 4937 ldr r1, [pc, #220] ; (8017e20 ) - 8017d42: 4838 ldr r0, [pc, #224] ; (8017e24 ) - 8017d44: f004 fc80 bl 801c648 - 8017d48: f06f 030f mvn.w r3, #15 - 8017d4c: e060 b.n 8017e10 + 8017d44: 68fb ldr r3, [r7, #12] + 8017d46: 2b00 cmp r3, #0 + 8017d48: d109 bne.n 8017d5e + 8017d4a: 4b38 ldr r3, [pc, #224] ; (8017e2c ) + 8017d4c: f240 32b7 movw r2, #951 ; 0x3b7 + 8017d50: 4937 ldr r1, [pc, #220] ; (8017e30 ) + 8017d52: 4838 ldr r0, [pc, #224] ; (8017e34 ) + 8017d54: f004 fc80 bl 801c658 + 8017d58: f06f 030f mvn.w r3, #15 + 8017d5c: e060 b.n 8017e20 LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, ("udp_bind(ipaddr = ")); ip_addr_debug_print(UDP_DEBUG | LWIP_DBG_TRACE, ipaddr); LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE, (", port = %"U16_F")\n", port)); rebind = 0; - 8017d4e: 2300 movs r3, #0 - 8017d50: 74fb strb r3, [r7, #19] + 8017d5e: 2300 movs r3, #0 + 8017d60: 74fb strb r3, [r7, #19] /* Check for double bind and rebind of the same pcb */ for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 8017d52: 4b35 ldr r3, [pc, #212] ; (8017e28 ) - 8017d54: 681b ldr r3, [r3, #0] - 8017d56: 617b str r3, [r7, #20] - 8017d58: e009 b.n 8017d6e + 8017d62: 4b35 ldr r3, [pc, #212] ; (8017e38 ) + 8017d64: 681b ldr r3, [r3, #0] + 8017d66: 617b str r3, [r7, #20] + 8017d68: e009 b.n 8017d7e /* is this UDP PCB already on active list? */ if (pcb == ipcb) { - 8017d5a: 68fa ldr r2, [r7, #12] - 8017d5c: 697b ldr r3, [r7, #20] - 8017d5e: 429a cmp r2, r3 - 8017d60: d102 bne.n 8017d68 + 8017d6a: 68fa ldr r2, [r7, #12] + 8017d6c: 697b ldr r3, [r7, #20] + 8017d6e: 429a cmp r2, r3 + 8017d70: d102 bne.n 8017d78 rebind = 1; - 8017d62: 2301 movs r3, #1 - 8017d64: 74fb strb r3, [r7, #19] + 8017d72: 2301 movs r3, #1 + 8017d74: 74fb strb r3, [r7, #19] break; - 8017d66: e005 b.n 8017d74 + 8017d76: e005 b.n 8017d84 for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 8017d68: 697b ldr r3, [r7, #20] - 8017d6a: 68db ldr r3, [r3, #12] - 8017d6c: 617b str r3, [r7, #20] - 8017d6e: 697b ldr r3, [r7, #20] - 8017d70: 2b00 cmp r3, #0 - 8017d72: d1f2 bne.n 8017d5a + 8017d78: 697b ldr r3, [r7, #20] + 8017d7a: 68db ldr r3, [r3, #12] + 8017d7c: 617b str r3, [r7, #20] + 8017d7e: 697b ldr r3, [r7, #20] + 8017d80: 2b00 cmp r3, #0 + 8017d82: d1f2 bne.n 8017d6a ipaddr = &zoned_ipaddr; } #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ /* no port specified? */ if (port == 0) { - 8017d74: 88fb ldrh r3, [r7, #6] - 8017d76: 2b00 cmp r3, #0 - 8017d78: d109 bne.n 8017d8e + 8017d84: 88fb ldrh r3, [r7, #6] + 8017d86: 2b00 cmp r3, #0 + 8017d88: d109 bne.n 8017d9e port = udp_new_port(); - 8017d7a: f7ff fcc5 bl 8017708 - 8017d7e: 4603 mov r3, r0 - 8017d80: 80fb strh r3, [r7, #6] + 8017d8a: f7ff fcc5 bl 8017718 + 8017d8e: 4603 mov r3, r0 + 8017d90: 80fb strh r3, [r7, #6] if (port == 0) { - 8017d82: 88fb ldrh r3, [r7, #6] - 8017d84: 2b00 cmp r3, #0 - 8017d86: d12c bne.n 8017de2 + 8017d92: 88fb ldrh r3, [r7, #6] + 8017d94: 2b00 cmp r3, #0 + 8017d96: d12c bne.n 8017df2 /* no more ports available in local range */ LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: out of free UDP ports\n")); return ERR_USE; - 8017d88: f06f 0307 mvn.w r3, #7 - 8017d8c: e040 b.n 8017e10 + 8017d98: f06f 0307 mvn.w r3, #7 + 8017d9c: e040 b.n 8017e20 } } else { for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 8017d8e: 4b26 ldr r3, [pc, #152] ; (8017e28 ) - 8017d90: 681b ldr r3, [r3, #0] - 8017d92: 617b str r3, [r7, #20] - 8017d94: e022 b.n 8017ddc + 8017d9e: 4b26 ldr r3, [pc, #152] ; (8017e38 ) + 8017da0: 681b ldr r3, [r3, #0] + 8017da2: 617b str r3, [r7, #20] + 8017da4: e022 b.n 8017dec if (pcb != ipcb) { - 8017d96: 68fa ldr r2, [r7, #12] - 8017d98: 697b ldr r3, [r7, #20] - 8017d9a: 429a cmp r2, r3 - 8017d9c: d01b beq.n 8017dd6 + 8017da6: 68fa ldr r2, [r7, #12] + 8017da8: 697b ldr r3, [r7, #20] + 8017daa: 429a cmp r2, r3 + 8017dac: d01b beq.n 8017de6 if (!ip_get_option(pcb, SOF_REUSEADDR) || !ip_get_option(ipcb, SOF_REUSEADDR)) #endif /* SO_REUSE */ { /* port matches that of PCB in list and REUSEADDR not set -> reject */ if ((ipcb->local_port == port) && - 8017d9e: 697b ldr r3, [r7, #20] - 8017da0: 8a5b ldrh r3, [r3, #18] - 8017da2: 88fa ldrh r2, [r7, #6] - 8017da4: 429a cmp r2, r3 - 8017da6: d116 bne.n 8017dd6 + 8017dae: 697b ldr r3, [r7, #20] + 8017db0: 8a5b ldrh r3, [r3, #18] + 8017db2: 88fa ldrh r2, [r7, #6] + 8017db4: 429a cmp r2, r3 + 8017db6: d116 bne.n 8017de6 /* IP address matches or any IP used? */ (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 8017da8: 697b ldr r3, [r7, #20] - 8017daa: 681a ldr r2, [r3, #0] - 8017dac: 68bb ldr r3, [r7, #8] - 8017dae: 681b ldr r3, [r3, #0] + 8017db8: 697b ldr r3, [r7, #20] + 8017dba: 681a ldr r2, [r3, #0] + 8017dbc: 68bb ldr r3, [r7, #8] + 8017dbe: 681b ldr r3, [r3, #0] if ((ipcb->local_port == port) && - 8017db0: 429a cmp r2, r3 - 8017db2: d00d beq.n 8017dd0 + 8017dc0: 429a cmp r2, r3 + 8017dc2: d00d beq.n 8017de0 (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 8017db4: 68bb ldr r3, [r7, #8] - 8017db6: 2b00 cmp r3, #0 - 8017db8: d00a beq.n 8017dd0 - 8017dba: 68bb ldr r3, [r7, #8] - 8017dbc: 681b ldr r3, [r3, #0] - 8017dbe: 2b00 cmp r3, #0 - 8017dc0: d006 beq.n 8017dd0 + 8017dc4: 68bb ldr r3, [r7, #8] + 8017dc6: 2b00 cmp r3, #0 + 8017dc8: d00a beq.n 8017de0 + 8017dca: 68bb ldr r3, [r7, #8] + 8017dcc: 681b ldr r3, [r3, #0] + 8017dce: 2b00 cmp r3, #0 + 8017dd0: d006 beq.n 8017de0 ip_addr_isany(&ipcb->local_ip))) { - 8017dc2: 697b ldr r3, [r7, #20] + 8017dd2: 697b ldr r3, [r7, #20] (ip_addr_cmp(&ipcb->local_ip, ipaddr) || ip_addr_isany(ipaddr) || - 8017dc4: 2b00 cmp r3, #0 - 8017dc6: d003 beq.n 8017dd0 + 8017dd4: 2b00 cmp r3, #0 + 8017dd6: d003 beq.n 8017de0 ip_addr_isany(&ipcb->local_ip))) { - 8017dc8: 697b ldr r3, [r7, #20] - 8017dca: 681b ldr r3, [r3, #0] - 8017dcc: 2b00 cmp r3, #0 - 8017dce: d102 bne.n 8017dd6 + 8017dd8: 697b ldr r3, [r7, #20] + 8017dda: 681b ldr r3, [r3, #0] + 8017ddc: 2b00 cmp r3, #0 + 8017dde: d102 bne.n 8017de6 /* other PCB already binds to this local IP and port */ LWIP_DEBUGF(UDP_DEBUG, ("udp_bind: local port %"U16_F" already bound by another pcb\n", port)); return ERR_USE; - 8017dd0: f06f 0307 mvn.w r3, #7 - 8017dd4: e01c b.n 8017e10 + 8017de0: f06f 0307 mvn.w r3, #7 + 8017de4: e01c b.n 8017e20 for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 8017dd6: 697b ldr r3, [r7, #20] - 8017dd8: 68db ldr r3, [r3, #12] - 8017dda: 617b str r3, [r7, #20] - 8017ddc: 697b ldr r3, [r7, #20] - 8017dde: 2b00 cmp r3, #0 - 8017de0: d1d9 bne.n 8017d96 + 8017de6: 697b ldr r3, [r7, #20] + 8017de8: 68db ldr r3, [r3, #12] + 8017dea: 617b str r3, [r7, #20] + 8017dec: 697b ldr r3, [r7, #20] + 8017dee: 2b00 cmp r3, #0 + 8017df0: d1d9 bne.n 8017da6 } } } } ip_addr_set_ipaddr(&pcb->local_ip, ipaddr); - 8017de2: 68bb ldr r3, [r7, #8] - 8017de4: 2b00 cmp r3, #0 - 8017de6: d002 beq.n 8017dee - 8017de8: 68bb ldr r3, [r7, #8] - 8017dea: 681b ldr r3, [r3, #0] - 8017dec: e000 b.n 8017df0 - 8017dee: 2300 movs r3, #0 - 8017df0: 68fa ldr r2, [r7, #12] - 8017df2: 6013 str r3, [r2, #0] + 8017df2: 68bb ldr r3, [r7, #8] + 8017df4: 2b00 cmp r3, #0 + 8017df6: d002 beq.n 8017dfe + 8017df8: 68bb ldr r3, [r7, #8] + 8017dfa: 681b ldr r3, [r3, #0] + 8017dfc: e000 b.n 8017e00 + 8017dfe: 2300 movs r3, #0 + 8017e00: 68fa ldr r2, [r7, #12] + 8017e02: 6013 str r3, [r2, #0] pcb->local_port = port; - 8017df4: 68fb ldr r3, [r7, #12] - 8017df6: 88fa ldrh r2, [r7, #6] - 8017df8: 825a strh r2, [r3, #18] + 8017e04: 68fb ldr r3, [r7, #12] + 8017e06: 88fa ldrh r2, [r7, #6] + 8017e08: 825a strh r2, [r3, #18] mib2_udp_bind(pcb); /* pcb not active yet? */ if (rebind == 0) { - 8017dfa: 7cfb ldrb r3, [r7, #19] - 8017dfc: 2b00 cmp r3, #0 - 8017dfe: d106 bne.n 8017e0e + 8017e0a: 7cfb ldrb r3, [r7, #19] + 8017e0c: 2b00 cmp r3, #0 + 8017e0e: d106 bne.n 8017e1e /* place the PCB on the active list if not already there */ pcb->next = udp_pcbs; - 8017e00: 4b09 ldr r3, [pc, #36] ; (8017e28 ) - 8017e02: 681a ldr r2, [r3, #0] - 8017e04: 68fb ldr r3, [r7, #12] - 8017e06: 60da str r2, [r3, #12] + 8017e10: 4b09 ldr r3, [pc, #36] ; (8017e38 ) + 8017e12: 681a ldr r2, [r3, #0] + 8017e14: 68fb ldr r3, [r7, #12] + 8017e16: 60da str r2, [r3, #12] udp_pcbs = pcb; - 8017e08: 4a07 ldr r2, [pc, #28] ; (8017e28 ) - 8017e0a: 68fb ldr r3, [r7, #12] - 8017e0c: 6013 str r3, [r2, #0] + 8017e18: 4a07 ldr r2, [pc, #28] ; (8017e38 ) + 8017e1a: 68fb ldr r3, [r7, #12] + 8017e1c: 6013 str r3, [r2, #0] } LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("udp_bind: bound to ")); ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, pcb->local_ip); LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->local_port)); return ERR_OK; - 8017e0e: 2300 movs r3, #0 -} - 8017e10: 4618 mov r0, r3 - 8017e12: 3718 adds r7, #24 - 8017e14: 46bd mov sp, r7 - 8017e16: bd80 pop {r7, pc} - 8017e18: 080227f8 .word 0x080227f8 - 8017e1c: 0801f9c4 .word 0x0801f9c4 - 8017e20: 0801fc8c .word 0x0801fc8c - 8017e24: 0801fa18 .word 0x0801fa18 - 8017e28: 2000f808 .word 0x2000f808 - -08017e2c : + 8017e1e: 2300 movs r3, #0 +} + 8017e20: 4618 mov r0, r3 + 8017e22: 3718 adds r7, #24 + 8017e24: 46bd mov sp, r7 + 8017e26: bd80 pop {r7, pc} + 8017e28: 08022808 .word 0x08022808 + 8017e2c: 0801f9d4 .word 0x0801f9d4 + 8017e30: 0801fc9c .word 0x0801fc9c + 8017e34: 0801fa28 .word 0x0801fa28 + 8017e38: 2000f808 .word 0x2000f808 + +08017e3c : * * @see udp_disconnect() */ err_t udp_connect(struct udp_pcb *pcb, const ip_addr_t *ipaddr, u16_t port) { - 8017e2c: b580 push {r7, lr} - 8017e2e: b086 sub sp, #24 - 8017e30: af00 add r7, sp, #0 - 8017e32: 60f8 str r0, [r7, #12] - 8017e34: 60b9 str r1, [r7, #8] - 8017e36: 4613 mov r3, r2 - 8017e38: 80fb strh r3, [r7, #6] + 8017e3c: b580 push {r7, lr} + 8017e3e: b086 sub sp, #24 + 8017e40: af00 add r7, sp, #0 + 8017e42: 60f8 str r0, [r7, #12] + 8017e44: 60b9 str r1, [r7, #8] + 8017e46: 4613 mov r3, r2 + 8017e48: 80fb strh r3, [r7, #6] struct udp_pcb *ipcb; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("udp_connect: invalid pcb", pcb != NULL, return ERR_ARG); - 8017e3a: 68fb ldr r3, [r7, #12] - 8017e3c: 2b00 cmp r3, #0 - 8017e3e: d109 bne.n 8017e54 - 8017e40: 4b2c ldr r3, [pc, #176] ; (8017ef4 ) - 8017e42: f240 4235 movw r2, #1077 ; 0x435 - 8017e46: 492c ldr r1, [pc, #176] ; (8017ef8 ) - 8017e48: 482c ldr r0, [pc, #176] ; (8017efc ) - 8017e4a: f004 fbfd bl 801c648 - 8017e4e: f06f 030f mvn.w r3, #15 - 8017e52: e04b b.n 8017eec + 8017e4a: 68fb ldr r3, [r7, #12] + 8017e4c: 2b00 cmp r3, #0 + 8017e4e: d109 bne.n 8017e64 + 8017e50: 4b2c ldr r3, [pc, #176] ; (8017f04 ) + 8017e52: f240 4235 movw r2, #1077 ; 0x435 + 8017e56: 492c ldr r1, [pc, #176] ; (8017f08 ) + 8017e58: 482c ldr r0, [pc, #176] ; (8017f0c ) + 8017e5a: f004 fbfd bl 801c658 + 8017e5e: f06f 030f mvn.w r3, #15 + 8017e62: e04b b.n 8017efc LWIP_ERROR("udp_connect: invalid ipaddr", ipaddr != NULL, return ERR_ARG); - 8017e54: 68bb ldr r3, [r7, #8] - 8017e56: 2b00 cmp r3, #0 - 8017e58: d109 bne.n 8017e6e - 8017e5a: 4b26 ldr r3, [pc, #152] ; (8017ef4 ) - 8017e5c: f240 4236 movw r2, #1078 ; 0x436 - 8017e60: 4927 ldr r1, [pc, #156] ; (8017f00 ) - 8017e62: 4826 ldr r0, [pc, #152] ; (8017efc ) - 8017e64: f004 fbf0 bl 801c648 - 8017e68: f06f 030f mvn.w r3, #15 - 8017e6c: e03e b.n 8017eec + 8017e64: 68bb ldr r3, [r7, #8] + 8017e66: 2b00 cmp r3, #0 + 8017e68: d109 bne.n 8017e7e + 8017e6a: 4b26 ldr r3, [pc, #152] ; (8017f04 ) + 8017e6c: f240 4236 movw r2, #1078 ; 0x436 + 8017e70: 4927 ldr r1, [pc, #156] ; (8017f10 ) + 8017e72: 4826 ldr r0, [pc, #152] ; (8017f0c ) + 8017e74: f004 fbf0 bl 801c658 + 8017e78: f06f 030f mvn.w r3, #15 + 8017e7c: e03e b.n 8017efc if (pcb->local_port == 0) { - 8017e6e: 68fb ldr r3, [r7, #12] - 8017e70: 8a5b ldrh r3, [r3, #18] - 8017e72: 2b00 cmp r3, #0 - 8017e74: d10f bne.n 8017e96 + 8017e7e: 68fb ldr r3, [r7, #12] + 8017e80: 8a5b ldrh r3, [r3, #18] + 8017e82: 2b00 cmp r3, #0 + 8017e84: d10f bne.n 8017ea6 err_t err = udp_bind(pcb, &pcb->local_ip, pcb->local_port); - 8017e76: 68f9 ldr r1, [r7, #12] - 8017e78: 68fb ldr r3, [r7, #12] - 8017e7a: 8a5b ldrh r3, [r3, #18] - 8017e7c: 461a mov r2, r3 - 8017e7e: 68f8 ldr r0, [r7, #12] - 8017e80: f7ff ff4c bl 8017d1c - 8017e84: 4603 mov r3, r0 - 8017e86: 74fb strb r3, [r7, #19] + 8017e86: 68f9 ldr r1, [r7, #12] + 8017e88: 68fb ldr r3, [r7, #12] + 8017e8a: 8a5b ldrh r3, [r3, #18] + 8017e8c: 461a mov r2, r3 + 8017e8e: 68f8 ldr r0, [r7, #12] + 8017e90: f7ff ff4c bl 8017d2c + 8017e94: 4603 mov r3, r0 + 8017e96: 74fb strb r3, [r7, #19] if (err != ERR_OK) { - 8017e88: f997 3013 ldrsb.w r3, [r7, #19] - 8017e8c: 2b00 cmp r3, #0 - 8017e8e: d002 beq.n 8017e96 + 8017e98: f997 3013 ldrsb.w r3, [r7, #19] + 8017e9c: 2b00 cmp r3, #0 + 8017e9e: d002 beq.n 8017ea6 return err; - 8017e90: f997 3013 ldrsb.w r3, [r7, #19] - 8017e94: e02a b.n 8017eec + 8017ea0: f997 3013 ldrsb.w r3, [r7, #19] + 8017ea4: e02a b.n 8017efc } } ip_addr_set_ipaddr(&pcb->remote_ip, ipaddr); - 8017e96: 68bb ldr r3, [r7, #8] - 8017e98: 2b00 cmp r3, #0 - 8017e9a: d002 beq.n 8017ea2 - 8017e9c: 68bb ldr r3, [r7, #8] - 8017e9e: 681b ldr r3, [r3, #0] - 8017ea0: e000 b.n 8017ea4 - 8017ea2: 2300 movs r3, #0 - 8017ea4: 68fa ldr r2, [r7, #12] - 8017ea6: 6053 str r3, [r2, #4] + 8017ea6: 68bb ldr r3, [r7, #8] + 8017ea8: 2b00 cmp r3, #0 + 8017eaa: d002 beq.n 8017eb2 + 8017eac: 68bb ldr r3, [r7, #8] + 8017eae: 681b ldr r3, [r3, #0] + 8017eb0: e000 b.n 8017eb4 + 8017eb2: 2300 movs r3, #0 + 8017eb4: 68fa ldr r2, [r7, #12] + 8017eb6: 6053 str r3, [r2, #4] ip6_addr_lacks_zone(ip_2_ip6(&pcb->remote_ip), IP6_UNKNOWN)) { ip6_addr_select_zone(ip_2_ip6(&pcb->remote_ip), ip_2_ip6(&pcb->local_ip)); } #endif /* LWIP_IPV6 && LWIP_IPV6_SCOPES */ pcb->remote_port = port; - 8017ea8: 68fb ldr r3, [r7, #12] - 8017eaa: 88fa ldrh r2, [r7, #6] - 8017eac: 829a strh r2, [r3, #20] - pcb->flags |= UDP_FLAGS_CONNECTED; - 8017eae: 68fb ldr r3, [r7, #12] - 8017eb0: 7c1b ldrb r3, [r3, #16] - 8017eb2: f043 0304 orr.w r3, r3, #4 - 8017eb6: b2da uxtb r2, r3 8017eb8: 68fb ldr r3, [r7, #12] - 8017eba: 741a strb r2, [r3, #16] + 8017eba: 88fa ldrh r2, [r7, #6] + 8017ebc: 829a strh r2, [r3, #20] + pcb->flags |= UDP_FLAGS_CONNECTED; + 8017ebe: 68fb ldr r3, [r7, #12] + 8017ec0: 7c1b ldrb r3, [r3, #16] + 8017ec2: f043 0304 orr.w r3, r3, #4 + 8017ec6: b2da uxtb r2, r3 + 8017ec8: 68fb ldr r3, [r7, #12] + 8017eca: 741a strb r2, [r3, #16] ip_addr_debug_print_val(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, pcb->remote_ip); LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (", port %"U16_F")\n", pcb->remote_port)); /* Insert UDP PCB into the list of active UDP PCBs. */ for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 8017ebc: 4b11 ldr r3, [pc, #68] ; (8017f04 ) - 8017ebe: 681b ldr r3, [r3, #0] - 8017ec0: 617b str r3, [r7, #20] - 8017ec2: e008 b.n 8017ed6 + 8017ecc: 4b11 ldr r3, [pc, #68] ; (8017f14 ) + 8017ece: 681b ldr r3, [r3, #0] + 8017ed0: 617b str r3, [r7, #20] + 8017ed2: e008 b.n 8017ee6 if (pcb == ipcb) { - 8017ec4: 68fa ldr r2, [r7, #12] - 8017ec6: 697b ldr r3, [r7, #20] - 8017ec8: 429a cmp r2, r3 - 8017eca: d101 bne.n 8017ed0 + 8017ed4: 68fa ldr r2, [r7, #12] + 8017ed6: 697b ldr r3, [r7, #20] + 8017ed8: 429a cmp r2, r3 + 8017eda: d101 bne.n 8017ee0 /* already on the list, just return */ return ERR_OK; - 8017ecc: 2300 movs r3, #0 - 8017ece: e00d b.n 8017eec + 8017edc: 2300 movs r3, #0 + 8017ede: e00d b.n 8017efc for (ipcb = udp_pcbs; ipcb != NULL; ipcb = ipcb->next) { - 8017ed0: 697b ldr r3, [r7, #20] - 8017ed2: 68db ldr r3, [r3, #12] - 8017ed4: 617b str r3, [r7, #20] - 8017ed6: 697b ldr r3, [r7, #20] - 8017ed8: 2b00 cmp r3, #0 - 8017eda: d1f3 bne.n 8017ec4 + 8017ee0: 697b ldr r3, [r7, #20] + 8017ee2: 68db ldr r3, [r3, #12] + 8017ee4: 617b str r3, [r7, #20] + 8017ee6: 697b ldr r3, [r7, #20] + 8017ee8: 2b00 cmp r3, #0 + 8017eea: d1f3 bne.n 8017ed4 } } /* PCB not yet on the list, add PCB now */ pcb->next = udp_pcbs; - 8017edc: 4b09 ldr r3, [pc, #36] ; (8017f04 ) - 8017ede: 681a ldr r2, [r3, #0] - 8017ee0: 68fb ldr r3, [r7, #12] - 8017ee2: 60da str r2, [r3, #12] + 8017eec: 4b09 ldr r3, [pc, #36] ; (8017f14 ) + 8017eee: 681a ldr r2, [r3, #0] + 8017ef0: 68fb ldr r3, [r7, #12] + 8017ef2: 60da str r2, [r3, #12] udp_pcbs = pcb; - 8017ee4: 4a07 ldr r2, [pc, #28] ; (8017f04 ) - 8017ee6: 68fb ldr r3, [r7, #12] - 8017ee8: 6013 str r3, [r2, #0] + 8017ef4: 4a07 ldr r2, [pc, #28] ; (8017f14 ) + 8017ef6: 68fb ldr r3, [r7, #12] + 8017ef8: 6013 str r3, [r2, #0] return ERR_OK; - 8017eea: 2300 movs r3, #0 -} - 8017eec: 4618 mov r0, r3 - 8017eee: 3718 adds r7, #24 - 8017ef0: 46bd mov sp, r7 - 8017ef2: bd80 pop {r7, pc} - 8017ef4: 0801f9c4 .word 0x0801f9c4 - 8017ef8: 0801fca4 .word 0x0801fca4 - 8017efc: 0801fa18 .word 0x0801fa18 - 8017f00: 0801fcc0 .word 0x0801fcc0 - 8017f04: 2000f808 .word 0x2000f808 - -08017f08 : + 8017efa: 2300 movs r3, #0 +} + 8017efc: 4618 mov r0, r3 + 8017efe: 3718 adds r7, #24 + 8017f00: 46bd mov sp, r7 + 8017f02: bd80 pop {r7, pc} + 8017f04: 0801f9d4 .word 0x0801f9d4 + 8017f08: 0801fcb4 .word 0x0801fcb4 + 8017f0c: 0801fa28 .word 0x0801fa28 + 8017f10: 0801fcd0 .word 0x0801fcd0 + 8017f14: 2000f808 .word 0x2000f808 + +08017f18 : * @param recv function pointer of the callback function * @param recv_arg additional argument to pass to the callback function */ void udp_recv(struct udp_pcb *pcb, udp_recv_fn recv, void *recv_arg) { - 8017f08: b580 push {r7, lr} - 8017f0a: b084 sub sp, #16 - 8017f0c: af00 add r7, sp, #0 - 8017f0e: 60f8 str r0, [r7, #12] - 8017f10: 60b9 str r1, [r7, #8] - 8017f12: 607a str r2, [r7, #4] + 8017f18: b580 push {r7, lr} + 8017f1a: b084 sub sp, #16 + 8017f1c: af00 add r7, sp, #0 + 8017f1e: 60f8 str r0, [r7, #12] + 8017f20: 60b9 str r1, [r7, #8] + 8017f22: 607a str r2, [r7, #4] LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("udp_recv: invalid pcb", pcb != NULL, return); - 8017f14: 68fb ldr r3, [r7, #12] - 8017f16: 2b00 cmp r3, #0 - 8017f18: d107 bne.n 8017f2a - 8017f1a: 4b08 ldr r3, [pc, #32] ; (8017f3c ) - 8017f1c: f240 428a movw r2, #1162 ; 0x48a - 8017f20: 4907 ldr r1, [pc, #28] ; (8017f40 ) - 8017f22: 4808 ldr r0, [pc, #32] ; (8017f44 ) - 8017f24: f004 fb90 bl 801c648 - 8017f28: e005 b.n 8017f36 + 8017f24: 68fb ldr r3, [r7, #12] + 8017f26: 2b00 cmp r3, #0 + 8017f28: d107 bne.n 8017f3a + 8017f2a: 4b08 ldr r3, [pc, #32] ; (8017f4c ) + 8017f2c: f240 428a movw r2, #1162 ; 0x48a + 8017f30: 4907 ldr r1, [pc, #28] ; (8017f50 ) + 8017f32: 4808 ldr r0, [pc, #32] ; (8017f54 ) + 8017f34: f004 fb90 bl 801c658 + 8017f38: e005 b.n 8017f46 /* remember recv() callback and user data */ pcb->recv = recv; - 8017f2a: 68fb ldr r3, [r7, #12] - 8017f2c: 68ba ldr r2, [r7, #8] - 8017f2e: 619a str r2, [r3, #24] + 8017f3a: 68fb ldr r3, [r7, #12] + 8017f3c: 68ba ldr r2, [r7, #8] + 8017f3e: 619a str r2, [r3, #24] pcb->recv_arg = recv_arg; - 8017f30: 68fb ldr r3, [r7, #12] - 8017f32: 687a ldr r2, [r7, #4] - 8017f34: 61da str r2, [r3, #28] -} - 8017f36: 3710 adds r7, #16 - 8017f38: 46bd mov sp, r7 - 8017f3a: bd80 pop {r7, pc} - 8017f3c: 0801f9c4 .word 0x0801f9c4 - 8017f40: 0801fcf8 .word 0x0801fcf8 - 8017f44: 0801fa18 .word 0x0801fa18 - -08017f48 : + 8017f40: 68fb ldr r3, [r7, #12] + 8017f42: 687a ldr r2, [r7, #4] + 8017f44: 61da str r2, [r3, #28] +} + 8017f46: 3710 adds r7, #16 + 8017f48: 46bd mov sp, r7 + 8017f4a: bd80 pop {r7, pc} + 8017f4c: 0801f9d4 .word 0x0801f9d4 + 8017f50: 0801fd08 .word 0x0801fd08 + 8017f54: 0801fa28 .word 0x0801fa28 + +08017f58 : * * @see udp_new() */ void udp_remove(struct udp_pcb *pcb) { - 8017f48: b580 push {r7, lr} - 8017f4a: b084 sub sp, #16 - 8017f4c: af00 add r7, sp, #0 - 8017f4e: 6078 str r0, [r7, #4] + 8017f58: b580 push {r7, lr} + 8017f5a: b084 sub sp, #16 + 8017f5c: af00 add r7, sp, #0 + 8017f5e: 6078 str r0, [r7, #4] struct udp_pcb *pcb2; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("udp_remove: invalid pcb", pcb != NULL, return); - 8017f50: 687b ldr r3, [r7, #4] - 8017f52: 2b00 cmp r3, #0 - 8017f54: d107 bne.n 8017f66 - 8017f56: 4b19 ldr r3, [pc, #100] ; (8017fbc ) - 8017f58: f240 42a1 movw r2, #1185 ; 0x4a1 - 8017f5c: 4918 ldr r1, [pc, #96] ; (8017fc0 ) - 8017f5e: 4819 ldr r0, [pc, #100] ; (8017fc4 ) - 8017f60: f004 fb72 bl 801c648 - 8017f64: e026 b.n 8017fb4 + 8017f60: 687b ldr r3, [r7, #4] + 8017f62: 2b00 cmp r3, #0 + 8017f64: d107 bne.n 8017f76 + 8017f66: 4b19 ldr r3, [pc, #100] ; (8017fcc ) + 8017f68: f240 42a1 movw r2, #1185 ; 0x4a1 + 8017f6c: 4918 ldr r1, [pc, #96] ; (8017fd0 ) + 8017f6e: 4819 ldr r0, [pc, #100] ; (8017fd4 ) + 8017f70: f004 fb72 bl 801c658 + 8017f74: e026 b.n 8017fc4 mib2_udp_unbind(pcb); /* pcb to be removed is first in list? */ if (udp_pcbs == pcb) { - 8017f66: 4b18 ldr r3, [pc, #96] ; (8017fc8 ) - 8017f68: 681b ldr r3, [r3, #0] - 8017f6a: 687a ldr r2, [r7, #4] - 8017f6c: 429a cmp r2, r3 - 8017f6e: d105 bne.n 8017f7c + 8017f76: 4b18 ldr r3, [pc, #96] ; (8017fd8 ) + 8017f78: 681b ldr r3, [r3, #0] + 8017f7a: 687a ldr r2, [r7, #4] + 8017f7c: 429a cmp r2, r3 + 8017f7e: d105 bne.n 8017f8c /* make list start at 2nd pcb */ udp_pcbs = udp_pcbs->next; - 8017f70: 4b15 ldr r3, [pc, #84] ; (8017fc8 ) - 8017f72: 681b ldr r3, [r3, #0] - 8017f74: 68db ldr r3, [r3, #12] - 8017f76: 4a14 ldr r2, [pc, #80] ; (8017fc8 ) - 8017f78: 6013 str r3, [r2, #0] - 8017f7a: e017 b.n 8017fac + 8017f80: 4b15 ldr r3, [pc, #84] ; (8017fd8 ) + 8017f82: 681b ldr r3, [r3, #0] + 8017f84: 68db ldr r3, [r3, #12] + 8017f86: 4a14 ldr r2, [pc, #80] ; (8017fd8 ) + 8017f88: 6013 str r3, [r2, #0] + 8017f8a: e017 b.n 8017fbc /* pcb not 1st in list */ } else { for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { - 8017f7c: 4b12 ldr r3, [pc, #72] ; (8017fc8 ) - 8017f7e: 681b ldr r3, [r3, #0] - 8017f80: 60fb str r3, [r7, #12] - 8017f82: e010 b.n 8017fa6 + 8017f8c: 4b12 ldr r3, [pc, #72] ; (8017fd8 ) + 8017f8e: 681b ldr r3, [r3, #0] + 8017f90: 60fb str r3, [r7, #12] + 8017f92: e010 b.n 8017fb6 /* find pcb in udp_pcbs list */ if (pcb2->next != NULL && pcb2->next == pcb) { - 8017f84: 68fb ldr r3, [r7, #12] - 8017f86: 68db ldr r3, [r3, #12] - 8017f88: 2b00 cmp r3, #0 - 8017f8a: d009 beq.n 8017fa0 - 8017f8c: 68fb ldr r3, [r7, #12] - 8017f8e: 68db ldr r3, [r3, #12] - 8017f90: 687a ldr r2, [r7, #4] - 8017f92: 429a cmp r2, r3 - 8017f94: d104 bne.n 8017fa0 + 8017f94: 68fb ldr r3, [r7, #12] + 8017f96: 68db ldr r3, [r3, #12] + 8017f98: 2b00 cmp r3, #0 + 8017f9a: d009 beq.n 8017fb0 + 8017f9c: 68fb ldr r3, [r7, #12] + 8017f9e: 68db ldr r3, [r3, #12] + 8017fa0: 687a ldr r2, [r7, #4] + 8017fa2: 429a cmp r2, r3 + 8017fa4: d104 bne.n 8017fb0 /* remove pcb from list */ pcb2->next = pcb->next; - 8017f96: 687b ldr r3, [r7, #4] - 8017f98: 68da ldr r2, [r3, #12] - 8017f9a: 68fb ldr r3, [r7, #12] - 8017f9c: 60da str r2, [r3, #12] + 8017fa6: 687b ldr r3, [r7, #4] + 8017fa8: 68da ldr r2, [r3, #12] + 8017faa: 68fb ldr r3, [r7, #12] + 8017fac: 60da str r2, [r3, #12] break; - 8017f9e: e005 b.n 8017fac + 8017fae: e005 b.n 8017fbc for (pcb2 = udp_pcbs; pcb2 != NULL; pcb2 = pcb2->next) { - 8017fa0: 68fb ldr r3, [r7, #12] - 8017fa2: 68db ldr r3, [r3, #12] - 8017fa4: 60fb str r3, [r7, #12] - 8017fa6: 68fb ldr r3, [r7, #12] - 8017fa8: 2b00 cmp r3, #0 - 8017faa: d1eb bne.n 8017f84 + 8017fb0: 68fb ldr r3, [r7, #12] + 8017fb2: 68db ldr r3, [r3, #12] + 8017fb4: 60fb str r3, [r7, #12] + 8017fb6: 68fb ldr r3, [r7, #12] + 8017fb8: 2b00 cmp r3, #0 + 8017fba: d1eb bne.n 8017f94 } } } memp_free(MEMP_UDP_PCB, pcb); - 8017fac: 6879 ldr r1, [r7, #4] - 8017fae: 2000 movs r0, #0 - 8017fb0: f7f8 ff6e bl 8010e90 -} - 8017fb4: 3710 adds r7, #16 - 8017fb6: 46bd mov sp, r7 - 8017fb8: bd80 pop {r7, pc} - 8017fba: bf00 nop - 8017fbc: 0801f9c4 .word 0x0801f9c4 - 8017fc0: 0801fd10 .word 0x0801fd10 - 8017fc4: 0801fa18 .word 0x0801fa18 - 8017fc8: 2000f808 .word 0x2000f808 - -08017fcc : + 8017fbc: 6879 ldr r1, [r7, #4] + 8017fbe: 2000 movs r0, #0 + 8017fc0: f7f8 ff6e bl 8010ea0 +} + 8017fc4: 3710 adds r7, #16 + 8017fc6: 46bd mov sp, r7 + 8017fc8: bd80 pop {r7, pc} + 8017fca: bf00 nop + 8017fcc: 0801f9d4 .word 0x0801f9d4 + 8017fd0: 0801fd20 .word 0x0801fd20 + 8017fd4: 0801fa28 .word 0x0801fa28 + 8017fd8: 2000f808 .word 0x2000f808 + +08017fdc : * * @see udp_remove() */ struct udp_pcb * udp_new(void) { - 8017fcc: b580 push {r7, lr} - 8017fce: b082 sub sp, #8 - 8017fd0: af00 add r7, sp, #0 + 8017fdc: b580 push {r7, lr} + 8017fde: b082 sub sp, #8 + 8017fe0: af00 add r7, sp, #0 struct udp_pcb *pcb; LWIP_ASSERT_CORE_LOCKED(); pcb = (struct udp_pcb *)memp_malloc(MEMP_UDP_PCB); - 8017fd2: 2000 movs r0, #0 - 8017fd4: f7f8 ff0a bl 8010dec - 8017fd8: 6078 str r0, [r7, #4] + 8017fe2: 2000 movs r0, #0 + 8017fe4: f7f8 ff0a bl 8010dfc + 8017fe8: 6078 str r0, [r7, #4] /* could allocate UDP PCB? */ if (pcb != NULL) { - 8017fda: 687b ldr r3, [r7, #4] - 8017fdc: 2b00 cmp r3, #0 - 8017fde: d007 beq.n 8017ff0 + 8017fea: 687b ldr r3, [r7, #4] + 8017fec: 2b00 cmp r3, #0 + 8017fee: d007 beq.n 8018000 /* UDP Lite: by initializing to all zeroes, chksum_len is set to 0 * which means checksum is generated over the whole datagram per default * (recommended as default by RFC 3828). */ /* initialize PCB to all zeroes */ memset(pcb, 0, sizeof(struct udp_pcb)); - 8017fe0: 2220 movs r2, #32 - 8017fe2: 2100 movs r1, #0 - 8017fe4: 6878 ldr r0, [r7, #4] - 8017fe6: f004 fb26 bl 801c636 + 8017ff0: 2220 movs r2, #32 + 8017ff2: 2100 movs r1, #0 + 8017ff4: 6878 ldr r0, [r7, #4] + 8017ff6: f004 fb26 bl 801c646 pcb->ttl = UDP_TTL; - 8017fea: 687b ldr r3, [r7, #4] - 8017fec: 22ff movs r2, #255 ; 0xff - 8017fee: 72da strb r2, [r3, #11] + 8017ffa: 687b ldr r3, [r7, #4] + 8017ffc: 22ff movs r2, #255 ; 0xff + 8017ffe: 72da strb r2, [r3, #11] #if LWIP_MULTICAST_TX_OPTIONS udp_set_multicast_ttl(pcb, UDP_TTL); #endif /* LWIP_MULTICAST_TX_OPTIONS */ } return pcb; - 8017ff0: 687b ldr r3, [r7, #4] + 8018000: 687b ldr r3, [r7, #4] } - 8017ff2: 4618 mov r0, r3 - 8017ff4: 3708 adds r7, #8 - 8017ff6: 46bd mov sp, r7 - 8017ff8: bd80 pop {r7, pc} + 8018002: 4618 mov r0, r3 + 8018004: 3708 adds r7, #8 + 8018006: 46bd mov sp, r7 + 8018008: bd80 pop {r7, pc} ... -08017ffc : +0801800c : * * @param old_addr IP address of the netif before change * @param new_addr IP address of the netif after change */ void udp_netif_ip_addr_changed(const ip_addr_t *old_addr, const ip_addr_t *new_addr) { - 8017ffc: b480 push {r7} - 8017ffe: b085 sub sp, #20 - 8018000: af00 add r7, sp, #0 - 8018002: 6078 str r0, [r7, #4] - 8018004: 6039 str r1, [r7, #0] + 801800c: b480 push {r7} + 801800e: b085 sub sp, #20 + 8018010: af00 add r7, sp, #0 + 8018012: 6078 str r0, [r7, #4] + 8018014: 6039 str r1, [r7, #0] struct udp_pcb *upcb; if (!ip_addr_isany(old_addr) && !ip_addr_isany(new_addr)) { - 8018006: 687b ldr r3, [r7, #4] - 8018008: 2b00 cmp r3, #0 - 801800a: d01e beq.n 801804a - 801800c: 687b ldr r3, [r7, #4] - 801800e: 681b ldr r3, [r3, #0] - 8018010: 2b00 cmp r3, #0 - 8018012: d01a beq.n 801804a - 8018014: 683b ldr r3, [r7, #0] - 8018016: 2b00 cmp r3, #0 - 8018018: d017 beq.n 801804a - 801801a: 683b ldr r3, [r7, #0] - 801801c: 681b ldr r3, [r3, #0] - 801801e: 2b00 cmp r3, #0 - 8018020: d013 beq.n 801804a + 8018016: 687b ldr r3, [r7, #4] + 8018018: 2b00 cmp r3, #0 + 801801a: d01e beq.n 801805a + 801801c: 687b ldr r3, [r7, #4] + 801801e: 681b ldr r3, [r3, #0] + 8018020: 2b00 cmp r3, #0 + 8018022: d01a beq.n 801805a + 8018024: 683b ldr r3, [r7, #0] + 8018026: 2b00 cmp r3, #0 + 8018028: d017 beq.n 801805a + 801802a: 683b ldr r3, [r7, #0] + 801802c: 681b ldr r3, [r3, #0] + 801802e: 2b00 cmp r3, #0 + 8018030: d013 beq.n 801805a for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) { - 8018022: 4b0d ldr r3, [pc, #52] ; (8018058 ) - 8018024: 681b ldr r3, [r3, #0] - 8018026: 60fb str r3, [r7, #12] - 8018028: e00c b.n 8018044 + 8018032: 4b0d ldr r3, [pc, #52] ; (8018068 ) + 8018034: 681b ldr r3, [r3, #0] + 8018036: 60fb str r3, [r7, #12] + 8018038: e00c b.n 8018054 /* PCB bound to current local interface address? */ if (ip_addr_cmp(&upcb->local_ip, old_addr)) { - 801802a: 68fb ldr r3, [r7, #12] - 801802c: 681a ldr r2, [r3, #0] - 801802e: 687b ldr r3, [r7, #4] - 8018030: 681b ldr r3, [r3, #0] - 8018032: 429a cmp r2, r3 - 8018034: d103 bne.n 801803e + 801803a: 68fb ldr r3, [r7, #12] + 801803c: 681a ldr r2, [r3, #0] + 801803e: 687b ldr r3, [r7, #4] + 8018040: 681b ldr r3, [r3, #0] + 8018042: 429a cmp r2, r3 + 8018044: d103 bne.n 801804e /* The PCB is bound to the old ipaddr and * is set to bound to the new one instead */ ip_addr_copy(upcb->local_ip, *new_addr); - 8018036: 683b ldr r3, [r7, #0] - 8018038: 681a ldr r2, [r3, #0] - 801803a: 68fb ldr r3, [r7, #12] - 801803c: 601a str r2, [r3, #0] + 8018046: 683b ldr r3, [r7, #0] + 8018048: 681a ldr r2, [r3, #0] + 801804a: 68fb ldr r3, [r7, #12] + 801804c: 601a str r2, [r3, #0] for (upcb = udp_pcbs; upcb != NULL; upcb = upcb->next) { - 801803e: 68fb ldr r3, [r7, #12] - 8018040: 68db ldr r3, [r3, #12] - 8018042: 60fb str r3, [r7, #12] - 8018044: 68fb ldr r3, [r7, #12] - 8018046: 2b00 cmp r3, #0 - 8018048: d1ef bne.n 801802a + 801804e: 68fb ldr r3, [r7, #12] + 8018050: 68db ldr r3, [r3, #12] + 8018052: 60fb str r3, [r7, #12] + 8018054: 68fb ldr r3, [r7, #12] + 8018056: 2b00 cmp r3, #0 + 8018058: d1ef bne.n 801803a } } } } - 801804a: bf00 nop - 801804c: 3714 adds r7, #20 - 801804e: 46bd mov sp, r7 - 8018050: f85d 7b04 ldr.w r7, [sp], #4 - 8018054: 4770 bx lr - 8018056: bf00 nop - 8018058: 2000f808 .word 0x2000f808 + 801805a: bf00 nop + 801805c: 3714 adds r7, #20 + 801805e: 46bd mov sp, r7 + 8018060: f85d 7b04 ldr.w r7, [sp], #4 + 8018064: 4770 bx lr + 8018066: bf00 nop + 8018068: 2000f808 .word 0x2000f808 -0801805c : +0801806c : static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out); /** Ensure DHCP PCB is allocated and bound */ static err_t dhcp_inc_pcb_refcount(void) { - 801805c: b580 push {r7, lr} - 801805e: af00 add r7, sp, #0 + 801806c: b580 push {r7, lr} + 801806e: af00 add r7, sp, #0 if (dhcp_pcb_refcount == 0) { - 8018060: 4b20 ldr r3, [pc, #128] ; (80180e4 ) - 8018062: 781b ldrb r3, [r3, #0] - 8018064: 2b00 cmp r3, #0 - 8018066: d133 bne.n 80180d0 + 8018070: 4b20 ldr r3, [pc, #128] ; (80180f4 ) + 8018072: 781b ldrb r3, [r3, #0] + 8018074: 2b00 cmp r3, #0 + 8018076: d133 bne.n 80180e0 LWIP_ASSERT("dhcp_inc_pcb_refcount(): memory leak", dhcp_pcb == NULL); - 8018068: 4b1f ldr r3, [pc, #124] ; (80180e8 ) - 801806a: 681b ldr r3, [r3, #0] - 801806c: 2b00 cmp r3, #0 - 801806e: d005 beq.n 801807c - 8018070: 4b1e ldr r3, [pc, #120] ; (80180ec ) - 8018072: 22e5 movs r2, #229 ; 0xe5 - 8018074: 491e ldr r1, [pc, #120] ; (80180f0 ) - 8018076: 481f ldr r0, [pc, #124] ; (80180f4 ) - 8018078: f004 fae6 bl 801c648 + 8018078: 4b1f ldr r3, [pc, #124] ; (80180f8 ) + 801807a: 681b ldr r3, [r3, #0] + 801807c: 2b00 cmp r3, #0 + 801807e: d005 beq.n 801808c + 8018080: 4b1e ldr r3, [pc, #120] ; (80180fc ) + 8018082: 22e5 movs r2, #229 ; 0xe5 + 8018084: 491e ldr r1, [pc, #120] ; (8018100 ) + 8018086: 481f ldr r0, [pc, #124] ; (8018104 ) + 8018088: f004 fae6 bl 801c658 /* allocate UDP PCB */ dhcp_pcb = udp_new(); - 801807c: f7ff ffa6 bl 8017fcc - 8018080: 4602 mov r2, r0 - 8018082: 4b19 ldr r3, [pc, #100] ; (80180e8 ) - 8018084: 601a str r2, [r3, #0] + 801808c: f7ff ffa6 bl 8017fdc + 8018090: 4602 mov r2, r0 + 8018092: 4b19 ldr r3, [pc, #100] ; (80180f8 ) + 8018094: 601a str r2, [r3, #0] if (dhcp_pcb == NULL) { - 8018086: 4b18 ldr r3, [pc, #96] ; (80180e8 ) - 8018088: 681b ldr r3, [r3, #0] - 801808a: 2b00 cmp r3, #0 - 801808c: d102 bne.n 8018094 + 8018096: 4b18 ldr r3, [pc, #96] ; (80180f8 ) + 8018098: 681b ldr r3, [r3, #0] + 801809a: 2b00 cmp r3, #0 + 801809c: d102 bne.n 80180a4 return ERR_MEM; - 801808e: f04f 33ff mov.w r3, #4294967295 - 8018092: e024 b.n 80180de + 801809e: f04f 33ff mov.w r3, #4294967295 + 80180a2: e024 b.n 80180ee } ip_set_option(dhcp_pcb, SOF_BROADCAST); - 8018094: 4b14 ldr r3, [pc, #80] ; (80180e8 ) - 8018096: 681b ldr r3, [r3, #0] - 8018098: 7a5a ldrb r2, [r3, #9] - 801809a: 4b13 ldr r3, [pc, #76] ; (80180e8 ) - 801809c: 681b ldr r3, [r3, #0] - 801809e: f042 0220 orr.w r2, r2, #32 - 80180a2: b2d2 uxtb r2, r2 - 80180a4: 725a strb r2, [r3, #9] + 80180a4: 4b14 ldr r3, [pc, #80] ; (80180f8 ) + 80180a6: 681b ldr r3, [r3, #0] + 80180a8: 7a5a ldrb r2, [r3, #9] + 80180aa: 4b13 ldr r3, [pc, #76] ; (80180f8 ) + 80180ac: 681b ldr r3, [r3, #0] + 80180ae: f042 0220 orr.w r2, r2, #32 + 80180b2: b2d2 uxtb r2, r2 + 80180b4: 725a strb r2, [r3, #9] /* set up local and remote port for the pcb -> listen on all interfaces on all src/dest IPs */ udp_bind(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_CLIENT); - 80180a6: 4b10 ldr r3, [pc, #64] ; (80180e8 ) - 80180a8: 681b ldr r3, [r3, #0] - 80180aa: 2244 movs r2, #68 ; 0x44 - 80180ac: 4912 ldr r1, [pc, #72] ; (80180f8 ) - 80180ae: 4618 mov r0, r3 - 80180b0: f7ff fe34 bl 8017d1c + 80180b6: 4b10 ldr r3, [pc, #64] ; (80180f8 ) + 80180b8: 681b ldr r3, [r3, #0] + 80180ba: 2244 movs r2, #68 ; 0x44 + 80180bc: 4912 ldr r1, [pc, #72] ; (8018108 ) + 80180be: 4618 mov r0, r3 + 80180c0: f7ff fe34 bl 8017d2c udp_connect(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_SERVER); - 80180b4: 4b0c ldr r3, [pc, #48] ; (80180e8 ) - 80180b6: 681b ldr r3, [r3, #0] - 80180b8: 2243 movs r2, #67 ; 0x43 - 80180ba: 490f ldr r1, [pc, #60] ; (80180f8 ) - 80180bc: 4618 mov r0, r3 - 80180be: f7ff feb5 bl 8017e2c + 80180c4: 4b0c ldr r3, [pc, #48] ; (80180f8 ) + 80180c6: 681b ldr r3, [r3, #0] + 80180c8: 2243 movs r2, #67 ; 0x43 + 80180ca: 490f ldr r1, [pc, #60] ; (8018108 ) + 80180cc: 4618 mov r0, r3 + 80180ce: f7ff feb5 bl 8017e3c udp_recv(dhcp_pcb, dhcp_recv, NULL); - 80180c2: 4b09 ldr r3, [pc, #36] ; (80180e8 ) - 80180c4: 681b ldr r3, [r3, #0] - 80180c6: 2200 movs r2, #0 - 80180c8: 490c ldr r1, [pc, #48] ; (80180fc ) - 80180ca: 4618 mov r0, r3 - 80180cc: f7ff ff1c bl 8017f08 + 80180d2: 4b09 ldr r3, [pc, #36] ; (80180f8 ) + 80180d4: 681b ldr r3, [r3, #0] + 80180d6: 2200 movs r2, #0 + 80180d8: 490c ldr r1, [pc, #48] ; (801810c ) + 80180da: 4618 mov r0, r3 + 80180dc: f7ff ff1c bl 8017f18 } dhcp_pcb_refcount++; - 80180d0: 4b04 ldr r3, [pc, #16] ; (80180e4 ) - 80180d2: 781b ldrb r3, [r3, #0] - 80180d4: 3301 adds r3, #1 - 80180d6: b2da uxtb r2, r3 - 80180d8: 4b02 ldr r3, [pc, #8] ; (80180e4 ) - 80180da: 701a strb r2, [r3, #0] + 80180e0: 4b04 ldr r3, [pc, #16] ; (80180f4 ) + 80180e2: 781b ldrb r3, [r3, #0] + 80180e4: 3301 adds r3, #1 + 80180e6: b2da uxtb r2, r3 + 80180e8: 4b02 ldr r3, [pc, #8] ; (80180f4 ) + 80180ea: 701a strb r2, [r3, #0] return ERR_OK; - 80180dc: 2300 movs r3, #0 + 80180ec: 2300 movs r3, #0 } - 80180de: 4618 mov r0, r3 - 80180e0: bd80 pop {r7, pc} - 80180e2: bf00 nop - 80180e4: 20008764 .word 0x20008764 - 80180e8: 20008760 .word 0x20008760 - 80180ec: 0801fd28 .word 0x0801fd28 - 80180f0: 0801fd60 .word 0x0801fd60 - 80180f4: 0801fd88 .word 0x0801fd88 - 80180f8: 080227f8 .word 0x080227f8 - 80180fc: 080199b9 .word 0x080199b9 + 80180ee: 4618 mov r0, r3 + 80180f0: bd80 pop {r7, pc} + 80180f2: bf00 nop + 80180f4: 20008764 .word 0x20008764 + 80180f8: 20008760 .word 0x20008760 + 80180fc: 0801fd38 .word 0x0801fd38 + 8018100: 0801fd70 .word 0x0801fd70 + 8018104: 0801fd98 .word 0x0801fd98 + 8018108: 08022808 .word 0x08022808 + 801810c: 080199c9 .word 0x080199c9 -08018100 : +08018110 : /** Free DHCP PCB if the last netif stops using it */ static void dhcp_dec_pcb_refcount(void) { - 8018100: b580 push {r7, lr} - 8018102: af00 add r7, sp, #0 + 8018110: b580 push {r7, lr} + 8018112: af00 add r7, sp, #0 LWIP_ASSERT("dhcp_pcb_refcount(): refcount error", (dhcp_pcb_refcount > 0)); - 8018104: 4b0e ldr r3, [pc, #56] ; (8018140 ) - 8018106: 781b ldrb r3, [r3, #0] - 8018108: 2b00 cmp r3, #0 - 801810a: d105 bne.n 8018118 - 801810c: 4b0d ldr r3, [pc, #52] ; (8018144 ) - 801810e: 22ff movs r2, #255 ; 0xff - 8018110: 490d ldr r1, [pc, #52] ; (8018148 ) - 8018112: 480e ldr r0, [pc, #56] ; (801814c ) - 8018114: f004 fa98 bl 801c648 + 8018114: 4b0e ldr r3, [pc, #56] ; (8018150 ) + 8018116: 781b ldrb r3, [r3, #0] + 8018118: 2b00 cmp r3, #0 + 801811a: d105 bne.n 8018128 + 801811c: 4b0d ldr r3, [pc, #52] ; (8018154 ) + 801811e: 22ff movs r2, #255 ; 0xff + 8018120: 490d ldr r1, [pc, #52] ; (8018158 ) + 8018122: 480e ldr r0, [pc, #56] ; (801815c ) + 8018124: f004 fa98 bl 801c658 dhcp_pcb_refcount--; - 8018118: 4b09 ldr r3, [pc, #36] ; (8018140 ) - 801811a: 781b ldrb r3, [r3, #0] - 801811c: 3b01 subs r3, #1 - 801811e: b2da uxtb r2, r3 - 8018120: 4b07 ldr r3, [pc, #28] ; (8018140 ) - 8018122: 701a strb r2, [r3, #0] + 8018128: 4b09 ldr r3, [pc, #36] ; (8018150 ) + 801812a: 781b ldrb r3, [r3, #0] + 801812c: 3b01 subs r3, #1 + 801812e: b2da uxtb r2, r3 + 8018130: 4b07 ldr r3, [pc, #28] ; (8018150 ) + 8018132: 701a strb r2, [r3, #0] if (dhcp_pcb_refcount == 0) { - 8018124: 4b06 ldr r3, [pc, #24] ; (8018140 ) - 8018126: 781b ldrb r3, [r3, #0] - 8018128: 2b00 cmp r3, #0 - 801812a: d107 bne.n 801813c + 8018134: 4b06 ldr r3, [pc, #24] ; (8018150 ) + 8018136: 781b ldrb r3, [r3, #0] + 8018138: 2b00 cmp r3, #0 + 801813a: d107 bne.n 801814c udp_remove(dhcp_pcb); - 801812c: 4b08 ldr r3, [pc, #32] ; (8018150 ) - 801812e: 681b ldr r3, [r3, #0] - 8018130: 4618 mov r0, r3 - 8018132: f7ff ff09 bl 8017f48 + 801813c: 4b08 ldr r3, [pc, #32] ; (8018160 ) + 801813e: 681b ldr r3, [r3, #0] + 8018140: 4618 mov r0, r3 + 8018142: f7ff ff09 bl 8017f58 dhcp_pcb = NULL; - 8018136: 4b06 ldr r3, [pc, #24] ; (8018150 ) - 8018138: 2200 movs r2, #0 - 801813a: 601a str r2, [r3, #0] + 8018146: 4b06 ldr r3, [pc, #24] ; (8018160 ) + 8018148: 2200 movs r2, #0 + 801814a: 601a str r2, [r3, #0] } } - 801813c: bf00 nop - 801813e: bd80 pop {r7, pc} - 8018140: 20008764 .word 0x20008764 - 8018144: 0801fd28 .word 0x0801fd28 - 8018148: 0801fdb0 .word 0x0801fdb0 - 801814c: 0801fd88 .word 0x0801fd88 - 8018150: 20008760 .word 0x20008760 + 801814c: bf00 nop + 801814e: bd80 pop {r7, pc} + 8018150: 20008764 .word 0x20008764 + 8018154: 0801fd38 .word 0x0801fd38 + 8018158: 0801fdc0 .word 0x0801fdc0 + 801815c: 0801fd98 .word 0x0801fd98 + 8018160: 20008760 .word 0x20008760 -08018154 : +08018164 : * * @param netif the netif under DHCP control */ static void dhcp_handle_nak(struct netif *netif) { - 8018154: b580 push {r7, lr} - 8018156: b084 sub sp, #16 - 8018158: af00 add r7, sp, #0 - 801815a: 6078 str r0, [r7, #4] + 8018164: b580 push {r7, lr} + 8018166: b084 sub sp, #16 + 8018168: af00 add r7, sp, #0 + 801816a: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 801815c: 687b ldr r3, [r7, #4] - 801815e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018160: 60fb str r3, [r7, #12] + 801816c: 687b ldr r3, [r7, #4] + 801816e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018170: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_nak(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); /* Change to a defined state - set this before assigning the address to ensure the callback can use dhcp_supplied_address() */ dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF); - 8018162: 210c movs r1, #12 - 8018164: 68f8 ldr r0, [r7, #12] - 8018166: f001 f869 bl 801923c + 8018172: 210c movs r1, #12 + 8018174: 68f8 ldr r0, [r7, #12] + 8018176: f001 f869 bl 801924c /* remove IP address from interface (must no longer be used, as per RFC2131) */ netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); - 801816a: 4b06 ldr r3, [pc, #24] ; (8018184 ) - 801816c: 4a05 ldr r2, [pc, #20] ; (8018184 ) - 801816e: 4905 ldr r1, [pc, #20] ; (8018184 ) - 8018170: 6878 ldr r0, [r7, #4] - 8018172: f7f9 f82f bl 80111d4 + 801817a: 4b06 ldr r3, [pc, #24] ; (8018194 ) + 801817c: 4a05 ldr r2, [pc, #20] ; (8018194 ) + 801817e: 4905 ldr r1, [pc, #20] ; (8018194 ) + 8018180: 6878 ldr r0, [r7, #4] + 8018182: f7f9 f82f bl 80111e4 /* We can immediately restart discovery */ dhcp_discover(netif); - 8018176: 6878 ldr r0, [r7, #4] - 8018178: f000 fc5c bl 8018a34 + 8018186: 6878 ldr r0, [r7, #4] + 8018188: f000 fc5c bl 8018a44 } - 801817c: bf00 nop - 801817e: 3710 adds r7, #16 - 8018180: 46bd mov sp, r7 - 8018182: bd80 pop {r7, pc} - 8018184: 080227f8 .word 0x080227f8 + 801818c: bf00 nop + 801818e: 3710 adds r7, #16 + 8018190: 46bd mov sp, r7 + 8018192: bd80 pop {r7, pc} + 8018194: 08022808 .word 0x08022808 -08018188 : +08018198 : * * @param netif the netif under DHCP control */ static void dhcp_check(struct netif *netif) { - 8018188: b580 push {r7, lr} - 801818a: b084 sub sp, #16 - 801818c: af00 add r7, sp, #0 - 801818e: 6078 str r0, [r7, #4] + 8018198: b580 push {r7, lr} + 801819a: b084 sub sp, #16 + 801819c: af00 add r7, sp, #0 + 801819e: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8018190: 687b ldr r3, [r7, #4] - 8018192: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018194: 60fb str r3, [r7, #12] + 80181a0: 687b ldr r3, [r7, #4] + 80181a2: 6a5b ldr r3, [r3, #36] ; 0x24 + 80181a4: 60fb str r3, [r7, #12] err_t result; u16_t msecs; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_check(netif=%p) %c%c\n", (void *)netif, (s16_t)netif->name[0], (s16_t)netif->name[1])); dhcp_set_state(dhcp, DHCP_STATE_CHECKING); - 8018196: 2108 movs r1, #8 - 8018198: 68f8 ldr r0, [r7, #12] - 801819a: f001 f84f bl 801923c + 80181a6: 2108 movs r1, #8 + 80181a8: 68f8 ldr r0, [r7, #12] + 80181aa: f001 f84f bl 801924c /* create an ARP query for the offered IP address, expecting that no host responds, as the IP address should not be in use. */ result = etharp_query(netif, &dhcp->offered_ip_addr, NULL); - 801819e: 68fb ldr r3, [r7, #12] - 80181a0: 331c adds r3, #28 - 80181a2: 2200 movs r2, #0 - 80181a4: 4619 mov r1, r3 - 80181a6: 6878 ldr r0, [r7, #4] - 80181a8: f002 fb4e bl 801a848 - 80181ac: 4603 mov r3, r0 - 80181ae: 72fb strb r3, [r7, #11] + 80181ae: 68fb ldr r3, [r7, #12] + 80181b0: 331c adds r3, #28 + 80181b2: 2200 movs r2, #0 + 80181b4: 4619 mov r1, r3 + 80181b6: 6878 ldr r0, [r7, #4] + 80181b8: f002 fb4e bl 801a858 + 80181bc: 4603 mov r3, r0 + 80181be: 72fb strb r3, [r7, #11] if (result != ERR_OK) { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_check: could not perform ARP query\n")); } if (dhcp->tries < 255) { - 80181b0: 68fb ldr r3, [r7, #12] - 80181b2: 799b ldrb r3, [r3, #6] - 80181b4: 2bff cmp r3, #255 ; 0xff - 80181b6: d005 beq.n 80181c4 - dhcp->tries++; - 80181b8: 68fb ldr r3, [r7, #12] - 80181ba: 799b ldrb r3, [r3, #6] - 80181bc: 3301 adds r3, #1 - 80181be: b2da uxtb r2, r3 80181c0: 68fb ldr r3, [r7, #12] - 80181c2: 719a strb r2, [r3, #6] + 80181c2: 799b ldrb r3, [r3, #6] + 80181c4: 2bff cmp r3, #255 ; 0xff + 80181c6: d005 beq.n 80181d4 + dhcp->tries++; + 80181c8: 68fb ldr r3, [r7, #12] + 80181ca: 799b ldrb r3, [r3, #6] + 80181cc: 3301 adds r3, #1 + 80181ce: b2da uxtb r2, r3 + 80181d0: 68fb ldr r3, [r7, #12] + 80181d2: 719a strb r2, [r3, #6] } msecs = 500; - 80181c4: f44f 73fa mov.w r3, #500 ; 0x1f4 - 80181c8: 813b strh r3, [r7, #8] + 80181d4: f44f 73fa mov.w r3, #500 ; 0x1f4 + 80181d8: 813b strh r3, [r7, #8] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 80181ca: 893b ldrh r3, [r7, #8] - 80181cc: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 80181d0: 4a06 ldr r2, [pc, #24] ; (80181ec ) - 80181d2: fb82 1203 smull r1, r2, r2, r3 - 80181d6: 1152 asrs r2, r2, #5 - 80181d8: 17db asrs r3, r3, #31 - 80181da: 1ad3 subs r3, r2, r3 - 80181dc: b29a uxth r2, r3 - 80181de: 68fb ldr r3, [r7, #12] - 80181e0: 811a strh r2, [r3, #8] + 80181da: 893b ldrh r3, [r7, #8] + 80181dc: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 80181e0: 4a06 ldr r2, [pc, #24] ; (80181fc ) + 80181e2: fb82 1203 smull r1, r2, r2, r3 + 80181e6: 1152 asrs r2, r2, #5 + 80181e8: 17db asrs r3, r3, #31 + 80181ea: 1ad3 subs r3, r2, r3 + 80181ec: b29a uxth r2, r3 + 80181ee: 68fb ldr r3, [r7, #12] + 80181f0: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_check(): set request timeout %"U16_F" msecs\n", msecs)); } - 80181e2: bf00 nop - 80181e4: 3710 adds r7, #16 - 80181e6: 46bd mov sp, r7 - 80181e8: bd80 pop {r7, pc} - 80181ea: bf00 nop - 80181ec: 10624dd3 .word 0x10624dd3 + 80181f2: bf00 nop + 80181f4: 3710 adds r7, #16 + 80181f6: 46bd mov sp, r7 + 80181f8: bd80 pop {r7, pc} + 80181fa: bf00 nop + 80181fc: 10624dd3 .word 0x10624dd3 -080181f0 : +08018200 : * * @param netif the netif under DHCP control */ static void dhcp_handle_offer(struct netif *netif, struct dhcp_msg *msg_in) { - 80181f0: b580 push {r7, lr} - 80181f2: b084 sub sp, #16 - 80181f4: af00 add r7, sp, #0 - 80181f6: 6078 str r0, [r7, #4] - 80181f8: 6039 str r1, [r7, #0] + 8018200: b580 push {r7, lr} + 8018202: b084 sub sp, #16 + 8018204: af00 add r7, sp, #0 + 8018206: 6078 str r0, [r7, #4] + 8018208: 6039 str r1, [r7, #0] struct dhcp *dhcp = netif_dhcp_data(netif); - 80181fa: 687b ldr r3, [r7, #4] - 80181fc: 6a5b ldr r3, [r3, #36] ; 0x24 - 80181fe: 60fb str r3, [r7, #12] + 801820a: 687b ldr r3, [r7, #4] + 801820c: 6a5b ldr r3, [r3, #36] ; 0x24 + 801820e: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_handle_offer(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); /* obtain the server address */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SERVER_ID)) { - 8018200: 4b0c ldr r3, [pc, #48] ; (8018234 ) - 8018202: 789b ldrb r3, [r3, #2] - 8018204: 2b00 cmp r3, #0 - 8018206: d011 beq.n 801822c + 8018210: 4b0c ldr r3, [pc, #48] ; (8018244 ) + 8018212: 789b ldrb r3, [r3, #2] + 8018214: 2b00 cmp r3, #0 + 8018216: d011 beq.n 801823c dhcp->request_timeout = 0; /* stop timer */ - 8018208: 68fb ldr r3, [r7, #12] - 801820a: 2200 movs r2, #0 - 801820c: 811a strh r2, [r3, #8] + 8018218: 68fb ldr r3, [r7, #12] + 801821a: 2200 movs r2, #0 + 801821c: 811a strh r2, [r3, #8] ip_addr_set_ip4_u32(&dhcp->server_ip_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SERVER_ID))); - 801820e: 4b0a ldr r3, [pc, #40] ; (8018238 ) - 8018210: 689b ldr r3, [r3, #8] - 8018212: 4618 mov r0, r3 - 8018214: f7f8 f949 bl 80104aa - 8018218: 4602 mov r2, r0 - 801821a: 68fb ldr r3, [r7, #12] - 801821c: 619a str r2, [r3, #24] + 801821e: 4b0a ldr r3, [pc, #40] ; (8018248 ) + 8018220: 689b ldr r3, [r3, #8] + 8018222: 4618 mov r0, r3 + 8018224: f7f8 f949 bl 80104ba + 8018228: 4602 mov r2, r0 + 801822a: 68fb ldr r3, [r7, #12] + 801822c: 619a str r2, [r3, #24] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): server 0x%08"X32_F"\n", ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr)))); /* remember offered address */ ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr); - 801821e: 683b ldr r3, [r7, #0] - 8018220: 691a ldr r2, [r3, #16] - 8018222: 68fb ldr r3, [r7, #12] - 8018224: 61da str r2, [r3, #28] + 801822e: 683b ldr r3, [r7, #0] + 8018230: 691a ldr r2, [r3, #16] + 8018232: 68fb ldr r3, [r7, #12] + 8018234: 61da str r2, [r3, #28] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_handle_offer(): offer for 0x%08"X32_F"\n", ip4_addr_get_u32(&dhcp->offered_ip_addr))); dhcp_select(netif); - 8018226: 6878 ldr r0, [r7, #4] - 8018228: f000 f808 bl 801823c + 8018236: 6878 ldr r0, [r7, #4] + 8018238: f000 f808 bl 801824c } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_handle_offer(netif=%p) did not get server ID!\n", (void *)netif)); } } - 801822c: bf00 nop - 801822e: 3710 adds r7, #16 - 8018230: 46bd mov sp, r7 - 8018232: bd80 pop {r7, pc} - 8018234: 2000f80c .word 0x2000f80c - 8018238: 2000f814 .word 0x2000f814 + 801823c: bf00 nop + 801823e: 3710 adds r7, #16 + 8018240: 46bd mov sp, r7 + 8018242: bd80 pop {r7, pc} + 8018244: 2000f80c .word 0x2000f80c + 8018248: 2000f814 .word 0x2000f814 -0801823c : +0801824c : * @param netif the netif under DHCP control * @return lwIP specific error (see error.h) */ static err_t dhcp_select(struct netif *netif) { - 801823c: b5b0 push {r4, r5, r7, lr} - 801823e: b08a sub sp, #40 ; 0x28 - 8018240: af02 add r7, sp, #8 - 8018242: 6078 str r0, [r7, #4] + 801824c: b5b0 push {r4, r5, r7, lr} + 801824e: b08a sub sp, #40 ; 0x28 + 8018250: af02 add r7, sp, #8 + 8018252: 6078 str r0, [r7, #4] u16_t msecs; u8_t i; struct pbuf *p_out; u16_t options_out_len; LWIP_ERROR("dhcp_select: netif != NULL", (netif != NULL), return ERR_ARG;); - 8018244: 687b ldr r3, [r7, #4] - 8018246: 2b00 cmp r3, #0 - 8018248: d109 bne.n 801825e - 801824a: 4b71 ldr r3, [pc, #452] ; (8018410 ) - 801824c: f240 1277 movw r2, #375 ; 0x177 - 8018250: 4970 ldr r1, [pc, #448] ; (8018414 ) - 8018252: 4871 ldr r0, [pc, #452] ; (8018418 ) - 8018254: f004 f9f8 bl 801c648 - 8018258: f06f 030f mvn.w r3, #15 - 801825c: e0d3 b.n 8018406 + 8018254: 687b ldr r3, [r7, #4] + 8018256: 2b00 cmp r3, #0 + 8018258: d109 bne.n 801826e + 801825a: 4b71 ldr r3, [pc, #452] ; (8018420 ) + 801825c: f240 1277 movw r2, #375 ; 0x177 + 8018260: 4970 ldr r1, [pc, #448] ; (8018424 ) + 8018262: 4871 ldr r0, [pc, #452] ; (8018428 ) + 8018264: f004 f9f8 bl 801c658 + 8018268: f06f 030f mvn.w r3, #15 + 801826c: e0d3 b.n 8018416 dhcp = netif_dhcp_data(netif); - 801825e: 687b ldr r3, [r7, #4] - 8018260: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018262: 61bb str r3, [r7, #24] + 801826e: 687b ldr r3, [r7, #4] + 8018270: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018272: 61bb str r3, [r7, #24] LWIP_ERROR("dhcp_select: dhcp != NULL", (dhcp != NULL), return ERR_VAL;); - 8018264: 69bb ldr r3, [r7, #24] - 8018266: 2b00 cmp r3, #0 - 8018268: d109 bne.n 801827e - 801826a: 4b69 ldr r3, [pc, #420] ; (8018410 ) - 801826c: f240 1279 movw r2, #377 ; 0x179 - 8018270: 496a ldr r1, [pc, #424] ; (801841c ) - 8018272: 4869 ldr r0, [pc, #420] ; (8018418 ) - 8018274: f004 f9e8 bl 801c648 - 8018278: f06f 0305 mvn.w r3, #5 - 801827c: e0c3 b.n 8018406 + 8018274: 69bb ldr r3, [r7, #24] + 8018276: 2b00 cmp r3, #0 + 8018278: d109 bne.n 801828e + 801827a: 4b69 ldr r3, [pc, #420] ; (8018420 ) + 801827c: f240 1279 movw r2, #377 ; 0x179 + 8018280: 496a ldr r1, [pc, #424] ; (801842c ) + 8018282: 4869 ldr r0, [pc, #420] ; (8018428 ) + 8018284: f004 f9e8 bl 801c658 + 8018288: f06f 0305 mvn.w r3, #5 + 801828c: e0c3 b.n 8018416 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_select(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); dhcp_set_state(dhcp, DHCP_STATE_REQUESTING); - 801827e: 2101 movs r1, #1 - 8018280: 69b8 ldr r0, [r7, #24] - 8018282: f000 ffdb bl 801923c + 801828e: 2101 movs r1, #1 + 8018290: 69b8 ldr r0, [r7, #24] + 8018292: f000 ffdb bl 801924c /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - 8018286: f107 030c add.w r3, r7, #12 - 801828a: 2203 movs r2, #3 - 801828c: 69b9 ldr r1, [r7, #24] - 801828e: 6878 ldr r0, [r7, #4] - 8018290: f001 fc5e bl 8019b50 - 8018294: 6178 str r0, [r7, #20] + 8018296: f107 030c add.w r3, r7, #12 + 801829a: 2203 movs r2, #3 + 801829c: 69b9 ldr r1, [r7, #24] + 801829e: 6878 ldr r0, [r7, #4] + 80182a0: f001 fc5e bl 8019b60 + 80182a4: 6178 str r0, [r7, #20] if (p_out != NULL) { - 8018296: 697b ldr r3, [r7, #20] - 8018298: 2b00 cmp r3, #0 - 801829a: f000 8085 beq.w 80183a8 + 80182a6: 697b ldr r3, [r7, #20] + 80182a8: 2b00 cmp r3, #0 + 80182aa: f000 8085 beq.w 80183b8 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 801829e: 697b ldr r3, [r7, #20] - 80182a0: 685b ldr r3, [r3, #4] - 80182a2: 613b str r3, [r7, #16] + 80182ae: 697b ldr r3, [r7, #20] + 80182b0: 685b ldr r3, [r3, #4] + 80182b2: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 80182a4: 89b8 ldrh r0, [r7, #12] - 80182a6: 693b ldr r3, [r7, #16] - 80182a8: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 80182ac: 2302 movs r3, #2 - 80182ae: 2239 movs r2, #57 ; 0x39 - 80182b0: f000 ffde bl 8019270 - 80182b4: 4603 mov r3, r0 - 80182b6: 81bb strh r3, [r7, #12] + 80182b4: 89b8 ldrh r0, [r7, #12] + 80182b6: 693b ldr r3, [r7, #16] + 80182b8: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 80182bc: 2302 movs r3, #2 + 80182be: 2239 movs r2, #57 ; 0x39 + 80182c0: f000 ffde bl 8019280 + 80182c4: 4603 mov r3, r0 + 80182c6: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - 80182b8: 89b8 ldrh r0, [r7, #12] - 80182ba: 693b ldr r3, [r7, #16] - 80182bc: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 80182c0: 687b ldr r3, [r7, #4] - 80182c2: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80182c4: 461a mov r2, r3 - 80182c6: f001 f82d bl 8019324 - 80182ca: 4603 mov r3, r0 - 80182cc: 81bb strh r3, [r7, #12] + 80182c8: 89b8 ldrh r0, [r7, #12] + 80182ca: 693b ldr r3, [r7, #16] + 80182cc: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 80182d0: 687b ldr r3, [r7, #4] + 80182d2: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80182d4: 461a mov r2, r3 + 80182d6: f001 f82d bl 8019334 + 80182da: 4603 mov r3, r0 + 80182dc: 81bb strh r3, [r7, #12] /* MUST request the offered IP address */ options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - 80182ce: 89b8 ldrh r0, [r7, #12] - 80182d0: 693b ldr r3, [r7, #16] - 80182d2: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 80182d6: 2304 movs r3, #4 - 80182d8: 2232 movs r2, #50 ; 0x32 - 80182da: f000 ffc9 bl 8019270 - 80182de: 4603 mov r3, r0 - 80182e0: 81bb strh r3, [r7, #12] + 80182de: 89b8 ldrh r0, [r7, #12] + 80182e0: 693b ldr r3, [r7, #16] + 80182e2: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 80182e6: 2304 movs r3, #4 + 80182e8: 2232 movs r2, #50 ; 0x32 + 80182ea: f000 ffc9 bl 8019280 + 80182ee: 4603 mov r3, r0 + 80182f0: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - 80182e2: 89bc ldrh r4, [r7, #12] - 80182e4: 693b ldr r3, [r7, #16] - 80182e6: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 80182ea: 69bb ldr r3, [r7, #24] - 80182ec: 69db ldr r3, [r3, #28] - 80182ee: 4618 mov r0, r3 - 80182f0: f7f8 f8db bl 80104aa - 80182f4: 4603 mov r3, r0 - 80182f6: 461a mov r2, r3 - 80182f8: 4629 mov r1, r5 - 80182fa: 4620 mov r0, r4 - 80182fc: f001 f844 bl 8019388 - 8018300: 4603 mov r3, r0 - 8018302: 81bb strh r3, [r7, #12] + 80182f2: 89bc ldrh r4, [r7, #12] + 80182f4: 693b ldr r3, [r7, #16] + 80182f6: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 80182fa: 69bb ldr r3, [r7, #24] + 80182fc: 69db ldr r3, [r3, #28] + 80182fe: 4618 mov r0, r3 + 8018300: f7f8 f8db bl 80104ba + 8018304: 4603 mov r3, r0 + 8018306: 461a mov r2, r3 + 8018308: 4629 mov r1, r5 + 801830a: 4620 mov r0, r4 + 801830c: f001 f844 bl 8019398 + 8018310: 4603 mov r3, r0 + 8018312: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4); - 8018304: 89b8 ldrh r0, [r7, #12] - 8018306: 693b ldr r3, [r7, #16] - 8018308: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 801830c: 2304 movs r3, #4 - 801830e: 2236 movs r2, #54 ; 0x36 - 8018310: f000 ffae bl 8019270 - 8018314: 4603 mov r3, r0 - 8018316: 81bb strh r3, [r7, #12] + 8018314: 89b8 ldrh r0, [r7, #12] + 8018316: 693b ldr r3, [r7, #16] + 8018318: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 801831c: 2304 movs r3, #4 + 801831e: 2236 movs r2, #54 ; 0x36 + 8018320: f000 ffae bl 8019280 + 8018324: 4603 mov r3, r0 + 8018326: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&dhcp->server_ip_addr)))); - 8018318: 89bc ldrh r4, [r7, #12] - 801831a: 693b ldr r3, [r7, #16] - 801831c: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 8018320: 69bb ldr r3, [r7, #24] - 8018322: 699b ldr r3, [r3, #24] - 8018324: 4618 mov r0, r3 - 8018326: f7f8 f8c0 bl 80104aa - 801832a: 4603 mov r3, r0 - 801832c: 461a mov r2, r3 - 801832e: 4629 mov r1, r5 - 8018330: 4620 mov r0, r4 - 8018332: f001 f829 bl 8019388 - 8018336: 4603 mov r3, r0 - 8018338: 81bb strh r3, [r7, #12] + 8018328: 89bc ldrh r4, [r7, #12] + 801832a: 693b ldr r3, [r7, #16] + 801832c: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 8018330: 69bb ldr r3, [r7, #24] + 8018332: 699b ldr r3, [r3, #24] + 8018334: 4618 mov r0, r3 + 8018336: f7f8 f8c0 bl 80104ba + 801833a: 4603 mov r3, r0 + 801833c: 461a mov r2, r3 + 801833e: 4629 mov r1, r5 + 8018340: 4620 mov r0, r4 + 8018342: f001 f829 bl 8019398 + 8018346: 4603 mov r3, r0 + 8018348: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 801833a: 89b8 ldrh r0, [r7, #12] - 801833c: 693b ldr r3, [r7, #16] - 801833e: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018342: 2303 movs r3, #3 - 8018344: 2237 movs r2, #55 ; 0x37 - 8018346: f000 ff93 bl 8019270 - 801834a: 4603 mov r3, r0 - 801834c: 81bb strh r3, [r7, #12] + 801834a: 89b8 ldrh r0, [r7, #12] + 801834c: 693b ldr r3, [r7, #16] + 801834e: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018352: 2303 movs r3, #3 + 8018354: 2237 movs r2, #55 ; 0x37 + 8018356: f000 ff93 bl 8019280 + 801835a: 4603 mov r3, r0 + 801835c: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 801834e: 2300 movs r3, #0 - 8018350: 77bb strb r3, [r7, #30] - 8018352: e00e b.n 8018372 + 801835e: 2300 movs r3, #0 + 8018360: 77bb strb r3, [r7, #30] + 8018362: e00e b.n 8018382 options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 8018354: 89b8 ldrh r0, [r7, #12] - 8018356: 693b ldr r3, [r7, #16] - 8018358: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 801835c: 7fbb ldrb r3, [r7, #30] - 801835e: 4a30 ldr r2, [pc, #192] ; (8018420 ) - 8018360: 5cd3 ldrb r3, [r2, r3] - 8018362: 461a mov r2, r3 - 8018364: f000 ffb8 bl 80192d8 - 8018368: 4603 mov r3, r0 - 801836a: 81bb strh r3, [r7, #12] - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 8018364: 89b8 ldrh r0, [r7, #12] + 8018366: 693b ldr r3, [r7, #16] + 8018368: f103 01f0 add.w r1, r3, #240 ; 0xf0 801836c: 7fbb ldrb r3, [r7, #30] - 801836e: 3301 adds r3, #1 - 8018370: 77bb strb r3, [r7, #30] - 8018372: 7fbb ldrb r3, [r7, #30] - 8018374: 2b02 cmp r3, #2 - 8018376: d9ed bls.n 8018354 + 801836e: 4a30 ldr r2, [pc, #192] ; (8018430 ) + 8018370: 5cd3 ldrb r3, [r2, r3] + 8018372: 461a mov r2, r3 + 8018374: f000 ffb8 bl 80192e8 + 8018378: 4603 mov r3, r0 + 801837a: 81bb strh r3, [r7, #12] + for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 801837c: 7fbb ldrb r3, [r7, #30] + 801837e: 3301 adds r3, #1 + 8018380: 77bb strb r3, [r7, #30] + 8018382: 7fbb ldrb r3, [r7, #30] + 8018384: 2b02 cmp r3, #2 + 8018386: d9ed bls.n 8018364 #if LWIP_NETIF_HOSTNAME options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif); #endif /* LWIP_NETIF_HOSTNAME */ LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REQUESTING, msg_out, DHCP_REQUEST, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 8018378: 89b8 ldrh r0, [r7, #12] - 801837a: 693b ldr r3, [r7, #16] - 801837c: 33f0 adds r3, #240 ; 0xf0 - 801837e: 697a ldr r2, [r7, #20] - 8018380: 4619 mov r1, r3 - 8018382: f001 fcbb bl 8019cfc + 8018388: 89b8 ldrh r0, [r7, #12] + 801838a: 693b ldr r3, [r7, #16] + 801838c: 33f0 adds r3, #240 ; 0xf0 + 801838e: 697a ldr r2, [r7, #20] + 8018390: 4619 mov r1, r3 + 8018392: f001 fcbb bl 8019d0c /* send broadcast to any DHCP server */ result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY); - 8018386: 4b27 ldr r3, [pc, #156] ; (8018424 ) - 8018388: 6818 ldr r0, [r3, #0] - 801838a: 4b27 ldr r3, [pc, #156] ; (8018428 ) - 801838c: 9301 str r3, [sp, #4] - 801838e: 687b ldr r3, [r7, #4] - 8018390: 9300 str r3, [sp, #0] - 8018392: 2343 movs r3, #67 ; 0x43 - 8018394: 4a25 ldr r2, [pc, #148] ; (801842c ) - 8018396: 6979 ldr r1, [r7, #20] - 8018398: f7ff fbda bl 8017b50 - 801839c: 4603 mov r3, r0 - 801839e: 77fb strb r3, [r7, #31] + 8018396: 4b27 ldr r3, [pc, #156] ; (8018434 ) + 8018398: 6818 ldr r0, [r3, #0] + 801839a: 4b27 ldr r3, [pc, #156] ; (8018438 ) + 801839c: 9301 str r3, [sp, #4] + 801839e: 687b ldr r3, [r7, #4] + 80183a0: 9300 str r3, [sp, #0] + 80183a2: 2343 movs r3, #67 ; 0x43 + 80183a4: 4a25 ldr r2, [pc, #148] ; (801843c ) + 80183a6: 6979 ldr r1, [r7, #20] + 80183a8: f7ff fbda bl 8017b60 + 80183ac: 4603 mov r3, r0 + 80183ae: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 80183a0: 6978 ldr r0, [r7, #20] - 80183a2: f7f9 fc21 bl 8011be8 - 80183a6: e001 b.n 80183ac + 80183b0: 6978 ldr r0, [r7, #20] + 80183b2: f7f9 fc21 bl 8011bf8 + 80183b6: e001 b.n 80183bc LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_select: REQUESTING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("dhcp_select: could not allocate DHCP request\n")); result = ERR_MEM; - 80183a8: 23ff movs r3, #255 ; 0xff - 80183aa: 77fb strb r3, [r7, #31] + 80183b8: 23ff movs r3, #255 ; 0xff + 80183ba: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 80183ac: 69bb ldr r3, [r7, #24] - 80183ae: 799b ldrb r3, [r3, #6] - 80183b0: 2bff cmp r3, #255 ; 0xff - 80183b2: d005 beq.n 80183c0 - dhcp->tries++; - 80183b4: 69bb ldr r3, [r7, #24] - 80183b6: 799b ldrb r3, [r3, #6] - 80183b8: 3301 adds r3, #1 - 80183ba: b2da uxtb r2, r3 80183bc: 69bb ldr r3, [r7, #24] - 80183be: 719a strb r2, [r3, #6] + 80183be: 799b ldrb r3, [r3, #6] + 80183c0: 2bff cmp r3, #255 ; 0xff + 80183c2: d005 beq.n 80183d0 + dhcp->tries++; + 80183c4: 69bb ldr r3, [r7, #24] + 80183c6: 799b ldrb r3, [r3, #6] + 80183c8: 3301 adds r3, #1 + 80183ca: b2da uxtb r2, r3 + 80183cc: 69bb ldr r3, [r7, #24] + 80183ce: 719a strb r2, [r3, #6] } msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000); - 80183c0: 69bb ldr r3, [r7, #24] - 80183c2: 799b ldrb r3, [r3, #6] - 80183c4: 2b05 cmp r3, #5 - 80183c6: d80d bhi.n 80183e4 - 80183c8: 69bb ldr r3, [r7, #24] - 80183ca: 799b ldrb r3, [r3, #6] - 80183cc: 461a mov r2, r3 - 80183ce: 2301 movs r3, #1 - 80183d0: 4093 lsls r3, r2 - 80183d2: b29b uxth r3, r3 - 80183d4: 461a mov r2, r3 - 80183d6: 0152 lsls r2, r2, #5 - 80183d8: 1ad2 subs r2, r2, r3 - 80183da: 0092 lsls r2, r2, #2 - 80183dc: 4413 add r3, r2 - 80183de: 00db lsls r3, r3, #3 - 80183e0: b29b uxth r3, r3 - 80183e2: e001 b.n 80183e8 - 80183e4: f64e 2360 movw r3, #60000 ; 0xea60 - 80183e8: 81fb strh r3, [r7, #14] + 80183d0: 69bb ldr r3, [r7, #24] + 80183d2: 799b ldrb r3, [r3, #6] + 80183d4: 2b05 cmp r3, #5 + 80183d6: d80d bhi.n 80183f4 + 80183d8: 69bb ldr r3, [r7, #24] + 80183da: 799b ldrb r3, [r3, #6] + 80183dc: 461a mov r2, r3 + 80183de: 2301 movs r3, #1 + 80183e0: 4093 lsls r3, r2 + 80183e2: b29b uxth r3, r3 + 80183e4: 461a mov r2, r3 + 80183e6: 0152 lsls r2, r2, #5 + 80183e8: 1ad2 subs r2, r2, r3 + 80183ea: 0092 lsls r2, r2, #2 + 80183ec: 4413 add r3, r2 + 80183ee: 00db lsls r3, r3, #3 + 80183f0: b29b uxth r3, r3 + 80183f2: e001 b.n 80183f8 + 80183f4: f64e 2360 movw r3, #60000 ; 0xea60 + 80183f8: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 80183ea: 89fb ldrh r3, [r7, #14] - 80183ec: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 80183f0: 4a0f ldr r2, [pc, #60] ; (8018430 ) - 80183f2: fb82 1203 smull r1, r2, r2, r3 - 80183f6: 1152 asrs r2, r2, #5 - 80183f8: 17db asrs r3, r3, #31 - 80183fa: 1ad3 subs r3, r2, r3 - 80183fc: b29a uxth r2, r3 - 80183fe: 69bb ldr r3, [r7, #24] - 8018400: 811a strh r2, [r3, #8] + 80183fa: 89fb ldrh r3, [r7, #14] + 80183fc: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 8018400: 4a0f ldr r2, [pc, #60] ; (8018440 ) + 8018402: fb82 1203 smull r1, r2, r2, r3 + 8018406: 1152 asrs r2, r2, #5 + 8018408: 17db asrs r3, r3, #31 + 801840a: 1ad3 subs r3, r2, r3 + 801840c: b29a uxth r2, r3 + 801840e: 69bb ldr r3, [r7, #24] + 8018410: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_select(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 8018402: f997 301f ldrsb.w r3, [r7, #31] -} - 8018406: 4618 mov r0, r3 - 8018408: 3720 adds r7, #32 - 801840a: 46bd mov sp, r7 - 801840c: bdb0 pop {r4, r5, r7, pc} - 801840e: bf00 nop - 8018410: 0801fd28 .word 0x0801fd28 - 8018414: 0801fdd4 .word 0x0801fdd4 - 8018418: 0801fd88 .word 0x0801fd88 - 801841c: 0801fdf0 .word 0x0801fdf0 - 8018420: 20000074 .word 0x20000074 - 8018424: 20008760 .word 0x20008760 - 8018428: 080227f8 .word 0x080227f8 - 801842c: 080227fc .word 0x080227fc - 8018430: 10624dd3 .word 0x10624dd3 - -08018434 : + 8018412: f997 301f ldrsb.w r3, [r7, #31] +} + 8018416: 4618 mov r0, r3 + 8018418: 3720 adds r7, #32 + 801841a: 46bd mov sp, r7 + 801841c: bdb0 pop {r4, r5, r7, pc} + 801841e: bf00 nop + 8018420: 0801fd38 .word 0x0801fd38 + 8018424: 0801fde4 .word 0x0801fde4 + 8018428: 0801fd98 .word 0x0801fd98 + 801842c: 0801fe00 .word 0x0801fe00 + 8018430: 20000074 .word 0x20000074 + 8018434: 20008760 .word 0x20008760 + 8018438: 08022808 .word 0x08022808 + 801843c: 0802280c .word 0x0802280c + 8018440: 10624dd3 .word 0x10624dd3 + +08018444 : * The DHCP timer that checks for lease renewal/rebind timeouts. * Must be called once a minute (see @ref DHCP_COARSE_TIMER_SECS). */ void dhcp_coarse_tmr(void) { - 8018434: b580 push {r7, lr} - 8018436: b082 sub sp, #8 - 8018438: af00 add r7, sp, #0 + 8018444: b580 push {r7, lr} + 8018446: b082 sub sp, #8 + 8018448: af00 add r7, sp, #0 struct netif *netif; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_coarse_tmr()\n")); /* iterate through all network interfaces */ NETIF_FOREACH(netif) { - 801843a: 4b27 ldr r3, [pc, #156] ; (80184d8 ) - 801843c: 681b ldr r3, [r3, #0] - 801843e: 607b str r3, [r7, #4] - 8018440: e042 b.n 80184c8 + 801844a: 4b27 ldr r3, [pc, #156] ; (80184e8 ) + 801844c: 681b ldr r3, [r3, #0] + 801844e: 607b str r3, [r7, #4] + 8018450: e042 b.n 80184d8 /* only act on DHCP configured interfaces */ struct dhcp *dhcp = netif_dhcp_data(netif); - 8018442: 687b ldr r3, [r7, #4] - 8018444: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018446: 603b str r3, [r7, #0] + 8018452: 687b ldr r3, [r7, #4] + 8018454: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018456: 603b str r3, [r7, #0] if ((dhcp != NULL) && (dhcp->state != DHCP_STATE_OFF)) { - 8018448: 683b ldr r3, [r7, #0] - 801844a: 2b00 cmp r3, #0 - 801844c: d039 beq.n 80184c2 - 801844e: 683b ldr r3, [r7, #0] - 8018450: 795b ldrb r3, [r3, #5] - 8018452: 2b00 cmp r3, #0 - 8018454: d035 beq.n 80184c2 - /* compare lease time to expire timeout */ - if (dhcp->t0_timeout && (++dhcp->lease_used == dhcp->t0_timeout)) { - 8018456: 683b ldr r3, [r7, #0] - 8018458: 8a9b ldrh r3, [r3, #20] + 8018458: 683b ldr r3, [r7, #0] 801845a: 2b00 cmp r3, #0 - 801845c: d012 beq.n 8018484 + 801845c: d039 beq.n 80184d2 801845e: 683b ldr r3, [r7, #0] - 8018460: 8a5b ldrh r3, [r3, #18] - 8018462: 3301 adds r3, #1 - 8018464: b29a uxth r2, r3 + 8018460: 795b ldrb r3, [r3, #5] + 8018462: 2b00 cmp r3, #0 + 8018464: d035 beq.n 80184d2 + /* compare lease time to expire timeout */ + if (dhcp->t0_timeout && (++dhcp->lease_used == dhcp->t0_timeout)) { 8018466: 683b ldr r3, [r7, #0] - 8018468: 825a strh r2, [r3, #18] - 801846a: 683b ldr r3, [r7, #0] - 801846c: 8a5a ldrh r2, [r3, #18] + 8018468: 8a9b ldrh r3, [r3, #20] + 801846a: 2b00 cmp r3, #0 + 801846c: d012 beq.n 8018494 801846e: 683b ldr r3, [r7, #0] - 8018470: 8a9b ldrh r3, [r3, #20] - 8018472: 429a cmp r2, r3 - 8018474: d106 bne.n 8018484 + 8018470: 8a5b ldrh r3, [r3, #18] + 8018472: 3301 adds r3, #1 + 8018474: b29a uxth r2, r3 + 8018476: 683b ldr r3, [r7, #0] + 8018478: 825a strh r2, [r3, #18] + 801847a: 683b ldr r3, [r7, #0] + 801847c: 8a5a ldrh r2, [r3, #18] + 801847e: 683b ldr r3, [r7, #0] + 8018480: 8a9b ldrh r3, [r3, #20] + 8018482: 429a cmp r2, r3 + 8018484: d106 bne.n 8018494 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t0 timeout\n")); /* this clients' lease time has expired */ dhcp_release_and_stop(netif); - 8018476: 6878 ldr r0, [r7, #4] - 8018478: f000 fe46 bl 8019108 + 8018486: 6878 ldr r0, [r7, #4] + 8018488: f000 fe46 bl 8019118 dhcp_start(netif); - 801847c: 6878 ldr r0, [r7, #4] - 801847e: f000 f96b bl 8018758 - 8018482: e01e b.n 80184c2 + 801848c: 6878 ldr r0, [r7, #4] + 801848e: f000 f96b bl 8018768 + 8018492: e01e b.n 80184d2 /* timer is active (non zero), and triggers (zeroes) now? */ } else if (dhcp->t2_rebind_time && (dhcp->t2_rebind_time-- == 1)) { - 8018484: 683b ldr r3, [r7, #0] - 8018486: 8a1b ldrh r3, [r3, #16] - 8018488: 2b00 cmp r3, #0 - 801848a: d00b beq.n 80184a4 - 801848c: 683b ldr r3, [r7, #0] - 801848e: 8a1b ldrh r3, [r3, #16] - 8018490: 1e5a subs r2, r3, #1 - 8018492: b291 uxth r1, r2 - 8018494: 683a ldr r2, [r7, #0] - 8018496: 8211 strh r1, [r2, #16] - 8018498: 2b01 cmp r3, #1 - 801849a: d103 bne.n 80184a4 + 8018494: 683b ldr r3, [r7, #0] + 8018496: 8a1b ldrh r3, [r3, #16] + 8018498: 2b00 cmp r3, #0 + 801849a: d00b beq.n 80184b4 + 801849c: 683b ldr r3, [r7, #0] + 801849e: 8a1b ldrh r3, [r3, #16] + 80184a0: 1e5a subs r2, r3, #1 + 80184a2: b291 uxth r1, r2 + 80184a4: 683a ldr r2, [r7, #0] + 80184a6: 8211 strh r1, [r2, #16] + 80184a8: 2b01 cmp r3, #1 + 80184aa: d103 bne.n 80184b4 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t2 timeout\n")); /* this clients' rebind timeout triggered */ dhcp_t2_timeout(netif); - 801849c: 6878 ldr r0, [r7, #4] - 801849e: f000 f8c7 bl 8018630 - 80184a2: e00e b.n 80184c2 + 80184ac: 6878 ldr r0, [r7, #4] + 80184ae: f000 f8c7 bl 8018640 + 80184b2: e00e b.n 80184d2 /* timer is active (non zero), and triggers (zeroes) now */ } else if (dhcp->t1_renew_time && (dhcp->t1_renew_time-- == 1)) { - 80184a4: 683b ldr r3, [r7, #0] - 80184a6: 89db ldrh r3, [r3, #14] - 80184a8: 2b00 cmp r3, #0 - 80184aa: d00a beq.n 80184c2 - 80184ac: 683b ldr r3, [r7, #0] - 80184ae: 89db ldrh r3, [r3, #14] - 80184b0: 1e5a subs r2, r3, #1 - 80184b2: b291 uxth r1, r2 - 80184b4: 683a ldr r2, [r7, #0] - 80184b6: 81d1 strh r1, [r2, #14] - 80184b8: 2b01 cmp r3, #1 - 80184ba: d102 bne.n 80184c2 + 80184b4: 683b ldr r3, [r7, #0] + 80184b6: 89db ldrh r3, [r3, #14] + 80184b8: 2b00 cmp r3, #0 + 80184ba: d00a beq.n 80184d2 + 80184bc: 683b ldr r3, [r7, #0] + 80184be: 89db ldrh r3, [r3, #14] + 80184c0: 1e5a subs r2, r3, #1 + 80184c2: b291 uxth r1, r2 + 80184c4: 683a ldr r2, [r7, #0] + 80184c6: 81d1 strh r1, [r2, #14] + 80184c8: 2b01 cmp r3, #1 + 80184ca: d102 bne.n 80184d2 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_coarse_tmr(): t1 timeout\n")); /* this clients' renewal timeout triggered */ dhcp_t1_timeout(netif); - 80184bc: 6878 ldr r0, [r7, #4] - 80184be: f000 f888 bl 80185d2 + 80184cc: 6878 ldr r0, [r7, #4] + 80184ce: f000 f888 bl 80185e2 NETIF_FOREACH(netif) { - 80184c2: 687b ldr r3, [r7, #4] - 80184c4: 681b ldr r3, [r3, #0] - 80184c6: 607b str r3, [r7, #4] - 80184c8: 687b ldr r3, [r7, #4] - 80184ca: 2b00 cmp r3, #0 - 80184cc: d1b9 bne.n 8018442 + 80184d2: 687b ldr r3, [r7, #4] + 80184d4: 681b ldr r3, [r3, #0] + 80184d6: 607b str r3, [r7, #4] + 80184d8: 687b ldr r3, [r7, #4] + 80184da: 2b00 cmp r3, #0 + 80184dc: d1b9 bne.n 8018452 } } } } - 80184ce: bf00 nop - 80184d0: 3708 adds r7, #8 - 80184d2: 46bd mov sp, r7 - 80184d4: bd80 pop {r7, pc} - 80184d6: bf00 nop - 80184d8: 2000f7e0 .word 0x2000f7e0 + 80184de: bf00 nop + 80184e0: 3708 adds r7, #8 + 80184e2: 46bd mov sp, r7 + 80184e4: bd80 pop {r7, pc} + 80184e6: bf00 nop + 80184e8: 2000f7e0 .word 0x2000f7e0 -080184dc : +080184ec : * A DHCP server is expected to respond within a short period of time. * This timer checks whether an outstanding DHCP request is timed out. */ void dhcp_fine_tmr(void) { - 80184dc: b580 push {r7, lr} - 80184de: b082 sub sp, #8 - 80184e0: af00 add r7, sp, #0 + 80184ec: b580 push {r7, lr} + 80184ee: b082 sub sp, #8 + 80184f0: af00 add r7, sp, #0 struct netif *netif; /* loop through netif's */ NETIF_FOREACH(netif) { - 80184e2: 4b16 ldr r3, [pc, #88] ; (801853c ) - 80184e4: 681b ldr r3, [r3, #0] - 80184e6: 607b str r3, [r7, #4] - 80184e8: e020 b.n 801852c + 80184f2: 4b16 ldr r3, [pc, #88] ; (801854c ) + 80184f4: 681b ldr r3, [r3, #0] + 80184f6: 607b str r3, [r7, #4] + 80184f8: e020 b.n 801853c struct dhcp *dhcp = netif_dhcp_data(netif); - 80184ea: 687b ldr r3, [r7, #4] - 80184ec: 6a5b ldr r3, [r3, #36] ; 0x24 - 80184ee: 603b str r3, [r7, #0] + 80184fa: 687b ldr r3, [r7, #4] + 80184fc: 6a5b ldr r3, [r3, #36] ; 0x24 + 80184fe: 603b str r3, [r7, #0] /* only act on DHCP configured interfaces */ if (dhcp != NULL) { - 80184f0: 683b ldr r3, [r7, #0] - 80184f2: 2b00 cmp r3, #0 - 80184f4: d017 beq.n 8018526 + 8018500: 683b ldr r3, [r7, #0] + 8018502: 2b00 cmp r3, #0 + 8018504: d017 beq.n 8018536 /* timer is active (non zero), and is about to trigger now */ if (dhcp->request_timeout > 1) { - 80184f6: 683b ldr r3, [r7, #0] - 80184f8: 891b ldrh r3, [r3, #8] - 80184fa: 2b01 cmp r3, #1 - 80184fc: d906 bls.n 801850c - dhcp->request_timeout--; - 80184fe: 683b ldr r3, [r7, #0] - 8018500: 891b ldrh r3, [r3, #8] - 8018502: 3b01 subs r3, #1 - 8018504: b29a uxth r2, r3 8018506: 683b ldr r3, [r7, #0] - 8018508: 811a strh r2, [r3, #8] - 801850a: e00c b.n 8018526 - } else if (dhcp->request_timeout == 1) { - 801850c: 683b ldr r3, [r7, #0] - 801850e: 891b ldrh r3, [r3, #8] - 8018510: 2b01 cmp r3, #1 - 8018512: d108 bne.n 8018526 + 8018508: 891b ldrh r3, [r3, #8] + 801850a: 2b01 cmp r3, #1 + 801850c: d906 bls.n 801851c dhcp->request_timeout--; - 8018514: 683b ldr r3, [r7, #0] - 8018516: 891b ldrh r3, [r3, #8] - 8018518: 3b01 subs r3, #1 - 801851a: b29a uxth r2, r3 + 801850e: 683b ldr r3, [r7, #0] + 8018510: 891b ldrh r3, [r3, #8] + 8018512: 3b01 subs r3, #1 + 8018514: b29a uxth r2, r3 + 8018516: 683b ldr r3, [r7, #0] + 8018518: 811a strh r2, [r3, #8] + 801851a: e00c b.n 8018536 + } else if (dhcp->request_timeout == 1) { 801851c: 683b ldr r3, [r7, #0] - 801851e: 811a strh r2, [r3, #8] + 801851e: 891b ldrh r3, [r3, #8] + 8018520: 2b01 cmp r3, #1 + 8018522: d108 bne.n 8018536 + dhcp->request_timeout--; + 8018524: 683b ldr r3, [r7, #0] + 8018526: 891b ldrh r3, [r3, #8] + 8018528: 3b01 subs r3, #1 + 801852a: b29a uxth r2, r3 + 801852c: 683b ldr r3, [r7, #0] + 801852e: 811a strh r2, [r3, #8] /* { dhcp->request_timeout == 0 } */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_fine_tmr(): request timeout\n")); /* this client's request timeout triggered */ dhcp_timeout(netif); - 8018520: 6878 ldr r0, [r7, #4] - 8018522: f000 f80d bl 8018540 + 8018530: 6878 ldr r0, [r7, #4] + 8018532: f000 f80d bl 8018550 NETIF_FOREACH(netif) { - 8018526: 687b ldr r3, [r7, #4] - 8018528: 681b ldr r3, [r3, #0] - 801852a: 607b str r3, [r7, #4] - 801852c: 687b ldr r3, [r7, #4] - 801852e: 2b00 cmp r3, #0 - 8018530: d1db bne.n 80184ea + 8018536: 687b ldr r3, [r7, #4] + 8018538: 681b ldr r3, [r3, #0] + 801853a: 607b str r3, [r7, #4] + 801853c: 687b ldr r3, [r7, #4] + 801853e: 2b00 cmp r3, #0 + 8018540: d1db bne.n 80184fa } } } } - 8018532: bf00 nop - 8018534: 3708 adds r7, #8 - 8018536: 46bd mov sp, r7 - 8018538: bd80 pop {r7, pc} - 801853a: bf00 nop - 801853c: 2000f7e0 .word 0x2000f7e0 + 8018542: bf00 nop + 8018544: 3708 adds r7, #8 + 8018546: 46bd mov sp, r7 + 8018548: bd80 pop {r7, pc} + 801854a: bf00 nop + 801854c: 2000f7e0 .word 0x2000f7e0 -08018540 : +08018550 : * * @param netif the netif under DHCP control */ static void dhcp_timeout(struct netif *netif) { - 8018540: b580 push {r7, lr} - 8018542: b084 sub sp, #16 - 8018544: af00 add r7, sp, #0 - 8018546: 6078 str r0, [r7, #4] + 8018550: b580 push {r7, lr} + 8018552: b084 sub sp, #16 + 8018554: af00 add r7, sp, #0 + 8018556: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8018548: 687b ldr r3, [r7, #4] - 801854a: 6a5b ldr r3, [r3, #36] ; 0x24 - 801854c: 60fb str r3, [r7, #12] + 8018558: 687b ldr r3, [r7, #4] + 801855a: 6a5b ldr r3, [r3, #36] ; 0x24 + 801855c: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout()\n")); /* back-off period has passed, or server selection timed out */ if ((dhcp->state == DHCP_STATE_BACKING_OFF) || (dhcp->state == DHCP_STATE_SELECTING)) { - 801854e: 68fb ldr r3, [r7, #12] - 8018550: 795b ldrb r3, [r3, #5] - 8018552: 2b0c cmp r3, #12 - 8018554: d003 beq.n 801855e - 8018556: 68fb ldr r3, [r7, #12] - 8018558: 795b ldrb r3, [r3, #5] - 801855a: 2b06 cmp r3, #6 - 801855c: d103 bne.n 8018566 + 801855e: 68fb ldr r3, [r7, #12] + 8018560: 795b ldrb r3, [r3, #5] + 8018562: 2b0c cmp r3, #12 + 8018564: d003 beq.n 801856e + 8018566: 68fb ldr r3, [r7, #12] + 8018568: 795b ldrb r3, [r3, #5] + 801856a: 2b06 cmp r3, #6 + 801856c: d103 bne.n 8018576 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_timeout(): restarting discovery\n")); dhcp_discover(netif); - 801855e: 6878 ldr r0, [r7, #4] - 8018560: f000 fa68 bl 8018a34 + 801856e: 6878 ldr r0, [r7, #4] + 8018570: f000 fa68 bl 8018a44 dhcp_reboot(netif); } else { dhcp_discover(netif); } } } - 8018564: e031 b.n 80185ca + 8018574: e031 b.n 80185da } else if (dhcp->state == DHCP_STATE_REQUESTING) { - 8018566: 68fb ldr r3, [r7, #12] - 8018568: 795b ldrb r3, [r3, #5] - 801856a: 2b01 cmp r3, #1 - 801856c: d10e bne.n 801858c + 8018576: 68fb ldr r3, [r7, #12] + 8018578: 795b ldrb r3, [r3, #5] + 801857a: 2b01 cmp r3, #1 + 801857c: d10e bne.n 801859c if (dhcp->tries <= 5) { - 801856e: 68fb ldr r3, [r7, #12] - 8018570: 799b ldrb r3, [r3, #6] - 8018572: 2b05 cmp r3, #5 - 8018574: d803 bhi.n 801857e + 801857e: 68fb ldr r3, [r7, #12] + 8018580: 799b ldrb r3, [r3, #6] + 8018582: 2b05 cmp r3, #5 + 8018584: d803 bhi.n 801858e dhcp_select(netif); - 8018576: 6878 ldr r0, [r7, #4] - 8018578: f7ff fe60 bl 801823c + 8018586: 6878 ldr r0, [r7, #4] + 8018588: f7ff fe60 bl 801824c } - 801857c: e025 b.n 80185ca + 801858c: e025 b.n 80185da dhcp_release_and_stop(netif); - 801857e: 6878 ldr r0, [r7, #4] - 8018580: f000 fdc2 bl 8019108 + 801858e: 6878 ldr r0, [r7, #4] + 8018590: f000 fdc2 bl 8019118 dhcp_start(netif); - 8018584: 6878 ldr r0, [r7, #4] - 8018586: f000 f8e7 bl 8018758 + 8018594: 6878 ldr r0, [r7, #4] + 8018596: f000 f8e7 bl 8018768 } - 801858a: e01e b.n 80185ca + 801859a: e01e b.n 80185da } else if (dhcp->state == DHCP_STATE_CHECKING) { - 801858c: 68fb ldr r3, [r7, #12] - 801858e: 795b ldrb r3, [r3, #5] - 8018590: 2b08 cmp r3, #8 - 8018592: d10b bne.n 80185ac + 801859c: 68fb ldr r3, [r7, #12] + 801859e: 795b ldrb r3, [r3, #5] + 80185a0: 2b08 cmp r3, #8 + 80185a2: d10b bne.n 80185bc if (dhcp->tries <= 1) { - 8018594: 68fb ldr r3, [r7, #12] - 8018596: 799b ldrb r3, [r3, #6] - 8018598: 2b01 cmp r3, #1 - 801859a: d803 bhi.n 80185a4 + 80185a4: 68fb ldr r3, [r7, #12] + 80185a6: 799b ldrb r3, [r3, #6] + 80185a8: 2b01 cmp r3, #1 + 80185aa: d803 bhi.n 80185b4 dhcp_check(netif); - 801859c: 6878 ldr r0, [r7, #4] - 801859e: f7ff fdf3 bl 8018188 + 80185ac: 6878 ldr r0, [r7, #4] + 80185ae: f7ff fdf3 bl 8018198 } - 80185a2: e012 b.n 80185ca + 80185b2: e012 b.n 80185da dhcp_bind(netif); - 80185a4: 6878 ldr r0, [r7, #4] - 80185a6: f000 fae7 bl 8018b78 + 80185b4: 6878 ldr r0, [r7, #4] + 80185b6: f000 fae7 bl 8018b88 } - 80185aa: e00e b.n 80185ca + 80185ba: e00e b.n 80185da } else if (dhcp->state == DHCP_STATE_REBOOTING) { - 80185ac: 68fb ldr r3, [r7, #12] - 80185ae: 795b ldrb r3, [r3, #5] - 80185b0: 2b03 cmp r3, #3 - 80185b2: d10a bne.n 80185ca + 80185bc: 68fb ldr r3, [r7, #12] + 80185be: 795b ldrb r3, [r3, #5] + 80185c0: 2b03 cmp r3, #3 + 80185c2: d10a bne.n 80185da if (dhcp->tries < REBOOT_TRIES) { - 80185b4: 68fb ldr r3, [r7, #12] - 80185b6: 799b ldrb r3, [r3, #6] - 80185b8: 2b01 cmp r3, #1 - 80185ba: d803 bhi.n 80185c4 + 80185c4: 68fb ldr r3, [r7, #12] + 80185c6: 799b ldrb r3, [r3, #6] + 80185c8: 2b01 cmp r3, #1 + 80185ca: d803 bhi.n 80185d4 dhcp_reboot(netif); - 80185bc: 6878 ldr r0, [r7, #4] - 80185be: f000 fced bl 8018f9c + 80185cc: 6878 ldr r0, [r7, #4] + 80185ce: f000 fced bl 8018fac } - 80185c2: e002 b.n 80185ca + 80185d2: e002 b.n 80185da dhcp_discover(netif); - 80185c4: 6878 ldr r0, [r7, #4] - 80185c6: f000 fa35 bl 8018a34 + 80185d4: 6878 ldr r0, [r7, #4] + 80185d6: f000 fa35 bl 8018a44 } - 80185ca: bf00 nop - 80185cc: 3710 adds r7, #16 - 80185ce: 46bd mov sp, r7 - 80185d0: bd80 pop {r7, pc} + 80185da: bf00 nop + 80185dc: 3710 adds r7, #16 + 80185de: 46bd mov sp, r7 + 80185e0: bd80 pop {r7, pc} -080185d2 : +080185e2 : * * @param netif the netif under DHCP control */ static void dhcp_t1_timeout(struct netif *netif) { - 80185d2: b580 push {r7, lr} - 80185d4: b084 sub sp, #16 - 80185d6: af00 add r7, sp, #0 - 80185d8: 6078 str r0, [r7, #4] + 80185e2: b580 push {r7, lr} + 80185e4: b084 sub sp, #16 + 80185e6: af00 add r7, sp, #0 + 80185e8: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 80185da: 687b ldr r3, [r7, #4] - 80185dc: 6a5b ldr r3, [r3, #36] ; 0x24 - 80185de: 60fb str r3, [r7, #12] + 80185ea: 687b ldr r3, [r7, #4] + 80185ec: 6a5b ldr r3, [r3, #36] ; 0x24 + 80185ee: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_t1_timeout()\n")); if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - 80185e0: 68fb ldr r3, [r7, #12] - 80185e2: 795b ldrb r3, [r3, #5] - 80185e4: 2b01 cmp r3, #1 - 80185e6: d007 beq.n 80185f8 - 80185e8: 68fb ldr r3, [r7, #12] - 80185ea: 795b ldrb r3, [r3, #5] - 80185ec: 2b0a cmp r3, #10 - 80185ee: d003 beq.n 80185f8 - (dhcp->state == DHCP_STATE_RENEWING)) { 80185f0: 68fb ldr r3, [r7, #12] 80185f2: 795b ldrb r3, [r3, #5] + 80185f4: 2b01 cmp r3, #1 + 80185f6: d007 beq.n 8018608 + 80185f8: 68fb ldr r3, [r7, #12] + 80185fa: 795b ldrb r3, [r3, #5] + 80185fc: 2b0a cmp r3, #10 + 80185fe: d003 beq.n 8018608 + (dhcp->state == DHCP_STATE_RENEWING)) { + 8018600: 68fb ldr r3, [r7, #12] + 8018602: 795b ldrb r3, [r3, #5] if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - 80185f4: 2b05 cmp r3, #5 - 80185f6: d117 bne.n 8018628 + 8018604: 2b05 cmp r3, #5 + 8018606: d117 bne.n 8018638 * eventually time-out if renew tries fail. */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t1_timeout(): must renew\n")); /* This slightly different to RFC2131: DHCPREQUEST will be sent from state DHCP_STATE_RENEWING, not DHCP_STATE_BOUND */ dhcp_renew(netif); - 80185f8: 6878 ldr r0, [r7, #4] - 80185fa: f000 fb97 bl 8018d2c + 8018608: 6878 ldr r0, [r7, #4] + 801860a: f000 fb97 bl 8018d3c /* Calculate next timeout */ if (((dhcp->t2_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) { - 80185fe: 68fb ldr r3, [r7, #12] - 8018600: 899b ldrh r3, [r3, #12] - 8018602: 461a mov r2, r3 - 8018604: 68fb ldr r3, [r7, #12] - 8018606: 8a5b ldrh r3, [r3, #18] - 8018608: 1ad3 subs r3, r2, r3 - 801860a: 2b01 cmp r3, #1 - 801860c: dd0c ble.n 8018628 - dhcp->t1_renew_time = (u16_t)((dhcp->t2_timeout - dhcp->lease_used) / 2); 801860e: 68fb ldr r3, [r7, #12] 8018610: 899b ldrh r3, [r3, #12] 8018612: 461a mov r2, r3 8018614: 68fb ldr r3, [r7, #12] 8018616: 8a5b ldrh r3, [r3, #18] 8018618: 1ad3 subs r3, r2, r3 - 801861a: 2b00 cmp r3, #0 - 801861c: da00 bge.n 8018620 - 801861e: 3301 adds r3, #1 - 8018620: 105b asrs r3, r3, #1 - 8018622: b29a uxth r2, r3 + 801861a: 2b01 cmp r3, #1 + 801861c: dd0c ble.n 8018638 + dhcp->t1_renew_time = (u16_t)((dhcp->t2_timeout - dhcp->lease_used) / 2); + 801861e: 68fb ldr r3, [r7, #12] + 8018620: 899b ldrh r3, [r3, #12] + 8018622: 461a mov r2, r3 8018624: 68fb ldr r3, [r7, #12] - 8018626: 81da strh r2, [r3, #14] + 8018626: 8a5b ldrh r3, [r3, #18] + 8018628: 1ad3 subs r3, r2, r3 + 801862a: 2b00 cmp r3, #0 + 801862c: da00 bge.n 8018630 + 801862e: 3301 adds r3, #1 + 8018630: 105b asrs r3, r3, #1 + 8018632: b29a uxth r2, r3 + 8018634: 68fb ldr r3, [r7, #12] + 8018636: 81da strh r2, [r3, #14] } } } - 8018628: bf00 nop - 801862a: 3710 adds r7, #16 - 801862c: 46bd mov sp, r7 - 801862e: bd80 pop {r7, pc} + 8018638: bf00 nop + 801863a: 3710 adds r7, #16 + 801863c: 46bd mov sp, r7 + 801863e: bd80 pop {r7, pc} -08018630 : +08018640 : * * @param netif the netif under DHCP control */ static void dhcp_t2_timeout(struct netif *netif) { - 8018630: b580 push {r7, lr} - 8018632: b084 sub sp, #16 - 8018634: af00 add r7, sp, #0 - 8018636: 6078 str r0, [r7, #4] + 8018640: b580 push {r7, lr} + 8018642: b084 sub sp, #16 + 8018644: af00 add r7, sp, #0 + 8018646: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8018638: 687b ldr r3, [r7, #4] - 801863a: 6a5b ldr r3, [r3, #36] ; 0x24 - 801863c: 60fb str r3, [r7, #12] + 8018648: 687b ldr r3, [r7, #4] + 801864a: 6a5b ldr r3, [r3, #36] ; 0x24 + 801864c: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t2_timeout()\n")); if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - 801863e: 68fb ldr r3, [r7, #12] - 8018640: 795b ldrb r3, [r3, #5] - 8018642: 2b01 cmp r3, #1 - 8018644: d00b beq.n 801865e - 8018646: 68fb ldr r3, [r7, #12] - 8018648: 795b ldrb r3, [r3, #5] - 801864a: 2b0a cmp r3, #10 - 801864c: d007 beq.n 801865e - (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) { 801864e: 68fb ldr r3, [r7, #12] 8018650: 795b ldrb r3, [r3, #5] - if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || - 8018652: 2b05 cmp r3, #5 - 8018654: d003 beq.n 801865e - (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) { + 8018652: 2b01 cmp r3, #1 + 8018654: d00b beq.n 801866e 8018656: 68fb ldr r3, [r7, #12] 8018658: 795b ldrb r3, [r3, #5] - 801865a: 2b04 cmp r3, #4 - 801865c: d117 bne.n 801868e + 801865a: 2b0a cmp r3, #10 + 801865c: d007 beq.n 801866e + (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) { + 801865e: 68fb ldr r3, [r7, #12] + 8018660: 795b ldrb r3, [r3, #5] + if ((dhcp->state == DHCP_STATE_REQUESTING) || (dhcp->state == DHCP_STATE_BOUND) || + 8018662: 2b05 cmp r3, #5 + 8018664: d003 beq.n 801866e + (dhcp->state == DHCP_STATE_RENEWING) || (dhcp->state == DHCP_STATE_REBINDING)) { + 8018666: 68fb ldr r3, [r7, #12] + 8018668: 795b ldrb r3, [r3, #5] + 801866a: 2b04 cmp r3, #4 + 801866c: d117 bne.n 801869e /* just retry to rebind */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_t2_timeout(): must rebind\n")); /* This slightly different to RFC2131: DHCPREQUEST will be sent from state DHCP_STATE_REBINDING, not DHCP_STATE_BOUND */ dhcp_rebind(netif); - 801865e: 6878 ldr r0, [r7, #4] - 8018660: f000 fc00 bl 8018e64 + 801866e: 6878 ldr r0, [r7, #4] + 8018670: f000 fc00 bl 8018e74 /* Calculate next timeout */ if (((dhcp->t0_timeout - dhcp->lease_used) / 2) >= ((60 + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS)) { - 8018664: 68fb ldr r3, [r7, #12] - 8018666: 8a9b ldrh r3, [r3, #20] - 8018668: 461a mov r2, r3 - 801866a: 68fb ldr r3, [r7, #12] - 801866c: 8a5b ldrh r3, [r3, #18] - 801866e: 1ad3 subs r3, r2, r3 - 8018670: 2b01 cmp r3, #1 - 8018672: dd0c ble.n 801868e - dhcp->t2_rebind_time = (u16_t)((dhcp->t0_timeout - dhcp->lease_used) / 2); 8018674: 68fb ldr r3, [r7, #12] 8018676: 8a9b ldrh r3, [r3, #20] 8018678: 461a mov r2, r3 801867a: 68fb ldr r3, [r7, #12] 801867c: 8a5b ldrh r3, [r3, #18] 801867e: 1ad3 subs r3, r2, r3 - 8018680: 2b00 cmp r3, #0 - 8018682: da00 bge.n 8018686 - 8018684: 3301 adds r3, #1 - 8018686: 105b asrs r3, r3, #1 - 8018688: b29a uxth r2, r3 + 8018680: 2b01 cmp r3, #1 + 8018682: dd0c ble.n 801869e + dhcp->t2_rebind_time = (u16_t)((dhcp->t0_timeout - dhcp->lease_used) / 2); + 8018684: 68fb ldr r3, [r7, #12] + 8018686: 8a9b ldrh r3, [r3, #20] + 8018688: 461a mov r2, r3 801868a: 68fb ldr r3, [r7, #12] - 801868c: 821a strh r2, [r3, #16] + 801868c: 8a5b ldrh r3, [r3, #18] + 801868e: 1ad3 subs r3, r2, r3 + 8018690: 2b00 cmp r3, #0 + 8018692: da00 bge.n 8018696 + 8018694: 3301 adds r3, #1 + 8018696: 105b asrs r3, r3, #1 + 8018698: b29a uxth r2, r3 + 801869a: 68fb ldr r3, [r7, #12] + 801869c: 821a strh r2, [r3, #16] } } } - 801868e: bf00 nop - 8018690: 3710 adds r7, #16 - 8018692: 46bd mov sp, r7 - 8018694: bd80 pop {r7, pc} + 801869e: bf00 nop + 80186a0: 3710 adds r7, #16 + 80186a2: 46bd mov sp, r7 + 80186a4: bd80 pop {r7, pc} ... -08018698 : +080186a8 : * * @param netif the netif under DHCP control */ static void dhcp_handle_ack(struct netif *netif, struct dhcp_msg *msg_in) { - 8018698: b580 push {r7, lr} - 801869a: b084 sub sp, #16 - 801869c: af00 add r7, sp, #0 - 801869e: 6078 str r0, [r7, #4] - 80186a0: 6039 str r1, [r7, #0] + 80186a8: b580 push {r7, lr} + 80186aa: b084 sub sp, #16 + 80186ac: af00 add r7, sp, #0 + 80186ae: 6078 str r0, [r7, #4] + 80186b0: 6039 str r1, [r7, #0] struct dhcp *dhcp = netif_dhcp_data(netif); - 80186a2: 687b ldr r3, [r7, #4] - 80186a4: 6a5b ldr r3, [r3, #36] ; 0x24 - 80186a6: 60fb str r3, [r7, #12] + 80186b2: 687b ldr r3, [r7, #4] + 80186b4: 6a5b ldr r3, [r3, #36] ; 0x24 + 80186b6: 60fb str r3, [r7, #12] #if LWIP_DHCP_GET_NTP_SRV ip4_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS]; #endif /* clear options we might not get from the ACK */ ip4_addr_set_zero(&dhcp->offered_sn_mask); - 80186a8: 68fb ldr r3, [r7, #12] - 80186aa: 2200 movs r2, #0 - 80186ac: 621a str r2, [r3, #32] + 80186b8: 68fb ldr r3, [r7, #12] + 80186ba: 2200 movs r2, #0 + 80186bc: 621a str r2, [r3, #32] ip4_addr_set_zero(&dhcp->offered_gw_addr); - 80186ae: 68fb ldr r3, [r7, #12] - 80186b0: 2200 movs r2, #0 - 80186b2: 625a str r2, [r3, #36] ; 0x24 + 80186be: 68fb ldr r3, [r7, #12] + 80186c0: 2200 movs r2, #0 + 80186c2: 625a str r2, [r3, #36] ; 0x24 #if LWIP_DHCP_BOOTP_FILE ip4_addr_set_zero(&dhcp->offered_si_addr); #endif /* LWIP_DHCP_BOOTP_FILE */ /* lease time given? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_LEASE_TIME)) { - 80186b4: 4b26 ldr r3, [pc, #152] ; (8018750 ) - 80186b6: 78db ldrb r3, [r3, #3] - 80186b8: 2b00 cmp r3, #0 - 80186ba: d003 beq.n 80186c4 + 80186c4: 4b26 ldr r3, [pc, #152] ; (8018760 ) + 80186c6: 78db ldrb r3, [r3, #3] + 80186c8: 2b00 cmp r3, #0 + 80186ca: d003 beq.n 80186d4 /* remember offered lease time */ dhcp->offered_t0_lease = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_LEASE_TIME); - 80186bc: 4b25 ldr r3, [pc, #148] ; (8018754 ) - 80186be: 68da ldr r2, [r3, #12] - 80186c0: 68fb ldr r3, [r7, #12] - 80186c2: 629a str r2, [r3, #40] ; 0x28 + 80186cc: 4b25 ldr r3, [pc, #148] ; (8018764 ) + 80186ce: 68da ldr r2, [r3, #12] + 80186d0: 68fb ldr r3, [r7, #12] + 80186d2: 629a str r2, [r3, #40] ; 0x28 } /* renewal period given? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T1)) { - 80186c4: 4b22 ldr r3, [pc, #136] ; (8018750 ) - 80186c6: 791b ldrb r3, [r3, #4] - 80186c8: 2b00 cmp r3, #0 - 80186ca: d004 beq.n 80186d6 + 80186d4: 4b22 ldr r3, [pc, #136] ; (8018760 ) + 80186d6: 791b ldrb r3, [r3, #4] + 80186d8: 2b00 cmp r3, #0 + 80186da: d004 beq.n 80186e6 /* remember given renewal period */ dhcp->offered_t1_renew = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T1); - 80186cc: 4b21 ldr r3, [pc, #132] ; (8018754 ) - 80186ce: 691a ldr r2, [r3, #16] - 80186d0: 68fb ldr r3, [r7, #12] - 80186d2: 62da str r2, [r3, #44] ; 0x2c - 80186d4: e004 b.n 80186e0 + 80186dc: 4b21 ldr r3, [pc, #132] ; (8018764 ) + 80186de: 691a ldr r2, [r3, #16] + 80186e0: 68fb ldr r3, [r7, #12] + 80186e2: 62da str r2, [r3, #44] ; 0x2c + 80186e4: e004 b.n 80186f0 } else { /* calculate safe periods for renewal */ dhcp->offered_t1_renew = dhcp->offered_t0_lease / 2; - 80186d6: 68fb ldr r3, [r7, #12] - 80186d8: 6a9b ldr r3, [r3, #40] ; 0x28 - 80186da: 085a lsrs r2, r3, #1 - 80186dc: 68fb ldr r3, [r7, #12] - 80186de: 62da str r2, [r3, #44] ; 0x2c + 80186e6: 68fb ldr r3, [r7, #12] + 80186e8: 6a9b ldr r3, [r3, #40] ; 0x28 + 80186ea: 085a lsrs r2, r3, #1 + 80186ec: 68fb ldr r3, [r7, #12] + 80186ee: 62da str r2, [r3, #44] ; 0x2c } /* renewal period given? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_T2)) { - 80186e0: 4b1b ldr r3, [pc, #108] ; (8018750 ) - 80186e2: 795b ldrb r3, [r3, #5] - 80186e4: 2b00 cmp r3, #0 - 80186e6: d004 beq.n 80186f2 + 80186f0: 4b1b ldr r3, [pc, #108] ; (8018760 ) + 80186f2: 795b ldrb r3, [r3, #5] + 80186f4: 2b00 cmp r3, #0 + 80186f6: d004 beq.n 8018702 /* remember given rebind period */ dhcp->offered_t2_rebind = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_T2); - 80186e8: 4b1a ldr r3, [pc, #104] ; (8018754 ) - 80186ea: 695a ldr r2, [r3, #20] - 80186ec: 68fb ldr r3, [r7, #12] - 80186ee: 631a str r2, [r3, #48] ; 0x30 - 80186f0: e007 b.n 8018702 + 80186f8: 4b1a ldr r3, [pc, #104] ; (8018764 ) + 80186fa: 695a ldr r2, [r3, #20] + 80186fc: 68fb ldr r3, [r7, #12] + 80186fe: 631a str r2, [r3, #48] ; 0x30 + 8018700: e007 b.n 8018712 } else { /* calculate safe periods for rebinding (offered_t0_lease * 0.875 -> 87.5%)*/ dhcp->offered_t2_rebind = (dhcp->offered_t0_lease * 7U) / 8U; - 80186f2: 68fb ldr r3, [r7, #12] - 80186f4: 6a9a ldr r2, [r3, #40] ; 0x28 - 80186f6: 4613 mov r3, r2 - 80186f8: 00db lsls r3, r3, #3 - 80186fa: 1a9b subs r3, r3, r2 - 80186fc: 08da lsrs r2, r3, #3 - 80186fe: 68fb ldr r3, [r7, #12] - 8018700: 631a str r2, [r3, #48] ; 0x30 + 8018702: 68fb ldr r3, [r7, #12] + 8018704: 6a9a ldr r2, [r3, #40] ; 0x28 + 8018706: 4613 mov r3, r2 + 8018708: 00db lsls r3, r3, #3 + 801870a: 1a9b subs r3, r3, r2 + 801870c: 08da lsrs r2, r3, #3 + 801870e: 68fb ldr r3, [r7, #12] + 8018710: 631a str r2, [r3, #48] ; 0x30 } /* (y)our internet address */ ip4_addr_copy(dhcp->offered_ip_addr, msg_in->yiaddr); - 8018702: 683b ldr r3, [r7, #0] - 8018704: 691a ldr r2, [r3, #16] - 8018706: 68fb ldr r3, [r7, #12] - 8018708: 61da str r2, [r3, #28] + 8018712: 683b ldr r3, [r7, #0] + 8018714: 691a ldr r2, [r3, #16] + 8018716: 68fb ldr r3, [r7, #12] + 8018718: 61da str r2, [r3, #28] boot file name copied in dhcp_parse_reply if not overloaded */ ip4_addr_copy(dhcp->offered_si_addr, msg_in->siaddr); #endif /* LWIP_DHCP_BOOTP_FILE */ /* subnet mask given? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_SUBNET_MASK)) { - 801870a: 4b11 ldr r3, [pc, #68] ; (8018750 ) - 801870c: 799b ldrb r3, [r3, #6] - 801870e: 2b00 cmp r3, #0 - 8018710: d00b beq.n 801872a + 801871a: 4b11 ldr r3, [pc, #68] ; (8018760 ) + 801871c: 799b ldrb r3, [r3, #6] + 801871e: 2b00 cmp r3, #0 + 8018720: d00b beq.n 801873a /* remember given subnet mask */ ip4_addr_set_u32(&dhcp->offered_sn_mask, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_SUBNET_MASK))); - 8018712: 4b10 ldr r3, [pc, #64] ; (8018754 ) - 8018714: 699b ldr r3, [r3, #24] - 8018716: 4618 mov r0, r3 - 8018718: f7f7 fec7 bl 80104aa - 801871c: 4602 mov r2, r0 - 801871e: 68fb ldr r3, [r7, #12] - 8018720: 621a str r2, [r3, #32] + 8018722: 4b10 ldr r3, [pc, #64] ; (8018764 ) + 8018724: 699b ldr r3, [r3, #24] + 8018726: 4618 mov r0, r3 + 8018728: f7f7 fec7 bl 80104ba + 801872c: 4602 mov r2, r0 + 801872e: 68fb ldr r3, [r7, #12] + 8018730: 621a str r2, [r3, #32] dhcp->subnet_mask_given = 1; - 8018722: 68fb ldr r3, [r7, #12] - 8018724: 2201 movs r2, #1 - 8018726: 71da strb r2, [r3, #7] - 8018728: e002 b.n 8018730 + 8018732: 68fb ldr r3, [r7, #12] + 8018734: 2201 movs r2, #1 + 8018736: 71da strb r2, [r3, #7] + 8018738: e002 b.n 8018740 } else { dhcp->subnet_mask_given = 0; - 801872a: 68fb ldr r3, [r7, #12] - 801872c: 2200 movs r2, #0 - 801872e: 71da strb r2, [r3, #7] + 801873a: 68fb ldr r3, [r7, #12] + 801873c: 2200 movs r2, #0 + 801873e: 71da strb r2, [r3, #7] } /* gateway router */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_ROUTER)) { - 8018730: 4b07 ldr r3, [pc, #28] ; (8018750 ) - 8018732: 79db ldrb r3, [r3, #7] - 8018734: 2b00 cmp r3, #0 - 8018736: d007 beq.n 8018748 + 8018740: 4b07 ldr r3, [pc, #28] ; (8018760 ) + 8018742: 79db ldrb r3, [r3, #7] + 8018744: 2b00 cmp r3, #0 + 8018746: d007 beq.n 8018758 ip4_addr_set_u32(&dhcp->offered_gw_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_ROUTER))); - 8018738: 4b06 ldr r3, [pc, #24] ; (8018754 ) - 801873a: 69db ldr r3, [r3, #28] - 801873c: 4618 mov r0, r3 - 801873e: f7f7 feb4 bl 80104aa - 8018742: 4602 mov r2, r0 - 8018744: 68fb ldr r3, [r7, #12] - 8018746: 625a str r2, [r3, #36] ; 0x24 + 8018748: 4b06 ldr r3, [pc, #24] ; (8018764 ) + 801874a: 69db ldr r3, [r3, #28] + 801874c: 4618 mov r0, r3 + 801874e: f7f7 feb4 bl 80104ba + 8018752: 4602 mov r2, r0 + 8018754: 68fb ldr r3, [r7, #12] + 8018756: 625a str r2, [r3, #36] ; 0x24 ip_addr_t dns_addr; ip_addr_set_ip4_u32_val(dns_addr, lwip_htonl(dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_DNS_SERVER + n))); dns_setserver(n, &dns_addr); } #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */ } - 8018748: bf00 nop - 801874a: 3710 adds r7, #16 - 801874c: 46bd mov sp, r7 - 801874e: bd80 pop {r7, pc} - 8018750: 2000f80c .word 0x2000f80c - 8018754: 2000f814 .word 0x2000f814 + 8018758: bf00 nop + 801875a: 3710 adds r7, #16 + 801875c: 46bd mov sp, r7 + 801875e: bd80 pop {r7, pc} + 8018760: 2000f80c .word 0x2000f80c + 8018764: 2000f814 .word 0x2000f814 -08018758 : +08018768 : * - ERR_OK - No error * - ERR_MEM - Out of memory */ err_t dhcp_start(struct netif *netif) { - 8018758: b580 push {r7, lr} - 801875a: b084 sub sp, #16 - 801875c: af00 add r7, sp, #0 - 801875e: 6078 str r0, [r7, #4] + 8018768: b580 push {r7, lr} + 801876a: b084 sub sp, #16 + 801876c: af00 add r7, sp, #0 + 801876e: 6078 str r0, [r7, #4] struct dhcp *dhcp; err_t result; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif != NULL", (netif != NULL), return ERR_ARG;); - 8018760: 687b ldr r3, [r7, #4] - 8018762: 2b00 cmp r3, #0 - 8018764: d109 bne.n 801877a - 8018766: 4b37 ldr r3, [pc, #220] ; (8018844 ) - 8018768: f240 22e7 movw r2, #743 ; 0x2e7 - 801876c: 4936 ldr r1, [pc, #216] ; (8018848 ) - 801876e: 4837 ldr r0, [pc, #220] ; (801884c ) - 8018770: f003 ff6a bl 801c648 - 8018774: f06f 030f mvn.w r3, #15 - 8018778: e060 b.n 801883c + 8018770: 687b ldr r3, [r7, #4] + 8018772: 2b00 cmp r3, #0 + 8018774: d109 bne.n 801878a + 8018776: 4b37 ldr r3, [pc, #220] ; (8018854 ) + 8018778: f240 22e7 movw r2, #743 ; 0x2e7 + 801877c: 4936 ldr r1, [pc, #216] ; (8018858 ) + 801877e: 4837 ldr r0, [pc, #220] ; (801885c ) + 8018780: f003 ff6a bl 801c658 + 8018784: f06f 030f mvn.w r3, #15 + 8018788: e060 b.n 801884c LWIP_ERROR("netif is not up, old style port?", netif_is_up(netif), return ERR_ARG;); - 801877a: 687b ldr r3, [r7, #4] - 801877c: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8018780: f003 0301 and.w r3, r3, #1 - 8018784: 2b00 cmp r3, #0 - 8018786: d109 bne.n 801879c - 8018788: 4b2e ldr r3, [pc, #184] ; (8018844 ) - 801878a: f44f 723a mov.w r2, #744 ; 0x2e8 - 801878e: 4930 ldr r1, [pc, #192] ; (8018850 ) - 8018790: 482e ldr r0, [pc, #184] ; (801884c ) - 8018792: f003 ff59 bl 801c648 - 8018796: f06f 030f mvn.w r3, #15 - 801879a: e04f b.n 801883c + 801878a: 687b ldr r3, [r7, #4] + 801878c: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8018790: f003 0301 and.w r3, r3, #1 + 8018794: 2b00 cmp r3, #0 + 8018796: d109 bne.n 80187ac + 8018798: 4b2e ldr r3, [pc, #184] ; (8018854 ) + 801879a: f44f 723a mov.w r2, #744 ; 0x2e8 + 801879e: 4930 ldr r1, [pc, #192] ; (8018860 ) + 80187a0: 482e ldr r0, [pc, #184] ; (801885c ) + 80187a2: f003 ff59 bl 801c658 + 80187a6: f06f 030f mvn.w r3, #15 + 80187aa: e04f b.n 801884c dhcp = netif_dhcp_data(netif); - 801879c: 687b ldr r3, [r7, #4] - 801879e: 6a5b ldr r3, [r3, #36] ; 0x24 - 80187a0: 60fb str r3, [r7, #12] + 80187ac: 687b ldr r3, [r7, #4] + 80187ae: 6a5b ldr r3, [r3, #36] ; 0x24 + 80187b0: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); /* check MTU of the netif */ if (netif->mtu < DHCP_MAX_MSG_LEN_MIN_REQUIRED) { - 80187a2: 687b ldr r3, [r7, #4] - 80187a4: 8d1b ldrh r3, [r3, #40] ; 0x28 - 80187a6: f5b3 7f10 cmp.w r3, #576 ; 0x240 - 80187aa: d202 bcs.n 80187b2 + 80187b2: 687b ldr r3, [r7, #4] + 80187b4: 8d1b ldrh r3, [r3, #40] ; 0x28 + 80187b6: f5b3 7f10 cmp.w r3, #576 ; 0x240 + 80187ba: d202 bcs.n 80187c2 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): Cannot use this netif with DHCP: MTU is too small\n")); return ERR_MEM; - 80187ac: f04f 33ff mov.w r3, #4294967295 - 80187b0: e044 b.n 801883c + 80187bc: f04f 33ff mov.w r3, #4294967295 + 80187c0: e044 b.n 801884c } /* no DHCP client attached yet? */ if (dhcp == NULL) { - 80187b2: 68fb ldr r3, [r7, #12] - 80187b4: 2b00 cmp r3, #0 - 80187b6: d10d bne.n 80187d4 + 80187c2: 68fb ldr r3, [r7, #12] + 80187c4: 2b00 cmp r3, #0 + 80187c6: d10d bne.n 80187e4 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): mallocing new DHCP client\n")); dhcp = (struct dhcp *)mem_malloc(sizeof(struct dhcp)); - 80187b8: 2034 movs r0, #52 ; 0x34 - 80187ba: f7f8 f995 bl 8010ae8 - 80187be: 60f8 str r0, [r7, #12] + 80187c8: 2034 movs r0, #52 ; 0x34 + 80187ca: f7f8 f995 bl 8010af8 + 80187ce: 60f8 str r0, [r7, #12] if (dhcp == NULL) { - 80187c0: 68fb ldr r3, [r7, #12] - 80187c2: 2b00 cmp r3, #0 - 80187c4: d102 bne.n 80187cc + 80187d0: 68fb ldr r3, [r7, #12] + 80187d2: 2b00 cmp r3, #0 + 80187d4: d102 bne.n 80187dc LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): could not allocate dhcp\n")); return ERR_MEM; - 80187c6: f04f 33ff mov.w r3, #4294967295 - 80187ca: e037 b.n 801883c + 80187d6: f04f 33ff mov.w r3, #4294967295 + 80187da: e037 b.n 801884c } /* store this dhcp client in the netif */ netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, dhcp); - 80187cc: 687b ldr r3, [r7, #4] - 80187ce: 68fa ldr r2, [r7, #12] - 80187d0: 625a str r2, [r3, #36] ; 0x24 - 80187d2: e005 b.n 80187e0 + 80187dc: 687b ldr r3, [r7, #4] + 80187de: 68fa ldr r2, [r7, #12] + 80187e0: 625a str r2, [r3, #36] ; 0x24 + 80187e2: e005 b.n 80187f0 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): allocated dhcp")); /* already has DHCP client attached */ } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_start(): restarting DHCP configuration\n")); if (dhcp->pcb_allocated != 0) { - 80187d4: 68fb ldr r3, [r7, #12] - 80187d6: 791b ldrb r3, [r3, #4] - 80187d8: 2b00 cmp r3, #0 - 80187da: d001 beq.n 80187e0 + 80187e4: 68fb ldr r3, [r7, #12] + 80187e6: 791b ldrb r3, [r3, #4] + 80187e8: 2b00 cmp r3, #0 + 80187ea: d001 beq.n 80187f0 dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */ - 80187dc: f7ff fc90 bl 8018100 + 80187ec: f7ff fc90 bl 8018110 } /* dhcp is cleared below, no need to reset flag*/ } /* clear data structure */ memset(dhcp, 0, sizeof(struct dhcp)); - 80187e0: 2234 movs r2, #52 ; 0x34 - 80187e2: 2100 movs r1, #0 - 80187e4: 68f8 ldr r0, [r7, #12] - 80187e6: f003 ff26 bl 801c636 + 80187f0: 2234 movs r2, #52 ; 0x34 + 80187f2: 2100 movs r1, #0 + 80187f4: 68f8 ldr r0, [r7, #12] + 80187f6: f003 ff26 bl 801c646 /* dhcp_set_state(&dhcp, DHCP_STATE_OFF); */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_start(): starting DHCP configuration\n")); if (dhcp_inc_pcb_refcount() != ERR_OK) { /* ensure DHCP PCB is allocated */ - 80187ea: f7ff fc37 bl 801805c - 80187ee: 4603 mov r3, r0 - 80187f0: 2b00 cmp r3, #0 - 80187f2: d002 beq.n 80187fa + 80187fa: f7ff fc37 bl 801806c + 80187fe: 4603 mov r3, r0 + 8018800: 2b00 cmp r3, #0 + 8018802: d002 beq.n 801880a return ERR_MEM; - 80187f4: f04f 33ff mov.w r3, #4294967295 - 80187f8: e020 b.n 801883c + 8018804: f04f 33ff mov.w r3, #4294967295 + 8018808: e020 b.n 801884c } dhcp->pcb_allocated = 1; - 80187fa: 68fb ldr r3, [r7, #12] - 80187fc: 2201 movs r2, #1 - 80187fe: 711a strb r2, [r3, #4] + 801880a: 68fb ldr r3, [r7, #12] + 801880c: 2201 movs r2, #1 + 801880e: 711a strb r2, [r3, #4] if (!netif_is_link_up(netif)) { - 8018800: 687b ldr r3, [r7, #4] - 8018802: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8018806: f003 0304 and.w r3, r3, #4 - 801880a: 2b00 cmp r3, #0 - 801880c: d105 bne.n 801881a + 8018810: 687b ldr r3, [r7, #4] + 8018812: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8018816: f003 0304 and.w r3, r3, #4 + 801881a: 2b00 cmp r3, #0 + 801881c: d105 bne.n 801882a /* set state INIT and wait for dhcp_network_changed() to call dhcp_discover() */ dhcp_set_state(dhcp, DHCP_STATE_INIT); - 801880e: 2102 movs r1, #2 - 8018810: 68f8 ldr r0, [r7, #12] - 8018812: f000 fd13 bl 801923c + 801881e: 2102 movs r1, #2 + 8018820: 68f8 ldr r0, [r7, #12] + 8018822: f000 fd13 bl 801924c return ERR_OK; - 8018816: 2300 movs r3, #0 - 8018818: e010 b.n 801883c + 8018826: 2300 movs r3, #0 + 8018828: e010 b.n 801884c } /* (re)start the DHCP negotiation */ result = dhcp_discover(netif); - 801881a: 6878 ldr r0, [r7, #4] - 801881c: f000 f90a bl 8018a34 - 8018820: 4603 mov r3, r0 - 8018822: 72fb strb r3, [r7, #11] + 801882a: 6878 ldr r0, [r7, #4] + 801882c: f000 f90a bl 8018a44 + 8018830: 4603 mov r3, r0 + 8018832: 72fb strb r3, [r7, #11] if (result != ERR_OK) { - 8018824: f997 300b ldrsb.w r3, [r7, #11] - 8018828: 2b00 cmp r3, #0 - 801882a: d005 beq.n 8018838 + 8018834: f997 300b ldrsb.w r3, [r7, #11] + 8018838: 2b00 cmp r3, #0 + 801883a: d005 beq.n 8018848 /* free resources allocated above */ dhcp_release_and_stop(netif); - 801882c: 6878 ldr r0, [r7, #4] - 801882e: f000 fc6b bl 8019108 + 801883c: 6878 ldr r0, [r7, #4] + 801883e: f000 fc6b bl 8019118 return ERR_MEM; - 8018832: f04f 33ff mov.w r3, #4294967295 - 8018836: e001 b.n 801883c + 8018842: f04f 33ff mov.w r3, #4294967295 + 8018846: e001 b.n 801884c } return result; - 8018838: f997 300b ldrsb.w r3, [r7, #11] -} - 801883c: 4618 mov r0, r3 - 801883e: 3710 adds r7, #16 - 8018840: 46bd mov sp, r7 - 8018842: bd80 pop {r7, pc} - 8018844: 0801fd28 .word 0x0801fd28 - 8018848: 0801fe0c .word 0x0801fe0c - 801884c: 0801fd88 .word 0x0801fd88 - 8018850: 0801fe50 .word 0x0801fe50 - -08018854 : + 8018848: f997 300b ldrsb.w r3, [r7, #11] +} + 801884c: 4618 mov r0, r3 + 801884e: 3710 adds r7, #16 + 8018850: 46bd mov sp, r7 + 8018852: bd80 pop {r7, pc} + 8018854: 0801fd38 .word 0x0801fd38 + 8018858: 0801fe1c .word 0x0801fe1c + 801885c: 0801fd98 .word 0x0801fd98 + 8018860: 0801fe60 .word 0x0801fe60 + +08018864 : * This enters the REBOOTING state to verify that the currently bound * address is still valid. */ void dhcp_network_changed(struct netif *netif) { - 8018854: b580 push {r7, lr} - 8018856: b084 sub sp, #16 - 8018858: af00 add r7, sp, #0 - 801885a: 6078 str r0, [r7, #4] + 8018864: b580 push {r7, lr} + 8018866: b084 sub sp, #16 + 8018868: af00 add r7, sp, #0 + 801886a: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 801885c: 687b ldr r3, [r7, #4] - 801885e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018860: 60fb str r3, [r7, #12] + 801886c: 687b ldr r3, [r7, #4] + 801886e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018870: 60fb str r3, [r7, #12] if (!dhcp) { - 8018862: 68fb ldr r3, [r7, #12] - 8018864: 2b00 cmp r3, #0 - 8018866: d037 beq.n 80188d8 + 8018872: 68fb ldr r3, [r7, #12] + 8018874: 2b00 cmp r3, #0 + 8018876: d037 beq.n 80188e8 return; } switch (dhcp->state) { - 8018868: 68fb ldr r3, [r7, #12] - 801886a: 795b ldrb r3, [r3, #5] - 801886c: 2b0a cmp r3, #10 - 801886e: d820 bhi.n 80188b2 - 8018870: a201 add r2, pc, #4 ; (adr r2, 8018878 ) - 8018872: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8018876: bf00 nop - 8018878: 080188dd .word 0x080188dd - 801887c: 080188b3 .word 0x080188b3 - 8018880: 080188b3 .word 0x080188b3 - 8018884: 080188a5 .word 0x080188a5 - 8018888: 080188a5 .word 0x080188a5 - 801888c: 080188a5 .word 0x080188a5 - 8018890: 080188b3 .word 0x080188b3 - 8018894: 080188b3 .word 0x080188b3 - 8018898: 080188b3 .word 0x080188b3 - 801889c: 080188b3 .word 0x080188b3 - 80188a0: 080188a5 .word 0x080188a5 + 8018878: 68fb ldr r3, [r7, #12] + 801887a: 795b ldrb r3, [r3, #5] + 801887c: 2b0a cmp r3, #10 + 801887e: d820 bhi.n 80188c2 + 8018880: a201 add r2, pc, #4 ; (adr r2, 8018888 ) + 8018882: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8018886: bf00 nop + 8018888: 080188ed .word 0x080188ed + 801888c: 080188c3 .word 0x080188c3 + 8018890: 080188c3 .word 0x080188c3 + 8018894: 080188b5 .word 0x080188b5 + 8018898: 080188b5 .word 0x080188b5 + 801889c: 080188b5 .word 0x080188b5 + 80188a0: 080188c3 .word 0x080188c3 + 80188a4: 080188c3 .word 0x080188c3 + 80188a8: 080188c3 .word 0x080188c3 + 80188ac: 080188c3 .word 0x080188c3 + 80188b0: 080188b5 .word 0x080188b5 case DHCP_STATE_REBINDING: case DHCP_STATE_RENEWING: case DHCP_STATE_BOUND: case DHCP_STATE_REBOOTING: dhcp->tries = 0; - 80188a4: 68fb ldr r3, [r7, #12] - 80188a6: 2200 movs r2, #0 - 80188a8: 719a strb r2, [r3, #6] + 80188b4: 68fb ldr r3, [r7, #12] + 80188b6: 2200 movs r2, #0 + 80188b8: 719a strb r2, [r3, #6] dhcp_reboot(netif); - 80188aa: 6878 ldr r0, [r7, #4] - 80188ac: f000 fb76 bl 8018f9c + 80188ba: 6878 ldr r0, [r7, #4] + 80188bc: f000 fb76 bl 8018fac break; - 80188b0: e015 b.n 80188de + 80188c0: e015 b.n 80188ee case DHCP_STATE_OFF: /* stay off */ break; default: LWIP_ASSERT("invalid dhcp->state", dhcp->state <= DHCP_STATE_BACKING_OFF); - 80188b2: 68fb ldr r3, [r7, #12] - 80188b4: 795b ldrb r3, [r3, #5] - 80188b6: 2b0c cmp r3, #12 - 80188b8: d906 bls.n 80188c8 - 80188ba: 4b0a ldr r3, [pc, #40] ; (80188e4 ) - 80188bc: f240 326d movw r2, #877 ; 0x36d - 80188c0: 4909 ldr r1, [pc, #36] ; (80188e8 ) - 80188c2: 480a ldr r0, [pc, #40] ; (80188ec ) - 80188c4: f003 fec0 bl 801c648 + 80188c2: 68fb ldr r3, [r7, #12] + 80188c4: 795b ldrb r3, [r3, #5] + 80188c6: 2b0c cmp r3, #12 + 80188c8: d906 bls.n 80188d8 + 80188ca: 4b0a ldr r3, [pc, #40] ; (80188f4 ) + 80188cc: f240 326d movw r2, #877 ; 0x36d + 80188d0: 4909 ldr r1, [pc, #36] ; (80188f8 ) + 80188d2: 480a ldr r0, [pc, #40] ; (80188fc ) + 80188d4: f003 fec0 bl 801c658 autoip_stop(netif); dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF; } #endif /* LWIP_DHCP_AUTOIP_COOP */ /* ensure we start with short timeouts, even if already discovering */ dhcp->tries = 0; - 80188c8: 68fb ldr r3, [r7, #12] - 80188ca: 2200 movs r2, #0 - 80188cc: 719a strb r2, [r3, #6] + 80188d8: 68fb ldr r3, [r7, #12] + 80188da: 2200 movs r2, #0 + 80188dc: 719a strb r2, [r3, #6] dhcp_discover(netif); - 80188ce: 6878 ldr r0, [r7, #4] - 80188d0: f000 f8b0 bl 8018a34 + 80188de: 6878 ldr r0, [r7, #4] + 80188e0: f000 f8b0 bl 8018a44 break; - 80188d4: bf00 nop - 80188d6: e002 b.n 80188de + 80188e4: bf00 nop + 80188e6: e002 b.n 80188ee return; - 80188d8: bf00 nop - 80188da: e000 b.n 80188de + 80188e8: bf00 nop + 80188ea: e000 b.n 80188ee break; - 80188dc: bf00 nop + 80188ec: bf00 nop } } - 80188de: 3710 adds r7, #16 - 80188e0: 46bd mov sp, r7 - 80188e2: bd80 pop {r7, pc} - 80188e4: 0801fd28 .word 0x0801fd28 - 80188e8: 0801fe74 .word 0x0801fe74 - 80188ec: 0801fd88 .word 0x0801fd88 + 80188ee: 3710 adds r7, #16 + 80188f0: 46bd mov sp, r7 + 80188f2: bd80 pop {r7, pc} + 80188f4: 0801fd38 .word 0x0801fd38 + 80188f8: 0801fe84 .word 0x0801fe84 + 80188fc: 0801fd98 .word 0x0801fd98 -080188f0 : +08018900 : * @param netif the network interface on which the reply was received * @param addr The IP address we received a reply from */ void dhcp_arp_reply(struct netif *netif, const ip4_addr_t *addr) { - 80188f0: b580 push {r7, lr} - 80188f2: b084 sub sp, #16 - 80188f4: af00 add r7, sp, #0 - 80188f6: 6078 str r0, [r7, #4] - 80188f8: 6039 str r1, [r7, #0] + 8018900: b580 push {r7, lr} + 8018902: b084 sub sp, #16 + 8018904: af00 add r7, sp, #0 + 8018906: 6078 str r0, [r7, #4] + 8018908: 6039 str r1, [r7, #0] struct dhcp *dhcp; LWIP_ERROR("netif != NULL", (netif != NULL), return;); - 80188fa: 687b ldr r3, [r7, #4] - 80188fc: 2b00 cmp r3, #0 - 80188fe: d107 bne.n 8018910 - 8018900: 4b0e ldr r3, [pc, #56] ; (801893c ) - 8018902: f240 328b movw r2, #907 ; 0x38b - 8018906: 490e ldr r1, [pc, #56] ; (8018940 ) - 8018908: 480e ldr r0, [pc, #56] ; (8018944 ) - 801890a: f003 fe9d bl 801c648 - 801890e: e012 b.n 8018936 + 801890a: 687b ldr r3, [r7, #4] + 801890c: 2b00 cmp r3, #0 + 801890e: d107 bne.n 8018920 + 8018910: 4b0e ldr r3, [pc, #56] ; (801894c ) + 8018912: f240 328b movw r2, #907 ; 0x38b + 8018916: 490e ldr r1, [pc, #56] ; (8018950 ) + 8018918: 480e ldr r0, [pc, #56] ; (8018954 ) + 801891a: f003 fe9d bl 801c658 + 801891e: e012 b.n 8018946 dhcp = netif_dhcp_data(netif); - 8018910: 687b ldr r3, [r7, #4] - 8018912: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018914: 60fb str r3, [r7, #12] + 8018920: 687b ldr r3, [r7, #4] + 8018922: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018924: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_arp_reply()\n")); /* is a DHCP client doing an ARP check? */ if ((dhcp != NULL) && (dhcp->state == DHCP_STATE_CHECKING)) { - 8018916: 68fb ldr r3, [r7, #12] - 8018918: 2b00 cmp r3, #0 - 801891a: d00c beq.n 8018936 - 801891c: 68fb ldr r3, [r7, #12] - 801891e: 795b ldrb r3, [r3, #5] - 8018920: 2b08 cmp r3, #8 - 8018922: d108 bne.n 8018936 + 8018926: 68fb ldr r3, [r7, #12] + 8018928: 2b00 cmp r3, #0 + 801892a: d00c beq.n 8018946 + 801892c: 68fb ldr r3, [r7, #12] + 801892e: 795b ldrb r3, [r3, #5] + 8018930: 2b08 cmp r3, #8 + 8018932: d108 bne.n 8018946 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_arp_reply(): CHECKING, arp reply for 0x%08"X32_F"\n", ip4_addr_get_u32(addr))); /* did a host respond with the address we were offered by the DHCP server? */ if (ip4_addr_cmp(addr, &dhcp->offered_ip_addr)) { - 8018924: 683b ldr r3, [r7, #0] - 8018926: 681a ldr r2, [r3, #0] - 8018928: 68fb ldr r3, [r7, #12] - 801892a: 69db ldr r3, [r3, #28] - 801892c: 429a cmp r2, r3 - 801892e: d102 bne.n 8018936 + 8018934: 683b ldr r3, [r7, #0] + 8018936: 681a ldr r2, [r3, #0] + 8018938: 68fb ldr r3, [r7, #12] + 801893a: 69db ldr r3, [r3, #28] + 801893c: 429a cmp r2, r3 + 801893e: d102 bne.n 8018946 /* we will not accept the offered address */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE | LWIP_DBG_LEVEL_WARNING, ("dhcp_arp_reply(): arp reply matched with offered address, declining\n")); dhcp_decline(netif); - 8018930: 6878 ldr r0, [r7, #4] - 8018932: f000 f809 bl 8018948 + 8018940: 6878 ldr r0, [r7, #4] + 8018942: f000 f809 bl 8018958 } } } - 8018936: 3710 adds r7, #16 - 8018938: 46bd mov sp, r7 - 801893a: bd80 pop {r7, pc} - 801893c: 0801fd28 .word 0x0801fd28 - 8018940: 0801fe0c .word 0x0801fe0c - 8018944: 0801fd88 .word 0x0801fd88 + 8018946: 3710 adds r7, #16 + 8018948: 46bd mov sp, r7 + 801894a: bd80 pop {r7, pc} + 801894c: 0801fd38 .word 0x0801fd38 + 8018950: 0801fe1c .word 0x0801fe1c + 8018954: 0801fd98 .word 0x0801fd98 -08018948 : +08018958 : * * @param netif the netif under DHCP control */ static err_t dhcp_decline(struct netif *netif) { - 8018948: b5b0 push {r4, r5, r7, lr} - 801894a: b08a sub sp, #40 ; 0x28 - 801894c: af02 add r7, sp, #8 - 801894e: 6078 str r0, [r7, #4] + 8018958: b5b0 push {r4, r5, r7, lr} + 801895a: b08a sub sp, #40 ; 0x28 + 801895c: af02 add r7, sp, #8 + 801895e: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8018950: 687b ldr r3, [r7, #4] - 8018952: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018954: 61bb str r3, [r7, #24] + 8018960: 687b ldr r3, [r7, #4] + 8018962: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018964: 61bb str r3, [r7, #24] u16_t msecs; struct pbuf *p_out; u16_t options_out_len; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline()\n")); dhcp_set_state(dhcp, DHCP_STATE_BACKING_OFF); - 8018956: 210c movs r1, #12 - 8018958: 69b8 ldr r0, [r7, #24] - 801895a: f000 fc6f bl 801923c + 8018966: 210c movs r1, #12 + 8018968: 69b8 ldr r0, [r7, #24] + 801896a: f000 fc6f bl 801924c /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_DECLINE, &options_out_len); - 801895e: f107 030c add.w r3, r7, #12 - 8018962: 2204 movs r2, #4 - 8018964: 69b9 ldr r1, [r7, #24] - 8018966: 6878 ldr r0, [r7, #4] - 8018968: f001 f8f2 bl 8019b50 - 801896c: 6178 str r0, [r7, #20] + 801896e: f107 030c add.w r3, r7, #12 + 8018972: 2204 movs r2, #4 + 8018974: 69b9 ldr r1, [r7, #24] + 8018976: 6878 ldr r0, [r7, #4] + 8018978: f001 f8f2 bl 8019b60 + 801897c: 6178 str r0, [r7, #20] if (p_out != NULL) { - 801896e: 697b ldr r3, [r7, #20] - 8018970: 2b00 cmp r3, #0 - 8018972: d035 beq.n 80189e0 + 801897e: 697b ldr r3, [r7, #20] + 8018980: 2b00 cmp r3, #0 + 8018982: d035 beq.n 80189f0 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 8018974: 697b ldr r3, [r7, #20] - 8018976: 685b ldr r3, [r3, #4] - 8018978: 613b str r3, [r7, #16] + 8018984: 697b ldr r3, [r7, #20] + 8018986: 685b ldr r3, [r3, #4] + 8018988: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - 801897a: 89b8 ldrh r0, [r7, #12] - 801897c: 693b ldr r3, [r7, #16] - 801897e: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018982: 2304 movs r3, #4 - 8018984: 2232 movs r2, #50 ; 0x32 - 8018986: f000 fc73 bl 8019270 - 801898a: 4603 mov r3, r0 - 801898c: 81bb strh r3, [r7, #12] + 801898a: 89b8 ldrh r0, [r7, #12] + 801898c: 693b ldr r3, [r7, #16] + 801898e: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018992: 2304 movs r3, #4 + 8018994: 2232 movs r2, #50 ; 0x32 + 8018996: f000 fc73 bl 8019280 + 801899a: 4603 mov r3, r0 + 801899c: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - 801898e: 89bc ldrh r4, [r7, #12] - 8018990: 693b ldr r3, [r7, #16] - 8018992: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 8018996: 69bb ldr r3, [r7, #24] - 8018998: 69db ldr r3, [r3, #28] - 801899a: 4618 mov r0, r3 - 801899c: f7f7 fd85 bl 80104aa - 80189a0: 4603 mov r3, r0 - 80189a2: 461a mov r2, r3 - 80189a4: 4629 mov r1, r5 - 80189a6: 4620 mov r0, r4 - 80189a8: f000 fcee bl 8019388 - 80189ac: 4603 mov r3, r0 - 80189ae: 81bb strh r3, [r7, #12] + 801899e: 89bc ldrh r4, [r7, #12] + 80189a0: 693b ldr r3, [r7, #16] + 80189a2: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 80189a6: 69bb ldr r3, [r7, #24] + 80189a8: 69db ldr r3, [r3, #28] + 80189aa: 4618 mov r0, r3 + 80189ac: f7f7 fd85 bl 80104ba + 80189b0: 4603 mov r3, r0 + 80189b2: 461a mov r2, r3 + 80189b4: 4629 mov r1, r5 + 80189b6: 4620 mov r0, r4 + 80189b8: f000 fcee bl 8019398 + 80189bc: 4603 mov r3, r0 + 80189be: 81bb strh r3, [r7, #12] LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_BACKING_OFF, msg_out, DHCP_DECLINE, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 80189b0: 89b8 ldrh r0, [r7, #12] - 80189b2: 693b ldr r3, [r7, #16] - 80189b4: 33f0 adds r3, #240 ; 0xf0 - 80189b6: 697a ldr r2, [r7, #20] - 80189b8: 4619 mov r1, r3 - 80189ba: f001 f99f bl 8019cfc + 80189c0: 89b8 ldrh r0, [r7, #12] + 80189c2: 693b ldr r3, [r7, #16] + 80189c4: 33f0 adds r3, #240 ; 0xf0 + 80189c6: 697a ldr r2, [r7, #20] + 80189c8: 4619 mov r1, r3 + 80189ca: f001 f99f bl 8019d0c /* per section 4.4.4, broadcast DECLINE messages */ result = udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY); - 80189be: 4b19 ldr r3, [pc, #100] ; (8018a24 ) - 80189c0: 6818 ldr r0, [r3, #0] - 80189c2: 4b19 ldr r3, [pc, #100] ; (8018a28 ) - 80189c4: 9301 str r3, [sp, #4] - 80189c6: 687b ldr r3, [r7, #4] - 80189c8: 9300 str r3, [sp, #0] - 80189ca: 2343 movs r3, #67 ; 0x43 - 80189cc: 4a17 ldr r2, [pc, #92] ; (8018a2c ) - 80189ce: 6979 ldr r1, [r7, #20] - 80189d0: f7ff f8be bl 8017b50 - 80189d4: 4603 mov r3, r0 - 80189d6: 77fb strb r3, [r7, #31] + 80189ce: 4b19 ldr r3, [pc, #100] ; (8018a34 ) + 80189d0: 6818 ldr r0, [r3, #0] + 80189d2: 4b19 ldr r3, [pc, #100] ; (8018a38 ) + 80189d4: 9301 str r3, [sp, #4] + 80189d6: 687b ldr r3, [r7, #4] + 80189d8: 9300 str r3, [sp, #0] + 80189da: 2343 movs r3, #67 ; 0x43 + 80189dc: 4a17 ldr r2, [pc, #92] ; (8018a3c ) + 80189de: 6979 ldr r1, [r7, #20] + 80189e0: f7ff f8be bl 8017b60 + 80189e4: 4603 mov r3, r0 + 80189e6: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 80189d8: 6978 ldr r0, [r7, #20] - 80189da: f7f9 f905 bl 8011be8 - 80189de: e001 b.n 80189e4 + 80189e8: 6978 ldr r0, [r7, #20] + 80189ea: f7f9 f905 bl 8011bf8 + 80189ee: e001 b.n 80189f4 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_decline: BACKING OFF\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_decline: could not allocate DHCP request\n")); result = ERR_MEM; - 80189e0: 23ff movs r3, #255 ; 0xff - 80189e2: 77fb strb r3, [r7, #31] + 80189f0: 23ff movs r3, #255 ; 0xff + 80189f2: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 80189e4: 69bb ldr r3, [r7, #24] - 80189e6: 799b ldrb r3, [r3, #6] - 80189e8: 2bff cmp r3, #255 ; 0xff - 80189ea: d005 beq.n 80189f8 - dhcp->tries++; - 80189ec: 69bb ldr r3, [r7, #24] - 80189ee: 799b ldrb r3, [r3, #6] - 80189f0: 3301 adds r3, #1 - 80189f2: b2da uxtb r2, r3 80189f4: 69bb ldr r3, [r7, #24] - 80189f6: 719a strb r2, [r3, #6] + 80189f6: 799b ldrb r3, [r3, #6] + 80189f8: 2bff cmp r3, #255 ; 0xff + 80189fa: d005 beq.n 8018a08 + dhcp->tries++; + 80189fc: 69bb ldr r3, [r7, #24] + 80189fe: 799b ldrb r3, [r3, #6] + 8018a00: 3301 adds r3, #1 + 8018a02: b2da uxtb r2, r3 + 8018a04: 69bb ldr r3, [r7, #24] + 8018a06: 719a strb r2, [r3, #6] } msecs = 10 * 1000; - 80189f8: f242 7310 movw r3, #10000 ; 0x2710 - 80189fc: 81fb strh r3, [r7, #14] + 8018a08: f242 7310 movw r3, #10000 ; 0x2710 + 8018a0c: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 80189fe: 89fb ldrh r3, [r7, #14] - 8018a00: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 8018a04: 4a0a ldr r2, [pc, #40] ; (8018a30 ) - 8018a06: fb82 1203 smull r1, r2, r2, r3 - 8018a0a: 1152 asrs r2, r2, #5 - 8018a0c: 17db asrs r3, r3, #31 - 8018a0e: 1ad3 subs r3, r2, r3 - 8018a10: b29a uxth r2, r3 - 8018a12: 69bb ldr r3, [r7, #24] - 8018a14: 811a strh r2, [r3, #8] + 8018a0e: 89fb ldrh r3, [r7, #14] + 8018a10: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 8018a14: 4a0a ldr r2, [pc, #40] ; (8018a40 ) + 8018a16: fb82 1203 smull r1, r2, r2, r3 + 8018a1a: 1152 asrs r2, r2, #5 + 8018a1c: 17db asrs r3, r3, #31 + 8018a1e: 1ad3 subs r3, r2, r3 + 8018a20: b29a uxth r2, r3 + 8018a22: 69bb ldr r3, [r7, #24] + 8018a24: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_decline(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 8018a16: f997 301f ldrsb.w r3, [r7, #31] -} - 8018a1a: 4618 mov r0, r3 - 8018a1c: 3720 adds r7, #32 - 8018a1e: 46bd mov sp, r7 - 8018a20: bdb0 pop {r4, r5, r7, pc} - 8018a22: bf00 nop - 8018a24: 20008760 .word 0x20008760 - 8018a28: 080227f8 .word 0x080227f8 - 8018a2c: 080227fc .word 0x080227fc - 8018a30: 10624dd3 .word 0x10624dd3 - -08018a34 : + 8018a26: f997 301f ldrsb.w r3, [r7, #31] +} + 8018a2a: 4618 mov r0, r3 + 8018a2c: 3720 adds r7, #32 + 8018a2e: 46bd mov sp, r7 + 8018a30: bdb0 pop {r4, r5, r7, pc} + 8018a32: bf00 nop + 8018a34: 20008760 .word 0x20008760 + 8018a38: 08022808 .word 0x08022808 + 8018a3c: 0802280c .word 0x0802280c + 8018a40: 10624dd3 .word 0x10624dd3 + +08018a44 : * * @param netif the netif under DHCP control */ static err_t dhcp_discover(struct netif *netif) { - 8018a34: b580 push {r7, lr} - 8018a36: b08a sub sp, #40 ; 0x28 - 8018a38: af02 add r7, sp, #8 - 8018a3a: 6078 str r0, [r7, #4] + 8018a44: b580 push {r7, lr} + 8018a46: b08a sub sp, #40 ; 0x28 + 8018a48: af02 add r7, sp, #8 + 8018a4a: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8018a3c: 687b ldr r3, [r7, #4] - 8018a3e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018a40: 61bb str r3, [r7, #24] + 8018a4c: 687b ldr r3, [r7, #4] + 8018a4e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018a50: 61bb str r3, [r7, #24] err_t result = ERR_OK; - 8018a42: 2300 movs r3, #0 - 8018a44: 75fb strb r3, [r7, #23] + 8018a52: 2300 movs r3, #0 + 8018a54: 75fb strb r3, [r7, #23] struct pbuf *p_out; u16_t options_out_len; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover()\n")); ip4_addr_set_any(&dhcp->offered_ip_addr); - 8018a46: 69bb ldr r3, [r7, #24] - 8018a48: 2200 movs r2, #0 - 8018a4a: 61da str r2, [r3, #28] + 8018a56: 69bb ldr r3, [r7, #24] + 8018a58: 2200 movs r2, #0 + 8018a5a: 61da str r2, [r3, #28] dhcp_set_state(dhcp, DHCP_STATE_SELECTING); - 8018a4c: 2106 movs r1, #6 - 8018a4e: 69b8 ldr r0, [r7, #24] - 8018a50: f000 fbf4 bl 801923c + 8018a5c: 2106 movs r1, #6 + 8018a5e: 69b8 ldr r0, [r7, #24] + 8018a60: f000 fbf4 bl 801924c /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_DISCOVER, &options_out_len); - 8018a54: f107 0308 add.w r3, r7, #8 - 8018a58: 2201 movs r2, #1 - 8018a5a: 69b9 ldr r1, [r7, #24] - 8018a5c: 6878 ldr r0, [r7, #4] - 8018a5e: f001 f877 bl 8019b50 - 8018a62: 6138 str r0, [r7, #16] + 8018a64: f107 0308 add.w r3, r7, #8 + 8018a68: 2201 movs r2, #1 + 8018a6a: 69b9 ldr r1, [r7, #24] + 8018a6c: 6878 ldr r0, [r7, #4] + 8018a6e: f001 f877 bl 8019b60 + 8018a72: 6138 str r0, [r7, #16] if (p_out != NULL) { - 8018a64: 693b ldr r3, [r7, #16] - 8018a66: 2b00 cmp r3, #0 - 8018a68: d04b beq.n 8018b02 + 8018a74: 693b ldr r3, [r7, #16] + 8018a76: 2b00 cmp r3, #0 + 8018a78: d04b beq.n 8018b12 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 8018a6a: 693b ldr r3, [r7, #16] - 8018a6c: 685b ldr r3, [r3, #4] - 8018a6e: 60fb str r3, [r7, #12] + 8018a7a: 693b ldr r3, [r7, #16] + 8018a7c: 685b ldr r3, [r3, #4] + 8018a7e: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: making request\n")); options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 8018a70: 8938 ldrh r0, [r7, #8] - 8018a72: 68fb ldr r3, [r7, #12] - 8018a74: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018a78: 2302 movs r3, #2 - 8018a7a: 2239 movs r2, #57 ; 0x39 - 8018a7c: f000 fbf8 bl 8019270 - 8018a80: 4603 mov r3, r0 - 8018a82: 813b strh r3, [r7, #8] + 8018a80: 8938 ldrh r0, [r7, #8] + 8018a82: 68fb ldr r3, [r7, #12] + 8018a84: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018a88: 2302 movs r3, #2 + 8018a8a: 2239 movs r2, #57 ; 0x39 + 8018a8c: f000 fbf8 bl 8019280 + 8018a90: 4603 mov r3, r0 + 8018a92: 813b strh r3, [r7, #8] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - 8018a84: 8938 ldrh r0, [r7, #8] - 8018a86: 68fb ldr r3, [r7, #12] - 8018a88: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018a8c: 687b ldr r3, [r7, #4] - 8018a8e: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8018a90: 461a mov r2, r3 - 8018a92: f000 fc47 bl 8019324 - 8018a96: 4603 mov r3, r0 - 8018a98: 813b strh r3, [r7, #8] + 8018a94: 8938 ldrh r0, [r7, #8] + 8018a96: 68fb ldr r3, [r7, #12] + 8018a98: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018a9c: 687b ldr r3, [r7, #4] + 8018a9e: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8018aa0: 461a mov r2, r3 + 8018aa2: f000 fc47 bl 8019334 + 8018aa6: 4603 mov r3, r0 + 8018aa8: 813b strh r3, [r7, #8] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 8018a9a: 8938 ldrh r0, [r7, #8] - 8018a9c: 68fb ldr r3, [r7, #12] - 8018a9e: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018aa2: 2303 movs r3, #3 - 8018aa4: 2237 movs r2, #55 ; 0x37 - 8018aa6: f000 fbe3 bl 8019270 - 8018aaa: 4603 mov r3, r0 - 8018aac: 813b strh r3, [r7, #8] + 8018aaa: 8938 ldrh r0, [r7, #8] + 8018aac: 68fb ldr r3, [r7, #12] + 8018aae: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018ab2: 2303 movs r3, #3 + 8018ab4: 2237 movs r2, #55 ; 0x37 + 8018ab6: f000 fbe3 bl 8019280 + 8018aba: 4603 mov r3, r0 + 8018abc: 813b strh r3, [r7, #8] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 8018aae: 2300 movs r3, #0 - 8018ab0: 77fb strb r3, [r7, #31] - 8018ab2: e00e b.n 8018ad2 + 8018abe: 2300 movs r3, #0 + 8018ac0: 77fb strb r3, [r7, #31] + 8018ac2: e00e b.n 8018ae2 options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 8018ab4: 8938 ldrh r0, [r7, #8] - 8018ab6: 68fb ldr r3, [r7, #12] - 8018ab8: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018abc: 7ffb ldrb r3, [r7, #31] - 8018abe: 4a29 ldr r2, [pc, #164] ; (8018b64 ) - 8018ac0: 5cd3 ldrb r3, [r2, r3] - 8018ac2: 461a mov r2, r3 - 8018ac4: f000 fc08 bl 80192d8 - 8018ac8: 4603 mov r3, r0 - 8018aca: 813b strh r3, [r7, #8] - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 8018ac4: 8938 ldrh r0, [r7, #8] + 8018ac6: 68fb ldr r3, [r7, #12] + 8018ac8: f103 01f0 add.w r1, r3, #240 ; 0xf0 8018acc: 7ffb ldrb r3, [r7, #31] - 8018ace: 3301 adds r3, #1 - 8018ad0: 77fb strb r3, [r7, #31] - 8018ad2: 7ffb ldrb r3, [r7, #31] - 8018ad4: 2b02 cmp r3, #2 - 8018ad6: d9ed bls.n 8018ab4 + 8018ace: 4a29 ldr r2, [pc, #164] ; (8018b74 ) + 8018ad0: 5cd3 ldrb r3, [r2, r3] + 8018ad2: 461a mov r2, r3 + 8018ad4: f000 fc08 bl 80192e8 + 8018ad8: 4603 mov r3, r0 + 8018ada: 813b strh r3, [r7, #8] + for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 8018adc: 7ffb ldrb r3, [r7, #31] + 8018ade: 3301 adds r3, #1 + 8018ae0: 77fb strb r3, [r7, #31] + 8018ae2: 7ffb ldrb r3, [r7, #31] + 8018ae4: 2b02 cmp r3, #2 + 8018ae6: d9ed bls.n 8018ac4 } LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_SELECTING, msg_out, DHCP_DISCOVER, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 8018ad8: 8938 ldrh r0, [r7, #8] - 8018ada: 68fb ldr r3, [r7, #12] - 8018adc: 33f0 adds r3, #240 ; 0xf0 - 8018ade: 693a ldr r2, [r7, #16] - 8018ae0: 4619 mov r1, r3 - 8018ae2: f001 f90b bl 8019cfc + 8018ae8: 8938 ldrh r0, [r7, #8] + 8018aea: 68fb ldr r3, [r7, #12] + 8018aec: 33f0 adds r3, #240 ; 0xf0 + 8018aee: 693a ldr r2, [r7, #16] + 8018af0: 4619 mov r1, r3 + 8018af2: f001 f90b bl 8019d0c LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER)\n")); udp_sendto_if_src(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif, IP4_ADDR_ANY); - 8018ae6: 4b20 ldr r3, [pc, #128] ; (8018b68 ) - 8018ae8: 6818 ldr r0, [r3, #0] - 8018aea: 4b20 ldr r3, [pc, #128] ; (8018b6c ) - 8018aec: 9301 str r3, [sp, #4] - 8018aee: 687b ldr r3, [r7, #4] - 8018af0: 9300 str r3, [sp, #0] - 8018af2: 2343 movs r3, #67 ; 0x43 - 8018af4: 4a1e ldr r2, [pc, #120] ; (8018b70 ) - 8018af6: 6939 ldr r1, [r7, #16] - 8018af8: f7ff f82a bl 8017b50 + 8018af6: 4b20 ldr r3, [pc, #128] ; (8018b78 ) + 8018af8: 6818 ldr r0, [r3, #0] + 8018afa: 4b20 ldr r3, [pc, #128] ; (8018b7c ) + 8018afc: 9301 str r3, [sp, #4] + 8018afe: 687b ldr r3, [r7, #4] + 8018b00: 9300 str r3, [sp, #0] + 8018b02: 2343 movs r3, #67 ; 0x43 + 8018b04: 4a1e ldr r2, [pc, #120] ; (8018b80 ) + 8018b06: 6939 ldr r1, [r7, #16] + 8018b08: f7ff f82a bl 8017b60 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_discover: deleting()ing\n")); pbuf_free(p_out); - 8018afc: 6938 ldr r0, [r7, #16] - 8018afe: f7f9 f873 bl 8011be8 + 8018b0c: 6938 ldr r0, [r7, #16] + 8018b0e: f7f9 f873 bl 8011bf8 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover: SELECTING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_discover: could not allocate DHCP request\n")); } if (dhcp->tries < 255) { - 8018b02: 69bb ldr r3, [r7, #24] - 8018b04: 799b ldrb r3, [r3, #6] - 8018b06: 2bff cmp r3, #255 ; 0xff - 8018b08: d005 beq.n 8018b16 - dhcp->tries++; - 8018b0a: 69bb ldr r3, [r7, #24] - 8018b0c: 799b ldrb r3, [r3, #6] - 8018b0e: 3301 adds r3, #1 - 8018b10: b2da uxtb r2, r3 8018b12: 69bb ldr r3, [r7, #24] - 8018b14: 719a strb r2, [r3, #6] + 8018b14: 799b ldrb r3, [r3, #6] + 8018b16: 2bff cmp r3, #255 ; 0xff + 8018b18: d005 beq.n 8018b26 + dhcp->tries++; + 8018b1a: 69bb ldr r3, [r7, #24] + 8018b1c: 799b ldrb r3, [r3, #6] + 8018b1e: 3301 adds r3, #1 + 8018b20: b2da uxtb r2, r3 + 8018b22: 69bb ldr r3, [r7, #24] + 8018b24: 719a strb r2, [r3, #6] if (dhcp->tries >= LWIP_DHCP_AUTOIP_COOP_TRIES && dhcp->autoip_coop_state == DHCP_AUTOIP_COOP_STATE_OFF) { dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_ON; autoip_start(netif); } #endif /* LWIP_DHCP_AUTOIP_COOP */ msecs = (u16_t)((dhcp->tries < 6 ? 1 << dhcp->tries : 60) * 1000); - 8018b16: 69bb ldr r3, [r7, #24] - 8018b18: 799b ldrb r3, [r3, #6] - 8018b1a: 2b05 cmp r3, #5 - 8018b1c: d80d bhi.n 8018b3a - 8018b1e: 69bb ldr r3, [r7, #24] - 8018b20: 799b ldrb r3, [r3, #6] - 8018b22: 461a mov r2, r3 - 8018b24: 2301 movs r3, #1 - 8018b26: 4093 lsls r3, r2 - 8018b28: b29b uxth r3, r3 - 8018b2a: 461a mov r2, r3 - 8018b2c: 0152 lsls r2, r2, #5 - 8018b2e: 1ad2 subs r2, r2, r3 - 8018b30: 0092 lsls r2, r2, #2 - 8018b32: 4413 add r3, r2 - 8018b34: 00db lsls r3, r3, #3 - 8018b36: b29b uxth r3, r3 - 8018b38: e001 b.n 8018b3e - 8018b3a: f64e 2360 movw r3, #60000 ; 0xea60 - 8018b3e: 817b strh r3, [r7, #10] + 8018b26: 69bb ldr r3, [r7, #24] + 8018b28: 799b ldrb r3, [r3, #6] + 8018b2a: 2b05 cmp r3, #5 + 8018b2c: d80d bhi.n 8018b4a + 8018b2e: 69bb ldr r3, [r7, #24] + 8018b30: 799b ldrb r3, [r3, #6] + 8018b32: 461a mov r2, r3 + 8018b34: 2301 movs r3, #1 + 8018b36: 4093 lsls r3, r2 + 8018b38: b29b uxth r3, r3 + 8018b3a: 461a mov r2, r3 + 8018b3c: 0152 lsls r2, r2, #5 + 8018b3e: 1ad2 subs r2, r2, r3 + 8018b40: 0092 lsls r2, r2, #2 + 8018b42: 4413 add r3, r2 + 8018b44: 00db lsls r3, r3, #3 + 8018b46: b29b uxth r3, r3 + 8018b48: e001 b.n 8018b4e + 8018b4a: f64e 2360 movw r3, #60000 ; 0xea60 + 8018b4e: 817b strh r3, [r7, #10] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 8018b40: 897b ldrh r3, [r7, #10] - 8018b42: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 8018b46: 4a0b ldr r2, [pc, #44] ; (8018b74 ) - 8018b48: fb82 1203 smull r1, r2, r2, r3 - 8018b4c: 1152 asrs r2, r2, #5 - 8018b4e: 17db asrs r3, r3, #31 - 8018b50: 1ad3 subs r3, r2, r3 - 8018b52: b29a uxth r2, r3 - 8018b54: 69bb ldr r3, [r7, #24] - 8018b56: 811a strh r2, [r3, #8] + 8018b50: 897b ldrh r3, [r7, #10] + 8018b52: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 8018b56: 4a0b ldr r2, [pc, #44] ; (8018b84 ) + 8018b58: fb82 1203 smull r1, r2, r2, r3 + 8018b5c: 1152 asrs r2, r2, #5 + 8018b5e: 17db asrs r3, r3, #31 + 8018b60: 1ad3 subs r3, r2, r3 + 8018b62: b29a uxth r2, r3 + 8018b64: 69bb ldr r3, [r7, #24] + 8018b66: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_discover(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 8018b58: f997 3017 ldrsb.w r3, [r7, #23] -} - 8018b5c: 4618 mov r0, r3 - 8018b5e: 3720 adds r7, #32 - 8018b60: 46bd mov sp, r7 - 8018b62: bd80 pop {r7, pc} - 8018b64: 20000074 .word 0x20000074 - 8018b68: 20008760 .word 0x20008760 - 8018b6c: 080227f8 .word 0x080227f8 - 8018b70: 080227fc .word 0x080227fc - 8018b74: 10624dd3 .word 0x10624dd3 - -08018b78 : + 8018b68: f997 3017 ldrsb.w r3, [r7, #23] +} + 8018b6c: 4618 mov r0, r3 + 8018b6e: 3720 adds r7, #32 + 8018b70: 46bd mov sp, r7 + 8018b72: bd80 pop {r7, pc} + 8018b74: 20000074 .word 0x20000074 + 8018b78: 20008760 .word 0x20008760 + 8018b7c: 08022808 .word 0x08022808 + 8018b80: 0802280c .word 0x0802280c + 8018b84: 10624dd3 .word 0x10624dd3 + +08018b88 : * * @param netif network interface to bind to the offered address */ static void dhcp_bind(struct netif *netif) { - 8018b78: b580 push {r7, lr} - 8018b7a: b088 sub sp, #32 - 8018b7c: af00 add r7, sp, #0 - 8018b7e: 6078 str r0, [r7, #4] + 8018b88: b580 push {r7, lr} + 8018b8a: b088 sub sp, #32 + 8018b8c: af00 add r7, sp, #0 + 8018b8e: 6078 str r0, [r7, #4] u32_t timeout; struct dhcp *dhcp; ip4_addr_t sn_mask, gw_addr; LWIP_ERROR("dhcp_bind: netif != NULL", (netif != NULL), return;); - 8018b80: 687b ldr r3, [r7, #4] - 8018b82: 2b00 cmp r3, #0 - 8018b84: d107 bne.n 8018b96 - 8018b86: 4b64 ldr r3, [pc, #400] ; (8018d18 ) - 8018b88: f240 4215 movw r2, #1045 ; 0x415 - 8018b8c: 4963 ldr r1, [pc, #396] ; (8018d1c ) - 8018b8e: 4864 ldr r0, [pc, #400] ; (8018d20 ) - 8018b90: f003 fd5a bl 801c648 - 8018b94: e0bc b.n 8018d10 + 8018b90: 687b ldr r3, [r7, #4] + 8018b92: 2b00 cmp r3, #0 + 8018b94: d107 bne.n 8018ba6 + 8018b96: 4b64 ldr r3, [pc, #400] ; (8018d28 ) + 8018b98: f240 4215 movw r2, #1045 ; 0x415 + 8018b9c: 4963 ldr r1, [pc, #396] ; (8018d2c ) + 8018b9e: 4864 ldr r0, [pc, #400] ; (8018d30 ) + 8018ba0: f003 fd5a bl 801c658 + 8018ba4: e0bc b.n 8018d20 dhcp = netif_dhcp_data(netif); - 8018b96: 687b ldr r3, [r7, #4] - 8018b98: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018b9a: 61bb str r3, [r7, #24] + 8018ba6: 687b ldr r3, [r7, #4] + 8018ba8: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018baa: 61bb str r3, [r7, #24] LWIP_ERROR("dhcp_bind: dhcp != NULL", (dhcp != NULL), return;); - 8018b9c: 69bb ldr r3, [r7, #24] - 8018b9e: 2b00 cmp r3, #0 - 8018ba0: d107 bne.n 8018bb2 - 8018ba2: 4b5d ldr r3, [pc, #372] ; (8018d18 ) - 8018ba4: f240 4217 movw r2, #1047 ; 0x417 - 8018ba8: 495e ldr r1, [pc, #376] ; (8018d24 ) - 8018baa: 485d ldr r0, [pc, #372] ; (8018d20 ) - 8018bac: f003 fd4c bl 801c648 - 8018bb0: e0ae b.n 8018d10 + 8018bac: 69bb ldr r3, [r7, #24] + 8018bae: 2b00 cmp r3, #0 + 8018bb0: d107 bne.n 8018bc2 + 8018bb2: 4b5d ldr r3, [pc, #372] ; (8018d28 ) + 8018bb4: f240 4217 movw r2, #1047 ; 0x417 + 8018bb8: 495e ldr r1, [pc, #376] ; (8018d34 ) + 8018bba: 485d ldr r0, [pc, #372] ; (8018d30 ) + 8018bbc: f003 fd4c bl 801c658 + 8018bc0: e0ae b.n 8018d20 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(netif=%p) %c%c%"U16_F"\n", (void *)netif, netif->name[0], netif->name[1], (u16_t)netif->num)); /* reset time used of lease */ dhcp->lease_used = 0; - 8018bb2: 69bb ldr r3, [r7, #24] - 8018bb4: 2200 movs r2, #0 - 8018bb6: 825a strh r2, [r3, #18] + 8018bc2: 69bb ldr r3, [r7, #24] + 8018bc4: 2200 movs r2, #0 + 8018bc6: 825a strh r2, [r3, #18] if (dhcp->offered_t0_lease != 0xffffffffUL) { - 8018bb8: 69bb ldr r3, [r7, #24] - 8018bba: 6a9b ldr r3, [r3, #40] ; 0x28 - 8018bbc: f1b3 3fff cmp.w r3, #4294967295 - 8018bc0: d019 beq.n 8018bf6 + 8018bc8: 69bb ldr r3, [r7, #24] + 8018bca: 6a9b ldr r3, [r3, #40] ; 0x28 + 8018bcc: f1b3 3fff cmp.w r3, #4294967295 + 8018bd0: d019 beq.n 8018c06 /* set renewal period timer */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t0 renewal timer %"U32_F" secs\n", dhcp->offered_t0_lease)); timeout = (dhcp->offered_t0_lease + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS; - 8018bc2: 69bb ldr r3, [r7, #24] - 8018bc4: 6a9b ldr r3, [r3, #40] ; 0x28 - 8018bc6: 331e adds r3, #30 - 8018bc8: 4a57 ldr r2, [pc, #348] ; (8018d28 ) - 8018bca: fba2 2303 umull r2, r3, r2, r3 - 8018bce: 095b lsrs r3, r3, #5 - 8018bd0: 61fb str r3, [r7, #28] + 8018bd2: 69bb ldr r3, [r7, #24] + 8018bd4: 6a9b ldr r3, [r3, #40] ; 0x28 + 8018bd6: 331e adds r3, #30 + 8018bd8: 4a57 ldr r2, [pc, #348] ; (8018d38 ) + 8018bda: fba2 2303 umull r2, r3, r2, r3 + 8018bde: 095b lsrs r3, r3, #5 + 8018be0: 61fb str r3, [r7, #28] if (timeout > 0xffff) { - 8018bd2: 69fb ldr r3, [r7, #28] - 8018bd4: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8018bd8: d302 bcc.n 8018be0 + 8018be2: 69fb ldr r3, [r7, #28] + 8018be4: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8018be8: d302 bcc.n 8018bf0 timeout = 0xffff; - 8018bda: f64f 73ff movw r3, #65535 ; 0xffff - 8018bde: 61fb str r3, [r7, #28] + 8018bea: f64f 73ff movw r3, #65535 ; 0xffff + 8018bee: 61fb str r3, [r7, #28] } dhcp->t0_timeout = (u16_t)timeout; - 8018be0: 69fb ldr r3, [r7, #28] - 8018be2: b29a uxth r2, r3 - 8018be4: 69bb ldr r3, [r7, #24] - 8018be6: 829a strh r2, [r3, #20] + 8018bf0: 69fb ldr r3, [r7, #28] + 8018bf2: b29a uxth r2, r3 + 8018bf4: 69bb ldr r3, [r7, #24] + 8018bf6: 829a strh r2, [r3, #20] if (dhcp->t0_timeout == 0) { - 8018be8: 69bb ldr r3, [r7, #24] - 8018bea: 8a9b ldrh r3, [r3, #20] - 8018bec: 2b00 cmp r3, #0 - 8018bee: d102 bne.n 8018bf6 + 8018bf8: 69bb ldr r3, [r7, #24] + 8018bfa: 8a9b ldrh r3, [r3, #20] + 8018bfc: 2b00 cmp r3, #0 + 8018bfe: d102 bne.n 8018c06 dhcp->t0_timeout = 1; - 8018bf0: 69bb ldr r3, [r7, #24] - 8018bf2: 2201 movs r2, #1 - 8018bf4: 829a strh r2, [r3, #20] + 8018c00: 69bb ldr r3, [r7, #24] + 8018c02: 2201 movs r2, #1 + 8018c04: 829a strh r2, [r3, #20] } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t0_lease * 1000)); } /* temporary DHCP lease? */ if (dhcp->offered_t1_renew != 0xffffffffUL) { - 8018bf6: 69bb ldr r3, [r7, #24] - 8018bf8: 6adb ldr r3, [r3, #44] ; 0x2c - 8018bfa: f1b3 3fff cmp.w r3, #4294967295 - 8018bfe: d01d beq.n 8018c3c + 8018c06: 69bb ldr r3, [r7, #24] + 8018c08: 6adb ldr r3, [r3, #44] ; 0x2c + 8018c0a: f1b3 3fff cmp.w r3, #4294967295 + 8018c0e: d01d beq.n 8018c4c /* set renewal period timer */ LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t1 renewal timer %"U32_F" secs\n", dhcp->offered_t1_renew)); timeout = (dhcp->offered_t1_renew + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS; - 8018c00: 69bb ldr r3, [r7, #24] - 8018c02: 6adb ldr r3, [r3, #44] ; 0x2c - 8018c04: 331e adds r3, #30 - 8018c06: 4a48 ldr r2, [pc, #288] ; (8018d28 ) - 8018c08: fba2 2303 umull r2, r3, r2, r3 - 8018c0c: 095b lsrs r3, r3, #5 - 8018c0e: 61fb str r3, [r7, #28] + 8018c10: 69bb ldr r3, [r7, #24] + 8018c12: 6adb ldr r3, [r3, #44] ; 0x2c + 8018c14: 331e adds r3, #30 + 8018c16: 4a48 ldr r2, [pc, #288] ; (8018d38 ) + 8018c18: fba2 2303 umull r2, r3, r2, r3 + 8018c1c: 095b lsrs r3, r3, #5 + 8018c1e: 61fb str r3, [r7, #28] if (timeout > 0xffff) { - 8018c10: 69fb ldr r3, [r7, #28] - 8018c12: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8018c16: d302 bcc.n 8018c1e + 8018c20: 69fb ldr r3, [r7, #28] + 8018c22: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8018c26: d302 bcc.n 8018c2e timeout = 0xffff; - 8018c18: f64f 73ff movw r3, #65535 ; 0xffff - 8018c1c: 61fb str r3, [r7, #28] + 8018c28: f64f 73ff movw r3, #65535 ; 0xffff + 8018c2c: 61fb str r3, [r7, #28] } dhcp->t1_timeout = (u16_t)timeout; - 8018c1e: 69fb ldr r3, [r7, #28] - 8018c20: b29a uxth r2, r3 - 8018c22: 69bb ldr r3, [r7, #24] - 8018c24: 815a strh r2, [r3, #10] + 8018c2e: 69fb ldr r3, [r7, #28] + 8018c30: b29a uxth r2, r3 + 8018c32: 69bb ldr r3, [r7, #24] + 8018c34: 815a strh r2, [r3, #10] if (dhcp->t1_timeout == 0) { - 8018c26: 69bb ldr r3, [r7, #24] - 8018c28: 895b ldrh r3, [r3, #10] - 8018c2a: 2b00 cmp r3, #0 - 8018c2c: d102 bne.n 8018c34 + 8018c36: 69bb ldr r3, [r7, #24] + 8018c38: 895b ldrh r3, [r3, #10] + 8018c3a: 2b00 cmp r3, #0 + 8018c3c: d102 bne.n 8018c44 dhcp->t1_timeout = 1; - 8018c2e: 69bb ldr r3, [r7, #24] - 8018c30: 2201 movs r2, #1 - 8018c32: 815a strh r2, [r3, #10] + 8018c3e: 69bb ldr r3, [r7, #24] + 8018c40: 2201 movs r2, #1 + 8018c42: 815a strh r2, [r3, #10] } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t1_renew * 1000)); dhcp->t1_renew_time = dhcp->t1_timeout; - 8018c34: 69bb ldr r3, [r7, #24] - 8018c36: 895a ldrh r2, [r3, #10] - 8018c38: 69bb ldr r3, [r7, #24] - 8018c3a: 81da strh r2, [r3, #14] + 8018c44: 69bb ldr r3, [r7, #24] + 8018c46: 895a ldrh r2, [r3, #10] + 8018c48: 69bb ldr r3, [r7, #24] + 8018c4a: 81da strh r2, [r3, #14] } /* set renewal period timer */ if (dhcp->offered_t2_rebind != 0xffffffffUL) { - 8018c3c: 69bb ldr r3, [r7, #24] - 8018c3e: 6b1b ldr r3, [r3, #48] ; 0x30 - 8018c40: f1b3 3fff cmp.w r3, #4294967295 - 8018c44: d01d beq.n 8018c82 + 8018c4c: 69bb ldr r3, [r7, #24] + 8018c4e: 6b1b ldr r3, [r3, #48] ; 0x30 + 8018c50: f1b3 3fff cmp.w r3, #4294967295 + 8018c54: d01d beq.n 8018c92 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_bind(): t2 rebind timer %"U32_F" secs\n", dhcp->offered_t2_rebind)); timeout = (dhcp->offered_t2_rebind + DHCP_COARSE_TIMER_SECS / 2) / DHCP_COARSE_TIMER_SECS; - 8018c46: 69bb ldr r3, [r7, #24] - 8018c48: 6b1b ldr r3, [r3, #48] ; 0x30 - 8018c4a: 331e adds r3, #30 - 8018c4c: 4a36 ldr r2, [pc, #216] ; (8018d28 ) - 8018c4e: fba2 2303 umull r2, r3, r2, r3 - 8018c52: 095b lsrs r3, r3, #5 - 8018c54: 61fb str r3, [r7, #28] + 8018c56: 69bb ldr r3, [r7, #24] + 8018c58: 6b1b ldr r3, [r3, #48] ; 0x30 + 8018c5a: 331e adds r3, #30 + 8018c5c: 4a36 ldr r2, [pc, #216] ; (8018d38 ) + 8018c5e: fba2 2303 umull r2, r3, r2, r3 + 8018c62: 095b lsrs r3, r3, #5 + 8018c64: 61fb str r3, [r7, #28] if (timeout > 0xffff) { - 8018c56: 69fb ldr r3, [r7, #28] - 8018c58: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8018c5c: d302 bcc.n 8018c64 + 8018c66: 69fb ldr r3, [r7, #28] + 8018c68: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8018c6c: d302 bcc.n 8018c74 timeout = 0xffff; - 8018c5e: f64f 73ff movw r3, #65535 ; 0xffff - 8018c62: 61fb str r3, [r7, #28] + 8018c6e: f64f 73ff movw r3, #65535 ; 0xffff + 8018c72: 61fb str r3, [r7, #28] } dhcp->t2_timeout = (u16_t)timeout; - 8018c64: 69fb ldr r3, [r7, #28] - 8018c66: b29a uxth r2, r3 - 8018c68: 69bb ldr r3, [r7, #24] - 8018c6a: 819a strh r2, [r3, #12] + 8018c74: 69fb ldr r3, [r7, #28] + 8018c76: b29a uxth r2, r3 + 8018c78: 69bb ldr r3, [r7, #24] + 8018c7a: 819a strh r2, [r3, #12] if (dhcp->t2_timeout == 0) { - 8018c6c: 69bb ldr r3, [r7, #24] - 8018c6e: 899b ldrh r3, [r3, #12] - 8018c70: 2b00 cmp r3, #0 - 8018c72: d102 bne.n 8018c7a + 8018c7c: 69bb ldr r3, [r7, #24] + 8018c7e: 899b ldrh r3, [r3, #12] + 8018c80: 2b00 cmp r3, #0 + 8018c82: d102 bne.n 8018c8a dhcp->t2_timeout = 1; - 8018c74: 69bb ldr r3, [r7, #24] - 8018c76: 2201 movs r2, #1 - 8018c78: 819a strh r2, [r3, #12] + 8018c84: 69bb ldr r3, [r7, #24] + 8018c86: 2201 movs r2, #1 + 8018c88: 819a strh r2, [r3, #12] } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_bind(): set request timeout %"U32_F" msecs\n", dhcp->offered_t2_rebind * 1000)); dhcp->t2_rebind_time = dhcp->t2_timeout; - 8018c7a: 69bb ldr r3, [r7, #24] - 8018c7c: 899a ldrh r2, [r3, #12] - 8018c7e: 69bb ldr r3, [r7, #24] - 8018c80: 821a strh r2, [r3, #16] + 8018c8a: 69bb ldr r3, [r7, #24] + 8018c8c: 899a ldrh r2, [r3, #12] + 8018c8e: 69bb ldr r3, [r7, #24] + 8018c90: 821a strh r2, [r3, #16] } /* If we have sub 1 minute lease, t2 and t1 will kick in at the same time. */ if ((dhcp->t1_timeout >= dhcp->t2_timeout) && (dhcp->t2_timeout > 0)) { - 8018c82: 69bb ldr r3, [r7, #24] - 8018c84: 895a ldrh r2, [r3, #10] - 8018c86: 69bb ldr r3, [r7, #24] - 8018c88: 899b ldrh r3, [r3, #12] - 8018c8a: 429a cmp r2, r3 - 8018c8c: d306 bcc.n 8018c9c - 8018c8e: 69bb ldr r3, [r7, #24] - 8018c90: 899b ldrh r3, [r3, #12] - 8018c92: 2b00 cmp r3, #0 - 8018c94: d002 beq.n 8018c9c - dhcp->t1_timeout = 0; + 8018c92: 69bb ldr r3, [r7, #24] + 8018c94: 895a ldrh r2, [r3, #10] 8018c96: 69bb ldr r3, [r7, #24] - 8018c98: 2200 movs r2, #0 - 8018c9a: 815a strh r2, [r3, #10] + 8018c98: 899b ldrh r3, [r3, #12] + 8018c9a: 429a cmp r2, r3 + 8018c9c: d306 bcc.n 8018cac + 8018c9e: 69bb ldr r3, [r7, #24] + 8018ca0: 899b ldrh r3, [r3, #12] + 8018ca2: 2b00 cmp r3, #0 + 8018ca4: d002 beq.n 8018cac + dhcp->t1_timeout = 0; + 8018ca6: 69bb ldr r3, [r7, #24] + 8018ca8: 2200 movs r2, #0 + 8018caa: 815a strh r2, [r3, #10] } if (dhcp->subnet_mask_given) { - 8018c9c: 69bb ldr r3, [r7, #24] - 8018c9e: 79db ldrb r3, [r3, #7] - 8018ca0: 2b00 cmp r3, #0 - 8018ca2: d003 beq.n 8018cac + 8018cac: 69bb ldr r3, [r7, #24] + 8018cae: 79db ldrb r3, [r3, #7] + 8018cb0: 2b00 cmp r3, #0 + 8018cb2: d003 beq.n 8018cbc /* copy offered network mask */ ip4_addr_copy(sn_mask, dhcp->offered_sn_mask); - 8018ca4: 69bb ldr r3, [r7, #24] - 8018ca6: 6a1b ldr r3, [r3, #32] - 8018ca8: 613b str r3, [r7, #16] - 8018caa: e014 b.n 8018cd6 + 8018cb4: 69bb ldr r3, [r7, #24] + 8018cb6: 6a1b ldr r3, [r3, #32] + 8018cb8: 613b str r3, [r7, #16] + 8018cba: e014 b.n 8018ce6 } else { /* subnet mask not given, choose a safe subnet mask given the network class */ u8_t first_octet = ip4_addr1(&dhcp->offered_ip_addr); - 8018cac: 69bb ldr r3, [r7, #24] - 8018cae: 331c adds r3, #28 - 8018cb0: 781b ldrb r3, [r3, #0] - 8018cb2: 75fb strb r3, [r7, #23] + 8018cbc: 69bb ldr r3, [r7, #24] + 8018cbe: 331c adds r3, #28 + 8018cc0: 781b ldrb r3, [r3, #0] + 8018cc2: 75fb strb r3, [r7, #23] if (first_octet <= 127) { - 8018cb4: f997 3017 ldrsb.w r3, [r7, #23] - 8018cb8: 2b00 cmp r3, #0 - 8018cba: db02 blt.n 8018cc2 + 8018cc4: f997 3017 ldrsb.w r3, [r7, #23] + 8018cc8: 2b00 cmp r3, #0 + 8018cca: db02 blt.n 8018cd2 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xff000000UL)); - 8018cbc: 23ff movs r3, #255 ; 0xff - 8018cbe: 613b str r3, [r7, #16] - 8018cc0: e009 b.n 8018cd6 + 8018ccc: 23ff movs r3, #255 ; 0xff + 8018cce: 613b str r3, [r7, #16] + 8018cd0: e009 b.n 8018ce6 } else if (first_octet >= 192) { - 8018cc2: 7dfb ldrb r3, [r7, #23] - 8018cc4: 2bbf cmp r3, #191 ; 0xbf - 8018cc6: d903 bls.n 8018cd0 + 8018cd2: 7dfb ldrb r3, [r7, #23] + 8018cd4: 2bbf cmp r3, #191 ; 0xbf + 8018cd6: d903 bls.n 8018ce0 ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffffff00UL)); - 8018cc8: f06f 437f mvn.w r3, #4278190080 ; 0xff000000 - 8018ccc: 613b str r3, [r7, #16] - 8018cce: e002 b.n 8018cd6 + 8018cd8: f06f 437f mvn.w r3, #4278190080 ; 0xff000000 + 8018cdc: 613b str r3, [r7, #16] + 8018cde: e002 b.n 8018ce6 } else { ip4_addr_set_u32(&sn_mask, PP_HTONL(0xffff0000UL)); - 8018cd0: f64f 73ff movw r3, #65535 ; 0xffff - 8018cd4: 613b str r3, [r7, #16] + 8018ce0: f64f 73ff movw r3, #65535 ; 0xffff + 8018ce4: 613b str r3, [r7, #16] } } ip4_addr_copy(gw_addr, dhcp->offered_gw_addr); - 8018cd6: 69bb ldr r3, [r7, #24] - 8018cd8: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018cda: 60fb str r3, [r7, #12] + 8018ce6: 69bb ldr r3, [r7, #24] + 8018ce8: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018cea: 60fb str r3, [r7, #12] /* gateway address not given? */ if (ip4_addr_isany_val(gw_addr)) { - 8018cdc: 68fb ldr r3, [r7, #12] - 8018cde: 2b00 cmp r3, #0 - 8018ce0: d108 bne.n 8018cf4 + 8018cec: 68fb ldr r3, [r7, #12] + 8018cee: 2b00 cmp r3, #0 + 8018cf0: d108 bne.n 8018d04 /* copy network address */ ip4_addr_get_network(&gw_addr, &dhcp->offered_ip_addr, &sn_mask); - 8018ce2: 69bb ldr r3, [r7, #24] - 8018ce4: 69da ldr r2, [r3, #28] - 8018ce6: 693b ldr r3, [r7, #16] - 8018ce8: 4013 ands r3, r2 - 8018cea: 60fb str r3, [r7, #12] + 8018cf2: 69bb ldr r3, [r7, #24] + 8018cf4: 69da ldr r2, [r3, #28] + 8018cf6: 693b ldr r3, [r7, #16] + 8018cf8: 4013 ands r3, r2 + 8018cfa: 60fb str r3, [r7, #12] /* use first host address on network as gateway */ ip4_addr_set_u32(&gw_addr, ip4_addr_get_u32(&gw_addr) | PP_HTONL(0x00000001UL)); - 8018cec: 68fb ldr r3, [r7, #12] - 8018cee: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 - 8018cf2: 60fb str r3, [r7, #12] + 8018cfc: 68fb ldr r3, [r7, #12] + 8018cfe: f043 7380 orr.w r3, r3, #16777216 ; 0x1000000 + 8018d02: 60fb str r3, [r7, #12] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_bind(): IP: 0x%08"X32_F" SN: 0x%08"X32_F" GW: 0x%08"X32_F"\n", ip4_addr_get_u32(&dhcp->offered_ip_addr), ip4_addr_get_u32(&sn_mask), ip4_addr_get_u32(&gw_addr))); /* netif is now bound to DHCP leased address - set this before assigning the address to ensure the callback can use dhcp_supplied_address() */ dhcp_set_state(dhcp, DHCP_STATE_BOUND); - 8018cf4: 210a movs r1, #10 - 8018cf6: 69b8 ldr r0, [r7, #24] - 8018cf8: f000 faa0 bl 801923c + 8018d04: 210a movs r1, #10 + 8018d06: 69b8 ldr r0, [r7, #24] + 8018d08: f000 faa0 bl 801924c netif_set_addr(netif, &dhcp->offered_ip_addr, &sn_mask, &gw_addr); - 8018cfc: 69bb ldr r3, [r7, #24] - 8018cfe: f103 011c add.w r1, r3, #28 - 8018d02: f107 030c add.w r3, r7, #12 - 8018d06: f107 0210 add.w r2, r7, #16 - 8018d0a: 6878 ldr r0, [r7, #4] - 8018d0c: f7f8 fa62 bl 80111d4 + 8018d0c: 69bb ldr r3, [r7, #24] + 8018d0e: f103 011c add.w r1, r3, #28 + 8018d12: f107 030c add.w r3, r7, #12 + 8018d16: f107 0210 add.w r2, r7, #16 + 8018d1a: 6878 ldr r0, [r7, #4] + 8018d1c: f7f8 fa62 bl 80111e4 /* interface is used by routing now that an address is set */ } - 8018d10: 3720 adds r7, #32 - 8018d12: 46bd mov sp, r7 - 8018d14: bd80 pop {r7, pc} - 8018d16: bf00 nop - 8018d18: 0801fd28 .word 0x0801fd28 - 8018d1c: 0801fe88 .word 0x0801fe88 - 8018d20: 0801fd88 .word 0x0801fd88 - 8018d24: 0801fea4 .word 0x0801fea4 - 8018d28: 88888889 .word 0x88888889 - -08018d2c : + 8018d20: 3720 adds r7, #32 + 8018d22: 46bd mov sp, r7 + 8018d24: bd80 pop {r7, pc} + 8018d26: bf00 nop + 8018d28: 0801fd38 .word 0x0801fd38 + 8018d2c: 0801fe98 .word 0x0801fe98 + 8018d30: 0801fd98 .word 0x0801fd98 + 8018d34: 0801feb4 .word 0x0801feb4 + 8018d38: 88888889 .word 0x88888889 + +08018d3c : * * @param netif network interface which must renew its lease */ err_t dhcp_renew(struct netif *netif) { - 8018d2c: b580 push {r7, lr} - 8018d2e: b08a sub sp, #40 ; 0x28 - 8018d30: af02 add r7, sp, #8 - 8018d32: 6078 str r0, [r7, #4] + 8018d3c: b580 push {r7, lr} + 8018d3e: b08a sub sp, #40 ; 0x28 + 8018d40: af02 add r7, sp, #8 + 8018d42: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8018d34: 687b ldr r3, [r7, #4] - 8018d36: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018d38: 61bb str r3, [r7, #24] + 8018d44: 687b ldr r3, [r7, #4] + 8018d46: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018d48: 61bb str r3, [r7, #24] struct pbuf *p_out; u16_t options_out_len; LWIP_ASSERT_CORE_LOCKED(); LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_renew()\n")); dhcp_set_state(dhcp, DHCP_STATE_RENEWING); - 8018d3a: 2105 movs r1, #5 - 8018d3c: 69b8 ldr r0, [r7, #24] - 8018d3e: f000 fa7d bl 801923c + 8018d4a: 2105 movs r1, #5 + 8018d4c: 69b8 ldr r0, [r7, #24] + 8018d4e: f000 fa7d bl 801924c /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - 8018d42: f107 030c add.w r3, r7, #12 - 8018d46: 2203 movs r2, #3 - 8018d48: 69b9 ldr r1, [r7, #24] - 8018d4a: 6878 ldr r0, [r7, #4] - 8018d4c: f000 ff00 bl 8019b50 - 8018d50: 6178 str r0, [r7, #20] + 8018d52: f107 030c add.w r3, r7, #12 + 8018d56: 2203 movs r2, #3 + 8018d58: 69b9 ldr r1, [r7, #24] + 8018d5a: 6878 ldr r0, [r7, #4] + 8018d5c: f000 ff00 bl 8019b60 + 8018d60: 6178 str r0, [r7, #20] if (p_out != NULL) { - 8018d52: 697b ldr r3, [r7, #20] - 8018d54: 2b00 cmp r3, #0 - 8018d56: d04e beq.n 8018df6 + 8018d62: 697b ldr r3, [r7, #20] + 8018d64: 2b00 cmp r3, #0 + 8018d66: d04e beq.n 8018e06 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 8018d58: 697b ldr r3, [r7, #20] - 8018d5a: 685b ldr r3, [r3, #4] - 8018d5c: 613b str r3, [r7, #16] + 8018d68: 697b ldr r3, [r7, #20] + 8018d6a: 685b ldr r3, [r3, #4] + 8018d6c: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 8018d5e: 89b8 ldrh r0, [r7, #12] - 8018d60: 693b ldr r3, [r7, #16] - 8018d62: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018d66: 2302 movs r3, #2 - 8018d68: 2239 movs r2, #57 ; 0x39 - 8018d6a: f000 fa81 bl 8019270 - 8018d6e: 4603 mov r3, r0 - 8018d70: 81bb strh r3, [r7, #12] + 8018d6e: 89b8 ldrh r0, [r7, #12] + 8018d70: 693b ldr r3, [r7, #16] + 8018d72: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018d76: 2302 movs r3, #2 + 8018d78: 2239 movs r2, #57 ; 0x39 + 8018d7a: f000 fa81 bl 8019280 + 8018d7e: 4603 mov r3, r0 + 8018d80: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - 8018d72: 89b8 ldrh r0, [r7, #12] - 8018d74: 693b ldr r3, [r7, #16] - 8018d76: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018d7a: 687b ldr r3, [r7, #4] - 8018d7c: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8018d7e: 461a mov r2, r3 - 8018d80: f000 fad0 bl 8019324 - 8018d84: 4603 mov r3, r0 - 8018d86: 81bb strh r3, [r7, #12] + 8018d82: 89b8 ldrh r0, [r7, #12] + 8018d84: 693b ldr r3, [r7, #16] + 8018d86: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018d8a: 687b ldr r3, [r7, #4] + 8018d8c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8018d8e: 461a mov r2, r3 + 8018d90: f000 fad0 bl 8019334 + 8018d94: 4603 mov r3, r0 + 8018d96: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 8018d88: 89b8 ldrh r0, [r7, #12] - 8018d8a: 693b ldr r3, [r7, #16] - 8018d8c: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018d90: 2303 movs r3, #3 - 8018d92: 2237 movs r2, #55 ; 0x37 - 8018d94: f000 fa6c bl 8019270 - 8018d98: 4603 mov r3, r0 - 8018d9a: 81bb strh r3, [r7, #12] + 8018d98: 89b8 ldrh r0, [r7, #12] + 8018d9a: 693b ldr r3, [r7, #16] + 8018d9c: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018da0: 2303 movs r3, #3 + 8018da2: 2237 movs r2, #55 ; 0x37 + 8018da4: f000 fa6c bl 8019280 + 8018da8: 4603 mov r3, r0 + 8018daa: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 8018d9c: 2300 movs r3, #0 - 8018d9e: 77bb strb r3, [r7, #30] - 8018da0: e00e b.n 8018dc0 + 8018dac: 2300 movs r3, #0 + 8018dae: 77bb strb r3, [r7, #30] + 8018db0: e00e b.n 8018dd0 options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 8018da2: 89b8 ldrh r0, [r7, #12] - 8018da4: 693b ldr r3, [r7, #16] - 8018da6: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018daa: 7fbb ldrb r3, [r7, #30] - 8018dac: 4a2a ldr r2, [pc, #168] ; (8018e58 ) - 8018dae: 5cd3 ldrb r3, [r2, r3] - 8018db0: 461a mov r2, r3 - 8018db2: f000 fa91 bl 80192d8 - 8018db6: 4603 mov r3, r0 - 8018db8: 81bb strh r3, [r7, #12] - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 8018db2: 89b8 ldrh r0, [r7, #12] + 8018db4: 693b ldr r3, [r7, #16] + 8018db6: f103 01f0 add.w r1, r3, #240 ; 0xf0 8018dba: 7fbb ldrb r3, [r7, #30] - 8018dbc: 3301 adds r3, #1 - 8018dbe: 77bb strb r3, [r7, #30] - 8018dc0: 7fbb ldrb r3, [r7, #30] - 8018dc2: 2b02 cmp r3, #2 - 8018dc4: d9ed bls.n 8018da2 + 8018dbc: 4a2a ldr r2, [pc, #168] ; (8018e68 ) + 8018dbe: 5cd3 ldrb r3, [r2, r3] + 8018dc0: 461a mov r2, r3 + 8018dc2: f000 fa91 bl 80192e8 + 8018dc6: 4603 mov r3, r0 + 8018dc8: 81bb strh r3, [r7, #12] + for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 8018dca: 7fbb ldrb r3, [r7, #30] + 8018dcc: 3301 adds r3, #1 + 8018dce: 77bb strb r3, [r7, #30] + 8018dd0: 7fbb ldrb r3, [r7, #30] + 8018dd2: 2b02 cmp r3, #2 + 8018dd4: d9ed bls.n 8018db2 #if LWIP_NETIF_HOSTNAME options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif); #endif /* LWIP_NETIF_HOSTNAME */ LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_RENEWING, msg_out, DHCP_REQUEST, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 8018dc6: 89b8 ldrh r0, [r7, #12] - 8018dc8: 693b ldr r3, [r7, #16] - 8018dca: 33f0 adds r3, #240 ; 0xf0 - 8018dcc: 697a ldr r2, [r7, #20] - 8018dce: 4619 mov r1, r3 - 8018dd0: f000 ff94 bl 8019cfc + 8018dd6: 89b8 ldrh r0, [r7, #12] + 8018dd8: 693b ldr r3, [r7, #16] + 8018dda: 33f0 adds r3, #240 ; 0xf0 + 8018ddc: 697a ldr r2, [r7, #20] + 8018dde: 4619 mov r1, r3 + 8018de0: f000 ff94 bl 8019d0c result = udp_sendto_if(dhcp_pcb, p_out, &dhcp->server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif); - 8018dd4: 4b21 ldr r3, [pc, #132] ; (8018e5c ) - 8018dd6: 6818 ldr r0, [r3, #0] - 8018dd8: 69bb ldr r3, [r7, #24] - 8018dda: f103 0218 add.w r2, r3, #24 - 8018dde: 687b ldr r3, [r7, #4] - 8018de0: 9300 str r3, [sp, #0] - 8018de2: 2343 movs r3, #67 ; 0x43 - 8018de4: 6979 ldr r1, [r7, #20] - 8018de6: f7fe fe3f bl 8017a68 - 8018dea: 4603 mov r3, r0 - 8018dec: 77fb strb r3, [r7, #31] + 8018de4: 4b21 ldr r3, [pc, #132] ; (8018e6c ) + 8018de6: 6818 ldr r0, [r3, #0] + 8018de8: 69bb ldr r3, [r7, #24] + 8018dea: f103 0218 add.w r2, r3, #24 + 8018dee: 687b ldr r3, [r7, #4] + 8018df0: 9300 str r3, [sp, #0] + 8018df2: 2343 movs r3, #67 ; 0x43 + 8018df4: 6979 ldr r1, [r7, #20] + 8018df6: f7fe fe3f bl 8017a78 + 8018dfa: 4603 mov r3, r0 + 8018dfc: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 8018dee: 6978 ldr r0, [r7, #20] - 8018df0: f7f8 fefa bl 8011be8 - 8018df4: e001 b.n 8018dfa + 8018dfe: 6978 ldr r0, [r7, #20] + 8018e00: f7f8 fefa bl 8011bf8 + 8018e04: e001 b.n 8018e0a LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew: RENEWING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_renew: could not allocate DHCP request\n")); result = ERR_MEM; - 8018df6: 23ff movs r3, #255 ; 0xff - 8018df8: 77fb strb r3, [r7, #31] + 8018e06: 23ff movs r3, #255 ; 0xff + 8018e08: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 8018dfa: 69bb ldr r3, [r7, #24] - 8018dfc: 799b ldrb r3, [r3, #6] - 8018dfe: 2bff cmp r3, #255 ; 0xff - 8018e00: d005 beq.n 8018e0e - dhcp->tries++; - 8018e02: 69bb ldr r3, [r7, #24] - 8018e04: 799b ldrb r3, [r3, #6] - 8018e06: 3301 adds r3, #1 - 8018e08: b2da uxtb r2, r3 8018e0a: 69bb ldr r3, [r7, #24] - 8018e0c: 719a strb r2, [r3, #6] + 8018e0c: 799b ldrb r3, [r3, #6] + 8018e0e: 2bff cmp r3, #255 ; 0xff + 8018e10: d005 beq.n 8018e1e + dhcp->tries++; + 8018e12: 69bb ldr r3, [r7, #24] + 8018e14: 799b ldrb r3, [r3, #6] + 8018e16: 3301 adds r3, #1 + 8018e18: b2da uxtb r2, r3 + 8018e1a: 69bb ldr r3, [r7, #24] + 8018e1c: 719a strb r2, [r3, #6] } /* back-off on retries, but to a maximum of 20 seconds */ msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 2000 : 20 * 1000); - 8018e0e: 69bb ldr r3, [r7, #24] - 8018e10: 799b ldrb r3, [r3, #6] - 8018e12: 2b09 cmp r3, #9 - 8018e14: d80a bhi.n 8018e2c - 8018e16: 69bb ldr r3, [r7, #24] - 8018e18: 799b ldrb r3, [r3, #6] - 8018e1a: b29b uxth r3, r3 - 8018e1c: 461a mov r2, r3 - 8018e1e: 0152 lsls r2, r2, #5 - 8018e20: 1ad2 subs r2, r2, r3 - 8018e22: 0092 lsls r2, r2, #2 - 8018e24: 4413 add r3, r2 - 8018e26: 011b lsls r3, r3, #4 - 8018e28: b29b uxth r3, r3 - 8018e2a: e001 b.n 8018e30 - 8018e2c: f644 6320 movw r3, #20000 ; 0x4e20 - 8018e30: 81fb strh r3, [r7, #14] + 8018e1e: 69bb ldr r3, [r7, #24] + 8018e20: 799b ldrb r3, [r3, #6] + 8018e22: 2b09 cmp r3, #9 + 8018e24: d80a bhi.n 8018e3c + 8018e26: 69bb ldr r3, [r7, #24] + 8018e28: 799b ldrb r3, [r3, #6] + 8018e2a: b29b uxth r3, r3 + 8018e2c: 461a mov r2, r3 + 8018e2e: 0152 lsls r2, r2, #5 + 8018e30: 1ad2 subs r2, r2, r3 + 8018e32: 0092 lsls r2, r2, #2 + 8018e34: 4413 add r3, r2 + 8018e36: 011b lsls r3, r3, #4 + 8018e38: b29b uxth r3, r3 + 8018e3a: e001 b.n 8018e40 + 8018e3c: f644 6320 movw r3, #20000 ; 0x4e20 + 8018e40: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 8018e32: 89fb ldrh r3, [r7, #14] - 8018e34: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 8018e38: 4a09 ldr r2, [pc, #36] ; (8018e60 ) - 8018e3a: fb82 1203 smull r1, r2, r2, r3 - 8018e3e: 1152 asrs r2, r2, #5 - 8018e40: 17db asrs r3, r3, #31 - 8018e42: 1ad3 subs r3, r2, r3 - 8018e44: b29a uxth r2, r3 - 8018e46: 69bb ldr r3, [r7, #24] - 8018e48: 811a strh r2, [r3, #8] + 8018e42: 89fb ldrh r3, [r7, #14] + 8018e44: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 8018e48: 4a09 ldr r2, [pc, #36] ; (8018e70 ) + 8018e4a: fb82 1203 smull r1, r2, r2, r3 + 8018e4e: 1152 asrs r2, r2, #5 + 8018e50: 17db asrs r3, r3, #31 + 8018e52: 1ad3 subs r3, r2, r3 + 8018e54: b29a uxth r2, r3 + 8018e56: 69bb ldr r3, [r7, #24] + 8018e58: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_renew(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 8018e4a: f997 301f ldrsb.w r3, [r7, #31] -} - 8018e4e: 4618 mov r0, r3 - 8018e50: 3720 adds r7, #32 - 8018e52: 46bd mov sp, r7 - 8018e54: bd80 pop {r7, pc} - 8018e56: bf00 nop - 8018e58: 20000074 .word 0x20000074 - 8018e5c: 20008760 .word 0x20008760 - 8018e60: 10624dd3 .word 0x10624dd3 - -08018e64 : + 8018e5a: f997 301f ldrsb.w r3, [r7, #31] +} + 8018e5e: 4618 mov r0, r3 + 8018e60: 3720 adds r7, #32 + 8018e62: 46bd mov sp, r7 + 8018e64: bd80 pop {r7, pc} + 8018e66: bf00 nop + 8018e68: 20000074 .word 0x20000074 + 8018e6c: 20008760 .word 0x20008760 + 8018e70: 10624dd3 .word 0x10624dd3 + +08018e74 : * * @param netif network interface which must rebind with a DHCP server */ static err_t dhcp_rebind(struct netif *netif) { - 8018e64: b580 push {r7, lr} - 8018e66: b08a sub sp, #40 ; 0x28 - 8018e68: af02 add r7, sp, #8 - 8018e6a: 6078 str r0, [r7, #4] + 8018e74: b580 push {r7, lr} + 8018e76: b08a sub sp, #40 ; 0x28 + 8018e78: af02 add r7, sp, #8 + 8018e7a: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8018e6c: 687b ldr r3, [r7, #4] - 8018e6e: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018e70: 61bb str r3, [r7, #24] + 8018e7c: 687b ldr r3, [r7, #4] + 8018e7e: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018e80: 61bb str r3, [r7, #24] u8_t i; struct pbuf *p_out; u16_t options_out_len; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind()\n")); dhcp_set_state(dhcp, DHCP_STATE_REBINDING); - 8018e72: 2104 movs r1, #4 - 8018e74: 69b8 ldr r0, [r7, #24] - 8018e76: f000 f9e1 bl 801923c + 8018e82: 2104 movs r1, #4 + 8018e84: 69b8 ldr r0, [r7, #24] + 8018e86: f000 f9e1 bl 801924c /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - 8018e7a: f107 030c add.w r3, r7, #12 - 8018e7e: 2203 movs r2, #3 - 8018e80: 69b9 ldr r1, [r7, #24] - 8018e82: 6878 ldr r0, [r7, #4] - 8018e84: f000 fe64 bl 8019b50 - 8018e88: 6178 str r0, [r7, #20] + 8018e8a: f107 030c add.w r3, r7, #12 + 8018e8e: 2203 movs r2, #3 + 8018e90: 69b9 ldr r1, [r7, #24] + 8018e92: 6878 ldr r0, [r7, #4] + 8018e94: f000 fe64 bl 8019b60 + 8018e98: 6178 str r0, [r7, #20] if (p_out != NULL) { - 8018e8a: 697b ldr r3, [r7, #20] - 8018e8c: 2b00 cmp r3, #0 - 8018e8e: d04c beq.n 8018f2a + 8018e9a: 697b ldr r3, [r7, #20] + 8018e9c: 2b00 cmp r3, #0 + 8018e9e: d04c beq.n 8018f3a struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 8018e90: 697b ldr r3, [r7, #20] - 8018e92: 685b ldr r3, [r3, #4] - 8018e94: 613b str r3, [r7, #16] + 8018ea0: 697b ldr r3, [r7, #20] + 8018ea2: 685b ldr r3, [r3, #4] + 8018ea4: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 8018e96: 89b8 ldrh r0, [r7, #12] - 8018e98: 693b ldr r3, [r7, #16] - 8018e9a: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018e9e: 2302 movs r3, #2 - 8018ea0: 2239 movs r2, #57 ; 0x39 - 8018ea2: f000 f9e5 bl 8019270 - 8018ea6: 4603 mov r3, r0 - 8018ea8: 81bb strh r3, [r7, #12] + 8018ea6: 89b8 ldrh r0, [r7, #12] + 8018ea8: 693b ldr r3, [r7, #16] + 8018eaa: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018eae: 2302 movs r3, #2 + 8018eb0: 2239 movs r2, #57 ; 0x39 + 8018eb2: f000 f9e5 bl 8019280 + 8018eb6: 4603 mov r3, r0 + 8018eb8: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN(netif)); - 8018eaa: 89b8 ldrh r0, [r7, #12] - 8018eac: 693b ldr r3, [r7, #16] - 8018eae: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018eb2: 687b ldr r3, [r7, #4] - 8018eb4: 8d1b ldrh r3, [r3, #40] ; 0x28 - 8018eb6: 461a mov r2, r3 - 8018eb8: f000 fa34 bl 8019324 - 8018ebc: 4603 mov r3, r0 - 8018ebe: 81bb strh r3, [r7, #12] + 8018eba: 89b8 ldrh r0, [r7, #12] + 8018ebc: 693b ldr r3, [r7, #16] + 8018ebe: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018ec2: 687b ldr r3, [r7, #4] + 8018ec4: 8d1b ldrh r3, [r3, #40] ; 0x28 + 8018ec6: 461a mov r2, r3 + 8018ec8: f000 fa34 bl 8019334 + 8018ecc: 4603 mov r3, r0 + 8018ece: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 8018ec0: 89b8 ldrh r0, [r7, #12] - 8018ec2: 693b ldr r3, [r7, #16] - 8018ec4: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018ec8: 2303 movs r3, #3 - 8018eca: 2237 movs r2, #55 ; 0x37 - 8018ecc: f000 f9d0 bl 8019270 - 8018ed0: 4603 mov r3, r0 - 8018ed2: 81bb strh r3, [r7, #12] + 8018ed0: 89b8 ldrh r0, [r7, #12] + 8018ed2: 693b ldr r3, [r7, #16] + 8018ed4: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018ed8: 2303 movs r3, #3 + 8018eda: 2237 movs r2, #55 ; 0x37 + 8018edc: f000 f9d0 bl 8019280 + 8018ee0: 4603 mov r3, r0 + 8018ee2: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 8018ed4: 2300 movs r3, #0 - 8018ed6: 77bb strb r3, [r7, #30] - 8018ed8: e00e b.n 8018ef8 + 8018ee4: 2300 movs r3, #0 + 8018ee6: 77bb strb r3, [r7, #30] + 8018ee8: e00e b.n 8018f08 options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 8018eda: 89b8 ldrh r0, [r7, #12] - 8018edc: 693b ldr r3, [r7, #16] - 8018ede: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018ee2: 7fbb ldrb r3, [r7, #30] - 8018ee4: 4a29 ldr r2, [pc, #164] ; (8018f8c ) - 8018ee6: 5cd3 ldrb r3, [r2, r3] - 8018ee8: 461a mov r2, r3 - 8018eea: f000 f9f5 bl 80192d8 - 8018eee: 4603 mov r3, r0 - 8018ef0: 81bb strh r3, [r7, #12] - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 8018eea: 89b8 ldrh r0, [r7, #12] + 8018eec: 693b ldr r3, [r7, #16] + 8018eee: f103 01f0 add.w r1, r3, #240 ; 0xf0 8018ef2: 7fbb ldrb r3, [r7, #30] - 8018ef4: 3301 adds r3, #1 - 8018ef6: 77bb strb r3, [r7, #30] - 8018ef8: 7fbb ldrb r3, [r7, #30] - 8018efa: 2b02 cmp r3, #2 - 8018efc: d9ed bls.n 8018eda + 8018ef4: 4a29 ldr r2, [pc, #164] ; (8018f9c ) + 8018ef6: 5cd3 ldrb r3, [r2, r3] + 8018ef8: 461a mov r2, r3 + 8018efa: f000 f9f5 bl 80192e8 + 8018efe: 4603 mov r3, r0 + 8018f00: 81bb strh r3, [r7, #12] + for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 8018f02: 7fbb ldrb r3, [r7, #30] + 8018f04: 3301 adds r3, #1 + 8018f06: 77bb strb r3, [r7, #30] + 8018f08: 7fbb ldrb r3, [r7, #30] + 8018f0a: 2b02 cmp r3, #2 + 8018f0c: d9ed bls.n 8018eea #if LWIP_NETIF_HOSTNAME options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif); #endif /* LWIP_NETIF_HOSTNAME */ LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBINDING, msg_out, DHCP_DISCOVER, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 8018efe: 89b8 ldrh r0, [r7, #12] - 8018f00: 693b ldr r3, [r7, #16] - 8018f02: 33f0 adds r3, #240 ; 0xf0 - 8018f04: 697a ldr r2, [r7, #20] - 8018f06: 4619 mov r1, r3 - 8018f08: f000 fef8 bl 8019cfc + 8018f0e: 89b8 ldrh r0, [r7, #12] + 8018f10: 693b ldr r3, [r7, #16] + 8018f12: 33f0 adds r3, #240 ; 0xf0 + 8018f14: 697a ldr r2, [r7, #20] + 8018f16: 4619 mov r1, r3 + 8018f18: f000 fef8 bl 8019d0c /* broadcast to server */ result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif); - 8018f0c: 4b20 ldr r3, [pc, #128] ; (8018f90 ) - 8018f0e: 6818 ldr r0, [r3, #0] - 8018f10: 687b ldr r3, [r7, #4] - 8018f12: 9300 str r3, [sp, #0] - 8018f14: 2343 movs r3, #67 ; 0x43 - 8018f16: 4a1f ldr r2, [pc, #124] ; (8018f94 ) - 8018f18: 6979 ldr r1, [r7, #20] - 8018f1a: f7fe fda5 bl 8017a68 - 8018f1e: 4603 mov r3, r0 - 8018f20: 77fb strb r3, [r7, #31] + 8018f1c: 4b20 ldr r3, [pc, #128] ; (8018fa0 ) + 8018f1e: 6818 ldr r0, [r3, #0] + 8018f20: 687b ldr r3, [r7, #4] + 8018f22: 9300 str r3, [sp, #0] + 8018f24: 2343 movs r3, #67 ; 0x43 + 8018f26: 4a1f ldr r2, [pc, #124] ; (8018fa4 ) + 8018f28: 6979 ldr r1, [r7, #20] + 8018f2a: f7fe fda5 bl 8017a78 + 8018f2e: 4603 mov r3, r0 + 8018f30: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 8018f22: 6978 ldr r0, [r7, #20] - 8018f24: f7f8 fe60 bl 8011be8 - 8018f28: e001 b.n 8018f2e + 8018f32: 6978 ldr r0, [r7, #20] + 8018f34: f7f8 fe60 bl 8011bf8 + 8018f38: e001 b.n 8018f3e LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind: REBINDING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_rebind: could not allocate DHCP request\n")); result = ERR_MEM; - 8018f2a: 23ff movs r3, #255 ; 0xff - 8018f2c: 77fb strb r3, [r7, #31] + 8018f3a: 23ff movs r3, #255 ; 0xff + 8018f3c: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 8018f2e: 69bb ldr r3, [r7, #24] - 8018f30: 799b ldrb r3, [r3, #6] - 8018f32: 2bff cmp r3, #255 ; 0xff - 8018f34: d005 beq.n 8018f42 - dhcp->tries++; - 8018f36: 69bb ldr r3, [r7, #24] - 8018f38: 799b ldrb r3, [r3, #6] - 8018f3a: 3301 adds r3, #1 - 8018f3c: b2da uxtb r2, r3 8018f3e: 69bb ldr r3, [r7, #24] - 8018f40: 719a strb r2, [r3, #6] + 8018f40: 799b ldrb r3, [r3, #6] + 8018f42: 2bff cmp r3, #255 ; 0xff + 8018f44: d005 beq.n 8018f52 + dhcp->tries++; + 8018f46: 69bb ldr r3, [r7, #24] + 8018f48: 799b ldrb r3, [r3, #6] + 8018f4a: 3301 adds r3, #1 + 8018f4c: b2da uxtb r2, r3 + 8018f4e: 69bb ldr r3, [r7, #24] + 8018f50: 719a strb r2, [r3, #6] } msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000); - 8018f42: 69bb ldr r3, [r7, #24] - 8018f44: 799b ldrb r3, [r3, #6] - 8018f46: 2b09 cmp r3, #9 - 8018f48: d80a bhi.n 8018f60 - 8018f4a: 69bb ldr r3, [r7, #24] - 8018f4c: 799b ldrb r3, [r3, #6] - 8018f4e: b29b uxth r3, r3 - 8018f50: 461a mov r2, r3 - 8018f52: 0152 lsls r2, r2, #5 - 8018f54: 1ad2 subs r2, r2, r3 - 8018f56: 0092 lsls r2, r2, #2 - 8018f58: 4413 add r3, r2 - 8018f5a: 00db lsls r3, r3, #3 - 8018f5c: b29b uxth r3, r3 - 8018f5e: e001 b.n 8018f64 - 8018f60: f242 7310 movw r3, #10000 ; 0x2710 - 8018f64: 81fb strh r3, [r7, #14] + 8018f52: 69bb ldr r3, [r7, #24] + 8018f54: 799b ldrb r3, [r3, #6] + 8018f56: 2b09 cmp r3, #9 + 8018f58: d80a bhi.n 8018f70 + 8018f5a: 69bb ldr r3, [r7, #24] + 8018f5c: 799b ldrb r3, [r3, #6] + 8018f5e: b29b uxth r3, r3 + 8018f60: 461a mov r2, r3 + 8018f62: 0152 lsls r2, r2, #5 + 8018f64: 1ad2 subs r2, r2, r3 + 8018f66: 0092 lsls r2, r2, #2 + 8018f68: 4413 add r3, r2 + 8018f6a: 00db lsls r3, r3, #3 + 8018f6c: b29b uxth r3, r3 + 8018f6e: e001 b.n 8018f74 + 8018f70: f242 7310 movw r3, #10000 ; 0x2710 + 8018f74: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 8018f66: 89fb ldrh r3, [r7, #14] - 8018f68: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 8018f6c: 4a0a ldr r2, [pc, #40] ; (8018f98 ) - 8018f6e: fb82 1203 smull r1, r2, r2, r3 - 8018f72: 1152 asrs r2, r2, #5 - 8018f74: 17db asrs r3, r3, #31 - 8018f76: 1ad3 subs r3, r2, r3 - 8018f78: b29a uxth r2, r3 - 8018f7a: 69bb ldr r3, [r7, #24] - 8018f7c: 811a strh r2, [r3, #8] + 8018f76: 89fb ldrh r3, [r7, #14] + 8018f78: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 8018f7c: 4a0a ldr r2, [pc, #40] ; (8018fa8 ) + 8018f7e: fb82 1203 smull r1, r2, r2, r3 + 8018f82: 1152 asrs r2, r2, #5 + 8018f84: 17db asrs r3, r3, #31 + 8018f86: 1ad3 subs r3, r2, r3 + 8018f88: b29a uxth r2, r3 + 8018f8a: 69bb ldr r3, [r7, #24] + 8018f8c: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_rebind(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 8018f7e: f997 301f ldrsb.w r3, [r7, #31] -} - 8018f82: 4618 mov r0, r3 - 8018f84: 3720 adds r7, #32 - 8018f86: 46bd mov sp, r7 - 8018f88: bd80 pop {r7, pc} - 8018f8a: bf00 nop - 8018f8c: 20000074 .word 0x20000074 - 8018f90: 20008760 .word 0x20008760 - 8018f94: 080227fc .word 0x080227fc - 8018f98: 10624dd3 .word 0x10624dd3 - -08018f9c : + 8018f8e: f997 301f ldrsb.w r3, [r7, #31] +} + 8018f92: 4618 mov r0, r3 + 8018f94: 3720 adds r7, #32 + 8018f96: 46bd mov sp, r7 + 8018f98: bd80 pop {r7, pc} + 8018f9a: bf00 nop + 8018f9c: 20000074 .word 0x20000074 + 8018fa0: 20008760 .word 0x20008760 + 8018fa4: 0802280c .word 0x0802280c + 8018fa8: 10624dd3 .word 0x10624dd3 + +08018fac : * * @param netif network interface which must reboot */ static err_t dhcp_reboot(struct netif *netif) { - 8018f9c: b5b0 push {r4, r5, r7, lr} - 8018f9e: b08a sub sp, #40 ; 0x28 - 8018fa0: af02 add r7, sp, #8 - 8018fa2: 6078 str r0, [r7, #4] + 8018fac: b5b0 push {r4, r5, r7, lr} + 8018fae: b08a sub sp, #40 ; 0x28 + 8018fb0: af02 add r7, sp, #8 + 8018fb2: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8018fa4: 687b ldr r3, [r7, #4] - 8018fa6: 6a5b ldr r3, [r3, #36] ; 0x24 - 8018fa8: 61bb str r3, [r7, #24] + 8018fb4: 687b ldr r3, [r7, #4] + 8018fb6: 6a5b ldr r3, [r3, #36] ; 0x24 + 8018fb8: 61bb str r3, [r7, #24] u8_t i; struct pbuf *p_out; u16_t options_out_len; LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot()\n")); dhcp_set_state(dhcp, DHCP_STATE_REBOOTING); - 8018faa: 2103 movs r1, #3 - 8018fac: 69b8 ldr r0, [r7, #24] - 8018fae: f000 f945 bl 801923c + 8018fba: 2103 movs r1, #3 + 8018fbc: 69b8 ldr r0, [r7, #24] + 8018fbe: f000 f945 bl 801924c /* create and initialize the DHCP message header */ p_out = dhcp_create_msg(netif, dhcp, DHCP_REQUEST, &options_out_len); - 8018fb2: f107 030c add.w r3, r7, #12 - 8018fb6: 2203 movs r2, #3 - 8018fb8: 69b9 ldr r1, [r7, #24] - 8018fba: 6878 ldr r0, [r7, #4] - 8018fbc: f000 fdc8 bl 8019b50 - 8018fc0: 6178 str r0, [r7, #20] + 8018fc2: f107 030c add.w r3, r7, #12 + 8018fc6: 2203 movs r2, #3 + 8018fc8: 69b9 ldr r1, [r7, #24] + 8018fca: 6878 ldr r0, [r7, #4] + 8018fcc: f000 fdc8 bl 8019b60 + 8018fd0: 6178 str r0, [r7, #20] if (p_out != NULL) { - 8018fc2: 697b ldr r3, [r7, #20] - 8018fc4: 2b00 cmp r3, #0 - 8018fc6: d066 beq.n 8019096 + 8018fd2: 697b ldr r3, [r7, #20] + 8018fd4: 2b00 cmp r3, #0 + 8018fd6: d066 beq.n 80190a6 struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 8018fc8: 697b ldr r3, [r7, #20] - 8018fca: 685b ldr r3, [r3, #4] - 8018fcc: 613b str r3, [r7, #16] + 8018fd8: 697b ldr r3, [r7, #20] + 8018fda: 685b ldr r3, [r3, #4] + 8018fdc: 613b str r3, [r7, #16] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_MAX_MSG_SIZE, DHCP_OPTION_MAX_MSG_SIZE_LEN); - 8018fce: 89b8 ldrh r0, [r7, #12] - 8018fd0: 693b ldr r3, [r7, #16] - 8018fd2: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018fd6: 2302 movs r3, #2 - 8018fd8: 2239 movs r2, #57 ; 0x39 - 8018fda: f000 f949 bl 8019270 - 8018fde: 4603 mov r3, r0 - 8018fe0: 81bb strh r3, [r7, #12] + 8018fde: 89b8 ldrh r0, [r7, #12] + 8018fe0: 693b ldr r3, [r7, #16] + 8018fe2: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8018fe6: 2302 movs r3, #2 + 8018fe8: 2239 movs r2, #57 ; 0x39 + 8018fea: f000 f949 bl 8019280 + 8018fee: 4603 mov r3, r0 + 8018ff0: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_short(options_out_len, msg_out->options, DHCP_MAX_MSG_LEN_MIN_REQUIRED); - 8018fe2: 89b8 ldrh r0, [r7, #12] - 8018fe4: 693b ldr r3, [r7, #16] - 8018fe6: 33f0 adds r3, #240 ; 0xf0 - 8018fe8: f44f 7210 mov.w r2, #576 ; 0x240 - 8018fec: 4619 mov r1, r3 - 8018fee: f000 f999 bl 8019324 - 8018ff2: 4603 mov r3, r0 - 8018ff4: 81bb strh r3, [r7, #12] + 8018ff2: 89b8 ldrh r0, [r7, #12] + 8018ff4: 693b ldr r3, [r7, #16] + 8018ff6: 33f0 adds r3, #240 ; 0xf0 + 8018ff8: f44f 7210 mov.w r2, #576 ; 0x240 + 8018ffc: 4619 mov r1, r3 + 8018ffe: f000 f999 bl 8019334 + 8019002: 4603 mov r3, r0 + 8019004: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_REQUESTED_IP, 4); - 8018ff6: 89b8 ldrh r0, [r7, #12] - 8018ff8: 693b ldr r3, [r7, #16] - 8018ffa: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8018ffe: 2304 movs r3, #4 - 8019000: 2232 movs r2, #50 ; 0x32 - 8019002: f000 f935 bl 8019270 - 8019006: 4603 mov r3, r0 - 8019008: 81bb strh r3, [r7, #12] + 8019006: 89b8 ldrh r0, [r7, #12] + 8019008: 693b ldr r3, [r7, #16] + 801900a: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 801900e: 2304 movs r3, #4 + 8019010: 2232 movs r2, #50 ; 0x32 + 8019012: f000 f935 bl 8019280 + 8019016: 4603 mov r3, r0 + 8019018: 81bb strh r3, [r7, #12] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(&dhcp->offered_ip_addr))); - 801900a: 89bc ldrh r4, [r7, #12] - 801900c: 693b ldr r3, [r7, #16] - 801900e: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 8019012: 69bb ldr r3, [r7, #24] - 8019014: 69db ldr r3, [r3, #28] - 8019016: 4618 mov r0, r3 - 8019018: f7f7 fa47 bl 80104aa - 801901c: 4603 mov r3, r0 - 801901e: 461a mov r2, r3 - 8019020: 4629 mov r1, r5 - 8019022: 4620 mov r0, r4 - 8019024: f000 f9b0 bl 8019388 - 8019028: 4603 mov r3, r0 - 801902a: 81bb strh r3, [r7, #12] + 801901a: 89bc ldrh r4, [r7, #12] + 801901c: 693b ldr r3, [r7, #16] + 801901e: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 8019022: 69bb ldr r3, [r7, #24] + 8019024: 69db ldr r3, [r3, #28] + 8019026: 4618 mov r0, r3 + 8019028: f7f7 fa47 bl 80104ba + 801902c: 4603 mov r3, r0 + 801902e: 461a mov r2, r3 + 8019030: 4629 mov r1, r5 + 8019032: 4620 mov r0, r4 + 8019034: f000 f9b0 bl 8019398 + 8019038: 4603 mov r3, r0 + 801903a: 81bb strh r3, [r7, #12] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_PARAMETER_REQUEST_LIST, LWIP_ARRAYSIZE(dhcp_discover_request_options)); - 801902c: 89b8 ldrh r0, [r7, #12] - 801902e: 693b ldr r3, [r7, #16] - 8019030: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8019034: 2303 movs r3, #3 - 8019036: 2237 movs r2, #55 ; 0x37 - 8019038: f000 f91a bl 8019270 - 801903c: 4603 mov r3, r0 - 801903e: 81bb strh r3, [r7, #12] + 801903c: 89b8 ldrh r0, [r7, #12] + 801903e: 693b ldr r3, [r7, #16] + 8019040: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8019044: 2303 movs r3, #3 + 8019046: 2237 movs r2, #55 ; 0x37 + 8019048: f000 f91a bl 8019280 + 801904c: 4603 mov r3, r0 + 801904e: 81bb strh r3, [r7, #12] for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { - 8019040: 2300 movs r3, #0 - 8019042: 77bb strb r3, [r7, #30] - 8019044: e00e b.n 8019064 + 8019050: 2300 movs r3, #0 + 8019052: 77bb strb r3, [r7, #30] + 8019054: e00e b.n 8019074 options_out_len = dhcp_option_byte(options_out_len, msg_out->options, dhcp_discover_request_options[i]); - 8019046: 89b8 ldrh r0, [r7, #12] - 8019048: 693b ldr r3, [r7, #16] - 801904a: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 801904e: 7fbb ldrb r3, [r7, #30] - 8019050: 4a29 ldr r2, [pc, #164] ; (80190f8 ) - 8019052: 5cd3 ldrb r3, [r2, r3] - 8019054: 461a mov r2, r3 - 8019056: f000 f93f bl 80192d8 - 801905a: 4603 mov r3, r0 - 801905c: 81bb strh r3, [r7, #12] - for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 8019056: 89b8 ldrh r0, [r7, #12] + 8019058: 693b ldr r3, [r7, #16] + 801905a: f103 01f0 add.w r1, r3, #240 ; 0xf0 801905e: 7fbb ldrb r3, [r7, #30] - 8019060: 3301 adds r3, #1 - 8019062: 77bb strb r3, [r7, #30] - 8019064: 7fbb ldrb r3, [r7, #30] - 8019066: 2b02 cmp r3, #2 - 8019068: d9ed bls.n 8019046 + 8019060: 4a29 ldr r2, [pc, #164] ; (8019108 ) + 8019062: 5cd3 ldrb r3, [r2, r3] + 8019064: 461a mov r2, r3 + 8019066: f000 f93f bl 80192e8 + 801906a: 4603 mov r3, r0 + 801906c: 81bb strh r3, [r7, #12] + for (i = 0; i < LWIP_ARRAYSIZE(dhcp_discover_request_options); i++) { + 801906e: 7fbb ldrb r3, [r7, #30] + 8019070: 3301 adds r3, #1 + 8019072: 77bb strb r3, [r7, #30] + 8019074: 7fbb ldrb r3, [r7, #30] + 8019076: 2b02 cmp r3, #2 + 8019078: d9ed bls.n 8019056 #if LWIP_NETIF_HOSTNAME options_out_len = dhcp_option_hostname(options_out_len, msg_out->options, netif); #endif /* LWIP_NETIF_HOSTNAME */ LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, DHCP_STATE_REBOOTING, msg_out, DHCP_REQUEST, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 801906a: 89b8 ldrh r0, [r7, #12] - 801906c: 693b ldr r3, [r7, #16] - 801906e: 33f0 adds r3, #240 ; 0xf0 - 8019070: 697a ldr r2, [r7, #20] - 8019072: 4619 mov r1, r3 - 8019074: f000 fe42 bl 8019cfc + 801907a: 89b8 ldrh r0, [r7, #12] + 801907c: 693b ldr r3, [r7, #16] + 801907e: 33f0 adds r3, #240 ; 0xf0 + 8019080: 697a ldr r2, [r7, #20] + 8019082: 4619 mov r1, r3 + 8019084: f000 fe42 bl 8019d0c /* broadcast to server */ result = udp_sendto_if(dhcp_pcb, p_out, IP_ADDR_BROADCAST, LWIP_IANA_PORT_DHCP_SERVER, netif); - 8019078: 4b20 ldr r3, [pc, #128] ; (80190fc ) - 801907a: 6818 ldr r0, [r3, #0] - 801907c: 687b ldr r3, [r7, #4] - 801907e: 9300 str r3, [sp, #0] - 8019080: 2343 movs r3, #67 ; 0x43 - 8019082: 4a1f ldr r2, [pc, #124] ; (8019100 ) - 8019084: 6979 ldr r1, [r7, #20] - 8019086: f7fe fcef bl 8017a68 - 801908a: 4603 mov r3, r0 - 801908c: 77fb strb r3, [r7, #31] + 8019088: 4b20 ldr r3, [pc, #128] ; (801910c ) + 801908a: 6818 ldr r0, [r3, #0] + 801908c: 687b ldr r3, [r7, #4] + 801908e: 9300 str r3, [sp, #0] + 8019090: 2343 movs r3, #67 ; 0x43 + 8019092: 4a1f ldr r2, [pc, #124] ; (8019110 ) + 8019094: 6979 ldr r1, [r7, #20] + 8019096: f7fe fcef bl 8017a78 + 801909a: 4603 mov r3, r0 + 801909c: 77fb strb r3, [r7, #31] pbuf_free(p_out); - 801908e: 6978 ldr r0, [r7, #20] - 8019090: f7f8 fdaa bl 8011be8 - 8019094: e001 b.n 801909a + 801909e: 6978 ldr r0, [r7, #20] + 80190a0: f7f8 fdaa bl 8011bf8 + 80190a4: e001 b.n 80190aa LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot: REBOOTING\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_reboot: could not allocate DHCP request\n")); result = ERR_MEM; - 8019096: 23ff movs r3, #255 ; 0xff - 8019098: 77fb strb r3, [r7, #31] + 80190a6: 23ff movs r3, #255 ; 0xff + 80190a8: 77fb strb r3, [r7, #31] } if (dhcp->tries < 255) { - 801909a: 69bb ldr r3, [r7, #24] - 801909c: 799b ldrb r3, [r3, #6] - 801909e: 2bff cmp r3, #255 ; 0xff - 80190a0: d005 beq.n 80190ae - dhcp->tries++; - 80190a2: 69bb ldr r3, [r7, #24] - 80190a4: 799b ldrb r3, [r3, #6] - 80190a6: 3301 adds r3, #1 - 80190a8: b2da uxtb r2, r3 80190aa: 69bb ldr r3, [r7, #24] - 80190ac: 719a strb r2, [r3, #6] + 80190ac: 799b ldrb r3, [r3, #6] + 80190ae: 2bff cmp r3, #255 ; 0xff + 80190b0: d005 beq.n 80190be + dhcp->tries++; + 80190b2: 69bb ldr r3, [r7, #24] + 80190b4: 799b ldrb r3, [r3, #6] + 80190b6: 3301 adds r3, #1 + 80190b8: b2da uxtb r2, r3 + 80190ba: 69bb ldr r3, [r7, #24] + 80190bc: 719a strb r2, [r3, #6] } msecs = (u16_t)(dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000); - 80190ae: 69bb ldr r3, [r7, #24] - 80190b0: 799b ldrb r3, [r3, #6] - 80190b2: 2b09 cmp r3, #9 - 80190b4: d80a bhi.n 80190cc - 80190b6: 69bb ldr r3, [r7, #24] - 80190b8: 799b ldrb r3, [r3, #6] - 80190ba: b29b uxth r3, r3 - 80190bc: 461a mov r2, r3 - 80190be: 0152 lsls r2, r2, #5 - 80190c0: 1ad2 subs r2, r2, r3 - 80190c2: 0092 lsls r2, r2, #2 - 80190c4: 4413 add r3, r2 - 80190c6: 00db lsls r3, r3, #3 - 80190c8: b29b uxth r3, r3 - 80190ca: e001 b.n 80190d0 - 80190cc: f242 7310 movw r3, #10000 ; 0x2710 - 80190d0: 81fb strh r3, [r7, #14] + 80190be: 69bb ldr r3, [r7, #24] + 80190c0: 799b ldrb r3, [r3, #6] + 80190c2: 2b09 cmp r3, #9 + 80190c4: d80a bhi.n 80190dc + 80190c6: 69bb ldr r3, [r7, #24] + 80190c8: 799b ldrb r3, [r3, #6] + 80190ca: b29b uxth r3, r3 + 80190cc: 461a mov r2, r3 + 80190ce: 0152 lsls r2, r2, #5 + 80190d0: 1ad2 subs r2, r2, r3 + 80190d2: 0092 lsls r2, r2, #2 + 80190d4: 4413 add r3, r2 + 80190d6: 00db lsls r3, r3, #3 + 80190d8: b29b uxth r3, r3 + 80190da: e001 b.n 80190e0 + 80190dc: f242 7310 movw r3, #10000 ; 0x2710 + 80190e0: 81fb strh r3, [r7, #14] dhcp->request_timeout = (u16_t)((msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS); - 80190d2: 89fb ldrh r3, [r7, #14] - 80190d4: f203 13f3 addw r3, r3, #499 ; 0x1f3 - 80190d8: 4a0a ldr r2, [pc, #40] ; (8019104 ) - 80190da: fb82 1203 smull r1, r2, r2, r3 - 80190de: 1152 asrs r2, r2, #5 - 80190e0: 17db asrs r3, r3, #31 - 80190e2: 1ad3 subs r3, r2, r3 - 80190e4: b29a uxth r2, r3 - 80190e6: 69bb ldr r3, [r7, #24] - 80190e8: 811a strh r2, [r3, #8] + 80190e2: 89fb ldrh r3, [r7, #14] + 80190e4: f203 13f3 addw r3, r3, #499 ; 0x1f3 + 80190e8: 4a0a ldr r2, [pc, #40] ; (8019114 ) + 80190ea: fb82 1203 smull r1, r2, r2, r3 + 80190ee: 1152 asrs r2, r2, #5 + 80190f0: 17db asrs r3, r3, #31 + 80190f2: 1ad3 subs r3, r2, r3 + 80190f4: b29a uxth r2, r3 + 80190f6: 69bb ldr r3, [r7, #24] + 80190f8: 811a strh r2, [r3, #8] LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, ("dhcp_reboot(): set request timeout %"U16_F" msecs\n", msecs)); return result; - 80190ea: f997 301f ldrsb.w r3, [r7, #31] -} - 80190ee: 4618 mov r0, r3 - 80190f0: 3720 adds r7, #32 - 80190f2: 46bd mov sp, r7 - 80190f4: bdb0 pop {r4, r5, r7, pc} - 80190f6: bf00 nop - 80190f8: 20000074 .word 0x20000074 - 80190fc: 20008760 .word 0x20008760 - 8019100: 080227fc .word 0x080227fc - 8019104: 10624dd3 .word 0x10624dd3 - -08019108 : + 80190fa: f997 301f ldrsb.w r3, [r7, #31] +} + 80190fe: 4618 mov r0, r3 + 8019100: 3720 adds r7, #32 + 8019102: 46bd mov sp, r7 + 8019104: bdb0 pop {r4, r5, r7, pc} + 8019106: bf00 nop + 8019108: 20000074 .word 0x20000074 + 801910c: 20008760 .word 0x20008760 + 8019110: 0802280c .word 0x0802280c + 8019114: 10624dd3 .word 0x10624dd3 + +08019118 : * * @param netif network interface */ void dhcp_release_and_stop(struct netif *netif) { - 8019108: b5b0 push {r4, r5, r7, lr} - 801910a: b08a sub sp, #40 ; 0x28 - 801910c: af02 add r7, sp, #8 - 801910e: 6078 str r0, [r7, #4] + 8019118: b5b0 push {r4, r5, r7, lr} + 801911a: b08a sub sp, #40 ; 0x28 + 801911c: af02 add r7, sp, #8 + 801911e: 6078 str r0, [r7, #4] struct dhcp *dhcp = netif_dhcp_data(netif); - 8019110: 687b ldr r3, [r7, #4] - 8019112: 6a5b ldr r3, [r3, #36] ; 0x24 - 8019114: 61fb str r3, [r7, #28] + 8019120: 687b ldr r3, [r7, #4] + 8019122: 6a5b ldr r3, [r3, #36] ; 0x24 + 8019124: 61fb str r3, [r7, #28] ip_addr_t server_ip_addr; LWIP_ASSERT_CORE_LOCKED(); LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("dhcp_release_and_stop()\n")); if (dhcp == NULL) { - 8019116: 69fb ldr r3, [r7, #28] - 8019118: 2b00 cmp r3, #0 - 801911a: f000 8084 beq.w 8019226 + 8019126: 69fb ldr r3, [r7, #28] + 8019128: 2b00 cmp r3, #0 + 801912a: f000 8084 beq.w 8019236 return; } /* already off? -> nothing to do */ if (dhcp->state == DHCP_STATE_OFF) { - 801911e: 69fb ldr r3, [r7, #28] - 8019120: 795b ldrb r3, [r3, #5] - 8019122: 2b00 cmp r3, #0 - 8019124: f000 8081 beq.w 801922a + 801912e: 69fb ldr r3, [r7, #28] + 8019130: 795b ldrb r3, [r3, #5] + 8019132: 2b00 cmp r3, #0 + 8019134: f000 8081 beq.w 801923a return; } ip_addr_copy(server_ip_addr, dhcp->server_ip_addr); - 8019128: 69fb ldr r3, [r7, #28] - 801912a: 699b ldr r3, [r3, #24] - 801912c: 613b str r3, [r7, #16] + 8019138: 69fb ldr r3, [r7, #28] + 801913a: 699b ldr r3, [r3, #24] + 801913c: 613b str r3, [r7, #16] /* clean old DHCP offer */ ip_addr_set_zero_ip4(&dhcp->server_ip_addr); - 801912e: 69fb ldr r3, [r7, #28] - 8019130: 2200 movs r2, #0 - 8019132: 619a str r2, [r3, #24] + 801913e: 69fb ldr r3, [r7, #28] + 8019140: 2200 movs r2, #0 + 8019142: 619a str r2, [r3, #24] ip4_addr_set_zero(&dhcp->offered_ip_addr); - 8019134: 69fb ldr r3, [r7, #28] - 8019136: 2200 movs r2, #0 - 8019138: 61da str r2, [r3, #28] + 8019144: 69fb ldr r3, [r7, #28] + 8019146: 2200 movs r2, #0 + 8019148: 61da str r2, [r3, #28] ip4_addr_set_zero(&dhcp->offered_sn_mask); - 801913a: 69fb ldr r3, [r7, #28] - 801913c: 2200 movs r2, #0 - 801913e: 621a str r2, [r3, #32] + 801914a: 69fb ldr r3, [r7, #28] + 801914c: 2200 movs r2, #0 + 801914e: 621a str r2, [r3, #32] ip4_addr_set_zero(&dhcp->offered_gw_addr); - 8019140: 69fb ldr r3, [r7, #28] - 8019142: 2200 movs r2, #0 - 8019144: 625a str r2, [r3, #36] ; 0x24 + 8019150: 69fb ldr r3, [r7, #28] + 8019152: 2200 movs r2, #0 + 8019154: 625a str r2, [r3, #36] ; 0x24 #if LWIP_DHCP_BOOTP_FILE ip4_addr_set_zero(&dhcp->offered_si_addr); #endif /* LWIP_DHCP_BOOTP_FILE */ dhcp->offered_t0_lease = dhcp->offered_t1_renew = dhcp->offered_t2_rebind = 0; - 8019146: 69fb ldr r3, [r7, #28] - 8019148: 2200 movs r2, #0 - 801914a: 631a str r2, [r3, #48] ; 0x30 - 801914c: 69fb ldr r3, [r7, #28] - 801914e: 6b1a ldr r2, [r3, #48] ; 0x30 - 8019150: 69fb ldr r3, [r7, #28] - 8019152: 62da str r2, [r3, #44] ; 0x2c - 8019154: 69fb ldr r3, [r7, #28] - 8019156: 6ada ldr r2, [r3, #44] ; 0x2c - 8019158: 69fb ldr r3, [r7, #28] - 801915a: 629a str r2, [r3, #40] ; 0x28 - dhcp->t1_renew_time = dhcp->t2_rebind_time = dhcp->lease_used = dhcp->t0_timeout = 0; + 8019156: 69fb ldr r3, [r7, #28] + 8019158: 2200 movs r2, #0 + 801915a: 631a str r2, [r3, #48] ; 0x30 801915c: 69fb ldr r3, [r7, #28] - 801915e: 2200 movs r2, #0 - 8019160: 829a strh r2, [r3, #20] - 8019162: 69fb ldr r3, [r7, #28] - 8019164: 8a9a ldrh r2, [r3, #20] - 8019166: 69fb ldr r3, [r7, #28] - 8019168: 825a strh r2, [r3, #18] - 801916a: 69fb ldr r3, [r7, #28] - 801916c: 8a5a ldrh r2, [r3, #18] - 801916e: 69fb ldr r3, [r7, #28] - 8019170: 821a strh r2, [r3, #16] + 801915e: 6b1a ldr r2, [r3, #48] ; 0x30 + 8019160: 69fb ldr r3, [r7, #28] + 8019162: 62da str r2, [r3, #44] ; 0x2c + 8019164: 69fb ldr r3, [r7, #28] + 8019166: 6ada ldr r2, [r3, #44] ; 0x2c + 8019168: 69fb ldr r3, [r7, #28] + 801916a: 629a str r2, [r3, #40] ; 0x28 + dhcp->t1_renew_time = dhcp->t2_rebind_time = dhcp->lease_used = dhcp->t0_timeout = 0; + 801916c: 69fb ldr r3, [r7, #28] + 801916e: 2200 movs r2, #0 + 8019170: 829a strh r2, [r3, #20] 8019172: 69fb ldr r3, [r7, #28] - 8019174: 8a1a ldrh r2, [r3, #16] + 8019174: 8a9a ldrh r2, [r3, #20] 8019176: 69fb ldr r3, [r7, #28] - 8019178: 81da strh r2, [r3, #14] + 8019178: 825a strh r2, [r3, #18] + 801917a: 69fb ldr r3, [r7, #28] + 801917c: 8a5a ldrh r2, [r3, #18] + 801917e: 69fb ldr r3, [r7, #28] + 8019180: 821a strh r2, [r3, #16] + 8019182: 69fb ldr r3, [r7, #28] + 8019184: 8a1a ldrh r2, [r3, #16] + 8019186: 69fb ldr r3, [r7, #28] + 8019188: 81da strh r2, [r3, #14] /* send release message when current IP was assigned via DHCP */ if (dhcp_supplied_address(netif)) { - 801917a: 6878 ldr r0, [r7, #4] - 801917c: f000 fdec bl 8019d58 - 8019180: 4603 mov r3, r0 - 8019182: 2b00 cmp r3, #0 - 8019184: d03b beq.n 80191fe + 801918a: 6878 ldr r0, [r7, #4] + 801918c: f000 fdec bl 8019d68 + 8019190: 4603 mov r3, r0 + 8019192: 2b00 cmp r3, #0 + 8019194: d03b beq.n 801920e /* create and initialize the DHCP message header */ struct pbuf *p_out; u16_t options_out_len; p_out = dhcp_create_msg(netif, dhcp, DHCP_RELEASE, &options_out_len); - 8019186: f107 030e add.w r3, r7, #14 - 801918a: 2207 movs r2, #7 - 801918c: 69f9 ldr r1, [r7, #28] - 801918e: 6878 ldr r0, [r7, #4] - 8019190: f000 fcde bl 8019b50 - 8019194: 61b8 str r0, [r7, #24] + 8019196: f107 030e add.w r3, r7, #14 + 801919a: 2207 movs r2, #7 + 801919c: 69f9 ldr r1, [r7, #28] + 801919e: 6878 ldr r0, [r7, #4] + 80191a0: f000 fcde bl 8019b60 + 80191a4: 61b8 str r0, [r7, #24] if (p_out != NULL) { - 8019196: 69bb ldr r3, [r7, #24] - 8019198: 2b00 cmp r3, #0 - 801919a: d030 beq.n 80191fe + 80191a6: 69bb ldr r3, [r7, #24] + 80191a8: 2b00 cmp r3, #0 + 80191aa: d030 beq.n 801920e struct dhcp_msg *msg_out = (struct dhcp_msg *)p_out->payload; - 801919c: 69bb ldr r3, [r7, #24] - 801919e: 685b ldr r3, [r3, #4] - 80191a0: 617b str r3, [r7, #20] + 80191ac: 69bb ldr r3, [r7, #24] + 80191ae: 685b ldr r3, [r3, #4] + 80191b0: 617b str r3, [r7, #20] options_out_len = dhcp_option(options_out_len, msg_out->options, DHCP_OPTION_SERVER_ID, 4); - 80191a2: 89f8 ldrh r0, [r7, #14] - 80191a4: 697b ldr r3, [r7, #20] - 80191a6: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 80191aa: 2304 movs r3, #4 - 80191ac: 2236 movs r2, #54 ; 0x36 - 80191ae: f000 f85f bl 8019270 - 80191b2: 4603 mov r3, r0 - 80191b4: 81fb strh r3, [r7, #14] + 80191b2: 89f8 ldrh r0, [r7, #14] + 80191b4: 697b ldr r3, [r7, #20] + 80191b6: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 80191ba: 2304 movs r3, #4 + 80191bc: 2236 movs r2, #54 ; 0x36 + 80191be: f000 f85f bl 8019280 + 80191c2: 4603 mov r3, r0 + 80191c4: 81fb strh r3, [r7, #14] options_out_len = dhcp_option_long(options_out_len, msg_out->options, lwip_ntohl(ip4_addr_get_u32(ip_2_ip4(&server_ip_addr)))); - 80191b6: 89fc ldrh r4, [r7, #14] - 80191b8: 697b ldr r3, [r7, #20] - 80191ba: f103 05f0 add.w r5, r3, #240 ; 0xf0 - 80191be: 693b ldr r3, [r7, #16] - 80191c0: 4618 mov r0, r3 - 80191c2: f7f7 f972 bl 80104aa - 80191c6: 4603 mov r3, r0 - 80191c8: 461a mov r2, r3 - 80191ca: 4629 mov r1, r5 - 80191cc: 4620 mov r0, r4 - 80191ce: f000 f8db bl 8019388 - 80191d2: 4603 mov r3, r0 - 80191d4: 81fb strh r3, [r7, #14] + 80191c6: 89fc ldrh r4, [r7, #14] + 80191c8: 697b ldr r3, [r7, #20] + 80191ca: f103 05f0 add.w r5, r3, #240 ; 0xf0 + 80191ce: 693b ldr r3, [r7, #16] + 80191d0: 4618 mov r0, r3 + 80191d2: f7f7 f972 bl 80104ba + 80191d6: 4603 mov r3, r0 + 80191d8: 461a mov r2, r3 + 80191da: 4629 mov r1, r5 + 80191dc: 4620 mov r0, r4 + 80191de: f000 f8db bl 8019398 + 80191e2: 4603 mov r3, r0 + 80191e4: 81fb strh r3, [r7, #14] LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, dhcp->state, msg_out, DHCP_RELEASE, &options_out_len); dhcp_option_trailer(options_out_len, msg_out->options, p_out); - 80191d6: 89f8 ldrh r0, [r7, #14] - 80191d8: 697b ldr r3, [r7, #20] - 80191da: 33f0 adds r3, #240 ; 0xf0 - 80191dc: 69ba ldr r2, [r7, #24] - 80191de: 4619 mov r1, r3 - 80191e0: f000 fd8c bl 8019cfc + 80191e6: 89f8 ldrh r0, [r7, #14] + 80191e8: 697b ldr r3, [r7, #20] + 80191ea: 33f0 adds r3, #240 ; 0xf0 + 80191ec: 69ba ldr r2, [r7, #24] + 80191ee: 4619 mov r1, r3 + 80191f0: f000 fd8c bl 8019d0c udp_sendto_if(dhcp_pcb, p_out, &server_ip_addr, LWIP_IANA_PORT_DHCP_SERVER, netif); - 80191e4: 4b13 ldr r3, [pc, #76] ; (8019234 ) - 80191e6: 6818 ldr r0, [r3, #0] - 80191e8: f107 0210 add.w r2, r7, #16 - 80191ec: 687b ldr r3, [r7, #4] - 80191ee: 9300 str r3, [sp, #0] - 80191f0: 2343 movs r3, #67 ; 0x43 - 80191f2: 69b9 ldr r1, [r7, #24] - 80191f4: f7fe fc38 bl 8017a68 + 80191f4: 4b13 ldr r3, [pc, #76] ; (8019244 ) + 80191f6: 6818 ldr r0, [r3, #0] + 80191f8: f107 0210 add.w r2, r7, #16 + 80191fc: 687b ldr r3, [r7, #4] + 80191fe: 9300 str r3, [sp, #0] + 8019200: 2343 movs r3, #67 ; 0x43 + 8019202: 69b9 ldr r1, [r7, #24] + 8019204: f7fe fc38 bl 8017a78 pbuf_free(p_out); - 80191f8: 69b8 ldr r0, [r7, #24] - 80191fa: f7f8 fcf5 bl 8011be8 + 8019208: 69b8 ldr r0, [r7, #24] + 801920a: f7f8 fcf5 bl 8011bf8 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_release: could not allocate DHCP request\n")); } } /* remove IP address from interface (prevents routing from selecting this interface) */ netif_set_addr(netif, IP4_ADDR_ANY4, IP4_ADDR_ANY4, IP4_ADDR_ANY4); - 80191fe: 4b0e ldr r3, [pc, #56] ; (8019238 ) - 8019200: 4a0d ldr r2, [pc, #52] ; (8019238 ) - 8019202: 490d ldr r1, [pc, #52] ; (8019238 ) - 8019204: 6878 ldr r0, [r7, #4] - 8019206: f7f7 ffe5 bl 80111d4 + 801920e: 4b0e ldr r3, [pc, #56] ; (8019248 ) + 8019210: 4a0d ldr r2, [pc, #52] ; (8019248 ) + 8019212: 490d ldr r1, [pc, #52] ; (8019248 ) + 8019214: 6878 ldr r0, [r7, #4] + 8019216: f7f7 ffe5 bl 80111e4 autoip_stop(netif); dhcp->autoip_coop_state = DHCP_AUTOIP_COOP_STATE_OFF; } #endif /* LWIP_DHCP_AUTOIP_COOP */ dhcp_set_state(dhcp, DHCP_STATE_OFF); - 801920a: 2100 movs r1, #0 - 801920c: 69f8 ldr r0, [r7, #28] - 801920e: f000 f815 bl 801923c + 801921a: 2100 movs r1, #0 + 801921c: 69f8 ldr r0, [r7, #28] + 801921e: f000 f815 bl 801924c if (dhcp->pcb_allocated != 0) { - 8019212: 69fb ldr r3, [r7, #28] - 8019214: 791b ldrb r3, [r3, #4] - 8019216: 2b00 cmp r3, #0 - 8019218: d008 beq.n 801922c + 8019222: 69fb ldr r3, [r7, #28] + 8019224: 791b ldrb r3, [r3, #4] + 8019226: 2b00 cmp r3, #0 + 8019228: d008 beq.n 801923c dhcp_dec_pcb_refcount(); /* free DHCP PCB if not needed any more */ - 801921a: f7fe ff71 bl 8018100 + 801922a: f7fe ff71 bl 8018110 dhcp->pcb_allocated = 0; - 801921e: 69fb ldr r3, [r7, #28] - 8019220: 2200 movs r2, #0 - 8019222: 711a strb r2, [r3, #4] - 8019224: e002 b.n 801922c + 801922e: 69fb ldr r3, [r7, #28] + 8019230: 2200 movs r2, #0 + 8019232: 711a strb r2, [r3, #4] + 8019234: e002 b.n 801923c return; - 8019226: bf00 nop - 8019228: e000 b.n 801922c + 8019236: bf00 nop + 8019238: e000 b.n 801923c return; - 801922a: bf00 nop + 801923a: bf00 nop } } - 801922c: 3720 adds r7, #32 - 801922e: 46bd mov sp, r7 - 8019230: bdb0 pop {r4, r5, r7, pc} - 8019232: bf00 nop - 8019234: 20008760 .word 0x20008760 - 8019238: 080227f8 .word 0x080227f8 + 801923c: 3720 adds r7, #32 + 801923e: 46bd mov sp, r7 + 8019240: bdb0 pop {r4, r5, r7, pc} + 8019242: bf00 nop + 8019244: 20008760 .word 0x20008760 + 8019248: 08022808 .word 0x08022808 -0801923c : +0801924c : * * If the state changed, reset the number of tries. */ static void dhcp_set_state(struct dhcp *dhcp, u8_t new_state) { - 801923c: b480 push {r7} - 801923e: b083 sub sp, #12 - 8019240: af00 add r7, sp, #0 - 8019242: 6078 str r0, [r7, #4] - 8019244: 460b mov r3, r1 - 8019246: 70fb strb r3, [r7, #3] + 801924c: b480 push {r7} + 801924e: b083 sub sp, #12 + 8019250: af00 add r7, sp, #0 + 8019252: 6078 str r0, [r7, #4] + 8019254: 460b mov r3, r1 + 8019256: 70fb strb r3, [r7, #3] if (new_state != dhcp->state) { - 8019248: 687b ldr r3, [r7, #4] - 801924a: 795b ldrb r3, [r3, #5] - 801924c: 78fa ldrb r2, [r7, #3] - 801924e: 429a cmp r2, r3 - 8019250: d008 beq.n 8019264 + 8019258: 687b ldr r3, [r7, #4] + 801925a: 795b ldrb r3, [r3, #5] + 801925c: 78fa ldrb r2, [r7, #3] + 801925e: 429a cmp r2, r3 + 8019260: d008 beq.n 8019274 dhcp->state = new_state; - 8019252: 687b ldr r3, [r7, #4] - 8019254: 78fa ldrb r2, [r7, #3] - 8019256: 715a strb r2, [r3, #5] + 8019262: 687b ldr r3, [r7, #4] + 8019264: 78fa ldrb r2, [r7, #3] + 8019266: 715a strb r2, [r3, #5] dhcp->tries = 0; - 8019258: 687b ldr r3, [r7, #4] - 801925a: 2200 movs r2, #0 - 801925c: 719a strb r2, [r3, #6] + 8019268: 687b ldr r3, [r7, #4] + 801926a: 2200 movs r2, #0 + 801926c: 719a strb r2, [r3, #6] dhcp->request_timeout = 0; - 801925e: 687b ldr r3, [r7, #4] - 8019260: 2200 movs r2, #0 - 8019262: 811a strh r2, [r3, #8] + 801926e: 687b ldr r3, [r7, #4] + 8019270: 2200 movs r2, #0 + 8019272: 811a strh r2, [r3, #8] } } - 8019264: bf00 nop - 8019266: 370c adds r7, #12 - 8019268: 46bd mov sp, r7 - 801926a: f85d 7b04 ldr.w r7, [sp], #4 - 801926e: 4770 bx lr + 8019274: bf00 nop + 8019276: 370c adds r7, #12 + 8019278: 46bd mov sp, r7 + 801927a: f85d 7b04 ldr.w r7, [sp], #4 + 801927e: 4770 bx lr -08019270 : +08019280 : * DHCP message. * */ static u16_t dhcp_option(u16_t options_out_len, u8_t *options, u8_t option_type, u8_t option_len) { - 8019270: b580 push {r7, lr} - 8019272: b082 sub sp, #8 - 8019274: af00 add r7, sp, #0 - 8019276: 6039 str r1, [r7, #0] - 8019278: 4611 mov r1, r2 - 801927a: 461a mov r2, r3 - 801927c: 4603 mov r3, r0 - 801927e: 80fb strh r3, [r7, #6] - 8019280: 460b mov r3, r1 - 8019282: 717b strb r3, [r7, #5] - 8019284: 4613 mov r3, r2 - 8019286: 713b strb r3, [r7, #4] + 8019280: b580 push {r7, lr} + 8019282: b082 sub sp, #8 + 8019284: af00 add r7, sp, #0 + 8019286: 6039 str r1, [r7, #0] + 8019288: 4611 mov r1, r2 + 801928a: 461a mov r2, r3 + 801928c: 4603 mov r3, r0 + 801928e: 80fb strh r3, [r7, #6] + 8019290: 460b mov r3, r1 + 8019292: 717b strb r3, [r7, #5] + 8019294: 4613 mov r3, r2 + 8019296: 713b strb r3, [r7, #4] LWIP_ASSERT("dhcp_option: options_out_len + 2 + option_len <= DHCP_OPTIONS_LEN", options_out_len + 2U + option_len <= DHCP_OPTIONS_LEN); - 8019288: 88fa ldrh r2, [r7, #6] - 801928a: 793b ldrb r3, [r7, #4] - 801928c: 4413 add r3, r2 - 801928e: 3302 adds r3, #2 - 8019290: 2b44 cmp r3, #68 ; 0x44 - 8019292: d906 bls.n 80192a2 - 8019294: 4b0d ldr r3, [pc, #52] ; (80192cc ) - 8019296: f240 529a movw r2, #1434 ; 0x59a - 801929a: 490d ldr r1, [pc, #52] ; (80192d0 ) - 801929c: 480d ldr r0, [pc, #52] ; (80192d4 ) - 801929e: f003 f9d3 bl 801c648 + 8019298: 88fa ldrh r2, [r7, #6] + 801929a: 793b ldrb r3, [r7, #4] + 801929c: 4413 add r3, r2 + 801929e: 3302 adds r3, #2 + 80192a0: 2b44 cmp r3, #68 ; 0x44 + 80192a2: d906 bls.n 80192b2 + 80192a4: 4b0d ldr r3, [pc, #52] ; (80192dc ) + 80192a6: f240 529a movw r2, #1434 ; 0x59a + 80192aa: 490d ldr r1, [pc, #52] ; (80192e0 ) + 80192ac: 480d ldr r0, [pc, #52] ; (80192e4 ) + 80192ae: f003 f9d3 bl 801c658 options[options_out_len++] = option_type; - 80192a2: 88fb ldrh r3, [r7, #6] - 80192a4: 1c5a adds r2, r3, #1 - 80192a6: 80fa strh r2, [r7, #6] - 80192a8: 461a mov r2, r3 - 80192aa: 683b ldr r3, [r7, #0] - 80192ac: 4413 add r3, r2 - 80192ae: 797a ldrb r2, [r7, #5] - 80192b0: 701a strb r2, [r3, #0] - options[options_out_len++] = option_len; 80192b2: 88fb ldrh r3, [r7, #6] 80192b4: 1c5a adds r2, r3, #1 80192b6: 80fa strh r2, [r7, #6] 80192b8: 461a mov r2, r3 80192ba: 683b ldr r3, [r7, #0] 80192bc: 4413 add r3, r2 - 80192be: 793a ldrb r2, [r7, #4] + 80192be: 797a ldrb r2, [r7, #5] 80192c0: 701a strb r2, [r3, #0] - return options_out_len; + options[options_out_len++] = option_len; 80192c2: 88fb ldrh r3, [r7, #6] + 80192c4: 1c5a adds r2, r3, #1 + 80192c6: 80fa strh r2, [r7, #6] + 80192c8: 461a mov r2, r3 + 80192ca: 683b ldr r3, [r7, #0] + 80192cc: 4413 add r3, r2 + 80192ce: 793a ldrb r2, [r7, #4] + 80192d0: 701a strb r2, [r3, #0] + return options_out_len; + 80192d2: 88fb ldrh r3, [r7, #6] } - 80192c4: 4618 mov r0, r3 - 80192c6: 3708 adds r7, #8 - 80192c8: 46bd mov sp, r7 - 80192ca: bd80 pop {r7, pc} - 80192cc: 0801fd28 .word 0x0801fd28 - 80192d0: 0801febc .word 0x0801febc - 80192d4: 0801fd88 .word 0x0801fd88 + 80192d4: 4618 mov r0, r3 + 80192d6: 3708 adds r7, #8 + 80192d8: 46bd mov sp, r7 + 80192da: bd80 pop {r7, pc} + 80192dc: 0801fd38 .word 0x0801fd38 + 80192e0: 0801fecc .word 0x0801fecc + 80192e4: 0801fd98 .word 0x0801fd98 -080192d8 : +080192e8 : * Concatenate a single byte to the outgoing DHCP message. * */ static u16_t dhcp_option_byte(u16_t options_out_len, u8_t *options, u8_t value) { - 80192d8: b580 push {r7, lr} - 80192da: b082 sub sp, #8 - 80192dc: af00 add r7, sp, #0 - 80192de: 4603 mov r3, r0 - 80192e0: 6039 str r1, [r7, #0] - 80192e2: 80fb strh r3, [r7, #6] - 80192e4: 4613 mov r3, r2 - 80192e6: 717b strb r3, [r7, #5] + 80192e8: b580 push {r7, lr} + 80192ea: b082 sub sp, #8 + 80192ec: af00 add r7, sp, #0 + 80192ee: 4603 mov r3, r0 + 80192f0: 6039 str r1, [r7, #0] + 80192f2: 80fb strh r3, [r7, #6] + 80192f4: 4613 mov r3, r2 + 80192f6: 717b strb r3, [r7, #5] LWIP_ASSERT("dhcp_option_byte: options_out_len < DHCP_OPTIONS_LEN", options_out_len < DHCP_OPTIONS_LEN); - 80192e8: 88fb ldrh r3, [r7, #6] - 80192ea: 2b43 cmp r3, #67 ; 0x43 - 80192ec: d906 bls.n 80192fc - 80192ee: 4b0a ldr r3, [pc, #40] ; (8019318 ) - 80192f0: f240 52a6 movw r2, #1446 ; 0x5a6 - 80192f4: 4909 ldr r1, [pc, #36] ; (801931c ) - 80192f6: 480a ldr r0, [pc, #40] ; (8019320 ) - 80192f8: f003 f9a6 bl 801c648 + 80192f8: 88fb ldrh r3, [r7, #6] + 80192fa: 2b43 cmp r3, #67 ; 0x43 + 80192fc: d906 bls.n 801930c + 80192fe: 4b0a ldr r3, [pc, #40] ; (8019328 ) + 8019300: f240 52a6 movw r2, #1446 ; 0x5a6 + 8019304: 4909 ldr r1, [pc, #36] ; (801932c ) + 8019306: 480a ldr r0, [pc, #40] ; (8019330 ) + 8019308: f003 f9a6 bl 801c658 options[options_out_len++] = value; - 80192fc: 88fb ldrh r3, [r7, #6] - 80192fe: 1c5a adds r2, r3, #1 - 8019300: 80fa strh r2, [r7, #6] - 8019302: 461a mov r2, r3 - 8019304: 683b ldr r3, [r7, #0] - 8019306: 4413 add r3, r2 - 8019308: 797a ldrb r2, [r7, #5] - 801930a: 701a strb r2, [r3, #0] - return options_out_len; 801930c: 88fb ldrh r3, [r7, #6] + 801930e: 1c5a adds r2, r3, #1 + 8019310: 80fa strh r2, [r7, #6] + 8019312: 461a mov r2, r3 + 8019314: 683b ldr r3, [r7, #0] + 8019316: 4413 add r3, r2 + 8019318: 797a ldrb r2, [r7, #5] + 801931a: 701a strb r2, [r3, #0] + return options_out_len; + 801931c: 88fb ldrh r3, [r7, #6] } - 801930e: 4618 mov r0, r3 - 8019310: 3708 adds r7, #8 - 8019312: 46bd mov sp, r7 - 8019314: bd80 pop {r7, pc} - 8019316: bf00 nop - 8019318: 0801fd28 .word 0x0801fd28 - 801931c: 0801ff00 .word 0x0801ff00 - 8019320: 0801fd88 .word 0x0801fd88 + 801931e: 4618 mov r0, r3 + 8019320: 3708 adds r7, #8 + 8019322: 46bd mov sp, r7 + 8019324: bd80 pop {r7, pc} + 8019326: bf00 nop + 8019328: 0801fd38 .word 0x0801fd38 + 801932c: 0801ff10 .word 0x0801ff10 + 8019330: 0801fd98 .word 0x0801fd98 -08019324 : +08019334 : static u16_t dhcp_option_short(u16_t options_out_len, u8_t *options, u16_t value) { - 8019324: b580 push {r7, lr} - 8019326: b082 sub sp, #8 - 8019328: af00 add r7, sp, #0 - 801932a: 4603 mov r3, r0 - 801932c: 6039 str r1, [r7, #0] - 801932e: 80fb strh r3, [r7, #6] - 8019330: 4613 mov r3, r2 - 8019332: 80bb strh r3, [r7, #4] + 8019334: b580 push {r7, lr} + 8019336: b082 sub sp, #8 + 8019338: af00 add r7, sp, #0 + 801933a: 4603 mov r3, r0 + 801933c: 6039 str r1, [r7, #0] + 801933e: 80fb strh r3, [r7, #6] + 8019340: 4613 mov r3, r2 + 8019342: 80bb strh r3, [r7, #4] LWIP_ASSERT("dhcp_option_short: options_out_len + 2 <= DHCP_OPTIONS_LEN", options_out_len + 2U <= DHCP_OPTIONS_LEN); - 8019334: 88fb ldrh r3, [r7, #6] - 8019336: 3302 adds r3, #2 - 8019338: 2b44 cmp r3, #68 ; 0x44 - 801933a: d906 bls.n 801934a - 801933c: 4b0f ldr r3, [pc, #60] ; (801937c ) - 801933e: f240 52ae movw r2, #1454 ; 0x5ae - 8019342: 490f ldr r1, [pc, #60] ; (8019380 ) - 8019344: 480f ldr r0, [pc, #60] ; (8019384 ) - 8019346: f003 f97f bl 801c648 + 8019344: 88fb ldrh r3, [r7, #6] + 8019346: 3302 adds r3, #2 + 8019348: 2b44 cmp r3, #68 ; 0x44 + 801934a: d906 bls.n 801935a + 801934c: 4b0f ldr r3, [pc, #60] ; (801938c ) + 801934e: f240 52ae movw r2, #1454 ; 0x5ae + 8019352: 490f ldr r1, [pc, #60] ; (8019390 ) + 8019354: 480f ldr r0, [pc, #60] ; (8019394 ) + 8019356: f003 f97f bl 801c658 options[options_out_len++] = (u8_t)((value & 0xff00U) >> 8); - 801934a: 88bb ldrh r3, [r7, #4] - 801934c: 0a1b lsrs r3, r3, #8 - 801934e: b29a uxth r2, r3 - 8019350: 88fb ldrh r3, [r7, #6] - 8019352: 1c59 adds r1, r3, #1 - 8019354: 80f9 strh r1, [r7, #6] - 8019356: 4619 mov r1, r3 - 8019358: 683b ldr r3, [r7, #0] - 801935a: 440b add r3, r1 - 801935c: b2d2 uxtb r2, r2 - 801935e: 701a strb r2, [r3, #0] - options[options_out_len++] = (u8_t) (value & 0x00ffU); + 801935a: 88bb ldrh r3, [r7, #4] + 801935c: 0a1b lsrs r3, r3, #8 + 801935e: b29a uxth r2, r3 8019360: 88fb ldrh r3, [r7, #6] - 8019362: 1c5a adds r2, r3, #1 - 8019364: 80fa strh r2, [r7, #6] - 8019366: 461a mov r2, r3 + 8019362: 1c59 adds r1, r3, #1 + 8019364: 80f9 strh r1, [r7, #6] + 8019366: 4619 mov r1, r3 8019368: 683b ldr r3, [r7, #0] - 801936a: 4413 add r3, r2 - 801936c: 88ba ldrh r2, [r7, #4] - 801936e: b2d2 uxtb r2, r2 - 8019370: 701a strb r2, [r3, #0] + 801936a: 440b add r3, r1 + 801936c: b2d2 uxtb r2, r2 + 801936e: 701a strb r2, [r3, #0] + options[options_out_len++] = (u8_t) (value & 0x00ffU); + 8019370: 88fb ldrh r3, [r7, #6] + 8019372: 1c5a adds r2, r3, #1 + 8019374: 80fa strh r2, [r7, #6] + 8019376: 461a mov r2, r3 + 8019378: 683b ldr r3, [r7, #0] + 801937a: 4413 add r3, r2 + 801937c: 88ba ldrh r2, [r7, #4] + 801937e: b2d2 uxtb r2, r2 + 8019380: 701a strb r2, [r3, #0] return options_out_len; - 8019372: 88fb ldrh r3, [r7, #6] + 8019382: 88fb ldrh r3, [r7, #6] } - 8019374: 4618 mov r0, r3 - 8019376: 3708 adds r7, #8 - 8019378: 46bd mov sp, r7 - 801937a: bd80 pop {r7, pc} - 801937c: 0801fd28 .word 0x0801fd28 - 8019380: 0801ff38 .word 0x0801ff38 - 8019384: 0801fd88 .word 0x0801fd88 + 8019384: 4618 mov r0, r3 + 8019386: 3708 adds r7, #8 + 8019388: 46bd mov sp, r7 + 801938a: bd80 pop {r7, pc} + 801938c: 0801fd38 .word 0x0801fd38 + 8019390: 0801ff48 .word 0x0801ff48 + 8019394: 0801fd98 .word 0x0801fd98 -08019388 : +08019398 : static u16_t dhcp_option_long(u16_t options_out_len, u8_t *options, u32_t value) { - 8019388: b580 push {r7, lr} - 801938a: b084 sub sp, #16 - 801938c: af00 add r7, sp, #0 - 801938e: 4603 mov r3, r0 - 8019390: 60b9 str r1, [r7, #8] - 8019392: 607a str r2, [r7, #4] - 8019394: 81fb strh r3, [r7, #14] + 8019398: b580 push {r7, lr} + 801939a: b084 sub sp, #16 + 801939c: af00 add r7, sp, #0 + 801939e: 4603 mov r3, r0 + 80193a0: 60b9 str r1, [r7, #8] + 80193a2: 607a str r2, [r7, #4] + 80193a4: 81fb strh r3, [r7, #14] LWIP_ASSERT("dhcp_option_long: options_out_len + 4 <= DHCP_OPTIONS_LEN", options_out_len + 4U <= DHCP_OPTIONS_LEN); - 8019396: 89fb ldrh r3, [r7, #14] - 8019398: 3304 adds r3, #4 - 801939a: 2b44 cmp r3, #68 ; 0x44 - 801939c: d906 bls.n 80193ac - 801939e: 4b19 ldr r3, [pc, #100] ; (8019404 ) - 80193a0: f240 52b7 movw r2, #1463 ; 0x5b7 - 80193a4: 4918 ldr r1, [pc, #96] ; (8019408 ) - 80193a6: 4819 ldr r0, [pc, #100] ; (801940c ) - 80193a8: f003 f94e bl 801c648 + 80193a6: 89fb ldrh r3, [r7, #14] + 80193a8: 3304 adds r3, #4 + 80193aa: 2b44 cmp r3, #68 ; 0x44 + 80193ac: d906 bls.n 80193bc + 80193ae: 4b19 ldr r3, [pc, #100] ; (8019414 ) + 80193b0: f240 52b7 movw r2, #1463 ; 0x5b7 + 80193b4: 4918 ldr r1, [pc, #96] ; (8019418 ) + 80193b6: 4819 ldr r0, [pc, #100] ; (801941c ) + 80193b8: f003 f94e bl 801c658 options[options_out_len++] = (u8_t)((value & 0xff000000UL) >> 24); - 80193ac: 687b ldr r3, [r7, #4] - 80193ae: 0e1a lsrs r2, r3, #24 - 80193b0: 89fb ldrh r3, [r7, #14] - 80193b2: 1c59 adds r1, r3, #1 - 80193b4: 81f9 strh r1, [r7, #14] - 80193b6: 4619 mov r1, r3 - 80193b8: 68bb ldr r3, [r7, #8] - 80193ba: 440b add r3, r1 - 80193bc: b2d2 uxtb r2, r2 - 80193be: 701a strb r2, [r3, #0] + 80193bc: 687b ldr r3, [r7, #4] + 80193be: 0e1a lsrs r2, r3, #24 + 80193c0: 89fb ldrh r3, [r7, #14] + 80193c2: 1c59 adds r1, r3, #1 + 80193c4: 81f9 strh r1, [r7, #14] + 80193c6: 4619 mov r1, r3 + 80193c8: 68bb ldr r3, [r7, #8] + 80193ca: 440b add r3, r1 + 80193cc: b2d2 uxtb r2, r2 + 80193ce: 701a strb r2, [r3, #0] options[options_out_len++] = (u8_t)((value & 0x00ff0000UL) >> 16); - 80193c0: 687b ldr r3, [r7, #4] - 80193c2: 0c1a lsrs r2, r3, #16 - 80193c4: 89fb ldrh r3, [r7, #14] - 80193c6: 1c59 adds r1, r3, #1 - 80193c8: 81f9 strh r1, [r7, #14] - 80193ca: 4619 mov r1, r3 - 80193cc: 68bb ldr r3, [r7, #8] - 80193ce: 440b add r3, r1 - 80193d0: b2d2 uxtb r2, r2 - 80193d2: 701a strb r2, [r3, #0] + 80193d0: 687b ldr r3, [r7, #4] + 80193d2: 0c1a lsrs r2, r3, #16 + 80193d4: 89fb ldrh r3, [r7, #14] + 80193d6: 1c59 adds r1, r3, #1 + 80193d8: 81f9 strh r1, [r7, #14] + 80193da: 4619 mov r1, r3 + 80193dc: 68bb ldr r3, [r7, #8] + 80193de: 440b add r3, r1 + 80193e0: b2d2 uxtb r2, r2 + 80193e2: 701a strb r2, [r3, #0] options[options_out_len++] = (u8_t)((value & 0x0000ff00UL) >> 8); - 80193d4: 687b ldr r3, [r7, #4] - 80193d6: 0a1a lsrs r2, r3, #8 - 80193d8: 89fb ldrh r3, [r7, #14] - 80193da: 1c59 adds r1, r3, #1 - 80193dc: 81f9 strh r1, [r7, #14] - 80193de: 4619 mov r1, r3 - 80193e0: 68bb ldr r3, [r7, #8] - 80193e2: 440b add r3, r1 - 80193e4: b2d2 uxtb r2, r2 - 80193e6: 701a strb r2, [r3, #0] - options[options_out_len++] = (u8_t)((value & 0x000000ffUL)); + 80193e4: 687b ldr r3, [r7, #4] + 80193e6: 0a1a lsrs r2, r3, #8 80193e8: 89fb ldrh r3, [r7, #14] - 80193ea: 1c5a adds r2, r3, #1 - 80193ec: 81fa strh r2, [r7, #14] - 80193ee: 461a mov r2, r3 + 80193ea: 1c59 adds r1, r3, #1 + 80193ec: 81f9 strh r1, [r7, #14] + 80193ee: 4619 mov r1, r3 80193f0: 68bb ldr r3, [r7, #8] - 80193f2: 4413 add r3, r2 - 80193f4: 687a ldr r2, [r7, #4] - 80193f6: b2d2 uxtb r2, r2 - 80193f8: 701a strb r2, [r3, #0] + 80193f2: 440b add r3, r1 + 80193f4: b2d2 uxtb r2, r2 + 80193f6: 701a strb r2, [r3, #0] + options[options_out_len++] = (u8_t)((value & 0x000000ffUL)); + 80193f8: 89fb ldrh r3, [r7, #14] + 80193fa: 1c5a adds r2, r3, #1 + 80193fc: 81fa strh r2, [r7, #14] + 80193fe: 461a mov r2, r3 + 8019400: 68bb ldr r3, [r7, #8] + 8019402: 4413 add r3, r2 + 8019404: 687a ldr r2, [r7, #4] + 8019406: b2d2 uxtb r2, r2 + 8019408: 701a strb r2, [r3, #0] return options_out_len; - 80193fa: 89fb ldrh r3, [r7, #14] + 801940a: 89fb ldrh r3, [r7, #14] } - 80193fc: 4618 mov r0, r3 - 80193fe: 3710 adds r7, #16 - 8019400: 46bd mov sp, r7 - 8019402: bd80 pop {r7, pc} - 8019404: 0801fd28 .word 0x0801fd28 - 8019408: 0801ff74 .word 0x0801ff74 - 801940c: 0801fd88 .word 0x0801fd88 + 801940c: 4618 mov r0, r3 + 801940e: 3710 adds r7, #16 + 8019410: 46bd mov sp, r7 + 8019412: bd80 pop {r7, pc} + 8019414: 0801fd38 .word 0x0801fd38 + 8019418: 0801ff84 .word 0x0801ff84 + 801941c: 0801fd98 .word 0x0801fd98 -08019410 : +08019420 : * use that further on. * */ static err_t dhcp_parse_reply(struct pbuf *p, struct dhcp *dhcp) { - 8019410: b580 push {r7, lr} - 8019412: b090 sub sp, #64 ; 0x40 - 8019414: af00 add r7, sp, #0 - 8019416: 6078 str r0, [r7, #4] - 8019418: 6039 str r1, [r7, #0] + 8019420: b580 push {r7, lr} + 8019422: b090 sub sp, #64 ; 0x40 + 8019424: af00 add r7, sp, #0 + 8019426: 6078 str r0, [r7, #4] + 8019428: 6039 str r1, [r7, #0] u16_t offset; u16_t offset_max; u16_t options_idx; u16_t options_idx_max; struct pbuf *q; int parse_file_as_options = 0; - 801941a: 2300 movs r3, #0 - 801941c: 62fb str r3, [r7, #44] ; 0x2c + 801942a: 2300 movs r3, #0 + 801942c: 62fb str r3, [r7, #44] ; 0x2c int parse_sname_as_options = 0; - 801941e: 2300 movs r3, #0 - 8019420: 62bb str r3, [r7, #40] ; 0x28 + 801942e: 2300 movs r3, #0 + 8019430: 62bb str r3, [r7, #40] ; 0x28 #endif LWIP_UNUSED_ARG(dhcp); /* clear received options */ dhcp_clear_all_options(dhcp); - 8019422: 2208 movs r2, #8 - 8019424: 2100 movs r1, #0 - 8019426: 48be ldr r0, [pc, #760] ; (8019720 ) - 8019428: f003 f905 bl 801c636 + 8019432: 2208 movs r2, #8 + 8019434: 2100 movs r1, #0 + 8019436: 48be ldr r0, [pc, #760] ; (8019730 ) + 8019438: f003 f905 bl 801c646 /* check that beginning of dhcp_msg (up to and including chaddr) is in first pbuf */ if (p->len < DHCP_SNAME_OFS) { - 801942c: 687b ldr r3, [r7, #4] - 801942e: 895b ldrh r3, [r3, #10] - 8019430: 2b2b cmp r3, #43 ; 0x2b - 8019432: d802 bhi.n 801943a + 801943c: 687b ldr r3, [r7, #4] + 801943e: 895b ldrh r3, [r3, #10] + 8019440: 2b2b cmp r3, #43 ; 0x2b + 8019442: d802 bhi.n 801944a return ERR_BUF; - 8019434: f06f 0301 mvn.w r3, #1 - 8019438: e2a8 b.n 801998c + 8019444: f06f 0301 mvn.w r3, #1 + 8019448: e2a8 b.n 801999c } msg_in = (struct dhcp_msg *)p->payload; - 801943a: 687b ldr r3, [r7, #4] - 801943c: 685b ldr r3, [r3, #4] - 801943e: 61bb str r3, [r7, #24] + 801944a: 687b ldr r3, [r7, #4] + 801944c: 685b ldr r3, [r3, #4] + 801944e: 61bb str r3, [r7, #24] #endif /* LWIP_DHCP_BOOTP_FILE */ /* parse options */ /* start with options field */ options_idx = DHCP_OPTIONS_OFS; - 8019440: 23f0 movs r3, #240 ; 0xf0 - 8019442: 86fb strh r3, [r7, #54] ; 0x36 + 8019450: 23f0 movs r3, #240 ; 0xf0 + 8019452: 86fb strh r3, [r7, #54] ; 0x36 /* parse options to the end of the received packet */ options_idx_max = p->tot_len; - 8019444: 687b ldr r3, [r7, #4] - 8019446: 891b ldrh r3, [r3, #8] - 8019448: 86bb strh r3, [r7, #52] ; 0x34 + 8019454: 687b ldr r3, [r7, #4] + 8019456: 891b ldrh r3, [r3, #8] + 8019458: 86bb strh r3, [r7, #52] ; 0x34 again: q = p; - 801944a: 687b ldr r3, [r7, #4] - 801944c: 633b str r3, [r7, #48] ; 0x30 + 801945a: 687b ldr r3, [r7, #4] + 801945c: 633b str r3, [r7, #48] ; 0x30 while ((q != NULL) && (options_idx >= q->len)) { - 801944e: e00c b.n 801946a + 801945e: e00c b.n 801947a options_idx = (u16_t)(options_idx - q->len); - 8019450: 6b3b ldr r3, [r7, #48] ; 0x30 - 8019452: 895b ldrh r3, [r3, #10] - 8019454: 8efa ldrh r2, [r7, #54] ; 0x36 - 8019456: 1ad3 subs r3, r2, r3 - 8019458: 86fb strh r3, [r7, #54] ; 0x36 + 8019460: 6b3b ldr r3, [r7, #48] ; 0x30 + 8019462: 895b ldrh r3, [r3, #10] + 8019464: 8efa ldrh r2, [r7, #54] ; 0x36 + 8019466: 1ad3 subs r3, r2, r3 + 8019468: 86fb strh r3, [r7, #54] ; 0x36 options_idx_max = (u16_t)(options_idx_max - q->len); - 801945a: 6b3b ldr r3, [r7, #48] ; 0x30 - 801945c: 895b ldrh r3, [r3, #10] - 801945e: 8eba ldrh r2, [r7, #52] ; 0x34 - 8019460: 1ad3 subs r3, r2, r3 - 8019462: 86bb strh r3, [r7, #52] ; 0x34 + 801946a: 6b3b ldr r3, [r7, #48] ; 0x30 + 801946c: 895b ldrh r3, [r3, #10] + 801946e: 8eba ldrh r2, [r7, #52] ; 0x34 + 8019470: 1ad3 subs r3, r2, r3 + 8019472: 86bb strh r3, [r7, #52] ; 0x34 q = q->next; - 8019464: 6b3b ldr r3, [r7, #48] ; 0x30 - 8019466: 681b ldr r3, [r3, #0] - 8019468: 633b str r3, [r7, #48] ; 0x30 + 8019474: 6b3b ldr r3, [r7, #48] ; 0x30 + 8019476: 681b ldr r3, [r3, #0] + 8019478: 633b str r3, [r7, #48] ; 0x30 while ((q != NULL) && (options_idx >= q->len)) { - 801946a: 6b3b ldr r3, [r7, #48] ; 0x30 - 801946c: 2b00 cmp r3, #0 - 801946e: d004 beq.n 801947a - 8019470: 6b3b ldr r3, [r7, #48] ; 0x30 - 8019472: 895b ldrh r3, [r3, #10] - 8019474: 8efa ldrh r2, [r7, #54] ; 0x36 - 8019476: 429a cmp r2, r3 - 8019478: d2ea bcs.n 8019450 - } - if (q == NULL) { 801947a: 6b3b ldr r3, [r7, #48] ; 0x30 801947c: 2b00 cmp r3, #0 - 801947e: d102 bne.n 8019486 + 801947e: d004 beq.n 801948a + 8019480: 6b3b ldr r3, [r7, #48] ; 0x30 + 8019482: 895b ldrh r3, [r3, #10] + 8019484: 8efa ldrh r2, [r7, #54] ; 0x36 + 8019486: 429a cmp r2, r3 + 8019488: d2ea bcs.n 8019460 + } + if (q == NULL) { + 801948a: 6b3b ldr r3, [r7, #48] ; 0x30 + 801948c: 2b00 cmp r3, #0 + 801948e: d102 bne.n 8019496 return ERR_BUF; - 8019480: f06f 0301 mvn.w r3, #1 - 8019484: e282 b.n 801998c + 8019490: f06f 0301 mvn.w r3, #1 + 8019494: e282 b.n 801999c } offset = options_idx; - 8019486: 8efb ldrh r3, [r7, #54] ; 0x36 - 8019488: 877b strh r3, [r7, #58] ; 0x3a + 8019496: 8efb ldrh r3, [r7, #54] ; 0x36 + 8019498: 877b strh r3, [r7, #58] ; 0x3a offset_max = options_idx_max; - 801948a: 8ebb ldrh r3, [r7, #52] ; 0x34 - 801948c: 873b strh r3, [r7, #56] ; 0x38 + 801949a: 8ebb ldrh r3, [r7, #52] ; 0x34 + 801949c: 873b strh r3, [r7, #56] ; 0x38 options = (u8_t *)q->payload; - 801948e: 6b3b ldr r3, [r7, #48] ; 0x30 - 8019490: 685b ldr r3, [r3, #4] - 8019492: 63fb str r3, [r7, #60] ; 0x3c + 801949e: 6b3b ldr r3, [r7, #48] ; 0x30 + 80194a0: 685b ldr r3, [r3, #4] + 80194a2: 63fb str r3, [r7, #60] ; 0x3c /* at least 1 byte to read and no end marker, then at least 3 bytes to read? */ while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) { - 8019494: e23a b.n 801990c + 80194a4: e23a b.n 801991c u8_t op = options[offset]; - 8019496: 8f7b ldrh r3, [r7, #58] ; 0x3a - 8019498: 6bfa ldr r2, [r7, #60] ; 0x3c - 801949a: 4413 add r3, r2 - 801949c: 781b ldrb r3, [r3, #0] - 801949e: 75fb strb r3, [r7, #23] + 80194a6: 8f7b ldrh r3, [r7, #58] ; 0x3a + 80194a8: 6bfa ldr r2, [r7, #60] ; 0x3c + 80194aa: 4413 add r3, r2 + 80194ac: 781b ldrb r3, [r3, #0] + 80194ae: 75fb strb r3, [r7, #23] u8_t len; u8_t decode_len = 0; - 80194a0: 2300 movs r3, #0 - 80194a2: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 80194b0: 2300 movs r3, #0 + 80194b2: f887 3026 strb.w r3, [r7, #38] ; 0x26 int decode_idx = -1; - 80194a6: f04f 33ff mov.w r3, #4294967295 - 80194aa: 623b str r3, [r7, #32] + 80194b6: f04f 33ff mov.w r3, #4294967295 + 80194ba: 623b str r3, [r7, #32] u16_t val_offset = (u16_t)(offset + 2); - 80194ac: 8f7b ldrh r3, [r7, #58] ; 0x3a - 80194ae: 3302 adds r3, #2 - 80194b0: 83fb strh r3, [r7, #30] + 80194bc: 8f7b ldrh r3, [r7, #58] ; 0x3a + 80194be: 3302 adds r3, #2 + 80194c0: 83fb strh r3, [r7, #30] if (val_offset < offset) { - 80194b2: 8bfa ldrh r2, [r7, #30] - 80194b4: 8f7b ldrh r3, [r7, #58] ; 0x3a - 80194b6: 429a cmp r2, r3 - 80194b8: d202 bcs.n 80194c0 + 80194c2: 8bfa ldrh r2, [r7, #30] + 80194c4: 8f7b ldrh r3, [r7, #58] ; 0x3a + 80194c6: 429a cmp r2, r3 + 80194c8: d202 bcs.n 80194d0 /* overflow */ return ERR_BUF; - 80194ba: f06f 0301 mvn.w r3, #1 - 80194be: e265 b.n 801998c + 80194ca: f06f 0301 mvn.w r3, #1 + 80194ce: e265 b.n 801999c } /* len byte might be in the next pbuf */ if ((offset + 1) < q->len) { - 80194c0: 8f7b ldrh r3, [r7, #58] ; 0x3a - 80194c2: 3301 adds r3, #1 - 80194c4: 6b3a ldr r2, [r7, #48] ; 0x30 - 80194c6: 8952 ldrh r2, [r2, #10] - 80194c8: 4293 cmp r3, r2 - 80194ca: da07 bge.n 80194dc + 80194d0: 8f7b ldrh r3, [r7, #58] ; 0x3a + 80194d2: 3301 adds r3, #1 + 80194d4: 6b3a ldr r2, [r7, #48] ; 0x30 + 80194d6: 8952 ldrh r2, [r2, #10] + 80194d8: 4293 cmp r3, r2 + 80194da: da07 bge.n 80194ec len = options[offset + 1]; - 80194cc: 8f7b ldrh r3, [r7, #58] ; 0x3a - 80194ce: 3301 adds r3, #1 - 80194d0: 6bfa ldr r2, [r7, #60] ; 0x3c - 80194d2: 4413 add r3, r2 - 80194d4: 781b ldrb r3, [r3, #0] - 80194d6: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 80194da: e00b b.n 80194f4 + 80194dc: 8f7b ldrh r3, [r7, #58] ; 0x3a + 80194de: 3301 adds r3, #1 + 80194e0: 6bfa ldr r2, [r7, #60] ; 0x3c + 80194e2: 4413 add r3, r2 + 80194e4: 781b ldrb r3, [r3, #0] + 80194e6: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80194ea: e00b b.n 8019504 } else { len = (q->next != NULL ? ((u8_t *)q->next->payload)[0] : 0); - 80194dc: 6b3b ldr r3, [r7, #48] ; 0x30 - 80194de: 681b ldr r3, [r3, #0] - 80194e0: 2b00 cmp r3, #0 - 80194e2: d004 beq.n 80194ee - 80194e4: 6b3b ldr r3, [r7, #48] ; 0x30 - 80194e6: 681b ldr r3, [r3, #0] - 80194e8: 685b ldr r3, [r3, #4] - 80194ea: 781b ldrb r3, [r3, #0] - 80194ec: e000 b.n 80194f0 - 80194ee: 2300 movs r3, #0 - 80194f0: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 80194ec: 6b3b ldr r3, [r7, #48] ; 0x30 + 80194ee: 681b ldr r3, [r3, #0] + 80194f0: 2b00 cmp r3, #0 + 80194f2: d004 beq.n 80194fe + 80194f4: 6b3b ldr r3, [r7, #48] ; 0x30 + 80194f6: 681b ldr r3, [r3, #0] + 80194f8: 685b ldr r3, [r3, #4] + 80194fa: 781b ldrb r3, [r3, #0] + 80194fc: e000 b.n 8019500 + 80194fe: 2300 movs r3, #0 + 8019500: f887 3027 strb.w r3, [r7, #39] ; 0x27 } /* LWIP_DEBUGF(DHCP_DEBUG, ("msg_offset=%"U16_F", q->len=%"U16_F, msg_offset, q->len)); */ decode_len = len; - 80194f4: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 80194f8: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 8019504: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019508: f887 3026 strb.w r3, [r7, #38] ; 0x26 switch (op) { - 80194fc: 7dfb ldrb r3, [r7, #23] - 80194fe: 2b3b cmp r3, #59 ; 0x3b - 8019500: f200 812d bhi.w 801975e - 8019504: a201 add r2, pc, #4 ; (adr r2, 801950c ) - 8019506: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 801950a: bf00 nop - 801950c: 080195fd .word 0x080195fd - 8019510: 0801960d .word 0x0801960d - 8019514: 0801975f .word 0x0801975f - 8019518: 0801962f .word 0x0801962f - 801951c: 0801975f .word 0x0801975f - 8019520: 0801975f .word 0x0801975f - 8019524: 0801975f .word 0x0801975f - 8019528: 0801975f .word 0x0801975f - 801952c: 0801975f .word 0x0801975f - 8019530: 0801975f .word 0x0801975f - 8019534: 0801975f .word 0x0801975f - 8019538: 0801975f .word 0x0801975f - 801953c: 0801975f .word 0x0801975f - 8019540: 0801975f .word 0x0801975f - 8019544: 0801975f .word 0x0801975f - 8019548: 0801975f .word 0x0801975f - 801954c: 0801975f .word 0x0801975f - 8019550: 0801975f .word 0x0801975f - 8019554: 0801975f .word 0x0801975f - 8019558: 0801975f .word 0x0801975f - 801955c: 0801975f .word 0x0801975f - 8019560: 0801975f .word 0x0801975f - 8019564: 0801975f .word 0x0801975f - 8019568: 0801975f .word 0x0801975f - 801956c: 0801975f .word 0x0801975f - 8019570: 0801975f .word 0x0801975f - 8019574: 0801975f .word 0x0801975f - 8019578: 0801975f .word 0x0801975f - 801957c: 0801975f .word 0x0801975f - 8019580: 0801975f .word 0x0801975f - 8019584: 0801975f .word 0x0801975f - 8019588: 0801975f .word 0x0801975f - 801958c: 0801975f .word 0x0801975f - 8019590: 0801975f .word 0x0801975f - 8019594: 0801975f .word 0x0801975f - 8019598: 0801975f .word 0x0801975f - 801959c: 0801975f .word 0x0801975f - 80195a0: 0801975f .word 0x0801975f - 80195a4: 0801975f .word 0x0801975f - 80195a8: 0801975f .word 0x0801975f - 80195ac: 0801975f .word 0x0801975f - 80195b0: 0801975f .word 0x0801975f - 80195b4: 0801975f .word 0x0801975f - 80195b8: 0801975f .word 0x0801975f - 80195bc: 0801975f .word 0x0801975f - 80195c0: 0801975f .word 0x0801975f - 80195c4: 0801975f .word 0x0801975f - 80195c8: 0801975f .word 0x0801975f - 80195cc: 0801975f .word 0x0801975f - 80195d0: 0801975f .word 0x0801975f - 80195d4: 0801975f .word 0x0801975f - 80195d8: 0801965b .word 0x0801965b - 80195dc: 0801967d .word 0x0801967d - 80195e0: 080196b9 .word 0x080196b9 - 80195e4: 080196db .word 0x080196db - 80195e8: 0801975f .word 0x0801975f - 80195ec: 0801975f .word 0x0801975f - 80195f0: 0801975f .word 0x0801975f - 80195f4: 080196fd .word 0x080196fd - 80195f8: 0801973d .word 0x0801973d + 801950c: 7dfb ldrb r3, [r7, #23] + 801950e: 2b3b cmp r3, #59 ; 0x3b + 8019510: f200 812d bhi.w 801976e + 8019514: a201 add r2, pc, #4 ; (adr r2, 801951c ) + 8019516: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 801951a: bf00 nop + 801951c: 0801960d .word 0x0801960d + 8019520: 0801961d .word 0x0801961d + 8019524: 0801976f .word 0x0801976f + 8019528: 0801963f .word 0x0801963f + 801952c: 0801976f .word 0x0801976f + 8019530: 0801976f .word 0x0801976f + 8019534: 0801976f .word 0x0801976f + 8019538: 0801976f .word 0x0801976f + 801953c: 0801976f .word 0x0801976f + 8019540: 0801976f .word 0x0801976f + 8019544: 0801976f .word 0x0801976f + 8019548: 0801976f .word 0x0801976f + 801954c: 0801976f .word 0x0801976f + 8019550: 0801976f .word 0x0801976f + 8019554: 0801976f .word 0x0801976f + 8019558: 0801976f .word 0x0801976f + 801955c: 0801976f .word 0x0801976f + 8019560: 0801976f .word 0x0801976f + 8019564: 0801976f .word 0x0801976f + 8019568: 0801976f .word 0x0801976f + 801956c: 0801976f .word 0x0801976f + 8019570: 0801976f .word 0x0801976f + 8019574: 0801976f .word 0x0801976f + 8019578: 0801976f .word 0x0801976f + 801957c: 0801976f .word 0x0801976f + 8019580: 0801976f .word 0x0801976f + 8019584: 0801976f .word 0x0801976f + 8019588: 0801976f .word 0x0801976f + 801958c: 0801976f .word 0x0801976f + 8019590: 0801976f .word 0x0801976f + 8019594: 0801976f .word 0x0801976f + 8019598: 0801976f .word 0x0801976f + 801959c: 0801976f .word 0x0801976f + 80195a0: 0801976f .word 0x0801976f + 80195a4: 0801976f .word 0x0801976f + 80195a8: 0801976f .word 0x0801976f + 80195ac: 0801976f .word 0x0801976f + 80195b0: 0801976f .word 0x0801976f + 80195b4: 0801976f .word 0x0801976f + 80195b8: 0801976f .word 0x0801976f + 80195bc: 0801976f .word 0x0801976f + 80195c0: 0801976f .word 0x0801976f + 80195c4: 0801976f .word 0x0801976f + 80195c8: 0801976f .word 0x0801976f + 80195cc: 0801976f .word 0x0801976f + 80195d0: 0801976f .word 0x0801976f + 80195d4: 0801976f .word 0x0801976f + 80195d8: 0801976f .word 0x0801976f + 80195dc: 0801976f .word 0x0801976f + 80195e0: 0801976f .word 0x0801976f + 80195e4: 0801976f .word 0x0801976f + 80195e8: 0801966b .word 0x0801966b + 80195ec: 0801968d .word 0x0801968d + 80195f0: 080196c9 .word 0x080196c9 + 80195f4: 080196eb .word 0x080196eb + 80195f8: 0801976f .word 0x0801976f + 80195fc: 0801976f .word 0x0801976f + 8019600: 0801976f .word 0x0801976f + 8019604: 0801970d .word 0x0801970d + 8019608: 0801974d .word 0x0801974d /* case(DHCP_OPTION_END): handled above */ case (DHCP_OPTION_PAD): /* special option: no len encoded */ decode_len = len = 0; - 80195fc: 2300 movs r3, #0 - 80195fe: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8019602: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019606: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 801960c: 2300 movs r3, #0 + 801960e: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8019612: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019616: f887 3026 strb.w r3, [r7, #38] ; 0x26 /* will be increased below */ break; - 801960a: e0ac b.n 8019766 + 801961a: e0ac b.n 8019776 case (DHCP_OPTION_SUBNET_MASK): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 801960c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019610: 2b04 cmp r3, #4 - 8019612: d009 beq.n 8019628 - 8019614: 4b43 ldr r3, [pc, #268] ; (8019724 ) - 8019616: f240 622e movw r2, #1582 ; 0x62e - 801961a: 4943 ldr r1, [pc, #268] ; (8019728 ) - 801961c: 4843 ldr r0, [pc, #268] ; (801972c ) - 801961e: f003 f813 bl 801c648 - 8019622: f06f 0305 mvn.w r3, #5 - 8019626: e1b1 b.n 801998c + 801961c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019620: 2b04 cmp r3, #4 + 8019622: d009 beq.n 8019638 + 8019624: 4b43 ldr r3, [pc, #268] ; (8019734 ) + 8019626: f240 622e movw r2, #1582 ; 0x62e + 801962a: 4943 ldr r1, [pc, #268] ; (8019738 ) + 801962c: 4843 ldr r0, [pc, #268] ; (801973c ) + 801962e: f003 f813 bl 801c658 + 8019632: f06f 0305 mvn.w r3, #5 + 8019636: e1b1 b.n 801999c decode_idx = DHCP_OPTION_IDX_SUBNET_MASK; - 8019628: 2306 movs r3, #6 - 801962a: 623b str r3, [r7, #32] + 8019638: 2306 movs r3, #6 + 801963a: 623b str r3, [r7, #32] break; - 801962c: e09b b.n 8019766 + 801963c: e09b b.n 8019776 case (DHCP_OPTION_ROUTER): decode_len = 4; /* only copy the first given router */ - 801962e: 2304 movs r3, #4 - 8019630: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 801963e: 2304 movs r3, #4 + 8019640: f887 3026 strb.w r3, [r7, #38] ; 0x26 LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;); - 8019634: f897 2027 ldrb.w r2, [r7, #39] ; 0x27 - 8019638: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 801963c: 429a cmp r2, r3 - 801963e: d209 bcs.n 8019654 - 8019640: 4b38 ldr r3, [pc, #224] ; (8019724 ) - 8019642: f240 6233 movw r2, #1587 ; 0x633 - 8019646: 493a ldr r1, [pc, #232] ; (8019730 ) - 8019648: 4838 ldr r0, [pc, #224] ; (801972c ) - 801964a: f002 fffd bl 801c648 - 801964e: f06f 0305 mvn.w r3, #5 - 8019652: e19b b.n 801998c + 8019644: f897 2027 ldrb.w r2, [r7, #39] ; 0x27 + 8019648: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 801964c: 429a cmp r2, r3 + 801964e: d209 bcs.n 8019664 + 8019650: 4b38 ldr r3, [pc, #224] ; (8019734 ) + 8019652: f240 6233 movw r2, #1587 ; 0x633 + 8019656: 493a ldr r1, [pc, #232] ; (8019740 ) + 8019658: 4838 ldr r0, [pc, #224] ; (801973c ) + 801965a: f002 fffd bl 801c658 + 801965e: f06f 0305 mvn.w r3, #5 + 8019662: e19b b.n 801999c decode_idx = DHCP_OPTION_IDX_ROUTER; - 8019654: 2307 movs r3, #7 - 8019656: 623b str r3, [r7, #32] + 8019664: 2307 movs r3, #7 + 8019666: 623b str r3, [r7, #32] break; - 8019658: e085 b.n 8019766 + 8019668: e085 b.n 8019776 LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;); decode_idx = DHCP_OPTION_IDX_DNS_SERVER; break; #endif /* LWIP_DHCP_PROVIDE_DNS_SERVERS */ case (DHCP_OPTION_LEASE_TIME): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 801965a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 801965e: 2b04 cmp r3, #4 - 8019660: d009 beq.n 8019676 - 8019662: 4b30 ldr r3, [pc, #192] ; (8019724 ) - 8019664: f240 6241 movw r2, #1601 ; 0x641 - 8019668: 492f ldr r1, [pc, #188] ; (8019728 ) - 801966a: 4830 ldr r0, [pc, #192] ; (801972c ) - 801966c: f002 ffec bl 801c648 - 8019670: f06f 0305 mvn.w r3, #5 - 8019674: e18a b.n 801998c + 801966a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 801966e: 2b04 cmp r3, #4 + 8019670: d009 beq.n 8019686 + 8019672: 4b30 ldr r3, [pc, #192] ; (8019734 ) + 8019674: f240 6241 movw r2, #1601 ; 0x641 + 8019678: 492f ldr r1, [pc, #188] ; (8019738 ) + 801967a: 4830 ldr r0, [pc, #192] ; (801973c ) + 801967c: f002 ffec bl 801c658 + 8019680: f06f 0305 mvn.w r3, #5 + 8019684: e18a b.n 801999c decode_idx = DHCP_OPTION_IDX_LEASE_TIME; - 8019676: 2303 movs r3, #3 - 8019678: 623b str r3, [r7, #32] + 8019686: 2303 movs r3, #3 + 8019688: 623b str r3, [r7, #32] break; - 801967a: e074 b.n 8019766 + 801968a: e074 b.n 8019776 LWIP_ERROR("len >= decode_len", len >= decode_len, return ERR_VAL;); decode_idx = DHCP_OPTION_IDX_NTP_SERVER; break; #endif /* LWIP_DHCP_GET_NTP_SRV*/ case (DHCP_OPTION_OVERLOAD): LWIP_ERROR("len == 1", len == 1, return ERR_VAL;); - 801967c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019680: 2b01 cmp r3, #1 - 8019682: d009 beq.n 8019698 - 8019684: 4b27 ldr r3, [pc, #156] ; (8019724 ) - 8019686: f240 624f movw r2, #1615 ; 0x64f - 801968a: 492a ldr r1, [pc, #168] ; (8019734 ) - 801968c: 4827 ldr r0, [pc, #156] ; (801972c ) - 801968e: f002 ffdb bl 801c648 - 8019692: f06f 0305 mvn.w r3, #5 - 8019696: e179 b.n 801998c + 801968c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019690: 2b01 cmp r3, #1 + 8019692: d009 beq.n 80196a8 + 8019694: 4b27 ldr r3, [pc, #156] ; (8019734 ) + 8019696: f240 624f movw r2, #1615 ; 0x64f + 801969a: 492a ldr r1, [pc, #168] ; (8019744 ) + 801969c: 4827 ldr r0, [pc, #156] ; (801973c ) + 801969e: f002 ffdb bl 801c658 + 80196a2: f06f 0305 mvn.w r3, #5 + 80196a6: e179 b.n 801999c /* decode overload only in options, not in file/sname: invalid packet */ LWIP_ERROR("overload in file/sname", options_idx == DHCP_OPTIONS_OFS, return ERR_VAL;); - 8019698: 8efb ldrh r3, [r7, #54] ; 0x36 - 801969a: 2bf0 cmp r3, #240 ; 0xf0 - 801969c: d009 beq.n 80196b2 - 801969e: 4b21 ldr r3, [pc, #132] ; (8019724 ) - 80196a0: f240 6251 movw r2, #1617 ; 0x651 - 80196a4: 4924 ldr r1, [pc, #144] ; (8019738 ) - 80196a6: 4821 ldr r0, [pc, #132] ; (801972c ) - 80196a8: f002 ffce bl 801c648 - 80196ac: f06f 0305 mvn.w r3, #5 - 80196b0: e16c b.n 801998c + 80196a8: 8efb ldrh r3, [r7, #54] ; 0x36 + 80196aa: 2bf0 cmp r3, #240 ; 0xf0 + 80196ac: d009 beq.n 80196c2 + 80196ae: 4b21 ldr r3, [pc, #132] ; (8019734 ) + 80196b0: f240 6251 movw r2, #1617 ; 0x651 + 80196b4: 4924 ldr r1, [pc, #144] ; (8019748 ) + 80196b6: 4821 ldr r0, [pc, #132] ; (801973c ) + 80196b8: f002 ffce bl 801c658 + 80196bc: f06f 0305 mvn.w r3, #5 + 80196c0: e16c b.n 801999c decode_idx = DHCP_OPTION_IDX_OVERLOAD; - 80196b2: 2300 movs r3, #0 - 80196b4: 623b str r3, [r7, #32] + 80196c2: 2300 movs r3, #0 + 80196c4: 623b str r3, [r7, #32] break; - 80196b6: e056 b.n 8019766 + 80196c6: e056 b.n 8019776 case (DHCP_OPTION_MESSAGE_TYPE): LWIP_ERROR("len == 1", len == 1, return ERR_VAL;); - 80196b8: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 80196bc: 2b01 cmp r3, #1 - 80196be: d009 beq.n 80196d4 - 80196c0: 4b18 ldr r3, [pc, #96] ; (8019724 ) - 80196c2: f240 6255 movw r2, #1621 ; 0x655 - 80196c6: 491b ldr r1, [pc, #108] ; (8019734 ) - 80196c8: 4818 ldr r0, [pc, #96] ; (801972c ) - 80196ca: f002 ffbd bl 801c648 - 80196ce: f06f 0305 mvn.w r3, #5 - 80196d2: e15b b.n 801998c + 80196c8: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 80196cc: 2b01 cmp r3, #1 + 80196ce: d009 beq.n 80196e4 + 80196d0: 4b18 ldr r3, [pc, #96] ; (8019734 ) + 80196d2: f240 6255 movw r2, #1621 ; 0x655 + 80196d6: 491b ldr r1, [pc, #108] ; (8019744 ) + 80196d8: 4818 ldr r0, [pc, #96] ; (801973c ) + 80196da: f002 ffbd bl 801c658 + 80196de: f06f 0305 mvn.w r3, #5 + 80196e2: e15b b.n 801999c decode_idx = DHCP_OPTION_IDX_MSG_TYPE; - 80196d4: 2301 movs r3, #1 - 80196d6: 623b str r3, [r7, #32] + 80196e4: 2301 movs r3, #1 + 80196e6: 623b str r3, [r7, #32] break; - 80196d8: e045 b.n 8019766 + 80196e8: e045 b.n 8019776 case (DHCP_OPTION_SERVER_ID): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 80196da: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 80196de: 2b04 cmp r3, #4 - 80196e0: d009 beq.n 80196f6 - 80196e2: 4b10 ldr r3, [pc, #64] ; (8019724 ) - 80196e4: f240 6259 movw r2, #1625 ; 0x659 - 80196e8: 490f ldr r1, [pc, #60] ; (8019728 ) - 80196ea: 4810 ldr r0, [pc, #64] ; (801972c ) - 80196ec: f002 ffac bl 801c648 - 80196f0: f06f 0305 mvn.w r3, #5 - 80196f4: e14a b.n 801998c + 80196ea: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 80196ee: 2b04 cmp r3, #4 + 80196f0: d009 beq.n 8019706 + 80196f2: 4b10 ldr r3, [pc, #64] ; (8019734 ) + 80196f4: f240 6259 movw r2, #1625 ; 0x659 + 80196f8: 490f ldr r1, [pc, #60] ; (8019738 ) + 80196fa: 4810 ldr r0, [pc, #64] ; (801973c ) + 80196fc: f002 ffac bl 801c658 + 8019700: f06f 0305 mvn.w r3, #5 + 8019704: e14a b.n 801999c decode_idx = DHCP_OPTION_IDX_SERVER_ID; - 80196f6: 2302 movs r3, #2 - 80196f8: 623b str r3, [r7, #32] + 8019706: 2302 movs r3, #2 + 8019708: 623b str r3, [r7, #32] break; - 80196fa: e034 b.n 8019766 + 801970a: e034 b.n 8019776 case (DHCP_OPTION_T1): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 80196fc: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019700: 2b04 cmp r3, #4 - 8019702: d009 beq.n 8019718 - 8019704: 4b07 ldr r3, [pc, #28] ; (8019724 ) - 8019706: f240 625d movw r2, #1629 ; 0x65d - 801970a: 4907 ldr r1, [pc, #28] ; (8019728 ) - 801970c: 4807 ldr r0, [pc, #28] ; (801972c ) - 801970e: f002 ff9b bl 801c648 - 8019712: f06f 0305 mvn.w r3, #5 - 8019716: e139 b.n 801998c + 801970c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019710: 2b04 cmp r3, #4 + 8019712: d009 beq.n 8019728 + 8019714: 4b07 ldr r3, [pc, #28] ; (8019734 ) + 8019716: f240 625d movw r2, #1629 ; 0x65d + 801971a: 4907 ldr r1, [pc, #28] ; (8019738 ) + 801971c: 4807 ldr r0, [pc, #28] ; (801973c ) + 801971e: f002 ff9b bl 801c658 + 8019722: f06f 0305 mvn.w r3, #5 + 8019726: e139 b.n 801999c decode_idx = DHCP_OPTION_IDX_T1; - 8019718: 2304 movs r3, #4 - 801971a: 623b str r3, [r7, #32] + 8019728: 2304 movs r3, #4 + 801972a: 623b str r3, [r7, #32] break; - 801971c: e023 b.n 8019766 - 801971e: bf00 nop - 8019720: 2000f80c .word 0x2000f80c - 8019724: 0801fd28 .word 0x0801fd28 - 8019728: 0801ffb0 .word 0x0801ffb0 - 801972c: 0801fd88 .word 0x0801fd88 - 8019730: 0801ffbc .word 0x0801ffbc - 8019734: 0801ffd0 .word 0x0801ffd0 - 8019738: 0801ffdc .word 0x0801ffdc + 801972c: e023 b.n 8019776 + 801972e: bf00 nop + 8019730: 2000f80c .word 0x2000f80c + 8019734: 0801fd38 .word 0x0801fd38 + 8019738: 0801ffc0 .word 0x0801ffc0 + 801973c: 0801fd98 .word 0x0801fd98 + 8019740: 0801ffcc .word 0x0801ffcc + 8019744: 0801ffe0 .word 0x0801ffe0 + 8019748: 0801ffec .word 0x0801ffec case (DHCP_OPTION_T2): LWIP_ERROR("len == 4", len == 4, return ERR_VAL;); - 801973c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019740: 2b04 cmp r3, #4 - 8019742: d009 beq.n 8019758 - 8019744: 4b93 ldr r3, [pc, #588] ; (8019994 ) - 8019746: f240 6261 movw r2, #1633 ; 0x661 - 801974a: 4993 ldr r1, [pc, #588] ; (8019998 ) - 801974c: 4893 ldr r0, [pc, #588] ; (801999c ) - 801974e: f002 ff7b bl 801c648 - 8019752: f06f 0305 mvn.w r3, #5 - 8019756: e119 b.n 801998c + 801974c: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019750: 2b04 cmp r3, #4 + 8019752: d009 beq.n 8019768 + 8019754: 4b93 ldr r3, [pc, #588] ; (80199a4 ) + 8019756: f240 6261 movw r2, #1633 ; 0x661 + 801975a: 4993 ldr r1, [pc, #588] ; (80199a8 ) + 801975c: 4893 ldr r0, [pc, #588] ; (80199ac ) + 801975e: f002 ff7b bl 801c658 + 8019762: f06f 0305 mvn.w r3, #5 + 8019766: e119 b.n 801999c decode_idx = DHCP_OPTION_IDX_T2; - 8019758: 2305 movs r3, #5 - 801975a: 623b str r3, [r7, #32] + 8019768: 2305 movs r3, #5 + 801976a: 623b str r3, [r7, #32] break; - 801975c: e003 b.n 8019766 + 801976c: e003 b.n 8019776 default: decode_len = 0; - 801975e: 2300 movs r3, #0 - 8019760: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 801976e: 2300 movs r3, #0 + 8019770: f887 3026 strb.w r3, [r7, #38] ; 0x26 LWIP_DEBUGF(DHCP_DEBUG, ("skipping option %"U16_F" in options\n", (u16_t)op)); LWIP_HOOK_DHCP_PARSE_OPTION(ip_current_netif(), dhcp, dhcp->state, msg_in, dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE) ? (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE) : 0, op, len, q, val_offset); break; - 8019764: bf00 nop + 8019774: bf00 nop } if (op == DHCP_OPTION_PAD) { - 8019766: 7dfb ldrb r3, [r7, #23] - 8019768: 2b00 cmp r3, #0 - 801976a: d103 bne.n 8019774 + 8019776: 7dfb ldrb r3, [r7, #23] + 8019778: 2b00 cmp r3, #0 + 801977a: d103 bne.n 8019784 offset++; - 801976c: 8f7b ldrh r3, [r7, #58] ; 0x3a - 801976e: 3301 adds r3, #1 - 8019770: 877b strh r3, [r7, #58] ; 0x3a - 8019772: e0a1 b.n 80198b8 + 801977c: 8f7b ldrh r3, [r7, #58] ; 0x3a + 801977e: 3301 adds r3, #1 + 8019780: 877b strh r3, [r7, #58] ; 0x3a + 8019782: e0a1 b.n 80198c8 } else { if (offset + len + 2 > 0xFFFF) { - 8019774: 8f7a ldrh r2, [r7, #58] ; 0x3a - 8019776: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 801977a: 4413 add r3, r2 - 801977c: 3302 adds r3, #2 - 801977e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 8019782: db02 blt.n 801978a + 8019784: 8f7a ldrh r2, [r7, #58] ; 0x3a + 8019786: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 801978a: 4413 add r3, r2 + 801978c: 3302 adds r3, #2 + 801978e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 8019792: db02 blt.n 801979a /* overflow */ return ERR_BUF; - 8019784: f06f 0301 mvn.w r3, #1 - 8019788: e100 b.n 801998c + 8019794: f06f 0301 mvn.w r3, #1 + 8019798: e100 b.n 801999c } offset = (u16_t)(offset + len + 2); - 801978a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 801978e: b29a uxth r2, r3 - 8019790: 8f7b ldrh r3, [r7, #58] ; 0x3a - 8019792: 4413 add r3, r2 - 8019794: b29b uxth r3, r3 - 8019796: 3302 adds r3, #2 - 8019798: 877b strh r3, [r7, #58] ; 0x3a + 801979a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 801979e: b29a uxth r2, r3 + 80197a0: 8f7b ldrh r3, [r7, #58] ; 0x3a + 80197a2: 4413 add r3, r2 + 80197a4: b29b uxth r3, r3 + 80197a6: 3302 adds r3, #2 + 80197a8: 877b strh r3, [r7, #58] ; 0x3a if (decode_len > 0) { - 801979a: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 801979e: 2b00 cmp r3, #0 - 80197a0: f000 808a beq.w 80198b8 + 80197aa: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 80197ae: 2b00 cmp r3, #0 + 80197b0: f000 808a beq.w 80198c8 u32_t value = 0; - 80197a4: 2300 movs r3, #0 - 80197a6: 60bb str r3, [r7, #8] + 80197b4: 2300 movs r3, #0 + 80197b6: 60bb str r3, [r7, #8] u16_t copy_len; decode_next: LWIP_ASSERT("check decode_idx", decode_idx >= 0 && decode_idx < DHCP_OPTION_IDX_MAX); - 80197a8: 6a3b ldr r3, [r7, #32] - 80197aa: 2b00 cmp r3, #0 - 80197ac: db02 blt.n 80197b4 - 80197ae: 6a3b ldr r3, [r7, #32] - 80197b0: 2b07 cmp r3, #7 - 80197b2: dd06 ble.n 80197c2 - 80197b4: 4b77 ldr r3, [pc, #476] ; (8019994 ) - 80197b6: f44f 62cf mov.w r2, #1656 ; 0x678 - 80197ba: 4979 ldr r1, [pc, #484] ; (80199a0 ) - 80197bc: 4877 ldr r0, [pc, #476] ; (801999c ) - 80197be: f002 ff43 bl 801c648 + 80197b8: 6a3b ldr r3, [r7, #32] + 80197ba: 2b00 cmp r3, #0 + 80197bc: db02 blt.n 80197c4 + 80197be: 6a3b ldr r3, [r7, #32] + 80197c0: 2b07 cmp r3, #7 + 80197c2: dd06 ble.n 80197d2 + 80197c4: 4b77 ldr r3, [pc, #476] ; (80199a4 ) + 80197c6: f44f 62cf mov.w r2, #1656 ; 0x678 + 80197ca: 4979 ldr r1, [pc, #484] ; (80199b0 ) + 80197cc: 4877 ldr r0, [pc, #476] ; (80199ac ) + 80197ce: f002 ff43 bl 801c658 if (!dhcp_option_given(dhcp, decode_idx)) { - 80197c2: 4a78 ldr r2, [pc, #480] ; (80199a4 ) - 80197c4: 6a3b ldr r3, [r7, #32] - 80197c6: 4413 add r3, r2 - 80197c8: 781b ldrb r3, [r3, #0] - 80197ca: 2b00 cmp r3, #0 - 80197cc: d174 bne.n 80198b8 + 80197d2: 4a78 ldr r2, [pc, #480] ; (80199b4 ) + 80197d4: 6a3b ldr r3, [r7, #32] + 80197d6: 4413 add r3, r2 + 80197d8: 781b ldrb r3, [r3, #0] + 80197da: 2b00 cmp r3, #0 + 80197dc: d174 bne.n 80198c8 copy_len = LWIP_MIN(decode_len, 4); - 80197ce: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 80197d2: 2b04 cmp r3, #4 - 80197d4: bf28 it cs - 80197d6: 2304 movcs r3, #4 - 80197d8: b2db uxtb r3, r3 - 80197da: 82bb strh r3, [r7, #20] + 80197de: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 80197e2: 2b04 cmp r3, #4 + 80197e4: bf28 it cs + 80197e6: 2304 movcs r3, #4 + 80197e8: b2db uxtb r3, r3 + 80197ea: 82bb strh r3, [r7, #20] if (pbuf_copy_partial(q, &value, copy_len, val_offset) != copy_len) { - 80197dc: 8bfb ldrh r3, [r7, #30] - 80197de: 8aba ldrh r2, [r7, #20] - 80197e0: f107 0108 add.w r1, r7, #8 - 80197e4: 6b38 ldr r0, [r7, #48] ; 0x30 - 80197e6: f7f8 fc05 bl 8011ff4 - 80197ea: 4603 mov r3, r0 - 80197ec: 461a mov r2, r3 - 80197ee: 8abb ldrh r3, [r7, #20] - 80197f0: 4293 cmp r3, r2 - 80197f2: d002 beq.n 80197fa + 80197ec: 8bfb ldrh r3, [r7, #30] + 80197ee: 8aba ldrh r2, [r7, #20] + 80197f0: f107 0108 add.w r1, r7, #8 + 80197f4: 6b38 ldr r0, [r7, #48] ; 0x30 + 80197f6: f7f8 fc05 bl 8012004 + 80197fa: 4603 mov r3, r0 + 80197fc: 461a mov r2, r3 + 80197fe: 8abb ldrh r3, [r7, #20] + 8019800: 4293 cmp r3, r2 + 8019802: d002 beq.n 801980a return ERR_BUF; - 80197f4: f06f 0301 mvn.w r3, #1 - 80197f8: e0c8 b.n 801998c + 8019804: f06f 0301 mvn.w r3, #1 + 8019808: e0c8 b.n 801999c } if (decode_len > 4) { - 80197fa: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 80197fe: 2b04 cmp r3, #4 - 8019800: d933 bls.n 801986a + 801980a: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 801980e: 2b04 cmp r3, #4 + 8019810: d933 bls.n 801987a /* decode more than one u32_t */ u16_t next_val_offset; LWIP_ERROR("decode_len %% 4 == 0", decode_len % 4 == 0, return ERR_VAL;); - 8019802: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8019806: f003 0303 and.w r3, r3, #3 - 801980a: b2db uxtb r3, r3 - 801980c: 2b00 cmp r3, #0 - 801980e: d009 beq.n 8019824 - 8019810: 4b60 ldr r3, [pc, #384] ; (8019994 ) - 8019812: f240 6281 movw r2, #1665 ; 0x681 - 8019816: 4964 ldr r1, [pc, #400] ; (80199a8 ) - 8019818: 4860 ldr r0, [pc, #384] ; (801999c ) - 801981a: f002 ff15 bl 801c648 - 801981e: f06f 0305 mvn.w r3, #5 - 8019822: e0b3 b.n 801998c + 8019812: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 8019816: f003 0303 and.w r3, r3, #3 + 801981a: b2db uxtb r3, r3 + 801981c: 2b00 cmp r3, #0 + 801981e: d009 beq.n 8019834 + 8019820: 4b60 ldr r3, [pc, #384] ; (80199a4 ) + 8019822: f240 6281 movw r2, #1665 ; 0x681 + 8019826: 4964 ldr r1, [pc, #400] ; (80199b8 ) + 8019828: 4860 ldr r0, [pc, #384] ; (80199ac ) + 801982a: f002 ff15 bl 801c658 + 801982e: f06f 0305 mvn.w r3, #5 + 8019832: e0b3 b.n 801999c dhcp_got_option(dhcp, decode_idx); - 8019824: 4a5f ldr r2, [pc, #380] ; (80199a4 ) - 8019826: 6a3b ldr r3, [r7, #32] - 8019828: 4413 add r3, r2 - 801982a: 2201 movs r2, #1 - 801982c: 701a strb r2, [r3, #0] + 8019834: 4a5f ldr r2, [pc, #380] ; (80199b4 ) + 8019836: 6a3b ldr r3, [r7, #32] + 8019838: 4413 add r3, r2 + 801983a: 2201 movs r2, #1 + 801983c: 701a strb r2, [r3, #0] dhcp_set_option_value(dhcp, decode_idx, lwip_htonl(value)); - 801982e: 68bb ldr r3, [r7, #8] - 8019830: 4618 mov r0, r3 - 8019832: f7f6 fe3a bl 80104aa - 8019836: 4601 mov r1, r0 - 8019838: 4a5c ldr r2, [pc, #368] ; (80199ac ) - 801983a: 6a3b ldr r3, [r7, #32] - 801983c: f842 1023 str.w r1, [r2, r3, lsl #2] + 801983e: 68bb ldr r3, [r7, #8] + 8019840: 4618 mov r0, r3 + 8019842: f7f6 fe3a bl 80104ba + 8019846: 4601 mov r1, r0 + 8019848: 4a5c ldr r2, [pc, #368] ; (80199bc ) + 801984a: 6a3b ldr r3, [r7, #32] + 801984c: f842 1023 str.w r1, [r2, r3, lsl #2] decode_len = (u8_t)(decode_len - 4); - 8019840: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8019844: 3b04 subs r3, #4 - 8019846: f887 3026 strb.w r3, [r7, #38] ; 0x26 + 8019850: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 8019854: 3b04 subs r3, #4 + 8019856: f887 3026 strb.w r3, [r7, #38] ; 0x26 next_val_offset = (u16_t)(val_offset + 4); - 801984a: 8bfb ldrh r3, [r7, #30] - 801984c: 3304 adds r3, #4 - 801984e: 827b strh r3, [r7, #18] + 801985a: 8bfb ldrh r3, [r7, #30] + 801985c: 3304 adds r3, #4 + 801985e: 827b strh r3, [r7, #18] if (next_val_offset < val_offset) { - 8019850: 8a7a ldrh r2, [r7, #18] - 8019852: 8bfb ldrh r3, [r7, #30] - 8019854: 429a cmp r2, r3 - 8019856: d202 bcs.n 801985e + 8019860: 8a7a ldrh r2, [r7, #18] + 8019862: 8bfb ldrh r3, [r7, #30] + 8019864: 429a cmp r2, r3 + 8019866: d202 bcs.n 801986e /* overflow */ return ERR_BUF; - 8019858: f06f 0301 mvn.w r3, #1 - 801985c: e096 b.n 801998c + 8019868: f06f 0301 mvn.w r3, #1 + 801986c: e096 b.n 801999c } val_offset = next_val_offset; - 801985e: 8a7b ldrh r3, [r7, #18] - 8019860: 83fb strh r3, [r7, #30] + 801986e: 8a7b ldrh r3, [r7, #18] + 8019870: 83fb strh r3, [r7, #30] decode_idx++; - 8019862: 6a3b ldr r3, [r7, #32] - 8019864: 3301 adds r3, #1 - 8019866: 623b str r3, [r7, #32] + 8019872: 6a3b ldr r3, [r7, #32] + 8019874: 3301 adds r3, #1 + 8019876: 623b str r3, [r7, #32] goto decode_next; - 8019868: e79e b.n 80197a8 + 8019878: e79e b.n 80197b8 } else if (decode_len == 4) { - 801986a: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 801986e: 2b04 cmp r3, #4 - 8019870: d106 bne.n 8019880 + 801987a: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 801987e: 2b04 cmp r3, #4 + 8019880: d106 bne.n 8019890 value = lwip_ntohl(value); - 8019872: 68bb ldr r3, [r7, #8] - 8019874: 4618 mov r0, r3 - 8019876: f7f6 fe18 bl 80104aa - 801987a: 4603 mov r3, r0 - 801987c: 60bb str r3, [r7, #8] - 801987e: e011 b.n 80198a4 + 8019882: 68bb ldr r3, [r7, #8] + 8019884: 4618 mov r0, r3 + 8019886: f7f6 fe18 bl 80104ba + 801988a: 4603 mov r3, r0 + 801988c: 60bb str r3, [r7, #8] + 801988e: e011 b.n 80198b4 } else { LWIP_ERROR("invalid decode_len", decode_len == 1, return ERR_VAL;); - 8019880: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 - 8019884: 2b01 cmp r3, #1 - 8019886: d009 beq.n 801989c - 8019888: 4b42 ldr r3, [pc, #264] ; (8019994 ) - 801988a: f44f 62d2 mov.w r2, #1680 ; 0x690 - 801988e: 4948 ldr r1, [pc, #288] ; (80199b0 ) - 8019890: 4842 ldr r0, [pc, #264] ; (801999c ) - 8019892: f002 fed9 bl 801c648 - 8019896: f06f 0305 mvn.w r3, #5 - 801989a: e077 b.n 801998c + 8019890: f897 3026 ldrb.w r3, [r7, #38] ; 0x26 + 8019894: 2b01 cmp r3, #1 + 8019896: d009 beq.n 80198ac + 8019898: 4b42 ldr r3, [pc, #264] ; (80199a4 ) + 801989a: f44f 62d2 mov.w r2, #1680 ; 0x690 + 801989e: 4948 ldr r1, [pc, #288] ; (80199c0 ) + 80198a0: 4842 ldr r0, [pc, #264] ; (80199ac ) + 80198a2: f002 fed9 bl 801c658 + 80198a6: f06f 0305 mvn.w r3, #5 + 80198aa: e077 b.n 801999c value = ((u8_t *)&value)[0]; - 801989c: f107 0308 add.w r3, r7, #8 - 80198a0: 781b ldrb r3, [r3, #0] - 80198a2: 60bb str r3, [r7, #8] + 80198ac: f107 0308 add.w r3, r7, #8 + 80198b0: 781b ldrb r3, [r3, #0] + 80198b2: 60bb str r3, [r7, #8] } dhcp_got_option(dhcp, decode_idx); - 80198a4: 4a3f ldr r2, [pc, #252] ; (80199a4 ) - 80198a6: 6a3b ldr r3, [r7, #32] - 80198a8: 4413 add r3, r2 - 80198aa: 2201 movs r2, #1 - 80198ac: 701a strb r2, [r3, #0] + 80198b4: 4a3f ldr r2, [pc, #252] ; (80199b4 ) + 80198b6: 6a3b ldr r3, [r7, #32] + 80198b8: 4413 add r3, r2 + 80198ba: 2201 movs r2, #1 + 80198bc: 701a strb r2, [r3, #0] dhcp_set_option_value(dhcp, decode_idx, value); - 80198ae: 68ba ldr r2, [r7, #8] - 80198b0: 493e ldr r1, [pc, #248] ; (80199ac ) - 80198b2: 6a3b ldr r3, [r7, #32] - 80198b4: f841 2023 str.w r2, [r1, r3, lsl #2] + 80198be: 68ba ldr r2, [r7, #8] + 80198c0: 493e ldr r1, [pc, #248] ; (80199bc ) + 80198c2: 6a3b ldr r3, [r7, #32] + 80198c4: f841 2023 str.w r2, [r1, r3, lsl #2] } } } if (offset >= q->len) { - 80198b8: 6b3b ldr r3, [r7, #48] ; 0x30 - 80198ba: 895b ldrh r3, [r3, #10] - 80198bc: 8f7a ldrh r2, [r7, #58] ; 0x3a - 80198be: 429a cmp r2, r3 - 80198c0: d324 bcc.n 801990c + 80198c8: 6b3b ldr r3, [r7, #48] ; 0x30 + 80198ca: 895b ldrh r3, [r3, #10] + 80198cc: 8f7a ldrh r2, [r7, #58] ; 0x3a + 80198ce: 429a cmp r2, r3 + 80198d0: d324 bcc.n 801991c offset = (u16_t)(offset - q->len); - 80198c2: 6b3b ldr r3, [r7, #48] ; 0x30 - 80198c4: 895b ldrh r3, [r3, #10] - 80198c6: 8f7a ldrh r2, [r7, #58] ; 0x3a - 80198c8: 1ad3 subs r3, r2, r3 - 80198ca: 877b strh r3, [r7, #58] ; 0x3a + 80198d2: 6b3b ldr r3, [r7, #48] ; 0x30 + 80198d4: 895b ldrh r3, [r3, #10] + 80198d6: 8f7a ldrh r2, [r7, #58] ; 0x3a + 80198d8: 1ad3 subs r3, r2, r3 + 80198da: 877b strh r3, [r7, #58] ; 0x3a offset_max = (u16_t)(offset_max - q->len); - 80198cc: 6b3b ldr r3, [r7, #48] ; 0x30 - 80198ce: 895b ldrh r3, [r3, #10] - 80198d0: 8f3a ldrh r2, [r7, #56] ; 0x38 - 80198d2: 1ad3 subs r3, r2, r3 - 80198d4: 873b strh r3, [r7, #56] ; 0x38 + 80198dc: 6b3b ldr r3, [r7, #48] ; 0x30 + 80198de: 895b ldrh r3, [r3, #10] + 80198e0: 8f3a ldrh r2, [r7, #56] ; 0x38 + 80198e2: 1ad3 subs r3, r2, r3 + 80198e4: 873b strh r3, [r7, #56] ; 0x38 if (offset < offset_max) { - 80198d6: 8f7a ldrh r2, [r7, #58] ; 0x3a - 80198d8: 8f3b ldrh r3, [r7, #56] ; 0x38 - 80198da: 429a cmp r2, r3 - 80198dc: d213 bcs.n 8019906 + 80198e6: 8f7a ldrh r2, [r7, #58] ; 0x3a + 80198e8: 8f3b ldrh r3, [r7, #56] ; 0x38 + 80198ea: 429a cmp r2, r3 + 80198ec: d213 bcs.n 8019916 q = q->next; - 80198de: 6b3b ldr r3, [r7, #48] ; 0x30 - 80198e0: 681b ldr r3, [r3, #0] - 80198e2: 633b str r3, [r7, #48] ; 0x30 + 80198ee: 6b3b ldr r3, [r7, #48] ; 0x30 + 80198f0: 681b ldr r3, [r3, #0] + 80198f2: 633b str r3, [r7, #48] ; 0x30 LWIP_ERROR("next pbuf was null", q != NULL, return ERR_VAL;); - 80198e4: 6b3b ldr r3, [r7, #48] ; 0x30 - 80198e6: 2b00 cmp r3, #0 - 80198e8: d109 bne.n 80198fe - 80198ea: 4b2a ldr r3, [pc, #168] ; (8019994 ) - 80198ec: f240 629d movw r2, #1693 ; 0x69d - 80198f0: 4930 ldr r1, [pc, #192] ; (80199b4 ) - 80198f2: 482a ldr r0, [pc, #168] ; (801999c ) - 80198f4: f002 fea8 bl 801c648 - 80198f8: f06f 0305 mvn.w r3, #5 - 80198fc: e046 b.n 801998c + 80198f4: 6b3b ldr r3, [r7, #48] ; 0x30 + 80198f6: 2b00 cmp r3, #0 + 80198f8: d109 bne.n 801990e + 80198fa: 4b2a ldr r3, [pc, #168] ; (80199a4 ) + 80198fc: f240 629d movw r2, #1693 ; 0x69d + 8019900: 4930 ldr r1, [pc, #192] ; (80199c4 ) + 8019902: 482a ldr r0, [pc, #168] ; (80199ac ) + 8019904: f002 fea8 bl 801c658 + 8019908: f06f 0305 mvn.w r3, #5 + 801990c: e046 b.n 801999c options = (u8_t *)q->payload; - 80198fe: 6b3b ldr r3, [r7, #48] ; 0x30 - 8019900: 685b ldr r3, [r3, #4] - 8019902: 63fb str r3, [r7, #60] ; 0x3c - 8019904: e002 b.n 801990c + 801990e: 6b3b ldr r3, [r7, #48] ; 0x30 + 8019910: 685b ldr r3, [r3, #4] + 8019912: 63fb str r3, [r7, #60] ; 0x3c + 8019914: e002 b.n 801991c } else { /* We've run out of bytes, probably no end marker. Don't proceed. */ return ERR_BUF; - 8019906: f06f 0301 mvn.w r3, #1 - 801990a: e03f b.n 801998c + 8019916: f06f 0301 mvn.w r3, #1 + 801991a: e03f b.n 801999c while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) { - 801990c: 6b3b ldr r3, [r7, #48] ; 0x30 - 801990e: 2b00 cmp r3, #0 - 8019910: d00a beq.n 8019928 - 8019912: 8f7a ldrh r2, [r7, #58] ; 0x3a - 8019914: 8f3b ldrh r3, [r7, #56] ; 0x38 - 8019916: 429a cmp r2, r3 - 8019918: d206 bcs.n 8019928 - 801991a: 8f7b ldrh r3, [r7, #58] ; 0x3a - 801991c: 6bfa ldr r2, [r7, #60] ; 0x3c - 801991e: 4413 add r3, r2 - 8019920: 781b ldrb r3, [r3, #0] - 8019922: 2bff cmp r3, #255 ; 0xff - 8019924: f47f adb7 bne.w 8019496 + 801991c: 6b3b ldr r3, [r7, #48] ; 0x30 + 801991e: 2b00 cmp r3, #0 + 8019920: d00a beq.n 8019938 + 8019922: 8f7a ldrh r2, [r7, #58] ; 0x3a + 8019924: 8f3b ldrh r3, [r7, #56] ; 0x38 + 8019926: 429a cmp r2, r3 + 8019928: d206 bcs.n 8019938 + 801992a: 8f7b ldrh r3, [r7, #58] ; 0x3a + 801992c: 6bfa ldr r2, [r7, #60] ; 0x3c + 801992e: 4413 add r3, r2 + 8019930: 781b ldrb r3, [r3, #0] + 8019932: 2bff cmp r3, #255 ; 0xff + 8019934: f47f adb7 bne.w 80194a6 } } } /* is this an overloaded message? */ if (dhcp_option_given(dhcp, DHCP_OPTION_IDX_OVERLOAD)) { - 8019928: 4b1e ldr r3, [pc, #120] ; (80199a4 ) - 801992a: 781b ldrb r3, [r3, #0] - 801992c: 2b00 cmp r3, #0 - 801992e: d018 beq.n 8019962 + 8019938: 4b1e ldr r3, [pc, #120] ; (80199b4 ) + 801993a: 781b ldrb r3, [r3, #0] + 801993c: 2b00 cmp r3, #0 + 801993e: d018 beq.n 8019972 u32_t overload = dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_OVERLOAD); - 8019930: 4b1e ldr r3, [pc, #120] ; (80199ac ) - 8019932: 681b ldr r3, [r3, #0] - 8019934: 60fb str r3, [r7, #12] + 8019940: 4b1e ldr r3, [pc, #120] ; (80199bc ) + 8019942: 681b ldr r3, [r3, #0] + 8019944: 60fb str r3, [r7, #12] dhcp_clear_option(dhcp, DHCP_OPTION_IDX_OVERLOAD); - 8019936: 4b1b ldr r3, [pc, #108] ; (80199a4 ) - 8019938: 2200 movs r2, #0 - 801993a: 701a strb r2, [r3, #0] + 8019946: 4b1b ldr r3, [pc, #108] ; (80199b4 ) + 8019948: 2200 movs r2, #0 + 801994a: 701a strb r2, [r3, #0] if (overload == DHCP_OVERLOAD_FILE) { - 801993c: 68fb ldr r3, [r7, #12] - 801993e: 2b01 cmp r3, #1 - 8019940: d102 bne.n 8019948 + 801994c: 68fb ldr r3, [r7, #12] + 801994e: 2b01 cmp r3, #1 + 8019950: d102 bne.n 8019958 parse_file_as_options = 1; - 8019942: 2301 movs r3, #1 - 8019944: 62fb str r3, [r7, #44] ; 0x2c - 8019946: e00c b.n 8019962 + 8019952: 2301 movs r3, #1 + 8019954: 62fb str r3, [r7, #44] ; 0x2c + 8019956: e00c b.n 8019972 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded file field\n")); } else if (overload == DHCP_OVERLOAD_SNAME) { - 8019948: 68fb ldr r3, [r7, #12] - 801994a: 2b02 cmp r3, #2 - 801994c: d102 bne.n 8019954 + 8019958: 68fb ldr r3, [r7, #12] + 801995a: 2b02 cmp r3, #2 + 801995c: d102 bne.n 8019964 parse_sname_as_options = 1; - 801994e: 2301 movs r3, #1 - 8019950: 62bb str r3, [r7, #40] ; 0x28 - 8019952: e006 b.n 8019962 + 801995e: 2301 movs r3, #1 + 8019960: 62bb str r3, [r7, #40] ; 0x28 + 8019962: e006 b.n 8019972 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname field\n")); } else if (overload == DHCP_OVERLOAD_SNAME_FILE) { - 8019954: 68fb ldr r3, [r7, #12] - 8019956: 2b03 cmp r3, #3 - 8019958: d103 bne.n 8019962 + 8019964: 68fb ldr r3, [r7, #12] + 8019966: 2b03 cmp r3, #3 + 8019968: d103 bne.n 8019972 parse_sname_as_options = 1; - 801995a: 2301 movs r3, #1 - 801995c: 62bb str r3, [r7, #40] ; 0x28 + 801996a: 2301 movs r3, #1 + 801996c: 62bb str r3, [r7, #40] ; 0x28 parse_file_as_options = 1; - 801995e: 2301 movs r3, #1 - 8019960: 62fb str r3, [r7, #44] ; 0x2c + 801996e: 2301 movs r3, #1 + 8019970: 62fb str r3, [r7, #44] ; 0x2c LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("overloaded sname and file field\n")); } else { LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("invalid overload option: %d\n", (int)overload)); } } if (parse_file_as_options) { - 8019962: 6afb ldr r3, [r7, #44] ; 0x2c - 8019964: 2b00 cmp r3, #0 - 8019966: d006 beq.n 8019976 + 8019972: 6afb ldr r3, [r7, #44] ; 0x2c + 8019974: 2b00 cmp r3, #0 + 8019976: d006 beq.n 8019986 /* if both are overloaded, parse file first and then sname (RFC 2131 ch. 4.1) */ parse_file_as_options = 0; - 8019968: 2300 movs r3, #0 - 801996a: 62fb str r3, [r7, #44] ; 0x2c + 8019978: 2300 movs r3, #0 + 801997a: 62fb str r3, [r7, #44] ; 0x2c options_idx = DHCP_FILE_OFS; - 801996c: 236c movs r3, #108 ; 0x6c - 801996e: 86fb strh r3, [r7, #54] ; 0x36 + 801997c: 236c movs r3, #108 ; 0x6c + 801997e: 86fb strh r3, [r7, #54] ; 0x36 options_idx_max = DHCP_FILE_OFS + DHCP_FILE_LEN; - 8019970: 23ec movs r3, #236 ; 0xec - 8019972: 86bb strh r3, [r7, #52] ; 0x34 + 8019980: 23ec movs r3, #236 ; 0xec + 8019982: 86bb strh r3, [r7, #52] ; 0x34 #if LWIP_DHCP_BOOTP_FILE file_overloaded = 1; #endif goto again; - 8019974: e569 b.n 801944a + 8019984: e569 b.n 801945a } else if (parse_sname_as_options) { - 8019976: 6abb ldr r3, [r7, #40] ; 0x28 - 8019978: 2b00 cmp r3, #0 - 801997a: d006 beq.n 801998a + 8019986: 6abb ldr r3, [r7, #40] ; 0x28 + 8019988: 2b00 cmp r3, #0 + 801998a: d006 beq.n 801999a parse_sname_as_options = 0; - 801997c: 2300 movs r3, #0 - 801997e: 62bb str r3, [r7, #40] ; 0x28 + 801998c: 2300 movs r3, #0 + 801998e: 62bb str r3, [r7, #40] ; 0x28 options_idx = DHCP_SNAME_OFS; - 8019980: 232c movs r3, #44 ; 0x2c - 8019982: 86fb strh r3, [r7, #54] ; 0x36 + 8019990: 232c movs r3, #44 ; 0x2c + 8019992: 86fb strh r3, [r7, #54] ; 0x36 options_idx_max = DHCP_SNAME_OFS + DHCP_SNAME_LEN; - 8019984: 236c movs r3, #108 ; 0x6c - 8019986: 86bb strh r3, [r7, #52] ; 0x34 + 8019994: 236c movs r3, #108 ; 0x6c + 8019996: 86bb strh r3, [r7, #52] ; 0x34 goto again; - 8019988: e55f b.n 801944a + 8019998: e55f b.n 801945a } /* make sure the string is really NULL-terminated */ dhcp->boot_file_name[DHCP_FILE_LEN-1] = 0; } #endif /* LWIP_DHCP_BOOTP_FILE */ return ERR_OK; - 801998a: 2300 movs r3, #0 -} - 801998c: 4618 mov r0, r3 - 801998e: 3740 adds r7, #64 ; 0x40 - 8019990: 46bd mov sp, r7 - 8019992: bd80 pop {r7, pc} - 8019994: 0801fd28 .word 0x0801fd28 - 8019998: 0801ffb0 .word 0x0801ffb0 - 801999c: 0801fd88 .word 0x0801fd88 - 80199a0: 0801fff4 .word 0x0801fff4 - 80199a4: 2000f80c .word 0x2000f80c - 80199a8: 08020008 .word 0x08020008 - 80199ac: 2000f814 .word 0x2000f814 - 80199b0: 08020020 .word 0x08020020 - 80199b4: 08020034 .word 0x08020034 - -080199b8 : + 801999a: 2300 movs r3, #0 +} + 801999c: 4618 mov r0, r3 + 801999e: 3740 adds r7, #64 ; 0x40 + 80199a0: 46bd mov sp, r7 + 80199a2: bd80 pop {r7, pc} + 80199a4: 0801fd38 .word 0x0801fd38 + 80199a8: 0801ffc0 .word 0x0801ffc0 + 80199ac: 0801fd98 .word 0x0801fd98 + 80199b0: 08020004 .word 0x08020004 + 80199b4: 2000f80c .word 0x2000f80c + 80199b8: 08020018 .word 0x08020018 + 80199bc: 2000f814 .word 0x2000f814 + 80199c0: 08020030 .word 0x08020030 + 80199c4: 08020044 .word 0x08020044 + +080199c8 : /** * If an incoming DHCP message is in response to us, then trigger the state machine */ static void dhcp_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port) { - 80199b8: b580 push {r7, lr} - 80199ba: b08a sub sp, #40 ; 0x28 - 80199bc: af00 add r7, sp, #0 - 80199be: 60f8 str r0, [r7, #12] - 80199c0: 60b9 str r1, [r7, #8] - 80199c2: 607a str r2, [r7, #4] - 80199c4: 603b str r3, [r7, #0] + 80199c8: b580 push {r7, lr} + 80199ca: b08a sub sp, #40 ; 0x28 + 80199cc: af00 add r7, sp, #0 + 80199ce: 60f8 str r0, [r7, #12] + 80199d0: 60b9 str r1, [r7, #8] + 80199d2: 607a str r2, [r7, #4] + 80199d4: 603b str r3, [r7, #0] struct netif *netif = ip_current_input_netif(); - 80199c6: 4b5f ldr r3, [pc, #380] ; (8019b44 ) - 80199c8: 685b ldr r3, [r3, #4] - 80199ca: 623b str r3, [r7, #32] + 80199d6: 4b5f ldr r3, [pc, #380] ; (8019b54 ) + 80199d8: 685b ldr r3, [r3, #4] + 80199da: 623b str r3, [r7, #32] struct dhcp *dhcp = netif_dhcp_data(netif); - 80199cc: 6a3b ldr r3, [r7, #32] - 80199ce: 6a5b ldr r3, [r3, #36] ; 0x24 - 80199d0: 61fb str r3, [r7, #28] + 80199dc: 6a3b ldr r3, [r7, #32] + 80199de: 6a5b ldr r3, [r3, #36] ; 0x24 + 80199e0: 61fb str r3, [r7, #28] struct dhcp_msg *reply_msg = (struct dhcp_msg *)p->payload; - 80199d2: 687b ldr r3, [r7, #4] - 80199d4: 685b ldr r3, [r3, #4] - 80199d6: 61bb str r3, [r7, #24] + 80199e2: 687b ldr r3, [r7, #4] + 80199e4: 685b ldr r3, [r3, #4] + 80199e6: 61bb str r3, [r7, #24] struct dhcp_msg *msg_in; LWIP_UNUSED_ARG(arg); /* Caught DHCP message from netif that does not have DHCP enabled? -> not interested */ if ((dhcp == NULL) || (dhcp->pcb_allocated == 0)) { - 80199d8: 69fb ldr r3, [r7, #28] - 80199da: 2b00 cmp r3, #0 - 80199dc: f000 809d beq.w 8019b1a - 80199e0: 69fb ldr r3, [r7, #28] - 80199e2: 791b ldrb r3, [r3, #4] - 80199e4: 2b00 cmp r3, #0 - 80199e6: f000 8098 beq.w 8019b1a + 80199e8: 69fb ldr r3, [r7, #28] + 80199ea: 2b00 cmp r3, #0 + 80199ec: f000 809d beq.w 8019b2a + 80199f0: 69fb ldr r3, [r7, #28] + 80199f2: 791b ldrb r3, [r3, #4] + 80199f4: 2b00 cmp r3, #0 + 80199f6: f000 8098 beq.w 8019b2a /* prevent warnings about unused arguments */ LWIP_UNUSED_ARG(pcb); LWIP_UNUSED_ARG(addr); LWIP_UNUSED_ARG(port); if (p->len < DHCP_MIN_REPLY_LEN) { - 80199ea: 687b ldr r3, [r7, #4] - 80199ec: 895b ldrh r3, [r3, #10] - 80199ee: 2b2b cmp r3, #43 ; 0x2b - 80199f0: f240 8095 bls.w 8019b1e + 80199fa: 687b ldr r3, [r7, #4] + 80199fc: 895b ldrh r3, [r3, #10] + 80199fe: 2b2b cmp r3, #43 ; 0x2b + 8019a00: f240 8095 bls.w 8019b2e LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP reply message or pbuf too short\n")); goto free_pbuf_and_return; } if (reply_msg->op != DHCP_BOOTREPLY) { - 80199f4: 69bb ldr r3, [r7, #24] - 80199f6: 781b ldrb r3, [r3, #0] - 80199f8: 2b02 cmp r3, #2 - 80199fa: f040 8092 bne.w 8019b22 + 8019a04: 69bb ldr r3, [r7, #24] + 8019a06: 781b ldrb r3, [r3, #0] + 8019a08: 2b02 cmp r3, #2 + 8019a0a: f040 8092 bne.w 8019b32 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("not a DHCP reply message, but type %"U16_F"\n", (u16_t)reply_msg->op)); goto free_pbuf_and_return; } /* iterate through hardware address and match against DHCP message */ for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { - 80199fe: 2300 movs r3, #0 - 8019a00: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8019a04: e012 b.n 8019a2c + 8019a0e: 2300 movs r3, #0 + 8019a10: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8019a14: e012 b.n 8019a3c if (netif->hwaddr[i] != reply_msg->chaddr[i]) { - 8019a06: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019a0a: 6a3a ldr r2, [r7, #32] - 8019a0c: 4413 add r3, r2 - 8019a0e: f893 202a ldrb.w r2, [r3, #42] ; 0x2a - 8019a12: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019a16: 69b9 ldr r1, [r7, #24] - 8019a18: 440b add r3, r1 - 8019a1a: 7f1b ldrb r3, [r3, #28] - 8019a1c: 429a cmp r2, r3 - 8019a1e: f040 8082 bne.w 8019b26 - for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { + 8019a16: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019a1a: 6a3a ldr r2, [r7, #32] + 8019a1c: 4413 add r3, r2 + 8019a1e: f893 202a ldrb.w r2, [r3, #42] ; 0x2a 8019a22: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019a26: 3301 adds r3, #1 - 8019a28: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 8019a2c: 6a3b ldr r3, [r7, #32] - 8019a2e: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 8019a32: f897 2027 ldrb.w r2, [r7, #39] ; 0x27 - 8019a36: 429a cmp r2, r3 - 8019a38: d203 bcs.n 8019a42 - 8019a3a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 - 8019a3e: 2b05 cmp r3, #5 - 8019a40: d9e1 bls.n 8019a06 + 8019a26: 69b9 ldr r1, [r7, #24] + 8019a28: 440b add r3, r1 + 8019a2a: 7f1b ldrb r3, [r3, #28] + 8019a2c: 429a cmp r2, r3 + 8019a2e: f040 8082 bne.w 8019b36 + for (i = 0; i < netif->hwaddr_len && i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { + 8019a32: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019a36: 3301 adds r3, #1 + 8019a38: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 8019a3c: 6a3b ldr r3, [r7, #32] + 8019a3e: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 8019a42: f897 2027 ldrb.w r2, [r7, #39] ; 0x27 + 8019a46: 429a cmp r2, r3 + 8019a48: d203 bcs.n 8019a52 + 8019a4a: f897 3027 ldrb.w r3, [r7, #39] ; 0x27 + 8019a4e: 2b05 cmp r3, #5 + 8019a50: d9e1 bls.n 8019a16 (u16_t)i, (u16_t)netif->hwaddr[i], (u16_t)i, (u16_t)reply_msg->chaddr[i])); goto free_pbuf_and_return; } } /* match transaction ID against what we expected */ if (lwip_ntohl(reply_msg->xid) != dhcp->xid) { - 8019a42: 69bb ldr r3, [r7, #24] - 8019a44: 685b ldr r3, [r3, #4] - 8019a46: 4618 mov r0, r3 - 8019a48: f7f6 fd2f bl 80104aa - 8019a4c: 4602 mov r2, r0 - 8019a4e: 69fb ldr r3, [r7, #28] - 8019a50: 681b ldr r3, [r3, #0] - 8019a52: 429a cmp r2, r3 - 8019a54: d169 bne.n 8019b2a + 8019a52: 69bb ldr r3, [r7, #24] + 8019a54: 685b ldr r3, [r3, #4] + 8019a56: 4618 mov r0, r3 + 8019a58: f7f6 fd2f bl 80104ba + 8019a5c: 4602 mov r2, r0 + 8019a5e: 69fb ldr r3, [r7, #28] + 8019a60: 681b ldr r3, [r3, #0] + 8019a62: 429a cmp r2, r3 + 8019a64: d169 bne.n 8019b3a LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("transaction id mismatch reply_msg->xid(%"X32_F")!=dhcp->xid(%"X32_F")\n", lwip_ntohl(reply_msg->xid), dhcp->xid)); goto free_pbuf_and_return; } /* option fields could be unfold? */ if (dhcp_parse_reply(p, dhcp) != ERR_OK) { - 8019a56: 69f9 ldr r1, [r7, #28] - 8019a58: 6878 ldr r0, [r7, #4] - 8019a5a: f7ff fcd9 bl 8019410 - 8019a5e: 4603 mov r3, r0 - 8019a60: 2b00 cmp r3, #0 - 8019a62: d164 bne.n 8019b2e + 8019a66: 69f9 ldr r1, [r7, #28] + 8019a68: 6878 ldr r0, [r7, #4] + 8019a6a: f7ff fcd9 bl 8019420 + 8019a6e: 4603 mov r3, r0 + 8019a70: 2b00 cmp r3, #0 + 8019a72: d164 bne.n 8019b3e goto free_pbuf_and_return; } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("searching DHCP_OPTION_MESSAGE_TYPE\n")); /* obtain pointer to DHCP message type */ if (!dhcp_option_given(dhcp, DHCP_OPTION_IDX_MSG_TYPE)) { - 8019a64: 4b38 ldr r3, [pc, #224] ; (8019b48 ) - 8019a66: 785b ldrb r3, [r3, #1] - 8019a68: 2b00 cmp r3, #0 - 8019a6a: d062 beq.n 8019b32 + 8019a74: 4b38 ldr r3, [pc, #224] ; (8019b58 ) + 8019a76: 785b ldrb r3, [r3, #1] + 8019a78: 2b00 cmp r3, #0 + 8019a7a: d062 beq.n 8019b42 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("DHCP_OPTION_MESSAGE_TYPE option not found\n")); goto free_pbuf_and_return; } msg_in = (struct dhcp_msg *)p->payload; - 8019a6c: 687b ldr r3, [r7, #4] - 8019a6e: 685b ldr r3, [r3, #4] - 8019a70: 617b str r3, [r7, #20] + 8019a7c: 687b ldr r3, [r7, #4] + 8019a7e: 685b ldr r3, [r3, #4] + 8019a80: 617b str r3, [r7, #20] /* read DHCP message type */ msg_type = (u8_t)dhcp_get_option_value(dhcp, DHCP_OPTION_IDX_MSG_TYPE); - 8019a72: 4b36 ldr r3, [pc, #216] ; (8019b4c ) - 8019a74: 685b ldr r3, [r3, #4] - 8019a76: 74fb strb r3, [r7, #19] + 8019a82: 4b36 ldr r3, [pc, #216] ; (8019b5c ) + 8019a84: 685b ldr r3, [r3, #4] + 8019a86: 74fb strb r3, [r7, #19] /* message type is DHCP ACK? */ if (msg_type == DHCP_ACK) { - 8019a78: 7cfb ldrb r3, [r7, #19] - 8019a7a: 2b05 cmp r3, #5 - 8019a7c: d12a bne.n 8019ad4 + 8019a88: 7cfb ldrb r3, [r7, #19] + 8019a8a: 2b05 cmp r3, #5 + 8019a8c: d12a bne.n 8019ae4 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_ACK received\n")); /* in requesting state? */ if (dhcp->state == DHCP_STATE_REQUESTING) { - 8019a7e: 69fb ldr r3, [r7, #28] - 8019a80: 795b ldrb r3, [r3, #5] - 8019a82: 2b01 cmp r3, #1 - 8019a84: d112 bne.n 8019aac + 8019a8e: 69fb ldr r3, [r7, #28] + 8019a90: 795b ldrb r3, [r3, #5] + 8019a92: 2b01 cmp r3, #1 + 8019a94: d112 bne.n 8019abc dhcp_handle_ack(netif, msg_in); - 8019a86: 6979 ldr r1, [r7, #20] - 8019a88: 6a38 ldr r0, [r7, #32] - 8019a8a: f7fe fe05 bl 8018698 + 8019a96: 6979 ldr r1, [r7, #20] + 8019a98: 6a38 ldr r0, [r7, #32] + 8019a9a: f7fe fe05 bl 80186a8 #if DHCP_DOES_ARP_CHECK if ((netif->flags & NETIF_FLAG_ETHARP) != 0) { - 8019a8e: 6a3b ldr r3, [r7, #32] - 8019a90: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 8019a94: f003 0308 and.w r3, r3, #8 - 8019a98: 2b00 cmp r3, #0 - 8019a9a: d003 beq.n 8019aa4 + 8019a9e: 6a3b ldr r3, [r7, #32] + 8019aa0: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 8019aa4: f003 0308 and.w r3, r3, #8 + 8019aa8: 2b00 cmp r3, #0 + 8019aaa: d003 beq.n 8019ab4 /* check if the acknowledged lease address is already in use */ dhcp_check(netif); - 8019a9c: 6a38 ldr r0, [r7, #32] - 8019a9e: f7fe fb73 bl 8018188 - 8019aa2: e047 b.n 8019b34 + 8019aac: 6a38 ldr r0, [r7, #32] + 8019aae: f7fe fb73 bl 8018198 + 8019ab2: e047 b.n 8019b44 } else { /* bind interface to the acknowledged lease address */ dhcp_bind(netif); - 8019aa4: 6a38 ldr r0, [r7, #32] - 8019aa6: f7ff f867 bl 8018b78 - 8019aaa: e043 b.n 8019b34 + 8019ab4: 6a38 ldr r0, [r7, #32] + 8019ab6: f7ff f867 bl 8018b88 + 8019aba: e043 b.n 8019b44 /* bind interface to the acknowledged lease address */ dhcp_bind(netif); #endif } /* already bound to the given lease address? */ else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) || - 8019aac: 69fb ldr r3, [r7, #28] - 8019aae: 795b ldrb r3, [r3, #5] - 8019ab0: 2b03 cmp r3, #3 - 8019ab2: d007 beq.n 8019ac4 - 8019ab4: 69fb ldr r3, [r7, #28] - 8019ab6: 795b ldrb r3, [r3, #5] - 8019ab8: 2b04 cmp r3, #4 - 8019aba: d003 beq.n 8019ac4 - (dhcp->state == DHCP_STATE_RENEWING)) { 8019abc: 69fb ldr r3, [r7, #28] 8019abe: 795b ldrb r3, [r3, #5] + 8019ac0: 2b03 cmp r3, #3 + 8019ac2: d007 beq.n 8019ad4 + 8019ac4: 69fb ldr r3, [r7, #28] + 8019ac6: 795b ldrb r3, [r3, #5] + 8019ac8: 2b04 cmp r3, #4 + 8019aca: d003 beq.n 8019ad4 + (dhcp->state == DHCP_STATE_RENEWING)) { + 8019acc: 69fb ldr r3, [r7, #28] + 8019ace: 795b ldrb r3, [r3, #5] else if ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REBINDING) || - 8019ac0: 2b05 cmp r3, #5 - 8019ac2: d137 bne.n 8019b34 + 8019ad0: 2b05 cmp r3, #5 + 8019ad2: d137 bne.n 8019b44 dhcp_handle_ack(netif, msg_in); - 8019ac4: 6979 ldr r1, [r7, #20] - 8019ac6: 6a38 ldr r0, [r7, #32] - 8019ac8: f7fe fde6 bl 8018698 + 8019ad4: 6979 ldr r1, [r7, #20] + 8019ad6: 6a38 ldr r0, [r7, #32] + 8019ad8: f7fe fde6 bl 80186a8 dhcp_bind(netif); - 8019acc: 6a38 ldr r0, [r7, #32] - 8019ace: f7ff f853 bl 8018b78 - 8019ad2: e02f b.n 8019b34 + 8019adc: 6a38 ldr r0, [r7, #32] + 8019ade: f7ff f853 bl 8018b88 + 8019ae2: e02f b.n 8019b44 } } /* received a DHCP_NAK in appropriate state? */ else if ((msg_type == DHCP_NAK) && - 8019ad4: 7cfb ldrb r3, [r7, #19] - 8019ad6: 2b06 cmp r3, #6 - 8019ad8: d113 bne.n 8019b02 - ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) || - 8019ada: 69fb ldr r3, [r7, #28] - 8019adc: 795b ldrb r3, [r3, #5] - else if ((msg_type == DHCP_NAK) && - 8019ade: 2b03 cmp r3, #3 - 8019ae0: d00b beq.n 8019afa + 8019ae4: 7cfb ldrb r3, [r7, #19] + 8019ae6: 2b06 cmp r3, #6 + 8019ae8: d113 bne.n 8019b12 ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) || - 8019ae2: 69fb ldr r3, [r7, #28] - 8019ae4: 795b ldrb r3, [r3, #5] - 8019ae6: 2b01 cmp r3, #1 - 8019ae8: d007 beq.n 8019afa - (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) { 8019aea: 69fb ldr r3, [r7, #28] 8019aec: 795b ldrb r3, [r3, #5] + else if ((msg_type == DHCP_NAK) && + 8019aee: 2b03 cmp r3, #3 + 8019af0: d00b beq.n 8019b0a ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) || - 8019aee: 2b04 cmp r3, #4 - 8019af0: d003 beq.n 8019afa - (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) { 8019af2: 69fb ldr r3, [r7, #28] 8019af4: 795b ldrb r3, [r3, #5] - 8019af6: 2b05 cmp r3, #5 - 8019af8: d103 bne.n 8019b02 + 8019af6: 2b01 cmp r3, #1 + 8019af8: d007 beq.n 8019b0a + (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) { + 8019afa: 69fb ldr r3, [r7, #28] + 8019afc: 795b ldrb r3, [r3, #5] + ((dhcp->state == DHCP_STATE_REBOOTING) || (dhcp->state == DHCP_STATE_REQUESTING) || + 8019afe: 2b04 cmp r3, #4 + 8019b00: d003 beq.n 8019b0a + (dhcp->state == DHCP_STATE_REBINDING) || (dhcp->state == DHCP_STATE_RENEWING ))) { + 8019b02: 69fb ldr r3, [r7, #28] + 8019b04: 795b ldrb r3, [r3, #5] + 8019b06: 2b05 cmp r3, #5 + 8019b08: d103 bne.n 8019b12 LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_NAK received\n")); dhcp_handle_nak(netif); - 8019afa: 6a38 ldr r0, [r7, #32] - 8019afc: f7fe fb2a bl 8018154 - 8019b00: e018 b.n 8019b34 + 8019b0a: 6a38 ldr r0, [r7, #32] + 8019b0c: f7fe fb2a bl 8018164 + 8019b10: e018 b.n 8019b44 } /* received a DHCP_OFFER in DHCP_STATE_SELECTING state? */ else if ((msg_type == DHCP_OFFER) && (dhcp->state == DHCP_STATE_SELECTING)) { - 8019b02: 7cfb ldrb r3, [r7, #19] - 8019b04: 2b02 cmp r3, #2 - 8019b06: d108 bne.n 8019b1a - 8019b08: 69fb ldr r3, [r7, #28] - 8019b0a: 795b ldrb r3, [r3, #5] - 8019b0c: 2b06 cmp r3, #6 - 8019b0e: d104 bne.n 8019b1a + 8019b12: 7cfb ldrb r3, [r7, #19] + 8019b14: 2b02 cmp r3, #2 + 8019b16: d108 bne.n 8019b2a + 8019b18: 69fb ldr r3, [r7, #28] + 8019b1a: 795b ldrb r3, [r3, #5] + 8019b1c: 2b06 cmp r3, #6 + 8019b1e: d104 bne.n 8019b2a LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("DHCP_OFFER received in DHCP_STATE_SELECTING state\n")); /* remember offered lease */ dhcp_handle_offer(netif, msg_in); - 8019b10: 6979 ldr r1, [r7, #20] - 8019b12: 6a38 ldr r0, [r7, #32] - 8019b14: f7fe fb6c bl 80181f0 - 8019b18: e00c b.n 8019b34 + 8019b20: 6979 ldr r1, [r7, #20] + 8019b22: 6a38 ldr r0, [r7, #32] + 8019b24: f7fe fb6c bl 8018200 + 8019b28: e00c b.n 8019b44 } free_pbuf_and_return: - 8019b1a: bf00 nop - 8019b1c: e00a b.n 8019b34 - goto free_pbuf_and_return; - 8019b1e: bf00 nop - 8019b20: e008 b.n 8019b34 - goto free_pbuf_and_return; - 8019b22: bf00 nop - 8019b24: e006 b.n 8019b34 - goto free_pbuf_and_return; - 8019b26: bf00 nop - 8019b28: e004 b.n 8019b34 - goto free_pbuf_and_return; 8019b2a: bf00 nop - 8019b2c: e002 b.n 8019b34 + 8019b2c: e00a b.n 8019b44 goto free_pbuf_and_return; 8019b2e: bf00 nop - 8019b30: e000 b.n 8019b34 + 8019b30: e008 b.n 8019b44 goto free_pbuf_and_return; 8019b32: bf00 nop - pbuf_free(p); - 8019b34: 6878 ldr r0, [r7, #4] - 8019b36: f7f8 f857 bl 8011be8 -} + 8019b34: e006 b.n 8019b44 + goto free_pbuf_and_return; + 8019b36: bf00 nop + 8019b38: e004 b.n 8019b44 + goto free_pbuf_and_return; 8019b3a: bf00 nop - 8019b3c: 3728 adds r7, #40 ; 0x28 - 8019b3e: 46bd mov sp, r7 - 8019b40: bd80 pop {r7, pc} + 8019b3c: e002 b.n 8019b44 + goto free_pbuf_and_return; + 8019b3e: bf00 nop + 8019b40: e000 b.n 8019b44 + goto free_pbuf_and_return; 8019b42: bf00 nop - 8019b44: 2000c0bc .word 0x2000c0bc - 8019b48: 2000f80c .word 0x2000f80c - 8019b4c: 2000f814 .word 0x2000f814 - -08019b50 : + pbuf_free(p); + 8019b44: 6878 ldr r0, [r7, #4] + 8019b46: f7f8 f857 bl 8011bf8 +} + 8019b4a: bf00 nop + 8019b4c: 3728 adds r7, #40 ; 0x28 + 8019b4e: 46bd mov sp, r7 + 8019b50: bd80 pop {r7, pc} + 8019b52: bf00 nop + 8019b54: 2000c0bc .word 0x2000c0bc + 8019b58: 2000f80c .word 0x2000f80c + 8019b5c: 2000f814 .word 0x2000f814 + +08019b60 : * @param dhcp dhcp control struct * @param message_type message type of the request */ static struct pbuf * dhcp_create_msg(struct netif *netif, struct dhcp *dhcp, u8_t message_type, u16_t *options_out_len) { - 8019b50: b580 push {r7, lr} - 8019b52: b088 sub sp, #32 - 8019b54: af00 add r7, sp, #0 - 8019b56: 60f8 str r0, [r7, #12] - 8019b58: 60b9 str r1, [r7, #8] - 8019b5a: 603b str r3, [r7, #0] - 8019b5c: 4613 mov r3, r2 - 8019b5e: 71fb strb r3, [r7, #7] + 8019b60: b580 push {r7, lr} + 8019b62: b088 sub sp, #32 + 8019b64: af00 add r7, sp, #0 + 8019b66: 60f8 str r0, [r7, #12] + 8019b68: 60b9 str r1, [r7, #8] + 8019b6a: 603b str r3, [r7, #0] + 8019b6c: 4613 mov r3, r2 + 8019b6e: 71fb strb r3, [r7, #7] if (!xid_initialised) { xid = DHCP_GLOBAL_XID; xid_initialised = !xid_initialised; } #endif LWIP_ERROR("dhcp_create_msg: netif != NULL", (netif != NULL), return NULL;); - 8019b60: 68fb ldr r3, [r7, #12] - 8019b62: 2b00 cmp r3, #0 - 8019b64: d108 bne.n 8019b78 - 8019b66: 4b5f ldr r3, [pc, #380] ; (8019ce4 ) - 8019b68: f240 7269 movw r2, #1897 ; 0x769 - 8019b6c: 495e ldr r1, [pc, #376] ; (8019ce8 ) - 8019b6e: 485f ldr r0, [pc, #380] ; (8019cec ) - 8019b70: f002 fd6a bl 801c648 - 8019b74: 2300 movs r3, #0 - 8019b76: e0b1 b.n 8019cdc + 8019b70: 68fb ldr r3, [r7, #12] + 8019b72: 2b00 cmp r3, #0 + 8019b74: d108 bne.n 8019b88 + 8019b76: 4b5f ldr r3, [pc, #380] ; (8019cf4 ) + 8019b78: f240 7269 movw r2, #1897 ; 0x769 + 8019b7c: 495e ldr r1, [pc, #376] ; (8019cf8 ) + 8019b7e: 485f ldr r0, [pc, #380] ; (8019cfc ) + 8019b80: f002 fd6a bl 801c658 + 8019b84: 2300 movs r3, #0 + 8019b86: e0b1 b.n 8019cec LWIP_ERROR("dhcp_create_msg: dhcp != NULL", (dhcp != NULL), return NULL;); - 8019b78: 68bb ldr r3, [r7, #8] - 8019b7a: 2b00 cmp r3, #0 - 8019b7c: d108 bne.n 8019b90 - 8019b7e: 4b59 ldr r3, [pc, #356] ; (8019ce4 ) - 8019b80: f240 726a movw r2, #1898 ; 0x76a - 8019b84: 495a ldr r1, [pc, #360] ; (8019cf0 ) - 8019b86: 4859 ldr r0, [pc, #356] ; (8019cec ) - 8019b88: f002 fd5e bl 801c648 - 8019b8c: 2300 movs r3, #0 - 8019b8e: e0a5 b.n 8019cdc + 8019b88: 68bb ldr r3, [r7, #8] + 8019b8a: 2b00 cmp r3, #0 + 8019b8c: d108 bne.n 8019ba0 + 8019b8e: 4b59 ldr r3, [pc, #356] ; (8019cf4 ) + 8019b90: f240 726a movw r2, #1898 ; 0x76a + 8019b94: 495a ldr r1, [pc, #360] ; (8019d00 ) + 8019b96: 4859 ldr r0, [pc, #356] ; (8019cfc ) + 8019b98: f002 fd5e bl 801c658 + 8019b9c: 2300 movs r3, #0 + 8019b9e: e0a5 b.n 8019cec p_out = pbuf_alloc(PBUF_TRANSPORT, sizeof(struct dhcp_msg), PBUF_RAM); - 8019b90: f44f 7220 mov.w r2, #640 ; 0x280 - 8019b94: f44f 719a mov.w r1, #308 ; 0x134 - 8019b98: 2036 movs r0, #54 ; 0x36 - 8019b9a: f7f7 fd45 bl 8011628 - 8019b9e: 61b8 str r0, [r7, #24] + 8019ba0: f44f 7220 mov.w r2, #640 ; 0x280 + 8019ba4: f44f 719a mov.w r1, #308 ; 0x134 + 8019ba8: 2036 movs r0, #54 ; 0x36 + 8019baa: f7f7 fd45 bl 8011638 + 8019bae: 61b8 str r0, [r7, #24] if (p_out == NULL) { - 8019ba0: 69bb ldr r3, [r7, #24] - 8019ba2: 2b00 cmp r3, #0 - 8019ba4: d101 bne.n 8019baa + 8019bb0: 69bb ldr r3, [r7, #24] + 8019bb2: 2b00 cmp r3, #0 + 8019bb4: d101 bne.n 8019bba LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("dhcp_create_msg(): could not allocate pbuf\n")); return NULL; - 8019ba6: 2300 movs r3, #0 - 8019ba8: e098 b.n 8019cdc + 8019bb6: 2300 movs r3, #0 + 8019bb8: e098 b.n 8019cec } LWIP_ASSERT("dhcp_create_msg: check that first pbuf can hold struct dhcp_msg", - 8019baa: 69bb ldr r3, [r7, #24] - 8019bac: 895b ldrh r3, [r3, #10] - 8019bae: f5b3 7f9a cmp.w r3, #308 ; 0x134 - 8019bb2: d206 bcs.n 8019bc2 - 8019bb4: 4b4b ldr r3, [pc, #300] ; (8019ce4 ) - 8019bb6: f240 7272 movw r2, #1906 ; 0x772 - 8019bba: 494e ldr r1, [pc, #312] ; (8019cf4 ) - 8019bbc: 484b ldr r0, [pc, #300] ; (8019cec ) - 8019bbe: f002 fd43 bl 801c648 + 8019bba: 69bb ldr r3, [r7, #24] + 8019bbc: 895b ldrh r3, [r3, #10] + 8019bbe: f5b3 7f9a cmp.w r3, #308 ; 0x134 + 8019bc2: d206 bcs.n 8019bd2 + 8019bc4: 4b4b ldr r3, [pc, #300] ; (8019cf4 ) + 8019bc6: f240 7272 movw r2, #1906 ; 0x772 + 8019bca: 494e ldr r1, [pc, #312] ; (8019d04 ) + 8019bcc: 484b ldr r0, [pc, #300] ; (8019cfc ) + 8019bce: f002 fd43 bl 801c658 (p_out->len >= sizeof(struct dhcp_msg))); /* DHCP_REQUEST should reuse 'xid' from DHCPOFFER */ if ((message_type != DHCP_REQUEST) || (dhcp->state == DHCP_STATE_REBOOTING)) { - 8019bc2: 79fb ldrb r3, [r7, #7] - 8019bc4: 2b03 cmp r3, #3 - 8019bc6: d103 bne.n 8019bd0 - 8019bc8: 68bb ldr r3, [r7, #8] - 8019bca: 795b ldrb r3, [r3, #5] - 8019bcc: 2b03 cmp r3, #3 - 8019bce: d10d bne.n 8019bec + 8019bd2: 79fb ldrb r3, [r7, #7] + 8019bd4: 2b03 cmp r3, #3 + 8019bd6: d103 bne.n 8019be0 + 8019bd8: 68bb ldr r3, [r7, #8] + 8019bda: 795b ldrb r3, [r3, #5] + 8019bdc: 2b03 cmp r3, #3 + 8019bde: d10d bne.n 8019bfc /* reuse transaction identifier in retransmissions */ if (dhcp->tries == 0) { - 8019bd0: 68bb ldr r3, [r7, #8] - 8019bd2: 799b ldrb r3, [r3, #6] - 8019bd4: 2b00 cmp r3, #0 - 8019bd6: d105 bne.n 8019be4 + 8019be0: 68bb ldr r3, [r7, #8] + 8019be2: 799b ldrb r3, [r3, #6] + 8019be4: 2b00 cmp r3, #0 + 8019be6: d105 bne.n 8019bf4 #if DHCP_CREATE_RAND_XID && defined(LWIP_RAND) xid = LWIP_RAND(); - 8019bd8: f002 fd4e bl 801c678 - 8019bdc: 4603 mov r3, r0 - 8019bde: 461a mov r2, r3 - 8019be0: 4b45 ldr r3, [pc, #276] ; (8019cf8 ) - 8019be2: 601a str r2, [r3, #0] + 8019be8: f002 fd4e bl 801c688 + 8019bec: 4603 mov r3, r0 + 8019bee: 461a mov r2, r3 + 8019bf0: 4b45 ldr r3, [pc, #276] ; (8019d08 ) + 8019bf2: 601a str r2, [r3, #0] #else /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */ xid++; #endif /* DHCP_CREATE_RAND_XID && defined(LWIP_RAND) */ } dhcp->xid = xid; - 8019be4: 4b44 ldr r3, [pc, #272] ; (8019cf8 ) - 8019be6: 681a ldr r2, [r3, #0] - 8019be8: 68bb ldr r3, [r7, #8] - 8019bea: 601a str r2, [r3, #0] + 8019bf4: 4b44 ldr r3, [pc, #272] ; (8019d08 ) + 8019bf6: 681a ldr r2, [r3, #0] + 8019bf8: 68bb ldr r3, [r7, #8] + 8019bfa: 601a str r2, [r3, #0] } LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE, ("transaction id xid(%"X32_F")\n", xid)); msg_out = (struct dhcp_msg *)p_out->payload; - 8019bec: 69bb ldr r3, [r7, #24] - 8019bee: 685b ldr r3, [r3, #4] - 8019bf0: 617b str r3, [r7, #20] + 8019bfc: 69bb ldr r3, [r7, #24] + 8019bfe: 685b ldr r3, [r3, #4] + 8019c00: 617b str r3, [r7, #20] memset(msg_out, 0, sizeof(struct dhcp_msg)); - 8019bf2: f44f 729a mov.w r2, #308 ; 0x134 - 8019bf6: 2100 movs r1, #0 - 8019bf8: 6978 ldr r0, [r7, #20] - 8019bfa: f002 fd1c bl 801c636 + 8019c02: f44f 729a mov.w r2, #308 ; 0x134 + 8019c06: 2100 movs r1, #0 + 8019c08: 6978 ldr r0, [r7, #20] + 8019c0a: f002 fd1c bl 801c646 msg_out->op = DHCP_BOOTREQUEST; - 8019bfe: 697b ldr r3, [r7, #20] - 8019c00: 2201 movs r2, #1 - 8019c02: 701a strb r2, [r3, #0] + 8019c0e: 697b ldr r3, [r7, #20] + 8019c10: 2201 movs r2, #1 + 8019c12: 701a strb r2, [r3, #0] /* @todo: make link layer independent */ msg_out->htype = LWIP_IANA_HWTYPE_ETHERNET; - 8019c04: 697b ldr r3, [r7, #20] - 8019c06: 2201 movs r2, #1 - 8019c08: 705a strb r2, [r3, #1] + 8019c14: 697b ldr r3, [r7, #20] + 8019c16: 2201 movs r2, #1 + 8019c18: 705a strb r2, [r3, #1] msg_out->hlen = netif->hwaddr_len; - 8019c0a: 68fb ldr r3, [r7, #12] - 8019c0c: f893 2030 ldrb.w r2, [r3, #48] ; 0x30 - 8019c10: 697b ldr r3, [r7, #20] - 8019c12: 709a strb r2, [r3, #2] - msg_out->xid = lwip_htonl(dhcp->xid); - 8019c14: 68bb ldr r3, [r7, #8] - 8019c16: 681b ldr r3, [r3, #0] - 8019c18: 4618 mov r0, r3 - 8019c1a: f7f6 fc46 bl 80104aa - 8019c1e: 4602 mov r2, r0 + 8019c1a: 68fb ldr r3, [r7, #12] + 8019c1c: f893 2030 ldrb.w r2, [r3, #48] ; 0x30 8019c20: 697b ldr r3, [r7, #20] - 8019c22: 605a str r2, [r3, #4] + 8019c22: 709a strb r2, [r3, #2] + msg_out->xid = lwip_htonl(dhcp->xid); + 8019c24: 68bb ldr r3, [r7, #8] + 8019c26: 681b ldr r3, [r3, #0] + 8019c28: 4618 mov r0, r3 + 8019c2a: f7f6 fc46 bl 80104ba + 8019c2e: 4602 mov r2, r0 + 8019c30: 697b ldr r3, [r7, #20] + 8019c32: 605a str r2, [r3, #4] /* we don't need the broadcast flag since we can receive unicast traffic before being fully configured! */ /* set ciaddr to netif->ip_addr based on message_type and state */ if ((message_type == DHCP_INFORM) || (message_type == DHCP_DECLINE) || (message_type == DHCP_RELEASE) || - 8019c24: 79fb ldrb r3, [r7, #7] - 8019c26: 2b08 cmp r3, #8 - 8019c28: d010 beq.n 8019c4c - 8019c2a: 79fb ldrb r3, [r7, #7] - 8019c2c: 2b04 cmp r3, #4 - 8019c2e: d00d beq.n 8019c4c - 8019c30: 79fb ldrb r3, [r7, #7] - 8019c32: 2b07 cmp r3, #7 - 8019c34: d00a beq.n 8019c4c - 8019c36: 79fb ldrb r3, [r7, #7] - 8019c38: 2b03 cmp r3, #3 - 8019c3a: d10c bne.n 8019c56 + 8019c34: 79fb ldrb r3, [r7, #7] + 8019c36: 2b08 cmp r3, #8 + 8019c38: d010 beq.n 8019c5c + 8019c3a: 79fb ldrb r3, [r7, #7] + 8019c3c: 2b04 cmp r3, #4 + 8019c3e: d00d beq.n 8019c5c + 8019c40: 79fb ldrb r3, [r7, #7] + 8019c42: 2b07 cmp r3, #7 + 8019c44: d00a beq.n 8019c5c + 8019c46: 79fb ldrb r3, [r7, #7] + 8019c48: 2b03 cmp r3, #3 + 8019c4a: d10c bne.n 8019c66 ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */ ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) { - 8019c3c: 68bb ldr r3, [r7, #8] - 8019c3e: 795b ldrb r3, [r3, #5] + 8019c4c: 68bb ldr r3, [r7, #8] + 8019c4e: 795b ldrb r3, [r3, #5] ((message_type == DHCP_REQUEST) && /* DHCP_STATE_BOUND not used for sending! */ - 8019c40: 2b05 cmp r3, #5 - 8019c42: d003 beq.n 8019c4c + 8019c50: 2b05 cmp r3, #5 + 8019c52: d003 beq.n 8019c5c ((dhcp->state == DHCP_STATE_RENEWING) || dhcp->state == DHCP_STATE_REBINDING))) { - 8019c44: 68bb ldr r3, [r7, #8] - 8019c46: 795b ldrb r3, [r3, #5] - 8019c48: 2b04 cmp r3, #4 - 8019c4a: d104 bne.n 8019c56 + 8019c54: 68bb ldr r3, [r7, #8] + 8019c56: 795b ldrb r3, [r3, #5] + 8019c58: 2b04 cmp r3, #4 + 8019c5a: d104 bne.n 8019c66 ip4_addr_copy(msg_out->ciaddr, *netif_ip4_addr(netif)); - 8019c4c: 68fb ldr r3, [r7, #12] - 8019c4e: 3304 adds r3, #4 - 8019c50: 681a ldr r2, [r3, #0] - 8019c52: 697b ldr r3, [r7, #20] - 8019c54: 60da str r2, [r3, #12] + 8019c5c: 68fb ldr r3, [r7, #12] + 8019c5e: 3304 adds r3, #4 + 8019c60: 681a ldr r2, [r3, #0] + 8019c62: 697b ldr r3, [r7, #20] + 8019c64: 60da str r2, [r3, #12] } for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { - 8019c56: 2300 movs r3, #0 - 8019c58: 83fb strh r3, [r7, #30] - 8019c5a: e00c b.n 8019c76 + 8019c66: 2300 movs r3, #0 + 8019c68: 83fb strh r3, [r7, #30] + 8019c6a: e00c b.n 8019c86 /* copy netif hardware address (padded with zeroes through memset already) */ msg_out->chaddr[i] = netif->hwaddr[i]; - 8019c5c: 8bfa ldrh r2, [r7, #30] - 8019c5e: 8bfb ldrh r3, [r7, #30] - 8019c60: 68f9 ldr r1, [r7, #12] - 8019c62: 440a add r2, r1 - 8019c64: f892 102a ldrb.w r1, [r2, #42] ; 0x2a - 8019c68: 697a ldr r2, [r7, #20] - 8019c6a: 4413 add r3, r2 - 8019c6c: 460a mov r2, r1 - 8019c6e: 771a strb r2, [r3, #28] + 8019c6c: 8bfa ldrh r2, [r7, #30] + 8019c6e: 8bfb ldrh r3, [r7, #30] + 8019c70: 68f9 ldr r1, [r7, #12] + 8019c72: 440a add r2, r1 + 8019c74: f892 102a ldrb.w r1, [r2, #42] ; 0x2a + 8019c78: 697a ldr r2, [r7, #20] + 8019c7a: 4413 add r3, r2 + 8019c7c: 460a mov r2, r1 + 8019c7e: 771a strb r2, [r3, #28] for (i = 0; i < LWIP_MIN(DHCP_CHADDR_LEN, NETIF_MAX_HWADDR_LEN); i++) { - 8019c70: 8bfb ldrh r3, [r7, #30] - 8019c72: 3301 adds r3, #1 - 8019c74: 83fb strh r3, [r7, #30] - 8019c76: 8bfb ldrh r3, [r7, #30] - 8019c78: 2b05 cmp r3, #5 - 8019c7a: d9ef bls.n 8019c5c + 8019c80: 8bfb ldrh r3, [r7, #30] + 8019c82: 3301 adds r3, #1 + 8019c84: 83fb strh r3, [r7, #30] + 8019c86: 8bfb ldrh r3, [r7, #30] + 8019c88: 2b05 cmp r3, #5 + 8019c8a: d9ef bls.n 8019c6c } msg_out->cookie = PP_HTONL(DHCP_MAGIC_COOKIE); - 8019c7c: 697b ldr r3, [r7, #20] - 8019c7e: 2200 movs r2, #0 - 8019c80: f042 0263 orr.w r2, r2, #99 ; 0x63 - 8019c84: f883 20ec strb.w r2, [r3, #236] ; 0xec - 8019c88: 2200 movs r2, #0 - 8019c8a: f062 027d orn r2, r2, #125 ; 0x7d - 8019c8e: f883 20ed strb.w r2, [r3, #237] ; 0xed - 8019c92: 2200 movs r2, #0 - 8019c94: f042 0253 orr.w r2, r2, #83 ; 0x53 - 8019c98: f883 20ee strb.w r2, [r3, #238] ; 0xee - 8019c9c: 2200 movs r2, #0 - 8019c9e: f042 0263 orr.w r2, r2, #99 ; 0x63 - 8019ca2: f883 20ef strb.w r2, [r3, #239] ; 0xef + 8019c8c: 697b ldr r3, [r7, #20] + 8019c8e: 2200 movs r2, #0 + 8019c90: f042 0263 orr.w r2, r2, #99 ; 0x63 + 8019c94: f883 20ec strb.w r2, [r3, #236] ; 0xec + 8019c98: 2200 movs r2, #0 + 8019c9a: f062 027d orn r2, r2, #125 ; 0x7d + 8019c9e: f883 20ed strb.w r2, [r3, #237] ; 0xed + 8019ca2: 2200 movs r2, #0 + 8019ca4: f042 0253 orr.w r2, r2, #83 ; 0x53 + 8019ca8: f883 20ee strb.w r2, [r3, #238] ; 0xee + 8019cac: 2200 movs r2, #0 + 8019cae: f042 0263 orr.w r2, r2, #99 ; 0x63 + 8019cb2: f883 20ef strb.w r2, [r3, #239] ; 0xef /* Add option MESSAGE_TYPE */ options_out_len_loc = dhcp_option(0, msg_out->options, DHCP_OPTION_MESSAGE_TYPE, DHCP_OPTION_MESSAGE_TYPE_LEN); - 8019ca6: 697b ldr r3, [r7, #20] - 8019ca8: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8019cac: 2301 movs r3, #1 - 8019cae: 2235 movs r2, #53 ; 0x35 - 8019cb0: 2000 movs r0, #0 - 8019cb2: f7ff fadd bl 8019270 - 8019cb6: 4603 mov r3, r0 - 8019cb8: 827b strh r3, [r7, #18] + 8019cb6: 697b ldr r3, [r7, #20] + 8019cb8: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8019cbc: 2301 movs r3, #1 + 8019cbe: 2235 movs r2, #53 ; 0x35 + 8019cc0: 2000 movs r0, #0 + 8019cc2: f7ff fadd bl 8019280 + 8019cc6: 4603 mov r3, r0 + 8019cc8: 827b strh r3, [r7, #18] options_out_len_loc = dhcp_option_byte(options_out_len_loc, msg_out->options, message_type); - 8019cba: 697b ldr r3, [r7, #20] - 8019cbc: f103 01f0 add.w r1, r3, #240 ; 0xf0 - 8019cc0: 79fa ldrb r2, [r7, #7] - 8019cc2: 8a7b ldrh r3, [r7, #18] - 8019cc4: 4618 mov r0, r3 - 8019cc6: f7ff fb07 bl 80192d8 - 8019cca: 4603 mov r3, r0 - 8019ccc: 827b strh r3, [r7, #18] + 8019cca: 697b ldr r3, [r7, #20] + 8019ccc: f103 01f0 add.w r1, r3, #240 ; 0xf0 + 8019cd0: 79fa ldrb r2, [r7, #7] + 8019cd2: 8a7b ldrh r3, [r7, #18] + 8019cd4: 4618 mov r0, r3 + 8019cd6: f7ff fb07 bl 80192e8 + 8019cda: 4603 mov r3, r0 + 8019cdc: 827b strh r3, [r7, #18] if (options_out_len) { - 8019cce: 683b ldr r3, [r7, #0] - 8019cd0: 2b00 cmp r3, #0 - 8019cd2: d002 beq.n 8019cda + 8019cde: 683b ldr r3, [r7, #0] + 8019ce0: 2b00 cmp r3, #0 + 8019ce2: d002 beq.n 8019cea *options_out_len = options_out_len_loc; - 8019cd4: 683b ldr r3, [r7, #0] - 8019cd6: 8a7a ldrh r2, [r7, #18] - 8019cd8: 801a strh r2, [r3, #0] + 8019ce4: 683b ldr r3, [r7, #0] + 8019ce6: 8a7a ldrh r2, [r7, #18] + 8019ce8: 801a strh r2, [r3, #0] } return p_out; - 8019cda: 69bb ldr r3, [r7, #24] -} - 8019cdc: 4618 mov r0, r3 - 8019cde: 3720 adds r7, #32 - 8019ce0: 46bd mov sp, r7 - 8019ce2: bd80 pop {r7, pc} - 8019ce4: 0801fd28 .word 0x0801fd28 - 8019ce8: 08020048 .word 0x08020048 - 8019cec: 0801fd88 .word 0x0801fd88 - 8019cf0: 08020068 .word 0x08020068 - 8019cf4: 08020088 .word 0x08020088 - 8019cf8: 20008768 .word 0x20008768 - -08019cfc : + 8019cea: 69bb ldr r3, [r7, #24] +} + 8019cec: 4618 mov r0, r3 + 8019cee: 3720 adds r7, #32 + 8019cf0: 46bd mov sp, r7 + 8019cf2: bd80 pop {r7, pc} + 8019cf4: 0801fd38 .word 0x0801fd38 + 8019cf8: 08020058 .word 0x08020058 + 8019cfc: 0801fd98 .word 0x0801fd98 + 8019d00: 08020078 .word 0x08020078 + 8019d04: 08020098 .word 0x08020098 + 8019d08: 20008768 .word 0x20008768 + +08019d0c : * Adds the END option to the DHCP message, and if * necessary, up to three padding bytes. */ static void dhcp_option_trailer(u16_t options_out_len, u8_t *options, struct pbuf *p_out) { - 8019cfc: b580 push {r7, lr} - 8019cfe: b084 sub sp, #16 - 8019d00: af00 add r7, sp, #0 - 8019d02: 4603 mov r3, r0 - 8019d04: 60b9 str r1, [r7, #8] - 8019d06: 607a str r2, [r7, #4] - 8019d08: 81fb strh r3, [r7, #14] + 8019d0c: b580 push {r7, lr} + 8019d0e: b084 sub sp, #16 + 8019d10: af00 add r7, sp, #0 + 8019d12: 4603 mov r3, r0 + 8019d14: 60b9 str r1, [r7, #8] + 8019d16: 607a str r2, [r7, #4] + 8019d18: 81fb strh r3, [r7, #14] options[options_out_len++] = DHCP_OPTION_END; - 8019d0a: 89fb ldrh r3, [r7, #14] - 8019d0c: 1c5a adds r2, r3, #1 - 8019d0e: 81fa strh r2, [r7, #14] - 8019d10: 461a mov r2, r3 - 8019d12: 68bb ldr r3, [r7, #8] - 8019d14: 4413 add r3, r2 - 8019d16: 22ff movs r2, #255 ; 0xff - 8019d18: 701a strb r2, [r3, #0] + 8019d1a: 89fb ldrh r3, [r7, #14] + 8019d1c: 1c5a adds r2, r3, #1 + 8019d1e: 81fa strh r2, [r7, #14] + 8019d20: 461a mov r2, r3 + 8019d22: 68bb ldr r3, [r7, #8] + 8019d24: 4413 add r3, r2 + 8019d26: 22ff movs r2, #255 ; 0xff + 8019d28: 701a strb r2, [r3, #0] /* packet is too small, or not 4 byte aligned? */ while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) && - 8019d1a: e007 b.n 8019d2c + 8019d2a: e007 b.n 8019d3c (options_out_len < DHCP_OPTIONS_LEN)) { /* add a fill/padding byte */ options[options_out_len++] = 0; - 8019d1c: 89fb ldrh r3, [r7, #14] - 8019d1e: 1c5a adds r2, r3, #1 - 8019d20: 81fa strh r2, [r7, #14] - 8019d22: 461a mov r2, r3 - 8019d24: 68bb ldr r3, [r7, #8] - 8019d26: 4413 add r3, r2 - 8019d28: 2200 movs r2, #0 - 8019d2a: 701a strb r2, [r3, #0] - while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) && 8019d2c: 89fb ldrh r3, [r7, #14] - 8019d2e: 2b43 cmp r3, #67 ; 0x43 - 8019d30: d904 bls.n 8019d3c - 8019d32: 89fb ldrh r3, [r7, #14] - 8019d34: f003 0303 and.w r3, r3, #3 - 8019d38: 2b00 cmp r3, #0 - 8019d3a: d002 beq.n 8019d42 + 8019d2e: 1c5a adds r2, r3, #1 + 8019d30: 81fa strh r2, [r7, #14] + 8019d32: 461a mov r2, r3 + 8019d34: 68bb ldr r3, [r7, #8] + 8019d36: 4413 add r3, r2 + 8019d38: 2200 movs r2, #0 + 8019d3a: 701a strb r2, [r3, #0] + while (((options_out_len < DHCP_MIN_OPTIONS_LEN) || (options_out_len & 3)) && 8019d3c: 89fb ldrh r3, [r7, #14] 8019d3e: 2b43 cmp r3, #67 ; 0x43 - 8019d40: d9ec bls.n 8019d1c + 8019d40: d904 bls.n 8019d4c + 8019d42: 89fb ldrh r3, [r7, #14] + 8019d44: f003 0303 and.w r3, r3, #3 + 8019d48: 2b00 cmp r3, #0 + 8019d4a: d002 beq.n 8019d52 + 8019d4c: 89fb ldrh r3, [r7, #14] + 8019d4e: 2b43 cmp r3, #67 ; 0x43 + 8019d50: d9ec bls.n 8019d2c } /* shrink the pbuf to the actual content length */ pbuf_realloc(p_out, (u16_t)(sizeof(struct dhcp_msg) - DHCP_OPTIONS_LEN + options_out_len)); - 8019d42: 89fb ldrh r3, [r7, #14] - 8019d44: 33f0 adds r3, #240 ; 0xf0 - 8019d46: b29b uxth r3, r3 - 8019d48: 4619 mov r1, r3 - 8019d4a: 6878 ldr r0, [r7, #4] - 8019d4c: f7f7 fdc6 bl 80118dc -} - 8019d50: bf00 nop - 8019d52: 3710 adds r7, #16 - 8019d54: 46bd mov sp, r7 - 8019d56: bd80 pop {r7, pc} - -08019d58 : + 8019d52: 89fb ldrh r3, [r7, #14] + 8019d54: 33f0 adds r3, #240 ; 0xf0 + 8019d56: b29b uxth r3, r3 + 8019d58: 4619 mov r1, r3 + 8019d5a: 6878 ldr r0, [r7, #4] + 8019d5c: f7f7 fdc6 bl 80118ec +} + 8019d60: bf00 nop + 8019d62: 3710 adds r7, #16 + 8019d64: 46bd mov sp, r7 + 8019d66: bd80 pop {r7, pc} + +08019d68 : * @return 1 if DHCP supplied netif->ip_addr (states BOUND or RENEWING), * 0 otherwise */ u8_t dhcp_supplied_address(const struct netif *netif) { - 8019d58: b480 push {r7} - 8019d5a: b085 sub sp, #20 - 8019d5c: af00 add r7, sp, #0 - 8019d5e: 6078 str r0, [r7, #4] + 8019d68: b480 push {r7} + 8019d6a: b085 sub sp, #20 + 8019d6c: af00 add r7, sp, #0 + 8019d6e: 6078 str r0, [r7, #4] if ((netif != NULL) && (netif_dhcp_data(netif) != NULL)) { - 8019d60: 687b ldr r3, [r7, #4] - 8019d62: 2b00 cmp r3, #0 - 8019d64: d017 beq.n 8019d96 - 8019d66: 687b ldr r3, [r7, #4] - 8019d68: 6a5b ldr r3, [r3, #36] ; 0x24 - 8019d6a: 2b00 cmp r3, #0 - 8019d6c: d013 beq.n 8019d96 + 8019d70: 687b ldr r3, [r7, #4] + 8019d72: 2b00 cmp r3, #0 + 8019d74: d017 beq.n 8019da6 + 8019d76: 687b ldr r3, [r7, #4] + 8019d78: 6a5b ldr r3, [r3, #36] ; 0x24 + 8019d7a: 2b00 cmp r3, #0 + 8019d7c: d013 beq.n 8019da6 struct dhcp *dhcp = netif_dhcp_data(netif); - 8019d6e: 687b ldr r3, [r7, #4] - 8019d70: 6a5b ldr r3, [r3, #36] ; 0x24 - 8019d72: 60fb str r3, [r7, #12] + 8019d7e: 687b ldr r3, [r7, #4] + 8019d80: 6a5b ldr r3, [r3, #36] ; 0x24 + 8019d82: 60fb str r3, [r7, #12] return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) || - 8019d74: 68fb ldr r3, [r7, #12] - 8019d76: 795b ldrb r3, [r3, #5] - 8019d78: 2b0a cmp r3, #10 - 8019d7a: d007 beq.n 8019d8c - 8019d7c: 68fb ldr r3, [r7, #12] - 8019d7e: 795b ldrb r3, [r3, #5] - 8019d80: 2b05 cmp r3, #5 - 8019d82: d003 beq.n 8019d8c - (dhcp->state == DHCP_STATE_REBINDING); 8019d84: 68fb ldr r3, [r7, #12] 8019d86: 795b ldrb r3, [r3, #5] + 8019d88: 2b0a cmp r3, #10 + 8019d8a: d007 beq.n 8019d9c + 8019d8c: 68fb ldr r3, [r7, #12] + 8019d8e: 795b ldrb r3, [r3, #5] + 8019d90: 2b05 cmp r3, #5 + 8019d92: d003 beq.n 8019d9c + (dhcp->state == DHCP_STATE_REBINDING); + 8019d94: 68fb ldr r3, [r7, #12] + 8019d96: 795b ldrb r3, [r3, #5] return (dhcp->state == DHCP_STATE_BOUND) || (dhcp->state == DHCP_STATE_RENEWING) || - 8019d88: 2b04 cmp r3, #4 - 8019d8a: d101 bne.n 8019d90 - 8019d8c: 2301 movs r3, #1 - 8019d8e: e000 b.n 8019d92 - 8019d90: 2300 movs r3, #0 - 8019d92: b2db uxtb r3, r3 - 8019d94: e000 b.n 8019d98 + 8019d98: 2b04 cmp r3, #4 + 8019d9a: d101 bne.n 8019da0 + 8019d9c: 2301 movs r3, #1 + 8019d9e: e000 b.n 8019da2 + 8019da0: 2300 movs r3, #0 + 8019da2: b2db uxtb r3, r3 + 8019da4: e000 b.n 8019da8 } return 0; - 8019d96: 2300 movs r3, #0 + 8019da6: 2300 movs r3, #0 } - 8019d98: 4618 mov r0, r3 - 8019d9a: 3714 adds r7, #20 - 8019d9c: 46bd mov sp, r7 - 8019d9e: f85d 7b04 ldr.w r7, [sp], #4 - 8019da2: 4770 bx lr + 8019da8: 4618 mov r0, r3 + 8019daa: 3714 adds r7, #20 + 8019dac: 46bd mov sp, r7 + 8019dae: f85d 7b04 ldr.w r7, [sp], #4 + 8019db2: 4770 bx lr -08019da4 : +08019db4 : #endif /* ARP_QUEUEING */ /** Clean up ARP table entries */ static void etharp_free_entry(int i) { - 8019da4: b580 push {r7, lr} - 8019da6: b082 sub sp, #8 - 8019da8: af00 add r7, sp, #0 - 8019daa: 6078 str r0, [r7, #4] + 8019db4: b580 push {r7, lr} + 8019db6: b082 sub sp, #8 + 8019db8: af00 add r7, sp, #0 + 8019dba: 6078 str r0, [r7, #4] /* remove from SNMP ARP index tree */ mib2_remove_arp_entry(arp_table[i].netif, &arp_table[i].ipaddr); /* and empty packet queue */ if (arp_table[i].q != NULL) { - 8019dac: 4915 ldr r1, [pc, #84] ; (8019e04 ) - 8019dae: 687a ldr r2, [r7, #4] - 8019db0: 4613 mov r3, r2 - 8019db2: 005b lsls r3, r3, #1 - 8019db4: 4413 add r3, r2 - 8019db6: 00db lsls r3, r3, #3 - 8019db8: 440b add r3, r1 - 8019dba: 681b ldr r3, [r3, #0] - 8019dbc: 2b00 cmp r3, #0 - 8019dbe: d013 beq.n 8019de8 + 8019dbc: 4915 ldr r1, [pc, #84] ; (8019e14 ) + 8019dbe: 687a ldr r2, [r7, #4] + 8019dc0: 4613 mov r3, r2 + 8019dc2: 005b lsls r3, r3, #1 + 8019dc4: 4413 add r3, r2 + 8019dc6: 00db lsls r3, r3, #3 + 8019dc8: 440b add r3, r1 + 8019dca: 681b ldr r3, [r3, #0] + 8019dcc: 2b00 cmp r3, #0 + 8019dce: d013 beq.n 8019df8 /* remove all queued packets */ LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_free_entry: freeing entry %"U16_F", packet queue %p.\n", (u16_t)i, (void *)(arp_table[i].q))); free_etharp_q(arp_table[i].q); - 8019dc0: 4910 ldr r1, [pc, #64] ; (8019e04 ) - 8019dc2: 687a ldr r2, [r7, #4] - 8019dc4: 4613 mov r3, r2 - 8019dc6: 005b lsls r3, r3, #1 - 8019dc8: 4413 add r3, r2 - 8019dca: 00db lsls r3, r3, #3 - 8019dcc: 440b add r3, r1 - 8019dce: 681b ldr r3, [r3, #0] - 8019dd0: 4618 mov r0, r3 - 8019dd2: f7f7 ff09 bl 8011be8 + 8019dd0: 4910 ldr r1, [pc, #64] ; (8019e14 ) + 8019dd2: 687a ldr r2, [r7, #4] + 8019dd4: 4613 mov r3, r2 + 8019dd6: 005b lsls r3, r3, #1 + 8019dd8: 4413 add r3, r2 + 8019dda: 00db lsls r3, r3, #3 + 8019ddc: 440b add r3, r1 + 8019dde: 681b ldr r3, [r3, #0] + 8019de0: 4618 mov r0, r3 + 8019de2: f7f7 ff09 bl 8011bf8 arp_table[i].q = NULL; - 8019dd6: 490b ldr r1, [pc, #44] ; (8019e04 ) - 8019dd8: 687a ldr r2, [r7, #4] - 8019dda: 4613 mov r3, r2 - 8019ddc: 005b lsls r3, r3, #1 - 8019dde: 4413 add r3, r2 - 8019de0: 00db lsls r3, r3, #3 - 8019de2: 440b add r3, r1 - 8019de4: 2200 movs r2, #0 - 8019de6: 601a str r2, [r3, #0] + 8019de6: 490b ldr r1, [pc, #44] ; (8019e14 ) + 8019de8: 687a ldr r2, [r7, #4] + 8019dea: 4613 mov r3, r2 + 8019dec: 005b lsls r3, r3, #1 + 8019dee: 4413 add r3, r2 + 8019df0: 00db lsls r3, r3, #3 + 8019df2: 440b add r3, r1 + 8019df4: 2200 movs r2, #0 + 8019df6: 601a str r2, [r3, #0] } /* recycle entry for re-use */ arp_table[i].state = ETHARP_STATE_EMPTY; - 8019de8: 4906 ldr r1, [pc, #24] ; (8019e04 ) - 8019dea: 687a ldr r2, [r7, #4] - 8019dec: 4613 mov r3, r2 - 8019dee: 005b lsls r3, r3, #1 - 8019df0: 4413 add r3, r2 - 8019df2: 00db lsls r3, r3, #3 - 8019df4: 440b add r3, r1 - 8019df6: 3314 adds r3, #20 - 8019df8: 2200 movs r2, #0 - 8019dfa: 701a strb r2, [r3, #0] + 8019df8: 4906 ldr r1, [pc, #24] ; (8019e14 ) + 8019dfa: 687a ldr r2, [r7, #4] + 8019dfc: 4613 mov r3, r2 + 8019dfe: 005b lsls r3, r3, #1 + 8019e00: 4413 add r3, r2 + 8019e02: 00db lsls r3, r3, #3 + 8019e04: 440b add r3, r1 + 8019e06: 3314 adds r3, #20 + 8019e08: 2200 movs r2, #0 + 8019e0a: 701a strb r2, [r3, #0] arp_table[i].ctime = 0; arp_table[i].netif = NULL; ip4_addr_set_zero(&arp_table[i].ipaddr); arp_table[i].ethaddr = ethzero; #endif /* LWIP_DEBUG */ } - 8019dfc: bf00 nop - 8019dfe: 3708 adds r7, #8 - 8019e00: 46bd mov sp, r7 - 8019e02: bd80 pop {r7, pc} - 8019e04: 2000876c .word 0x2000876c + 8019e0c: bf00 nop + 8019e0e: 3708 adds r7, #8 + 8019e10: 46bd mov sp, r7 + 8019e12: bd80 pop {r7, pc} + 8019e14: 2000876c .word 0x2000876c -08019e08 : +08019e18 : * This function should be called every ARP_TMR_INTERVAL milliseconds (1 second), * in order to expire entries in the ARP table. */ void etharp_tmr(void) { - 8019e08: b580 push {r7, lr} - 8019e0a: b082 sub sp, #8 - 8019e0c: af00 add r7, sp, #0 + 8019e18: b580 push {r7, lr} + 8019e1a: b082 sub sp, #8 + 8019e1c: af00 add r7, sp, #0 int i; LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer\n")); /* remove expired entries from the ARP table */ for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 8019e0e: 2300 movs r3, #0 - 8019e10: 607b str r3, [r7, #4] - 8019e12: e096 b.n 8019f42 + 8019e1e: 2300 movs r3, #0 + 8019e20: 607b str r3, [r7, #4] + 8019e22: e096 b.n 8019f52 u8_t state = arp_table[i].state; - 8019e14: 494f ldr r1, [pc, #316] ; (8019f54 ) - 8019e16: 687a ldr r2, [r7, #4] - 8019e18: 4613 mov r3, r2 - 8019e1a: 005b lsls r3, r3, #1 - 8019e1c: 4413 add r3, r2 - 8019e1e: 00db lsls r3, r3, #3 - 8019e20: 440b add r3, r1 - 8019e22: 3314 adds r3, #20 - 8019e24: 781b ldrb r3, [r3, #0] - 8019e26: 70fb strb r3, [r7, #3] + 8019e24: 494f ldr r1, [pc, #316] ; (8019f64 ) + 8019e26: 687a ldr r2, [r7, #4] + 8019e28: 4613 mov r3, r2 + 8019e2a: 005b lsls r3, r3, #1 + 8019e2c: 4413 add r3, r2 + 8019e2e: 00db lsls r3, r3, #3 + 8019e30: 440b add r3, r1 + 8019e32: 3314 adds r3, #20 + 8019e34: 781b ldrb r3, [r3, #0] + 8019e36: 70fb strb r3, [r7, #3] if (state != ETHARP_STATE_EMPTY - 8019e28: 78fb ldrb r3, [r7, #3] - 8019e2a: 2b00 cmp r3, #0 - 8019e2c: f000 8086 beq.w 8019f3c + 8019e38: 78fb ldrb r3, [r7, #3] + 8019e3a: 2b00 cmp r3, #0 + 8019e3c: f000 8086 beq.w 8019f4c #if ETHARP_SUPPORT_STATIC_ENTRIES && (state != ETHARP_STATE_STATIC) #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ ) { arp_table[i].ctime++; - 8019e30: 4948 ldr r1, [pc, #288] ; (8019f54 ) - 8019e32: 687a ldr r2, [r7, #4] - 8019e34: 4613 mov r3, r2 - 8019e36: 005b lsls r3, r3, #1 - 8019e38: 4413 add r3, r2 - 8019e3a: 00db lsls r3, r3, #3 - 8019e3c: 440b add r3, r1 - 8019e3e: 3312 adds r3, #18 - 8019e40: 881b ldrh r3, [r3, #0] - 8019e42: 3301 adds r3, #1 - 8019e44: b298 uxth r0, r3 - 8019e46: 4943 ldr r1, [pc, #268] ; (8019f54 ) - 8019e48: 687a ldr r2, [r7, #4] - 8019e4a: 4613 mov r3, r2 - 8019e4c: 005b lsls r3, r3, #1 - 8019e4e: 4413 add r3, r2 - 8019e50: 00db lsls r3, r3, #3 - 8019e52: 440b add r3, r1 - 8019e54: 3312 adds r3, #18 - 8019e56: 4602 mov r2, r0 - 8019e58: 801a strh r2, [r3, #0] + 8019e40: 4948 ldr r1, [pc, #288] ; (8019f64 ) + 8019e42: 687a ldr r2, [r7, #4] + 8019e44: 4613 mov r3, r2 + 8019e46: 005b lsls r3, r3, #1 + 8019e48: 4413 add r3, r2 + 8019e4a: 00db lsls r3, r3, #3 + 8019e4c: 440b add r3, r1 + 8019e4e: 3312 adds r3, #18 + 8019e50: 881b ldrh r3, [r3, #0] + 8019e52: 3301 adds r3, #1 + 8019e54: b298 uxth r0, r3 + 8019e56: 4943 ldr r1, [pc, #268] ; (8019f64 ) + 8019e58: 687a ldr r2, [r7, #4] + 8019e5a: 4613 mov r3, r2 + 8019e5c: 005b lsls r3, r3, #1 + 8019e5e: 4413 add r3, r2 + 8019e60: 00db lsls r3, r3, #3 + 8019e62: 440b add r3, r1 + 8019e64: 3312 adds r3, #18 + 8019e66: 4602 mov r2, r0 + 8019e68: 801a strh r2, [r3, #0] if ((arp_table[i].ctime >= ARP_MAXAGE) || - 8019e5a: 493e ldr r1, [pc, #248] ; (8019f54 ) - 8019e5c: 687a ldr r2, [r7, #4] - 8019e5e: 4613 mov r3, r2 - 8019e60: 005b lsls r3, r3, #1 - 8019e62: 4413 add r3, r2 - 8019e64: 00db lsls r3, r3, #3 - 8019e66: 440b add r3, r1 - 8019e68: 3312 adds r3, #18 - 8019e6a: 881b ldrh r3, [r3, #0] - 8019e6c: f5b3 7f96 cmp.w r3, #300 ; 0x12c - 8019e70: d215 bcs.n 8019e9e + 8019e6a: 493e ldr r1, [pc, #248] ; (8019f64 ) + 8019e6c: 687a ldr r2, [r7, #4] + 8019e6e: 4613 mov r3, r2 + 8019e70: 005b lsls r3, r3, #1 + 8019e72: 4413 add r3, r2 + 8019e74: 00db lsls r3, r3, #3 + 8019e76: 440b add r3, r1 + 8019e78: 3312 adds r3, #18 + 8019e7a: 881b ldrh r3, [r3, #0] + 8019e7c: f5b3 7f96 cmp.w r3, #300 ; 0x12c + 8019e80: d215 bcs.n 8019eae ((arp_table[i].state == ETHARP_STATE_PENDING) && - 8019e72: 4938 ldr r1, [pc, #224] ; (8019f54 ) - 8019e74: 687a ldr r2, [r7, #4] - 8019e76: 4613 mov r3, r2 - 8019e78: 005b lsls r3, r3, #1 - 8019e7a: 4413 add r3, r2 - 8019e7c: 00db lsls r3, r3, #3 - 8019e7e: 440b add r3, r1 - 8019e80: 3314 adds r3, #20 - 8019e82: 781b ldrb r3, [r3, #0] + 8019e82: 4938 ldr r1, [pc, #224] ; (8019f64 ) + 8019e84: 687a ldr r2, [r7, #4] + 8019e86: 4613 mov r3, r2 + 8019e88: 005b lsls r3, r3, #1 + 8019e8a: 4413 add r3, r2 + 8019e8c: 00db lsls r3, r3, #3 + 8019e8e: 440b add r3, r1 + 8019e90: 3314 adds r3, #20 + 8019e92: 781b ldrb r3, [r3, #0] if ((arp_table[i].ctime >= ARP_MAXAGE) || - 8019e84: 2b01 cmp r3, #1 - 8019e86: d10e bne.n 8019ea6 + 8019e94: 2b01 cmp r3, #1 + 8019e96: d10e bne.n 8019eb6 (arp_table[i].ctime >= ARP_MAXPENDING))) { - 8019e88: 4932 ldr r1, [pc, #200] ; (8019f54 ) - 8019e8a: 687a ldr r2, [r7, #4] - 8019e8c: 4613 mov r3, r2 - 8019e8e: 005b lsls r3, r3, #1 - 8019e90: 4413 add r3, r2 - 8019e92: 00db lsls r3, r3, #3 - 8019e94: 440b add r3, r1 - 8019e96: 3312 adds r3, #18 - 8019e98: 881b ldrh r3, [r3, #0] + 8019e98: 4932 ldr r1, [pc, #200] ; (8019f64 ) + 8019e9a: 687a ldr r2, [r7, #4] + 8019e9c: 4613 mov r3, r2 + 8019e9e: 005b lsls r3, r3, #1 + 8019ea0: 4413 add r3, r2 + 8019ea2: 00db lsls r3, r3, #3 + 8019ea4: 440b add r3, r1 + 8019ea6: 3312 adds r3, #18 + 8019ea8: 881b ldrh r3, [r3, #0] ((arp_table[i].state == ETHARP_STATE_PENDING) && - 8019e9a: 2b04 cmp r3, #4 - 8019e9c: d903 bls.n 8019ea6 + 8019eaa: 2b04 cmp r3, #4 + 8019eac: d903 bls.n 8019eb6 /* pending or stable entry has become old! */ LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_timer: expired %s entry %d.\n", arp_table[i].state >= ETHARP_STATE_STABLE ? "stable" : "pending", i)); /* clean up entries that have just been expired */ etharp_free_entry(i); - 8019e9e: 6878 ldr r0, [r7, #4] - 8019ea0: f7ff ff80 bl 8019da4 - 8019ea4: e04a b.n 8019f3c + 8019eae: 6878 ldr r0, [r7, #4] + 8019eb0: f7ff ff80 bl 8019db4 + 8019eb4: e04a b.n 8019f4c } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_1) { - 8019ea6: 492b ldr r1, [pc, #172] ; (8019f54 ) - 8019ea8: 687a ldr r2, [r7, #4] - 8019eaa: 4613 mov r3, r2 - 8019eac: 005b lsls r3, r3, #1 - 8019eae: 4413 add r3, r2 - 8019eb0: 00db lsls r3, r3, #3 - 8019eb2: 440b add r3, r1 - 8019eb4: 3314 adds r3, #20 - 8019eb6: 781b ldrb r3, [r3, #0] - 8019eb8: 2b03 cmp r3, #3 - 8019eba: d10a bne.n 8019ed2 + 8019eb6: 492b ldr r1, [pc, #172] ; (8019f64 ) + 8019eb8: 687a ldr r2, [r7, #4] + 8019eba: 4613 mov r3, r2 + 8019ebc: 005b lsls r3, r3, #1 + 8019ebe: 4413 add r3, r2 + 8019ec0: 00db lsls r3, r3, #3 + 8019ec2: 440b add r3, r1 + 8019ec4: 3314 adds r3, #20 + 8019ec6: 781b ldrb r3, [r3, #0] + 8019ec8: 2b03 cmp r3, #3 + 8019eca: d10a bne.n 8019ee2 /* Don't send more than one request every 2 seconds. */ arp_table[i].state = ETHARP_STATE_STABLE_REREQUESTING_2; - 8019ebc: 4925 ldr r1, [pc, #148] ; (8019f54 ) - 8019ebe: 687a ldr r2, [r7, #4] - 8019ec0: 4613 mov r3, r2 - 8019ec2: 005b lsls r3, r3, #1 - 8019ec4: 4413 add r3, r2 - 8019ec6: 00db lsls r3, r3, #3 - 8019ec8: 440b add r3, r1 - 8019eca: 3314 adds r3, #20 - 8019ecc: 2204 movs r2, #4 - 8019ece: 701a strb r2, [r3, #0] - 8019ed0: e034 b.n 8019f3c + 8019ecc: 4925 ldr r1, [pc, #148] ; (8019f64 ) + 8019ece: 687a ldr r2, [r7, #4] + 8019ed0: 4613 mov r3, r2 + 8019ed2: 005b lsls r3, r3, #1 + 8019ed4: 4413 add r3, r2 + 8019ed6: 00db lsls r3, r3, #3 + 8019ed8: 440b add r3, r1 + 8019eda: 3314 adds r3, #20 + 8019edc: 2204 movs r2, #4 + 8019ede: 701a strb r2, [r3, #0] + 8019ee0: e034 b.n 8019f4c } else if (arp_table[i].state == ETHARP_STATE_STABLE_REREQUESTING_2) { - 8019ed2: 4920 ldr r1, [pc, #128] ; (8019f54 ) - 8019ed4: 687a ldr r2, [r7, #4] - 8019ed6: 4613 mov r3, r2 - 8019ed8: 005b lsls r3, r3, #1 - 8019eda: 4413 add r3, r2 - 8019edc: 00db lsls r3, r3, #3 - 8019ede: 440b add r3, r1 - 8019ee0: 3314 adds r3, #20 - 8019ee2: 781b ldrb r3, [r3, #0] - 8019ee4: 2b04 cmp r3, #4 - 8019ee6: d10a bne.n 8019efe + 8019ee2: 4920 ldr r1, [pc, #128] ; (8019f64 ) + 8019ee4: 687a ldr r2, [r7, #4] + 8019ee6: 4613 mov r3, r2 + 8019ee8: 005b lsls r3, r3, #1 + 8019eea: 4413 add r3, r2 + 8019eec: 00db lsls r3, r3, #3 + 8019eee: 440b add r3, r1 + 8019ef0: 3314 adds r3, #20 + 8019ef2: 781b ldrb r3, [r3, #0] + 8019ef4: 2b04 cmp r3, #4 + 8019ef6: d10a bne.n 8019f0e /* Reset state to stable, so that the next transmitted packet will re-send an ARP request. */ arp_table[i].state = ETHARP_STATE_STABLE; - 8019ee8: 491a ldr r1, [pc, #104] ; (8019f54 ) - 8019eea: 687a ldr r2, [r7, #4] - 8019eec: 4613 mov r3, r2 - 8019eee: 005b lsls r3, r3, #1 - 8019ef0: 4413 add r3, r2 - 8019ef2: 00db lsls r3, r3, #3 - 8019ef4: 440b add r3, r1 - 8019ef6: 3314 adds r3, #20 - 8019ef8: 2202 movs r2, #2 - 8019efa: 701a strb r2, [r3, #0] - 8019efc: e01e b.n 8019f3c + 8019ef8: 491a ldr r1, [pc, #104] ; (8019f64 ) + 8019efa: 687a ldr r2, [r7, #4] + 8019efc: 4613 mov r3, r2 + 8019efe: 005b lsls r3, r3, #1 + 8019f00: 4413 add r3, r2 + 8019f02: 00db lsls r3, r3, #3 + 8019f04: 440b add r3, r1 + 8019f06: 3314 adds r3, #20 + 8019f08: 2202 movs r2, #2 + 8019f0a: 701a strb r2, [r3, #0] + 8019f0c: e01e b.n 8019f4c } else if (arp_table[i].state == ETHARP_STATE_PENDING) { - 8019efe: 4915 ldr r1, [pc, #84] ; (8019f54 ) - 8019f00: 687a ldr r2, [r7, #4] - 8019f02: 4613 mov r3, r2 - 8019f04: 005b lsls r3, r3, #1 - 8019f06: 4413 add r3, r2 - 8019f08: 00db lsls r3, r3, #3 - 8019f0a: 440b add r3, r1 - 8019f0c: 3314 adds r3, #20 - 8019f0e: 781b ldrb r3, [r3, #0] - 8019f10: 2b01 cmp r3, #1 - 8019f12: d113 bne.n 8019f3c + 8019f0e: 4915 ldr r1, [pc, #84] ; (8019f64 ) + 8019f10: 687a ldr r2, [r7, #4] + 8019f12: 4613 mov r3, r2 + 8019f14: 005b lsls r3, r3, #1 + 8019f16: 4413 add r3, r2 + 8019f18: 00db lsls r3, r3, #3 + 8019f1a: 440b add r3, r1 + 8019f1c: 3314 adds r3, #20 + 8019f1e: 781b ldrb r3, [r3, #0] + 8019f20: 2b01 cmp r3, #1 + 8019f22: d113 bne.n 8019f4c /* still pending, resend an ARP query */ etharp_request(arp_table[i].netif, &arp_table[i].ipaddr); - 8019f14: 490f ldr r1, [pc, #60] ; (8019f54 ) - 8019f16: 687a ldr r2, [r7, #4] - 8019f18: 4613 mov r3, r2 - 8019f1a: 005b lsls r3, r3, #1 - 8019f1c: 4413 add r3, r2 - 8019f1e: 00db lsls r3, r3, #3 - 8019f20: 440b add r3, r1 - 8019f22: 3308 adds r3, #8 - 8019f24: 6818 ldr r0, [r3, #0] + 8019f24: 490f ldr r1, [pc, #60] ; (8019f64 ) 8019f26: 687a ldr r2, [r7, #4] 8019f28: 4613 mov r3, r2 8019f2a: 005b lsls r3, r3, #1 8019f2c: 4413 add r3, r2 8019f2e: 00db lsls r3, r3, #3 - 8019f30: 4a08 ldr r2, [pc, #32] ; (8019f54 ) - 8019f32: 4413 add r3, r2 - 8019f34: 3304 adds r3, #4 - 8019f36: 4619 mov r1, r3 - 8019f38: f000 fe72 bl 801ac20 + 8019f30: 440b add r3, r1 + 8019f32: 3308 adds r3, #8 + 8019f34: 6818 ldr r0, [r3, #0] + 8019f36: 687a ldr r2, [r7, #4] + 8019f38: 4613 mov r3, r2 + 8019f3a: 005b lsls r3, r3, #1 + 8019f3c: 4413 add r3, r2 + 8019f3e: 00db lsls r3, r3, #3 + 8019f40: 4a08 ldr r2, [pc, #32] ; (8019f64 ) + 8019f42: 4413 add r3, r2 + 8019f44: 3304 adds r3, #4 + 8019f46: 4619 mov r1, r3 + 8019f48: f000 fe72 bl 801ac30 for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 8019f3c: 687b ldr r3, [r7, #4] - 8019f3e: 3301 adds r3, #1 - 8019f40: 607b str r3, [r7, #4] - 8019f42: 687b ldr r3, [r7, #4] - 8019f44: 2b09 cmp r3, #9 - 8019f46: f77f af65 ble.w 8019e14 + 8019f4c: 687b ldr r3, [r7, #4] + 8019f4e: 3301 adds r3, #1 + 8019f50: 607b str r3, [r7, #4] + 8019f52: 687b ldr r3, [r7, #4] + 8019f54: 2b09 cmp r3, #9 + 8019f56: f77f af65 ble.w 8019e24 } } } } - 8019f4a: bf00 nop - 8019f4c: 3708 adds r7, #8 - 8019f4e: 46bd mov sp, r7 - 8019f50: bd80 pop {r7, pc} - 8019f52: bf00 nop - 8019f54: 2000876c .word 0x2000876c + 8019f5a: bf00 nop + 8019f5c: 3708 adds r7, #8 + 8019f5e: 46bd mov sp, r7 + 8019f60: bd80 pop {r7, pc} + 8019f62: bf00 nop + 8019f64: 2000876c .word 0x2000876c -08019f58 : +08019f68 : * @return The ARP entry index that matched or is created, ERR_MEM if no * entry is found or could be recycled. */ static s16_t etharp_find_entry(const ip4_addr_t *ipaddr, u8_t flags, struct netif *netif) { - 8019f58: b580 push {r7, lr} - 8019f5a: b08a sub sp, #40 ; 0x28 - 8019f5c: af00 add r7, sp, #0 - 8019f5e: 60f8 str r0, [r7, #12] - 8019f60: 460b mov r3, r1 - 8019f62: 607a str r2, [r7, #4] - 8019f64: 72fb strb r3, [r7, #11] + 8019f68: b580 push {r7, lr} + 8019f6a: b08a sub sp, #40 ; 0x28 + 8019f6c: af00 add r7, sp, #0 + 8019f6e: 60f8 str r0, [r7, #12] + 8019f70: 460b mov r3, r1 + 8019f72: 607a str r2, [r7, #4] + 8019f74: 72fb strb r3, [r7, #11] s16_t old_pending = ARP_TABLE_SIZE, old_stable = ARP_TABLE_SIZE; - 8019f66: 230a movs r3, #10 - 8019f68: 84fb strh r3, [r7, #38] ; 0x26 - 8019f6a: 230a movs r3, #10 - 8019f6c: 84bb strh r3, [r7, #36] ; 0x24 + 8019f76: 230a movs r3, #10 + 8019f78: 84fb strh r3, [r7, #38] ; 0x26 + 8019f7a: 230a movs r3, #10 + 8019f7c: 84bb strh r3, [r7, #36] ; 0x24 s16_t empty = ARP_TABLE_SIZE; - 8019f6e: 230a movs r3, #10 - 8019f70: 847b strh r3, [r7, #34] ; 0x22 + 8019f7e: 230a movs r3, #10 + 8019f80: 847b strh r3, [r7, #34] ; 0x22 s16_t i = 0; - 8019f72: 2300 movs r3, #0 - 8019f74: 843b strh r3, [r7, #32] + 8019f82: 2300 movs r3, #0 + 8019f84: 843b strh r3, [r7, #32] /* oldest entry with packets on queue */ s16_t old_queue = ARP_TABLE_SIZE; - 8019f76: 230a movs r3, #10 - 8019f78: 83fb strh r3, [r7, #30] + 8019f86: 230a movs r3, #10 + 8019f88: 83fb strh r3, [r7, #30] /* its age */ u16_t age_queue = 0, age_pending = 0, age_stable = 0; - 8019f7a: 2300 movs r3, #0 - 8019f7c: 83bb strh r3, [r7, #28] - 8019f7e: 2300 movs r3, #0 - 8019f80: 837b strh r3, [r7, #26] - 8019f82: 2300 movs r3, #0 - 8019f84: 833b strh r3, [r7, #24] + 8019f8a: 2300 movs r3, #0 + 8019f8c: 83bb strh r3, [r7, #28] + 8019f8e: 2300 movs r3, #0 + 8019f90: 837b strh r3, [r7, #26] + 8019f92: 2300 movs r3, #0 + 8019f94: 833b strh r3, [r7, #24] * 4) remember the oldest pending entry with queued packets (if any) * 5) search for a matching IP entry, either pending or stable * until 5 matches, or all entries are searched for. */ for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 8019f86: 2300 movs r3, #0 - 8019f88: 843b strh r3, [r7, #32] - 8019f8a: e0ae b.n 801a0ea + 8019f96: 2300 movs r3, #0 + 8019f98: 843b strh r3, [r7, #32] + 8019f9a: e0ae b.n 801a0fa u8_t state = arp_table[i].state; - 8019f8c: f9b7 2020 ldrsh.w r2, [r7, #32] - 8019f90: 49a6 ldr r1, [pc, #664] ; (801a22c ) - 8019f92: 4613 mov r3, r2 - 8019f94: 005b lsls r3, r3, #1 - 8019f96: 4413 add r3, r2 - 8019f98: 00db lsls r3, r3, #3 - 8019f9a: 440b add r3, r1 - 8019f9c: 3314 adds r3, #20 - 8019f9e: 781b ldrb r3, [r3, #0] - 8019fa0: 75fb strb r3, [r7, #23] + 8019f9c: f9b7 2020 ldrsh.w r2, [r7, #32] + 8019fa0: 49a6 ldr r1, [pc, #664] ; (801a23c ) + 8019fa2: 4613 mov r3, r2 + 8019fa4: 005b lsls r3, r3, #1 + 8019fa6: 4413 add r3, r2 + 8019fa8: 00db lsls r3, r3, #3 + 8019faa: 440b add r3, r1 + 8019fac: 3314 adds r3, #20 + 8019fae: 781b ldrb r3, [r3, #0] + 8019fb0: 75fb strb r3, [r7, #23] /* no empty entry found yet and now we do find one? */ if ((empty == ARP_TABLE_SIZE) && (state == ETHARP_STATE_EMPTY)) { - 8019fa2: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 - 8019fa6: 2b0a cmp r3, #10 - 8019fa8: d105 bne.n 8019fb6 - 8019faa: 7dfb ldrb r3, [r7, #23] - 8019fac: 2b00 cmp r3, #0 - 8019fae: d102 bne.n 8019fb6 + 8019fb2: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 + 8019fb6: 2b0a cmp r3, #10 + 8019fb8: d105 bne.n 8019fc6 + 8019fba: 7dfb ldrb r3, [r7, #23] + 8019fbc: 2b00 cmp r3, #0 + 8019fbe: d102 bne.n 8019fc6 LWIP_DEBUGF(ETHARP_DEBUG, ("etharp_find_entry: found empty entry %d\n", (int)i)); /* remember first empty entry */ empty = i; - 8019fb0: 8c3b ldrh r3, [r7, #32] - 8019fb2: 847b strh r3, [r7, #34] ; 0x22 - 8019fb4: e095 b.n 801a0e2 + 8019fc0: 8c3b ldrh r3, [r7, #32] + 8019fc2: 847b strh r3, [r7, #34] ; 0x22 + 8019fc4: e095 b.n 801a0f2 } else if (state != ETHARP_STATE_EMPTY) { - 8019fb6: 7dfb ldrb r3, [r7, #23] - 8019fb8: 2b00 cmp r3, #0 - 8019fba: f000 8092 beq.w 801a0e2 + 8019fc6: 7dfb ldrb r3, [r7, #23] + 8019fc8: 2b00 cmp r3, #0 + 8019fca: f000 8092 beq.w 801a0f2 LWIP_ASSERT("state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE", - 8019fbe: 7dfb ldrb r3, [r7, #23] - 8019fc0: 2b01 cmp r3, #1 - 8019fc2: d009 beq.n 8019fd8 - 8019fc4: 7dfb ldrb r3, [r7, #23] - 8019fc6: 2b01 cmp r3, #1 - 8019fc8: d806 bhi.n 8019fd8 - 8019fca: 4b99 ldr r3, [pc, #612] ; (801a230 ) - 8019fcc: f44f 7292 mov.w r2, #292 ; 0x124 - 8019fd0: 4998 ldr r1, [pc, #608] ; (801a234 ) - 8019fd2: 4899 ldr r0, [pc, #612] ; (801a238 ) - 8019fd4: f002 fb38 bl 801c648 + 8019fce: 7dfb ldrb r3, [r7, #23] + 8019fd0: 2b01 cmp r3, #1 + 8019fd2: d009 beq.n 8019fe8 + 8019fd4: 7dfb ldrb r3, [r7, #23] + 8019fd6: 2b01 cmp r3, #1 + 8019fd8: d806 bhi.n 8019fe8 + 8019fda: 4b99 ldr r3, [pc, #612] ; (801a240 ) + 8019fdc: f44f 7292 mov.w r2, #292 ; 0x124 + 8019fe0: 4998 ldr r1, [pc, #608] ; (801a244 ) + 8019fe2: 4899 ldr r0, [pc, #612] ; (801a248 ) + 8019fe4: f002 fb38 bl 801c658 state == ETHARP_STATE_PENDING || state >= ETHARP_STATE_STABLE); /* if given, does IP address match IP address in ARP entry? */ if (ipaddr && ip4_addr_cmp(ipaddr, &arp_table[i].ipaddr) - 8019fd8: 68fb ldr r3, [r7, #12] - 8019fda: 2b00 cmp r3, #0 - 8019fdc: d020 beq.n 801a020 - 8019fde: 68fb ldr r3, [r7, #12] - 8019fe0: 6819 ldr r1, [r3, #0] - 8019fe2: f9b7 2020 ldrsh.w r2, [r7, #32] - 8019fe6: 4891 ldr r0, [pc, #580] ; (801a22c ) - 8019fe8: 4613 mov r3, r2 - 8019fea: 005b lsls r3, r3, #1 - 8019fec: 4413 add r3, r2 - 8019fee: 00db lsls r3, r3, #3 - 8019ff0: 4403 add r3, r0 - 8019ff2: 3304 adds r3, #4 - 8019ff4: 681b ldr r3, [r3, #0] - 8019ff6: 4299 cmp r1, r3 - 8019ff8: d112 bne.n 801a020 + 8019fe8: 68fb ldr r3, [r7, #12] + 8019fea: 2b00 cmp r3, #0 + 8019fec: d020 beq.n 801a030 + 8019fee: 68fb ldr r3, [r7, #12] + 8019ff0: 6819 ldr r1, [r3, #0] + 8019ff2: f9b7 2020 ldrsh.w r2, [r7, #32] + 8019ff6: 4891 ldr r0, [pc, #580] ; (801a23c ) + 8019ff8: 4613 mov r3, r2 + 8019ffa: 005b lsls r3, r3, #1 + 8019ffc: 4413 add r3, r2 + 8019ffe: 00db lsls r3, r3, #3 + 801a000: 4403 add r3, r0 + 801a002: 3304 adds r3, #4 + 801a004: 681b ldr r3, [r3, #0] + 801a006: 4299 cmp r1, r3 + 801a008: d112 bne.n 801a030 #if ETHARP_TABLE_MATCH_NETIF && ((netif == NULL) || (netif == arp_table[i].netif)) - 8019ffa: 687b ldr r3, [r7, #4] - 8019ffc: 2b00 cmp r3, #0 - 8019ffe: d00c beq.n 801a01a - 801a000: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a004: 4989 ldr r1, [pc, #548] ; (801a22c ) - 801a006: 4613 mov r3, r2 - 801a008: 005b lsls r3, r3, #1 - 801a00a: 4413 add r3, r2 - 801a00c: 00db lsls r3, r3, #3 - 801a00e: 440b add r3, r1 - 801a010: 3308 adds r3, #8 - 801a012: 681b ldr r3, [r3, #0] - 801a014: 687a ldr r2, [r7, #4] - 801a016: 429a cmp r2, r3 - 801a018: d102 bne.n 801a020 + 801a00a: 687b ldr r3, [r7, #4] + 801a00c: 2b00 cmp r3, #0 + 801a00e: d00c beq.n 801a02a + 801a010: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a014: 4989 ldr r1, [pc, #548] ; (801a23c ) + 801a016: 4613 mov r3, r2 + 801a018: 005b lsls r3, r3, #1 + 801a01a: 4413 add r3, r2 + 801a01c: 00db lsls r3, r3, #3 + 801a01e: 440b add r3, r1 + 801a020: 3308 adds r3, #8 + 801a022: 681b ldr r3, [r3, #0] + 801a024: 687a ldr r2, [r7, #4] + 801a026: 429a cmp r2, r3 + 801a028: d102 bne.n 801a030 #endif /* ETHARP_TABLE_MATCH_NETIF */ ) { LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: found matching entry %d\n", (int)i)); /* found exact IP address match, simply bail out */ return i; - 801a01a: f9b7 3020 ldrsh.w r3, [r7, #32] - 801a01e: e100 b.n 801a222 + 801a02a: f9b7 3020 ldrsh.w r3, [r7, #32] + 801a02e: e100 b.n 801a232 } /* pending entry? */ if (state == ETHARP_STATE_PENDING) { - 801a020: 7dfb ldrb r3, [r7, #23] - 801a022: 2b01 cmp r3, #1 - 801a024: d140 bne.n 801a0a8 + 801a030: 7dfb ldrb r3, [r7, #23] + 801a032: 2b01 cmp r3, #1 + 801a034: d140 bne.n 801a0b8 /* pending with queued packets? */ if (arp_table[i].q != NULL) { - 801a026: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a02a: 4980 ldr r1, [pc, #512] ; (801a22c ) - 801a02c: 4613 mov r3, r2 - 801a02e: 005b lsls r3, r3, #1 - 801a030: 4413 add r3, r2 - 801a032: 00db lsls r3, r3, #3 - 801a034: 440b add r3, r1 - 801a036: 681b ldr r3, [r3, #0] - 801a038: 2b00 cmp r3, #0 - 801a03a: d01a beq.n 801a072 + 801a036: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a03a: 4980 ldr r1, [pc, #512] ; (801a23c ) + 801a03c: 4613 mov r3, r2 + 801a03e: 005b lsls r3, r3, #1 + 801a040: 4413 add r3, r2 + 801a042: 00db lsls r3, r3, #3 + 801a044: 440b add r3, r1 + 801a046: 681b ldr r3, [r3, #0] + 801a048: 2b00 cmp r3, #0 + 801a04a: d01a beq.n 801a082 if (arp_table[i].ctime >= age_queue) { - 801a03c: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a040: 497a ldr r1, [pc, #488] ; (801a22c ) - 801a042: 4613 mov r3, r2 - 801a044: 005b lsls r3, r3, #1 - 801a046: 4413 add r3, r2 - 801a048: 00db lsls r3, r3, #3 - 801a04a: 440b add r3, r1 - 801a04c: 3312 adds r3, #18 - 801a04e: 881b ldrh r3, [r3, #0] - 801a050: 8bba ldrh r2, [r7, #28] - 801a052: 429a cmp r2, r3 - 801a054: d845 bhi.n 801a0e2 + 801a04c: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a050: 497a ldr r1, [pc, #488] ; (801a23c ) + 801a052: 4613 mov r3, r2 + 801a054: 005b lsls r3, r3, #1 + 801a056: 4413 add r3, r2 + 801a058: 00db lsls r3, r3, #3 + 801a05a: 440b add r3, r1 + 801a05c: 3312 adds r3, #18 + 801a05e: 881b ldrh r3, [r3, #0] + 801a060: 8bba ldrh r2, [r7, #28] + 801a062: 429a cmp r2, r3 + 801a064: d845 bhi.n 801a0f2 old_queue = i; - 801a056: 8c3b ldrh r3, [r7, #32] - 801a058: 83fb strh r3, [r7, #30] + 801a066: 8c3b ldrh r3, [r7, #32] + 801a068: 83fb strh r3, [r7, #30] age_queue = arp_table[i].ctime; - 801a05a: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a05e: 4973 ldr r1, [pc, #460] ; (801a22c ) - 801a060: 4613 mov r3, r2 - 801a062: 005b lsls r3, r3, #1 - 801a064: 4413 add r3, r2 - 801a066: 00db lsls r3, r3, #3 - 801a068: 440b add r3, r1 - 801a06a: 3312 adds r3, #18 - 801a06c: 881b ldrh r3, [r3, #0] - 801a06e: 83bb strh r3, [r7, #28] - 801a070: e037 b.n 801a0e2 + 801a06a: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a06e: 4973 ldr r1, [pc, #460] ; (801a23c ) + 801a070: 4613 mov r3, r2 + 801a072: 005b lsls r3, r3, #1 + 801a074: 4413 add r3, r2 + 801a076: 00db lsls r3, r3, #3 + 801a078: 440b add r3, r1 + 801a07a: 3312 adds r3, #18 + 801a07c: 881b ldrh r3, [r3, #0] + 801a07e: 83bb strh r3, [r7, #28] + 801a080: e037 b.n 801a0f2 } } else /* pending without queued packets? */ { if (arp_table[i].ctime >= age_pending) { - 801a072: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a076: 496d ldr r1, [pc, #436] ; (801a22c ) - 801a078: 4613 mov r3, r2 - 801a07a: 005b lsls r3, r3, #1 - 801a07c: 4413 add r3, r2 - 801a07e: 00db lsls r3, r3, #3 - 801a080: 440b add r3, r1 - 801a082: 3312 adds r3, #18 - 801a084: 881b ldrh r3, [r3, #0] - 801a086: 8b7a ldrh r2, [r7, #26] - 801a088: 429a cmp r2, r3 - 801a08a: d82a bhi.n 801a0e2 + 801a082: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a086: 496d ldr r1, [pc, #436] ; (801a23c ) + 801a088: 4613 mov r3, r2 + 801a08a: 005b lsls r3, r3, #1 + 801a08c: 4413 add r3, r2 + 801a08e: 00db lsls r3, r3, #3 + 801a090: 440b add r3, r1 + 801a092: 3312 adds r3, #18 + 801a094: 881b ldrh r3, [r3, #0] + 801a096: 8b7a ldrh r2, [r7, #26] + 801a098: 429a cmp r2, r3 + 801a09a: d82a bhi.n 801a0f2 old_pending = i; - 801a08c: 8c3b ldrh r3, [r7, #32] - 801a08e: 84fb strh r3, [r7, #38] ; 0x26 + 801a09c: 8c3b ldrh r3, [r7, #32] + 801a09e: 84fb strh r3, [r7, #38] ; 0x26 age_pending = arp_table[i].ctime; - 801a090: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a094: 4965 ldr r1, [pc, #404] ; (801a22c ) - 801a096: 4613 mov r3, r2 - 801a098: 005b lsls r3, r3, #1 - 801a09a: 4413 add r3, r2 - 801a09c: 00db lsls r3, r3, #3 - 801a09e: 440b add r3, r1 - 801a0a0: 3312 adds r3, #18 - 801a0a2: 881b ldrh r3, [r3, #0] - 801a0a4: 837b strh r3, [r7, #26] - 801a0a6: e01c b.n 801a0e2 + 801a0a0: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a0a4: 4965 ldr r1, [pc, #404] ; (801a23c ) + 801a0a6: 4613 mov r3, r2 + 801a0a8: 005b lsls r3, r3, #1 + 801a0aa: 4413 add r3, r2 + 801a0ac: 00db lsls r3, r3, #3 + 801a0ae: 440b add r3, r1 + 801a0b0: 3312 adds r3, #18 + 801a0b2: 881b ldrh r3, [r3, #0] + 801a0b4: 837b strh r3, [r7, #26] + 801a0b6: e01c b.n 801a0f2 } } /* stable entry? */ } else if (state >= ETHARP_STATE_STABLE) { - 801a0a8: 7dfb ldrb r3, [r7, #23] - 801a0aa: 2b01 cmp r3, #1 - 801a0ac: d919 bls.n 801a0e2 + 801a0b8: 7dfb ldrb r3, [r7, #23] + 801a0ba: 2b01 cmp r3, #1 + 801a0bc: d919 bls.n 801a0f2 /* don't record old_stable for static entries since they never expire */ if (state < ETHARP_STATE_STATIC) #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ { /* remember entry with oldest stable entry in oldest, its age in maxtime */ if (arp_table[i].ctime >= age_stable) { - 801a0ae: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a0b2: 495e ldr r1, [pc, #376] ; (801a22c ) - 801a0b4: 4613 mov r3, r2 - 801a0b6: 005b lsls r3, r3, #1 - 801a0b8: 4413 add r3, r2 - 801a0ba: 00db lsls r3, r3, #3 - 801a0bc: 440b add r3, r1 - 801a0be: 3312 adds r3, #18 - 801a0c0: 881b ldrh r3, [r3, #0] - 801a0c2: 8b3a ldrh r2, [r7, #24] - 801a0c4: 429a cmp r2, r3 - 801a0c6: d80c bhi.n 801a0e2 + 801a0be: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a0c2: 495e ldr r1, [pc, #376] ; (801a23c ) + 801a0c4: 4613 mov r3, r2 + 801a0c6: 005b lsls r3, r3, #1 + 801a0c8: 4413 add r3, r2 + 801a0ca: 00db lsls r3, r3, #3 + 801a0cc: 440b add r3, r1 + 801a0ce: 3312 adds r3, #18 + 801a0d0: 881b ldrh r3, [r3, #0] + 801a0d2: 8b3a ldrh r2, [r7, #24] + 801a0d4: 429a cmp r2, r3 + 801a0d6: d80c bhi.n 801a0f2 old_stable = i; - 801a0c8: 8c3b ldrh r3, [r7, #32] - 801a0ca: 84bb strh r3, [r7, #36] ; 0x24 + 801a0d8: 8c3b ldrh r3, [r7, #32] + 801a0da: 84bb strh r3, [r7, #36] ; 0x24 age_stable = arp_table[i].ctime; - 801a0cc: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a0d0: 4956 ldr r1, [pc, #344] ; (801a22c ) - 801a0d2: 4613 mov r3, r2 - 801a0d4: 005b lsls r3, r3, #1 - 801a0d6: 4413 add r3, r2 - 801a0d8: 00db lsls r3, r3, #3 - 801a0da: 440b add r3, r1 - 801a0dc: 3312 adds r3, #18 - 801a0de: 881b ldrh r3, [r3, #0] - 801a0e0: 833b strh r3, [r7, #24] + 801a0dc: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a0e0: 4956 ldr r1, [pc, #344] ; (801a23c ) + 801a0e2: 4613 mov r3, r2 + 801a0e4: 005b lsls r3, r3, #1 + 801a0e6: 4413 add r3, r2 + 801a0e8: 00db lsls r3, r3, #3 + 801a0ea: 440b add r3, r1 + 801a0ec: 3312 adds r3, #18 + 801a0ee: 881b ldrh r3, [r3, #0] + 801a0f0: 833b strh r3, [r7, #24] for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 801a0e2: 8c3b ldrh r3, [r7, #32] - 801a0e4: 3301 adds r3, #1 - 801a0e6: b29b uxth r3, r3 - 801a0e8: 843b strh r3, [r7, #32] - 801a0ea: f9b7 3020 ldrsh.w r3, [r7, #32] - 801a0ee: 2b09 cmp r3, #9 - 801a0f0: f77f af4c ble.w 8019f8c + 801a0f2: 8c3b ldrh r3, [r7, #32] + 801a0f4: 3301 adds r3, #1 + 801a0f6: b29b uxth r3, r3 + 801a0f8: 843b strh r3, [r7, #32] + 801a0fa: f9b7 3020 ldrsh.w r3, [r7, #32] + 801a0fe: 2b09 cmp r3, #9 + 801a100: f77f af4c ble.w 8019f9c } } /* { we have no match } => try to create a new entry */ /* don't create new entry, only search? */ if (((flags & ETHARP_FLAG_FIND_ONLY) != 0) || - 801a0f4: 7afb ldrb r3, [r7, #11] - 801a0f6: f003 0302 and.w r3, r3, #2 - 801a0fa: 2b00 cmp r3, #0 - 801a0fc: d108 bne.n 801a110 - 801a0fe: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 - 801a102: 2b0a cmp r3, #10 - 801a104: d107 bne.n 801a116 + 801a104: 7afb ldrb r3, [r7, #11] + 801a106: f003 0302 and.w r3, r3, #2 + 801a10a: 2b00 cmp r3, #0 + 801a10c: d108 bne.n 801a120 + 801a10e: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 + 801a112: 2b0a cmp r3, #10 + 801a114: d107 bne.n 801a126 /* or no empty entry found and not allowed to recycle? */ ((empty == ARP_TABLE_SIZE) && ((flags & ETHARP_FLAG_TRY_HARD) == 0))) { - 801a106: 7afb ldrb r3, [r7, #11] - 801a108: f003 0301 and.w r3, r3, #1 - 801a10c: 2b00 cmp r3, #0 - 801a10e: d102 bne.n 801a116 + 801a116: 7afb ldrb r3, [r7, #11] + 801a118: f003 0301 and.w r3, r3, #1 + 801a11c: 2b00 cmp r3, #0 + 801a11e: d102 bne.n 801a126 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty entry found and not allowed to recycle\n")); return (s16_t)ERR_MEM; - 801a110: f04f 33ff mov.w r3, #4294967295 - 801a114: e085 b.n 801a222 + 801a120: f04f 33ff mov.w r3, #4294967295 + 801a124: e085 b.n 801a232 * * { ETHARP_FLAG_TRY_HARD is set at this point } */ /* 1) empty entry available? */ if (empty < ARP_TABLE_SIZE) { - 801a116: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 - 801a11a: 2b09 cmp r3, #9 - 801a11c: dc02 bgt.n 801a124 + 801a126: f9b7 3022 ldrsh.w r3, [r7, #34] ; 0x22 + 801a12a: 2b09 cmp r3, #9 + 801a12c: dc02 bgt.n 801a134 i = empty; - 801a11e: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801a120: 843b strh r3, [r7, #32] - 801a122: e039 b.n 801a198 + 801a12e: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801a130: 843b strh r3, [r7, #32] + 801a132: e039 b.n 801a1a8 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting empty entry %d\n", (int)i)); } else { /* 2) found recyclable stable entry? */ if (old_stable < ARP_TABLE_SIZE) { - 801a124: f9b7 3024 ldrsh.w r3, [r7, #36] ; 0x24 - 801a128: 2b09 cmp r3, #9 - 801a12a: dc14 bgt.n 801a156 + 801a134: f9b7 3024 ldrsh.w r3, [r7, #36] ; 0x24 + 801a138: 2b09 cmp r3, #9 + 801a13a: dc14 bgt.n 801a166 /* recycle oldest stable*/ i = old_stable; - 801a12c: 8cbb ldrh r3, [r7, #36] ; 0x24 - 801a12e: 843b strh r3, [r7, #32] + 801a13c: 8cbb ldrh r3, [r7, #36] ; 0x24 + 801a13e: 843b strh r3, [r7, #32] LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest stable entry %d\n", (int)i)); /* no queued packets should exist on stable entries */ LWIP_ASSERT("arp_table[i].q == NULL", arp_table[i].q == NULL); - 801a130: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a134: 493d ldr r1, [pc, #244] ; (801a22c ) - 801a136: 4613 mov r3, r2 - 801a138: 005b lsls r3, r3, #1 - 801a13a: 4413 add r3, r2 - 801a13c: 00db lsls r3, r3, #3 - 801a13e: 440b add r3, r1 - 801a140: 681b ldr r3, [r3, #0] - 801a142: 2b00 cmp r3, #0 - 801a144: d018 beq.n 801a178 - 801a146: 4b3a ldr r3, [pc, #232] ; (801a230 ) - 801a148: f240 126d movw r2, #365 ; 0x16d - 801a14c: 493b ldr r1, [pc, #236] ; (801a23c ) - 801a14e: 483a ldr r0, [pc, #232] ; (801a238 ) - 801a150: f002 fa7a bl 801c648 - 801a154: e010 b.n 801a178 + 801a140: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a144: 493d ldr r1, [pc, #244] ; (801a23c ) + 801a146: 4613 mov r3, r2 + 801a148: 005b lsls r3, r3, #1 + 801a14a: 4413 add r3, r2 + 801a14c: 00db lsls r3, r3, #3 + 801a14e: 440b add r3, r1 + 801a150: 681b ldr r3, [r3, #0] + 801a152: 2b00 cmp r3, #0 + 801a154: d018 beq.n 801a188 + 801a156: 4b3a ldr r3, [pc, #232] ; (801a240 ) + 801a158: f240 126d movw r2, #365 ; 0x16d + 801a15c: 493b ldr r1, [pc, #236] ; (801a24c ) + 801a15e: 483a ldr r0, [pc, #232] ; (801a248 ) + 801a160: f002 fa7a bl 801c658 + 801a164: e010 b.n 801a188 /* 3) found recyclable pending entry without queued packets? */ } else if (old_pending < ARP_TABLE_SIZE) { - 801a156: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 - 801a15a: 2b09 cmp r3, #9 - 801a15c: dc02 bgt.n 801a164 + 801a166: f9b7 3026 ldrsh.w r3, [r7, #38] ; 0x26 + 801a16a: 2b09 cmp r3, #9 + 801a16c: dc02 bgt.n 801a174 /* recycle oldest pending */ i = old_pending; - 801a15e: 8cfb ldrh r3, [r7, #38] ; 0x26 - 801a160: 843b strh r3, [r7, #32] - 801a162: e009 b.n 801a178 + 801a16e: 8cfb ldrh r3, [r7, #38] ; 0x26 + 801a170: 843b strh r3, [r7, #32] + 801a172: e009 b.n 801a188 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d (without queue)\n", (int)i)); /* 4) found recyclable pending entry with queued packets? */ } else if (old_queue < ARP_TABLE_SIZE) { - 801a164: f9b7 301e ldrsh.w r3, [r7, #30] - 801a168: 2b09 cmp r3, #9 - 801a16a: dc02 bgt.n 801a172 + 801a174: f9b7 301e ldrsh.w r3, [r7, #30] + 801a178: 2b09 cmp r3, #9 + 801a17a: dc02 bgt.n 801a182 /* recycle oldest pending (queued packets are free in etharp_free_entry) */ i = old_queue; - 801a16c: 8bfb ldrh r3, [r7, #30] - 801a16e: 843b strh r3, [r7, #32] - 801a170: e002 b.n 801a178 + 801a17c: 8bfb ldrh r3, [r7, #30] + 801a17e: 843b strh r3, [r7, #32] + 801a180: e002 b.n 801a188 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: selecting oldest pending entry %d, freeing packet queue %p\n", (int)i, (void *)(arp_table[i].q))); /* no empty or recyclable entries found */ } else { LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_find_entry: no empty or recyclable entries found\n")); return (s16_t)ERR_MEM; - 801a172: f04f 33ff mov.w r3, #4294967295 - 801a176: e054 b.n 801a222 + 801a182: f04f 33ff mov.w r3, #4294967295 + 801a186: e054 b.n 801a232 } /* { empty or recyclable entry found } */ LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); - 801a178: f9b7 3020 ldrsh.w r3, [r7, #32] - 801a17c: 2b09 cmp r3, #9 - 801a17e: dd06 ble.n 801a18e - 801a180: 4b2b ldr r3, [pc, #172] ; (801a230 ) - 801a182: f240 127f movw r2, #383 ; 0x17f - 801a186: 492e ldr r1, [pc, #184] ; (801a240 ) - 801a188: 482b ldr r0, [pc, #172] ; (801a238 ) - 801a18a: f002 fa5d bl 801c648 + 801a188: f9b7 3020 ldrsh.w r3, [r7, #32] + 801a18c: 2b09 cmp r3, #9 + 801a18e: dd06 ble.n 801a19e + 801a190: 4b2b ldr r3, [pc, #172] ; (801a240 ) + 801a192: f240 127f movw r2, #383 ; 0x17f + 801a196: 492e ldr r1, [pc, #184] ; (801a250 ) + 801a198: 482b ldr r0, [pc, #172] ; (801a248 ) + 801a19a: f002 fa5d bl 801c658 etharp_free_entry(i); - 801a18e: f9b7 3020 ldrsh.w r3, [r7, #32] - 801a192: 4618 mov r0, r3 - 801a194: f7ff fe06 bl 8019da4 + 801a19e: f9b7 3020 ldrsh.w r3, [r7, #32] + 801a1a2: 4618 mov r0, r3 + 801a1a4: f7ff fe06 bl 8019db4 } LWIP_ASSERT("i < ARP_TABLE_SIZE", i < ARP_TABLE_SIZE); - 801a198: f9b7 3020 ldrsh.w r3, [r7, #32] - 801a19c: 2b09 cmp r3, #9 - 801a19e: dd06 ble.n 801a1ae - 801a1a0: 4b23 ldr r3, [pc, #140] ; (801a230 ) - 801a1a2: f240 1283 movw r2, #387 ; 0x183 - 801a1a6: 4926 ldr r1, [pc, #152] ; (801a240 ) - 801a1a8: 4823 ldr r0, [pc, #140] ; (801a238 ) - 801a1aa: f002 fa4d bl 801c648 + 801a1a8: f9b7 3020 ldrsh.w r3, [r7, #32] + 801a1ac: 2b09 cmp r3, #9 + 801a1ae: dd06 ble.n 801a1be + 801a1b0: 4b23 ldr r3, [pc, #140] ; (801a240 ) + 801a1b2: f240 1283 movw r2, #387 ; 0x183 + 801a1b6: 4926 ldr r1, [pc, #152] ; (801a250 ) + 801a1b8: 4823 ldr r0, [pc, #140] ; (801a248 ) + 801a1ba: f002 fa4d bl 801c658 LWIP_ASSERT("arp_table[i].state == ETHARP_STATE_EMPTY", - 801a1ae: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a1b2: 491e ldr r1, [pc, #120] ; (801a22c ) - 801a1b4: 4613 mov r3, r2 - 801a1b6: 005b lsls r3, r3, #1 - 801a1b8: 4413 add r3, r2 - 801a1ba: 00db lsls r3, r3, #3 - 801a1bc: 440b add r3, r1 - 801a1be: 3314 adds r3, #20 - 801a1c0: 781b ldrb r3, [r3, #0] - 801a1c2: 2b00 cmp r3, #0 - 801a1c4: d006 beq.n 801a1d4 - 801a1c6: 4b1a ldr r3, [pc, #104] ; (801a230 ) - 801a1c8: f240 1285 movw r2, #389 ; 0x185 - 801a1cc: 491d ldr r1, [pc, #116] ; (801a244 ) - 801a1ce: 481a ldr r0, [pc, #104] ; (801a238 ) - 801a1d0: f002 fa3a bl 801c648 + 801a1be: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a1c2: 491e ldr r1, [pc, #120] ; (801a23c ) + 801a1c4: 4613 mov r3, r2 + 801a1c6: 005b lsls r3, r3, #1 + 801a1c8: 4413 add r3, r2 + 801a1ca: 00db lsls r3, r3, #3 + 801a1cc: 440b add r3, r1 + 801a1ce: 3314 adds r3, #20 + 801a1d0: 781b ldrb r3, [r3, #0] + 801a1d2: 2b00 cmp r3, #0 + 801a1d4: d006 beq.n 801a1e4 + 801a1d6: 4b1a ldr r3, [pc, #104] ; (801a240 ) + 801a1d8: f240 1285 movw r2, #389 ; 0x185 + 801a1dc: 491d ldr r1, [pc, #116] ; (801a254 ) + 801a1de: 481a ldr r0, [pc, #104] ; (801a248 ) + 801a1e0: f002 fa3a bl 801c658 arp_table[i].state == ETHARP_STATE_EMPTY); /* IP address given? */ if (ipaddr != NULL) { - 801a1d4: 68fb ldr r3, [r7, #12] - 801a1d6: 2b00 cmp r3, #0 - 801a1d8: d00b beq.n 801a1f2 + 801a1e4: 68fb ldr r3, [r7, #12] + 801a1e6: 2b00 cmp r3, #0 + 801a1e8: d00b beq.n 801a202 /* set IP address */ ip4_addr_copy(arp_table[i].ipaddr, *ipaddr); - 801a1da: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a1de: 68fb ldr r3, [r7, #12] - 801a1e0: 6819 ldr r1, [r3, #0] - 801a1e2: 4812 ldr r0, [pc, #72] ; (801a22c ) - 801a1e4: 4613 mov r3, r2 - 801a1e6: 005b lsls r3, r3, #1 - 801a1e8: 4413 add r3, r2 - 801a1ea: 00db lsls r3, r3, #3 - 801a1ec: 4403 add r3, r0 - 801a1ee: 3304 adds r3, #4 - 801a1f0: 6019 str r1, [r3, #0] + 801a1ea: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a1ee: 68fb ldr r3, [r7, #12] + 801a1f0: 6819 ldr r1, [r3, #0] + 801a1f2: 4812 ldr r0, [pc, #72] ; (801a23c ) + 801a1f4: 4613 mov r3, r2 + 801a1f6: 005b lsls r3, r3, #1 + 801a1f8: 4413 add r3, r2 + 801a1fa: 00db lsls r3, r3, #3 + 801a1fc: 4403 add r3, r0 + 801a1fe: 3304 adds r3, #4 + 801a200: 6019 str r1, [r3, #0] } arp_table[i].ctime = 0; - 801a1f2: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a1f6: 490d ldr r1, [pc, #52] ; (801a22c ) - 801a1f8: 4613 mov r3, r2 - 801a1fa: 005b lsls r3, r3, #1 - 801a1fc: 4413 add r3, r2 - 801a1fe: 00db lsls r3, r3, #3 - 801a200: 440b add r3, r1 - 801a202: 3312 adds r3, #18 - 801a204: 2200 movs r2, #0 - 801a206: 801a strh r2, [r3, #0] + 801a202: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a206: 490d ldr r1, [pc, #52] ; (801a23c ) + 801a208: 4613 mov r3, r2 + 801a20a: 005b lsls r3, r3, #1 + 801a20c: 4413 add r3, r2 + 801a20e: 00db lsls r3, r3, #3 + 801a210: 440b add r3, r1 + 801a212: 3312 adds r3, #18 + 801a214: 2200 movs r2, #0 + 801a216: 801a strh r2, [r3, #0] #if ETHARP_TABLE_MATCH_NETIF arp_table[i].netif = netif; - 801a208: f9b7 2020 ldrsh.w r2, [r7, #32] - 801a20c: 4907 ldr r1, [pc, #28] ; (801a22c ) - 801a20e: 4613 mov r3, r2 - 801a210: 005b lsls r3, r3, #1 - 801a212: 4413 add r3, r2 - 801a214: 00db lsls r3, r3, #3 - 801a216: 440b add r3, r1 - 801a218: 3308 adds r3, #8 - 801a21a: 687a ldr r2, [r7, #4] - 801a21c: 601a str r2, [r3, #0] + 801a218: f9b7 2020 ldrsh.w r2, [r7, #32] + 801a21c: 4907 ldr r1, [pc, #28] ; (801a23c ) + 801a21e: 4613 mov r3, r2 + 801a220: 005b lsls r3, r3, #1 + 801a222: 4413 add r3, r2 + 801a224: 00db lsls r3, r3, #3 + 801a226: 440b add r3, r1 + 801a228: 3308 adds r3, #8 + 801a22a: 687a ldr r2, [r7, #4] + 801a22c: 601a str r2, [r3, #0] #endif /* ETHARP_TABLE_MATCH_NETIF */ return (s16_t)i; - 801a21e: f9b7 3020 ldrsh.w r3, [r7, #32] -} - 801a222: 4618 mov r0, r3 - 801a224: 3728 adds r7, #40 ; 0x28 - 801a226: 46bd mov sp, r7 - 801a228: bd80 pop {r7, pc} - 801a22a: bf00 nop - 801a22c: 2000876c .word 0x2000876c - 801a230: 080200c8 .word 0x080200c8 - 801a234: 08020100 .word 0x08020100 - 801a238: 08020140 .word 0x08020140 - 801a23c: 08020168 .word 0x08020168 - 801a240: 08020180 .word 0x08020180 - 801a244: 08020194 .word 0x08020194 - -0801a248 : + 801a22e: f9b7 3020 ldrsh.w r3, [r7, #32] +} + 801a232: 4618 mov r0, r3 + 801a234: 3728 adds r7, #40 ; 0x28 + 801a236: 46bd mov sp, r7 + 801a238: bd80 pop {r7, pc} + 801a23a: bf00 nop + 801a23c: 2000876c .word 0x2000876c + 801a240: 080200d8 .word 0x080200d8 + 801a244: 08020110 .word 0x08020110 + 801a248: 08020150 .word 0x08020150 + 801a24c: 08020178 .word 0x08020178 + 801a250: 08020190 .word 0x08020190 + 801a254: 080201a4 .word 0x080201a4 + +0801a258 : * * @see pbuf_free() */ static err_t etharp_update_arp_entry(struct netif *netif, const ip4_addr_t *ipaddr, struct eth_addr *ethaddr, u8_t flags) { - 801a248: b580 push {r7, lr} - 801a24a: b088 sub sp, #32 - 801a24c: af02 add r7, sp, #8 - 801a24e: 60f8 str r0, [r7, #12] - 801a250: 60b9 str r1, [r7, #8] - 801a252: 607a str r2, [r7, #4] - 801a254: 70fb strb r3, [r7, #3] + 801a258: b580 push {r7, lr} + 801a25a: b088 sub sp, #32 + 801a25c: af02 add r7, sp, #8 + 801a25e: 60f8 str r0, [r7, #12] + 801a260: 60b9 str r1, [r7, #8] + 801a262: 607a str r2, [r7, #4] + 801a264: 70fb strb r3, [r7, #3] s16_t i; LWIP_ASSERT("netif->hwaddr_len == ETH_HWADDR_LEN", netif->hwaddr_len == ETH_HWADDR_LEN); - 801a256: 68fb ldr r3, [r7, #12] - 801a258: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 801a25c: 2b06 cmp r3, #6 - 801a25e: d006 beq.n 801a26e - 801a260: 4b48 ldr r3, [pc, #288] ; (801a384 ) - 801a262: f240 12a9 movw r2, #425 ; 0x1a9 - 801a266: 4948 ldr r1, [pc, #288] ; (801a388 ) - 801a268: 4848 ldr r0, [pc, #288] ; (801a38c ) - 801a26a: f002 f9ed bl 801c648 + 801a266: 68fb ldr r3, [r7, #12] + 801a268: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 801a26c: 2b06 cmp r3, #6 + 801a26e: d006 beq.n 801a27e + 801a270: 4b48 ldr r3, [pc, #288] ; (801a394 ) + 801a272: f240 12a9 movw r2, #425 ; 0x1a9 + 801a276: 4948 ldr r1, [pc, #288] ; (801a398 ) + 801a278: 4848 ldr r0, [pc, #288] ; (801a39c ) + 801a27a: f002 f9ed bl 801c658 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: %"U16_F".%"U16_F".%"U16_F".%"U16_F" - %02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F":%02"X16_F"\n", ip4_addr1_16(ipaddr), ip4_addr2_16(ipaddr), ip4_addr3_16(ipaddr), ip4_addr4_16(ipaddr), (u16_t)ethaddr->addr[0], (u16_t)ethaddr->addr[1], (u16_t)ethaddr->addr[2], (u16_t)ethaddr->addr[3], (u16_t)ethaddr->addr[4], (u16_t)ethaddr->addr[5])); /* non-unicast address? */ if (ip4_addr_isany(ipaddr) || - 801a26e: 68bb ldr r3, [r7, #8] - 801a270: 2b00 cmp r3, #0 - 801a272: d012 beq.n 801a29a - 801a274: 68bb ldr r3, [r7, #8] - 801a276: 681b ldr r3, [r3, #0] - 801a278: 2b00 cmp r3, #0 - 801a27a: d00e beq.n 801a29a + 801a27e: 68bb ldr r3, [r7, #8] + 801a280: 2b00 cmp r3, #0 + 801a282: d012 beq.n 801a2aa + 801a284: 68bb ldr r3, [r7, #8] + 801a286: 681b ldr r3, [r3, #0] + 801a288: 2b00 cmp r3, #0 + 801a28a: d00e beq.n 801a2aa ip4_addr_isbroadcast(ipaddr, netif) || - 801a27c: 68bb ldr r3, [r7, #8] - 801a27e: 681b ldr r3, [r3, #0] - 801a280: 68f9 ldr r1, [r7, #12] - 801a282: 4618 mov r0, r3 - 801a284: f001 f91e bl 801b4c4 - 801a288: 4603 mov r3, r0 + 801a28c: 68bb ldr r3, [r7, #8] + 801a28e: 681b ldr r3, [r3, #0] + 801a290: 68f9 ldr r1, [r7, #12] + 801a292: 4618 mov r0, r3 + 801a294: f001 f91e bl 801b4d4 + 801a298: 4603 mov r3, r0 if (ip4_addr_isany(ipaddr) || - 801a28a: 2b00 cmp r3, #0 - 801a28c: d105 bne.n 801a29a + 801a29a: 2b00 cmp r3, #0 + 801a29c: d105 bne.n 801a2aa ip4_addr_ismulticast(ipaddr)) { - 801a28e: 68bb ldr r3, [r7, #8] - 801a290: 681b ldr r3, [r3, #0] - 801a292: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 801a29e: 68bb ldr r3, [r7, #8] + 801a2a0: 681b ldr r3, [r3, #0] + 801a2a2: f003 03f0 and.w r3, r3, #240 ; 0xf0 ip4_addr_isbroadcast(ipaddr, netif) || - 801a296: 2be0 cmp r3, #224 ; 0xe0 - 801a298: d102 bne.n 801a2a0 + 801a2a6: 2be0 cmp r3, #224 ; 0xe0 + 801a2a8: d102 bne.n 801a2b0 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: will not add non-unicast IP address to ARP cache\n")); return ERR_ARG; - 801a29a: f06f 030f mvn.w r3, #15 - 801a29e: e06c b.n 801a37a + 801a2aa: f06f 030f mvn.w r3, #15 + 801a2ae: e06c b.n 801a38a } /* find or create ARP entry */ i = etharp_find_entry(ipaddr, flags, netif); - 801a2a0: 78fb ldrb r3, [r7, #3] - 801a2a2: 68fa ldr r2, [r7, #12] - 801a2a4: 4619 mov r1, r3 - 801a2a6: 68b8 ldr r0, [r7, #8] - 801a2a8: f7ff fe56 bl 8019f58 - 801a2ac: 4603 mov r3, r0 - 801a2ae: 82fb strh r3, [r7, #22] + 801a2b0: 78fb ldrb r3, [r7, #3] + 801a2b2: 68fa ldr r2, [r7, #12] + 801a2b4: 4619 mov r1, r3 + 801a2b6: 68b8 ldr r0, [r7, #8] + 801a2b8: f7ff fe56 bl 8019f68 + 801a2bc: 4603 mov r3, r0 + 801a2be: 82fb strh r3, [r7, #22] /* bail out if no entry could be found */ if (i < 0) { - 801a2b0: f9b7 3016 ldrsh.w r3, [r7, #22] - 801a2b4: 2b00 cmp r3, #0 - 801a2b6: da02 bge.n 801a2be + 801a2c0: f9b7 3016 ldrsh.w r3, [r7, #22] + 801a2c4: 2b00 cmp r3, #0 + 801a2c6: da02 bge.n 801a2ce return (err_t)i; - 801a2b8: 8afb ldrh r3, [r7, #22] - 801a2ba: b25b sxtb r3, r3 - 801a2bc: e05d b.n 801a37a + 801a2c8: 8afb ldrh r3, [r7, #22] + 801a2ca: b25b sxtb r3, r3 + 801a2cc: e05d b.n 801a38a return ERR_VAL; } else #endif /* ETHARP_SUPPORT_STATIC_ENTRIES */ { /* mark it stable */ arp_table[i].state = ETHARP_STATE_STABLE; - 801a2be: f9b7 2016 ldrsh.w r2, [r7, #22] - 801a2c2: 4933 ldr r1, [pc, #204] ; (801a390 ) - 801a2c4: 4613 mov r3, r2 - 801a2c6: 005b lsls r3, r3, #1 - 801a2c8: 4413 add r3, r2 - 801a2ca: 00db lsls r3, r3, #3 - 801a2cc: 440b add r3, r1 - 801a2ce: 3314 adds r3, #20 - 801a2d0: 2202 movs r2, #2 - 801a2d2: 701a strb r2, [r3, #0] + 801a2ce: f9b7 2016 ldrsh.w r2, [r7, #22] + 801a2d2: 4933 ldr r1, [pc, #204] ; (801a3a0 ) + 801a2d4: 4613 mov r3, r2 + 801a2d6: 005b lsls r3, r3, #1 + 801a2d8: 4413 add r3, r2 + 801a2da: 00db lsls r3, r3, #3 + 801a2dc: 440b add r3, r1 + 801a2de: 3314 adds r3, #20 + 801a2e0: 2202 movs r2, #2 + 801a2e2: 701a strb r2, [r3, #0] } /* record network interface */ arp_table[i].netif = netif; - 801a2d4: f9b7 2016 ldrsh.w r2, [r7, #22] - 801a2d8: 492d ldr r1, [pc, #180] ; (801a390 ) - 801a2da: 4613 mov r3, r2 - 801a2dc: 005b lsls r3, r3, #1 - 801a2de: 4413 add r3, r2 - 801a2e0: 00db lsls r3, r3, #3 - 801a2e2: 440b add r3, r1 - 801a2e4: 3308 adds r3, #8 - 801a2e6: 68fa ldr r2, [r7, #12] - 801a2e8: 601a str r2, [r3, #0] + 801a2e4: f9b7 2016 ldrsh.w r2, [r7, #22] + 801a2e8: 492d ldr r1, [pc, #180] ; (801a3a0 ) + 801a2ea: 4613 mov r3, r2 + 801a2ec: 005b lsls r3, r3, #1 + 801a2ee: 4413 add r3, r2 + 801a2f0: 00db lsls r3, r3, #3 + 801a2f2: 440b add r3, r1 + 801a2f4: 3308 adds r3, #8 + 801a2f6: 68fa ldr r2, [r7, #12] + 801a2f8: 601a str r2, [r3, #0] /* insert in SNMP ARP index tree */ mib2_add_arp_entry(netif, &arp_table[i].ipaddr); LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_update_arp_entry: updating stable entry %"S16_F"\n", i)); /* update address */ SMEMCPY(&arp_table[i].ethaddr, ethaddr, ETH_HWADDR_LEN); - 801a2ea: f9b7 2016 ldrsh.w r2, [r7, #22] - 801a2ee: 4613 mov r3, r2 - 801a2f0: 005b lsls r3, r3, #1 - 801a2f2: 4413 add r3, r2 - 801a2f4: 00db lsls r3, r3, #3 - 801a2f6: 3308 adds r3, #8 - 801a2f8: 4a25 ldr r2, [pc, #148] ; (801a390 ) - 801a2fa: 4413 add r3, r2 - 801a2fc: 3304 adds r3, #4 - 801a2fe: 2206 movs r2, #6 - 801a300: 6879 ldr r1, [r7, #4] - 801a302: 4618 mov r0, r3 - 801a304: f002 f973 bl 801c5ee + 801a2fa: f9b7 2016 ldrsh.w r2, [r7, #22] + 801a2fe: 4613 mov r3, r2 + 801a300: 005b lsls r3, r3, #1 + 801a302: 4413 add r3, r2 + 801a304: 00db lsls r3, r3, #3 + 801a306: 3308 adds r3, #8 + 801a308: 4a25 ldr r2, [pc, #148] ; (801a3a0 ) + 801a30a: 4413 add r3, r2 + 801a30c: 3304 adds r3, #4 + 801a30e: 2206 movs r2, #6 + 801a310: 6879 ldr r1, [r7, #4] + 801a312: 4618 mov r0, r3 + 801a314: f002 f973 bl 801c5fe /* reset time stamp */ arp_table[i].ctime = 0; - 801a308: f9b7 2016 ldrsh.w r2, [r7, #22] - 801a30c: 4920 ldr r1, [pc, #128] ; (801a390 ) - 801a30e: 4613 mov r3, r2 - 801a310: 005b lsls r3, r3, #1 - 801a312: 4413 add r3, r2 - 801a314: 00db lsls r3, r3, #3 - 801a316: 440b add r3, r1 - 801a318: 3312 adds r3, #18 - 801a31a: 2200 movs r2, #0 - 801a31c: 801a strh r2, [r3, #0] + 801a318: f9b7 2016 ldrsh.w r2, [r7, #22] + 801a31c: 4920 ldr r1, [pc, #128] ; (801a3a0 ) + 801a31e: 4613 mov r3, r2 + 801a320: 005b lsls r3, r3, #1 + 801a322: 4413 add r3, r2 + 801a324: 00db lsls r3, r3, #3 + 801a326: 440b add r3, r1 + 801a328: 3312 adds r3, #18 + 801a32a: 2200 movs r2, #0 + 801a32c: 801a strh r2, [r3, #0] /* get the packet pointer */ p = q->p; /* now queue entry can be freed */ memp_free(MEMP_ARP_QUEUE, q); #else /* ARP_QUEUEING */ if (arp_table[i].q != NULL) { - 801a31e: f9b7 2016 ldrsh.w r2, [r7, #22] - 801a322: 491b ldr r1, [pc, #108] ; (801a390 ) - 801a324: 4613 mov r3, r2 - 801a326: 005b lsls r3, r3, #1 - 801a328: 4413 add r3, r2 - 801a32a: 00db lsls r3, r3, #3 - 801a32c: 440b add r3, r1 - 801a32e: 681b ldr r3, [r3, #0] - 801a330: 2b00 cmp r3, #0 - 801a332: d021 beq.n 801a378 + 801a32e: f9b7 2016 ldrsh.w r2, [r7, #22] + 801a332: 491b ldr r1, [pc, #108] ; (801a3a0 ) + 801a334: 4613 mov r3, r2 + 801a336: 005b lsls r3, r3, #1 + 801a338: 4413 add r3, r2 + 801a33a: 00db lsls r3, r3, #3 + 801a33c: 440b add r3, r1 + 801a33e: 681b ldr r3, [r3, #0] + 801a340: 2b00 cmp r3, #0 + 801a342: d021 beq.n 801a388 struct pbuf *p = arp_table[i].q; - 801a334: f9b7 2016 ldrsh.w r2, [r7, #22] - 801a338: 4915 ldr r1, [pc, #84] ; (801a390 ) - 801a33a: 4613 mov r3, r2 - 801a33c: 005b lsls r3, r3, #1 - 801a33e: 4413 add r3, r2 - 801a340: 00db lsls r3, r3, #3 - 801a342: 440b add r3, r1 - 801a344: 681b ldr r3, [r3, #0] - 801a346: 613b str r3, [r7, #16] + 801a344: f9b7 2016 ldrsh.w r2, [r7, #22] + 801a348: 4915 ldr r1, [pc, #84] ; (801a3a0 ) + 801a34a: 4613 mov r3, r2 + 801a34c: 005b lsls r3, r3, #1 + 801a34e: 4413 add r3, r2 + 801a350: 00db lsls r3, r3, #3 + 801a352: 440b add r3, r1 + 801a354: 681b ldr r3, [r3, #0] + 801a356: 613b str r3, [r7, #16] arp_table[i].q = NULL; - 801a348: f9b7 2016 ldrsh.w r2, [r7, #22] - 801a34c: 4910 ldr r1, [pc, #64] ; (801a390 ) - 801a34e: 4613 mov r3, r2 - 801a350: 005b lsls r3, r3, #1 - 801a352: 4413 add r3, r2 - 801a354: 00db lsls r3, r3, #3 - 801a356: 440b add r3, r1 - 801a358: 2200 movs r2, #0 - 801a35a: 601a str r2, [r3, #0] + 801a358: f9b7 2016 ldrsh.w r2, [r7, #22] + 801a35c: 4910 ldr r1, [pc, #64] ; (801a3a0 ) + 801a35e: 4613 mov r3, r2 + 801a360: 005b lsls r3, r3, #1 + 801a362: 4413 add r3, r2 + 801a364: 00db lsls r3, r3, #3 + 801a366: 440b add r3, r1 + 801a368: 2200 movs r2, #0 + 801a36a: 601a str r2, [r3, #0] #endif /* ARP_QUEUEING */ /* send the queued IP packet */ ethernet_output(netif, p, (struct eth_addr *)(netif->hwaddr), ethaddr, ETHTYPE_IP); - 801a35c: 68fb ldr r3, [r7, #12] - 801a35e: f103 022a add.w r2, r3, #42 ; 0x2a - 801a362: f44f 6300 mov.w r3, #2048 ; 0x800 - 801a366: 9300 str r3, [sp, #0] - 801a368: 687b ldr r3, [r7, #4] - 801a36a: 6939 ldr r1, [r7, #16] - 801a36c: 68f8 ldr r0, [r7, #12] - 801a36e: f001 ffad bl 801c2cc + 801a36c: 68fb ldr r3, [r7, #12] + 801a36e: f103 022a add.w r2, r3, #42 ; 0x2a + 801a372: f44f 6300 mov.w r3, #2048 ; 0x800 + 801a376: 9300 str r3, [sp, #0] + 801a378: 687b ldr r3, [r7, #4] + 801a37a: 6939 ldr r1, [r7, #16] + 801a37c: 68f8 ldr r0, [r7, #12] + 801a37e: f001 ffad bl 801c2dc /* free the queued IP packet */ pbuf_free(p); - 801a372: 6938 ldr r0, [r7, #16] - 801a374: f7f7 fc38 bl 8011be8 + 801a382: 6938 ldr r0, [r7, #16] + 801a384: f7f7 fc38 bl 8011bf8 } return ERR_OK; - 801a378: 2300 movs r3, #0 -} - 801a37a: 4618 mov r0, r3 - 801a37c: 3718 adds r7, #24 - 801a37e: 46bd mov sp, r7 - 801a380: bd80 pop {r7, pc} - 801a382: bf00 nop - 801a384: 080200c8 .word 0x080200c8 - 801a388: 080201c0 .word 0x080201c0 - 801a38c: 08020140 .word 0x08020140 - 801a390: 2000876c .word 0x2000876c - -0801a394 : + 801a388: 2300 movs r3, #0 +} + 801a38a: 4618 mov r0, r3 + 801a38c: 3718 adds r7, #24 + 801a38e: 46bd mov sp, r7 + 801a390: bd80 pop {r7, pc} + 801a392: bf00 nop + 801a394: 080200d8 .word 0x080200d8 + 801a398: 080201d0 .word 0x080201d0 + 801a39c: 08020150 .word 0x08020150 + 801a3a0: 2000876c .word 0x2000876c + +0801a3a4 : * * @param netif points to a network interface */ void etharp_cleanup_netif(struct netif *netif) { - 801a394: b580 push {r7, lr} - 801a396: b084 sub sp, #16 - 801a398: af00 add r7, sp, #0 - 801a39a: 6078 str r0, [r7, #4] + 801a3a4: b580 push {r7, lr} + 801a3a6: b084 sub sp, #16 + 801a3a8: af00 add r7, sp, #0 + 801a3aa: 6078 str r0, [r7, #4] int i; for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 801a39c: 2300 movs r3, #0 - 801a39e: 60fb str r3, [r7, #12] - 801a3a0: e01e b.n 801a3e0 + 801a3ac: 2300 movs r3, #0 + 801a3ae: 60fb str r3, [r7, #12] + 801a3b0: e01e b.n 801a3f0 u8_t state = arp_table[i].state; - 801a3a2: 4913 ldr r1, [pc, #76] ; (801a3f0 ) - 801a3a4: 68fa ldr r2, [r7, #12] - 801a3a6: 4613 mov r3, r2 - 801a3a8: 005b lsls r3, r3, #1 - 801a3aa: 4413 add r3, r2 - 801a3ac: 00db lsls r3, r3, #3 - 801a3ae: 440b add r3, r1 - 801a3b0: 3314 adds r3, #20 - 801a3b2: 781b ldrb r3, [r3, #0] - 801a3b4: 72fb strb r3, [r7, #11] + 801a3b2: 4913 ldr r1, [pc, #76] ; (801a400 ) + 801a3b4: 68fa ldr r2, [r7, #12] + 801a3b6: 4613 mov r3, r2 + 801a3b8: 005b lsls r3, r3, #1 + 801a3ba: 4413 add r3, r2 + 801a3bc: 00db lsls r3, r3, #3 + 801a3be: 440b add r3, r1 + 801a3c0: 3314 adds r3, #20 + 801a3c2: 781b ldrb r3, [r3, #0] + 801a3c4: 72fb strb r3, [r7, #11] if ((state != ETHARP_STATE_EMPTY) && (arp_table[i].netif == netif)) { - 801a3b6: 7afb ldrb r3, [r7, #11] - 801a3b8: 2b00 cmp r3, #0 - 801a3ba: d00e beq.n 801a3da - 801a3bc: 490c ldr r1, [pc, #48] ; (801a3f0 ) - 801a3be: 68fa ldr r2, [r7, #12] - 801a3c0: 4613 mov r3, r2 - 801a3c2: 005b lsls r3, r3, #1 - 801a3c4: 4413 add r3, r2 - 801a3c6: 00db lsls r3, r3, #3 - 801a3c8: 440b add r3, r1 - 801a3ca: 3308 adds r3, #8 - 801a3cc: 681b ldr r3, [r3, #0] - 801a3ce: 687a ldr r2, [r7, #4] - 801a3d0: 429a cmp r2, r3 - 801a3d2: d102 bne.n 801a3da + 801a3c6: 7afb ldrb r3, [r7, #11] + 801a3c8: 2b00 cmp r3, #0 + 801a3ca: d00e beq.n 801a3ea + 801a3cc: 490c ldr r1, [pc, #48] ; (801a400 ) + 801a3ce: 68fa ldr r2, [r7, #12] + 801a3d0: 4613 mov r3, r2 + 801a3d2: 005b lsls r3, r3, #1 + 801a3d4: 4413 add r3, r2 + 801a3d6: 00db lsls r3, r3, #3 + 801a3d8: 440b add r3, r1 + 801a3da: 3308 adds r3, #8 + 801a3dc: 681b ldr r3, [r3, #0] + 801a3de: 687a ldr r2, [r7, #4] + 801a3e0: 429a cmp r2, r3 + 801a3e2: d102 bne.n 801a3ea etharp_free_entry(i); - 801a3d4: 68f8 ldr r0, [r7, #12] - 801a3d6: f7ff fce5 bl 8019da4 + 801a3e4: 68f8 ldr r0, [r7, #12] + 801a3e6: f7ff fce5 bl 8019db4 for (i = 0; i < ARP_TABLE_SIZE; ++i) { - 801a3da: 68fb ldr r3, [r7, #12] - 801a3dc: 3301 adds r3, #1 - 801a3de: 60fb str r3, [r7, #12] - 801a3e0: 68fb ldr r3, [r7, #12] - 801a3e2: 2b09 cmp r3, #9 - 801a3e4: dddd ble.n 801a3a2 + 801a3ea: 68fb ldr r3, [r7, #12] + 801a3ec: 3301 adds r3, #1 + 801a3ee: 60fb str r3, [r7, #12] + 801a3f0: 68fb ldr r3, [r7, #12] + 801a3f2: 2b09 cmp r3, #9 + 801a3f4: dddd ble.n 801a3b2 } } } - 801a3e6: bf00 nop - 801a3e8: 3710 adds r7, #16 - 801a3ea: 46bd mov sp, r7 - 801a3ec: bd80 pop {r7, pc} - 801a3ee: bf00 nop - 801a3f0: 2000876c .word 0x2000876c + 801a3f6: bf00 nop + 801a3f8: 3710 adds r7, #16 + 801a3fa: 46bd mov sp, r7 + 801a3fc: bd80 pop {r7, pc} + 801a3fe: bf00 nop + 801a400: 2000876c .word 0x2000876c -0801a3f4 : +0801a404 : * * @see pbuf_free() */ void etharp_input(struct pbuf *p, struct netif *netif) { - 801a3f4: b5b0 push {r4, r5, r7, lr} - 801a3f6: b08a sub sp, #40 ; 0x28 - 801a3f8: af04 add r7, sp, #16 - 801a3fa: 6078 str r0, [r7, #4] - 801a3fc: 6039 str r1, [r7, #0] + 801a404: b5b0 push {r4, r5, r7, lr} + 801a406: b08a sub sp, #40 ; 0x28 + 801a408: af04 add r7, sp, #16 + 801a40a: 6078 str r0, [r7, #4] + 801a40c: 6039 str r1, [r7, #0] ip4_addr_t sipaddr, dipaddr; u8_t for_us; LWIP_ASSERT_CORE_LOCKED(); LWIP_ERROR("netif != NULL", (netif != NULL), return;); - 801a3fe: 683b ldr r3, [r7, #0] - 801a400: 2b00 cmp r3, #0 - 801a402: d107 bne.n 801a414 - 801a404: 4b3f ldr r3, [pc, #252] ; (801a504 ) - 801a406: f240 228a movw r2, #650 ; 0x28a - 801a40a: 493f ldr r1, [pc, #252] ; (801a508 ) - 801a40c: 483f ldr r0, [pc, #252] ; (801a50c ) - 801a40e: f002 f91b bl 801c648 - 801a412: e074 b.n 801a4fe + 801a40e: 683b ldr r3, [r7, #0] + 801a410: 2b00 cmp r3, #0 + 801a412: d107 bne.n 801a424 + 801a414: 4b3f ldr r3, [pc, #252] ; (801a514 ) + 801a416: f240 228a movw r2, #650 ; 0x28a + 801a41a: 493f ldr r1, [pc, #252] ; (801a518 ) + 801a41c: 483f ldr r0, [pc, #252] ; (801a51c ) + 801a41e: f002 f91b bl 801c658 + 801a422: e074 b.n 801a50e hdr = (struct etharp_hdr *)p->payload; - 801a414: 687b ldr r3, [r7, #4] - 801a416: 685b ldr r3, [r3, #4] - 801a418: 613b str r3, [r7, #16] + 801a424: 687b ldr r3, [r7, #4] + 801a426: 685b ldr r3, [r3, #4] + 801a428: 613b str r3, [r7, #16] /* RFC 826 "Packet Reception": */ if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) || - 801a41a: 693b ldr r3, [r7, #16] - 801a41c: 881b ldrh r3, [r3, #0] - 801a41e: b29b uxth r3, r3 - 801a420: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 801a424: d10c bne.n 801a440 + 801a42a: 693b ldr r3, [r7, #16] + 801a42c: 881b ldrh r3, [r3, #0] + 801a42e: b29b uxth r3, r3 + 801a430: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 801a434: d10c bne.n 801a450 (hdr->hwlen != ETH_HWADDR_LEN) || - 801a426: 693b ldr r3, [r7, #16] - 801a428: 791b ldrb r3, [r3, #4] + 801a436: 693b ldr r3, [r7, #16] + 801a438: 791b ldrb r3, [r3, #4] if ((hdr->hwtype != PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET)) || - 801a42a: 2b06 cmp r3, #6 - 801a42c: d108 bne.n 801a440 + 801a43a: 2b06 cmp r3, #6 + 801a43c: d108 bne.n 801a450 (hdr->protolen != sizeof(ip4_addr_t)) || - 801a42e: 693b ldr r3, [r7, #16] - 801a430: 795b ldrb r3, [r3, #5] + 801a43e: 693b ldr r3, [r7, #16] + 801a440: 795b ldrb r3, [r3, #5] (hdr->hwlen != ETH_HWADDR_LEN) || - 801a432: 2b04 cmp r3, #4 - 801a434: d104 bne.n 801a440 + 801a442: 2b04 cmp r3, #4 + 801a444: d104 bne.n 801a450 (hdr->proto != PP_HTONS(ETHTYPE_IP))) { - 801a436: 693b ldr r3, [r7, #16] - 801a438: 885b ldrh r3, [r3, #2] - 801a43a: b29b uxth r3, r3 + 801a446: 693b ldr r3, [r7, #16] + 801a448: 885b ldrh r3, [r3, #2] + 801a44a: b29b uxth r3, r3 (hdr->protolen != sizeof(ip4_addr_t)) || - 801a43c: 2b08 cmp r3, #8 - 801a43e: d003 beq.n 801a448 + 801a44c: 2b08 cmp r3, #8 + 801a44e: d003 beq.n 801a458 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("etharp_input: packet dropped, wrong hw type, hwlen, proto, protolen or ethernet type (%"U16_F"/%"U16_F"/%"U16_F"/%"U16_F")\n", hdr->hwtype, (u16_t)hdr->hwlen, hdr->proto, (u16_t)hdr->protolen)); ETHARP_STATS_INC(etharp.proterr); ETHARP_STATS_INC(etharp.drop); pbuf_free(p); - 801a440: 6878 ldr r0, [r7, #4] - 801a442: f7f7 fbd1 bl 8011be8 + 801a450: 6878 ldr r0, [r7, #4] + 801a452: f7f7 fbd1 bl 8011bf8 return; - 801a446: e05a b.n 801a4fe + 801a456: e05a b.n 801a50e autoip_arp_reply(netif, hdr); #endif /* LWIP_AUTOIP */ /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without * structure packing (not using structure copy which breaks strict-aliasing rules). */ IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&sipaddr, &hdr->sipaddr); - 801a448: 693b ldr r3, [r7, #16] - 801a44a: 330e adds r3, #14 - 801a44c: 681b ldr r3, [r3, #0] - 801a44e: 60fb str r3, [r7, #12] + 801a458: 693b ldr r3, [r7, #16] + 801a45a: 330e adds r3, #14 + 801a45c: 681b ldr r3, [r3, #0] + 801a45e: 60fb str r3, [r7, #12] IPADDR_WORDALIGNED_COPY_TO_IP4_ADDR_T(&dipaddr, &hdr->dipaddr); - 801a450: 693b ldr r3, [r7, #16] - 801a452: 3318 adds r3, #24 - 801a454: 681b ldr r3, [r3, #0] - 801a456: 60bb str r3, [r7, #8] + 801a460: 693b ldr r3, [r7, #16] + 801a462: 3318 adds r3, #24 + 801a464: 681b ldr r3, [r3, #0] + 801a466: 60bb str r3, [r7, #8] /* this interface is not configured? */ if (ip4_addr_isany_val(*netif_ip4_addr(netif))) { - 801a458: 683b ldr r3, [r7, #0] - 801a45a: 3304 adds r3, #4 - 801a45c: 681b ldr r3, [r3, #0] - 801a45e: 2b00 cmp r3, #0 - 801a460: d102 bne.n 801a468 + 801a468: 683b ldr r3, [r7, #0] + 801a46a: 3304 adds r3, #4 + 801a46c: 681b ldr r3, [r3, #0] + 801a46e: 2b00 cmp r3, #0 + 801a470: d102 bne.n 801a478 for_us = 0; - 801a462: 2300 movs r3, #0 - 801a464: 75fb strb r3, [r7, #23] - 801a466: e009 b.n 801a47c + 801a472: 2300 movs r3, #0 + 801a474: 75fb strb r3, [r7, #23] + 801a476: e009 b.n 801a48c } else { /* ARP packet directed to us? */ for_us = (u8_t)ip4_addr_cmp(&dipaddr, netif_ip4_addr(netif)); - 801a468: 68ba ldr r2, [r7, #8] - 801a46a: 683b ldr r3, [r7, #0] - 801a46c: 3304 adds r3, #4 - 801a46e: 681b ldr r3, [r3, #0] - 801a470: 429a cmp r2, r3 - 801a472: bf0c ite eq - 801a474: 2301 moveq r3, #1 - 801a476: 2300 movne r3, #0 - 801a478: b2db uxtb r3, r3 - 801a47a: 75fb strb r3, [r7, #23] + 801a478: 68ba ldr r2, [r7, #8] + 801a47a: 683b ldr r3, [r7, #0] + 801a47c: 3304 adds r3, #4 + 801a47e: 681b ldr r3, [r3, #0] + 801a480: 429a cmp r2, r3 + 801a482: bf0c ite eq + 801a484: 2301 moveq r3, #1 + 801a486: 2300 movne r3, #0 + 801a488: b2db uxtb r3, r3 + 801a48a: 75fb strb r3, [r7, #23] /* ARP message directed to us? -> add IP address in ARP cache; assume requester wants to talk to us, can result in directly sending the queued packets for this host. ARP message not directed to us? -> update the source IP address in the cache, if present */ etharp_update_arp_entry(netif, &sipaddr, &(hdr->shwaddr), - 801a47c: 693b ldr r3, [r7, #16] - 801a47e: f103 0208 add.w r2, r3, #8 - 801a482: 7dfb ldrb r3, [r7, #23] - 801a484: 2b00 cmp r3, #0 - 801a486: d001 beq.n 801a48c - 801a488: 2301 movs r3, #1 - 801a48a: e000 b.n 801a48e - 801a48c: 2302 movs r3, #2 - 801a48e: f107 010c add.w r1, r7, #12 - 801a492: 6838 ldr r0, [r7, #0] - 801a494: f7ff fed8 bl 801a248 + 801a48c: 693b ldr r3, [r7, #16] + 801a48e: f103 0208 add.w r2, r3, #8 + 801a492: 7dfb ldrb r3, [r7, #23] + 801a494: 2b00 cmp r3, #0 + 801a496: d001 beq.n 801a49c + 801a498: 2301 movs r3, #1 + 801a49a: e000 b.n 801a49e + 801a49c: 2302 movs r3, #2 + 801a49e: f107 010c add.w r1, r7, #12 + 801a4a2: 6838 ldr r0, [r7, #0] + 801a4a4: f7ff fed8 bl 801a258 for_us ? ETHARP_FLAG_TRY_HARD : ETHARP_FLAG_FIND_ONLY); /* now act on the message itself */ switch (hdr->opcode) { - 801a498: 693b ldr r3, [r7, #16] - 801a49a: 88db ldrh r3, [r3, #6] - 801a49c: b29b uxth r3, r3 - 801a49e: f5b3 7f80 cmp.w r3, #256 ; 0x100 - 801a4a2: d003 beq.n 801a4ac - 801a4a4: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 801a4a8: d01e beq.n 801a4e8 + 801a4a8: 693b ldr r3, [r7, #16] + 801a4aa: 88db ldrh r3, [r3, #6] + 801a4ac: b29b uxth r3, r3 + 801a4ae: f5b3 7f80 cmp.w r3, #256 ; 0x100 + 801a4b2: d003 beq.n 801a4bc + 801a4b4: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 801a4b8: d01e beq.n 801a4f8 #endif /* (LWIP_DHCP && DHCP_DOES_ARP_CHECK) */ break; default: LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_input: ARP unknown opcode type %"S16_F"\n", lwip_htons(hdr->opcode))); ETHARP_STATS_INC(etharp.err); break; - 801a4aa: e025 b.n 801a4f8 + 801a4ba: e025 b.n 801a508 if (for_us) { - 801a4ac: 7dfb ldrb r3, [r7, #23] - 801a4ae: 2b00 cmp r3, #0 - 801a4b0: d021 beq.n 801a4f6 + 801a4bc: 7dfb ldrb r3, [r7, #23] + 801a4be: 2b00 cmp r3, #0 + 801a4c0: d021 beq.n 801a506 (struct eth_addr *)netif->hwaddr, &hdr->shwaddr, - 801a4b2: 683b ldr r3, [r7, #0] - 801a4b4: f103 002a add.w r0, r3, #42 ; 0x2a - 801a4b8: 693b ldr r3, [r7, #16] - 801a4ba: f103 0408 add.w r4, r3, #8 + 801a4c2: 683b ldr r3, [r7, #0] + 801a4c4: f103 002a add.w r0, r3, #42 ; 0x2a + 801a4c8: 693b ldr r3, [r7, #16] + 801a4ca: f103 0408 add.w r4, r3, #8 (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), - 801a4be: 683b ldr r3, [r7, #0] - 801a4c0: f103 052a add.w r5, r3, #42 ; 0x2a - 801a4c4: 683b ldr r3, [r7, #0] - 801a4c6: 3304 adds r3, #4 + 801a4ce: 683b ldr r3, [r7, #0] + 801a4d0: f103 052a add.w r5, r3, #42 ; 0x2a + 801a4d4: 683b ldr r3, [r7, #0] + 801a4d6: 3304 adds r3, #4 &hdr->shwaddr, &sipaddr, - 801a4c8: 693a ldr r2, [r7, #16] - 801a4ca: 3208 adds r2, #8 + 801a4d8: 693a ldr r2, [r7, #16] + 801a4da: 3208 adds r2, #8 etharp_raw(netif, - 801a4cc: 2102 movs r1, #2 - 801a4ce: 9103 str r1, [sp, #12] - 801a4d0: f107 010c add.w r1, r7, #12 - 801a4d4: 9102 str r1, [sp, #8] - 801a4d6: 9201 str r2, [sp, #4] - 801a4d8: 9300 str r3, [sp, #0] - 801a4da: 462b mov r3, r5 - 801a4dc: 4622 mov r2, r4 - 801a4de: 4601 mov r1, r0 - 801a4e0: 6838 ldr r0, [r7, #0] - 801a4e2: f000 faef bl 801aac4 + 801a4dc: 2102 movs r1, #2 + 801a4de: 9103 str r1, [sp, #12] + 801a4e0: f107 010c add.w r1, r7, #12 + 801a4e4: 9102 str r1, [sp, #8] + 801a4e6: 9201 str r2, [sp, #4] + 801a4e8: 9300 str r3, [sp, #0] + 801a4ea: 462b mov r3, r5 + 801a4ec: 4622 mov r2, r4 + 801a4ee: 4601 mov r1, r0 + 801a4f0: 6838 ldr r0, [r7, #0] + 801a4f2: f000 faef bl 801aad4 break; - 801a4e6: e006 b.n 801a4f6 + 801a4f6: e006 b.n 801a506 dhcp_arp_reply(netif, &sipaddr); - 801a4e8: f107 030c add.w r3, r7, #12 - 801a4ec: 4619 mov r1, r3 - 801a4ee: 6838 ldr r0, [r7, #0] - 801a4f0: f7fe f9fe bl 80188f0 + 801a4f8: f107 030c add.w r3, r7, #12 + 801a4fc: 4619 mov r1, r3 + 801a4fe: 6838 ldr r0, [r7, #0] + 801a500: f7fe f9fe bl 8018900 break; - 801a4f4: e000 b.n 801a4f8 + 801a504: e000 b.n 801a508 break; - 801a4f6: bf00 nop + 801a506: bf00 nop } /* free ARP packet */ pbuf_free(p); - 801a4f8: 6878 ldr r0, [r7, #4] - 801a4fa: f7f7 fb75 bl 8011be8 + 801a508: 6878 ldr r0, [r7, #4] + 801a50a: f7f7 fb75 bl 8011bf8 } - 801a4fe: 3718 adds r7, #24 - 801a500: 46bd mov sp, r7 - 801a502: bdb0 pop {r4, r5, r7, pc} - 801a504: 080200c8 .word 0x080200c8 - 801a508: 08020218 .word 0x08020218 - 801a50c: 08020140 .word 0x08020140 + 801a50e: 3718 adds r7, #24 + 801a510: 46bd mov sp, r7 + 801a512: bdb0 pop {r4, r5, r7, pc} + 801a514: 080200d8 .word 0x080200d8 + 801a518: 08020228 .word 0x08020228 + 801a51c: 08020150 .word 0x08020150 -0801a510 : +0801a520 : /** Just a small helper function that sends a pbuf to an ethernet address * in the arp_table specified by the index 'arp_idx'. */ static err_t etharp_output_to_arp_index(struct netif *netif, struct pbuf *q, netif_addr_idx_t arp_idx) { - 801a510: b580 push {r7, lr} - 801a512: b086 sub sp, #24 - 801a514: af02 add r7, sp, #8 - 801a516: 60f8 str r0, [r7, #12] - 801a518: 60b9 str r1, [r7, #8] - 801a51a: 4613 mov r3, r2 - 801a51c: 71fb strb r3, [r7, #7] + 801a520: b580 push {r7, lr} + 801a522: b086 sub sp, #24 + 801a524: af02 add r7, sp, #8 + 801a526: 60f8 str r0, [r7, #12] + 801a528: 60b9 str r1, [r7, #8] + 801a52a: 4613 mov r3, r2 + 801a52c: 71fb strb r3, [r7, #7] LWIP_ASSERT("arp_table[arp_idx].state >= ETHARP_STATE_STABLE", - 801a51e: 79fa ldrb r2, [r7, #7] - 801a520: 4944 ldr r1, [pc, #272] ; (801a634 ) - 801a522: 4613 mov r3, r2 - 801a524: 005b lsls r3, r3, #1 - 801a526: 4413 add r3, r2 - 801a528: 00db lsls r3, r3, #3 - 801a52a: 440b add r3, r1 - 801a52c: 3314 adds r3, #20 - 801a52e: 781b ldrb r3, [r3, #0] - 801a530: 2b01 cmp r3, #1 - 801a532: d806 bhi.n 801a542 - 801a534: 4b40 ldr r3, [pc, #256] ; (801a638 ) - 801a536: f240 22ef movw r2, #751 ; 0x2ef - 801a53a: 4940 ldr r1, [pc, #256] ; (801a63c ) - 801a53c: 4840 ldr r0, [pc, #256] ; (801a640 ) - 801a53e: f002 f883 bl 801c648 + 801a52e: 79fa ldrb r2, [r7, #7] + 801a530: 4944 ldr r1, [pc, #272] ; (801a644 ) + 801a532: 4613 mov r3, r2 + 801a534: 005b lsls r3, r3, #1 + 801a536: 4413 add r3, r2 + 801a538: 00db lsls r3, r3, #3 + 801a53a: 440b add r3, r1 + 801a53c: 3314 adds r3, #20 + 801a53e: 781b ldrb r3, [r3, #0] + 801a540: 2b01 cmp r3, #1 + 801a542: d806 bhi.n 801a552 + 801a544: 4b40 ldr r3, [pc, #256] ; (801a648 ) + 801a546: f240 22ef movw r2, #751 ; 0x2ef + 801a54a: 4940 ldr r1, [pc, #256] ; (801a64c ) + 801a54c: 4840 ldr r0, [pc, #256] ; (801a650 ) + 801a54e: f002 f883 bl 801c658 arp_table[arp_idx].state >= ETHARP_STATE_STABLE); /* if arp table entry is about to expire: re-request it, but only if its state is ETHARP_STATE_STABLE to prevent flooding the network with ARP requests if this address is used frequently. */ if (arp_table[arp_idx].state == ETHARP_STATE_STABLE) { - 801a542: 79fa ldrb r2, [r7, #7] - 801a544: 493b ldr r1, [pc, #236] ; (801a634 ) - 801a546: 4613 mov r3, r2 - 801a548: 005b lsls r3, r3, #1 - 801a54a: 4413 add r3, r2 - 801a54c: 00db lsls r3, r3, #3 - 801a54e: 440b add r3, r1 - 801a550: 3314 adds r3, #20 - 801a552: 781b ldrb r3, [r3, #0] - 801a554: 2b02 cmp r3, #2 - 801a556: d153 bne.n 801a600 + 801a552: 79fa ldrb r2, [r7, #7] + 801a554: 493b ldr r1, [pc, #236] ; (801a644 ) + 801a556: 4613 mov r3, r2 + 801a558: 005b lsls r3, r3, #1 + 801a55a: 4413 add r3, r2 + 801a55c: 00db lsls r3, r3, #3 + 801a55e: 440b add r3, r1 + 801a560: 3314 adds r3, #20 + 801a562: 781b ldrb r3, [r3, #0] + 801a564: 2b02 cmp r3, #2 + 801a566: d153 bne.n 801a610 if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_BROADCAST) { - 801a558: 79fa ldrb r2, [r7, #7] - 801a55a: 4936 ldr r1, [pc, #216] ; (801a634 ) - 801a55c: 4613 mov r3, r2 - 801a55e: 005b lsls r3, r3, #1 - 801a560: 4413 add r3, r2 - 801a562: 00db lsls r3, r3, #3 - 801a564: 440b add r3, r1 - 801a566: 3312 adds r3, #18 - 801a568: 881b ldrh r3, [r3, #0] - 801a56a: f5b3 7f8e cmp.w r3, #284 ; 0x11c - 801a56e: d919 bls.n 801a5a4 + 801a568: 79fa ldrb r2, [r7, #7] + 801a56a: 4936 ldr r1, [pc, #216] ; (801a644 ) + 801a56c: 4613 mov r3, r2 + 801a56e: 005b lsls r3, r3, #1 + 801a570: 4413 add r3, r2 + 801a572: 00db lsls r3, r3, #3 + 801a574: 440b add r3, r1 + 801a576: 3312 adds r3, #18 + 801a578: 881b ldrh r3, [r3, #0] + 801a57a: f5b3 7f8e cmp.w r3, #284 ; 0x11c + 801a57e: d919 bls.n 801a5b4 /* issue a standard request using broadcast */ if (etharp_request(netif, &arp_table[arp_idx].ipaddr) == ERR_OK) { - 801a570: 79fa ldrb r2, [r7, #7] - 801a572: 4613 mov r3, r2 - 801a574: 005b lsls r3, r3, #1 - 801a576: 4413 add r3, r2 - 801a578: 00db lsls r3, r3, #3 - 801a57a: 4a2e ldr r2, [pc, #184] ; (801a634 ) - 801a57c: 4413 add r3, r2 - 801a57e: 3304 adds r3, #4 - 801a580: 4619 mov r1, r3 - 801a582: 68f8 ldr r0, [r7, #12] - 801a584: f000 fb4c bl 801ac20 - 801a588: 4603 mov r3, r0 - 801a58a: 2b00 cmp r3, #0 - 801a58c: d138 bne.n 801a600 + 801a580: 79fa ldrb r2, [r7, #7] + 801a582: 4613 mov r3, r2 + 801a584: 005b lsls r3, r3, #1 + 801a586: 4413 add r3, r2 + 801a588: 00db lsls r3, r3, #3 + 801a58a: 4a2e ldr r2, [pc, #184] ; (801a644 ) + 801a58c: 4413 add r3, r2 + 801a58e: 3304 adds r3, #4 + 801a590: 4619 mov r1, r3 + 801a592: 68f8 ldr r0, [r7, #12] + 801a594: f000 fb4c bl 801ac30 + 801a598: 4603 mov r3, r0 + 801a59a: 2b00 cmp r3, #0 + 801a59c: d138 bne.n 801a610 arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1; - 801a58e: 79fa ldrb r2, [r7, #7] - 801a590: 4928 ldr r1, [pc, #160] ; (801a634 ) - 801a592: 4613 mov r3, r2 - 801a594: 005b lsls r3, r3, #1 - 801a596: 4413 add r3, r2 - 801a598: 00db lsls r3, r3, #3 - 801a59a: 440b add r3, r1 - 801a59c: 3314 adds r3, #20 - 801a59e: 2203 movs r2, #3 - 801a5a0: 701a strb r2, [r3, #0] - 801a5a2: e02d b.n 801a600 + 801a59e: 79fa ldrb r2, [r7, #7] + 801a5a0: 4928 ldr r1, [pc, #160] ; (801a644 ) + 801a5a2: 4613 mov r3, r2 + 801a5a4: 005b lsls r3, r3, #1 + 801a5a6: 4413 add r3, r2 + 801a5a8: 00db lsls r3, r3, #3 + 801a5aa: 440b add r3, r1 + 801a5ac: 3314 adds r3, #20 + 801a5ae: 2203 movs r2, #3 + 801a5b0: 701a strb r2, [r3, #0] + 801a5b2: e02d b.n 801a610 } } else if (arp_table[arp_idx].ctime >= ARP_AGE_REREQUEST_USED_UNICAST) { - 801a5a4: 79fa ldrb r2, [r7, #7] - 801a5a6: 4923 ldr r1, [pc, #140] ; (801a634 ) - 801a5a8: 4613 mov r3, r2 - 801a5aa: 005b lsls r3, r3, #1 - 801a5ac: 4413 add r3, r2 - 801a5ae: 00db lsls r3, r3, #3 - 801a5b0: 440b add r3, r1 - 801a5b2: 3312 adds r3, #18 - 801a5b4: 881b ldrh r3, [r3, #0] - 801a5b6: f5b3 7f87 cmp.w r3, #270 ; 0x10e - 801a5ba: d321 bcc.n 801a600 + 801a5b4: 79fa ldrb r2, [r7, #7] + 801a5b6: 4923 ldr r1, [pc, #140] ; (801a644 ) + 801a5b8: 4613 mov r3, r2 + 801a5ba: 005b lsls r3, r3, #1 + 801a5bc: 4413 add r3, r2 + 801a5be: 00db lsls r3, r3, #3 + 801a5c0: 440b add r3, r1 + 801a5c2: 3312 adds r3, #18 + 801a5c4: 881b ldrh r3, [r3, #0] + 801a5c6: f5b3 7f87 cmp.w r3, #270 ; 0x10e + 801a5ca: d321 bcc.n 801a610 /* issue a unicast request (for 15 seconds) to prevent unnecessary broadcast */ if (etharp_request_dst(netif, &arp_table[arp_idx].ipaddr, &arp_table[arp_idx].ethaddr) == ERR_OK) { - 801a5bc: 79fa ldrb r2, [r7, #7] - 801a5be: 4613 mov r3, r2 - 801a5c0: 005b lsls r3, r3, #1 - 801a5c2: 4413 add r3, r2 - 801a5c4: 00db lsls r3, r3, #3 - 801a5c6: 4a1b ldr r2, [pc, #108] ; (801a634 ) - 801a5c8: 4413 add r3, r2 - 801a5ca: 1d19 adds r1, r3, #4 801a5cc: 79fa ldrb r2, [r7, #7] 801a5ce: 4613 mov r3, r2 801a5d0: 005b lsls r3, r3, #1 801a5d2: 4413 add r3, r2 801a5d4: 00db lsls r3, r3, #3 - 801a5d6: 3308 adds r3, #8 - 801a5d8: 4a16 ldr r2, [pc, #88] ; (801a634 ) - 801a5da: 4413 add r3, r2 - 801a5dc: 3304 adds r3, #4 - 801a5de: 461a mov r2, r3 - 801a5e0: 68f8 ldr r0, [r7, #12] - 801a5e2: f000 fafb bl 801abdc - 801a5e6: 4603 mov r3, r0 - 801a5e8: 2b00 cmp r3, #0 - 801a5ea: d109 bne.n 801a600 + 801a5d6: 4a1b ldr r2, [pc, #108] ; (801a644 ) + 801a5d8: 4413 add r3, r2 + 801a5da: 1d19 adds r1, r3, #4 + 801a5dc: 79fa ldrb r2, [r7, #7] + 801a5de: 4613 mov r3, r2 + 801a5e0: 005b lsls r3, r3, #1 + 801a5e2: 4413 add r3, r2 + 801a5e4: 00db lsls r3, r3, #3 + 801a5e6: 3308 adds r3, #8 + 801a5e8: 4a16 ldr r2, [pc, #88] ; (801a644 ) + 801a5ea: 4413 add r3, r2 + 801a5ec: 3304 adds r3, #4 + 801a5ee: 461a mov r2, r3 + 801a5f0: 68f8 ldr r0, [r7, #12] + 801a5f2: f000 fafb bl 801abec + 801a5f6: 4603 mov r3, r0 + 801a5f8: 2b00 cmp r3, #0 + 801a5fa: d109 bne.n 801a610 arp_table[arp_idx].state = ETHARP_STATE_STABLE_REREQUESTING_1; - 801a5ec: 79fa ldrb r2, [r7, #7] - 801a5ee: 4911 ldr r1, [pc, #68] ; (801a634 ) - 801a5f0: 4613 mov r3, r2 - 801a5f2: 005b lsls r3, r3, #1 - 801a5f4: 4413 add r3, r2 - 801a5f6: 00db lsls r3, r3, #3 - 801a5f8: 440b add r3, r1 - 801a5fa: 3314 adds r3, #20 - 801a5fc: 2203 movs r2, #3 - 801a5fe: 701a strb r2, [r3, #0] + 801a5fc: 79fa ldrb r2, [r7, #7] + 801a5fe: 4911 ldr r1, [pc, #68] ; (801a644 ) + 801a600: 4613 mov r3, r2 + 801a602: 005b lsls r3, r3, #1 + 801a604: 4413 add r3, r2 + 801a606: 00db lsls r3, r3, #3 + 801a608: 440b add r3, r1 + 801a60a: 3314 adds r3, #20 + 801a60c: 2203 movs r2, #3 + 801a60e: 701a strb r2, [r3, #0] } } } return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), &arp_table[arp_idx].ethaddr, ETHTYPE_IP); - 801a600: 68fb ldr r3, [r7, #12] - 801a602: f103 012a add.w r1, r3, #42 ; 0x2a - 801a606: 79fa ldrb r2, [r7, #7] - 801a608: 4613 mov r3, r2 - 801a60a: 005b lsls r3, r3, #1 - 801a60c: 4413 add r3, r2 - 801a60e: 00db lsls r3, r3, #3 - 801a610: 3308 adds r3, #8 - 801a612: 4a08 ldr r2, [pc, #32] ; (801a634 ) - 801a614: 4413 add r3, r2 - 801a616: 1d1a adds r2, r3, #4 - 801a618: f44f 6300 mov.w r3, #2048 ; 0x800 - 801a61c: 9300 str r3, [sp, #0] - 801a61e: 4613 mov r3, r2 - 801a620: 460a mov r2, r1 - 801a622: 68b9 ldr r1, [r7, #8] - 801a624: 68f8 ldr r0, [r7, #12] - 801a626: f001 fe51 bl 801c2cc - 801a62a: 4603 mov r3, r0 -} - 801a62c: 4618 mov r0, r3 - 801a62e: 3710 adds r7, #16 - 801a630: 46bd mov sp, r7 - 801a632: bd80 pop {r7, pc} - 801a634: 2000876c .word 0x2000876c - 801a638: 080200c8 .word 0x080200c8 - 801a63c: 08020238 .word 0x08020238 - 801a640: 08020140 .word 0x08020140 - -0801a644 : + 801a610: 68fb ldr r3, [r7, #12] + 801a612: f103 012a add.w r1, r3, #42 ; 0x2a + 801a616: 79fa ldrb r2, [r7, #7] + 801a618: 4613 mov r3, r2 + 801a61a: 005b lsls r3, r3, #1 + 801a61c: 4413 add r3, r2 + 801a61e: 00db lsls r3, r3, #3 + 801a620: 3308 adds r3, #8 + 801a622: 4a08 ldr r2, [pc, #32] ; (801a644 ) + 801a624: 4413 add r3, r2 + 801a626: 1d1a adds r2, r3, #4 + 801a628: f44f 6300 mov.w r3, #2048 ; 0x800 + 801a62c: 9300 str r3, [sp, #0] + 801a62e: 4613 mov r3, r2 + 801a630: 460a mov r2, r1 + 801a632: 68b9 ldr r1, [r7, #8] + 801a634: 68f8 ldr r0, [r7, #12] + 801a636: f001 fe51 bl 801c2dc + 801a63a: 4603 mov r3, r0 +} + 801a63c: 4618 mov r0, r3 + 801a63e: 3710 adds r7, #16 + 801a640: 46bd mov sp, r7 + 801a642: bd80 pop {r7, pc} + 801a644: 2000876c .word 0x2000876c + 801a648: 080200d8 .word 0x080200d8 + 801a64c: 08020248 .word 0x08020248 + 801a650: 08020150 .word 0x08020150 + +0801a654 : * - ERR_RTE No route to destination (no gateway to external networks), * or the return type of either etharp_query() or ethernet_output(). */ err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr) { - 801a644: b580 push {r7, lr} - 801a646: b08a sub sp, #40 ; 0x28 - 801a648: af02 add r7, sp, #8 - 801a64a: 60f8 str r0, [r7, #12] - 801a64c: 60b9 str r1, [r7, #8] - 801a64e: 607a str r2, [r7, #4] + 801a654: b580 push {r7, lr} + 801a656: b08a sub sp, #40 ; 0x28 + 801a658: af02 add r7, sp, #8 + 801a65a: 60f8 str r0, [r7, #12] + 801a65c: 60b9 str r1, [r7, #8] + 801a65e: 607a str r2, [r7, #4] const struct eth_addr *dest; struct eth_addr mcastaddr; const ip4_addr_t *dst_addr = ipaddr; - 801a650: 687b ldr r3, [r7, #4] - 801a652: 61bb str r3, [r7, #24] + 801a660: 687b ldr r3, [r7, #4] + 801a662: 61bb str r3, [r7, #24] LWIP_ASSERT_CORE_LOCKED(); LWIP_ASSERT("netif != NULL", netif != NULL); - 801a654: 68fb ldr r3, [r7, #12] - 801a656: 2b00 cmp r3, #0 - 801a658: d106 bne.n 801a668 - 801a65a: 4b73 ldr r3, [pc, #460] ; (801a828 ) - 801a65c: f240 321e movw r2, #798 ; 0x31e - 801a660: 4972 ldr r1, [pc, #456] ; (801a82c ) - 801a662: 4873 ldr r0, [pc, #460] ; (801a830 ) - 801a664: f001 fff0 bl 801c648 + 801a664: 68fb ldr r3, [r7, #12] + 801a666: 2b00 cmp r3, #0 + 801a668: d106 bne.n 801a678 + 801a66a: 4b73 ldr r3, [pc, #460] ; (801a838 ) + 801a66c: f240 321e movw r2, #798 ; 0x31e + 801a670: 4972 ldr r1, [pc, #456] ; (801a83c ) + 801a672: 4873 ldr r0, [pc, #460] ; (801a840 ) + 801a674: f001 fff0 bl 801c658 LWIP_ASSERT("q != NULL", q != NULL); - 801a668: 68bb ldr r3, [r7, #8] - 801a66a: 2b00 cmp r3, #0 - 801a66c: d106 bne.n 801a67c - 801a66e: 4b6e ldr r3, [pc, #440] ; (801a828 ) - 801a670: f240 321f movw r2, #799 ; 0x31f - 801a674: 496f ldr r1, [pc, #444] ; (801a834 ) - 801a676: 486e ldr r0, [pc, #440] ; (801a830 ) - 801a678: f001 ffe6 bl 801c648 + 801a678: 68bb ldr r3, [r7, #8] + 801a67a: 2b00 cmp r3, #0 + 801a67c: d106 bne.n 801a68c + 801a67e: 4b6e ldr r3, [pc, #440] ; (801a838 ) + 801a680: f240 321f movw r2, #799 ; 0x31f + 801a684: 496f ldr r1, [pc, #444] ; (801a844 ) + 801a686: 486e ldr r0, [pc, #440] ; (801a840 ) + 801a688: f001 ffe6 bl 801c658 LWIP_ASSERT("ipaddr != NULL", ipaddr != NULL); - 801a67c: 687b ldr r3, [r7, #4] - 801a67e: 2b00 cmp r3, #0 - 801a680: d106 bne.n 801a690 - 801a682: 4b69 ldr r3, [pc, #420] ; (801a828 ) - 801a684: f44f 7248 mov.w r2, #800 ; 0x320 - 801a688: 496b ldr r1, [pc, #428] ; (801a838 ) - 801a68a: 4869 ldr r0, [pc, #420] ; (801a830 ) - 801a68c: f001 ffdc bl 801c648 + 801a68c: 687b ldr r3, [r7, #4] + 801a68e: 2b00 cmp r3, #0 + 801a690: d106 bne.n 801a6a0 + 801a692: 4b69 ldr r3, [pc, #420] ; (801a838 ) + 801a694: f44f 7248 mov.w r2, #800 ; 0x320 + 801a698: 496b ldr r1, [pc, #428] ; (801a848 ) + 801a69a: 4869 ldr r0, [pc, #420] ; (801a840 ) + 801a69c: f001 ffdc bl 801c658 /* Determine on destination hardware address. Broadcasts and multicasts * are special, other IP addresses are looked up in the ARP table. */ /* broadcast destination IP address? */ if (ip4_addr_isbroadcast(ipaddr, netif)) { - 801a690: 687b ldr r3, [r7, #4] - 801a692: 681b ldr r3, [r3, #0] - 801a694: 68f9 ldr r1, [r7, #12] - 801a696: 4618 mov r0, r3 - 801a698: f000 ff14 bl 801b4c4 - 801a69c: 4603 mov r3, r0 - 801a69e: 2b00 cmp r3, #0 - 801a6a0: d002 beq.n 801a6a8 + 801a6a0: 687b ldr r3, [r7, #4] + 801a6a2: 681b ldr r3, [r3, #0] + 801a6a4: 68f9 ldr r1, [r7, #12] + 801a6a6: 4618 mov r0, r3 + 801a6a8: f000 ff14 bl 801b4d4 + 801a6ac: 4603 mov r3, r0 + 801a6ae: 2b00 cmp r3, #0 + 801a6b0: d002 beq.n 801a6b8 /* broadcast on Ethernet also */ dest = (const struct eth_addr *)ðbroadcast; - 801a6a2: 4b66 ldr r3, [pc, #408] ; (801a83c ) - 801a6a4: 61fb str r3, [r7, #28] - 801a6a6: e0af b.n 801a808 + 801a6b2: 4b66 ldr r3, [pc, #408] ; (801a84c ) + 801a6b4: 61fb str r3, [r7, #28] + 801a6b6: e0af b.n 801a818 /* multicast destination IP address? */ } else if (ip4_addr_ismulticast(ipaddr)) { - 801a6a8: 687b ldr r3, [r7, #4] - 801a6aa: 681b ldr r3, [r3, #0] - 801a6ac: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801a6b0: 2be0 cmp r3, #224 ; 0xe0 - 801a6b2: d118 bne.n 801a6e6 + 801a6b8: 687b ldr r3, [r7, #4] + 801a6ba: 681b ldr r3, [r3, #0] + 801a6bc: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 801a6c0: 2be0 cmp r3, #224 ; 0xe0 + 801a6c2: d118 bne.n 801a6f6 /* Hash IP multicast address to MAC address.*/ mcastaddr.addr[0] = LL_IP4_MULTICAST_ADDR_0; - 801a6b4: 2301 movs r3, #1 - 801a6b6: 743b strb r3, [r7, #16] + 801a6c4: 2301 movs r3, #1 + 801a6c6: 743b strb r3, [r7, #16] mcastaddr.addr[1] = LL_IP4_MULTICAST_ADDR_1; - 801a6b8: 2300 movs r3, #0 - 801a6ba: 747b strb r3, [r7, #17] + 801a6c8: 2300 movs r3, #0 + 801a6ca: 747b strb r3, [r7, #17] mcastaddr.addr[2] = LL_IP4_MULTICAST_ADDR_2; - 801a6bc: 235e movs r3, #94 ; 0x5e - 801a6be: 74bb strb r3, [r7, #18] + 801a6cc: 235e movs r3, #94 ; 0x5e + 801a6ce: 74bb strb r3, [r7, #18] mcastaddr.addr[3] = ip4_addr2(ipaddr) & 0x7f; - 801a6c0: 687b ldr r3, [r7, #4] - 801a6c2: 3301 adds r3, #1 - 801a6c4: 781b ldrb r3, [r3, #0] - 801a6c6: f003 037f and.w r3, r3, #127 ; 0x7f - 801a6ca: b2db uxtb r3, r3 - 801a6cc: 74fb strb r3, [r7, #19] + 801a6d0: 687b ldr r3, [r7, #4] + 801a6d2: 3301 adds r3, #1 + 801a6d4: 781b ldrb r3, [r3, #0] + 801a6d6: f003 037f and.w r3, r3, #127 ; 0x7f + 801a6da: b2db uxtb r3, r3 + 801a6dc: 74fb strb r3, [r7, #19] mcastaddr.addr[4] = ip4_addr3(ipaddr); - 801a6ce: 687b ldr r3, [r7, #4] - 801a6d0: 3302 adds r3, #2 - 801a6d2: 781b ldrb r3, [r3, #0] - 801a6d4: 753b strb r3, [r7, #20] + 801a6de: 687b ldr r3, [r7, #4] + 801a6e0: 3302 adds r3, #2 + 801a6e2: 781b ldrb r3, [r3, #0] + 801a6e4: 753b strb r3, [r7, #20] mcastaddr.addr[5] = ip4_addr4(ipaddr); - 801a6d6: 687b ldr r3, [r7, #4] - 801a6d8: 3303 adds r3, #3 - 801a6da: 781b ldrb r3, [r3, #0] - 801a6dc: 757b strb r3, [r7, #21] + 801a6e6: 687b ldr r3, [r7, #4] + 801a6e8: 3303 adds r3, #3 + 801a6ea: 781b ldrb r3, [r3, #0] + 801a6ec: 757b strb r3, [r7, #21] /* destination Ethernet address is multicast */ dest = &mcastaddr; - 801a6de: f107 0310 add.w r3, r7, #16 - 801a6e2: 61fb str r3, [r7, #28] - 801a6e4: e090 b.n 801a808 + 801a6ee: f107 0310 add.w r3, r7, #16 + 801a6f2: 61fb str r3, [r7, #28] + 801a6f4: e090 b.n 801a818 /* unicast destination IP address? */ } else { netif_addr_idx_t i; /* outside local network? if so, this can neither be a global broadcast nor a subnet broadcast. */ if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) && - 801a6e6: 687b ldr r3, [r7, #4] - 801a6e8: 681a ldr r2, [r3, #0] - 801a6ea: 68fb ldr r3, [r7, #12] - 801a6ec: 3304 adds r3, #4 - 801a6ee: 681b ldr r3, [r3, #0] - 801a6f0: 405a eors r2, r3 - 801a6f2: 68fb ldr r3, [r7, #12] - 801a6f4: 3308 adds r3, #8 - 801a6f6: 681b ldr r3, [r3, #0] - 801a6f8: 4013 ands r3, r2 - 801a6fa: 2b00 cmp r3, #0 - 801a6fc: d012 beq.n 801a724 + 801a6f6: 687b ldr r3, [r7, #4] + 801a6f8: 681a ldr r2, [r3, #0] + 801a6fa: 68fb ldr r3, [r7, #12] + 801a6fc: 3304 adds r3, #4 + 801a6fe: 681b ldr r3, [r3, #0] + 801a700: 405a eors r2, r3 + 801a702: 68fb ldr r3, [r7, #12] + 801a704: 3308 adds r3, #8 + 801a706: 681b ldr r3, [r3, #0] + 801a708: 4013 ands r3, r2 + 801a70a: 2b00 cmp r3, #0 + 801a70c: d012 beq.n 801a734 !ip4_addr_islinklocal(ipaddr)) { - 801a6fe: 687b ldr r3, [r7, #4] - 801a700: 681b ldr r3, [r3, #0] - 801a702: b29b uxth r3, r3 + 801a70e: 687b ldr r3, [r7, #4] + 801a710: 681b ldr r3, [r3, #0] + 801a712: b29b uxth r3, r3 if (!ip4_addr_netcmp(ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) && - 801a704: f64f 62a9 movw r2, #65193 ; 0xfea9 - 801a708: 4293 cmp r3, r2 - 801a70a: d00b beq.n 801a724 + 801a714: f64f 62a9 movw r2, #65193 ; 0xfea9 + 801a718: 4293 cmp r3, r2 + 801a71a: d00b beq.n 801a734 dst_addr = LWIP_HOOK_ETHARP_GET_GW(netif, ipaddr); if (dst_addr == NULL) #endif /* LWIP_HOOK_ETHARP_GET_GW */ { /* interface has default gateway? */ if (!ip4_addr_isany_val(*netif_ip4_gw(netif))) { - 801a70c: 68fb ldr r3, [r7, #12] - 801a70e: 330c adds r3, #12 - 801a710: 681b ldr r3, [r3, #0] - 801a712: 2b00 cmp r3, #0 - 801a714: d003 beq.n 801a71e + 801a71c: 68fb ldr r3, [r7, #12] + 801a71e: 330c adds r3, #12 + 801a720: 681b ldr r3, [r3, #0] + 801a722: 2b00 cmp r3, #0 + 801a724: d003 beq.n 801a72e /* send to hardware address of default gateway IP address */ dst_addr = netif_ip4_gw(netif); - 801a716: 68fb ldr r3, [r7, #12] - 801a718: 330c adds r3, #12 - 801a71a: 61bb str r3, [r7, #24] - 801a71c: e002 b.n 801a724 + 801a726: 68fb ldr r3, [r7, #12] + 801a728: 330c adds r3, #12 + 801a72a: 61bb str r3, [r7, #24] + 801a72c: e002 b.n 801a734 /* no default gateway available */ } else { /* no route to destination error (default gateway missing) */ return ERR_RTE; - 801a71e: f06f 0303 mvn.w r3, #3 - 801a722: e07d b.n 801a820 + 801a72e: f06f 0303 mvn.w r3, #3 + 801a732: e07d b.n 801a830 if (netif->hints != NULL) { /* per-pcb cached entry was given */ netif_addr_idx_t etharp_cached_entry = netif->hints->addr_hint; if (etharp_cached_entry < ARP_TABLE_SIZE) { #endif /* LWIP_NETIF_HWADDRHINT */ if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) && - 801a724: 4b46 ldr r3, [pc, #280] ; (801a840 ) - 801a726: 781b ldrb r3, [r3, #0] - 801a728: 4619 mov r1, r3 - 801a72a: 4a46 ldr r2, [pc, #280] ; (801a844 ) - 801a72c: 460b mov r3, r1 - 801a72e: 005b lsls r3, r3, #1 - 801a730: 440b add r3, r1 - 801a732: 00db lsls r3, r3, #3 - 801a734: 4413 add r3, r2 - 801a736: 3314 adds r3, #20 - 801a738: 781b ldrb r3, [r3, #0] - 801a73a: 2b01 cmp r3, #1 - 801a73c: d925 bls.n 801a78a + 801a734: 4b46 ldr r3, [pc, #280] ; (801a850 ) + 801a736: 781b ldrb r3, [r3, #0] + 801a738: 4619 mov r1, r3 + 801a73a: 4a46 ldr r2, [pc, #280] ; (801a854 ) + 801a73c: 460b mov r3, r1 + 801a73e: 005b lsls r3, r3, #1 + 801a740: 440b add r3, r1 + 801a742: 00db lsls r3, r3, #3 + 801a744: 4413 add r3, r2 + 801a746: 3314 adds r3, #20 + 801a748: 781b ldrb r3, [r3, #0] + 801a74a: 2b01 cmp r3, #1 + 801a74c: d925 bls.n 801a79a #if ETHARP_TABLE_MATCH_NETIF (arp_table[etharp_cached_entry].netif == netif) && - 801a73e: 4b40 ldr r3, [pc, #256] ; (801a840 ) - 801a740: 781b ldrb r3, [r3, #0] - 801a742: 4619 mov r1, r3 - 801a744: 4a3f ldr r2, [pc, #252] ; (801a844 ) - 801a746: 460b mov r3, r1 - 801a748: 005b lsls r3, r3, #1 - 801a74a: 440b add r3, r1 - 801a74c: 00db lsls r3, r3, #3 - 801a74e: 4413 add r3, r2 - 801a750: 3308 adds r3, #8 - 801a752: 681b ldr r3, [r3, #0] + 801a74e: 4b40 ldr r3, [pc, #256] ; (801a850 ) + 801a750: 781b ldrb r3, [r3, #0] + 801a752: 4619 mov r1, r3 + 801a754: 4a3f ldr r2, [pc, #252] ; (801a854 ) + 801a756: 460b mov r3, r1 + 801a758: 005b lsls r3, r3, #1 + 801a75a: 440b add r3, r1 + 801a75c: 00db lsls r3, r3, #3 + 801a75e: 4413 add r3, r2 + 801a760: 3308 adds r3, #8 + 801a762: 681b ldr r3, [r3, #0] if ((arp_table[etharp_cached_entry].state >= ETHARP_STATE_STABLE) && - 801a754: 68fa ldr r2, [r7, #12] - 801a756: 429a cmp r2, r3 - 801a758: d117 bne.n 801a78a + 801a764: 68fa ldr r2, [r7, #12] + 801a766: 429a cmp r2, r3 + 801a768: d117 bne.n 801a79a #endif (ip4_addr_cmp(dst_addr, &arp_table[etharp_cached_entry].ipaddr))) { - 801a75a: 69bb ldr r3, [r7, #24] - 801a75c: 681a ldr r2, [r3, #0] - 801a75e: 4b38 ldr r3, [pc, #224] ; (801a840 ) - 801a760: 781b ldrb r3, [r3, #0] - 801a762: 4618 mov r0, r3 - 801a764: 4937 ldr r1, [pc, #220] ; (801a844 ) - 801a766: 4603 mov r3, r0 - 801a768: 005b lsls r3, r3, #1 - 801a76a: 4403 add r3, r0 - 801a76c: 00db lsls r3, r3, #3 - 801a76e: 440b add r3, r1 - 801a770: 3304 adds r3, #4 - 801a772: 681b ldr r3, [r3, #0] + 801a76a: 69bb ldr r3, [r7, #24] + 801a76c: 681a ldr r2, [r3, #0] + 801a76e: 4b38 ldr r3, [pc, #224] ; (801a850 ) + 801a770: 781b ldrb r3, [r3, #0] + 801a772: 4618 mov r0, r3 + 801a774: 4937 ldr r1, [pc, #220] ; (801a854 ) + 801a776: 4603 mov r3, r0 + 801a778: 005b lsls r3, r3, #1 + 801a77a: 4403 add r3, r0 + 801a77c: 00db lsls r3, r3, #3 + 801a77e: 440b add r3, r1 + 801a780: 3304 adds r3, #4 + 801a782: 681b ldr r3, [r3, #0] (arp_table[etharp_cached_entry].netif == netif) && - 801a774: 429a cmp r2, r3 - 801a776: d108 bne.n 801a78a + 801a784: 429a cmp r2, r3 + 801a786: d108 bne.n 801a79a /* the per-pcb-cached entry is stable and the right one! */ ETHARP_STATS_INC(etharp.cachehit); return etharp_output_to_arp_index(netif, q, etharp_cached_entry); - 801a778: 4b31 ldr r3, [pc, #196] ; (801a840 ) - 801a77a: 781b ldrb r3, [r3, #0] - 801a77c: 461a mov r2, r3 - 801a77e: 68b9 ldr r1, [r7, #8] - 801a780: 68f8 ldr r0, [r7, #12] - 801a782: f7ff fec5 bl 801a510 - 801a786: 4603 mov r3, r0 - 801a788: e04a b.n 801a820 + 801a788: 4b31 ldr r3, [pc, #196] ; (801a850 ) + 801a78a: 781b ldrb r3, [r3, #0] + 801a78c: 461a mov r2, r3 + 801a78e: 68b9 ldr r1, [r7, #8] + 801a790: 68f8 ldr r0, [r7, #12] + 801a792: f7ff fec5 bl 801a520 + 801a796: 4603 mov r3, r0 + 801a798: e04a b.n 801a830 } #endif /* LWIP_NETIF_HWADDRHINT */ /* find stable entry: do this here since this is a critical path for throughput and etharp_find_entry() is kind of slow */ for (i = 0; i < ARP_TABLE_SIZE; i++) { - 801a78a: 2300 movs r3, #0 - 801a78c: 75fb strb r3, [r7, #23] - 801a78e: e031 b.n 801a7f4 + 801a79a: 2300 movs r3, #0 + 801a79c: 75fb strb r3, [r7, #23] + 801a79e: e031 b.n 801a804 if ((arp_table[i].state >= ETHARP_STATE_STABLE) && - 801a790: 7dfa ldrb r2, [r7, #23] - 801a792: 492c ldr r1, [pc, #176] ; (801a844 ) - 801a794: 4613 mov r3, r2 - 801a796: 005b lsls r3, r3, #1 - 801a798: 4413 add r3, r2 - 801a79a: 00db lsls r3, r3, #3 - 801a79c: 440b add r3, r1 - 801a79e: 3314 adds r3, #20 - 801a7a0: 781b ldrb r3, [r3, #0] - 801a7a2: 2b01 cmp r3, #1 - 801a7a4: d923 bls.n 801a7ee + 801a7a0: 7dfa ldrb r2, [r7, #23] + 801a7a2: 492c ldr r1, [pc, #176] ; (801a854 ) + 801a7a4: 4613 mov r3, r2 + 801a7a6: 005b lsls r3, r3, #1 + 801a7a8: 4413 add r3, r2 + 801a7aa: 00db lsls r3, r3, #3 + 801a7ac: 440b add r3, r1 + 801a7ae: 3314 adds r3, #20 + 801a7b0: 781b ldrb r3, [r3, #0] + 801a7b2: 2b01 cmp r3, #1 + 801a7b4: d923 bls.n 801a7fe #if ETHARP_TABLE_MATCH_NETIF (arp_table[i].netif == netif) && - 801a7a6: 7dfa ldrb r2, [r7, #23] - 801a7a8: 4926 ldr r1, [pc, #152] ; (801a844 ) - 801a7aa: 4613 mov r3, r2 - 801a7ac: 005b lsls r3, r3, #1 - 801a7ae: 4413 add r3, r2 - 801a7b0: 00db lsls r3, r3, #3 - 801a7b2: 440b add r3, r1 - 801a7b4: 3308 adds r3, #8 - 801a7b6: 681b ldr r3, [r3, #0] + 801a7b6: 7dfa ldrb r2, [r7, #23] + 801a7b8: 4926 ldr r1, [pc, #152] ; (801a854 ) + 801a7ba: 4613 mov r3, r2 + 801a7bc: 005b lsls r3, r3, #1 + 801a7be: 4413 add r3, r2 + 801a7c0: 00db lsls r3, r3, #3 + 801a7c2: 440b add r3, r1 + 801a7c4: 3308 adds r3, #8 + 801a7c6: 681b ldr r3, [r3, #0] if ((arp_table[i].state >= ETHARP_STATE_STABLE) && - 801a7b8: 68fa ldr r2, [r7, #12] - 801a7ba: 429a cmp r2, r3 - 801a7bc: d117 bne.n 801a7ee + 801a7c8: 68fa ldr r2, [r7, #12] + 801a7ca: 429a cmp r2, r3 + 801a7cc: d117 bne.n 801a7fe #endif (ip4_addr_cmp(dst_addr, &arp_table[i].ipaddr))) { - 801a7be: 69bb ldr r3, [r7, #24] - 801a7c0: 6819 ldr r1, [r3, #0] - 801a7c2: 7dfa ldrb r2, [r7, #23] - 801a7c4: 481f ldr r0, [pc, #124] ; (801a844 ) - 801a7c6: 4613 mov r3, r2 - 801a7c8: 005b lsls r3, r3, #1 - 801a7ca: 4413 add r3, r2 - 801a7cc: 00db lsls r3, r3, #3 - 801a7ce: 4403 add r3, r0 - 801a7d0: 3304 adds r3, #4 - 801a7d2: 681b ldr r3, [r3, #0] + 801a7ce: 69bb ldr r3, [r7, #24] + 801a7d0: 6819 ldr r1, [r3, #0] + 801a7d2: 7dfa ldrb r2, [r7, #23] + 801a7d4: 481f ldr r0, [pc, #124] ; (801a854 ) + 801a7d6: 4613 mov r3, r2 + 801a7d8: 005b lsls r3, r3, #1 + 801a7da: 4413 add r3, r2 + 801a7dc: 00db lsls r3, r3, #3 + 801a7de: 4403 add r3, r0 + 801a7e0: 3304 adds r3, #4 + 801a7e2: 681b ldr r3, [r3, #0] (arp_table[i].netif == netif) && - 801a7d4: 4299 cmp r1, r3 - 801a7d6: d10a bne.n 801a7ee + 801a7e4: 4299 cmp r1, r3 + 801a7e6: d10a bne.n 801a7fe /* found an existing, stable entry */ ETHARP_SET_ADDRHINT(netif, i); - 801a7d8: 4a19 ldr r2, [pc, #100] ; (801a840 ) - 801a7da: 7dfb ldrb r3, [r7, #23] - 801a7dc: 7013 strb r3, [r2, #0] + 801a7e8: 4a19 ldr r2, [pc, #100] ; (801a850 ) + 801a7ea: 7dfb ldrb r3, [r7, #23] + 801a7ec: 7013 strb r3, [r2, #0] return etharp_output_to_arp_index(netif, q, i); - 801a7de: 7dfb ldrb r3, [r7, #23] - 801a7e0: 461a mov r2, r3 - 801a7e2: 68b9 ldr r1, [r7, #8] - 801a7e4: 68f8 ldr r0, [r7, #12] - 801a7e6: f7ff fe93 bl 801a510 - 801a7ea: 4603 mov r3, r0 - 801a7ec: e018 b.n 801a820 - for (i = 0; i < ARP_TABLE_SIZE; i++) { 801a7ee: 7dfb ldrb r3, [r7, #23] - 801a7f0: 3301 adds r3, #1 - 801a7f2: 75fb strb r3, [r7, #23] - 801a7f4: 7dfb ldrb r3, [r7, #23] - 801a7f6: 2b09 cmp r3, #9 - 801a7f8: d9ca bls.n 801a790 + 801a7f0: 461a mov r2, r3 + 801a7f2: 68b9 ldr r1, [r7, #8] + 801a7f4: 68f8 ldr r0, [r7, #12] + 801a7f6: f7ff fe93 bl 801a520 + 801a7fa: 4603 mov r3, r0 + 801a7fc: e018 b.n 801a830 + for (i = 0; i < ARP_TABLE_SIZE; i++) { + 801a7fe: 7dfb ldrb r3, [r7, #23] + 801a800: 3301 adds r3, #1 + 801a802: 75fb strb r3, [r7, #23] + 801a804: 7dfb ldrb r3, [r7, #23] + 801a806: 2b09 cmp r3, #9 + 801a808: d9ca bls.n 801a7a0 } } /* no stable entry found, use the (slower) query function: queue on destination Ethernet address belonging to ipaddr */ return etharp_query(netif, dst_addr, q); - 801a7fa: 68ba ldr r2, [r7, #8] - 801a7fc: 69b9 ldr r1, [r7, #24] - 801a7fe: 68f8 ldr r0, [r7, #12] - 801a800: f000 f822 bl 801a848 - 801a804: 4603 mov r3, r0 - 801a806: e00b b.n 801a820 + 801a80a: 68ba ldr r2, [r7, #8] + 801a80c: 69b9 ldr r1, [r7, #24] + 801a80e: 68f8 ldr r0, [r7, #12] + 801a810: f000 f822 bl 801a858 + 801a814: 4603 mov r3, r0 + 801a816: e00b b.n 801a830 } /* continuation for multicast/broadcast destinations */ /* obtain source Ethernet address of the given interface */ /* send packet directly on the link */ return ethernet_output(netif, q, (struct eth_addr *)(netif->hwaddr), dest, ETHTYPE_IP); - 801a808: 68fb ldr r3, [r7, #12] - 801a80a: f103 022a add.w r2, r3, #42 ; 0x2a - 801a80e: f44f 6300 mov.w r3, #2048 ; 0x800 - 801a812: 9300 str r3, [sp, #0] - 801a814: 69fb ldr r3, [r7, #28] - 801a816: 68b9 ldr r1, [r7, #8] - 801a818: 68f8 ldr r0, [r7, #12] - 801a81a: f001 fd57 bl 801c2cc - 801a81e: 4603 mov r3, r0 -} - 801a820: 4618 mov r0, r3 - 801a822: 3720 adds r7, #32 - 801a824: 46bd mov sp, r7 - 801a826: bd80 pop {r7, pc} - 801a828: 080200c8 .word 0x080200c8 - 801a82c: 08020218 .word 0x08020218 - 801a830: 08020140 .word 0x08020140 - 801a834: 08020268 .word 0x08020268 - 801a838: 08020208 .word 0x08020208 - 801a83c: 08022800 .word 0x08022800 - 801a840: 2000885c .word 0x2000885c - 801a844: 2000876c .word 0x2000876c - -0801a848 : + 801a818: 68fb ldr r3, [r7, #12] + 801a81a: f103 022a add.w r2, r3, #42 ; 0x2a + 801a81e: f44f 6300 mov.w r3, #2048 ; 0x800 + 801a822: 9300 str r3, [sp, #0] + 801a824: 69fb ldr r3, [r7, #28] + 801a826: 68b9 ldr r1, [r7, #8] + 801a828: 68f8 ldr r0, [r7, #12] + 801a82a: f001 fd57 bl 801c2dc + 801a82e: 4603 mov r3, r0 +} + 801a830: 4618 mov r0, r3 + 801a832: 3720 adds r7, #32 + 801a834: 46bd mov sp, r7 + 801a836: bd80 pop {r7, pc} + 801a838: 080200d8 .word 0x080200d8 + 801a83c: 08020228 .word 0x08020228 + 801a840: 08020150 .word 0x08020150 + 801a844: 08020278 .word 0x08020278 + 801a848: 08020218 .word 0x08020218 + 801a84c: 08022810 .word 0x08022810 + 801a850: 2000885c .word 0x2000885c + 801a854: 2000876c .word 0x2000876c + +0801a858 : * - ERR_ARG Non-unicast address given, those will not appear in ARP cache. * */ err_t etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q) { - 801a848: b580 push {r7, lr} - 801a84a: b08c sub sp, #48 ; 0x30 - 801a84c: af02 add r7, sp, #8 - 801a84e: 60f8 str r0, [r7, #12] - 801a850: 60b9 str r1, [r7, #8] - 801a852: 607a str r2, [r7, #4] + 801a858: b580 push {r7, lr} + 801a85a: b08c sub sp, #48 ; 0x30 + 801a85c: af02 add r7, sp, #8 + 801a85e: 60f8 str r0, [r7, #12] + 801a860: 60b9 str r1, [r7, #8] + 801a862: 607a str r2, [r7, #4] struct eth_addr *srcaddr = (struct eth_addr *)netif->hwaddr; - 801a854: 68fb ldr r3, [r7, #12] - 801a856: 332a adds r3, #42 ; 0x2a - 801a858: 617b str r3, [r7, #20] + 801a864: 68fb ldr r3, [r7, #12] + 801a866: 332a adds r3, #42 ; 0x2a + 801a868: 617b str r3, [r7, #20] err_t result = ERR_MEM; - 801a85a: 23ff movs r3, #255 ; 0xff - 801a85c: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 801a86a: 23ff movs r3, #255 ; 0xff + 801a86c: f887 3027 strb.w r3, [r7, #39] ; 0x27 int is_new_entry = 0; - 801a860: 2300 movs r3, #0 - 801a862: 623b str r3, [r7, #32] + 801a870: 2300 movs r3, #0 + 801a872: 623b str r3, [r7, #32] s16_t i_err; netif_addr_idx_t i; /* non-unicast address? */ if (ip4_addr_isbroadcast(ipaddr, netif) || - 801a864: 68bb ldr r3, [r7, #8] - 801a866: 681b ldr r3, [r3, #0] - 801a868: 68f9 ldr r1, [r7, #12] - 801a86a: 4618 mov r0, r3 - 801a86c: f000 fe2a bl 801b4c4 - 801a870: 4603 mov r3, r0 - 801a872: 2b00 cmp r3, #0 - 801a874: d10c bne.n 801a890 + 801a874: 68bb ldr r3, [r7, #8] + 801a876: 681b ldr r3, [r3, #0] + 801a878: 68f9 ldr r1, [r7, #12] + 801a87a: 4618 mov r0, r3 + 801a87c: f000 fe2a bl 801b4d4 + 801a880: 4603 mov r3, r0 + 801a882: 2b00 cmp r3, #0 + 801a884: d10c bne.n 801a8a0 ip4_addr_ismulticast(ipaddr) || - 801a876: 68bb ldr r3, [r7, #8] - 801a878: 681b ldr r3, [r3, #0] - 801a87a: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 801a886: 68bb ldr r3, [r7, #8] + 801a888: 681b ldr r3, [r3, #0] + 801a88a: f003 03f0 and.w r3, r3, #240 ; 0xf0 if (ip4_addr_isbroadcast(ipaddr, netif) || - 801a87e: 2be0 cmp r3, #224 ; 0xe0 - 801a880: d006 beq.n 801a890 + 801a88e: 2be0 cmp r3, #224 ; 0xe0 + 801a890: d006 beq.n 801a8a0 ip4_addr_ismulticast(ipaddr) || - 801a882: 68bb ldr r3, [r7, #8] - 801a884: 2b00 cmp r3, #0 - 801a886: d003 beq.n 801a890 + 801a892: 68bb ldr r3, [r7, #8] + 801a894: 2b00 cmp r3, #0 + 801a896: d003 beq.n 801a8a0 ip4_addr_isany(ipaddr)) { - 801a888: 68bb ldr r3, [r7, #8] - 801a88a: 681b ldr r3, [r3, #0] - 801a88c: 2b00 cmp r3, #0 - 801a88e: d102 bne.n 801a896 + 801a898: 68bb ldr r3, [r7, #8] + 801a89a: 681b ldr r3, [r3, #0] + 801a89c: 2b00 cmp r3, #0 + 801a89e: d102 bne.n 801a8a6 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: will not add non-unicast IP address to ARP cache\n")); return ERR_ARG; - 801a890: f06f 030f mvn.w r3, #15 - 801a894: e102 b.n 801aa9c + 801a8a0: f06f 030f mvn.w r3, #15 + 801a8a4: e102 b.n 801aaac } /* find entry in ARP cache, ask to create entry if queueing packet */ i_err = etharp_find_entry(ipaddr, ETHARP_FLAG_TRY_HARD, netif); - 801a896: 68fa ldr r2, [r7, #12] - 801a898: 2101 movs r1, #1 - 801a89a: 68b8 ldr r0, [r7, #8] - 801a89c: f7ff fb5c bl 8019f58 - 801a8a0: 4603 mov r3, r0 - 801a8a2: 827b strh r3, [r7, #18] + 801a8a6: 68fa ldr r2, [r7, #12] + 801a8a8: 2101 movs r1, #1 + 801a8aa: 68b8 ldr r0, [r7, #8] + 801a8ac: f7ff fb5c bl 8019f68 + 801a8b0: 4603 mov r3, r0 + 801a8b2: 827b strh r3, [r7, #18] /* could not find or create entry? */ if (i_err < 0) { - 801a8a4: f9b7 3012 ldrsh.w r3, [r7, #18] - 801a8a8: 2b00 cmp r3, #0 - 801a8aa: da02 bge.n 801a8b2 + 801a8b4: f9b7 3012 ldrsh.w r3, [r7, #18] + 801a8b8: 2b00 cmp r3, #0 + 801a8ba: da02 bge.n 801a8c2 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not create ARP entry\n")); if (q) { LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: packet dropped\n")); ETHARP_STATS_INC(etharp.memerr); } return (err_t)i_err; - 801a8ac: 8a7b ldrh r3, [r7, #18] - 801a8ae: b25b sxtb r3, r3 - 801a8b0: e0f4 b.n 801aa9c + 801a8bc: 8a7b ldrh r3, [r7, #18] + 801a8be: b25b sxtb r3, r3 + 801a8c0: e0f4 b.n 801aaac } LWIP_ASSERT("type overflow", (size_t)i_err < NETIF_ADDR_IDX_MAX); - 801a8b2: 8a7b ldrh r3, [r7, #18] - 801a8b4: 2b7e cmp r3, #126 ; 0x7e - 801a8b6: d906 bls.n 801a8c6 - 801a8b8: 4b7a ldr r3, [pc, #488] ; (801aaa4 ) - 801a8ba: f240 32c1 movw r2, #961 ; 0x3c1 - 801a8be: 497a ldr r1, [pc, #488] ; (801aaa8 ) - 801a8c0: 487a ldr r0, [pc, #488] ; (801aaac ) - 801a8c2: f001 fec1 bl 801c648 + 801a8c2: 8a7b ldrh r3, [r7, #18] + 801a8c4: 2b7e cmp r3, #126 ; 0x7e + 801a8c6: d906 bls.n 801a8d6 + 801a8c8: 4b7a ldr r3, [pc, #488] ; (801aab4 ) + 801a8ca: f240 32c1 movw r2, #961 ; 0x3c1 + 801a8ce: 497a ldr r1, [pc, #488] ; (801aab8 ) + 801a8d0: 487a ldr r0, [pc, #488] ; (801aabc ) + 801a8d2: f001 fec1 bl 801c658 i = (netif_addr_idx_t)i_err; - 801a8c6: 8a7b ldrh r3, [r7, #18] - 801a8c8: 747b strb r3, [r7, #17] + 801a8d6: 8a7b ldrh r3, [r7, #18] + 801a8d8: 747b strb r3, [r7, #17] /* mark a fresh entry as pending (we just sent a request) */ if (arp_table[i].state == ETHARP_STATE_EMPTY) { - 801a8ca: 7c7a ldrb r2, [r7, #17] - 801a8cc: 4978 ldr r1, [pc, #480] ; (801aab0 ) - 801a8ce: 4613 mov r3, r2 - 801a8d0: 005b lsls r3, r3, #1 - 801a8d2: 4413 add r3, r2 - 801a8d4: 00db lsls r3, r3, #3 - 801a8d6: 440b add r3, r1 - 801a8d8: 3314 adds r3, #20 - 801a8da: 781b ldrb r3, [r3, #0] - 801a8dc: 2b00 cmp r3, #0 - 801a8de: d115 bne.n 801a90c + 801a8da: 7c7a ldrb r2, [r7, #17] + 801a8dc: 4978 ldr r1, [pc, #480] ; (801aac0 ) + 801a8de: 4613 mov r3, r2 + 801a8e0: 005b lsls r3, r3, #1 + 801a8e2: 4413 add r3, r2 + 801a8e4: 00db lsls r3, r3, #3 + 801a8e6: 440b add r3, r1 + 801a8e8: 3314 adds r3, #20 + 801a8ea: 781b ldrb r3, [r3, #0] + 801a8ec: 2b00 cmp r3, #0 + 801a8ee: d115 bne.n 801a91c is_new_entry = 1; - 801a8e0: 2301 movs r3, #1 - 801a8e2: 623b str r3, [r7, #32] + 801a8f0: 2301 movs r3, #1 + 801a8f2: 623b str r3, [r7, #32] arp_table[i].state = ETHARP_STATE_PENDING; - 801a8e4: 7c7a ldrb r2, [r7, #17] - 801a8e6: 4972 ldr r1, [pc, #456] ; (801aab0 ) - 801a8e8: 4613 mov r3, r2 - 801a8ea: 005b lsls r3, r3, #1 - 801a8ec: 4413 add r3, r2 - 801a8ee: 00db lsls r3, r3, #3 - 801a8f0: 440b add r3, r1 - 801a8f2: 3314 adds r3, #20 - 801a8f4: 2201 movs r2, #1 - 801a8f6: 701a strb r2, [r3, #0] + 801a8f4: 7c7a ldrb r2, [r7, #17] + 801a8f6: 4972 ldr r1, [pc, #456] ; (801aac0 ) + 801a8f8: 4613 mov r3, r2 + 801a8fa: 005b lsls r3, r3, #1 + 801a8fc: 4413 add r3, r2 + 801a8fe: 00db lsls r3, r3, #3 + 801a900: 440b add r3, r1 + 801a902: 3314 adds r3, #20 + 801a904: 2201 movs r2, #1 + 801a906: 701a strb r2, [r3, #0] /* record network interface for re-sending arp request in etharp_tmr */ arp_table[i].netif = netif; - 801a8f8: 7c7a ldrb r2, [r7, #17] - 801a8fa: 496d ldr r1, [pc, #436] ; (801aab0 ) - 801a8fc: 4613 mov r3, r2 - 801a8fe: 005b lsls r3, r3, #1 - 801a900: 4413 add r3, r2 - 801a902: 00db lsls r3, r3, #3 - 801a904: 440b add r3, r1 - 801a906: 3308 adds r3, #8 - 801a908: 68fa ldr r2, [r7, #12] - 801a90a: 601a str r2, [r3, #0] + 801a908: 7c7a ldrb r2, [r7, #17] + 801a90a: 496d ldr r1, [pc, #436] ; (801aac0 ) + 801a90c: 4613 mov r3, r2 + 801a90e: 005b lsls r3, r3, #1 + 801a910: 4413 add r3, r2 + 801a912: 00db lsls r3, r3, #3 + 801a914: 440b add r3, r1 + 801a916: 3308 adds r3, #8 + 801a918: 68fa ldr r2, [r7, #12] + 801a91a: 601a str r2, [r3, #0] } /* { i is either a STABLE or (new or existing) PENDING entry } */ LWIP_ASSERT("arp_table[i].state == PENDING or STABLE", - 801a90c: 7c7a ldrb r2, [r7, #17] - 801a90e: 4968 ldr r1, [pc, #416] ; (801aab0 ) - 801a910: 4613 mov r3, r2 - 801a912: 005b lsls r3, r3, #1 - 801a914: 4413 add r3, r2 - 801a916: 00db lsls r3, r3, #3 - 801a918: 440b add r3, r1 - 801a91a: 3314 adds r3, #20 - 801a91c: 781b ldrb r3, [r3, #0] - 801a91e: 2b01 cmp r3, #1 - 801a920: d011 beq.n 801a946 - 801a922: 7c7a ldrb r2, [r7, #17] - 801a924: 4962 ldr r1, [pc, #392] ; (801aab0 ) - 801a926: 4613 mov r3, r2 - 801a928: 005b lsls r3, r3, #1 - 801a92a: 4413 add r3, r2 - 801a92c: 00db lsls r3, r3, #3 - 801a92e: 440b add r3, r1 - 801a930: 3314 adds r3, #20 - 801a932: 781b ldrb r3, [r3, #0] - 801a934: 2b01 cmp r3, #1 - 801a936: d806 bhi.n 801a946 - 801a938: 4b5a ldr r3, [pc, #360] ; (801aaa4 ) - 801a93a: f240 32cf movw r2, #975 ; 0x3cf - 801a93e: 495d ldr r1, [pc, #372] ; (801aab4 ) - 801a940: 485a ldr r0, [pc, #360] ; (801aaac ) - 801a942: f001 fe81 bl 801c648 + 801a91c: 7c7a ldrb r2, [r7, #17] + 801a91e: 4968 ldr r1, [pc, #416] ; (801aac0 ) + 801a920: 4613 mov r3, r2 + 801a922: 005b lsls r3, r3, #1 + 801a924: 4413 add r3, r2 + 801a926: 00db lsls r3, r3, #3 + 801a928: 440b add r3, r1 + 801a92a: 3314 adds r3, #20 + 801a92c: 781b ldrb r3, [r3, #0] + 801a92e: 2b01 cmp r3, #1 + 801a930: d011 beq.n 801a956 + 801a932: 7c7a ldrb r2, [r7, #17] + 801a934: 4962 ldr r1, [pc, #392] ; (801aac0 ) + 801a936: 4613 mov r3, r2 + 801a938: 005b lsls r3, r3, #1 + 801a93a: 4413 add r3, r2 + 801a93c: 00db lsls r3, r3, #3 + 801a93e: 440b add r3, r1 + 801a940: 3314 adds r3, #20 + 801a942: 781b ldrb r3, [r3, #0] + 801a944: 2b01 cmp r3, #1 + 801a946: d806 bhi.n 801a956 + 801a948: 4b5a ldr r3, [pc, #360] ; (801aab4 ) + 801a94a: f240 32cf movw r2, #975 ; 0x3cf + 801a94e: 495d ldr r1, [pc, #372] ; (801aac4 ) + 801a950: 485a ldr r0, [pc, #360] ; (801aabc ) + 801a952: f001 fe81 bl 801c658 ((arp_table[i].state == ETHARP_STATE_PENDING) || (arp_table[i].state >= ETHARP_STATE_STABLE))); /* do we have a new entry? or an implicit query request? */ if (is_new_entry || (q == NULL)) { - 801a946: 6a3b ldr r3, [r7, #32] - 801a948: 2b00 cmp r3, #0 - 801a94a: d102 bne.n 801a952 - 801a94c: 687b ldr r3, [r7, #4] - 801a94e: 2b00 cmp r3, #0 - 801a950: d10c bne.n 801a96c + 801a956: 6a3b ldr r3, [r7, #32] + 801a958: 2b00 cmp r3, #0 + 801a95a: d102 bne.n 801a962 + 801a95c: 687b ldr r3, [r7, #4] + 801a95e: 2b00 cmp r3, #0 + 801a960: d10c bne.n 801a97c /* try to resolve it; send out ARP request */ result = etharp_request(netif, ipaddr); - 801a952: 68b9 ldr r1, [r7, #8] - 801a954: 68f8 ldr r0, [r7, #12] - 801a956: f000 f963 bl 801ac20 - 801a95a: 4603 mov r3, r0 - 801a95c: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 801a962: 68b9 ldr r1, [r7, #8] + 801a964: 68f8 ldr r0, [r7, #12] + 801a966: f000 f963 bl 801ac30 + 801a96a: 4603 mov r3, r0 + 801a96c: f887 3027 strb.w r3, [r7, #39] ; 0x27 /* ARP request couldn't be sent */ /* We don't re-send arp request in etharp_tmr, but we still queue packets, since this failure could be temporary, and the next packet calling etharp_query again could lead to sending the queued packets. */ } if (q == NULL) { - 801a960: 687b ldr r3, [r7, #4] - 801a962: 2b00 cmp r3, #0 - 801a964: d102 bne.n 801a96c + 801a970: 687b ldr r3, [r7, #4] + 801a972: 2b00 cmp r3, #0 + 801a974: d102 bne.n 801a97c return result; - 801a966: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 - 801a96a: e097 b.n 801aa9c + 801a976: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 + 801a97a: e097 b.n 801aaac } } /* packet given? */ LWIP_ASSERT("q != NULL", q != NULL); - 801a96c: 687b ldr r3, [r7, #4] - 801a96e: 2b00 cmp r3, #0 - 801a970: d106 bne.n 801a980 - 801a972: 4b4c ldr r3, [pc, #304] ; (801aaa4 ) - 801a974: f240 32e1 movw r2, #993 ; 0x3e1 - 801a978: 494f ldr r1, [pc, #316] ; (801aab8 ) - 801a97a: 484c ldr r0, [pc, #304] ; (801aaac ) - 801a97c: f001 fe64 bl 801c648 + 801a97c: 687b ldr r3, [r7, #4] + 801a97e: 2b00 cmp r3, #0 + 801a980: d106 bne.n 801a990 + 801a982: 4b4c ldr r3, [pc, #304] ; (801aab4 ) + 801a984: f240 32e1 movw r2, #993 ; 0x3e1 + 801a988: 494f ldr r1, [pc, #316] ; (801aac8 ) + 801a98a: 484c ldr r0, [pc, #304] ; (801aabc ) + 801a98c: f001 fe64 bl 801c658 /* stable entry? */ if (arp_table[i].state >= ETHARP_STATE_STABLE) { - 801a980: 7c7a ldrb r2, [r7, #17] - 801a982: 494b ldr r1, [pc, #300] ; (801aab0 ) - 801a984: 4613 mov r3, r2 - 801a986: 005b lsls r3, r3, #1 - 801a988: 4413 add r3, r2 - 801a98a: 00db lsls r3, r3, #3 - 801a98c: 440b add r3, r1 - 801a98e: 3314 adds r3, #20 - 801a990: 781b ldrb r3, [r3, #0] - 801a992: 2b01 cmp r3, #1 - 801a994: d918 bls.n 801a9c8 + 801a990: 7c7a ldrb r2, [r7, #17] + 801a992: 494b ldr r1, [pc, #300] ; (801aac0 ) + 801a994: 4613 mov r3, r2 + 801a996: 005b lsls r3, r3, #1 + 801a998: 4413 add r3, r2 + 801a99a: 00db lsls r3, r3, #3 + 801a99c: 440b add r3, r1 + 801a99e: 3314 adds r3, #20 + 801a9a0: 781b ldrb r3, [r3, #0] + 801a9a2: 2b01 cmp r3, #1 + 801a9a4: d918 bls.n 801a9d8 /* we have a valid IP->Ethernet address mapping */ ETHARP_SET_ADDRHINT(netif, i); - 801a996: 4a49 ldr r2, [pc, #292] ; (801aabc ) - 801a998: 7c7b ldrb r3, [r7, #17] - 801a99a: 7013 strb r3, [r2, #0] + 801a9a6: 4a49 ldr r2, [pc, #292] ; (801aacc ) + 801a9a8: 7c7b ldrb r3, [r7, #17] + 801a9aa: 7013 strb r3, [r2, #0] /* send the packet */ result = ethernet_output(netif, q, srcaddr, &(arp_table[i].ethaddr), ETHTYPE_IP); - 801a99c: 7c7a ldrb r2, [r7, #17] - 801a99e: 4613 mov r3, r2 - 801a9a0: 005b lsls r3, r3, #1 - 801a9a2: 4413 add r3, r2 - 801a9a4: 00db lsls r3, r3, #3 - 801a9a6: 3308 adds r3, #8 - 801a9a8: 4a41 ldr r2, [pc, #260] ; (801aab0 ) - 801a9aa: 4413 add r3, r2 - 801a9ac: 1d1a adds r2, r3, #4 - 801a9ae: f44f 6300 mov.w r3, #2048 ; 0x800 - 801a9b2: 9300 str r3, [sp, #0] - 801a9b4: 4613 mov r3, r2 - 801a9b6: 697a ldr r2, [r7, #20] - 801a9b8: 6879 ldr r1, [r7, #4] - 801a9ba: 68f8 ldr r0, [r7, #12] - 801a9bc: f001 fc86 bl 801c2cc - 801a9c0: 4603 mov r3, r0 - 801a9c2: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 801a9c6: e067 b.n 801aa98 + 801a9ac: 7c7a ldrb r2, [r7, #17] + 801a9ae: 4613 mov r3, r2 + 801a9b0: 005b lsls r3, r3, #1 + 801a9b2: 4413 add r3, r2 + 801a9b4: 00db lsls r3, r3, #3 + 801a9b6: 3308 adds r3, #8 + 801a9b8: 4a41 ldr r2, [pc, #260] ; (801aac0 ) + 801a9ba: 4413 add r3, r2 + 801a9bc: 1d1a adds r2, r3, #4 + 801a9be: f44f 6300 mov.w r3, #2048 ; 0x800 + 801a9c2: 9300 str r3, [sp, #0] + 801a9c4: 4613 mov r3, r2 + 801a9c6: 697a ldr r2, [r7, #20] + 801a9c8: 6879 ldr r1, [r7, #4] + 801a9ca: 68f8 ldr r0, [r7, #12] + 801a9cc: f001 fc86 bl 801c2dc + 801a9d0: 4603 mov r3, r0 + 801a9d2: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 801a9d6: e067 b.n 801aaa8 /* pending entry? (either just created or already pending */ } else if (arp_table[i].state == ETHARP_STATE_PENDING) { - 801a9c8: 7c7a ldrb r2, [r7, #17] - 801a9ca: 4939 ldr r1, [pc, #228] ; (801aab0 ) - 801a9cc: 4613 mov r3, r2 - 801a9ce: 005b lsls r3, r3, #1 - 801a9d0: 4413 add r3, r2 - 801a9d2: 00db lsls r3, r3, #3 - 801a9d4: 440b add r3, r1 - 801a9d6: 3314 adds r3, #20 - 801a9d8: 781b ldrb r3, [r3, #0] - 801a9da: 2b01 cmp r3, #1 - 801a9dc: d15c bne.n 801aa98 + 801a9d8: 7c7a ldrb r2, [r7, #17] + 801a9da: 4939 ldr r1, [pc, #228] ; (801aac0 ) + 801a9dc: 4613 mov r3, r2 + 801a9de: 005b lsls r3, r3, #1 + 801a9e0: 4413 add r3, r2 + 801a9e2: 00db lsls r3, r3, #3 + 801a9e4: 440b add r3, r1 + 801a9e6: 3314 adds r3, #20 + 801a9e8: 781b ldrb r3, [r3, #0] + 801a9ea: 2b01 cmp r3, #1 + 801a9ec: d15c bne.n 801aaa8 /* entry is still pending, queue the given packet 'q' */ struct pbuf *p; int copy_needed = 0; - 801a9de: 2300 movs r3, #0 - 801a9e0: 61bb str r3, [r7, #24] + 801a9ee: 2300 movs r3, #0 + 801a9f0: 61bb str r3, [r7, #24] /* IF q includes a pbuf that must be copied, copy the whole chain into a * new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */ p = q; - 801a9e2: 687b ldr r3, [r7, #4] - 801a9e4: 61fb str r3, [r7, #28] + 801a9f2: 687b ldr r3, [r7, #4] + 801a9f4: 61fb str r3, [r7, #28] while (p) { - 801a9e6: e01c b.n 801aa22 + 801a9f6: e01c b.n 801aa32 LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0)); - 801a9e8: 69fb ldr r3, [r7, #28] - 801a9ea: 895a ldrh r2, [r3, #10] - 801a9ec: 69fb ldr r3, [r7, #28] - 801a9ee: 891b ldrh r3, [r3, #8] - 801a9f0: 429a cmp r2, r3 - 801a9f2: d10a bne.n 801aa0a - 801a9f4: 69fb ldr r3, [r7, #28] - 801a9f6: 681b ldr r3, [r3, #0] - 801a9f8: 2b00 cmp r3, #0 - 801a9fa: d006 beq.n 801aa0a - 801a9fc: 4b29 ldr r3, [pc, #164] ; (801aaa4 ) - 801a9fe: f240 32f1 movw r2, #1009 ; 0x3f1 - 801aa02: 492f ldr r1, [pc, #188] ; (801aac0 ) - 801aa04: 4829 ldr r0, [pc, #164] ; (801aaac ) - 801aa06: f001 fe1f bl 801c648 + 801a9f8: 69fb ldr r3, [r7, #28] + 801a9fa: 895a ldrh r2, [r3, #10] + 801a9fc: 69fb ldr r3, [r7, #28] + 801a9fe: 891b ldrh r3, [r3, #8] + 801aa00: 429a cmp r2, r3 + 801aa02: d10a bne.n 801aa1a + 801aa04: 69fb ldr r3, [r7, #28] + 801aa06: 681b ldr r3, [r3, #0] + 801aa08: 2b00 cmp r3, #0 + 801aa0a: d006 beq.n 801aa1a + 801aa0c: 4b29 ldr r3, [pc, #164] ; (801aab4 ) + 801aa0e: f240 32f1 movw r2, #1009 ; 0x3f1 + 801aa12: 492f ldr r1, [pc, #188] ; (801aad0 ) + 801aa14: 4829 ldr r0, [pc, #164] ; (801aabc ) + 801aa16: f001 fe1f bl 801c658 if (PBUF_NEEDS_COPY(p)) { - 801aa0a: 69fb ldr r3, [r7, #28] - 801aa0c: 7b1b ldrb r3, [r3, #12] - 801aa0e: f003 0340 and.w r3, r3, #64 ; 0x40 - 801aa12: 2b00 cmp r3, #0 - 801aa14: d002 beq.n 801aa1c + 801aa1a: 69fb ldr r3, [r7, #28] + 801aa1c: 7b1b ldrb r3, [r3, #12] + 801aa1e: f003 0340 and.w r3, r3, #64 ; 0x40 + 801aa22: 2b00 cmp r3, #0 + 801aa24: d002 beq.n 801aa2c copy_needed = 1; - 801aa16: 2301 movs r3, #1 - 801aa18: 61bb str r3, [r7, #24] + 801aa26: 2301 movs r3, #1 + 801aa28: 61bb str r3, [r7, #24] break; - 801aa1a: e005 b.n 801aa28 + 801aa2a: e005 b.n 801aa38 } p = p->next; - 801aa1c: 69fb ldr r3, [r7, #28] - 801aa1e: 681b ldr r3, [r3, #0] - 801aa20: 61fb str r3, [r7, #28] + 801aa2c: 69fb ldr r3, [r7, #28] + 801aa2e: 681b ldr r3, [r3, #0] + 801aa30: 61fb str r3, [r7, #28] while (p) { - 801aa22: 69fb ldr r3, [r7, #28] - 801aa24: 2b00 cmp r3, #0 - 801aa26: d1df bne.n 801a9e8 + 801aa32: 69fb ldr r3, [r7, #28] + 801aa34: 2b00 cmp r3, #0 + 801aa36: d1df bne.n 801a9f8 } if (copy_needed) { - 801aa28: 69bb ldr r3, [r7, #24] - 801aa2a: 2b00 cmp r3, #0 - 801aa2c: d007 beq.n 801aa3e + 801aa38: 69bb ldr r3, [r7, #24] + 801aa3a: 2b00 cmp r3, #0 + 801aa3c: d007 beq.n 801aa4e /* copy the whole packet into new pbufs */ p = pbuf_clone(PBUF_LINK, PBUF_RAM, q); - 801aa2e: 687a ldr r2, [r7, #4] - 801aa30: f44f 7120 mov.w r1, #640 ; 0x280 - 801aa34: 200e movs r0, #14 - 801aa36: f7f7 fb4f bl 80120d8 - 801aa3a: 61f8 str r0, [r7, #28] - 801aa3c: e004 b.n 801aa48 + 801aa3e: 687a ldr r2, [r7, #4] + 801aa40: f44f 7120 mov.w r1, #640 ; 0x280 + 801aa44: 200e movs r0, #14 + 801aa46: f7f7 fb4f bl 80120e8 + 801aa4a: 61f8 str r0, [r7, #28] + 801aa4c: e004 b.n 801aa58 } else { /* referencing the old pbuf is enough */ p = q; - 801aa3e: 687b ldr r3, [r7, #4] - 801aa40: 61fb str r3, [r7, #28] + 801aa4e: 687b ldr r3, [r7, #4] + 801aa50: 61fb str r3, [r7, #28] pbuf_ref(p); - 801aa42: 69f8 ldr r0, [r7, #28] - 801aa44: f7f7 f976 bl 8011d34 + 801aa52: 69f8 ldr r0, [r7, #28] + 801aa54: f7f7 f976 bl 8011d44 } /* packet could be taken over? */ if (p != NULL) { - 801aa48: 69fb ldr r3, [r7, #28] - 801aa4a: 2b00 cmp r3, #0 - 801aa4c: d021 beq.n 801aa92 + 801aa58: 69fb ldr r3, [r7, #28] + 801aa5a: 2b00 cmp r3, #0 + 801aa5c: d021 beq.n 801aaa2 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not queue a copy of PBUF_REF packet %p (out of memory)\n", (void *)q)); result = ERR_MEM; } #else /* ARP_QUEUEING */ /* always queue one packet per ARP request only, freeing a previously queued packet */ if (arp_table[i].q != NULL) { - 801aa4e: 7c7a ldrb r2, [r7, #17] - 801aa50: 4917 ldr r1, [pc, #92] ; (801aab0 ) - 801aa52: 4613 mov r3, r2 - 801aa54: 005b lsls r3, r3, #1 - 801aa56: 4413 add r3, r2 - 801aa58: 00db lsls r3, r3, #3 - 801aa5a: 440b add r3, r1 - 801aa5c: 681b ldr r3, [r3, #0] - 801aa5e: 2b00 cmp r3, #0 - 801aa60: d00a beq.n 801aa78 + 801aa5e: 7c7a ldrb r2, [r7, #17] + 801aa60: 4917 ldr r1, [pc, #92] ; (801aac0 ) + 801aa62: 4613 mov r3, r2 + 801aa64: 005b lsls r3, r3, #1 + 801aa66: 4413 add r3, r2 + 801aa68: 00db lsls r3, r3, #3 + 801aa6a: 440b add r3, r1 + 801aa6c: 681b ldr r3, [r3, #0] + 801aa6e: 2b00 cmp r3, #0 + 801aa70: d00a beq.n 801aa88 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: dropped previously queued packet %p for ARP entry %"U16_F"\n", (void *)q, (u16_t)i)); pbuf_free(arp_table[i].q); - 801aa62: 7c7a ldrb r2, [r7, #17] - 801aa64: 4912 ldr r1, [pc, #72] ; (801aab0 ) - 801aa66: 4613 mov r3, r2 - 801aa68: 005b lsls r3, r3, #1 - 801aa6a: 4413 add r3, r2 - 801aa6c: 00db lsls r3, r3, #3 - 801aa6e: 440b add r3, r1 - 801aa70: 681b ldr r3, [r3, #0] - 801aa72: 4618 mov r0, r3 - 801aa74: f7f7 f8b8 bl 8011be8 + 801aa72: 7c7a ldrb r2, [r7, #17] + 801aa74: 4912 ldr r1, [pc, #72] ; (801aac0 ) + 801aa76: 4613 mov r3, r2 + 801aa78: 005b lsls r3, r3, #1 + 801aa7a: 4413 add r3, r2 + 801aa7c: 00db lsls r3, r3, #3 + 801aa7e: 440b add r3, r1 + 801aa80: 681b ldr r3, [r3, #0] + 801aa82: 4618 mov r0, r3 + 801aa84: f7f7 f8b8 bl 8011bf8 } arp_table[i].q = p; - 801aa78: 7c7a ldrb r2, [r7, #17] - 801aa7a: 490d ldr r1, [pc, #52] ; (801aab0 ) - 801aa7c: 4613 mov r3, r2 - 801aa7e: 005b lsls r3, r3, #1 - 801aa80: 4413 add r3, r2 - 801aa82: 00db lsls r3, r3, #3 - 801aa84: 440b add r3, r1 - 801aa86: 69fa ldr r2, [r7, #28] - 801aa88: 601a str r2, [r3, #0] + 801aa88: 7c7a ldrb r2, [r7, #17] + 801aa8a: 490d ldr r1, [pc, #52] ; (801aac0 ) + 801aa8c: 4613 mov r3, r2 + 801aa8e: 005b lsls r3, r3, #1 + 801aa90: 4413 add r3, r2 + 801aa92: 00db lsls r3, r3, #3 + 801aa94: 440b add r3, r1 + 801aa96: 69fa ldr r2, [r7, #28] + 801aa98: 601a str r2, [r3, #0] result = ERR_OK; - 801aa8a: 2300 movs r3, #0 - 801aa8c: f887 3027 strb.w r3, [r7, #39] ; 0x27 - 801aa90: e002 b.n 801aa98 + 801aa9a: 2300 movs r3, #0 + 801aa9c: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 801aaa0: e002 b.n 801aaa8 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: queued packet %p on ARP entry %"U16_F"\n", (void *)q, (u16_t)i)); #endif /* ARP_QUEUEING */ } else { ETHARP_STATS_INC(etharp.memerr); LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_query: could not queue a copy of PBUF_REF packet %p (out of memory)\n", (void *)q)); result = ERR_MEM; - 801aa92: 23ff movs r3, #255 ; 0xff - 801aa94: f887 3027 strb.w r3, [r7, #39] ; 0x27 + 801aaa2: 23ff movs r3, #255 ; 0xff + 801aaa4: f887 3027 strb.w r3, [r7, #39] ; 0x27 } } return result; - 801aa98: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 -} - 801aa9c: 4618 mov r0, r3 - 801aa9e: 3728 adds r7, #40 ; 0x28 - 801aaa0: 46bd mov sp, r7 - 801aaa2: bd80 pop {r7, pc} - 801aaa4: 080200c8 .word 0x080200c8 - 801aaa8: 08020274 .word 0x08020274 - 801aaac: 08020140 .word 0x08020140 - 801aab0: 2000876c .word 0x2000876c - 801aab4: 08020284 .word 0x08020284 - 801aab8: 08020268 .word 0x08020268 - 801aabc: 2000885c .word 0x2000885c - 801aac0: 080202ac .word 0x080202ac - -0801aac4 : + 801aaa8: f997 3027 ldrsb.w r3, [r7, #39] ; 0x27 +} + 801aaac: 4618 mov r0, r3 + 801aaae: 3728 adds r7, #40 ; 0x28 + 801aab0: 46bd mov sp, r7 + 801aab2: bd80 pop {r7, pc} + 801aab4: 080200d8 .word 0x080200d8 + 801aab8: 08020284 .word 0x08020284 + 801aabc: 08020150 .word 0x08020150 + 801aac0: 2000876c .word 0x2000876c + 801aac4: 08020294 .word 0x08020294 + 801aac8: 08020278 .word 0x08020278 + 801aacc: 2000885c .word 0x2000885c + 801aad0: 080202bc .word 0x080202bc + +0801aad4 : etharp_raw(struct netif *netif, const struct eth_addr *ethsrc_addr, const struct eth_addr *ethdst_addr, const struct eth_addr *hwsrc_addr, const ip4_addr_t *ipsrc_addr, const struct eth_addr *hwdst_addr, const ip4_addr_t *ipdst_addr, const u16_t opcode) { - 801aac4: b580 push {r7, lr} - 801aac6: b08a sub sp, #40 ; 0x28 - 801aac8: af02 add r7, sp, #8 - 801aaca: 60f8 str r0, [r7, #12] - 801aacc: 60b9 str r1, [r7, #8] - 801aace: 607a str r2, [r7, #4] - 801aad0: 603b str r3, [r7, #0] + 801aad4: b580 push {r7, lr} + 801aad6: b08a sub sp, #40 ; 0x28 + 801aad8: af02 add r7, sp, #8 + 801aada: 60f8 str r0, [r7, #12] + 801aadc: 60b9 str r1, [r7, #8] + 801aade: 607a str r2, [r7, #4] + 801aae0: 603b str r3, [r7, #0] struct pbuf *p; err_t result = ERR_OK; - 801aad2: 2300 movs r3, #0 - 801aad4: 77fb strb r3, [r7, #31] + 801aae2: 2300 movs r3, #0 + 801aae4: 77fb strb r3, [r7, #31] struct etharp_hdr *hdr; LWIP_ASSERT("netif != NULL", netif != NULL); - 801aad6: 68fb ldr r3, [r7, #12] - 801aad8: 2b00 cmp r3, #0 - 801aada: d106 bne.n 801aaea - 801aadc: 4b3a ldr r3, [pc, #232] ; (801abc8 ) - 801aade: f240 4257 movw r2, #1111 ; 0x457 - 801aae2: 493a ldr r1, [pc, #232] ; (801abcc ) - 801aae4: 483a ldr r0, [pc, #232] ; (801abd0 ) - 801aae6: f001 fdaf bl 801c648 + 801aae6: 68fb ldr r3, [r7, #12] + 801aae8: 2b00 cmp r3, #0 + 801aaea: d106 bne.n 801aafa + 801aaec: 4b3a ldr r3, [pc, #232] ; (801abd8 ) + 801aaee: f240 4257 movw r2, #1111 ; 0x457 + 801aaf2: 493a ldr r1, [pc, #232] ; (801abdc ) + 801aaf4: 483a ldr r0, [pc, #232] ; (801abe0 ) + 801aaf6: f001 fdaf bl 801c658 /* allocate a pbuf for the outgoing ARP request packet */ p = pbuf_alloc(PBUF_LINK, SIZEOF_ETHARP_HDR, PBUF_RAM); - 801aaea: f44f 7220 mov.w r2, #640 ; 0x280 - 801aaee: 211c movs r1, #28 - 801aaf0: 200e movs r0, #14 - 801aaf2: f7f6 fd99 bl 8011628 - 801aaf6: 61b8 str r0, [r7, #24] + 801aafa: f44f 7220 mov.w r2, #640 ; 0x280 + 801aafe: 211c movs r1, #28 + 801ab00: 200e movs r0, #14 + 801ab02: f7f6 fd99 bl 8011638 + 801ab06: 61b8 str r0, [r7, #24] /* could allocate a pbuf for an ARP request? */ if (p == NULL) { - 801aaf8: 69bb ldr r3, [r7, #24] - 801aafa: 2b00 cmp r3, #0 - 801aafc: d102 bne.n 801ab04 + 801ab08: 69bb ldr r3, [r7, #24] + 801ab0a: 2b00 cmp r3, #0 + 801ab0c: d102 bne.n 801ab14 LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("etharp_raw: could not allocate pbuf for ARP request.\n")); ETHARP_STATS_INC(etharp.memerr); return ERR_MEM; - 801aafe: f04f 33ff mov.w r3, #4294967295 - 801ab02: e05d b.n 801abc0 + 801ab0e: f04f 33ff mov.w r3, #4294967295 + 801ab12: e05d b.n 801abd0 } LWIP_ASSERT("check that first pbuf can hold struct etharp_hdr", - 801ab04: 69bb ldr r3, [r7, #24] - 801ab06: 895b ldrh r3, [r3, #10] - 801ab08: 2b1b cmp r3, #27 - 801ab0a: d806 bhi.n 801ab1a - 801ab0c: 4b2e ldr r3, [pc, #184] ; (801abc8 ) - 801ab0e: f240 4263 movw r2, #1123 ; 0x463 - 801ab12: 4930 ldr r1, [pc, #192] ; (801abd4 ) - 801ab14: 482e ldr r0, [pc, #184] ; (801abd0 ) - 801ab16: f001 fd97 bl 801c648 + 801ab14: 69bb ldr r3, [r7, #24] + 801ab16: 895b ldrh r3, [r3, #10] + 801ab18: 2b1b cmp r3, #27 + 801ab1a: d806 bhi.n 801ab2a + 801ab1c: 4b2e ldr r3, [pc, #184] ; (801abd8 ) + 801ab1e: f240 4263 movw r2, #1123 ; 0x463 + 801ab22: 4930 ldr r1, [pc, #192] ; (801abe4 ) + 801ab24: 482e ldr r0, [pc, #184] ; (801abe0 ) + 801ab26: f001 fd97 bl 801c658 (p->len >= SIZEOF_ETHARP_HDR)); hdr = (struct etharp_hdr *)p->payload; - 801ab1a: 69bb ldr r3, [r7, #24] - 801ab1c: 685b ldr r3, [r3, #4] - 801ab1e: 617b str r3, [r7, #20] + 801ab2a: 69bb ldr r3, [r7, #24] + 801ab2c: 685b ldr r3, [r3, #4] + 801ab2e: 617b str r3, [r7, #20] LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_raw: sending raw ARP packet.\n")); hdr->opcode = lwip_htons(opcode); - 801ab20: 8ebb ldrh r3, [r7, #52] ; 0x34 - 801ab22: 4618 mov r0, r3 - 801ab24: f7f5 fcac bl 8010480 - 801ab28: 4603 mov r3, r0 - 801ab2a: 461a mov r2, r3 - 801ab2c: 697b ldr r3, [r7, #20] - 801ab2e: 80da strh r2, [r3, #6] + 801ab30: 8ebb ldrh r3, [r7, #52] ; 0x34 + 801ab32: 4618 mov r0, r3 + 801ab34: f7f5 fcac bl 8010490 + 801ab38: 4603 mov r3, r0 + 801ab3a: 461a mov r2, r3 + 801ab3c: 697b ldr r3, [r7, #20] + 801ab3e: 80da strh r2, [r3, #6] LWIP_ASSERT("netif->hwaddr_len must be the same as ETH_HWADDR_LEN for etharp!", - 801ab30: 68fb ldr r3, [r7, #12] - 801ab32: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 801ab36: 2b06 cmp r3, #6 - 801ab38: d006 beq.n 801ab48 - 801ab3a: 4b23 ldr r3, [pc, #140] ; (801abc8 ) - 801ab3c: f240 426a movw r2, #1130 ; 0x46a - 801ab40: 4925 ldr r1, [pc, #148] ; (801abd8 ) - 801ab42: 4823 ldr r0, [pc, #140] ; (801abd0 ) - 801ab44: f001 fd80 bl 801c648 + 801ab40: 68fb ldr r3, [r7, #12] + 801ab42: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 801ab46: 2b06 cmp r3, #6 + 801ab48: d006 beq.n 801ab58 + 801ab4a: 4b23 ldr r3, [pc, #140] ; (801abd8 ) + 801ab4c: f240 426a movw r2, #1130 ; 0x46a + 801ab50: 4925 ldr r1, [pc, #148] ; (801abe8 ) + 801ab52: 4823 ldr r0, [pc, #140] ; (801abe0 ) + 801ab54: f001 fd80 bl 801c658 (netif->hwaddr_len == ETH_HWADDR_LEN)); /* Write the ARP MAC-Addresses */ SMEMCPY(&hdr->shwaddr, hwsrc_addr, ETH_HWADDR_LEN); - 801ab48: 697b ldr r3, [r7, #20] - 801ab4a: 3308 adds r3, #8 - 801ab4c: 2206 movs r2, #6 - 801ab4e: 6839 ldr r1, [r7, #0] - 801ab50: 4618 mov r0, r3 - 801ab52: f001 fd4c bl 801c5ee + 801ab58: 697b ldr r3, [r7, #20] + 801ab5a: 3308 adds r3, #8 + 801ab5c: 2206 movs r2, #6 + 801ab5e: 6839 ldr r1, [r7, #0] + 801ab60: 4618 mov r0, r3 + 801ab62: f001 fd4c bl 801c5fe SMEMCPY(&hdr->dhwaddr, hwdst_addr, ETH_HWADDR_LEN); - 801ab56: 697b ldr r3, [r7, #20] - 801ab58: 3312 adds r3, #18 - 801ab5a: 2206 movs r2, #6 - 801ab5c: 6af9 ldr r1, [r7, #44] ; 0x2c - 801ab5e: 4618 mov r0, r3 - 801ab60: f001 fd45 bl 801c5ee + 801ab66: 697b ldr r3, [r7, #20] + 801ab68: 3312 adds r3, #18 + 801ab6a: 2206 movs r2, #6 + 801ab6c: 6af9 ldr r1, [r7, #44] ; 0x2c + 801ab6e: 4618 mov r0, r3 + 801ab70: f001 fd45 bl 801c5fe /* Copy struct ip4_addr_wordaligned to aligned ip4_addr, to support compilers without * structure packing. */ IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->sipaddr, ipsrc_addr); - 801ab64: 697b ldr r3, [r7, #20] - 801ab66: 330e adds r3, #14 - 801ab68: 6aba ldr r2, [r7, #40] ; 0x28 - 801ab6a: 6812 ldr r2, [r2, #0] - 801ab6c: 601a str r2, [r3, #0] + 801ab74: 697b ldr r3, [r7, #20] + 801ab76: 330e adds r3, #14 + 801ab78: 6aba ldr r2, [r7, #40] ; 0x28 + 801ab7a: 6812 ldr r2, [r2, #0] + 801ab7c: 601a str r2, [r3, #0] IPADDR_WORDALIGNED_COPY_FROM_IP4_ADDR_T(&hdr->dipaddr, ipdst_addr); - 801ab6e: 697b ldr r3, [r7, #20] - 801ab70: 3318 adds r3, #24 - 801ab72: 6b3a ldr r2, [r7, #48] ; 0x30 - 801ab74: 6812 ldr r2, [r2, #0] - 801ab76: 601a str r2, [r3, #0] + 801ab7e: 697b ldr r3, [r7, #20] + 801ab80: 3318 adds r3, #24 + 801ab82: 6b3a ldr r2, [r7, #48] ; 0x30 + 801ab84: 6812 ldr r2, [r2, #0] + 801ab86: 601a str r2, [r3, #0] hdr->hwtype = PP_HTONS(LWIP_IANA_HWTYPE_ETHERNET); - 801ab78: 697b ldr r3, [r7, #20] - 801ab7a: 2200 movs r2, #0 - 801ab7c: 701a strb r2, [r3, #0] - 801ab7e: 2200 movs r2, #0 - 801ab80: f042 0201 orr.w r2, r2, #1 - 801ab84: 705a strb r2, [r3, #1] + 801ab88: 697b ldr r3, [r7, #20] + 801ab8a: 2200 movs r2, #0 + 801ab8c: 701a strb r2, [r3, #0] + 801ab8e: 2200 movs r2, #0 + 801ab90: f042 0201 orr.w r2, r2, #1 + 801ab94: 705a strb r2, [r3, #1] hdr->proto = PP_HTONS(ETHTYPE_IP); - 801ab86: 697b ldr r3, [r7, #20] - 801ab88: 2200 movs r2, #0 - 801ab8a: f042 0208 orr.w r2, r2, #8 - 801ab8e: 709a strb r2, [r3, #2] - 801ab90: 2200 movs r2, #0 - 801ab92: 70da strb r2, [r3, #3] + 801ab96: 697b ldr r3, [r7, #20] + 801ab98: 2200 movs r2, #0 + 801ab9a: f042 0208 orr.w r2, r2, #8 + 801ab9e: 709a strb r2, [r3, #2] + 801aba0: 2200 movs r2, #0 + 801aba2: 70da strb r2, [r3, #3] /* set hwlen and protolen */ hdr->hwlen = ETH_HWADDR_LEN; - 801ab94: 697b ldr r3, [r7, #20] - 801ab96: 2206 movs r2, #6 - 801ab98: 711a strb r2, [r3, #4] + 801aba4: 697b ldr r3, [r7, #20] + 801aba6: 2206 movs r2, #6 + 801aba8: 711a strb r2, [r3, #4] hdr->protolen = sizeof(ip4_addr_t); - 801ab9a: 697b ldr r3, [r7, #20] - 801ab9c: 2204 movs r2, #4 - 801ab9e: 715a strb r2, [r3, #5] + 801abaa: 697b ldr r3, [r7, #20] + 801abac: 2204 movs r2, #4 + 801abae: 715a strb r2, [r3, #5] if (ip4_addr_islinklocal(ipsrc_addr)) { ethernet_output(netif, p, ethsrc_addr, ðbroadcast, ETHTYPE_ARP); } else #endif /* LWIP_AUTOIP */ { ethernet_output(netif, p, ethsrc_addr, ethdst_addr, ETHTYPE_ARP); - 801aba0: f640 0306 movw r3, #2054 ; 0x806 - 801aba4: 9300 str r3, [sp, #0] - 801aba6: 687b ldr r3, [r7, #4] - 801aba8: 68ba ldr r2, [r7, #8] - 801abaa: 69b9 ldr r1, [r7, #24] - 801abac: 68f8 ldr r0, [r7, #12] - 801abae: f001 fb8d bl 801c2cc + 801abb0: f640 0306 movw r3, #2054 ; 0x806 + 801abb4: 9300 str r3, [sp, #0] + 801abb6: 687b ldr r3, [r7, #4] + 801abb8: 68ba ldr r2, [r7, #8] + 801abba: 69b9 ldr r1, [r7, #24] + 801abbc: 68f8 ldr r0, [r7, #12] + 801abbe: f001 fb8d bl 801c2dc } ETHARP_STATS_INC(etharp.xmit); /* free ARP query packet */ pbuf_free(p); - 801abb2: 69b8 ldr r0, [r7, #24] - 801abb4: f7f7 f818 bl 8011be8 + 801abc2: 69b8 ldr r0, [r7, #24] + 801abc4: f7f7 f818 bl 8011bf8 p = NULL; - 801abb8: 2300 movs r3, #0 - 801abba: 61bb str r3, [r7, #24] + 801abc8: 2300 movs r3, #0 + 801abca: 61bb str r3, [r7, #24] /* could not allocate pbuf for ARP request */ return result; - 801abbc: f997 301f ldrsb.w r3, [r7, #31] -} - 801abc0: 4618 mov r0, r3 - 801abc2: 3720 adds r7, #32 - 801abc4: 46bd mov sp, r7 - 801abc6: bd80 pop {r7, pc} - 801abc8: 080200c8 .word 0x080200c8 - 801abcc: 08020218 .word 0x08020218 - 801abd0: 08020140 .word 0x08020140 - 801abd4: 080202c8 .word 0x080202c8 - 801abd8: 080202fc .word 0x080202fc - -0801abdc : + 801abcc: f997 301f ldrsb.w r3, [r7, #31] +} + 801abd0: 4618 mov r0, r3 + 801abd2: 3720 adds r7, #32 + 801abd4: 46bd mov sp, r7 + 801abd6: bd80 pop {r7, pc} + 801abd8: 080200d8 .word 0x080200d8 + 801abdc: 08020228 .word 0x08020228 + 801abe0: 08020150 .word 0x08020150 + 801abe4: 080202d8 .word 0x080202d8 + 801abe8: 0802030c .word 0x0802030c + +0801abec : * ERR_MEM if the ARP packet couldn't be allocated * any other err_t on failure */ static err_t etharp_request_dst(struct netif *netif, const ip4_addr_t *ipaddr, const struct eth_addr *hw_dst_addr) { - 801abdc: b580 push {r7, lr} - 801abde: b088 sub sp, #32 - 801abe0: af04 add r7, sp, #16 - 801abe2: 60f8 str r0, [r7, #12] - 801abe4: 60b9 str r1, [r7, #8] - 801abe6: 607a str r2, [r7, #4] + 801abec: b580 push {r7, lr} + 801abee: b088 sub sp, #32 + 801abf0: af04 add r7, sp, #16 + 801abf2: 60f8 str r0, [r7, #12] + 801abf4: 60b9 str r1, [r7, #8] + 801abf6: 607a str r2, [r7, #4] return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, - 801abe8: 68fb ldr r3, [r7, #12] - 801abea: f103 012a add.w r1, r3, #42 ; 0x2a + 801abf8: 68fb ldr r3, [r7, #12] + 801abfa: f103 012a add.w r1, r3, #42 ; 0x2a (struct eth_addr *)netif->hwaddr, netif_ip4_addr(netif), ðzero, - 801abee: 68fb ldr r3, [r7, #12] - 801abf0: f103 002a add.w r0, r3, #42 ; 0x2a - 801abf4: 68fb ldr r3, [r7, #12] - 801abf6: 3304 adds r3, #4 + 801abfe: 68fb ldr r3, [r7, #12] + 801ac00: f103 002a add.w r0, r3, #42 ; 0x2a + 801ac04: 68fb ldr r3, [r7, #12] + 801ac06: 3304 adds r3, #4 return etharp_raw(netif, (struct eth_addr *)netif->hwaddr, hw_dst_addr, - 801abf8: 2201 movs r2, #1 - 801abfa: 9203 str r2, [sp, #12] - 801abfc: 68ba ldr r2, [r7, #8] - 801abfe: 9202 str r2, [sp, #8] - 801ac00: 4a06 ldr r2, [pc, #24] ; (801ac1c ) - 801ac02: 9201 str r2, [sp, #4] - 801ac04: 9300 str r3, [sp, #0] - 801ac06: 4603 mov r3, r0 - 801ac08: 687a ldr r2, [r7, #4] - 801ac0a: 68f8 ldr r0, [r7, #12] - 801ac0c: f7ff ff5a bl 801aac4 - 801ac10: 4603 mov r3, r0 + 801ac08: 2201 movs r2, #1 + 801ac0a: 9203 str r2, [sp, #12] + 801ac0c: 68ba ldr r2, [r7, #8] + 801ac0e: 9202 str r2, [sp, #8] + 801ac10: 4a06 ldr r2, [pc, #24] ; (801ac2c ) + 801ac12: 9201 str r2, [sp, #4] + 801ac14: 9300 str r3, [sp, #0] + 801ac16: 4603 mov r3, r0 + 801ac18: 687a ldr r2, [r7, #4] + 801ac1a: 68f8 ldr r0, [r7, #12] + 801ac1c: f7ff ff5a bl 801aad4 + 801ac20: 4603 mov r3, r0 ipaddr, ARP_REQUEST); } - 801ac12: 4618 mov r0, r3 - 801ac14: 3710 adds r7, #16 - 801ac16: 46bd mov sp, r7 - 801ac18: bd80 pop {r7, pc} - 801ac1a: bf00 nop - 801ac1c: 08022808 .word 0x08022808 + 801ac22: 4618 mov r0, r3 + 801ac24: 3710 adds r7, #16 + 801ac26: 46bd mov sp, r7 + 801ac28: bd80 pop {r7, pc} + 801ac2a: bf00 nop + 801ac2c: 08022818 .word 0x08022818 -0801ac20 : +0801ac30 : * ERR_MEM if the ARP packet couldn't be allocated * any other err_t on failure */ err_t etharp_request(struct netif *netif, const ip4_addr_t *ipaddr) { - 801ac20: b580 push {r7, lr} - 801ac22: b082 sub sp, #8 - 801ac24: af00 add r7, sp, #0 - 801ac26: 6078 str r0, [r7, #4] - 801ac28: 6039 str r1, [r7, #0] + 801ac30: b580 push {r7, lr} + 801ac32: b082 sub sp, #8 + 801ac34: af00 add r7, sp, #0 + 801ac36: 6078 str r0, [r7, #4] + 801ac38: 6039 str r1, [r7, #0] LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("etharp_request: sending ARP request.\n")); return etharp_request_dst(netif, ipaddr, ðbroadcast); - 801ac2a: 4a05 ldr r2, [pc, #20] ; (801ac40 ) - 801ac2c: 6839 ldr r1, [r7, #0] - 801ac2e: 6878 ldr r0, [r7, #4] - 801ac30: f7ff ffd4 bl 801abdc - 801ac34: 4603 mov r3, r0 -} - 801ac36: 4618 mov r0, r3 - 801ac38: 3708 adds r7, #8 - 801ac3a: 46bd mov sp, r7 - 801ac3c: bd80 pop {r7, pc} - 801ac3e: bf00 nop - 801ac40: 08022800 .word 0x08022800 - -0801ac44 : + 801ac3a: 4a05 ldr r2, [pc, #20] ; (801ac50 ) + 801ac3c: 6839 ldr r1, [r7, #0] + 801ac3e: 6878 ldr r0, [r7, #4] + 801ac40: f7ff ffd4 bl 801abec + 801ac44: 4603 mov r3, r0 +} + 801ac46: 4618 mov r0, r3 + 801ac48: 3708 adds r7, #8 + 801ac4a: 46bd mov sp, r7 + 801ac4c: bd80 pop {r7, pc} + 801ac4e: bf00 nop + 801ac50: 08022810 .word 0x08022810 + +0801ac54 : * @param p the icmp echo request packet, p->payload pointing to the icmp header * @param inp the netif on which this packet was received */ void icmp_input(struct pbuf *p, struct netif *inp) { - 801ac44: b580 push {r7, lr} - 801ac46: b08e sub sp, #56 ; 0x38 - 801ac48: af04 add r7, sp, #16 - 801ac4a: 6078 str r0, [r7, #4] - 801ac4c: 6039 str r1, [r7, #0] + 801ac54: b580 push {r7, lr} + 801ac56: b08e sub sp, #56 ; 0x38 + 801ac58: af04 add r7, sp, #16 + 801ac5a: 6078 str r0, [r7, #4] + 801ac5c: 6039 str r1, [r7, #0] const ip4_addr_t *src; ICMP_STATS_INC(icmp.recv); MIB2_STATS_INC(mib2.icmpinmsgs); iphdr_in = ip4_current_header(); - 801ac4e: 4b79 ldr r3, [pc, #484] ; (801ae34 ) - 801ac50: 689b ldr r3, [r3, #8] - 801ac52: 627b str r3, [r7, #36] ; 0x24 + 801ac5e: 4b79 ldr r3, [pc, #484] ; (801ae44 ) + 801ac60: 689b ldr r3, [r3, #8] + 801ac62: 627b str r3, [r7, #36] ; 0x24 hlen = IPH_HL_BYTES(iphdr_in); - 801ac54: 6a7b ldr r3, [r7, #36] ; 0x24 - 801ac56: 781b ldrb r3, [r3, #0] - 801ac58: f003 030f and.w r3, r3, #15 - 801ac5c: b2db uxtb r3, r3 - 801ac5e: 009b lsls r3, r3, #2 - 801ac60: b2db uxtb r3, r3 - 801ac62: 847b strh r3, [r7, #34] ; 0x22 + 801ac64: 6a7b ldr r3, [r7, #36] ; 0x24 + 801ac66: 781b ldrb r3, [r3, #0] + 801ac68: f003 030f and.w r3, r3, #15 + 801ac6c: b2db uxtb r3, r3 + 801ac6e: 009b lsls r3, r3, #2 + 801ac70: b2db uxtb r3, r3 + 801ac72: 847b strh r3, [r7, #34] ; 0x22 if (hlen < IP_HLEN) { - 801ac64: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801ac66: 2b13 cmp r3, #19 - 801ac68: f240 80cd bls.w 801ae06 + 801ac74: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801ac76: 2b13 cmp r3, #19 + 801ac78: f240 80cd bls.w 801ae16 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short IP header (%"S16_F" bytes) received\n", hlen)); goto lenerr; } if (p->len < sizeof(u16_t) * 2) { - 801ac6c: 687b ldr r3, [r7, #4] - 801ac6e: 895b ldrh r3, [r3, #10] - 801ac70: 2b03 cmp r3, #3 - 801ac72: f240 80ca bls.w 801ae0a + 801ac7c: 687b ldr r3, [r7, #4] + 801ac7e: 895b ldrh r3, [r3, #10] + 801ac80: 2b03 cmp r3, #3 + 801ac82: f240 80ca bls.w 801ae1a LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: short ICMP (%"U16_F" bytes) received\n", p->tot_len)); goto lenerr; } type = *((u8_t *)p->payload); - 801ac76: 687b ldr r3, [r7, #4] - 801ac78: 685b ldr r3, [r3, #4] - 801ac7a: 781b ldrb r3, [r3, #0] - 801ac7c: f887 3021 strb.w r3, [r7, #33] ; 0x21 + 801ac86: 687b ldr r3, [r7, #4] + 801ac88: 685b ldr r3, [r3, #4] + 801ac8a: 781b ldrb r3, [r3, #0] + 801ac8c: f887 3021 strb.w r3, [r7, #33] ; 0x21 #ifdef LWIP_DEBUG code = *(((u8_t *)p->payload) + 1); /* if debug is enabled but debug statement below is somehow disabled: */ LWIP_UNUSED_ARG(code); #endif /* LWIP_DEBUG */ switch (type) { - 801ac80: f897 3021 ldrb.w r3, [r7, #33] ; 0x21 - 801ac84: 2b00 cmp r3, #0 - 801ac86: f000 80b7 beq.w 801adf8 - 801ac8a: 2b08 cmp r3, #8 - 801ac8c: f040 80b7 bne.w 801adfe + 801ac90: f897 3021 ldrb.w r3, [r7, #33] ; 0x21 + 801ac94: 2b00 cmp r3, #0 + 801ac96: f000 80b7 beq.w 801ae08 + 801ac9a: 2b08 cmp r3, #8 + 801ac9c: f040 80b7 bne.w 801ae0e (as obviously, an echo request has been sent, too). */ MIB2_STATS_INC(mib2.icmpinechoreps); break; case ICMP_ECHO: MIB2_STATS_INC(mib2.icmpinechos); src = ip4_current_dest_addr(); - 801ac90: 4b69 ldr r3, [pc, #420] ; (801ae38 ) - 801ac92: 61fb str r3, [r7, #28] + 801aca0: 4b69 ldr r3, [pc, #420] ; (801ae48 ) + 801aca2: 61fb str r3, [r7, #28] /* multicast destination address? */ if (ip4_addr_ismulticast(ip4_current_dest_addr())) { - 801ac94: 4b67 ldr r3, [pc, #412] ; (801ae34 ) - 801ac96: 695b ldr r3, [r3, #20] - 801ac98: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801ac9c: 2be0 cmp r3, #224 ; 0xe0 - 801ac9e: f000 80bb beq.w 801ae18 + 801aca4: 4b67 ldr r3, [pc, #412] ; (801ae44 ) + 801aca6: 695b ldr r3, [r3, #20] + 801aca8: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 801acac: 2be0 cmp r3, #224 ; 0xe0 + 801acae: f000 80bb beq.w 801ae28 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to multicast pings\n")); goto icmperr; #endif /* LWIP_MULTICAST_PING */ } /* broadcast destination address? */ if (ip4_addr_isbroadcast(ip4_current_dest_addr(), ip_current_netif())) { - 801aca2: 4b64 ldr r3, [pc, #400] ; (801ae34 ) - 801aca4: 695a ldr r2, [r3, #20] - 801aca6: 4b63 ldr r3, [pc, #396] ; (801ae34 ) - 801aca8: 681b ldr r3, [r3, #0] - 801acaa: 4619 mov r1, r3 - 801acac: 4610 mov r0, r2 - 801acae: f000 fc09 bl 801b4c4 - 801acb2: 4603 mov r3, r0 - 801acb4: 2b00 cmp r3, #0 - 801acb6: f040 80b1 bne.w 801ae1c + 801acb2: 4b64 ldr r3, [pc, #400] ; (801ae44 ) + 801acb4: 695a ldr r2, [r3, #20] + 801acb6: 4b63 ldr r3, [pc, #396] ; (801ae44 ) + 801acb8: 681b ldr r3, [r3, #0] + 801acba: 4619 mov r1, r3 + 801acbc: 4610 mov r0, r2 + 801acbe: f000 fc09 bl 801b4d4 + 801acc2: 4603 mov r3, r0 + 801acc4: 2b00 cmp r3, #0 + 801acc6: f040 80b1 bne.w 801ae2c LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: Not echoing to broadcast pings\n")); goto icmperr; #endif /* LWIP_BROADCAST_PING */ } LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ping\n")); if (p->tot_len < sizeof(struct icmp_echo_hdr)) { - 801acba: 687b ldr r3, [r7, #4] - 801acbc: 891b ldrh r3, [r3, #8] - 801acbe: 2b07 cmp r3, #7 - 801acc0: f240 80a5 bls.w 801ae0e + 801acca: 687b ldr r3, [r7, #4] + 801accc: 891b ldrh r3, [r3, #8] + 801acce: 2b07 cmp r3, #7 + 801acd0: f240 80a5 bls.w 801ae1e return; } } #endif #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN if (pbuf_add_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) { - 801acc4: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801acc6: 330e adds r3, #14 - 801acc8: 4619 mov r1, r3 - 801acca: 6878 ldr r0, [r7, #4] - 801accc: f7f6 fef6 bl 8011abc - 801acd0: 4603 mov r3, r0 - 801acd2: 2b00 cmp r3, #0 - 801acd4: d04b beq.n 801ad6e + 801acd4: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801acd6: 330e adds r3, #14 + 801acd8: 4619 mov r1, r3 + 801acda: 6878 ldr r0, [r7, #4] + 801acdc: f7f6 fef6 bl 8011acc + 801ace0: 4603 mov r3, r0 + 801ace2: 2b00 cmp r3, #0 + 801ace4: d04b beq.n 801ad7e /* p is not big enough to contain link headers * allocate a new one and copy p into it */ struct pbuf *r; u16_t alloc_len = (u16_t)(p->tot_len + hlen); - 801acd6: 687b ldr r3, [r7, #4] - 801acd8: 891a ldrh r2, [r3, #8] - 801acda: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801acdc: 4413 add r3, r2 - 801acde: 837b strh r3, [r7, #26] + 801ace6: 687b ldr r3, [r7, #4] + 801ace8: 891a ldrh r2, [r3, #8] + 801acea: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801acec: 4413 add r3, r2 + 801acee: 837b strh r3, [r7, #26] if (alloc_len < p->tot_len) { - 801ace0: 687b ldr r3, [r7, #4] - 801ace2: 891b ldrh r3, [r3, #8] - 801ace4: 8b7a ldrh r2, [r7, #26] - 801ace6: 429a cmp r2, r3 - 801ace8: f0c0 809a bcc.w 801ae20 + 801acf0: 687b ldr r3, [r7, #4] + 801acf2: 891b ldrh r3, [r3, #8] + 801acf4: 8b7a ldrh r2, [r7, #26] + 801acf6: 429a cmp r2, r3 + 801acf8: f0c0 809a bcc.w 801ae30 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed (tot_len overflow)\n")); goto icmperr; } /* allocate new packet buffer with space for link headers */ r = pbuf_alloc(PBUF_LINK, alloc_len, PBUF_RAM); - 801acec: 8b7b ldrh r3, [r7, #26] - 801acee: f44f 7220 mov.w r2, #640 ; 0x280 - 801acf2: 4619 mov r1, r3 - 801acf4: 200e movs r0, #14 - 801acf6: f7f6 fc97 bl 8011628 - 801acfa: 6178 str r0, [r7, #20] + 801acfc: 8b7b ldrh r3, [r7, #26] + 801acfe: f44f 7220 mov.w r2, #640 ; 0x280 + 801ad02: 4619 mov r1, r3 + 801ad04: 200e movs r0, #14 + 801ad06: f7f6 fc97 bl 8011638 + 801ad0a: 6178 str r0, [r7, #20] if (r == NULL) { - 801acfc: 697b ldr r3, [r7, #20] - 801acfe: 2b00 cmp r3, #0 - 801ad00: f000 8090 beq.w 801ae24 + 801ad0c: 697b ldr r3, [r7, #20] + 801ad0e: 2b00 cmp r3, #0 + 801ad10: f000 8090 beq.w 801ae34 LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: allocating new pbuf failed\n")); goto icmperr; } if (r->len < hlen + sizeof(struct icmp_echo_hdr)) { - 801ad04: 697b ldr r3, [r7, #20] - 801ad06: 895b ldrh r3, [r3, #10] - 801ad08: 461a mov r2, r3 - 801ad0a: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801ad0c: 3308 adds r3, #8 - 801ad0e: 429a cmp r2, r3 - 801ad10: d203 bcs.n 801ad1a + 801ad14: 697b ldr r3, [r7, #20] + 801ad16: 895b ldrh r3, [r3, #10] + 801ad18: 461a mov r2, r3 + 801ad1a: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801ad1c: 3308 adds r3, #8 + 801ad1e: 429a cmp r2, r3 + 801ad20: d203 bcs.n 801ad2a LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("first pbuf cannot hold the ICMP header")); pbuf_free(r); - 801ad12: 6978 ldr r0, [r7, #20] - 801ad14: f7f6 ff68 bl 8011be8 + 801ad22: 6978 ldr r0, [r7, #20] + 801ad24: f7f6 ff68 bl 8011bf8 goto icmperr; - 801ad18: e085 b.n 801ae26 + 801ad28: e085 b.n 801ae36 } /* copy the ip header */ MEMCPY(r->payload, iphdr_in, hlen); - 801ad1a: 697b ldr r3, [r7, #20] - 801ad1c: 685b ldr r3, [r3, #4] - 801ad1e: 8c7a ldrh r2, [r7, #34] ; 0x22 - 801ad20: 6a79 ldr r1, [r7, #36] ; 0x24 - 801ad22: 4618 mov r0, r3 - 801ad24: f001 fc63 bl 801c5ee + 801ad2a: 697b ldr r3, [r7, #20] + 801ad2c: 685b ldr r3, [r3, #4] + 801ad2e: 8c7a ldrh r2, [r7, #34] ; 0x22 + 801ad30: 6a79 ldr r1, [r7, #36] ; 0x24 + 801ad32: 4618 mov r0, r3 + 801ad34: f001 fc63 bl 801c5fe /* switch r->payload back to icmp header (cannot fail) */ if (pbuf_remove_header(r, hlen)) { - 801ad28: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801ad2a: 4619 mov r1, r3 - 801ad2c: 6978 ldr r0, [r7, #20] - 801ad2e: f7f6 fed5 bl 8011adc - 801ad32: 4603 mov r3, r0 - 801ad34: 2b00 cmp r3, #0 - 801ad36: d009 beq.n 801ad4c + 801ad38: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801ad3a: 4619 mov r1, r3 + 801ad3c: 6978 ldr r0, [r7, #20] + 801ad3e: f7f6 fed5 bl 8011aec + 801ad42: 4603 mov r3, r0 + 801ad44: 2b00 cmp r3, #0 + 801ad46: d009 beq.n 801ad5c LWIP_ASSERT("icmp_input: moving r->payload to icmp header failed\n", 0); - 801ad38: 4b40 ldr r3, [pc, #256] ; (801ae3c ) - 801ad3a: 22b6 movs r2, #182 ; 0xb6 - 801ad3c: 4940 ldr r1, [pc, #256] ; (801ae40 ) - 801ad3e: 4841 ldr r0, [pc, #260] ; (801ae44 ) - 801ad40: f001 fc82 bl 801c648 + 801ad48: 4b40 ldr r3, [pc, #256] ; (801ae4c ) + 801ad4a: 22b6 movs r2, #182 ; 0xb6 + 801ad4c: 4940 ldr r1, [pc, #256] ; (801ae50 ) + 801ad4e: 4841 ldr r0, [pc, #260] ; (801ae54 ) + 801ad50: f001 fc82 bl 801c658 pbuf_free(r); - 801ad44: 6978 ldr r0, [r7, #20] - 801ad46: f7f6 ff4f bl 8011be8 + 801ad54: 6978 ldr r0, [r7, #20] + 801ad56: f7f6 ff4f bl 8011bf8 goto icmperr; - 801ad4a: e06c b.n 801ae26 + 801ad5a: e06c b.n 801ae36 } /* copy the rest of the packet without ip header */ if (pbuf_copy(r, p) != ERR_OK) { - 801ad4c: 6879 ldr r1, [r7, #4] - 801ad4e: 6978 ldr r0, [r7, #20] - 801ad50: f7f7 f87e bl 8011e50 - 801ad54: 4603 mov r3, r0 - 801ad56: 2b00 cmp r3, #0 - 801ad58: d003 beq.n 801ad62 + 801ad5c: 6879 ldr r1, [r7, #4] + 801ad5e: 6978 ldr r0, [r7, #20] + 801ad60: f7f7 f87e bl 8011e60 + 801ad64: 4603 mov r3, r0 + 801ad66: 2b00 cmp r3, #0 + 801ad68: d003 beq.n 801ad72 LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("icmp_input: copying to new pbuf failed")); pbuf_free(r); - 801ad5a: 6978 ldr r0, [r7, #20] - 801ad5c: f7f6 ff44 bl 8011be8 + 801ad6a: 6978 ldr r0, [r7, #20] + 801ad6c: f7f6 ff44 bl 8011bf8 goto icmperr; - 801ad60: e061 b.n 801ae26 + 801ad70: e061 b.n 801ae36 } /* free the original p */ pbuf_free(p); - 801ad62: 6878 ldr r0, [r7, #4] - 801ad64: f7f6 ff40 bl 8011be8 + 801ad72: 6878 ldr r0, [r7, #4] + 801ad74: f7f6 ff40 bl 8011bf8 /* we now have an identical copy of p that has room for link headers */ p = r; - 801ad68: 697b ldr r3, [r7, #20] - 801ad6a: 607b str r3, [r7, #4] - 801ad6c: e00f b.n 801ad8e + 801ad78: 697b ldr r3, [r7, #20] + 801ad7a: 607b str r3, [r7, #4] + 801ad7c: e00f b.n 801ad9e } else { /* restore p->payload to point to icmp header (cannot fail) */ if (pbuf_remove_header(p, hlen + PBUF_LINK_HLEN + PBUF_LINK_ENCAPSULATION_HLEN)) { - 801ad6e: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801ad70: 330e adds r3, #14 - 801ad72: 4619 mov r1, r3 - 801ad74: 6878 ldr r0, [r7, #4] - 801ad76: f7f6 feb1 bl 8011adc - 801ad7a: 4603 mov r3, r0 - 801ad7c: 2b00 cmp r3, #0 - 801ad7e: d006 beq.n 801ad8e + 801ad7e: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801ad80: 330e adds r3, #14 + 801ad82: 4619 mov r1, r3 + 801ad84: 6878 ldr r0, [r7, #4] + 801ad86: f7f6 feb1 bl 8011aec + 801ad8a: 4603 mov r3, r0 + 801ad8c: 2b00 cmp r3, #0 + 801ad8e: d006 beq.n 801ad9e LWIP_ASSERT("icmp_input: restoring original p->payload failed\n", 0); - 801ad80: 4b2e ldr r3, [pc, #184] ; (801ae3c ) - 801ad82: 22c7 movs r2, #199 ; 0xc7 - 801ad84: 4930 ldr r1, [pc, #192] ; (801ae48 ) - 801ad86: 482f ldr r0, [pc, #188] ; (801ae44 ) - 801ad88: f001 fc5e bl 801c648 + 801ad90: 4b2e ldr r3, [pc, #184] ; (801ae4c ) + 801ad92: 22c7 movs r2, #199 ; 0xc7 + 801ad94: 4930 ldr r1, [pc, #192] ; (801ae58 ) + 801ad96: 482f ldr r0, [pc, #188] ; (801ae54 ) + 801ad98: f001 fc5e bl 801c658 goto icmperr; - 801ad8c: e04b b.n 801ae26 + 801ad9c: e04b b.n 801ae36 } #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN */ /* At this point, all checks are OK. */ /* We generate an answer by switching the dest and src ip addresses, * setting the icmp type to ECHO_RESPONSE and updating the checksum. */ iecho = (struct icmp_echo_hdr *)p->payload; - 801ad8e: 687b ldr r3, [r7, #4] - 801ad90: 685b ldr r3, [r3, #4] - 801ad92: 613b str r3, [r7, #16] + 801ad9e: 687b ldr r3, [r7, #4] + 801ada0: 685b ldr r3, [r3, #4] + 801ada2: 613b str r3, [r7, #16] if (pbuf_add_header(p, hlen)) { - 801ad94: 8c7b ldrh r3, [r7, #34] ; 0x22 - 801ad96: 4619 mov r1, r3 - 801ad98: 6878 ldr r0, [r7, #4] - 801ad9a: f7f6 fe8f bl 8011abc - 801ad9e: 4603 mov r3, r0 - 801ada0: 2b00 cmp r3, #0 - 801ada2: d12b bne.n 801adfc + 801ada4: 8c7b ldrh r3, [r7, #34] ; 0x22 + 801ada6: 4619 mov r1, r3 + 801ada8: 6878 ldr r0, [r7, #4] + 801adaa: f7f6 fe8f bl 8011acc + 801adae: 4603 mov r3, r0 + 801adb0: 2b00 cmp r3, #0 + 801adb2: d12b bne.n 801ae0c LWIP_DEBUGF(ICMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("Can't move over header in packet")); } else { err_t ret; struct ip_hdr *iphdr = (struct ip_hdr *)p->payload; - 801ada4: 687b ldr r3, [r7, #4] - 801ada6: 685b ldr r3, [r3, #4] - 801ada8: 60fb str r3, [r7, #12] + 801adb4: 687b ldr r3, [r7, #4] + 801adb6: 685b ldr r3, [r3, #4] + 801adb8: 60fb str r3, [r7, #12] ip4_addr_copy(iphdr->src, *src); - 801adaa: 69fb ldr r3, [r7, #28] - 801adac: 681a ldr r2, [r3, #0] - 801adae: 68fb ldr r3, [r7, #12] - 801adb0: 60da str r2, [r3, #12] + 801adba: 69fb ldr r3, [r7, #28] + 801adbc: 681a ldr r2, [r3, #0] + 801adbe: 68fb ldr r3, [r7, #12] + 801adc0: 60da str r2, [r3, #12] ip4_addr_copy(iphdr->dest, *ip4_current_src_addr()); - 801adb2: 4b20 ldr r3, [pc, #128] ; (801ae34 ) - 801adb4: 691a ldr r2, [r3, #16] - 801adb6: 68fb ldr r3, [r7, #12] - 801adb8: 611a str r2, [r3, #16] + 801adc2: 4b20 ldr r3, [pc, #128] ; (801ae44 ) + 801adc4: 691a ldr r2, [r3, #16] + 801adc6: 68fb ldr r3, [r7, #12] + 801adc8: 611a str r2, [r3, #16] ICMPH_TYPE_SET(iecho, ICMP_ER); - 801adba: 693b ldr r3, [r7, #16] - 801adbc: 2200 movs r2, #0 - 801adbe: 701a strb r2, [r3, #0] + 801adca: 693b ldr r3, [r7, #16] + 801adcc: 2200 movs r2, #0 + 801adce: 701a strb r2, [r3, #0] else { iecho->chksum = 0; } #endif /* LWIP_CHECKSUM_CTRL_PER_NETIF */ #else /* CHECKSUM_GEN_ICMP */ iecho->chksum = 0; - 801adc0: 693b ldr r3, [r7, #16] - 801adc2: 2200 movs r2, #0 - 801adc4: 709a strb r2, [r3, #2] - 801adc6: 2200 movs r2, #0 - 801adc8: 70da strb r2, [r3, #3] + 801add0: 693b ldr r3, [r7, #16] + 801add2: 2200 movs r2, #0 + 801add4: 709a strb r2, [r3, #2] + 801add6: 2200 movs r2, #0 + 801add8: 70da strb r2, [r3, #3] #endif /* CHECKSUM_GEN_ICMP */ /* Set the correct TTL and recalculate the header checksum. */ IPH_TTL_SET(iphdr, ICMP_TTL); - 801adca: 68fb ldr r3, [r7, #12] - 801adcc: 22ff movs r2, #255 ; 0xff - 801adce: 721a strb r2, [r3, #8] + 801adda: 68fb ldr r3, [r7, #12] + 801addc: 22ff movs r2, #255 ; 0xff + 801adde: 721a strb r2, [r3, #8] IPH_CHKSUM_SET(iphdr, 0); - 801add0: 68fb ldr r3, [r7, #12] - 801add2: 2200 movs r2, #0 - 801add4: 729a strb r2, [r3, #10] - 801add6: 2200 movs r2, #0 - 801add8: 72da strb r2, [r3, #11] + 801ade0: 68fb ldr r3, [r7, #12] + 801ade2: 2200 movs r2, #0 + 801ade4: 729a strb r2, [r3, #10] + 801ade6: 2200 movs r2, #0 + 801ade8: 72da strb r2, [r3, #11] MIB2_STATS_INC(mib2.icmpoutmsgs); /* increase number of echo replies attempted to send */ MIB2_STATS_INC(mib2.icmpoutechoreps); /* send an ICMP packet */ ret = ip4_output_if(p, src, LWIP_IP_HDRINCL, - 801adda: 683b ldr r3, [r7, #0] - 801addc: 9302 str r3, [sp, #8] - 801adde: 2301 movs r3, #1 - 801ade0: 9301 str r3, [sp, #4] - 801ade2: 2300 movs r3, #0 - 801ade4: 9300 str r3, [sp, #0] - 801ade6: 23ff movs r3, #255 ; 0xff - 801ade8: 2200 movs r2, #0 - 801adea: 69f9 ldr r1, [r7, #28] - 801adec: 6878 ldr r0, [r7, #4] - 801adee: f000 fa91 bl 801b314 - 801adf2: 4603 mov r3, r0 - 801adf4: 72fb strb r3, [r7, #11] + 801adea: 683b ldr r3, [r7, #0] + 801adec: 9302 str r3, [sp, #8] + 801adee: 2301 movs r3, #1 + 801adf0: 9301 str r3, [sp, #4] + 801adf2: 2300 movs r3, #0 + 801adf4: 9300 str r3, [sp, #0] + 801adf6: 23ff movs r3, #255 ; 0xff + 801adf8: 2200 movs r2, #0 + 801adfa: 69f9 ldr r1, [r7, #28] + 801adfc: 6878 ldr r0, [r7, #4] + 801adfe: f000 fa91 bl 801b324 + 801ae02: 4603 mov r3, r0 + 801ae04: 72fb strb r3, [r7, #11] ICMP_TTL, 0, IP_PROTO_ICMP, inp); if (ret != ERR_OK) { LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ip_output_if returned an error: %s\n", lwip_strerr(ret))); } } break; - 801adf6: e001 b.n 801adfc + 801ae06: e001 b.n 801ae0c break; - 801adf8: bf00 nop - 801adfa: e000 b.n 801adfe + 801ae08: bf00 nop + 801ae0a: e000 b.n 801ae0e break; - 801adfc: bf00 nop + 801ae0c: bf00 nop LWIP_DEBUGF(ICMP_DEBUG, ("icmp_input: ICMP type %"S16_F" code %"S16_F" not supported.\n", (s16_t)type, (s16_t)code)); ICMP_STATS_INC(icmp.proterr); ICMP_STATS_INC(icmp.drop); } pbuf_free(p); - 801adfe: 6878 ldr r0, [r7, #4] - 801ae00: f7f6 fef2 bl 8011be8 + 801ae0e: 6878 ldr r0, [r7, #4] + 801ae10: f7f6 fef2 bl 8011bf8 return; - 801ae04: e013 b.n 801ae2e + 801ae14: e013 b.n 801ae3e goto lenerr; - 801ae06: bf00 nop - 801ae08: e002 b.n 801ae10 + 801ae16: bf00 nop + 801ae18: e002 b.n 801ae20 goto lenerr; - 801ae0a: bf00 nop - 801ae0c: e000 b.n 801ae10 + 801ae1a: bf00 nop + 801ae1c: e000 b.n 801ae20 goto lenerr; - 801ae0e: bf00 nop + 801ae1e: bf00 nop lenerr: pbuf_free(p); - 801ae10: 6878 ldr r0, [r7, #4] - 801ae12: f7f6 fee9 bl 8011be8 + 801ae20: 6878 ldr r0, [r7, #4] + 801ae22: f7f6 fee9 bl 8011bf8 ICMP_STATS_INC(icmp.lenerr); MIB2_STATS_INC(mib2.icmpinerrors); return; - 801ae16: e00a b.n 801ae2e + 801ae26: e00a b.n 801ae3e goto icmperr; - 801ae18: bf00 nop - 801ae1a: e004 b.n 801ae26 + 801ae28: bf00 nop + 801ae2a: e004 b.n 801ae36 goto icmperr; - 801ae1c: bf00 nop - 801ae1e: e002 b.n 801ae26 + 801ae2c: bf00 nop + 801ae2e: e002 b.n 801ae36 goto icmperr; - 801ae20: bf00 nop - 801ae22: e000 b.n 801ae26 + 801ae30: bf00 nop + 801ae32: e000 b.n 801ae36 goto icmperr; - 801ae24: bf00 nop + 801ae34: bf00 nop #if LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING icmperr: pbuf_free(p); - 801ae26: 6878 ldr r0, [r7, #4] - 801ae28: f7f6 fede bl 8011be8 + 801ae36: 6878 ldr r0, [r7, #4] + 801ae38: f7f6 fede bl 8011bf8 ICMP_STATS_INC(icmp.err); MIB2_STATS_INC(mib2.icmpinerrors); return; - 801ae2c: bf00 nop + 801ae3c: bf00 nop #endif /* LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN || !LWIP_MULTICAST_PING || !LWIP_BROADCAST_PING */ } - 801ae2e: 3728 adds r7, #40 ; 0x28 - 801ae30: 46bd mov sp, r7 - 801ae32: bd80 pop {r7, pc} - 801ae34: 2000c0bc .word 0x2000c0bc - 801ae38: 2000c0d0 .word 0x2000c0d0 - 801ae3c: 08020340 .word 0x08020340 - 801ae40: 08020378 .word 0x08020378 - 801ae44: 080203b0 .word 0x080203b0 - 801ae48: 080203d8 .word 0x080203d8 - -0801ae4c : + 801ae3e: 3728 adds r7, #40 ; 0x28 + 801ae40: 46bd mov sp, r7 + 801ae42: bd80 pop {r7, pc} + 801ae44: 2000c0bc .word 0x2000c0bc + 801ae48: 2000c0d0 .word 0x2000c0d0 + 801ae4c: 08020350 .word 0x08020350 + 801ae50: 08020388 .word 0x08020388 + 801ae54: 080203c0 .word 0x080203c0 + 801ae58: 080203e8 .word 0x080203e8 + +0801ae5c : * p->payload pointing to the IP header * @param t type of the 'unreachable' packet */ void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t) { - 801ae4c: b580 push {r7, lr} - 801ae4e: b082 sub sp, #8 - 801ae50: af00 add r7, sp, #0 - 801ae52: 6078 str r0, [r7, #4] - 801ae54: 460b mov r3, r1 - 801ae56: 70fb strb r3, [r7, #3] + 801ae5c: b580 push {r7, lr} + 801ae5e: b082 sub sp, #8 + 801ae60: af00 add r7, sp, #0 + 801ae62: 6078 str r0, [r7, #4] + 801ae64: 460b mov r3, r1 + 801ae66: 70fb strb r3, [r7, #3] MIB2_STATS_INC(mib2.icmpoutdestunreachs); icmp_send_response(p, ICMP_DUR, t); - 801ae58: 78fb ldrb r3, [r7, #3] - 801ae5a: 461a mov r2, r3 - 801ae5c: 2103 movs r1, #3 - 801ae5e: 6878 ldr r0, [r7, #4] - 801ae60: f000 f814 bl 801ae8c -} - 801ae64: bf00 nop - 801ae66: 3708 adds r7, #8 - 801ae68: 46bd mov sp, r7 - 801ae6a: bd80 pop {r7, pc} - -0801ae6c : + 801ae68: 78fb ldrb r3, [r7, #3] + 801ae6a: 461a mov r2, r3 + 801ae6c: 2103 movs r1, #3 + 801ae6e: 6878 ldr r0, [r7, #4] + 801ae70: f000 f814 bl 801ae9c +} + 801ae74: bf00 nop + 801ae76: 3708 adds r7, #8 + 801ae78: 46bd mov sp, r7 + 801ae7a: bd80 pop {r7, pc} + +0801ae7c : * p->payload pointing to the IP header * @param t type of the 'time exceeded' packet */ void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t) { - 801ae6c: b580 push {r7, lr} - 801ae6e: b082 sub sp, #8 - 801ae70: af00 add r7, sp, #0 - 801ae72: 6078 str r0, [r7, #4] - 801ae74: 460b mov r3, r1 - 801ae76: 70fb strb r3, [r7, #3] + 801ae7c: b580 push {r7, lr} + 801ae7e: b082 sub sp, #8 + 801ae80: af00 add r7, sp, #0 + 801ae82: 6078 str r0, [r7, #4] + 801ae84: 460b mov r3, r1 + 801ae86: 70fb strb r3, [r7, #3] MIB2_STATS_INC(mib2.icmpouttimeexcds); icmp_send_response(p, ICMP_TE, t); - 801ae78: 78fb ldrb r3, [r7, #3] - 801ae7a: 461a mov r2, r3 - 801ae7c: 210b movs r1, #11 - 801ae7e: 6878 ldr r0, [r7, #4] - 801ae80: f000 f804 bl 801ae8c -} - 801ae84: bf00 nop - 801ae86: 3708 adds r7, #8 - 801ae88: 46bd mov sp, r7 - 801ae8a: bd80 pop {r7, pc} - -0801ae8c : + 801ae88: 78fb ldrb r3, [r7, #3] + 801ae8a: 461a mov r2, r3 + 801ae8c: 210b movs r1, #11 + 801ae8e: 6878 ldr r0, [r7, #4] + 801ae90: f000 f804 bl 801ae9c +} + 801ae94: bf00 nop + 801ae96: 3708 adds r7, #8 + 801ae98: 46bd mov sp, r7 + 801ae9a: bd80 pop {r7, pc} + +0801ae9c : * @param type Type of the ICMP header * @param code Code of the ICMP header */ static void icmp_send_response(struct pbuf *p, u8_t type, u8_t code) { - 801ae8c: b580 push {r7, lr} - 801ae8e: b08c sub sp, #48 ; 0x30 - 801ae90: af04 add r7, sp, #16 - 801ae92: 6078 str r0, [r7, #4] - 801ae94: 460b mov r3, r1 - 801ae96: 70fb strb r3, [r7, #3] - 801ae98: 4613 mov r3, r2 - 801ae9a: 70bb strb r3, [r7, #2] + 801ae9c: b580 push {r7, lr} + 801ae9e: b08c sub sp, #48 ; 0x30 + 801aea0: af04 add r7, sp, #16 + 801aea2: 6078 str r0, [r7, #4] + 801aea4: 460b mov r3, r1 + 801aea6: 70fb strb r3, [r7, #3] + 801aea8: 4613 mov r3, r2 + 801aeaa: 70bb strb r3, [r7, #2] /* increase number of messages attempted to send */ MIB2_STATS_INC(mib2.icmpoutmsgs); /* ICMP header + IP header + 8 bytes of data */ q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE, - 801ae9c: f44f 7220 mov.w r2, #640 ; 0x280 - 801aea0: 2124 movs r1, #36 ; 0x24 - 801aea2: 2022 movs r0, #34 ; 0x22 - 801aea4: f7f6 fbc0 bl 8011628 - 801aea8: 61f8 str r0, [r7, #28] + 801aeac: f44f 7220 mov.w r2, #640 ; 0x280 + 801aeb0: 2124 movs r1, #36 ; 0x24 + 801aeb2: 2022 movs r0, #34 ; 0x22 + 801aeb4: f7f6 fbc0 bl 8011638 + 801aeb8: 61f8 str r0, [r7, #28] PBUF_RAM); if (q == NULL) { - 801aeaa: 69fb ldr r3, [r7, #28] - 801aeac: 2b00 cmp r3, #0 - 801aeae: d04c beq.n 801af4a + 801aeba: 69fb ldr r3, [r7, #28] + 801aebc: 2b00 cmp r3, #0 + 801aebe: d04c beq.n 801af5a LWIP_DEBUGF(ICMP_DEBUG, ("icmp_time_exceeded: failed to allocate pbuf for ICMP packet.\n")); MIB2_STATS_INC(mib2.icmpouterrors); return; } LWIP_ASSERT("check that first pbuf can hold icmp message", - 801aeb0: 69fb ldr r3, [r7, #28] - 801aeb2: 895b ldrh r3, [r3, #10] - 801aeb4: 2b23 cmp r3, #35 ; 0x23 - 801aeb6: d806 bhi.n 801aec6 - 801aeb8: 4b26 ldr r3, [pc, #152] ; (801af54 ) - 801aeba: f240 1269 movw r2, #361 ; 0x169 - 801aebe: 4926 ldr r1, [pc, #152] ; (801af58 ) - 801aec0: 4826 ldr r0, [pc, #152] ; (801af5c ) - 801aec2: f001 fbc1 bl 801c648 + 801aec0: 69fb ldr r3, [r7, #28] + 801aec2: 895b ldrh r3, [r3, #10] + 801aec4: 2b23 cmp r3, #35 ; 0x23 + 801aec6: d806 bhi.n 801aed6 + 801aec8: 4b26 ldr r3, [pc, #152] ; (801af64 ) + 801aeca: f240 1269 movw r2, #361 ; 0x169 + 801aece: 4926 ldr r1, [pc, #152] ; (801af68 ) + 801aed0: 4826 ldr r0, [pc, #152] ; (801af6c ) + 801aed2: f001 fbc1 bl 801c658 (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE))); iphdr = (struct ip_hdr *)p->payload; - 801aec6: 687b ldr r3, [r7, #4] - 801aec8: 685b ldr r3, [r3, #4] - 801aeca: 61bb str r3, [r7, #24] + 801aed6: 687b ldr r3, [r7, #4] + 801aed8: 685b ldr r3, [r3, #4] + 801aeda: 61bb str r3, [r7, #24] ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->src); LWIP_DEBUGF(ICMP_DEBUG, (" to ")); ip4_addr_debug_print_val(ICMP_DEBUG, iphdr->dest); LWIP_DEBUGF(ICMP_DEBUG, ("\n")); icmphdr = (struct icmp_echo_hdr *)q->payload; - 801aecc: 69fb ldr r3, [r7, #28] - 801aece: 685b ldr r3, [r3, #4] - 801aed0: 617b str r3, [r7, #20] + 801aedc: 69fb ldr r3, [r7, #28] + 801aede: 685b ldr r3, [r3, #4] + 801aee0: 617b str r3, [r7, #20] icmphdr->type = type; - 801aed2: 697b ldr r3, [r7, #20] - 801aed4: 78fa ldrb r2, [r7, #3] - 801aed6: 701a strb r2, [r3, #0] + 801aee2: 697b ldr r3, [r7, #20] + 801aee4: 78fa ldrb r2, [r7, #3] + 801aee6: 701a strb r2, [r3, #0] icmphdr->code = code; - 801aed8: 697b ldr r3, [r7, #20] - 801aeda: 78ba ldrb r2, [r7, #2] - 801aedc: 705a strb r2, [r3, #1] + 801aee8: 697b ldr r3, [r7, #20] + 801aeea: 78ba ldrb r2, [r7, #2] + 801aeec: 705a strb r2, [r3, #1] icmphdr->id = 0; - 801aede: 697b ldr r3, [r7, #20] - 801aee0: 2200 movs r2, #0 - 801aee2: 711a strb r2, [r3, #4] - 801aee4: 2200 movs r2, #0 - 801aee6: 715a strb r2, [r3, #5] + 801aeee: 697b ldr r3, [r7, #20] + 801aef0: 2200 movs r2, #0 + 801aef2: 711a strb r2, [r3, #4] + 801aef4: 2200 movs r2, #0 + 801aef6: 715a strb r2, [r3, #5] icmphdr->seqno = 0; - 801aee8: 697b ldr r3, [r7, #20] - 801aeea: 2200 movs r2, #0 - 801aeec: 719a strb r2, [r3, #6] - 801aeee: 2200 movs r2, #0 - 801aef0: 71da strb r2, [r3, #7] + 801aef8: 697b ldr r3, [r7, #20] + 801aefa: 2200 movs r2, #0 + 801aefc: 719a strb r2, [r3, #6] + 801aefe: 2200 movs r2, #0 + 801af00: 71da strb r2, [r3, #7] /* copy fields from original packet */ SMEMCPY((u8_t *)q->payload + sizeof(struct icmp_echo_hdr), (u8_t *)p->payload, - 801aef2: 69fb ldr r3, [r7, #28] - 801aef4: 685b ldr r3, [r3, #4] - 801aef6: f103 0008 add.w r0, r3, #8 - 801aefa: 687b ldr r3, [r7, #4] - 801aefc: 685b ldr r3, [r3, #4] - 801aefe: 221c movs r2, #28 - 801af00: 4619 mov r1, r3 - 801af02: f001 fb74 bl 801c5ee + 801af02: 69fb ldr r3, [r7, #28] + 801af04: 685b ldr r3, [r3, #4] + 801af06: f103 0008 add.w r0, r3, #8 + 801af0a: 687b ldr r3, [r7, #4] + 801af0c: 685b ldr r3, [r3, #4] + 801af0e: 221c movs r2, #28 + 801af10: 4619 mov r1, r3 + 801af12: f001 fb74 bl 801c5fe IP_HLEN + ICMP_DEST_UNREACH_DATASIZE); ip4_addr_copy(iphdr_src, iphdr->src); - 801af06: 69bb ldr r3, [r7, #24] - 801af08: 68db ldr r3, [r3, #12] - 801af0a: 60fb str r3, [r7, #12] + 801af16: 69bb ldr r3, [r7, #24] + 801af18: 68db ldr r3, [r3, #12] + 801af1a: 60fb str r3, [r7, #12] ip4_addr_t iphdr_dst; ip4_addr_copy(iphdr_dst, iphdr->dest); netif = ip4_route_src(&iphdr_dst, &iphdr_src); } #else netif = ip4_route(&iphdr_src); - 801af0c: f107 030c add.w r3, r7, #12 - 801af10: 4618 mov r0, r3 - 801af12: f000 f825 bl 801af60 - 801af16: 6138 str r0, [r7, #16] + 801af1c: f107 030c add.w r3, r7, #12 + 801af20: 4618 mov r0, r3 + 801af22: f000 f825 bl 801af70 + 801af26: 6138 str r0, [r7, #16] #endif if (netif != NULL) { - 801af18: 693b ldr r3, [r7, #16] - 801af1a: 2b00 cmp r3, #0 - 801af1c: d011 beq.n 801af42 + 801af28: 693b ldr r3, [r7, #16] + 801af2a: 2b00 cmp r3, #0 + 801af2c: d011 beq.n 801af52 /* calculate checksum */ icmphdr->chksum = 0; - 801af1e: 697b ldr r3, [r7, #20] - 801af20: 2200 movs r2, #0 - 801af22: 709a strb r2, [r3, #2] - 801af24: 2200 movs r2, #0 - 801af26: 70da strb r2, [r3, #3] + 801af2e: 697b ldr r3, [r7, #20] + 801af30: 2200 movs r2, #0 + 801af32: 709a strb r2, [r3, #2] + 801af34: 2200 movs r2, #0 + 801af36: 70da strb r2, [r3, #3] IF__NETIF_CHECKSUM_ENABLED(netif, NETIF_CHECKSUM_GEN_ICMP) { icmphdr->chksum = inet_chksum(icmphdr, q->len); } #endif ICMP_STATS_INC(icmp.xmit); ip4_output_if(q, NULL, &iphdr_src, ICMP_TTL, 0, IP_PROTO_ICMP, netif); - 801af28: f107 020c add.w r2, r7, #12 - 801af2c: 693b ldr r3, [r7, #16] - 801af2e: 9302 str r3, [sp, #8] - 801af30: 2301 movs r3, #1 - 801af32: 9301 str r3, [sp, #4] - 801af34: 2300 movs r3, #0 - 801af36: 9300 str r3, [sp, #0] - 801af38: 23ff movs r3, #255 ; 0xff - 801af3a: 2100 movs r1, #0 - 801af3c: 69f8 ldr r0, [r7, #28] - 801af3e: f000 f9e9 bl 801b314 + 801af38: f107 020c add.w r2, r7, #12 + 801af3c: 693b ldr r3, [r7, #16] + 801af3e: 9302 str r3, [sp, #8] + 801af40: 2301 movs r3, #1 + 801af42: 9301 str r3, [sp, #4] + 801af44: 2300 movs r3, #0 + 801af46: 9300 str r3, [sp, #0] + 801af48: 23ff movs r3, #255 ; 0xff + 801af4a: 2100 movs r1, #0 + 801af4c: 69f8 ldr r0, [r7, #28] + 801af4e: f000 f9e9 bl 801b324 } pbuf_free(q); - 801af42: 69f8 ldr r0, [r7, #28] - 801af44: f7f6 fe50 bl 8011be8 - 801af48: e000 b.n 801af4c + 801af52: 69f8 ldr r0, [r7, #28] + 801af54: f7f6 fe50 bl 8011bf8 + 801af58: e000 b.n 801af5c return; - 801af4a: bf00 nop + 801af5a: bf00 nop } - 801af4c: 3720 adds r7, #32 - 801af4e: 46bd mov sp, r7 - 801af50: bd80 pop {r7, pc} - 801af52: bf00 nop - 801af54: 08020340 .word 0x08020340 - 801af58: 0802040c .word 0x0802040c - 801af5c: 080203b0 .word 0x080203b0 + 801af5c: 3720 adds r7, #32 + 801af5e: 46bd mov sp, r7 + 801af60: bd80 pop {r7, pc} + 801af62: bf00 nop + 801af64: 08020350 .word 0x08020350 + 801af68: 0802041c .word 0x0802041c + 801af6c: 080203c0 .word 0x080203c0 -0801af60 : +0801af70 : * @param dest the destination IP address for which to find the route * @return the netif on which to send to reach dest */ struct netif * ip4_route(const ip4_addr_t *dest) { - 801af60: b480 push {r7} - 801af62: b085 sub sp, #20 - 801af64: af00 add r7, sp, #0 - 801af66: 6078 str r0, [r7, #4] + 801af70: b480 push {r7} + 801af72: b085 sub sp, #20 + 801af74: af00 add r7, sp, #0 + 801af76: 6078 str r0, [r7, #4] /* bug #54569: in case LWIP_SINGLE_NETIF=1 and LWIP_DEBUGF() disabled, the following loop is optimized away */ LWIP_UNUSED_ARG(dest); /* iterate through netifs */ NETIF_FOREACH(netif) { - 801af68: 4b33 ldr r3, [pc, #204] ; (801b038 ) - 801af6a: 681b ldr r3, [r3, #0] - 801af6c: 60fb str r3, [r7, #12] - 801af6e: e036 b.n 801afde + 801af78: 4b33 ldr r3, [pc, #204] ; (801b048 ) + 801af7a: 681b ldr r3, [r3, #0] + 801af7c: 60fb str r3, [r7, #12] + 801af7e: e036 b.n 801afee /* is the netif up, does it have a link and a valid address? */ if (netif_is_up(netif) && netif_is_link_up(netif) && !ip4_addr_isany_val(*netif_ip4_addr(netif))) { - 801af70: 68fb ldr r3, [r7, #12] - 801af72: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801af76: f003 0301 and.w r3, r3, #1 - 801af7a: b2db uxtb r3, r3 - 801af7c: 2b00 cmp r3, #0 - 801af7e: d02b beq.n 801afd8 801af80: 68fb ldr r3, [r7, #12] 801af82: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801af86: 089b lsrs r3, r3, #2 - 801af88: f003 0301 and.w r3, r3, #1 - 801af8c: b2db uxtb r3, r3 - 801af8e: 2b00 cmp r3, #0 - 801af90: d022 beq.n 801afd8 - 801af92: 68fb ldr r3, [r7, #12] - 801af94: 3304 adds r3, #4 - 801af96: 681b ldr r3, [r3, #0] - 801af98: 2b00 cmp r3, #0 - 801af9a: d01d beq.n 801afd8 + 801af86: f003 0301 and.w r3, r3, #1 + 801af8a: b2db uxtb r3, r3 + 801af8c: 2b00 cmp r3, #0 + 801af8e: d02b beq.n 801afe8 + 801af90: 68fb ldr r3, [r7, #12] + 801af92: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801af96: 089b lsrs r3, r3, #2 + 801af98: f003 0301 and.w r3, r3, #1 + 801af9c: b2db uxtb r3, r3 + 801af9e: 2b00 cmp r3, #0 + 801afa0: d022 beq.n 801afe8 + 801afa2: 68fb ldr r3, [r7, #12] + 801afa4: 3304 adds r3, #4 + 801afa6: 681b ldr r3, [r3, #0] + 801afa8: 2b00 cmp r3, #0 + 801afaa: d01d beq.n 801afe8 /* network mask matches? */ if (ip4_addr_netcmp(dest, netif_ip4_addr(netif), netif_ip4_netmask(netif))) { - 801af9c: 687b ldr r3, [r7, #4] - 801af9e: 681a ldr r2, [r3, #0] - 801afa0: 68fb ldr r3, [r7, #12] - 801afa2: 3304 adds r3, #4 - 801afa4: 681b ldr r3, [r3, #0] - 801afa6: 405a eors r2, r3 - 801afa8: 68fb ldr r3, [r7, #12] - 801afaa: 3308 adds r3, #8 - 801afac: 681b ldr r3, [r3, #0] - 801afae: 4013 ands r3, r2 - 801afb0: 2b00 cmp r3, #0 - 801afb2: d101 bne.n 801afb8 + 801afac: 687b ldr r3, [r7, #4] + 801afae: 681a ldr r2, [r3, #0] + 801afb0: 68fb ldr r3, [r7, #12] + 801afb2: 3304 adds r3, #4 + 801afb4: 681b ldr r3, [r3, #0] + 801afb6: 405a eors r2, r3 + 801afb8: 68fb ldr r3, [r7, #12] + 801afba: 3308 adds r3, #8 + 801afbc: 681b ldr r3, [r3, #0] + 801afbe: 4013 ands r3, r2 + 801afc0: 2b00 cmp r3, #0 + 801afc2: d101 bne.n 801afc8 /* return netif on which to forward IP packet */ return netif; - 801afb4: 68fb ldr r3, [r7, #12] - 801afb6: e038 b.n 801b02a + 801afc4: 68fb ldr r3, [r7, #12] + 801afc6: e038 b.n 801b03a } /* gateway matches on a non broadcast interface? (i.e. peer in a point to point interface) */ if (((netif->flags & NETIF_FLAG_BROADCAST) == 0) && ip4_addr_cmp(dest, netif_ip4_gw(netif))) { - 801afb8: 68fb ldr r3, [r7, #12] - 801afba: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801afbe: f003 0302 and.w r3, r3, #2 - 801afc2: 2b00 cmp r3, #0 - 801afc4: d108 bne.n 801afd8 - 801afc6: 687b ldr r3, [r7, #4] - 801afc8: 681a ldr r2, [r3, #0] - 801afca: 68fb ldr r3, [r7, #12] - 801afcc: 330c adds r3, #12 - 801afce: 681b ldr r3, [r3, #0] - 801afd0: 429a cmp r2, r3 - 801afd2: d101 bne.n 801afd8 + 801afc8: 68fb ldr r3, [r7, #12] + 801afca: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801afce: f003 0302 and.w r3, r3, #2 + 801afd2: 2b00 cmp r3, #0 + 801afd4: d108 bne.n 801afe8 + 801afd6: 687b ldr r3, [r7, #4] + 801afd8: 681a ldr r2, [r3, #0] + 801afda: 68fb ldr r3, [r7, #12] + 801afdc: 330c adds r3, #12 + 801afde: 681b ldr r3, [r3, #0] + 801afe0: 429a cmp r2, r3 + 801afe2: d101 bne.n 801afe8 /* return netif on which to forward IP packet */ return netif; - 801afd4: 68fb ldr r3, [r7, #12] - 801afd6: e028 b.n 801b02a + 801afe4: 68fb ldr r3, [r7, #12] + 801afe6: e028 b.n 801b03a NETIF_FOREACH(netif) { - 801afd8: 68fb ldr r3, [r7, #12] - 801afda: 681b ldr r3, [r3, #0] - 801afdc: 60fb str r3, [r7, #12] - 801afde: 68fb ldr r3, [r7, #12] - 801afe0: 2b00 cmp r3, #0 - 801afe2: d1c5 bne.n 801af70 + 801afe8: 68fb ldr r3, [r7, #12] + 801afea: 681b ldr r3, [r3, #0] + 801afec: 60fb str r3, [r7, #12] + 801afee: 68fb ldr r3, [r7, #12] + 801aff0: 2b00 cmp r3, #0 + 801aff2: d1c5 bne.n 801af80 return netif; } #endif #endif /* !LWIP_SINGLE_NETIF */ if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) || - 801afe4: 4b15 ldr r3, [pc, #84] ; (801b03c ) - 801afe6: 681b ldr r3, [r3, #0] - 801afe8: 2b00 cmp r3, #0 - 801afea: d01a beq.n 801b022 - 801afec: 4b13 ldr r3, [pc, #76] ; (801b03c ) - 801afee: 681b ldr r3, [r3, #0] - 801aff0: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801aff4: f003 0301 and.w r3, r3, #1 + 801aff4: 4b15 ldr r3, [pc, #84] ; (801b04c ) + 801aff6: 681b ldr r3, [r3, #0] 801aff8: 2b00 cmp r3, #0 - 801affa: d012 beq.n 801b022 - 801affc: 4b0f ldr r3, [pc, #60] ; (801b03c ) + 801affa: d01a beq.n 801b032 + 801affc: 4b13 ldr r3, [pc, #76] ; (801b04c ) 801affe: 681b ldr r3, [r3, #0] 801b000: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801b004: f003 0304 and.w r3, r3, #4 + 801b004: f003 0301 and.w r3, r3, #1 801b008: 2b00 cmp r3, #0 - 801b00a: d00a beq.n 801b022 - ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) { - 801b00c: 4b0b ldr r3, [pc, #44] ; (801b03c ) + 801b00a: d012 beq.n 801b032 + 801b00c: 4b0f ldr r3, [pc, #60] ; (801b04c ) 801b00e: 681b ldr r3, [r3, #0] - 801b010: 3304 adds r3, #4 - 801b012: 681b ldr r3, [r3, #0] + 801b010: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801b014: f003 0304 and.w r3, r3, #4 + 801b018: 2b00 cmp r3, #0 + 801b01a: d00a beq.n 801b032 + ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) { + 801b01c: 4b0b ldr r3, [pc, #44] ; (801b04c ) + 801b01e: 681b ldr r3, [r3, #0] + 801b020: 3304 adds r3, #4 + 801b022: 681b ldr r3, [r3, #0] if ((netif_default == NULL) || !netif_is_up(netif_default) || !netif_is_link_up(netif_default) || - 801b014: 2b00 cmp r3, #0 - 801b016: d004 beq.n 801b022 + 801b024: 2b00 cmp r3, #0 + 801b026: d004 beq.n 801b032 ip4_addr_isany_val(*netif_ip4_addr(netif_default)) || ip4_addr_isloopback(dest)) { - 801b018: 687b ldr r3, [r7, #4] - 801b01a: 681b ldr r3, [r3, #0] - 801b01c: b2db uxtb r3, r3 - 801b01e: 2b7f cmp r3, #127 ; 0x7f - 801b020: d101 bne.n 801b026 + 801b028: 687b ldr r3, [r7, #4] + 801b02a: 681b ldr r3, [r3, #0] + 801b02c: b2db uxtb r3, r3 + 801b02e: 2b7f cmp r3, #127 ; 0x7f + 801b030: d101 bne.n 801b036 If this is not good enough for you, use LWIP_HOOK_IP4_ROUTE() */ LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_route: No route to %"U16_F".%"U16_F".%"U16_F".%"U16_F"\n", ip4_addr1_16(dest), ip4_addr2_16(dest), ip4_addr3_16(dest), ip4_addr4_16(dest))); IP_STATS_INC(ip.rterr); MIB2_STATS_INC(mib2.ipoutnoroutes); return NULL; - 801b022: 2300 movs r3, #0 - 801b024: e001 b.n 801b02a + 801b032: 2300 movs r3, #0 + 801b034: e001 b.n 801b03a } return netif_default; - 801b026: 4b05 ldr r3, [pc, #20] ; (801b03c ) - 801b028: 681b ldr r3, [r3, #0] -} - 801b02a: 4618 mov r0, r3 - 801b02c: 3714 adds r7, #20 - 801b02e: 46bd mov sp, r7 - 801b030: f85d 7b04 ldr.w r7, [sp], #4 - 801b034: 4770 bx lr - 801b036: bf00 nop - 801b038: 2000f7e0 .word 0x2000f7e0 - 801b03c: 2000f7e4 .word 0x2000f7e4 - -0801b040 : + 801b036: 4b05 ldr r3, [pc, #20] ; (801b04c ) + 801b038: 681b ldr r3, [r3, #0] +} + 801b03a: 4618 mov r0, r3 + 801b03c: 3714 adds r7, #20 + 801b03e: 46bd mov sp, r7 + 801b040: f85d 7b04 ldr.w r7, [sp], #4 + 801b044: 4770 bx lr + 801b046: bf00 nop + 801b048: 2000f7e0 .word 0x2000f7e0 + 801b04c: 2000f7e4 .word 0x2000f7e4 + +0801b050 : #endif /* IP_FORWARD */ /** Return true if the current input packet should be accepted on this netif */ static int ip4_input_accept(struct netif *netif) { - 801b040: b580 push {r7, lr} - 801b042: b082 sub sp, #8 - 801b044: af00 add r7, sp, #0 - 801b046: 6078 str r0, [r7, #4] + 801b050: b580 push {r7, lr} + 801b052: b082 sub sp, #8 + 801b054: af00 add r7, sp, #0 + 801b056: 6078 str r0, [r7, #4] ip4_addr_get_u32(ip4_current_dest_addr()) & ip4_addr_get_u32(netif_ip4_netmask(netif)), ip4_addr_get_u32(netif_ip4_addr(netif)) & ip4_addr_get_u32(netif_ip4_netmask(netif)), ip4_addr_get_u32(ip4_current_dest_addr()) & ~ip4_addr_get_u32(netif_ip4_netmask(netif)))); /* interface is up and configured? */ if ((netif_is_up(netif)) && (!ip4_addr_isany_val(*netif_ip4_addr(netif)))) { - 801b048: 687b ldr r3, [r7, #4] - 801b04a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801b04e: f003 0301 and.w r3, r3, #1 - 801b052: b2db uxtb r3, r3 - 801b054: 2b00 cmp r3, #0 - 801b056: d016 beq.n 801b086 801b058: 687b ldr r3, [r7, #4] - 801b05a: 3304 adds r3, #4 - 801b05c: 681b ldr r3, [r3, #0] - 801b05e: 2b00 cmp r3, #0 - 801b060: d011 beq.n 801b086 + 801b05a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801b05e: f003 0301 and.w r3, r3, #1 + 801b062: b2db uxtb r3, r3 + 801b064: 2b00 cmp r3, #0 + 801b066: d016 beq.n 801b096 + 801b068: 687b ldr r3, [r7, #4] + 801b06a: 3304 adds r3, #4 + 801b06c: 681b ldr r3, [r3, #0] + 801b06e: 2b00 cmp r3, #0 + 801b070: d011 beq.n 801b096 /* unicast to this interface address? */ if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) || - 801b062: 4b0b ldr r3, [pc, #44] ; (801b090 ) - 801b064: 695a ldr r2, [r3, #20] - 801b066: 687b ldr r3, [r7, #4] - 801b068: 3304 adds r3, #4 - 801b06a: 681b ldr r3, [r3, #0] - 801b06c: 429a cmp r2, r3 - 801b06e: d008 beq.n 801b082 + 801b072: 4b0b ldr r3, [pc, #44] ; (801b0a0 ) + 801b074: 695a ldr r2, [r3, #20] + 801b076: 687b ldr r3, [r7, #4] + 801b078: 3304 adds r3, #4 + 801b07a: 681b ldr r3, [r3, #0] + 801b07c: 429a cmp r2, r3 + 801b07e: d008 beq.n 801b092 /* or broadcast on this interface network address? */ ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) - 801b070: 4b07 ldr r3, [pc, #28] ; (801b090 ) - 801b072: 695b ldr r3, [r3, #20] - 801b074: 6879 ldr r1, [r7, #4] - 801b076: 4618 mov r0, r3 - 801b078: f000 fa24 bl 801b4c4 - 801b07c: 4603 mov r3, r0 + 801b080: 4b07 ldr r3, [pc, #28] ; (801b0a0 ) + 801b082: 695b ldr r3, [r3, #20] + 801b084: 6879 ldr r1, [r7, #4] + 801b086: 4618 mov r0, r3 + 801b088: f000 fa24 bl 801b4d4 + 801b08c: 4603 mov r3, r0 if (ip4_addr_cmp(ip4_current_dest_addr(), netif_ip4_addr(netif)) || - 801b07e: 2b00 cmp r3, #0 - 801b080: d001 beq.n 801b086 + 801b08e: 2b00 cmp r3, #0 + 801b090: d001 beq.n 801b096 #endif /* LWIP_NETIF_LOOPBACK && !LWIP_HAVE_LOOPIF */ ) { LWIP_DEBUGF(IP_DEBUG, ("ip4_input: packet accepted on interface %c%c\n", netif->name[0], netif->name[1])); /* accept on this netif */ return 1; - 801b082: 2301 movs r3, #1 - 801b084: e000 b.n 801b088 + 801b092: 2301 movs r3, #1 + 801b094: e000 b.n 801b098 /* accept on this netif */ return 1; } #endif /* LWIP_AUTOIP */ } return 0; - 801b086: 2300 movs r3, #0 + 801b096: 2300 movs r3, #0 } - 801b088: 4618 mov r0, r3 - 801b08a: 3708 adds r7, #8 - 801b08c: 46bd mov sp, r7 - 801b08e: bd80 pop {r7, pc} - 801b090: 2000c0bc .word 0x2000c0bc + 801b098: 4618 mov r0, r3 + 801b09a: 3708 adds r7, #8 + 801b09c: 46bd mov sp, r7 + 801b09e: bd80 pop {r7, pc} + 801b0a0: 2000c0bc .word 0x2000c0bc -0801b094 : +0801b0a4 : * @return ERR_OK if the packet was processed (could return ERR_* if it wasn't * processed, but currently always returns ERR_OK) */ err_t ip4_input(struct pbuf *p, struct netif *inp) { - 801b094: b580 push {r7, lr} - 801b096: b088 sub sp, #32 - 801b098: af00 add r7, sp, #0 - 801b09a: 6078 str r0, [r7, #4] - 801b09c: 6039 str r1, [r7, #0] + 801b0a4: b580 push {r7, lr} + 801b0a6: b088 sub sp, #32 + 801b0a8: af00 add r7, sp, #0 + 801b0aa: 6078 str r0, [r7, #4] + 801b0ac: 6039 str r1, [r7, #0] const struct ip_hdr *iphdr; struct netif *netif; u16_t iphdr_hlen; u16_t iphdr_len; #if IP_ACCEPT_LINK_LAYER_ADDRESSING || LWIP_IGMP int check_ip_src = 1; - 801b09e: 2301 movs r3, #1 - 801b0a0: 617b str r3, [r7, #20] + 801b0ae: 2301 movs r3, #1 + 801b0b0: 617b str r3, [r7, #20] IP_STATS_INC(ip.recv); MIB2_STATS_INC(mib2.ipinreceives); /* identify the IP header */ iphdr = (struct ip_hdr *)p->payload; - 801b0a2: 687b ldr r3, [r7, #4] - 801b0a4: 685b ldr r3, [r3, #4] - 801b0a6: 61fb str r3, [r7, #28] + 801b0b2: 687b ldr r3, [r7, #4] + 801b0b4: 685b ldr r3, [r3, #4] + 801b0b6: 61fb str r3, [r7, #28] if (IPH_V(iphdr) != 4) { - 801b0a8: 69fb ldr r3, [r7, #28] - 801b0aa: 781b ldrb r3, [r3, #0] - 801b0ac: 091b lsrs r3, r3, #4 - 801b0ae: b2db uxtb r3, r3 - 801b0b0: 2b04 cmp r3, #4 - 801b0b2: d004 beq.n 801b0be + 801b0b8: 69fb ldr r3, [r7, #28] + 801b0ba: 781b ldrb r3, [r3, #0] + 801b0bc: 091b lsrs r3, r3, #4 + 801b0be: b2db uxtb r3, r3 + 801b0c0: 2b04 cmp r3, #4 + 801b0c2: d004 beq.n 801b0ce LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_WARNING, ("IP packet dropped due to bad version number %"U16_F"\n", (u16_t)IPH_V(iphdr))); ip4_debug_print(p); pbuf_free(p); - 801b0b4: 6878 ldr r0, [r7, #4] - 801b0b6: f7f6 fd97 bl 8011be8 + 801b0c4: 6878 ldr r0, [r7, #4] + 801b0c6: f7f6 fd97 bl 8011bf8 IP_STATS_INC(ip.err); IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipinhdrerrors); return ERR_OK; - 801b0ba: 2300 movs r3, #0 - 801b0bc: e121 b.n 801b302 + 801b0ca: 2300 movs r3, #0 + 801b0cc: e121 b.n 801b312 return ERR_OK; } #endif /* obtain IP header length in bytes */ iphdr_hlen = IPH_HL_BYTES(iphdr); - 801b0be: 69fb ldr r3, [r7, #28] - 801b0c0: 781b ldrb r3, [r3, #0] - 801b0c2: f003 030f and.w r3, r3, #15 - 801b0c6: b2db uxtb r3, r3 - 801b0c8: 009b lsls r3, r3, #2 - 801b0ca: b2db uxtb r3, r3 - 801b0cc: 827b strh r3, [r7, #18] + 801b0ce: 69fb ldr r3, [r7, #28] + 801b0d0: 781b ldrb r3, [r3, #0] + 801b0d2: f003 030f and.w r3, r3, #15 + 801b0d6: b2db uxtb r3, r3 + 801b0d8: 009b lsls r3, r3, #2 + 801b0da: b2db uxtb r3, r3 + 801b0dc: 827b strh r3, [r7, #18] /* obtain ip length in bytes */ iphdr_len = lwip_ntohs(IPH_LEN(iphdr)); - 801b0ce: 69fb ldr r3, [r7, #28] - 801b0d0: 885b ldrh r3, [r3, #2] - 801b0d2: b29b uxth r3, r3 - 801b0d4: 4618 mov r0, r3 - 801b0d6: f7f5 f9d3 bl 8010480 - 801b0da: 4603 mov r3, r0 - 801b0dc: 823b strh r3, [r7, #16] + 801b0de: 69fb ldr r3, [r7, #28] + 801b0e0: 885b ldrh r3, [r3, #2] + 801b0e2: b29b uxth r3, r3 + 801b0e4: 4618 mov r0, r3 + 801b0e6: f7f5 f9d3 bl 8010490 + 801b0ea: 4603 mov r3, r0 + 801b0ec: 823b strh r3, [r7, #16] /* Trim pbuf. This is especially required for packets < 60 bytes. */ if (iphdr_len < p->tot_len) { - 801b0de: 687b ldr r3, [r7, #4] - 801b0e0: 891b ldrh r3, [r3, #8] - 801b0e2: 8a3a ldrh r2, [r7, #16] - 801b0e4: 429a cmp r2, r3 - 801b0e6: d204 bcs.n 801b0f2 + 801b0ee: 687b ldr r3, [r7, #4] + 801b0f0: 891b ldrh r3, [r3, #8] + 801b0f2: 8a3a ldrh r2, [r7, #16] + 801b0f4: 429a cmp r2, r3 + 801b0f6: d204 bcs.n 801b102 pbuf_realloc(p, iphdr_len); - 801b0e8: 8a3b ldrh r3, [r7, #16] - 801b0ea: 4619 mov r1, r3 - 801b0ec: 6878 ldr r0, [r7, #4] - 801b0ee: f7f6 fbf5 bl 80118dc + 801b0f8: 8a3b ldrh r3, [r7, #16] + 801b0fa: 4619 mov r1, r3 + 801b0fc: 6878 ldr r0, [r7, #4] + 801b0fe: f7f6 fbf5 bl 80118ec } /* header length exceeds first pbuf length, or ip length exceeds total pbuf length? */ if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) { - 801b0f2: 687b ldr r3, [r7, #4] - 801b0f4: 895b ldrh r3, [r3, #10] - 801b0f6: 8a7a ldrh r2, [r7, #18] - 801b0f8: 429a cmp r2, r3 - 801b0fa: d807 bhi.n 801b10c - 801b0fc: 687b ldr r3, [r7, #4] - 801b0fe: 891b ldrh r3, [r3, #8] - 801b100: 8a3a ldrh r2, [r7, #16] - 801b102: 429a cmp r2, r3 - 801b104: d802 bhi.n 801b10c - 801b106: 8a7b ldrh r3, [r7, #18] - 801b108: 2b13 cmp r3, #19 - 801b10a: d804 bhi.n 801b116 + 801b102: 687b ldr r3, [r7, #4] + 801b104: 895b ldrh r3, [r3, #10] + 801b106: 8a7a ldrh r2, [r7, #18] + 801b108: 429a cmp r2, r3 + 801b10a: d807 bhi.n 801b11c + 801b10c: 687b ldr r3, [r7, #4] + 801b10e: 891b ldrh r3, [r3, #8] + 801b110: 8a3a ldrh r2, [r7, #16] + 801b112: 429a cmp r2, r3 + 801b114: d802 bhi.n 801b11c + 801b116: 8a7b ldrh r3, [r7, #18] + 801b118: 2b13 cmp r3, #19 + 801b11a: d804 bhi.n 801b126 LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("IP (len %"U16_F") is longer than pbuf (len %"U16_F"), IP packet dropped.\n", iphdr_len, p->tot_len)); } /* free (drop) packet pbufs */ pbuf_free(p); - 801b10c: 6878 ldr r0, [r7, #4] - 801b10e: f7f6 fd6b bl 8011be8 + 801b11c: 6878 ldr r0, [r7, #4] + 801b11e: f7f6 fd6b bl 8011bf8 IP_STATS_INC(ip.lenerr); IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipindiscards); return ERR_OK; - 801b112: 2300 movs r3, #0 - 801b114: e0f5 b.n 801b302 + 801b122: 2300 movs r3, #0 + 801b124: e0f5 b.n 801b312 } } #endif /* copy IP addresses to aligned ip_addr_t */ ip_addr_copy_from_ip4(ip_data.current_iphdr_dest, iphdr->dest); - 801b116: 69fb ldr r3, [r7, #28] - 801b118: 691b ldr r3, [r3, #16] - 801b11a: 4a7c ldr r2, [pc, #496] ; (801b30c ) - 801b11c: 6153 str r3, [r2, #20] + 801b126: 69fb ldr r3, [r7, #28] + 801b128: 691b ldr r3, [r3, #16] + 801b12a: 4a7c ldr r2, [pc, #496] ; (801b31c ) + 801b12c: 6153 str r3, [r2, #20] ip_addr_copy_from_ip4(ip_data.current_iphdr_src, iphdr->src); - 801b11e: 69fb ldr r3, [r7, #28] - 801b120: 68db ldr r3, [r3, #12] - 801b122: 4a7a ldr r2, [pc, #488] ; (801b30c ) - 801b124: 6113 str r3, [r2, #16] + 801b12e: 69fb ldr r3, [r7, #28] + 801b130: 68db ldr r3, [r3, #12] + 801b132: 4a7a ldr r2, [pc, #488] ; (801b31c ) + 801b134: 6113 str r3, [r2, #16] /* match packet against an interface, i.e. is this packet for us? */ if (ip4_addr_ismulticast(ip4_current_dest_addr())) { - 801b126: 4b79 ldr r3, [pc, #484] ; (801b30c ) - 801b128: 695b ldr r3, [r3, #20] - 801b12a: f003 03f0 and.w r3, r3, #240 ; 0xf0 - 801b12e: 2be0 cmp r3, #224 ; 0xe0 - 801b130: d112 bne.n 801b158 + 801b136: 4b79 ldr r3, [pc, #484] ; (801b31c ) + 801b138: 695b ldr r3, [r3, #20] + 801b13a: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 801b13e: 2be0 cmp r3, #224 ; 0xe0 + 801b140: d112 bne.n 801b168 netif = inp; } else { netif = NULL; } #else /* LWIP_IGMP */ if ((netif_is_up(inp)) && (!ip4_addr_isany_val(*netif_ip4_addr(inp)))) { - 801b132: 683b ldr r3, [r7, #0] - 801b134: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801b138: f003 0301 and.w r3, r3, #1 - 801b13c: b2db uxtb r3, r3 - 801b13e: 2b00 cmp r3, #0 - 801b140: d007 beq.n 801b152 801b142: 683b ldr r3, [r7, #0] - 801b144: 3304 adds r3, #4 - 801b146: 681b ldr r3, [r3, #0] - 801b148: 2b00 cmp r3, #0 - 801b14a: d002 beq.n 801b152 + 801b144: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801b148: f003 0301 and.w r3, r3, #1 + 801b14c: b2db uxtb r3, r3 + 801b14e: 2b00 cmp r3, #0 + 801b150: d007 beq.n 801b162 + 801b152: 683b ldr r3, [r7, #0] + 801b154: 3304 adds r3, #4 + 801b156: 681b ldr r3, [r3, #0] + 801b158: 2b00 cmp r3, #0 + 801b15a: d002 beq.n 801b162 netif = inp; - 801b14c: 683b ldr r3, [r7, #0] - 801b14e: 61bb str r3, [r7, #24] - 801b150: e02a b.n 801b1a8 + 801b15c: 683b ldr r3, [r7, #0] + 801b15e: 61bb str r3, [r7, #24] + 801b160: e02a b.n 801b1b8 } else { netif = NULL; - 801b152: 2300 movs r3, #0 - 801b154: 61bb str r3, [r7, #24] - 801b156: e027 b.n 801b1a8 + 801b162: 2300 movs r3, #0 + 801b164: 61bb str r3, [r7, #24] + 801b166: e027 b.n 801b1b8 } #endif /* LWIP_IGMP */ } else { /* start trying with inp. if that's not acceptable, start walking the list of configured netifs. */ if (ip4_input_accept(inp)) { - 801b158: 6838 ldr r0, [r7, #0] - 801b15a: f7ff ff71 bl 801b040 - 801b15e: 4603 mov r3, r0 - 801b160: 2b00 cmp r3, #0 - 801b162: d002 beq.n 801b16a + 801b168: 6838 ldr r0, [r7, #0] + 801b16a: f7ff ff71 bl 801b050 + 801b16e: 4603 mov r3, r0 + 801b170: 2b00 cmp r3, #0 + 801b172: d002 beq.n 801b17a netif = inp; - 801b164: 683b ldr r3, [r7, #0] - 801b166: 61bb str r3, [r7, #24] - 801b168: e01e b.n 801b1a8 + 801b174: 683b ldr r3, [r7, #0] + 801b176: 61bb str r3, [r7, #24] + 801b178: e01e b.n 801b1b8 } else { netif = NULL; - 801b16a: 2300 movs r3, #0 - 801b16c: 61bb str r3, [r7, #24] + 801b17a: 2300 movs r3, #0 + 801b17c: 61bb str r3, [r7, #24] #if !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF /* Packets sent to the loopback address must not be accepted on an * interface that does not have the loopback address assigned to it, * unless a non-loopback interface is used for loopback traffic. */ if (!ip4_addr_isloopback(ip4_current_dest_addr())) - 801b16e: 4b67 ldr r3, [pc, #412] ; (801b30c ) - 801b170: 695b ldr r3, [r3, #20] - 801b172: b2db uxtb r3, r3 - 801b174: 2b7f cmp r3, #127 ; 0x7f - 801b176: d017 beq.n 801b1a8 + 801b17e: 4b67 ldr r3, [pc, #412] ; (801b31c ) + 801b180: 695b ldr r3, [r3, #20] + 801b182: b2db uxtb r3, r3 + 801b184: 2b7f cmp r3, #127 ; 0x7f + 801b186: d017 beq.n 801b1b8 #endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */ { #if !LWIP_SINGLE_NETIF NETIF_FOREACH(netif) { - 801b178: 4b65 ldr r3, [pc, #404] ; (801b310 ) - 801b17a: 681b ldr r3, [r3, #0] - 801b17c: 61bb str r3, [r7, #24] - 801b17e: e00e b.n 801b19e + 801b188: 4b65 ldr r3, [pc, #404] ; (801b320 ) + 801b18a: 681b ldr r3, [r3, #0] + 801b18c: 61bb str r3, [r7, #24] + 801b18e: e00e b.n 801b1ae if (netif == inp) { - 801b180: 69ba ldr r2, [r7, #24] - 801b182: 683b ldr r3, [r7, #0] - 801b184: 429a cmp r2, r3 - 801b186: d006 beq.n 801b196 + 801b190: 69ba ldr r2, [r7, #24] + 801b192: 683b ldr r3, [r7, #0] + 801b194: 429a cmp r2, r3 + 801b196: d006 beq.n 801b1a6 /* we checked that before already */ continue; } if (ip4_input_accept(netif)) { - 801b188: 69b8 ldr r0, [r7, #24] - 801b18a: f7ff ff59 bl 801b040 - 801b18e: 4603 mov r3, r0 - 801b190: 2b00 cmp r3, #0 - 801b192: d108 bne.n 801b1a6 - 801b194: e000 b.n 801b198 + 801b198: 69b8 ldr r0, [r7, #24] + 801b19a: f7ff ff59 bl 801b050 + 801b19e: 4603 mov r3, r0 + 801b1a0: 2b00 cmp r3, #0 + 801b1a2: d108 bne.n 801b1b6 + 801b1a4: e000 b.n 801b1a8 continue; - 801b196: bf00 nop + 801b1a6: bf00 nop NETIF_FOREACH(netif) { - 801b198: 69bb ldr r3, [r7, #24] - 801b19a: 681b ldr r3, [r3, #0] - 801b19c: 61bb str r3, [r7, #24] - 801b19e: 69bb ldr r3, [r7, #24] - 801b1a0: 2b00 cmp r3, #0 - 801b1a2: d1ed bne.n 801b180 - 801b1a4: e000 b.n 801b1a8 + 801b1a8: 69bb ldr r3, [r7, #24] + 801b1aa: 681b ldr r3, [r3, #0] + 801b1ac: 61bb str r3, [r7, #24] + 801b1ae: 69bb ldr r3, [r7, #24] + 801b1b0: 2b00 cmp r3, #0 + 801b1b2: d1ed bne.n 801b190 + 801b1b4: e000 b.n 801b1b8 break; - 801b1a6: bf00 nop + 801b1b6: bf00 nop * If you want to accept private broadcast communication while a netif is down, * define LWIP_IP_ACCEPT_UDP_PORT(dst_port), e.g.: * * #define LWIP_IP_ACCEPT_UDP_PORT(dst_port) ((dst_port) == PP_NTOHS(12345)) */ if (netif == NULL) { - 801b1a8: 69bb ldr r3, [r7, #24] - 801b1aa: 2b00 cmp r3, #0 - 801b1ac: d111 bne.n 801b1d2 + 801b1b8: 69bb ldr r3, [r7, #24] + 801b1ba: 2b00 cmp r3, #0 + 801b1bc: d111 bne.n 801b1e2 /* remote port is DHCP server? */ if (IPH_PROTO(iphdr) == IP_PROTO_UDP) { - 801b1ae: 69fb ldr r3, [r7, #28] - 801b1b0: 7a5b ldrb r3, [r3, #9] - 801b1b2: 2b11 cmp r3, #17 - 801b1b4: d10d bne.n 801b1d2 + 801b1be: 69fb ldr r3, [r7, #28] + 801b1c0: 7a5b ldrb r3, [r3, #9] + 801b1c2: 2b11 cmp r3, #17 + 801b1c4: d10d bne.n 801b1e2 const struct udp_hdr *udphdr = (const struct udp_hdr *)((const u8_t *)iphdr + iphdr_hlen); - 801b1b6: 8a7b ldrh r3, [r7, #18] - 801b1b8: 69fa ldr r2, [r7, #28] - 801b1ba: 4413 add r3, r2 - 801b1bc: 60fb str r3, [r7, #12] + 801b1c6: 8a7b ldrh r3, [r7, #18] + 801b1c8: 69fa ldr r2, [r7, #28] + 801b1ca: 4413 add r3, r2 + 801b1cc: 60fb str r3, [r7, #12] LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: UDP packet to DHCP client port %"U16_F"\n", lwip_ntohs(udphdr->dest))); if (IP_ACCEPT_LINK_LAYER_ADDRESSED_PORT(udphdr->dest)) { - 801b1be: 68fb ldr r3, [r7, #12] - 801b1c0: 885b ldrh r3, [r3, #2] - 801b1c2: b29b uxth r3, r3 - 801b1c4: f5b3 4f88 cmp.w r3, #17408 ; 0x4400 - 801b1c8: d103 bne.n 801b1d2 + 801b1ce: 68fb ldr r3, [r7, #12] + 801b1d0: 885b ldrh r3, [r3, #2] + 801b1d2: b29b uxth r3, r3 + 801b1d4: f5b3 4f88 cmp.w r3, #17408 ; 0x4400 + 801b1d8: d103 bne.n 801b1e2 LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE, ("ip4_input: DHCP packet accepted.\n")); netif = inp; - 801b1ca: 683b ldr r3, [r7, #0] - 801b1cc: 61bb str r3, [r7, #24] + 801b1da: 683b ldr r3, [r7, #0] + 801b1dc: 61bb str r3, [r7, #24] check_ip_src = 0; - 801b1ce: 2300 movs r3, #0 - 801b1d0: 617b str r3, [r7, #20] + 801b1de: 2300 movs r3, #0 + 801b1e0: 617b str r3, [r7, #20] } #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */ /* broadcast or multicast packet source address? Compliant with RFC 1122: 3.2.1.3 */ #if LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING if (check_ip_src - 801b1d2: 697b ldr r3, [r7, #20] - 801b1d4: 2b00 cmp r3, #0 - 801b1d6: d017 beq.n 801b208 + 801b1e2: 697b ldr r3, [r7, #20] + 801b1e4: 2b00 cmp r3, #0 + 801b1e6: d017 beq.n 801b218 #if IP_ACCEPT_LINK_LAYER_ADDRESSING /* DHCP servers need 0.0.0.0 to be allowed as source address (RFC 1.1.2.2: 3.2.1.3/a) */ && !ip4_addr_isany_val(*ip4_current_src_addr()) - 801b1d8: 4b4c ldr r3, [pc, #304] ; (801b30c ) - 801b1da: 691b ldr r3, [r3, #16] - 801b1dc: 2b00 cmp r3, #0 - 801b1de: d013 beq.n 801b208 + 801b1e8: 4b4c ldr r3, [pc, #304] ; (801b31c ) + 801b1ea: 691b ldr r3, [r3, #16] + 801b1ec: 2b00 cmp r3, #0 + 801b1ee: d013 beq.n 801b218 #endif /* IP_ACCEPT_LINK_LAYER_ADDRESSING */ ) #endif /* LWIP_IGMP || IP_ACCEPT_LINK_LAYER_ADDRESSING */ { if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) || - 801b1e0: 4b4a ldr r3, [pc, #296] ; (801b30c ) - 801b1e2: 691b ldr r3, [r3, #16] - 801b1e4: 6839 ldr r1, [r7, #0] - 801b1e6: 4618 mov r0, r3 - 801b1e8: f000 f96c bl 801b4c4 - 801b1ec: 4603 mov r3, r0 - 801b1ee: 2b00 cmp r3, #0 - 801b1f0: d105 bne.n 801b1fe + 801b1f0: 4b4a ldr r3, [pc, #296] ; (801b31c ) + 801b1f2: 691b ldr r3, [r3, #16] + 801b1f4: 6839 ldr r1, [r7, #0] + 801b1f6: 4618 mov r0, r3 + 801b1f8: f000 f96c bl 801b4d4 + 801b1fc: 4603 mov r3, r0 + 801b1fe: 2b00 cmp r3, #0 + 801b200: d105 bne.n 801b20e (ip4_addr_ismulticast(ip4_current_src_addr()))) { - 801b1f2: 4b46 ldr r3, [pc, #280] ; (801b30c ) - 801b1f4: 691b ldr r3, [r3, #16] - 801b1f6: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 801b202: 4b46 ldr r3, [pc, #280] ; (801b31c ) + 801b204: 691b ldr r3, [r3, #16] + 801b206: f003 03f0 and.w r3, r3, #240 ; 0xf0 if ((ip4_addr_isbroadcast(ip4_current_src_addr(), inp)) || - 801b1fa: 2be0 cmp r3, #224 ; 0xe0 - 801b1fc: d104 bne.n 801b208 + 801b20a: 2be0 cmp r3, #224 ; 0xe0 + 801b20c: d104 bne.n 801b218 /* packet source is not valid */ LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_WARNING, ("ip4_input: packet source is not valid.\n")); /* free (drop) packet pbufs */ pbuf_free(p); - 801b1fe: 6878 ldr r0, [r7, #4] - 801b200: f7f6 fcf2 bl 8011be8 + 801b20e: 6878 ldr r0, [r7, #4] + 801b210: f7f6 fcf2 bl 8011bf8 IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipinaddrerrors); MIB2_STATS_INC(mib2.ipindiscards); return ERR_OK; - 801b204: 2300 movs r3, #0 - 801b206: e07c b.n 801b302 + 801b214: 2300 movs r3, #0 + 801b216: e07c b.n 801b312 } } /* packet not for us? */ if (netif == NULL) { - 801b208: 69bb ldr r3, [r7, #24] - 801b20a: 2b00 cmp r3, #0 - 801b20c: d104 bne.n 801b218 + 801b218: 69bb ldr r3, [r7, #24] + 801b21a: 2b00 cmp r3, #0 + 801b21c: d104 bne.n 801b228 { IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipinaddrerrors); MIB2_STATS_INC(mib2.ipindiscards); } pbuf_free(p); - 801b20e: 6878 ldr r0, [r7, #4] - 801b210: f7f6 fcea bl 8011be8 + 801b21e: 6878 ldr r0, [r7, #4] + 801b220: f7f6 fcea bl 8011bf8 return ERR_OK; - 801b214: 2300 movs r3, #0 - 801b216: e074 b.n 801b302 + 801b224: 2300 movs r3, #0 + 801b226: e074 b.n 801b312 } /* packet consists of multiple fragments? */ if ((IPH_OFFSET(iphdr) & PP_HTONS(IP_OFFMASK | IP_MF)) != 0) { - 801b218: 69fb ldr r3, [r7, #28] - 801b21a: 88db ldrh r3, [r3, #6] - 801b21c: b29b uxth r3, r3 - 801b21e: 461a mov r2, r3 - 801b220: f64f 733f movw r3, #65343 ; 0xff3f - 801b224: 4013 ands r3, r2 - 801b226: 2b00 cmp r3, #0 - 801b228: d00b beq.n 801b242 + 801b228: 69fb ldr r3, [r7, #28] + 801b22a: 88db ldrh r3, [r3, #6] + 801b22c: b29b uxth r3, r3 + 801b22e: 461a mov r2, r3 + 801b230: f64f 733f movw r3, #65343 ; 0xff3f + 801b234: 4013 ands r3, r2 + 801b236: 2b00 cmp r3, #0 + 801b238: d00b beq.n 801b252 #if IP_REASSEMBLY /* packet fragment reassembly code present? */ LWIP_DEBUGF(IP_DEBUG, ("IP packet is a fragment (id=0x%04"X16_F" tot_len=%"U16_F" len=%"U16_F" MF=%"U16_F" offset=%"U16_F"), calling ip4_reass()\n", lwip_ntohs(IPH_ID(iphdr)), p->tot_len, lwip_ntohs(IPH_LEN(iphdr)), (u16_t)!!(IPH_OFFSET(iphdr) & PP_HTONS(IP_MF)), (u16_t)((lwip_ntohs(IPH_OFFSET(iphdr)) & IP_OFFMASK) * 8))); /* reassemble the packet*/ p = ip4_reass(p); - 801b22a: 6878 ldr r0, [r7, #4] - 801b22c: f000 fc90 bl 801bb50 - 801b230: 6078 str r0, [r7, #4] + 801b23a: 6878 ldr r0, [r7, #4] + 801b23c: f000 fc90 bl 801bb60 + 801b240: 6078 str r0, [r7, #4] /* packet not fully reassembled yet? */ if (p == NULL) { - 801b232: 687b ldr r3, [r7, #4] - 801b234: 2b00 cmp r3, #0 - 801b236: d101 bne.n 801b23c + 801b242: 687b ldr r3, [r7, #4] + 801b244: 2b00 cmp r3, #0 + 801b246: d101 bne.n 801b24c return ERR_OK; - 801b238: 2300 movs r3, #0 - 801b23a: e062 b.n 801b302 + 801b248: 2300 movs r3, #0 + 801b24a: e062 b.n 801b312 } iphdr = (const struct ip_hdr *)p->payload; - 801b23c: 687b ldr r3, [r7, #4] - 801b23e: 685b ldr r3, [r3, #4] - 801b240: 61fb str r3, [r7, #28] + 801b24c: 687b ldr r3, [r7, #4] + 801b24e: 685b ldr r3, [r3, #4] + 801b250: 61fb str r3, [r7, #28] /* send to upper layers */ LWIP_DEBUGF(IP_DEBUG, ("ip4_input: \n")); ip4_debug_print(p); LWIP_DEBUGF(IP_DEBUG, ("ip4_input: p->len %"U16_F" p->tot_len %"U16_F"\n", p->len, p->tot_len)); ip_data.current_netif = netif; - 801b242: 4a32 ldr r2, [pc, #200] ; (801b30c ) - 801b244: 69bb ldr r3, [r7, #24] - 801b246: 6013 str r3, [r2, #0] + 801b252: 4a32 ldr r2, [pc, #200] ; (801b31c ) + 801b254: 69bb ldr r3, [r7, #24] + 801b256: 6013 str r3, [r2, #0] ip_data.current_input_netif = inp; - 801b248: 4a30 ldr r2, [pc, #192] ; (801b30c ) - 801b24a: 683b ldr r3, [r7, #0] - 801b24c: 6053 str r3, [r2, #4] + 801b258: 4a30 ldr r2, [pc, #192] ; (801b31c ) + 801b25a: 683b ldr r3, [r7, #0] + 801b25c: 6053 str r3, [r2, #4] ip_data.current_ip4_header = iphdr; - 801b24e: 4a2f ldr r2, [pc, #188] ; (801b30c ) - 801b250: 69fb ldr r3, [r7, #28] - 801b252: 6093 str r3, [r2, #8] + 801b25e: 4a2f ldr r2, [pc, #188] ; (801b31c ) + 801b260: 69fb ldr r3, [r7, #28] + 801b262: 6093 str r3, [r2, #8] ip_data.current_ip_header_tot_len = IPH_HL_BYTES(iphdr); - 801b254: 69fb ldr r3, [r7, #28] - 801b256: 781b ldrb r3, [r3, #0] - 801b258: f003 030f and.w r3, r3, #15 - 801b25c: b2db uxtb r3, r3 - 801b25e: 009b lsls r3, r3, #2 - 801b260: b2db uxtb r3, r3 - 801b262: b29a uxth r2, r3 - 801b264: 4b29 ldr r3, [pc, #164] ; (801b30c ) - 801b266: 819a strh r2, [r3, #12] + 801b264: 69fb ldr r3, [r7, #28] + 801b266: 781b ldrb r3, [r3, #0] + 801b268: f003 030f and.w r3, r3, #15 + 801b26c: b2db uxtb r3, r3 + 801b26e: 009b lsls r3, r3, #2 + 801b270: b2db uxtb r3, r3 + 801b272: b29a uxth r2, r3 + 801b274: 4b29 ldr r3, [pc, #164] ; (801b31c ) + 801b276: 819a strh r2, [r3, #12] /* raw input did not eat the packet? */ raw_status = raw_input(p, inp); if (raw_status != RAW_INPUT_EATEN) #endif /* LWIP_RAW */ { pbuf_remove_header(p, iphdr_hlen); /* Move to payload, no check necessary. */ - 801b268: 8a7b ldrh r3, [r7, #18] - 801b26a: 4619 mov r1, r3 - 801b26c: 6878 ldr r0, [r7, #4] - 801b26e: f7f6 fc35 bl 8011adc + 801b278: 8a7b ldrh r3, [r7, #18] + 801b27a: 4619 mov r1, r3 + 801b27c: 6878 ldr r0, [r7, #4] + 801b27e: f7f6 fc35 bl 8011aec switch (IPH_PROTO(iphdr)) { - 801b272: 69fb ldr r3, [r7, #28] - 801b274: 7a5b ldrb r3, [r3, #9] - 801b276: 2b06 cmp r3, #6 - 801b278: d009 beq.n 801b28e - 801b27a: 2b11 cmp r3, #17 - 801b27c: d002 beq.n 801b284 - 801b27e: 2b01 cmp r3, #1 - 801b280: d00a beq.n 801b298 - 801b282: e00e b.n 801b2a2 + 801b282: 69fb ldr r3, [r7, #28] + 801b284: 7a5b ldrb r3, [r3, #9] + 801b286: 2b06 cmp r3, #6 + 801b288: d009 beq.n 801b29e + 801b28a: 2b11 cmp r3, #17 + 801b28c: d002 beq.n 801b294 + 801b28e: 2b01 cmp r3, #1 + 801b290: d00a beq.n 801b2a8 + 801b292: e00e b.n 801b2b2 case IP_PROTO_UDP: #if LWIP_UDPLITE case IP_PROTO_UDPLITE: #endif /* LWIP_UDPLITE */ MIB2_STATS_INC(mib2.ipindelivers); udp_input(p, inp); - 801b284: 6839 ldr r1, [r7, #0] - 801b286: 6878 ldr r0, [r7, #4] - 801b288: f7fc fada bl 8017840 + 801b294: 6839 ldr r1, [r7, #0] + 801b296: 6878 ldr r0, [r7, #4] + 801b298: f7fc fada bl 8017850 break; - 801b28c: e026 b.n 801b2dc + 801b29c: e026 b.n 801b2ec #endif /* LWIP_UDP */ #if LWIP_TCP case IP_PROTO_TCP: MIB2_STATS_INC(mib2.ipindelivers); tcp_input(p, inp); - 801b28e: 6839 ldr r1, [r7, #0] - 801b290: 6878 ldr r0, [r7, #4] - 801b292: f7f8 fae1 bl 8013858 + 801b29e: 6839 ldr r1, [r7, #0] + 801b2a0: 6878 ldr r0, [r7, #4] + 801b2a2: f7f8 fae1 bl 8013868 break; - 801b296: e021 b.n 801b2dc + 801b2a6: e021 b.n 801b2ec #endif /* LWIP_TCP */ #if LWIP_ICMP case IP_PROTO_ICMP: MIB2_STATS_INC(mib2.ipindelivers); icmp_input(p, inp); - 801b298: 6839 ldr r1, [r7, #0] - 801b29a: 6878 ldr r0, [r7, #4] - 801b29c: f7ff fcd2 bl 801ac44 + 801b2a8: 6839 ldr r1, [r7, #0] + 801b2aa: 6878 ldr r0, [r7, #4] + 801b2ac: f7ff fcd2 bl 801ac54 break; - 801b2a0: e01c b.n 801b2dc + 801b2b0: e01c b.n 801b2ec } else #endif /* LWIP_RAW */ { #if LWIP_ICMP /* send ICMP destination protocol unreachable unless is was a broadcast */ if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) && - 801b2a2: 4b1a ldr r3, [pc, #104] ; (801b30c ) - 801b2a4: 695b ldr r3, [r3, #20] - 801b2a6: 69b9 ldr r1, [r7, #24] - 801b2a8: 4618 mov r0, r3 - 801b2aa: f000 f90b bl 801b4c4 - 801b2ae: 4603 mov r3, r0 - 801b2b0: 2b00 cmp r3, #0 - 801b2b2: d10f bne.n 801b2d4 + 801b2b2: 4b1a ldr r3, [pc, #104] ; (801b31c ) + 801b2b4: 695b ldr r3, [r3, #20] + 801b2b6: 69b9 ldr r1, [r7, #24] + 801b2b8: 4618 mov r0, r3 + 801b2ba: f000 f90b bl 801b4d4 + 801b2be: 4603 mov r3, r0 + 801b2c0: 2b00 cmp r3, #0 + 801b2c2: d10f bne.n 801b2e4 !ip4_addr_ismulticast(ip4_current_dest_addr())) { - 801b2b4: 4b15 ldr r3, [pc, #84] ; (801b30c ) - 801b2b6: 695b ldr r3, [r3, #20] - 801b2b8: f003 03f0 and.w r3, r3, #240 ; 0xf0 + 801b2c4: 4b15 ldr r3, [pc, #84] ; (801b31c ) + 801b2c6: 695b ldr r3, [r3, #20] + 801b2c8: f003 03f0 and.w r3, r3, #240 ; 0xf0 if (!ip4_addr_isbroadcast(ip4_current_dest_addr(), netif) && - 801b2bc: 2be0 cmp r3, #224 ; 0xe0 - 801b2be: d009 beq.n 801b2d4 + 801b2cc: 2be0 cmp r3, #224 ; 0xe0 + 801b2ce: d009 beq.n 801b2e4 pbuf_header_force(p, (s16_t)iphdr_hlen); /* Move to ip header, no check necessary. */ - 801b2c0: f9b7 3012 ldrsh.w r3, [r7, #18] - 801b2c4: 4619 mov r1, r3 - 801b2c6: 6878 ldr r0, [r7, #4] - 801b2c8: f7f6 fc7b bl 8011bc2 + 801b2d0: f9b7 3012 ldrsh.w r3, [r7, #18] + 801b2d4: 4619 mov r1, r3 + 801b2d6: 6878 ldr r0, [r7, #4] + 801b2d8: f7f6 fc7b bl 8011bd2 icmp_dest_unreach(p, ICMP_DUR_PROTO); - 801b2cc: 2102 movs r1, #2 - 801b2ce: 6878 ldr r0, [r7, #4] - 801b2d0: f7ff fdbc bl 801ae4c + 801b2dc: 2102 movs r1, #2 + 801b2de: 6878 ldr r0, [r7, #4] + 801b2e0: f7ff fdbc bl 801ae5c IP_STATS_INC(ip.proterr); IP_STATS_INC(ip.drop); MIB2_STATS_INC(mib2.ipinunknownprotos); } pbuf_free(p); - 801b2d4: 6878 ldr r0, [r7, #4] - 801b2d6: f7f6 fc87 bl 8011be8 + 801b2e4: 6878 ldr r0, [r7, #4] + 801b2e6: f7f6 fc87 bl 8011bf8 break; - 801b2da: bf00 nop + 801b2ea: bf00 nop } } /* @todo: this is not really necessary... */ ip_data.current_netif = NULL; - 801b2dc: 4b0b ldr r3, [pc, #44] ; (801b30c ) - 801b2de: 2200 movs r2, #0 - 801b2e0: 601a str r2, [r3, #0] + 801b2ec: 4b0b ldr r3, [pc, #44] ; (801b31c ) + 801b2ee: 2200 movs r2, #0 + 801b2f0: 601a str r2, [r3, #0] ip_data.current_input_netif = NULL; - 801b2e2: 4b0a ldr r3, [pc, #40] ; (801b30c ) - 801b2e4: 2200 movs r2, #0 - 801b2e6: 605a str r2, [r3, #4] + 801b2f2: 4b0a ldr r3, [pc, #40] ; (801b31c ) + 801b2f4: 2200 movs r2, #0 + 801b2f6: 605a str r2, [r3, #4] ip_data.current_ip4_header = NULL; - 801b2e8: 4b08 ldr r3, [pc, #32] ; (801b30c ) - 801b2ea: 2200 movs r2, #0 - 801b2ec: 609a str r2, [r3, #8] + 801b2f8: 4b08 ldr r3, [pc, #32] ; (801b31c ) + 801b2fa: 2200 movs r2, #0 + 801b2fc: 609a str r2, [r3, #8] ip_data.current_ip_header_tot_len = 0; - 801b2ee: 4b07 ldr r3, [pc, #28] ; (801b30c ) - 801b2f0: 2200 movs r2, #0 - 801b2f2: 819a strh r2, [r3, #12] + 801b2fe: 4b07 ldr r3, [pc, #28] ; (801b31c ) + 801b300: 2200 movs r2, #0 + 801b302: 819a strh r2, [r3, #12] ip4_addr_set_any(ip4_current_src_addr()); - 801b2f4: 4b05 ldr r3, [pc, #20] ; (801b30c ) - 801b2f6: 2200 movs r2, #0 - 801b2f8: 611a str r2, [r3, #16] + 801b304: 4b05 ldr r3, [pc, #20] ; (801b31c ) + 801b306: 2200 movs r2, #0 + 801b308: 611a str r2, [r3, #16] ip4_addr_set_any(ip4_current_dest_addr()); - 801b2fa: 4b04 ldr r3, [pc, #16] ; (801b30c ) - 801b2fc: 2200 movs r2, #0 - 801b2fe: 615a str r2, [r3, #20] + 801b30a: 4b04 ldr r3, [pc, #16] ; (801b31c ) + 801b30c: 2200 movs r2, #0 + 801b30e: 615a str r2, [r3, #20] return ERR_OK; - 801b300: 2300 movs r3, #0 + 801b310: 2300 movs r3, #0 } - 801b302: 4618 mov r0, r3 - 801b304: 3720 adds r7, #32 - 801b306: 46bd mov sp, r7 - 801b308: bd80 pop {r7, pc} - 801b30a: bf00 nop - 801b30c: 2000c0bc .word 0x2000c0bc - 801b310: 2000f7e0 .word 0x2000f7e0 + 801b312: 4618 mov r0, r3 + 801b314: 3720 adds r7, #32 + 801b316: 46bd mov sp, r7 + 801b318: bd80 pop {r7, pc} + 801b31a: bf00 nop + 801b31c: 2000c0bc .word 0x2000c0bc + 801b320: 2000f7e0 .word 0x2000f7e0 -0801b314 : +0801b324 : */ err_t ip4_output_if(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) { - 801b314: b580 push {r7, lr} - 801b316: b08a sub sp, #40 ; 0x28 - 801b318: af04 add r7, sp, #16 - 801b31a: 60f8 str r0, [r7, #12] - 801b31c: 60b9 str r1, [r7, #8] - 801b31e: 607a str r2, [r7, #4] - 801b320: 70fb strb r3, [r7, #3] + 801b324: b580 push {r7, lr} + 801b326: b08a sub sp, #40 ; 0x28 + 801b328: af04 add r7, sp, #16 + 801b32a: 60f8 str r0, [r7, #12] + 801b32c: 60b9 str r1, [r7, #8] + 801b32e: 607a str r2, [r7, #4] + 801b330: 70fb strb r3, [r7, #3] ip4_output_if_opt(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif, void *ip_options, u16_t optlen) { #endif /* IP_OPTIONS_SEND */ const ip4_addr_t *src_used = src; - 801b322: 68bb ldr r3, [r7, #8] - 801b324: 617b str r3, [r7, #20] + 801b332: 68bb ldr r3, [r7, #8] + 801b334: 617b str r3, [r7, #20] if (dest != LWIP_IP_HDRINCL) { - 801b326: 687b ldr r3, [r7, #4] - 801b328: 2b00 cmp r3, #0 - 801b32a: d009 beq.n 801b340 + 801b336: 687b ldr r3, [r7, #4] + 801b338: 2b00 cmp r3, #0 + 801b33a: d009 beq.n 801b350 if (ip4_addr_isany(src)) { - 801b32c: 68bb ldr r3, [r7, #8] - 801b32e: 2b00 cmp r3, #0 - 801b330: d003 beq.n 801b33a - 801b332: 68bb ldr r3, [r7, #8] - 801b334: 681b ldr r3, [r3, #0] - 801b336: 2b00 cmp r3, #0 - 801b338: d102 bne.n 801b340 + 801b33c: 68bb ldr r3, [r7, #8] + 801b33e: 2b00 cmp r3, #0 + 801b340: d003 beq.n 801b34a + 801b342: 68bb ldr r3, [r7, #8] + 801b344: 681b ldr r3, [r3, #0] + 801b346: 2b00 cmp r3, #0 + 801b348: d102 bne.n 801b350 src_used = netif_ip4_addr(netif); - 801b33a: 6abb ldr r3, [r7, #40] ; 0x28 - 801b33c: 3304 adds r3, #4 - 801b33e: 617b str r3, [r7, #20] + 801b34a: 6abb ldr r3, [r7, #40] ; 0x28 + 801b34c: 3304 adds r3, #4 + 801b34e: 617b str r3, [r7, #20] #if IP_OPTIONS_SEND return ip4_output_if_opt_src(p, src_used, dest, ttl, tos, proto, netif, ip_options, optlen); #else /* IP_OPTIONS_SEND */ return ip4_output_if_src(p, src_used, dest, ttl, tos, proto, netif); - 801b340: 78fa ldrb r2, [r7, #3] - 801b342: 6abb ldr r3, [r7, #40] ; 0x28 - 801b344: 9302 str r3, [sp, #8] - 801b346: f897 3024 ldrb.w r3, [r7, #36] ; 0x24 - 801b34a: 9301 str r3, [sp, #4] - 801b34c: f897 3020 ldrb.w r3, [r7, #32] - 801b350: 9300 str r3, [sp, #0] - 801b352: 4613 mov r3, r2 - 801b354: 687a ldr r2, [r7, #4] - 801b356: 6979 ldr r1, [r7, #20] - 801b358: 68f8 ldr r0, [r7, #12] - 801b35a: f000 f805 bl 801b368 - 801b35e: 4603 mov r3, r0 + 801b350: 78fa ldrb r2, [r7, #3] + 801b352: 6abb ldr r3, [r7, #40] ; 0x28 + 801b354: 9302 str r3, [sp, #8] + 801b356: f897 3024 ldrb.w r3, [r7, #36] ; 0x24 + 801b35a: 9301 str r3, [sp, #4] + 801b35c: f897 3020 ldrb.w r3, [r7, #32] + 801b360: 9300 str r3, [sp, #0] + 801b362: 4613 mov r3, r2 + 801b364: 687a ldr r2, [r7, #4] + 801b366: 6979 ldr r1, [r7, #20] + 801b368: 68f8 ldr r0, [r7, #12] + 801b36a: f000 f805 bl 801b378 + 801b36e: 4603 mov r3, r0 #endif /* IP_OPTIONS_SEND */ } - 801b360: 4618 mov r0, r3 - 801b362: 3718 adds r7, #24 - 801b364: 46bd mov sp, r7 - 801b366: bd80 pop {r7, pc} + 801b370: 4618 mov r0, r3 + 801b372: 3718 adds r7, #24 + 801b374: 46bd mov sp, r7 + 801b376: bd80 pop {r7, pc} -0801b368 : +0801b378 : */ err_t ip4_output_if_src(struct pbuf *p, const ip4_addr_t *src, const ip4_addr_t *dest, u8_t ttl, u8_t tos, u8_t proto, struct netif *netif) { - 801b368: b580 push {r7, lr} - 801b36a: b088 sub sp, #32 - 801b36c: af00 add r7, sp, #0 - 801b36e: 60f8 str r0, [r7, #12] - 801b370: 60b9 str r1, [r7, #8] - 801b372: 607a str r2, [r7, #4] - 801b374: 70fb strb r3, [r7, #3] + 801b378: b580 push {r7, lr} + 801b37a: b088 sub sp, #32 + 801b37c: af00 add r7, sp, #0 + 801b37e: 60f8 str r0, [r7, #12] + 801b380: 60b9 str r1, [r7, #8] + 801b382: 607a str r2, [r7, #4] + 801b384: 70fb strb r3, [r7, #3] #if CHECKSUM_GEN_IP_INLINE u32_t chk_sum = 0; #endif /* CHECKSUM_GEN_IP_INLINE */ LWIP_ASSERT_CORE_LOCKED(); LWIP_IP_CHECK_PBUF_REF_COUNT_FOR_TX(p); - 801b376: 68fb ldr r3, [r7, #12] - 801b378: 7b9b ldrb r3, [r3, #14] - 801b37a: 2b01 cmp r3, #1 - 801b37c: d006 beq.n 801b38c - 801b37e: 4b4b ldr r3, [pc, #300] ; (801b4ac ) - 801b380: f44f 7255 mov.w r2, #852 ; 0x354 - 801b384: 494a ldr r1, [pc, #296] ; (801b4b0 ) - 801b386: 484b ldr r0, [pc, #300] ; (801b4b4 ) - 801b388: f001 f95e bl 801c648 + 801b386: 68fb ldr r3, [r7, #12] + 801b388: 7b9b ldrb r3, [r3, #14] + 801b38a: 2b01 cmp r3, #1 + 801b38c: d006 beq.n 801b39c + 801b38e: 4b4b ldr r3, [pc, #300] ; (801b4bc ) + 801b390: f44f 7255 mov.w r2, #852 ; 0x354 + 801b394: 494a ldr r1, [pc, #296] ; (801b4c0 ) + 801b396: 484b ldr r0, [pc, #300] ; (801b4c4 ) + 801b398: f001 f95e bl 801c658 MIB2_STATS_INC(mib2.ipoutrequests); /* Should the IP header be generated or is it already included in p? */ if (dest != LWIP_IP_HDRINCL) { - 801b38c: 687b ldr r3, [r7, #4] - 801b38e: 2b00 cmp r3, #0 - 801b390: d060 beq.n 801b454 + 801b39c: 687b ldr r3, [r7, #4] + 801b39e: 2b00 cmp r3, #0 + 801b3a0: d060 beq.n 801b464 u16_t ip_hlen = IP_HLEN; - 801b392: 2314 movs r3, #20 - 801b394: 837b strh r3, [r7, #26] + 801b3a2: 2314 movs r3, #20 + 801b3a4: 837b strh r3, [r7, #26] } #endif /* CHECKSUM_GEN_IP_INLINE */ } #endif /* IP_OPTIONS_SEND */ /* generate IP header */ if (pbuf_add_header(p, IP_HLEN)) { - 801b396: 2114 movs r1, #20 - 801b398: 68f8 ldr r0, [r7, #12] - 801b39a: f7f6 fb8f bl 8011abc - 801b39e: 4603 mov r3, r0 - 801b3a0: 2b00 cmp r3, #0 - 801b3a2: d002 beq.n 801b3aa + 801b3a6: 2114 movs r1, #20 + 801b3a8: 68f8 ldr r0, [r7, #12] + 801b3aa: f7f6 fb8f bl 8011acc + 801b3ae: 4603 mov r3, r0 + 801b3b0: 2b00 cmp r3, #0 + 801b3b2: d002 beq.n 801b3ba LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: not enough room for IP header in pbuf\n")); IP_STATS_INC(ip.err); MIB2_STATS_INC(mib2.ipoutdiscards); return ERR_BUF; - 801b3a4: f06f 0301 mvn.w r3, #1 - 801b3a8: e07c b.n 801b4a4 + 801b3b4: f06f 0301 mvn.w r3, #1 + 801b3b8: e07c b.n 801b4b4 } iphdr = (struct ip_hdr *)p->payload; - 801b3aa: 68fb ldr r3, [r7, #12] - 801b3ac: 685b ldr r3, [r3, #4] - 801b3ae: 61fb str r3, [r7, #28] + 801b3ba: 68fb ldr r3, [r7, #12] + 801b3bc: 685b ldr r3, [r3, #4] + 801b3be: 61fb str r3, [r7, #28] LWIP_ASSERT("check that first pbuf can hold struct ip_hdr", - 801b3b0: 68fb ldr r3, [r7, #12] - 801b3b2: 895b ldrh r3, [r3, #10] - 801b3b4: 2b13 cmp r3, #19 - 801b3b6: d806 bhi.n 801b3c6 - 801b3b8: 4b3c ldr r3, [pc, #240] ; (801b4ac ) - 801b3ba: f240 3289 movw r2, #905 ; 0x389 - 801b3be: 493e ldr r1, [pc, #248] ; (801b4b8 ) - 801b3c0: 483c ldr r0, [pc, #240] ; (801b4b4 ) - 801b3c2: f001 f941 bl 801c648 + 801b3c0: 68fb ldr r3, [r7, #12] + 801b3c2: 895b ldrh r3, [r3, #10] + 801b3c4: 2b13 cmp r3, #19 + 801b3c6: d806 bhi.n 801b3d6 + 801b3c8: 4b3c ldr r3, [pc, #240] ; (801b4bc ) + 801b3ca: f240 3289 movw r2, #905 ; 0x389 + 801b3ce: 493e ldr r1, [pc, #248] ; (801b4c8 ) + 801b3d0: 483c ldr r0, [pc, #240] ; (801b4c4 ) + 801b3d2: f001 f941 bl 801c658 (p->len >= sizeof(struct ip_hdr))); IPH_TTL_SET(iphdr, ttl); - 801b3c6: 69fb ldr r3, [r7, #28] - 801b3c8: 78fa ldrb r2, [r7, #3] - 801b3ca: 721a strb r2, [r3, #8] + 801b3d6: 69fb ldr r3, [r7, #28] + 801b3d8: 78fa ldrb r2, [r7, #3] + 801b3da: 721a strb r2, [r3, #8] IPH_PROTO_SET(iphdr, proto); - 801b3cc: 69fb ldr r3, [r7, #28] - 801b3ce: f897 202c ldrb.w r2, [r7, #44] ; 0x2c - 801b3d2: 725a strb r2, [r3, #9] + 801b3dc: 69fb ldr r3, [r7, #28] + 801b3de: f897 202c ldrb.w r2, [r7, #44] ; 0x2c + 801b3e2: 725a strb r2, [r3, #9] #if CHECKSUM_GEN_IP_INLINE chk_sum += PP_NTOHS(proto | (ttl << 8)); #endif /* CHECKSUM_GEN_IP_INLINE */ /* dest cannot be NULL here */ ip4_addr_copy(iphdr->dest, *dest); - 801b3d4: 687b ldr r3, [r7, #4] - 801b3d6: 681a ldr r2, [r3, #0] - 801b3d8: 69fb ldr r3, [r7, #28] - 801b3da: 611a str r2, [r3, #16] + 801b3e4: 687b ldr r3, [r7, #4] + 801b3e6: 681a ldr r2, [r3, #0] + 801b3e8: 69fb ldr r3, [r7, #28] + 801b3ea: 611a str r2, [r3, #16] #if CHECKSUM_GEN_IP_INLINE chk_sum += ip4_addr_get_u32(&iphdr->dest) & 0xFFFF; chk_sum += ip4_addr_get_u32(&iphdr->dest) >> 16; #endif /* CHECKSUM_GEN_IP_INLINE */ IPH_VHL_SET(iphdr, 4, ip_hlen / 4); - 801b3dc: 8b7b ldrh r3, [r7, #26] - 801b3de: 089b lsrs r3, r3, #2 - 801b3e0: b29b uxth r3, r3 - 801b3e2: b2db uxtb r3, r3 - 801b3e4: f043 0340 orr.w r3, r3, #64 ; 0x40 - 801b3e8: b2da uxtb r2, r3 - 801b3ea: 69fb ldr r3, [r7, #28] - 801b3ec: 701a strb r2, [r3, #0] + 801b3ec: 8b7b ldrh r3, [r7, #26] + 801b3ee: 089b lsrs r3, r3, #2 + 801b3f0: b29b uxth r3, r3 + 801b3f2: b2db uxtb r3, r3 + 801b3f4: f043 0340 orr.w r3, r3, #64 ; 0x40 + 801b3f8: b2da uxtb r2, r3 + 801b3fa: 69fb ldr r3, [r7, #28] + 801b3fc: 701a strb r2, [r3, #0] IPH_TOS_SET(iphdr, tos); - 801b3ee: 69fb ldr r3, [r7, #28] - 801b3f0: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 - 801b3f4: 705a strb r2, [r3, #1] + 801b3fe: 69fb ldr r3, [r7, #28] + 801b400: f897 2028 ldrb.w r2, [r7, #40] ; 0x28 + 801b404: 705a strb r2, [r3, #1] #if CHECKSUM_GEN_IP_INLINE chk_sum += PP_NTOHS(tos | (iphdr->_v_hl << 8)); #endif /* CHECKSUM_GEN_IP_INLINE */ IPH_LEN_SET(iphdr, lwip_htons(p->tot_len)); - 801b3f6: 68fb ldr r3, [r7, #12] - 801b3f8: 891b ldrh r3, [r3, #8] - 801b3fa: 4618 mov r0, r3 - 801b3fc: f7f5 f840 bl 8010480 - 801b400: 4603 mov r3, r0 - 801b402: 461a mov r2, r3 - 801b404: 69fb ldr r3, [r7, #28] - 801b406: 805a strh r2, [r3, #2] + 801b406: 68fb ldr r3, [r7, #12] + 801b408: 891b ldrh r3, [r3, #8] + 801b40a: 4618 mov r0, r3 + 801b40c: f7f5 f840 bl 8010490 + 801b410: 4603 mov r3, r0 + 801b412: 461a mov r2, r3 + 801b414: 69fb ldr r3, [r7, #28] + 801b416: 805a strh r2, [r3, #2] #if CHECKSUM_GEN_IP_INLINE chk_sum += iphdr->_len; #endif /* CHECKSUM_GEN_IP_INLINE */ IPH_OFFSET_SET(iphdr, 0); - 801b408: 69fb ldr r3, [r7, #28] - 801b40a: 2200 movs r2, #0 - 801b40c: 719a strb r2, [r3, #6] - 801b40e: 2200 movs r2, #0 - 801b410: 71da strb r2, [r3, #7] + 801b418: 69fb ldr r3, [r7, #28] + 801b41a: 2200 movs r2, #0 + 801b41c: 719a strb r2, [r3, #6] + 801b41e: 2200 movs r2, #0 + 801b420: 71da strb r2, [r3, #7] IPH_ID_SET(iphdr, lwip_htons(ip_id)); - 801b412: 4b2a ldr r3, [pc, #168] ; (801b4bc ) - 801b414: 881b ldrh r3, [r3, #0] - 801b416: 4618 mov r0, r3 - 801b418: f7f5 f832 bl 8010480 - 801b41c: 4603 mov r3, r0 - 801b41e: 461a mov r2, r3 - 801b420: 69fb ldr r3, [r7, #28] - 801b422: 809a strh r2, [r3, #4] + 801b422: 4b2a ldr r3, [pc, #168] ; (801b4cc ) + 801b424: 881b ldrh r3, [r3, #0] + 801b426: 4618 mov r0, r3 + 801b428: f7f5 f832 bl 8010490 + 801b42c: 4603 mov r3, r0 + 801b42e: 461a mov r2, r3 + 801b430: 69fb ldr r3, [r7, #28] + 801b432: 809a strh r2, [r3, #4] #if CHECKSUM_GEN_IP_INLINE chk_sum += iphdr->_id; #endif /* CHECKSUM_GEN_IP_INLINE */ ++ip_id; - 801b424: 4b25 ldr r3, [pc, #148] ; (801b4bc ) - 801b426: 881b ldrh r3, [r3, #0] - 801b428: 3301 adds r3, #1 - 801b42a: b29a uxth r2, r3 - 801b42c: 4b23 ldr r3, [pc, #140] ; (801b4bc ) - 801b42e: 801a strh r2, [r3, #0] + 801b434: 4b25 ldr r3, [pc, #148] ; (801b4cc ) + 801b436: 881b ldrh r3, [r3, #0] + 801b438: 3301 adds r3, #1 + 801b43a: b29a uxth r2, r3 + 801b43c: 4b23 ldr r3, [pc, #140] ; (801b4cc ) + 801b43e: 801a strh r2, [r3, #0] if (src == NULL) { - 801b430: 68bb ldr r3, [r7, #8] - 801b432: 2b00 cmp r3, #0 - 801b434: d104 bne.n 801b440 + 801b440: 68bb ldr r3, [r7, #8] + 801b442: 2b00 cmp r3, #0 + 801b444: d104 bne.n 801b450 ip4_addr_copy(iphdr->src, *IP4_ADDR_ANY4); - 801b436: 4b22 ldr r3, [pc, #136] ; (801b4c0 ) - 801b438: 681a ldr r2, [r3, #0] - 801b43a: 69fb ldr r3, [r7, #28] - 801b43c: 60da str r2, [r3, #12] - 801b43e: e003 b.n 801b448 + 801b446: 4b22 ldr r3, [pc, #136] ; (801b4d0 ) + 801b448: 681a ldr r2, [r3, #0] + 801b44a: 69fb ldr r3, [r7, #28] + 801b44c: 60da str r2, [r3, #12] + 801b44e: e003 b.n 801b458 } else { /* src cannot be NULL here */ ip4_addr_copy(iphdr->src, *src); - 801b440: 68bb ldr r3, [r7, #8] - 801b442: 681a ldr r2, [r3, #0] - 801b444: 69fb ldr r3, [r7, #28] - 801b446: 60da str r2, [r3, #12] + 801b450: 68bb ldr r3, [r7, #8] + 801b452: 681a ldr r2, [r3, #0] + 801b454: 69fb ldr r3, [r7, #28] + 801b456: 60da str r2, [r3, #12] else { IPH_CHKSUM_SET(iphdr, 0); } #endif /* LWIP_CHECKSUM_CTRL_PER_NETIF*/ #else /* CHECKSUM_GEN_IP_INLINE */ IPH_CHKSUM_SET(iphdr, 0); - 801b448: 69fb ldr r3, [r7, #28] - 801b44a: 2200 movs r2, #0 - 801b44c: 729a strb r2, [r3, #10] - 801b44e: 2200 movs r2, #0 - 801b450: 72da strb r2, [r3, #11] - 801b452: e00f b.n 801b474 + 801b458: 69fb ldr r3, [r7, #28] + 801b45a: 2200 movs r2, #0 + 801b45c: 729a strb r2, [r3, #10] + 801b45e: 2200 movs r2, #0 + 801b460: 72da strb r2, [r3, #11] + 801b462: e00f b.n 801b484 } #endif /* CHECKSUM_GEN_IP */ #endif /* CHECKSUM_GEN_IP_INLINE */ } else { /* IP header already included in p */ if (p->len < IP_HLEN) { - 801b454: 68fb ldr r3, [r7, #12] - 801b456: 895b ldrh r3, [r3, #10] - 801b458: 2b13 cmp r3, #19 - 801b45a: d802 bhi.n 801b462 + 801b464: 68fb ldr r3, [r7, #12] + 801b466: 895b ldrh r3, [r3, #10] + 801b468: 2b13 cmp r3, #19 + 801b46a: d802 bhi.n 801b472 LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("ip4_output: LWIP_IP_HDRINCL but pbuf is too short\n")); IP_STATS_INC(ip.err); MIB2_STATS_INC(mib2.ipoutdiscards); return ERR_BUF; - 801b45c: f06f 0301 mvn.w r3, #1 - 801b460: e020 b.n 801b4a4 + 801b46c: f06f 0301 mvn.w r3, #1 + 801b470: e020 b.n 801b4b4 } iphdr = (struct ip_hdr *)p->payload; - 801b462: 68fb ldr r3, [r7, #12] - 801b464: 685b ldr r3, [r3, #4] - 801b466: 61fb str r3, [r7, #28] + 801b472: 68fb ldr r3, [r7, #12] + 801b474: 685b ldr r3, [r3, #4] + 801b476: 61fb str r3, [r7, #28] ip4_addr_copy(dest_addr, iphdr->dest); - 801b468: 69fb ldr r3, [r7, #28] - 801b46a: 691b ldr r3, [r3, #16] - 801b46c: 617b str r3, [r7, #20] + 801b478: 69fb ldr r3, [r7, #28] + 801b47a: 691b ldr r3, [r3, #16] + 801b47c: 617b str r3, [r7, #20] dest = &dest_addr; - 801b46e: f107 0314 add.w r3, r7, #20 - 801b472: 607b str r3, [r7, #4] + 801b47e: f107 0314 add.w r3, r7, #20 + 801b482: 607b str r3, [r7, #4] } #endif /* LWIP_MULTICAST_TX_OPTIONS */ #endif /* ENABLE_LOOPBACK */ #if IP_FRAG /* don't fragment if interface has mtu set to 0 [loopif] */ if (netif->mtu && (p->tot_len > netif->mtu)) { - 801b474: 6b3b ldr r3, [r7, #48] ; 0x30 - 801b476: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801b478: 2b00 cmp r3, #0 - 801b47a: d00c beq.n 801b496 - 801b47c: 68fb ldr r3, [r7, #12] - 801b47e: 891a ldrh r2, [r3, #8] - 801b480: 6b3b ldr r3, [r7, #48] ; 0x30 - 801b482: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801b484: 429a cmp r2, r3 - 801b486: d906 bls.n 801b496 + 801b484: 6b3b ldr r3, [r7, #48] ; 0x30 + 801b486: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801b488: 2b00 cmp r3, #0 + 801b48a: d00c beq.n 801b4a6 + 801b48c: 68fb ldr r3, [r7, #12] + 801b48e: 891a ldrh r2, [r3, #8] + 801b490: 6b3b ldr r3, [r7, #48] ; 0x30 + 801b492: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801b494: 429a cmp r2, r3 + 801b496: d906 bls.n 801b4a6 return ip4_frag(p, netif, dest); - 801b488: 687a ldr r2, [r7, #4] - 801b48a: 6b39 ldr r1, [r7, #48] ; 0x30 - 801b48c: 68f8 ldr r0, [r7, #12] - 801b48e: f000 fd4b bl 801bf28 - 801b492: 4603 mov r3, r0 - 801b494: e006 b.n 801b4a4 + 801b498: 687a ldr r2, [r7, #4] + 801b49a: 6b39 ldr r1, [r7, #48] ; 0x30 + 801b49c: 68f8 ldr r0, [r7, #12] + 801b49e: f000 fd4b bl 801bf38 + 801b4a2: 4603 mov r3, r0 + 801b4a4: e006 b.n 801b4b4 } #endif /* IP_FRAG */ LWIP_DEBUGF(IP_DEBUG, ("ip4_output_if: call netif->output()\n")); return netif->output(netif, p, dest); - 801b496: 6b3b ldr r3, [r7, #48] ; 0x30 - 801b498: 695b ldr r3, [r3, #20] - 801b49a: 687a ldr r2, [r7, #4] - 801b49c: 68f9 ldr r1, [r7, #12] - 801b49e: 6b38 ldr r0, [r7, #48] ; 0x30 - 801b4a0: 4798 blx r3 - 801b4a2: 4603 mov r3, r0 -} - 801b4a4: 4618 mov r0, r3 - 801b4a6: 3720 adds r7, #32 - 801b4a8: 46bd mov sp, r7 - 801b4aa: bd80 pop {r7, pc} - 801b4ac: 08020438 .word 0x08020438 - 801b4b0: 0802046c .word 0x0802046c - 801b4b4: 08020478 .word 0x08020478 - 801b4b8: 080204a0 .word 0x080204a0 - 801b4bc: 2000885e .word 0x2000885e - 801b4c0: 080227f8 .word 0x080227f8 - -0801b4c4 : + 801b4a6: 6b3b ldr r3, [r7, #48] ; 0x30 + 801b4a8: 695b ldr r3, [r3, #20] + 801b4aa: 687a ldr r2, [r7, #4] + 801b4ac: 68f9 ldr r1, [r7, #12] + 801b4ae: 6b38 ldr r0, [r7, #48] ; 0x30 + 801b4b0: 4798 blx r3 + 801b4b2: 4603 mov r3, r0 +} + 801b4b4: 4618 mov r0, r3 + 801b4b6: 3720 adds r7, #32 + 801b4b8: 46bd mov sp, r7 + 801b4ba: bd80 pop {r7, pc} + 801b4bc: 08020448 .word 0x08020448 + 801b4c0: 0802047c .word 0x0802047c + 801b4c4: 08020488 .word 0x08020488 + 801b4c8: 080204b0 .word 0x080204b0 + 801b4cc: 2000885e .word 0x2000885e + 801b4d0: 08022808 .word 0x08022808 + +0801b4d4 : * @param netif the network interface against which the address is checked * @return returns non-zero if the address is a broadcast address */ u8_t ip4_addr_isbroadcast_u32(u32_t addr, const struct netif *netif) { - 801b4c4: b480 push {r7} - 801b4c6: b085 sub sp, #20 - 801b4c8: af00 add r7, sp, #0 - 801b4ca: 6078 str r0, [r7, #4] - 801b4cc: 6039 str r1, [r7, #0] + 801b4d4: b480 push {r7} + 801b4d6: b085 sub sp, #20 + 801b4d8: af00 add r7, sp, #0 + 801b4da: 6078 str r0, [r7, #4] + 801b4dc: 6039 str r1, [r7, #0] ip4_addr_t ipaddr; ip4_addr_set_u32(&ipaddr, addr); - 801b4ce: 687b ldr r3, [r7, #4] - 801b4d0: 60fb str r3, [r7, #12] + 801b4de: 687b ldr r3, [r7, #4] + 801b4e0: 60fb str r3, [r7, #12] /* all ones (broadcast) or all zeroes (old skool broadcast) */ if ((~addr == IPADDR_ANY) || - 801b4d2: 687b ldr r3, [r7, #4] - 801b4d4: f1b3 3fff cmp.w r3, #4294967295 - 801b4d8: d002 beq.n 801b4e0 - 801b4da: 687b ldr r3, [r7, #4] - 801b4dc: 2b00 cmp r3, #0 - 801b4de: d101 bne.n 801b4e4 + 801b4e2: 687b ldr r3, [r7, #4] + 801b4e4: f1b3 3fff cmp.w r3, #4294967295 + 801b4e8: d002 beq.n 801b4f0 + 801b4ea: 687b ldr r3, [r7, #4] + 801b4ec: 2b00 cmp r3, #0 + 801b4ee: d101 bne.n 801b4f4 (addr == IPADDR_ANY)) { return 1; - 801b4e0: 2301 movs r3, #1 - 801b4e2: e02a b.n 801b53a + 801b4f0: 2301 movs r3, #1 + 801b4f2: e02a b.n 801b54a /* no broadcast support on this network interface? */ } else if ((netif->flags & NETIF_FLAG_BROADCAST) == 0) { - 801b4e4: 683b ldr r3, [r7, #0] - 801b4e6: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801b4ea: f003 0302 and.w r3, r3, #2 - 801b4ee: 2b00 cmp r3, #0 - 801b4f0: d101 bne.n 801b4f6 + 801b4f4: 683b ldr r3, [r7, #0] + 801b4f6: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801b4fa: f003 0302 and.w r3, r3, #2 + 801b4fe: 2b00 cmp r3, #0 + 801b500: d101 bne.n 801b506 /* the given address cannot be a broadcast address * nor can we check against any broadcast addresses */ return 0; - 801b4f2: 2300 movs r3, #0 - 801b4f4: e021 b.n 801b53a + 801b502: 2300 movs r3, #0 + 801b504: e021 b.n 801b54a /* address matches network interface address exactly? => no broadcast */ } else if (addr == ip4_addr_get_u32(netif_ip4_addr(netif))) { - 801b4f6: 683b ldr r3, [r7, #0] - 801b4f8: 3304 adds r3, #4 - 801b4fa: 681b ldr r3, [r3, #0] - 801b4fc: 687a ldr r2, [r7, #4] - 801b4fe: 429a cmp r2, r3 - 801b500: d101 bne.n 801b506 + 801b506: 683b ldr r3, [r7, #0] + 801b508: 3304 adds r3, #4 + 801b50a: 681b ldr r3, [r3, #0] + 801b50c: 687a ldr r2, [r7, #4] + 801b50e: 429a cmp r2, r3 + 801b510: d101 bne.n 801b516 return 0; - 801b502: 2300 movs r3, #0 - 801b504: e019 b.n 801b53a + 801b512: 2300 movs r3, #0 + 801b514: e019 b.n 801b54a /* on the same (sub) network... */ } else if (ip4_addr_netcmp(&ipaddr, netif_ip4_addr(netif), netif_ip4_netmask(netif)) - 801b506: 68fa ldr r2, [r7, #12] - 801b508: 683b ldr r3, [r7, #0] - 801b50a: 3304 adds r3, #4 - 801b50c: 681b ldr r3, [r3, #0] - 801b50e: 405a eors r2, r3 - 801b510: 683b ldr r3, [r7, #0] - 801b512: 3308 adds r3, #8 - 801b514: 681b ldr r3, [r3, #0] - 801b516: 4013 ands r3, r2 - 801b518: 2b00 cmp r3, #0 - 801b51a: d10d bne.n 801b538 + 801b516: 68fa ldr r2, [r7, #12] + 801b518: 683b ldr r3, [r7, #0] + 801b51a: 3304 adds r3, #4 + 801b51c: 681b ldr r3, [r3, #0] + 801b51e: 405a eors r2, r3 + 801b520: 683b ldr r3, [r7, #0] + 801b522: 3308 adds r3, #8 + 801b524: 681b ldr r3, [r3, #0] + 801b526: 4013 ands r3, r2 + 801b528: 2b00 cmp r3, #0 + 801b52a: d10d bne.n 801b548 /* ...and host identifier bits are all ones? =>... */ && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) == - 801b51c: 683b ldr r3, [r7, #0] - 801b51e: 3308 adds r3, #8 - 801b520: 681b ldr r3, [r3, #0] - 801b522: 43da mvns r2, r3 - 801b524: 687b ldr r3, [r7, #4] - 801b526: 401a ands r2, r3 + 801b52c: 683b ldr r3, [r7, #0] + 801b52e: 3308 adds r3, #8 + 801b530: 681b ldr r3, [r3, #0] + 801b532: 43da mvns r2, r3 + 801b534: 687b ldr r3, [r7, #4] + 801b536: 401a ands r2, r3 (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(netif))))) { - 801b528: 683b ldr r3, [r7, #0] - 801b52a: 3308 adds r3, #8 - 801b52c: 681b ldr r3, [r3, #0] - 801b52e: 43db mvns r3, r3 + 801b538: 683b ldr r3, [r7, #0] + 801b53a: 3308 adds r3, #8 + 801b53c: 681b ldr r3, [r3, #0] + 801b53e: 43db mvns r3, r3 && ((addr & ~ip4_addr_get_u32(netif_ip4_netmask(netif))) == - 801b530: 429a cmp r2, r3 - 801b532: d101 bne.n 801b538 + 801b540: 429a cmp r2, r3 + 801b542: d101 bne.n 801b548 /* => network broadcast address */ return 1; - 801b534: 2301 movs r3, #1 - 801b536: e000 b.n 801b53a + 801b544: 2301 movs r3, #1 + 801b546: e000 b.n 801b54a } else { return 0; - 801b538: 2300 movs r3, #0 + 801b548: 2300 movs r3, #0 } } - 801b53a: 4618 mov r0, r3 - 801b53c: 3714 adds r7, #20 - 801b53e: 46bd mov sp, r7 - 801b540: f85d 7b04 ldr.w r7, [sp], #4 - 801b544: 4770 bx lr + 801b54a: 4618 mov r0, r3 + 801b54c: 3714 adds r7, #20 + 801b54e: 46bd mov sp, r7 + 801b550: f85d 7b04 ldr.w r7, [sp], #4 + 801b554: 4770 bx lr ... -0801b548 : +0801b558 : * * Should be called every 1000 msec (defined by IP_TMR_INTERVAL). */ void ip_reass_tmr(void) { - 801b548: b580 push {r7, lr} - 801b54a: b084 sub sp, #16 - 801b54c: af00 add r7, sp, #0 + 801b558: b580 push {r7, lr} + 801b55a: b084 sub sp, #16 + 801b55c: af00 add r7, sp, #0 struct ip_reassdata *r, *prev = NULL; - 801b54e: 2300 movs r3, #0 - 801b550: 60bb str r3, [r7, #8] + 801b55e: 2300 movs r3, #0 + 801b560: 60bb str r3, [r7, #8] r = reassdatagrams; - 801b552: 4b12 ldr r3, [pc, #72] ; (801b59c ) - 801b554: 681b ldr r3, [r3, #0] - 801b556: 60fb str r3, [r7, #12] + 801b562: 4b12 ldr r3, [pc, #72] ; (801b5ac ) + 801b564: 681b ldr r3, [r3, #0] + 801b566: 60fb str r3, [r7, #12] while (r != NULL) { - 801b558: e018 b.n 801b58c + 801b568: e018 b.n 801b59c /* Decrement the timer. Once it reaches 0, * clean up the incomplete fragment assembly */ if (r->timer > 0) { - 801b55a: 68fb ldr r3, [r7, #12] - 801b55c: 7fdb ldrb r3, [r3, #31] - 801b55e: 2b00 cmp r3, #0 - 801b560: d00b beq.n 801b57a - r->timer--; - 801b562: 68fb ldr r3, [r7, #12] - 801b564: 7fdb ldrb r3, [r3, #31] - 801b566: 3b01 subs r3, #1 - 801b568: b2da uxtb r2, r3 801b56a: 68fb ldr r3, [r7, #12] - 801b56c: 77da strb r2, [r3, #31] + 801b56c: 7fdb ldrb r3, [r3, #31] + 801b56e: 2b00 cmp r3, #0 + 801b570: d00b beq.n 801b58a + r->timer--; + 801b572: 68fb ldr r3, [r7, #12] + 801b574: 7fdb ldrb r3, [r3, #31] + 801b576: 3b01 subs r3, #1 + 801b578: b2da uxtb r2, r3 + 801b57a: 68fb ldr r3, [r7, #12] + 801b57c: 77da strb r2, [r3, #31] LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer dec %"U16_F"\n", (u16_t)r->timer)); prev = r; - 801b56e: 68fb ldr r3, [r7, #12] - 801b570: 60bb str r3, [r7, #8] + 801b57e: 68fb ldr r3, [r7, #12] + 801b580: 60bb str r3, [r7, #8] r = r->next; - 801b572: 68fb ldr r3, [r7, #12] - 801b574: 681b ldr r3, [r3, #0] - 801b576: 60fb str r3, [r7, #12] - 801b578: e008 b.n 801b58c + 801b582: 68fb ldr r3, [r7, #12] + 801b584: 681b ldr r3, [r3, #0] + 801b586: 60fb str r3, [r7, #12] + 801b588: e008 b.n 801b59c } else { /* reassembly timed out */ struct ip_reassdata *tmp; LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_tmr: timer timed out\n")); tmp = r; - 801b57a: 68fb ldr r3, [r7, #12] - 801b57c: 607b str r3, [r7, #4] + 801b58a: 68fb ldr r3, [r7, #12] + 801b58c: 607b str r3, [r7, #4] /* get the next pointer before freeing */ r = r->next; - 801b57e: 68fb ldr r3, [r7, #12] - 801b580: 681b ldr r3, [r3, #0] - 801b582: 60fb str r3, [r7, #12] + 801b58e: 68fb ldr r3, [r7, #12] + 801b590: 681b ldr r3, [r3, #0] + 801b592: 60fb str r3, [r7, #12] /* free the helper struct and all enqueued pbufs */ ip_reass_free_complete_datagram(tmp, prev); - 801b584: 68b9 ldr r1, [r7, #8] - 801b586: 6878 ldr r0, [r7, #4] - 801b588: f000 f80a bl 801b5a0 + 801b594: 68b9 ldr r1, [r7, #8] + 801b596: 6878 ldr r0, [r7, #4] + 801b598: f000 f80a bl 801b5b0 while (r != NULL) { - 801b58c: 68fb ldr r3, [r7, #12] - 801b58e: 2b00 cmp r3, #0 - 801b590: d1e3 bne.n 801b55a + 801b59c: 68fb ldr r3, [r7, #12] + 801b59e: 2b00 cmp r3, #0 + 801b5a0: d1e3 bne.n 801b56a } } } - 801b592: bf00 nop - 801b594: 3710 adds r7, #16 - 801b596: 46bd mov sp, r7 - 801b598: bd80 pop {r7, pc} - 801b59a: bf00 nop - 801b59c: 20008860 .word 0x20008860 + 801b5a2: bf00 nop + 801b5a4: 3710 adds r7, #16 + 801b5a6: 46bd mov sp, r7 + 801b5a8: bd80 pop {r7, pc} + 801b5aa: bf00 nop + 801b5ac: 20008860 .word 0x20008860 -0801b5a0 : +0801b5b0 : * @param prev the previous datagram in the linked list * @return the number of pbufs freed */ static int ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev) { - 801b5a0: b580 push {r7, lr} - 801b5a2: b088 sub sp, #32 - 801b5a4: af00 add r7, sp, #0 - 801b5a6: 6078 str r0, [r7, #4] - 801b5a8: 6039 str r1, [r7, #0] + 801b5b0: b580 push {r7, lr} + 801b5b2: b088 sub sp, #32 + 801b5b4: af00 add r7, sp, #0 + 801b5b6: 6078 str r0, [r7, #4] + 801b5b8: 6039 str r1, [r7, #0] u16_t pbufs_freed = 0; - 801b5aa: 2300 movs r3, #0 - 801b5ac: 83fb strh r3, [r7, #30] + 801b5ba: 2300 movs r3, #0 + 801b5bc: 83fb strh r3, [r7, #30] u16_t clen; struct pbuf *p; struct ip_reass_helper *iprh; LWIP_ASSERT("prev != ipr", prev != ipr); - 801b5ae: 683a ldr r2, [r7, #0] - 801b5b0: 687b ldr r3, [r7, #4] - 801b5b2: 429a cmp r2, r3 - 801b5b4: d105 bne.n 801b5c2 - 801b5b6: 4b45 ldr r3, [pc, #276] ; (801b6cc ) - 801b5b8: 22ab movs r2, #171 ; 0xab - 801b5ba: 4945 ldr r1, [pc, #276] ; (801b6d0 ) - 801b5bc: 4845 ldr r0, [pc, #276] ; (801b6d4 ) - 801b5be: f001 f843 bl 801c648 + 801b5be: 683a ldr r2, [r7, #0] + 801b5c0: 687b ldr r3, [r7, #4] + 801b5c2: 429a cmp r2, r3 + 801b5c4: d105 bne.n 801b5d2 + 801b5c6: 4b45 ldr r3, [pc, #276] ; (801b6dc ) + 801b5c8: 22ab movs r2, #171 ; 0xab + 801b5ca: 4945 ldr r1, [pc, #276] ; (801b6e0 ) + 801b5cc: 4845 ldr r0, [pc, #276] ; (801b6e4 ) + 801b5ce: f001 f843 bl 801c658 if (prev != NULL) { - 801b5c2: 683b ldr r3, [r7, #0] - 801b5c4: 2b00 cmp r3, #0 - 801b5c6: d00a beq.n 801b5de + 801b5d2: 683b ldr r3, [r7, #0] + 801b5d4: 2b00 cmp r3, #0 + 801b5d6: d00a beq.n 801b5ee LWIP_ASSERT("prev->next == ipr", prev->next == ipr); - 801b5c8: 683b ldr r3, [r7, #0] - 801b5ca: 681b ldr r3, [r3, #0] - 801b5cc: 687a ldr r2, [r7, #4] - 801b5ce: 429a cmp r2, r3 - 801b5d0: d005 beq.n 801b5de - 801b5d2: 4b3e ldr r3, [pc, #248] ; (801b6cc ) - 801b5d4: 22ad movs r2, #173 ; 0xad - 801b5d6: 4940 ldr r1, [pc, #256] ; (801b6d8 ) - 801b5d8: 483e ldr r0, [pc, #248] ; (801b6d4 ) - 801b5da: f001 f835 bl 801c648 + 801b5d8: 683b ldr r3, [r7, #0] + 801b5da: 681b ldr r3, [r3, #0] + 801b5dc: 687a ldr r2, [r7, #4] + 801b5de: 429a cmp r2, r3 + 801b5e0: d005 beq.n 801b5ee + 801b5e2: 4b3e ldr r3, [pc, #248] ; (801b6dc ) + 801b5e4: 22ad movs r2, #173 ; 0xad + 801b5e6: 4940 ldr r1, [pc, #256] ; (801b6e8 ) + 801b5e8: 483e ldr r0, [pc, #248] ; (801b6e4 ) + 801b5ea: f001 f835 bl 801c658 } MIB2_STATS_INC(mib2.ipreasmfails); #if LWIP_ICMP iprh = (struct ip_reass_helper *)ipr->p->payload; - 801b5de: 687b ldr r3, [r7, #4] - 801b5e0: 685b ldr r3, [r3, #4] - 801b5e2: 685b ldr r3, [r3, #4] - 801b5e4: 617b str r3, [r7, #20] + 801b5ee: 687b ldr r3, [r7, #4] + 801b5f0: 685b ldr r3, [r3, #4] + 801b5f2: 685b ldr r3, [r3, #4] + 801b5f4: 617b str r3, [r7, #20] if (iprh->start == 0) { - 801b5e6: 697b ldr r3, [r7, #20] - 801b5e8: 889b ldrh r3, [r3, #4] - 801b5ea: b29b uxth r3, r3 - 801b5ec: 2b00 cmp r3, #0 - 801b5ee: d12a bne.n 801b646 + 801b5f6: 697b ldr r3, [r7, #20] + 801b5f8: 889b ldrh r3, [r3, #4] + 801b5fa: b29b uxth r3, r3 + 801b5fc: 2b00 cmp r3, #0 + 801b5fe: d12a bne.n 801b656 /* The first fragment was received, send ICMP time exceeded. */ /* First, de-queue the first pbuf from r->p. */ p = ipr->p; - 801b5f0: 687b ldr r3, [r7, #4] - 801b5f2: 685b ldr r3, [r3, #4] - 801b5f4: 61bb str r3, [r7, #24] + 801b600: 687b ldr r3, [r7, #4] + 801b602: 685b ldr r3, [r3, #4] + 801b604: 61bb str r3, [r7, #24] ipr->p = iprh->next_pbuf; - 801b5f6: 697b ldr r3, [r7, #20] - 801b5f8: 681a ldr r2, [r3, #0] - 801b5fa: 687b ldr r3, [r7, #4] - 801b5fc: 605a str r2, [r3, #4] + 801b606: 697b ldr r3, [r7, #20] + 801b608: 681a ldr r2, [r3, #0] + 801b60a: 687b ldr r3, [r7, #4] + 801b60c: 605a str r2, [r3, #4] /* Then, copy the original header into it. */ SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); - 801b5fe: 69bb ldr r3, [r7, #24] - 801b600: 6858 ldr r0, [r3, #4] - 801b602: 687b ldr r3, [r7, #4] - 801b604: 3308 adds r3, #8 - 801b606: 2214 movs r2, #20 - 801b608: 4619 mov r1, r3 - 801b60a: f000 fff0 bl 801c5ee + 801b60e: 69bb ldr r3, [r7, #24] + 801b610: 6858 ldr r0, [r3, #4] + 801b612: 687b ldr r3, [r7, #4] + 801b614: 3308 adds r3, #8 + 801b616: 2214 movs r2, #20 + 801b618: 4619 mov r1, r3 + 801b61a: f000 fff0 bl 801c5fe icmp_time_exceeded(p, ICMP_TE_FRAG); - 801b60e: 2101 movs r1, #1 - 801b610: 69b8 ldr r0, [r7, #24] - 801b612: f7ff fc2b bl 801ae6c + 801b61e: 2101 movs r1, #1 + 801b620: 69b8 ldr r0, [r7, #24] + 801b622: f7ff fc2b bl 801ae7c clen = pbuf_clen(p); - 801b616: 69b8 ldr r0, [r7, #24] - 801b618: f7f6 fb74 bl 8011d04 - 801b61c: 4603 mov r3, r0 - 801b61e: 827b strh r3, [r7, #18] + 801b626: 69b8 ldr r0, [r7, #24] + 801b628: f7f6 fb74 bl 8011d14 + 801b62c: 4603 mov r3, r0 + 801b62e: 827b strh r3, [r7, #18] LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - 801b620: 8bfa ldrh r2, [r7, #30] - 801b622: 8a7b ldrh r3, [r7, #18] - 801b624: 4413 add r3, r2 - 801b626: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 801b62a: db05 blt.n 801b638 - 801b62c: 4b27 ldr r3, [pc, #156] ; (801b6cc ) - 801b62e: 22bc movs r2, #188 ; 0xbc - 801b630: 492a ldr r1, [pc, #168] ; (801b6dc ) - 801b632: 4828 ldr r0, [pc, #160] ; (801b6d4 ) - 801b634: f001 f808 bl 801c648 + 801b630: 8bfa ldrh r2, [r7, #30] + 801b632: 8a7b ldrh r3, [r7, #18] + 801b634: 4413 add r3, r2 + 801b636: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 801b63a: db05 blt.n 801b648 + 801b63c: 4b27 ldr r3, [pc, #156] ; (801b6dc ) + 801b63e: 22bc movs r2, #188 ; 0xbc + 801b640: 492a ldr r1, [pc, #168] ; (801b6ec ) + 801b642: 4828 ldr r0, [pc, #160] ; (801b6e4 ) + 801b644: f001 f808 bl 801c658 pbufs_freed = (u16_t)(pbufs_freed + clen); - 801b638: 8bfa ldrh r2, [r7, #30] - 801b63a: 8a7b ldrh r3, [r7, #18] - 801b63c: 4413 add r3, r2 - 801b63e: 83fb strh r3, [r7, #30] + 801b648: 8bfa ldrh r2, [r7, #30] + 801b64a: 8a7b ldrh r3, [r7, #18] + 801b64c: 4413 add r3, r2 + 801b64e: 83fb strh r3, [r7, #30] pbuf_free(p); - 801b640: 69b8 ldr r0, [r7, #24] - 801b642: f7f6 fad1 bl 8011be8 + 801b650: 69b8 ldr r0, [r7, #24] + 801b652: f7f6 fad1 bl 8011bf8 } #endif /* LWIP_ICMP */ /* First, free all received pbufs. The individual pbufs need to be released separately as they have not yet been chained */ p = ipr->p; - 801b646: 687b ldr r3, [r7, #4] - 801b648: 685b ldr r3, [r3, #4] - 801b64a: 61bb str r3, [r7, #24] + 801b656: 687b ldr r3, [r7, #4] + 801b658: 685b ldr r3, [r3, #4] + 801b65a: 61bb str r3, [r7, #24] while (p != NULL) { - 801b64c: e01f b.n 801b68e + 801b65c: e01f b.n 801b69e struct pbuf *pcur; iprh = (struct ip_reass_helper *)p->payload; - 801b64e: 69bb ldr r3, [r7, #24] - 801b650: 685b ldr r3, [r3, #4] - 801b652: 617b str r3, [r7, #20] + 801b65e: 69bb ldr r3, [r7, #24] + 801b660: 685b ldr r3, [r3, #4] + 801b662: 617b str r3, [r7, #20] pcur = p; - 801b654: 69bb ldr r3, [r7, #24] - 801b656: 60fb str r3, [r7, #12] + 801b664: 69bb ldr r3, [r7, #24] + 801b666: 60fb str r3, [r7, #12] /* get the next pointer before freeing */ p = iprh->next_pbuf; - 801b658: 697b ldr r3, [r7, #20] - 801b65a: 681b ldr r3, [r3, #0] - 801b65c: 61bb str r3, [r7, #24] + 801b668: 697b ldr r3, [r7, #20] + 801b66a: 681b ldr r3, [r3, #0] + 801b66c: 61bb str r3, [r7, #24] clen = pbuf_clen(pcur); - 801b65e: 68f8 ldr r0, [r7, #12] - 801b660: f7f6 fb50 bl 8011d04 - 801b664: 4603 mov r3, r0 - 801b666: 827b strh r3, [r7, #18] + 801b66e: 68f8 ldr r0, [r7, #12] + 801b670: f7f6 fb50 bl 8011d14 + 801b674: 4603 mov r3, r0 + 801b676: 827b strh r3, [r7, #18] LWIP_ASSERT("pbufs_freed + clen <= 0xffff", pbufs_freed + clen <= 0xffff); - 801b668: 8bfa ldrh r2, [r7, #30] - 801b66a: 8a7b ldrh r3, [r7, #18] - 801b66c: 4413 add r3, r2 - 801b66e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 - 801b672: db05 blt.n 801b680 - 801b674: 4b15 ldr r3, [pc, #84] ; (801b6cc ) - 801b676: 22cc movs r2, #204 ; 0xcc - 801b678: 4918 ldr r1, [pc, #96] ; (801b6dc ) - 801b67a: 4816 ldr r0, [pc, #88] ; (801b6d4 ) - 801b67c: f000 ffe4 bl 801c648 + 801b678: 8bfa ldrh r2, [r7, #30] + 801b67a: 8a7b ldrh r3, [r7, #18] + 801b67c: 4413 add r3, r2 + 801b67e: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 + 801b682: db05 blt.n 801b690 + 801b684: 4b15 ldr r3, [pc, #84] ; (801b6dc ) + 801b686: 22cc movs r2, #204 ; 0xcc + 801b688: 4918 ldr r1, [pc, #96] ; (801b6ec ) + 801b68a: 4816 ldr r0, [pc, #88] ; (801b6e4 ) + 801b68c: f000 ffe4 bl 801c658 pbufs_freed = (u16_t)(pbufs_freed + clen); - 801b680: 8bfa ldrh r2, [r7, #30] - 801b682: 8a7b ldrh r3, [r7, #18] - 801b684: 4413 add r3, r2 - 801b686: 83fb strh r3, [r7, #30] + 801b690: 8bfa ldrh r2, [r7, #30] + 801b692: 8a7b ldrh r3, [r7, #18] + 801b694: 4413 add r3, r2 + 801b696: 83fb strh r3, [r7, #30] pbuf_free(pcur); - 801b688: 68f8 ldr r0, [r7, #12] - 801b68a: f7f6 faad bl 8011be8 + 801b698: 68f8 ldr r0, [r7, #12] + 801b69a: f7f6 faad bl 8011bf8 while (p != NULL) { - 801b68e: 69bb ldr r3, [r7, #24] - 801b690: 2b00 cmp r3, #0 - 801b692: d1dc bne.n 801b64e + 801b69e: 69bb ldr r3, [r7, #24] + 801b6a0: 2b00 cmp r3, #0 + 801b6a2: d1dc bne.n 801b65e } /* Then, unchain the struct ip_reassdata from the list and free it. */ ip_reass_dequeue_datagram(ipr, prev); - 801b694: 6839 ldr r1, [r7, #0] - 801b696: 6878 ldr r0, [r7, #4] - 801b698: f000 f8c2 bl 801b820 + 801b6a4: 6839 ldr r1, [r7, #0] + 801b6a6: 6878 ldr r0, [r7, #4] + 801b6a8: f000 f8c2 bl 801b830 LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed); - 801b69c: 4b10 ldr r3, [pc, #64] ; (801b6e0 ) - 801b69e: 881b ldrh r3, [r3, #0] - 801b6a0: 8bfa ldrh r2, [r7, #30] - 801b6a2: 429a cmp r2, r3 - 801b6a4: d905 bls.n 801b6b2 - 801b6a6: 4b09 ldr r3, [pc, #36] ; (801b6cc ) - 801b6a8: 22d2 movs r2, #210 ; 0xd2 - 801b6aa: 490e ldr r1, [pc, #56] ; (801b6e4 ) - 801b6ac: 4809 ldr r0, [pc, #36] ; (801b6d4 ) - 801b6ae: f000 ffcb bl 801c648 + 801b6ac: 4b10 ldr r3, [pc, #64] ; (801b6f0 ) + 801b6ae: 881b ldrh r3, [r3, #0] + 801b6b0: 8bfa ldrh r2, [r7, #30] + 801b6b2: 429a cmp r2, r3 + 801b6b4: d905 bls.n 801b6c2 + 801b6b6: 4b09 ldr r3, [pc, #36] ; (801b6dc ) + 801b6b8: 22d2 movs r2, #210 ; 0xd2 + 801b6ba: 490e ldr r1, [pc, #56] ; (801b6f4 ) + 801b6bc: 4809 ldr r0, [pc, #36] ; (801b6e4 ) + 801b6be: f000 ffcb bl 801c658 ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed); - 801b6b2: 4b0b ldr r3, [pc, #44] ; (801b6e0 ) - 801b6b4: 881a ldrh r2, [r3, #0] - 801b6b6: 8bfb ldrh r3, [r7, #30] - 801b6b8: 1ad3 subs r3, r2, r3 - 801b6ba: b29a uxth r2, r3 - 801b6bc: 4b08 ldr r3, [pc, #32] ; (801b6e0 ) - 801b6be: 801a strh r2, [r3, #0] + 801b6c2: 4b0b ldr r3, [pc, #44] ; (801b6f0 ) + 801b6c4: 881a ldrh r2, [r3, #0] + 801b6c6: 8bfb ldrh r3, [r7, #30] + 801b6c8: 1ad3 subs r3, r2, r3 + 801b6ca: b29a uxth r2, r3 + 801b6cc: 4b08 ldr r3, [pc, #32] ; (801b6f0 ) + 801b6ce: 801a strh r2, [r3, #0] return pbufs_freed; - 801b6c0: 8bfb ldrh r3, [r7, #30] -} - 801b6c2: 4618 mov r0, r3 - 801b6c4: 3720 adds r7, #32 - 801b6c6: 46bd mov sp, r7 - 801b6c8: bd80 pop {r7, pc} - 801b6ca: bf00 nop - 801b6cc: 080204d0 .word 0x080204d0 - 801b6d0: 0802050c .word 0x0802050c - 801b6d4: 08020518 .word 0x08020518 - 801b6d8: 08020540 .word 0x08020540 - 801b6dc: 08020554 .word 0x08020554 - 801b6e0: 20008864 .word 0x20008864 - 801b6e4: 08020574 .word 0x08020574 - -0801b6e8 : + 801b6d0: 8bfb ldrh r3, [r7, #30] +} + 801b6d2: 4618 mov r0, r3 + 801b6d4: 3720 adds r7, #32 + 801b6d6: 46bd mov sp, r7 + 801b6d8: bd80 pop {r7, pc} + 801b6da: bf00 nop + 801b6dc: 080204e0 .word 0x080204e0 + 801b6e0: 0802051c .word 0x0802051c + 801b6e4: 08020528 .word 0x08020528 + 801b6e8: 08020550 .word 0x08020550 + 801b6ec: 08020564 .word 0x08020564 + 801b6f0: 20008864 .word 0x20008864 + 801b6f4: 08020584 .word 0x08020584 + +0801b6f8 : * (used for freeing other datagrams if not enough space) * @return the number of pbufs freed */ static int ip_reass_remove_oldest_datagram(struct ip_hdr *fraghdr, int pbufs_needed) { - 801b6e8: b580 push {r7, lr} - 801b6ea: b08a sub sp, #40 ; 0x28 - 801b6ec: af00 add r7, sp, #0 - 801b6ee: 6078 str r0, [r7, #4] - 801b6f0: 6039 str r1, [r7, #0] + 801b6f8: b580 push {r7, lr} + 801b6fa: b08a sub sp, #40 ; 0x28 + 801b6fc: af00 add r7, sp, #0 + 801b6fe: 6078 str r0, [r7, #4] + 801b700: 6039 str r1, [r7, #0] /* @todo Can't we simply remove the last datagram in the * linked list behind reassdatagrams? */ struct ip_reassdata *r, *oldest, *prev, *oldest_prev; int pbufs_freed = 0, pbufs_freed_current; - 801b6f2: 2300 movs r3, #0 - 801b6f4: 617b str r3, [r7, #20] + 801b702: 2300 movs r3, #0 + 801b704: 617b str r3, [r7, #20] int other_datagrams; /* Free datagrams until being allowed to enqueue 'pbufs_needed' pbufs, * but don't free the datagram that 'fraghdr' belongs to! */ do { oldest = NULL; - 801b6f6: 2300 movs r3, #0 - 801b6f8: 623b str r3, [r7, #32] + 801b706: 2300 movs r3, #0 + 801b708: 623b str r3, [r7, #32] prev = NULL; - 801b6fa: 2300 movs r3, #0 - 801b6fc: 61fb str r3, [r7, #28] + 801b70a: 2300 movs r3, #0 + 801b70c: 61fb str r3, [r7, #28] oldest_prev = NULL; - 801b6fe: 2300 movs r3, #0 - 801b700: 61bb str r3, [r7, #24] + 801b70e: 2300 movs r3, #0 + 801b710: 61bb str r3, [r7, #24] other_datagrams = 0; - 801b702: 2300 movs r3, #0 - 801b704: 613b str r3, [r7, #16] + 801b712: 2300 movs r3, #0 + 801b714: 613b str r3, [r7, #16] r = reassdatagrams; - 801b706: 4b28 ldr r3, [pc, #160] ; (801b7a8 ) - 801b708: 681b ldr r3, [r3, #0] - 801b70a: 627b str r3, [r7, #36] ; 0x24 + 801b716: 4b28 ldr r3, [pc, #160] ; (801b7b8 ) + 801b718: 681b ldr r3, [r3, #0] + 801b71a: 627b str r3, [r7, #36] ; 0x24 while (r != NULL) { - 801b70c: e030 b.n 801b770 + 801b71c: e030 b.n 801b780 if (!IP_ADDRESSES_AND_ID_MATCH(&r->iphdr, fraghdr)) { - 801b70e: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b710: 695a ldr r2, [r3, #20] - 801b712: 687b ldr r3, [r7, #4] - 801b714: 68db ldr r3, [r3, #12] - 801b716: 429a cmp r2, r3 - 801b718: d10c bne.n 801b734 - 801b71a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b71c: 699a ldr r2, [r3, #24] - 801b71e: 687b ldr r3, [r7, #4] - 801b720: 691b ldr r3, [r3, #16] - 801b722: 429a cmp r2, r3 - 801b724: d106 bne.n 801b734 - 801b726: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b728: 899a ldrh r2, [r3, #12] - 801b72a: 687b ldr r3, [r7, #4] - 801b72c: 889b ldrh r3, [r3, #4] - 801b72e: b29b uxth r3, r3 - 801b730: 429a cmp r2, r3 - 801b732: d014 beq.n 801b75e + 801b71e: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b720: 695a ldr r2, [r3, #20] + 801b722: 687b ldr r3, [r7, #4] + 801b724: 68db ldr r3, [r3, #12] + 801b726: 429a cmp r2, r3 + 801b728: d10c bne.n 801b744 + 801b72a: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b72c: 699a ldr r2, [r3, #24] + 801b72e: 687b ldr r3, [r7, #4] + 801b730: 691b ldr r3, [r3, #16] + 801b732: 429a cmp r2, r3 + 801b734: d106 bne.n 801b744 + 801b736: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b738: 899a ldrh r2, [r3, #12] + 801b73a: 687b ldr r3, [r7, #4] + 801b73c: 889b ldrh r3, [r3, #4] + 801b73e: b29b uxth r3, r3 + 801b740: 429a cmp r2, r3 + 801b742: d014 beq.n 801b76e /* Not the same datagram as fraghdr */ other_datagrams++; - 801b734: 693b ldr r3, [r7, #16] - 801b736: 3301 adds r3, #1 - 801b738: 613b str r3, [r7, #16] + 801b744: 693b ldr r3, [r7, #16] + 801b746: 3301 adds r3, #1 + 801b748: 613b str r3, [r7, #16] if (oldest == NULL) { - 801b73a: 6a3b ldr r3, [r7, #32] - 801b73c: 2b00 cmp r3, #0 - 801b73e: d104 bne.n 801b74a + 801b74a: 6a3b ldr r3, [r7, #32] + 801b74c: 2b00 cmp r3, #0 + 801b74e: d104 bne.n 801b75a oldest = r; - 801b740: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b742: 623b str r3, [r7, #32] + 801b750: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b752: 623b str r3, [r7, #32] oldest_prev = prev; - 801b744: 69fb ldr r3, [r7, #28] - 801b746: 61bb str r3, [r7, #24] - 801b748: e009 b.n 801b75e + 801b754: 69fb ldr r3, [r7, #28] + 801b756: 61bb str r3, [r7, #24] + 801b758: e009 b.n 801b76e } else if (r->timer <= oldest->timer) { - 801b74a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b74c: 7fda ldrb r2, [r3, #31] - 801b74e: 6a3b ldr r3, [r7, #32] - 801b750: 7fdb ldrb r3, [r3, #31] - 801b752: 429a cmp r2, r3 - 801b754: d803 bhi.n 801b75e + 801b75a: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b75c: 7fda ldrb r2, [r3, #31] + 801b75e: 6a3b ldr r3, [r7, #32] + 801b760: 7fdb ldrb r3, [r3, #31] + 801b762: 429a cmp r2, r3 + 801b764: d803 bhi.n 801b76e /* older than the previous oldest */ oldest = r; - 801b756: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b758: 623b str r3, [r7, #32] + 801b766: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b768: 623b str r3, [r7, #32] oldest_prev = prev; - 801b75a: 69fb ldr r3, [r7, #28] - 801b75c: 61bb str r3, [r7, #24] + 801b76a: 69fb ldr r3, [r7, #28] + 801b76c: 61bb str r3, [r7, #24] } } if (r->next != NULL) { - 801b75e: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b760: 681b ldr r3, [r3, #0] - 801b762: 2b00 cmp r3, #0 - 801b764: d001 beq.n 801b76a + 801b76e: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b770: 681b ldr r3, [r3, #0] + 801b772: 2b00 cmp r3, #0 + 801b774: d001 beq.n 801b77a prev = r; - 801b766: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b768: 61fb str r3, [r7, #28] + 801b776: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b778: 61fb str r3, [r7, #28] } r = r->next; - 801b76a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b76c: 681b ldr r3, [r3, #0] - 801b76e: 627b str r3, [r7, #36] ; 0x24 + 801b77a: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b77c: 681b ldr r3, [r3, #0] + 801b77e: 627b str r3, [r7, #36] ; 0x24 while (r != NULL) { - 801b770: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b772: 2b00 cmp r3, #0 - 801b774: d1cb bne.n 801b70e + 801b780: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b782: 2b00 cmp r3, #0 + 801b784: d1cb bne.n 801b71e } if (oldest != NULL) { - 801b776: 6a3b ldr r3, [r7, #32] - 801b778: 2b00 cmp r3, #0 - 801b77a: d008 beq.n 801b78e + 801b786: 6a3b ldr r3, [r7, #32] + 801b788: 2b00 cmp r3, #0 + 801b78a: d008 beq.n 801b79e pbufs_freed_current = ip_reass_free_complete_datagram(oldest, oldest_prev); - 801b77c: 69b9 ldr r1, [r7, #24] - 801b77e: 6a38 ldr r0, [r7, #32] - 801b780: f7ff ff0e bl 801b5a0 - 801b784: 60f8 str r0, [r7, #12] + 801b78c: 69b9 ldr r1, [r7, #24] + 801b78e: 6a38 ldr r0, [r7, #32] + 801b790: f7ff ff0e bl 801b5b0 + 801b794: 60f8 str r0, [r7, #12] pbufs_freed += pbufs_freed_current; - 801b786: 697a ldr r2, [r7, #20] - 801b788: 68fb ldr r3, [r7, #12] - 801b78a: 4413 add r3, r2 - 801b78c: 617b str r3, [r7, #20] + 801b796: 697a ldr r2, [r7, #20] + 801b798: 68fb ldr r3, [r7, #12] + 801b79a: 4413 add r3, r2 + 801b79c: 617b str r3, [r7, #20] } } while ((pbufs_freed < pbufs_needed) && (other_datagrams > 1)); - 801b78e: 697a ldr r2, [r7, #20] - 801b790: 683b ldr r3, [r7, #0] - 801b792: 429a cmp r2, r3 - 801b794: da02 bge.n 801b79c - 801b796: 693b ldr r3, [r7, #16] - 801b798: 2b01 cmp r3, #1 - 801b79a: dcac bgt.n 801b6f6 + 801b79e: 697a ldr r2, [r7, #20] + 801b7a0: 683b ldr r3, [r7, #0] + 801b7a2: 429a cmp r2, r3 + 801b7a4: da02 bge.n 801b7ac + 801b7a6: 693b ldr r3, [r7, #16] + 801b7a8: 2b01 cmp r3, #1 + 801b7aa: dcac bgt.n 801b706 return pbufs_freed; - 801b79c: 697b ldr r3, [r7, #20] + 801b7ac: 697b ldr r3, [r7, #20] } - 801b79e: 4618 mov r0, r3 - 801b7a0: 3728 adds r7, #40 ; 0x28 - 801b7a2: 46bd mov sp, r7 - 801b7a4: bd80 pop {r7, pc} - 801b7a6: bf00 nop - 801b7a8: 20008860 .word 0x20008860 + 801b7ae: 4618 mov r0, r3 + 801b7b0: 3728 adds r7, #40 ; 0x28 + 801b7b2: 46bd mov sp, r7 + 801b7b4: bd80 pop {r7, pc} + 801b7b6: bf00 nop + 801b7b8: 20008860 .word 0x20008860 -0801b7ac : +0801b7bc : * @param clen number of pbufs needed to enqueue (used for freeing other datagrams if not enough space) * @return A pointer to the queue location into which the fragment was enqueued */ static struct ip_reassdata * ip_reass_enqueue_new_datagram(struct ip_hdr *fraghdr, int clen) { - 801b7ac: b580 push {r7, lr} - 801b7ae: b084 sub sp, #16 - 801b7b0: af00 add r7, sp, #0 - 801b7b2: 6078 str r0, [r7, #4] - 801b7b4: 6039 str r1, [r7, #0] + 801b7bc: b580 push {r7, lr} + 801b7be: b084 sub sp, #16 + 801b7c0: af00 add r7, sp, #0 + 801b7c2: 6078 str r0, [r7, #4] + 801b7c4: 6039 str r1, [r7, #0] #if ! IP_REASS_FREE_OLDEST LWIP_UNUSED_ARG(clen); #endif /* No matching previous fragment found, allocate a new reassdata struct */ ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA); - 801b7b6: 2004 movs r0, #4 - 801b7b8: f7f5 fb18 bl 8010dec - 801b7bc: 60f8 str r0, [r7, #12] + 801b7c6: 2004 movs r0, #4 + 801b7c8: f7f5 fb18 bl 8010dfc + 801b7cc: 60f8 str r0, [r7, #12] if (ipr == NULL) { - 801b7be: 68fb ldr r3, [r7, #12] - 801b7c0: 2b00 cmp r3, #0 - 801b7c2: d110 bne.n 801b7e6 + 801b7ce: 68fb ldr r3, [r7, #12] + 801b7d0: 2b00 cmp r3, #0 + 801b7d2: d110 bne.n 801b7f6 #if IP_REASS_FREE_OLDEST if (ip_reass_remove_oldest_datagram(fraghdr, clen) >= clen) { - 801b7c4: 6839 ldr r1, [r7, #0] - 801b7c6: 6878 ldr r0, [r7, #4] - 801b7c8: f7ff ff8e bl 801b6e8 - 801b7cc: 4602 mov r2, r0 - 801b7ce: 683b ldr r3, [r7, #0] - 801b7d0: 4293 cmp r3, r2 - 801b7d2: dc03 bgt.n 801b7dc + 801b7d4: 6839 ldr r1, [r7, #0] + 801b7d6: 6878 ldr r0, [r7, #4] + 801b7d8: f7ff ff8e bl 801b6f8 + 801b7dc: 4602 mov r2, r0 + 801b7de: 683b ldr r3, [r7, #0] + 801b7e0: 4293 cmp r3, r2 + 801b7e2: dc03 bgt.n 801b7ec ipr = (struct ip_reassdata *)memp_malloc(MEMP_REASSDATA); - 801b7d4: 2004 movs r0, #4 - 801b7d6: f7f5 fb09 bl 8010dec - 801b7da: 60f8 str r0, [r7, #12] + 801b7e4: 2004 movs r0, #4 + 801b7e6: f7f5 fb09 bl 8010dfc + 801b7ea: 60f8 str r0, [r7, #12] } if (ipr == NULL) - 801b7dc: 68fb ldr r3, [r7, #12] - 801b7de: 2b00 cmp r3, #0 - 801b7e0: d101 bne.n 801b7e6 + 801b7ec: 68fb ldr r3, [r7, #12] + 801b7ee: 2b00 cmp r3, #0 + 801b7f0: d101 bne.n 801b7f6 #endif /* IP_REASS_FREE_OLDEST */ { IPFRAG_STATS_INC(ip_frag.memerr); LWIP_DEBUGF(IP_REASS_DEBUG, ("Failed to alloc reassdata struct\n")); return NULL; - 801b7e2: 2300 movs r3, #0 - 801b7e4: e016 b.n 801b814 + 801b7f2: 2300 movs r3, #0 + 801b7f4: e016 b.n 801b824 } } memset(ipr, 0, sizeof(struct ip_reassdata)); - 801b7e6: 2220 movs r2, #32 - 801b7e8: 2100 movs r1, #0 - 801b7ea: 68f8 ldr r0, [r7, #12] - 801b7ec: f000 ff23 bl 801c636 + 801b7f6: 2220 movs r2, #32 + 801b7f8: 2100 movs r1, #0 + 801b7fa: 68f8 ldr r0, [r7, #12] + 801b7fc: f000 ff23 bl 801c646 ipr->timer = IP_REASS_MAXAGE; - 801b7f0: 68fb ldr r3, [r7, #12] - 801b7f2: 220f movs r2, #15 - 801b7f4: 77da strb r2, [r3, #31] + 801b800: 68fb ldr r3, [r7, #12] + 801b802: 220f movs r2, #15 + 801b804: 77da strb r2, [r3, #31] /* enqueue the new structure to the front of the list */ ipr->next = reassdatagrams; - 801b7f6: 4b09 ldr r3, [pc, #36] ; (801b81c ) - 801b7f8: 681a ldr r2, [r3, #0] - 801b7fa: 68fb ldr r3, [r7, #12] - 801b7fc: 601a str r2, [r3, #0] + 801b806: 4b09 ldr r3, [pc, #36] ; (801b82c ) + 801b808: 681a ldr r2, [r3, #0] + 801b80a: 68fb ldr r3, [r7, #12] + 801b80c: 601a str r2, [r3, #0] reassdatagrams = ipr; - 801b7fe: 4a07 ldr r2, [pc, #28] ; (801b81c ) - 801b800: 68fb ldr r3, [r7, #12] - 801b802: 6013 str r3, [r2, #0] + 801b80e: 4a07 ldr r2, [pc, #28] ; (801b82c ) + 801b810: 68fb ldr r3, [r7, #12] + 801b812: 6013 str r3, [r2, #0] /* copy the ip header for later tests and input */ /* @todo: no ip options supported? */ SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN); - 801b804: 68fb ldr r3, [r7, #12] - 801b806: 3308 adds r3, #8 - 801b808: 2214 movs r2, #20 - 801b80a: 6879 ldr r1, [r7, #4] - 801b80c: 4618 mov r0, r3 - 801b80e: f000 feee bl 801c5ee + 801b814: 68fb ldr r3, [r7, #12] + 801b816: 3308 adds r3, #8 + 801b818: 2214 movs r2, #20 + 801b81a: 6879 ldr r1, [r7, #4] + 801b81c: 4618 mov r0, r3 + 801b81e: f000 feee bl 801c5fe return ipr; - 801b812: 68fb ldr r3, [r7, #12] + 801b822: 68fb ldr r3, [r7, #12] } - 801b814: 4618 mov r0, r3 - 801b816: 3710 adds r7, #16 - 801b818: 46bd mov sp, r7 - 801b81a: bd80 pop {r7, pc} - 801b81c: 20008860 .word 0x20008860 + 801b824: 4618 mov r0, r3 + 801b826: 3710 adds r7, #16 + 801b828: 46bd mov sp, r7 + 801b82a: bd80 pop {r7, pc} + 801b82c: 20008860 .word 0x20008860 -0801b820 : +0801b830 : * Dequeues a datagram from the datagram queue. Doesn't deallocate the pbufs. * @param ipr points to the queue entry to dequeue */ static void ip_reass_dequeue_datagram(struct ip_reassdata *ipr, struct ip_reassdata *prev) { - 801b820: b580 push {r7, lr} - 801b822: b082 sub sp, #8 - 801b824: af00 add r7, sp, #0 - 801b826: 6078 str r0, [r7, #4] - 801b828: 6039 str r1, [r7, #0] + 801b830: b580 push {r7, lr} + 801b832: b082 sub sp, #8 + 801b834: af00 add r7, sp, #0 + 801b836: 6078 str r0, [r7, #4] + 801b838: 6039 str r1, [r7, #0] /* dequeue the reass struct */ if (reassdatagrams == ipr) { - 801b82a: 4b10 ldr r3, [pc, #64] ; (801b86c ) - 801b82c: 681b ldr r3, [r3, #0] - 801b82e: 687a ldr r2, [r7, #4] - 801b830: 429a cmp r2, r3 - 801b832: d104 bne.n 801b83e + 801b83a: 4b10 ldr r3, [pc, #64] ; (801b87c ) + 801b83c: 681b ldr r3, [r3, #0] + 801b83e: 687a ldr r2, [r7, #4] + 801b840: 429a cmp r2, r3 + 801b842: d104 bne.n 801b84e /* it was the first in the list */ reassdatagrams = ipr->next; - 801b834: 687b ldr r3, [r7, #4] - 801b836: 681b ldr r3, [r3, #0] - 801b838: 4a0c ldr r2, [pc, #48] ; (801b86c ) - 801b83a: 6013 str r3, [r2, #0] - 801b83c: e00d b.n 801b85a + 801b844: 687b ldr r3, [r7, #4] + 801b846: 681b ldr r3, [r3, #0] + 801b848: 4a0c ldr r2, [pc, #48] ; (801b87c ) + 801b84a: 6013 str r3, [r2, #0] + 801b84c: e00d b.n 801b86a } else { /* it wasn't the first, so it must have a valid 'prev' */ LWIP_ASSERT("sanity check linked list", prev != NULL); - 801b83e: 683b ldr r3, [r7, #0] - 801b840: 2b00 cmp r3, #0 - 801b842: d106 bne.n 801b852 - 801b844: 4b0a ldr r3, [pc, #40] ; (801b870 ) - 801b846: f240 1245 movw r2, #325 ; 0x145 - 801b84a: 490a ldr r1, [pc, #40] ; (801b874 ) - 801b84c: 480a ldr r0, [pc, #40] ; (801b878 ) - 801b84e: f000 fefb bl 801c648 + 801b84e: 683b ldr r3, [r7, #0] + 801b850: 2b00 cmp r3, #0 + 801b852: d106 bne.n 801b862 + 801b854: 4b0a ldr r3, [pc, #40] ; (801b880 ) + 801b856: f240 1245 movw r2, #325 ; 0x145 + 801b85a: 490a ldr r1, [pc, #40] ; (801b884 ) + 801b85c: 480a ldr r0, [pc, #40] ; (801b888 ) + 801b85e: f000 fefb bl 801c658 prev->next = ipr->next; - 801b852: 687b ldr r3, [r7, #4] - 801b854: 681a ldr r2, [r3, #0] - 801b856: 683b ldr r3, [r7, #0] - 801b858: 601a str r2, [r3, #0] + 801b862: 687b ldr r3, [r7, #4] + 801b864: 681a ldr r2, [r3, #0] + 801b866: 683b ldr r3, [r7, #0] + 801b868: 601a str r2, [r3, #0] } /* now we can free the ip_reassdata struct */ memp_free(MEMP_REASSDATA, ipr); - 801b85a: 6879 ldr r1, [r7, #4] - 801b85c: 2004 movs r0, #4 - 801b85e: f7f5 fb17 bl 8010e90 -} - 801b862: bf00 nop - 801b864: 3708 adds r7, #8 - 801b866: 46bd mov sp, r7 - 801b868: bd80 pop {r7, pc} - 801b86a: bf00 nop - 801b86c: 20008860 .word 0x20008860 - 801b870: 080204d0 .word 0x080204d0 - 801b874: 08020598 .word 0x08020598 - 801b878: 08020518 .word 0x08020518 - -0801b87c : + 801b86a: 6879 ldr r1, [r7, #4] + 801b86c: 2004 movs r0, #4 + 801b86e: f7f5 fb17 bl 8010ea0 +} + 801b872: bf00 nop + 801b874: 3708 adds r7, #8 + 801b876: 46bd mov sp, r7 + 801b878: bd80 pop {r7, pc} + 801b87a: bf00 nop + 801b87c: 20008860 .word 0x20008860 + 801b880: 080204e0 .word 0x080204e0 + 801b884: 080205a8 .word 0x080205a8 + 801b888: 08020528 .word 0x08020528 + +0801b88c : * @param is_last is 1 if this pbuf has MF==0 (ipr->flags not updated yet) * @return see IP_REASS_VALIDATE_* defines */ static int ip_reass_chain_frag_into_datagram_and_validate(struct ip_reassdata *ipr, struct pbuf *new_p, int is_last) { - 801b87c: b580 push {r7, lr} - 801b87e: b08c sub sp, #48 ; 0x30 - 801b880: af00 add r7, sp, #0 - 801b882: 60f8 str r0, [r7, #12] - 801b884: 60b9 str r1, [r7, #8] - 801b886: 607a str r2, [r7, #4] + 801b88c: b580 push {r7, lr} + 801b88e: b08c sub sp, #48 ; 0x30 + 801b890: af00 add r7, sp, #0 + 801b892: 60f8 str r0, [r7, #12] + 801b894: 60b9 str r1, [r7, #8] + 801b896: 607a str r2, [r7, #4] struct ip_reass_helper *iprh, *iprh_tmp, *iprh_prev = NULL; - 801b888: 2300 movs r3, #0 - 801b88a: 62bb str r3, [r7, #40] ; 0x28 + 801b898: 2300 movs r3, #0 + 801b89a: 62bb str r3, [r7, #40] ; 0x28 struct pbuf *q; u16_t offset, len; u8_t hlen; struct ip_hdr *fraghdr; int valid = 1; - 801b88c: 2301 movs r3, #1 - 801b88e: 623b str r3, [r7, #32] + 801b89c: 2301 movs r3, #1 + 801b89e: 623b str r3, [r7, #32] /* Extract length and fragment offset from current fragment */ fraghdr = (struct ip_hdr *)new_p->payload; - 801b890: 68bb ldr r3, [r7, #8] - 801b892: 685b ldr r3, [r3, #4] - 801b894: 61fb str r3, [r7, #28] + 801b8a0: 68bb ldr r3, [r7, #8] + 801b8a2: 685b ldr r3, [r3, #4] + 801b8a4: 61fb str r3, [r7, #28] len = lwip_ntohs(IPH_LEN(fraghdr)); - 801b896: 69fb ldr r3, [r7, #28] - 801b898: 885b ldrh r3, [r3, #2] - 801b89a: b29b uxth r3, r3 - 801b89c: 4618 mov r0, r3 - 801b89e: f7f4 fdef bl 8010480 - 801b8a2: 4603 mov r3, r0 - 801b8a4: 837b strh r3, [r7, #26] - hlen = IPH_HL_BYTES(fraghdr); 801b8a6: 69fb ldr r3, [r7, #28] - 801b8a8: 781b ldrb r3, [r3, #0] - 801b8aa: f003 030f and.w r3, r3, #15 - 801b8ae: b2db uxtb r3, r3 - 801b8b0: 009b lsls r3, r3, #2 - 801b8b2: 767b strb r3, [r7, #25] + 801b8a8: 885b ldrh r3, [r3, #2] + 801b8aa: b29b uxth r3, r3 + 801b8ac: 4618 mov r0, r3 + 801b8ae: f7f4 fdef bl 8010490 + 801b8b2: 4603 mov r3, r0 + 801b8b4: 837b strh r3, [r7, #26] + hlen = IPH_HL_BYTES(fraghdr); + 801b8b6: 69fb ldr r3, [r7, #28] + 801b8b8: 781b ldrb r3, [r3, #0] + 801b8ba: f003 030f and.w r3, r3, #15 + 801b8be: b2db uxtb r3, r3 + 801b8c0: 009b lsls r3, r3, #2 + 801b8c2: 767b strb r3, [r7, #25] if (hlen > len) { - 801b8b4: 7e7b ldrb r3, [r7, #25] - 801b8b6: b29b uxth r3, r3 - 801b8b8: 8b7a ldrh r2, [r7, #26] - 801b8ba: 429a cmp r2, r3 - 801b8bc: d202 bcs.n 801b8c4 + 801b8c4: 7e7b ldrb r3, [r7, #25] + 801b8c6: b29b uxth r3, r3 + 801b8c8: 8b7a ldrh r2, [r7, #26] + 801b8ca: 429a cmp r2, r3 + 801b8cc: d202 bcs.n 801b8d4 /* invalid datagram */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 801b8be: f04f 33ff mov.w r3, #4294967295 - 801b8c2: e135 b.n 801bb30 + 801b8ce: f04f 33ff mov.w r3, #4294967295 + 801b8d2: e135 b.n 801bb40 } len = (u16_t)(len - hlen); - 801b8c4: 7e7b ldrb r3, [r7, #25] - 801b8c6: b29b uxth r3, r3 - 801b8c8: 8b7a ldrh r2, [r7, #26] - 801b8ca: 1ad3 subs r3, r2, r3 - 801b8cc: 837b strh r3, [r7, #26] + 801b8d4: 7e7b ldrb r3, [r7, #25] + 801b8d6: b29b uxth r3, r3 + 801b8d8: 8b7a ldrh r2, [r7, #26] + 801b8da: 1ad3 subs r3, r2, r3 + 801b8dc: 837b strh r3, [r7, #26] offset = IPH_OFFSET_BYTES(fraghdr); - 801b8ce: 69fb ldr r3, [r7, #28] - 801b8d0: 88db ldrh r3, [r3, #6] - 801b8d2: b29b uxth r3, r3 - 801b8d4: 4618 mov r0, r3 - 801b8d6: f7f4 fdd3 bl 8010480 - 801b8da: 4603 mov r3, r0 - 801b8dc: f3c3 030c ubfx r3, r3, #0, #13 - 801b8e0: b29b uxth r3, r3 - 801b8e2: 00db lsls r3, r3, #3 - 801b8e4: 82fb strh r3, [r7, #22] + 801b8de: 69fb ldr r3, [r7, #28] + 801b8e0: 88db ldrh r3, [r3, #6] + 801b8e2: b29b uxth r3, r3 + 801b8e4: 4618 mov r0, r3 + 801b8e6: f7f4 fdd3 bl 8010490 + 801b8ea: 4603 mov r3, r0 + 801b8ec: f3c3 030c ubfx r3, r3, #0, #13 + 801b8f0: b29b uxth r3, r3 + 801b8f2: 00db lsls r3, r3, #3 + 801b8f4: 82fb strh r3, [r7, #22] /* overwrite the fragment's ip header from the pbuf with our helper struct, * and setup the embedded helper structure. */ /* make sure the struct ip_reass_helper fits into the IP header */ LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN", sizeof(struct ip_reass_helper) <= IP_HLEN); iprh = (struct ip_reass_helper *)new_p->payload; - 801b8e6: 68bb ldr r3, [r7, #8] - 801b8e8: 685b ldr r3, [r3, #4] - 801b8ea: 62fb str r3, [r7, #44] ; 0x2c + 801b8f6: 68bb ldr r3, [r7, #8] + 801b8f8: 685b ldr r3, [r3, #4] + 801b8fa: 62fb str r3, [r7, #44] ; 0x2c iprh->next_pbuf = NULL; - 801b8ec: 6afb ldr r3, [r7, #44] ; 0x2c - 801b8ee: 2200 movs r2, #0 - 801b8f0: 701a strb r2, [r3, #0] - 801b8f2: 2200 movs r2, #0 - 801b8f4: 705a strb r2, [r3, #1] - 801b8f6: 2200 movs r2, #0 - 801b8f8: 709a strb r2, [r3, #2] - 801b8fa: 2200 movs r2, #0 - 801b8fc: 70da strb r2, [r3, #3] + 801b8fc: 6afb ldr r3, [r7, #44] ; 0x2c + 801b8fe: 2200 movs r2, #0 + 801b900: 701a strb r2, [r3, #0] + 801b902: 2200 movs r2, #0 + 801b904: 705a strb r2, [r3, #1] + 801b906: 2200 movs r2, #0 + 801b908: 709a strb r2, [r3, #2] + 801b90a: 2200 movs r2, #0 + 801b90c: 70da strb r2, [r3, #3] iprh->start = offset; - 801b8fe: 6afb ldr r3, [r7, #44] ; 0x2c - 801b900: 8afa ldrh r2, [r7, #22] - 801b902: 809a strh r2, [r3, #4] + 801b90e: 6afb ldr r3, [r7, #44] ; 0x2c + 801b910: 8afa ldrh r2, [r7, #22] + 801b912: 809a strh r2, [r3, #4] iprh->end = (u16_t)(offset + len); - 801b904: 8afa ldrh r2, [r7, #22] - 801b906: 8b7b ldrh r3, [r7, #26] - 801b908: 4413 add r3, r2 - 801b90a: b29a uxth r2, r3 - 801b90c: 6afb ldr r3, [r7, #44] ; 0x2c - 801b90e: 80da strh r2, [r3, #6] + 801b914: 8afa ldrh r2, [r7, #22] + 801b916: 8b7b ldrh r3, [r7, #26] + 801b918: 4413 add r3, r2 + 801b91a: b29a uxth r2, r3 + 801b91c: 6afb ldr r3, [r7, #44] ; 0x2c + 801b91e: 80da strh r2, [r3, #6] if (iprh->end < offset) { - 801b910: 6afb ldr r3, [r7, #44] ; 0x2c - 801b912: 88db ldrh r3, [r3, #6] - 801b914: b29b uxth r3, r3 - 801b916: 8afa ldrh r2, [r7, #22] - 801b918: 429a cmp r2, r3 - 801b91a: d902 bls.n 801b922 + 801b920: 6afb ldr r3, [r7, #44] ; 0x2c + 801b922: 88db ldrh r3, [r3, #6] + 801b924: b29b uxth r3, r3 + 801b926: 8afa ldrh r2, [r7, #22] + 801b928: 429a cmp r2, r3 + 801b92a: d902 bls.n 801b932 /* u16_t overflow, cannot handle this */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 801b91c: f04f 33ff mov.w r3, #4294967295 - 801b920: e106 b.n 801bb30 + 801b92c: f04f 33ff mov.w r3, #4294967295 + 801b930: e106 b.n 801bb40 } /* Iterate through until we either get to the end of the list (append), * or we find one with a larger offset (insert). */ for (q = ipr->p; q != NULL;) { - 801b922: 68fb ldr r3, [r7, #12] - 801b924: 685b ldr r3, [r3, #4] - 801b926: 627b str r3, [r7, #36] ; 0x24 - 801b928: e068 b.n 801b9fc + 801b932: 68fb ldr r3, [r7, #12] + 801b934: 685b ldr r3, [r3, #4] + 801b936: 627b str r3, [r7, #36] ; 0x24 + 801b938: e068 b.n 801ba0c iprh_tmp = (struct ip_reass_helper *)q->payload; - 801b92a: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b92c: 685b ldr r3, [r3, #4] - 801b92e: 613b str r3, [r7, #16] + 801b93a: 6a7b ldr r3, [r7, #36] ; 0x24 + 801b93c: 685b ldr r3, [r3, #4] + 801b93e: 613b str r3, [r7, #16] if (iprh->start < iprh_tmp->start) { - 801b930: 6afb ldr r3, [r7, #44] ; 0x2c - 801b932: 889b ldrh r3, [r3, #4] - 801b934: b29a uxth r2, r3 - 801b936: 693b ldr r3, [r7, #16] - 801b938: 889b ldrh r3, [r3, #4] - 801b93a: b29b uxth r3, r3 - 801b93c: 429a cmp r2, r3 - 801b93e: d235 bcs.n 801b9ac + 801b940: 6afb ldr r3, [r7, #44] ; 0x2c + 801b942: 889b ldrh r3, [r3, #4] + 801b944: b29a uxth r2, r3 + 801b946: 693b ldr r3, [r7, #16] + 801b948: 889b ldrh r3, [r3, #4] + 801b94a: b29b uxth r3, r3 + 801b94c: 429a cmp r2, r3 + 801b94e: d235 bcs.n 801b9bc /* the new pbuf should be inserted before this */ iprh->next_pbuf = q; - 801b940: 6afb ldr r3, [r7, #44] ; 0x2c - 801b942: 6a7a ldr r2, [r7, #36] ; 0x24 - 801b944: 601a str r2, [r3, #0] + 801b950: 6afb ldr r3, [r7, #44] ; 0x2c + 801b952: 6a7a ldr r2, [r7, #36] ; 0x24 + 801b954: 601a str r2, [r3, #0] if (iprh_prev != NULL) { - 801b946: 6abb ldr r3, [r7, #40] ; 0x28 - 801b948: 2b00 cmp r3, #0 - 801b94a: d020 beq.n 801b98e + 801b956: 6abb ldr r3, [r7, #40] ; 0x28 + 801b958: 2b00 cmp r3, #0 + 801b95a: d020 beq.n 801b99e /* not the fragment with the lowest offset */ #if IP_REASS_CHECK_OVERLAP if ((iprh->start < iprh_prev->end) || (iprh->end > iprh_tmp->start)) { - 801b94c: 6afb ldr r3, [r7, #44] ; 0x2c - 801b94e: 889b ldrh r3, [r3, #4] - 801b950: b29a uxth r2, r3 - 801b952: 6abb ldr r3, [r7, #40] ; 0x28 - 801b954: 88db ldrh r3, [r3, #6] - 801b956: b29b uxth r3, r3 - 801b958: 429a cmp r2, r3 - 801b95a: d307 bcc.n 801b96c 801b95c: 6afb ldr r3, [r7, #44] ; 0x2c - 801b95e: 88db ldrh r3, [r3, #6] + 801b95e: 889b ldrh r3, [r3, #4] 801b960: b29a uxth r2, r3 - 801b962: 693b ldr r3, [r7, #16] - 801b964: 889b ldrh r3, [r3, #4] + 801b962: 6abb ldr r3, [r7, #40] ; 0x28 + 801b964: 88db ldrh r3, [r3, #6] 801b966: b29b uxth r3, r3 801b968: 429a cmp r2, r3 - 801b96a: d902 bls.n 801b972 + 801b96a: d307 bcc.n 801b97c + 801b96c: 6afb ldr r3, [r7, #44] ; 0x2c + 801b96e: 88db ldrh r3, [r3, #6] + 801b970: b29a uxth r2, r3 + 801b972: 693b ldr r3, [r7, #16] + 801b974: 889b ldrh r3, [r3, #4] + 801b976: b29b uxth r3, r3 + 801b978: 429a cmp r2, r3 + 801b97a: d902 bls.n 801b982 /* fragment overlaps with previous or following, throw away */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 801b96c: f04f 33ff mov.w r3, #4294967295 - 801b970: e0de b.n 801bb30 + 801b97c: f04f 33ff mov.w r3, #4294967295 + 801b980: e0de b.n 801bb40 } #endif /* IP_REASS_CHECK_OVERLAP */ iprh_prev->next_pbuf = new_p; - 801b972: 6abb ldr r3, [r7, #40] ; 0x28 - 801b974: 68ba ldr r2, [r7, #8] - 801b976: 601a str r2, [r3, #0] + 801b982: 6abb ldr r3, [r7, #40] ; 0x28 + 801b984: 68ba ldr r2, [r7, #8] + 801b986: 601a str r2, [r3, #0] if (iprh_prev->end != iprh->start) { - 801b978: 6abb ldr r3, [r7, #40] ; 0x28 - 801b97a: 88db ldrh r3, [r3, #6] - 801b97c: b29a uxth r2, r3 - 801b97e: 6afb ldr r3, [r7, #44] ; 0x2c - 801b980: 889b ldrh r3, [r3, #4] - 801b982: b29b uxth r3, r3 - 801b984: 429a cmp r2, r3 - 801b986: d03d beq.n 801ba04 + 801b988: 6abb ldr r3, [r7, #40] ; 0x28 + 801b98a: 88db ldrh r3, [r3, #6] + 801b98c: b29a uxth r2, r3 + 801b98e: 6afb ldr r3, [r7, #44] ; 0x2c + 801b990: 889b ldrh r3, [r3, #4] + 801b992: b29b uxth r3, r3 + 801b994: 429a cmp r2, r3 + 801b996: d03d beq.n 801ba14 /* There is a fragment missing between the current * and the previous fragment */ valid = 0; - 801b988: 2300 movs r3, #0 - 801b98a: 623b str r3, [r7, #32] + 801b998: 2300 movs r3, #0 + 801b99a: 623b str r3, [r7, #32] } #endif /* IP_REASS_CHECK_OVERLAP */ /* fragment with the lowest offset */ ipr->p = new_p; } break; - 801b98c: e03a b.n 801ba04 + 801b99c: e03a b.n 801ba14 if (iprh->end > iprh_tmp->start) { - 801b98e: 6afb ldr r3, [r7, #44] ; 0x2c - 801b990: 88db ldrh r3, [r3, #6] - 801b992: b29a uxth r2, r3 - 801b994: 693b ldr r3, [r7, #16] - 801b996: 889b ldrh r3, [r3, #4] - 801b998: b29b uxth r3, r3 - 801b99a: 429a cmp r2, r3 - 801b99c: d902 bls.n 801b9a4 + 801b99e: 6afb ldr r3, [r7, #44] ; 0x2c + 801b9a0: 88db ldrh r3, [r3, #6] + 801b9a2: b29a uxth r2, r3 + 801b9a4: 693b ldr r3, [r7, #16] + 801b9a6: 889b ldrh r3, [r3, #4] + 801b9a8: b29b uxth r3, r3 + 801b9aa: 429a cmp r2, r3 + 801b9ac: d902 bls.n 801b9b4 return IP_REASS_VALIDATE_PBUF_DROPPED; - 801b99e: f04f 33ff mov.w r3, #4294967295 - 801b9a2: e0c5 b.n 801bb30 + 801b9ae: f04f 33ff mov.w r3, #4294967295 + 801b9b2: e0c5 b.n 801bb40 ipr->p = new_p; - 801b9a4: 68fb ldr r3, [r7, #12] - 801b9a6: 68ba ldr r2, [r7, #8] - 801b9a8: 605a str r2, [r3, #4] + 801b9b4: 68fb ldr r3, [r7, #12] + 801b9b6: 68ba ldr r2, [r7, #8] + 801b9b8: 605a str r2, [r3, #4] break; - 801b9aa: e02b b.n 801ba04 + 801b9ba: e02b b.n 801ba14 } else if (iprh->start == iprh_tmp->start) { - 801b9ac: 6afb ldr r3, [r7, #44] ; 0x2c - 801b9ae: 889b ldrh r3, [r3, #4] - 801b9b0: b29a uxth r2, r3 - 801b9b2: 693b ldr r3, [r7, #16] - 801b9b4: 889b ldrh r3, [r3, #4] - 801b9b6: b29b uxth r3, r3 - 801b9b8: 429a cmp r2, r3 - 801b9ba: d102 bne.n 801b9c2 + 801b9bc: 6afb ldr r3, [r7, #44] ; 0x2c + 801b9be: 889b ldrh r3, [r3, #4] + 801b9c0: b29a uxth r2, r3 + 801b9c2: 693b ldr r3, [r7, #16] + 801b9c4: 889b ldrh r3, [r3, #4] + 801b9c6: b29b uxth r3, r3 + 801b9c8: 429a cmp r2, r3 + 801b9ca: d102 bne.n 801b9d2 /* received the same datagram twice: no need to keep the datagram */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 801b9bc: f04f 33ff mov.w r3, #4294967295 - 801b9c0: e0b6 b.n 801bb30 + 801b9cc: f04f 33ff mov.w r3, #4294967295 + 801b9d0: e0b6 b.n 801bb40 #if IP_REASS_CHECK_OVERLAP } else if (iprh->start < iprh_tmp->end) { - 801b9c2: 6afb ldr r3, [r7, #44] ; 0x2c - 801b9c4: 889b ldrh r3, [r3, #4] - 801b9c6: b29a uxth r2, r3 - 801b9c8: 693b ldr r3, [r7, #16] - 801b9ca: 88db ldrh r3, [r3, #6] - 801b9cc: b29b uxth r3, r3 - 801b9ce: 429a cmp r2, r3 - 801b9d0: d202 bcs.n 801b9d8 + 801b9d2: 6afb ldr r3, [r7, #44] ; 0x2c + 801b9d4: 889b ldrh r3, [r3, #4] + 801b9d6: b29a uxth r2, r3 + 801b9d8: 693b ldr r3, [r7, #16] + 801b9da: 88db ldrh r3, [r3, #6] + 801b9dc: b29b uxth r3, r3 + 801b9de: 429a cmp r2, r3 + 801b9e0: d202 bcs.n 801b9e8 /* overlap: no need to keep the new datagram */ return IP_REASS_VALIDATE_PBUF_DROPPED; - 801b9d2: f04f 33ff mov.w r3, #4294967295 - 801b9d6: e0ab b.n 801bb30 + 801b9e2: f04f 33ff mov.w r3, #4294967295 + 801b9e6: e0ab b.n 801bb40 #endif /* IP_REASS_CHECK_OVERLAP */ } else { /* Check if the fragments received so far have no holes. */ if (iprh_prev != NULL) { - 801b9d8: 6abb ldr r3, [r7, #40] ; 0x28 - 801b9da: 2b00 cmp r3, #0 - 801b9dc: d009 beq.n 801b9f2 + 801b9e8: 6abb ldr r3, [r7, #40] ; 0x28 + 801b9ea: 2b00 cmp r3, #0 + 801b9ec: d009 beq.n 801ba02 if (iprh_prev->end != iprh_tmp->start) { - 801b9de: 6abb ldr r3, [r7, #40] ; 0x28 - 801b9e0: 88db ldrh r3, [r3, #6] - 801b9e2: b29a uxth r2, r3 - 801b9e4: 693b ldr r3, [r7, #16] - 801b9e6: 889b ldrh r3, [r3, #4] - 801b9e8: b29b uxth r3, r3 - 801b9ea: 429a cmp r2, r3 - 801b9ec: d001 beq.n 801b9f2 + 801b9ee: 6abb ldr r3, [r7, #40] ; 0x28 + 801b9f0: 88db ldrh r3, [r3, #6] + 801b9f2: b29a uxth r2, r3 + 801b9f4: 693b ldr r3, [r7, #16] + 801b9f6: 889b ldrh r3, [r3, #4] + 801b9f8: b29b uxth r3, r3 + 801b9fa: 429a cmp r2, r3 + 801b9fc: d001 beq.n 801ba02 /* There is a fragment missing between the current * and the previous fragment */ valid = 0; - 801b9ee: 2300 movs r3, #0 - 801b9f0: 623b str r3, [r7, #32] + 801b9fe: 2300 movs r3, #0 + 801ba00: 623b str r3, [r7, #32] } } } q = iprh_tmp->next_pbuf; - 801b9f2: 693b ldr r3, [r7, #16] - 801b9f4: 681b ldr r3, [r3, #0] - 801b9f6: 627b str r3, [r7, #36] ; 0x24 + 801ba02: 693b ldr r3, [r7, #16] + 801ba04: 681b ldr r3, [r3, #0] + 801ba06: 627b str r3, [r7, #36] ; 0x24 iprh_prev = iprh_tmp; - 801b9f8: 693b ldr r3, [r7, #16] - 801b9fa: 62bb str r3, [r7, #40] ; 0x28 + 801ba08: 693b ldr r3, [r7, #16] + 801ba0a: 62bb str r3, [r7, #40] ; 0x28 for (q = ipr->p; q != NULL;) { - 801b9fc: 6a7b ldr r3, [r7, #36] ; 0x24 - 801b9fe: 2b00 cmp r3, #0 - 801ba00: d193 bne.n 801b92a - 801ba02: e000 b.n 801ba06 + 801ba0c: 6a7b ldr r3, [r7, #36] ; 0x24 + 801ba0e: 2b00 cmp r3, #0 + 801ba10: d193 bne.n 801b93a + 801ba12: e000 b.n 801ba16 break; - 801ba04: bf00 nop + 801ba14: bf00 nop } /* If q is NULL, then we made it to the end of the list. Determine what to do now */ if (q == NULL) { - 801ba06: 6a7b ldr r3, [r7, #36] ; 0x24 - 801ba08: 2b00 cmp r3, #0 - 801ba0a: d12d bne.n 801ba68 + 801ba16: 6a7b ldr r3, [r7, #36] ; 0x24 + 801ba18: 2b00 cmp r3, #0 + 801ba1a: d12d bne.n 801ba78 if (iprh_prev != NULL) { - 801ba0c: 6abb ldr r3, [r7, #40] ; 0x28 - 801ba0e: 2b00 cmp r3, #0 - 801ba10: d01c beq.n 801ba4c + 801ba1c: 6abb ldr r3, [r7, #40] ; 0x28 + 801ba1e: 2b00 cmp r3, #0 + 801ba20: d01c beq.n 801ba5c /* this is (for now), the fragment with the highest offset: * chain it to the last fragment */ #if IP_REASS_CHECK_OVERLAP LWIP_ASSERT("check fragments don't overlap", iprh_prev->end <= iprh->start); - 801ba12: 6abb ldr r3, [r7, #40] ; 0x28 - 801ba14: 88db ldrh r3, [r3, #6] - 801ba16: b29a uxth r2, r3 - 801ba18: 6afb ldr r3, [r7, #44] ; 0x2c - 801ba1a: 889b ldrh r3, [r3, #4] - 801ba1c: b29b uxth r3, r3 - 801ba1e: 429a cmp r2, r3 - 801ba20: d906 bls.n 801ba30 - 801ba22: 4b45 ldr r3, [pc, #276] ; (801bb38 ) - 801ba24: f44f 72db mov.w r2, #438 ; 0x1b6 - 801ba28: 4944 ldr r1, [pc, #272] ; (801bb3c ) - 801ba2a: 4845 ldr r0, [pc, #276] ; (801bb40 ) - 801ba2c: f000 fe0c bl 801c648 + 801ba22: 6abb ldr r3, [r7, #40] ; 0x28 + 801ba24: 88db ldrh r3, [r3, #6] + 801ba26: b29a uxth r2, r3 + 801ba28: 6afb ldr r3, [r7, #44] ; 0x2c + 801ba2a: 889b ldrh r3, [r3, #4] + 801ba2c: b29b uxth r3, r3 + 801ba2e: 429a cmp r2, r3 + 801ba30: d906 bls.n 801ba40 + 801ba32: 4b45 ldr r3, [pc, #276] ; (801bb48 ) + 801ba34: f44f 72db mov.w r2, #438 ; 0x1b6 + 801ba38: 4944 ldr r1, [pc, #272] ; (801bb4c ) + 801ba3a: 4845 ldr r0, [pc, #276] ; (801bb50 ) + 801ba3c: f000 fe0c bl 801c658 #endif /* IP_REASS_CHECK_OVERLAP */ iprh_prev->next_pbuf = new_p; - 801ba30: 6abb ldr r3, [r7, #40] ; 0x28 - 801ba32: 68ba ldr r2, [r7, #8] - 801ba34: 601a str r2, [r3, #0] + 801ba40: 6abb ldr r3, [r7, #40] ; 0x28 + 801ba42: 68ba ldr r2, [r7, #8] + 801ba44: 601a str r2, [r3, #0] if (iprh_prev->end != iprh->start) { - 801ba36: 6abb ldr r3, [r7, #40] ; 0x28 - 801ba38: 88db ldrh r3, [r3, #6] - 801ba3a: b29a uxth r2, r3 - 801ba3c: 6afb ldr r3, [r7, #44] ; 0x2c - 801ba3e: 889b ldrh r3, [r3, #4] - 801ba40: b29b uxth r3, r3 - 801ba42: 429a cmp r2, r3 - 801ba44: d010 beq.n 801ba68 + 801ba46: 6abb ldr r3, [r7, #40] ; 0x28 + 801ba48: 88db ldrh r3, [r3, #6] + 801ba4a: b29a uxth r2, r3 + 801ba4c: 6afb ldr r3, [r7, #44] ; 0x2c + 801ba4e: 889b ldrh r3, [r3, #4] + 801ba50: b29b uxth r3, r3 + 801ba52: 429a cmp r2, r3 + 801ba54: d010 beq.n 801ba78 valid = 0; - 801ba46: 2300 movs r3, #0 - 801ba48: 623b str r3, [r7, #32] - 801ba4a: e00d b.n 801ba68 + 801ba56: 2300 movs r3, #0 + 801ba58: 623b str r3, [r7, #32] + 801ba5a: e00d b.n 801ba78 } } else { #if IP_REASS_CHECK_OVERLAP LWIP_ASSERT("no previous fragment, this must be the first fragment!", - 801ba4c: 68fb ldr r3, [r7, #12] - 801ba4e: 685b ldr r3, [r3, #4] - 801ba50: 2b00 cmp r3, #0 - 801ba52: d006 beq.n 801ba62 - 801ba54: 4b38 ldr r3, [pc, #224] ; (801bb38 ) - 801ba56: f240 12bf movw r2, #447 ; 0x1bf - 801ba5a: 493a ldr r1, [pc, #232] ; (801bb44 ) - 801ba5c: 4838 ldr r0, [pc, #224] ; (801bb40 ) - 801ba5e: f000 fdf3 bl 801c648 + 801ba5c: 68fb ldr r3, [r7, #12] + 801ba5e: 685b ldr r3, [r3, #4] + 801ba60: 2b00 cmp r3, #0 + 801ba62: d006 beq.n 801ba72 + 801ba64: 4b38 ldr r3, [pc, #224] ; (801bb48 ) + 801ba66: f240 12bf movw r2, #447 ; 0x1bf + 801ba6a: 493a ldr r1, [pc, #232] ; (801bb54 ) + 801ba6c: 4838 ldr r0, [pc, #224] ; (801bb50 ) + 801ba6e: f000 fdf3 bl 801c658 ipr->p == NULL); #endif /* IP_REASS_CHECK_OVERLAP */ /* this is the first fragment we ever received for this ip datagram */ ipr->p = new_p; - 801ba62: 68fb ldr r3, [r7, #12] - 801ba64: 68ba ldr r2, [r7, #8] - 801ba66: 605a str r2, [r3, #4] + 801ba72: 68fb ldr r3, [r7, #12] + 801ba74: 68ba ldr r2, [r7, #8] + 801ba76: 605a str r2, [r3, #4] } } /* At this point, the validation part begins: */ /* If we already received the last fragment */ if (is_last || ((ipr->flags & IP_REASS_FLAG_LASTFRAG) != 0)) { - 801ba68: 687b ldr r3, [r7, #4] - 801ba6a: 2b00 cmp r3, #0 - 801ba6c: d105 bne.n 801ba7a - 801ba6e: 68fb ldr r3, [r7, #12] - 801ba70: 7f9b ldrb r3, [r3, #30] - 801ba72: f003 0301 and.w r3, r3, #1 - 801ba76: 2b00 cmp r3, #0 - 801ba78: d059 beq.n 801bb2e + 801ba78: 687b ldr r3, [r7, #4] + 801ba7a: 2b00 cmp r3, #0 + 801ba7c: d105 bne.n 801ba8a + 801ba7e: 68fb ldr r3, [r7, #12] + 801ba80: 7f9b ldrb r3, [r3, #30] + 801ba82: f003 0301 and.w r3, r3, #1 + 801ba86: 2b00 cmp r3, #0 + 801ba88: d059 beq.n 801bb3e /* and had no holes so far */ if (valid) { - 801ba7a: 6a3b ldr r3, [r7, #32] - 801ba7c: 2b00 cmp r3, #0 - 801ba7e: d04f beq.n 801bb20 + 801ba8a: 6a3b ldr r3, [r7, #32] + 801ba8c: 2b00 cmp r3, #0 + 801ba8e: d04f beq.n 801bb30 /* then check if the rest of the fragments is here */ /* Check if the queue starts with the first datagram */ if ((ipr->p == NULL) || (((struct ip_reass_helper *)ipr->p->payload)->start != 0)) { - 801ba80: 68fb ldr r3, [r7, #12] - 801ba82: 685b ldr r3, [r3, #4] - 801ba84: 2b00 cmp r3, #0 - 801ba86: d006 beq.n 801ba96 - 801ba88: 68fb ldr r3, [r7, #12] - 801ba8a: 685b ldr r3, [r3, #4] - 801ba8c: 685b ldr r3, [r3, #4] - 801ba8e: 889b ldrh r3, [r3, #4] - 801ba90: b29b uxth r3, r3 - 801ba92: 2b00 cmp r3, #0 - 801ba94: d002 beq.n 801ba9c + 801ba90: 68fb ldr r3, [r7, #12] + 801ba92: 685b ldr r3, [r3, #4] + 801ba94: 2b00 cmp r3, #0 + 801ba96: d006 beq.n 801baa6 + 801ba98: 68fb ldr r3, [r7, #12] + 801ba9a: 685b ldr r3, [r3, #4] + 801ba9c: 685b ldr r3, [r3, #4] + 801ba9e: 889b ldrh r3, [r3, #4] + 801baa0: b29b uxth r3, r3 + 801baa2: 2b00 cmp r3, #0 + 801baa4: d002 beq.n 801baac valid = 0; - 801ba96: 2300 movs r3, #0 - 801ba98: 623b str r3, [r7, #32] - 801ba9a: e041 b.n 801bb20 + 801baa6: 2300 movs r3, #0 + 801baa8: 623b str r3, [r7, #32] + 801baaa: e041 b.n 801bb30 } else { /* and check that there are no holes after this datagram */ iprh_prev = iprh; - 801ba9c: 6afb ldr r3, [r7, #44] ; 0x2c - 801ba9e: 62bb str r3, [r7, #40] ; 0x28 + 801baac: 6afb ldr r3, [r7, #44] ; 0x2c + 801baae: 62bb str r3, [r7, #40] ; 0x28 q = iprh->next_pbuf; - 801baa0: 6afb ldr r3, [r7, #44] ; 0x2c - 801baa2: 681b ldr r3, [r3, #0] - 801baa4: 627b str r3, [r7, #36] ; 0x24 + 801bab0: 6afb ldr r3, [r7, #44] ; 0x2c + 801bab2: 681b ldr r3, [r3, #0] + 801bab4: 627b str r3, [r7, #36] ; 0x24 while (q != NULL) { - 801baa6: e012 b.n 801bace + 801bab6: e012 b.n 801bade iprh = (struct ip_reass_helper *)q->payload; - 801baa8: 6a7b ldr r3, [r7, #36] ; 0x24 - 801baaa: 685b ldr r3, [r3, #4] - 801baac: 62fb str r3, [r7, #44] ; 0x2c + 801bab8: 6a7b ldr r3, [r7, #36] ; 0x24 + 801baba: 685b ldr r3, [r3, #4] + 801babc: 62fb str r3, [r7, #44] ; 0x2c if (iprh_prev->end != iprh->start) { - 801baae: 6abb ldr r3, [r7, #40] ; 0x28 - 801bab0: 88db ldrh r3, [r3, #6] - 801bab2: b29a uxth r2, r3 - 801bab4: 6afb ldr r3, [r7, #44] ; 0x2c - 801bab6: 889b ldrh r3, [r3, #4] - 801bab8: b29b uxth r3, r3 - 801baba: 429a cmp r2, r3 - 801babc: d002 beq.n 801bac4 + 801babe: 6abb ldr r3, [r7, #40] ; 0x28 + 801bac0: 88db ldrh r3, [r3, #6] + 801bac2: b29a uxth r2, r3 + 801bac4: 6afb ldr r3, [r7, #44] ; 0x2c + 801bac6: 889b ldrh r3, [r3, #4] + 801bac8: b29b uxth r3, r3 + 801baca: 429a cmp r2, r3 + 801bacc: d002 beq.n 801bad4 valid = 0; - 801babe: 2300 movs r3, #0 - 801bac0: 623b str r3, [r7, #32] + 801bace: 2300 movs r3, #0 + 801bad0: 623b str r3, [r7, #32] break; - 801bac2: e007 b.n 801bad4 + 801bad2: e007 b.n 801bae4 } iprh_prev = iprh; - 801bac4: 6afb ldr r3, [r7, #44] ; 0x2c - 801bac6: 62bb str r3, [r7, #40] ; 0x28 + 801bad4: 6afb ldr r3, [r7, #44] ; 0x2c + 801bad6: 62bb str r3, [r7, #40] ; 0x28 q = iprh->next_pbuf; - 801bac8: 6afb ldr r3, [r7, #44] ; 0x2c - 801baca: 681b ldr r3, [r3, #0] - 801bacc: 627b str r3, [r7, #36] ; 0x24 + 801bad8: 6afb ldr r3, [r7, #44] ; 0x2c + 801bada: 681b ldr r3, [r3, #0] + 801badc: 627b str r3, [r7, #36] ; 0x24 while (q != NULL) { - 801bace: 6a7b ldr r3, [r7, #36] ; 0x24 - 801bad0: 2b00 cmp r3, #0 - 801bad2: d1e9 bne.n 801baa8 + 801bade: 6a7b ldr r3, [r7, #36] ; 0x24 + 801bae0: 2b00 cmp r3, #0 + 801bae2: d1e9 bne.n 801bab8 } /* if still valid, all fragments are received * (because to the MF==0 already arrived */ if (valid) { - 801bad4: 6a3b ldr r3, [r7, #32] - 801bad6: 2b00 cmp r3, #0 - 801bad8: d022 beq.n 801bb20 + 801bae4: 6a3b ldr r3, [r7, #32] + 801bae6: 2b00 cmp r3, #0 + 801bae8: d022 beq.n 801bb30 LWIP_ASSERT("sanity check", ipr->p != NULL); - 801bada: 68fb ldr r3, [r7, #12] - 801badc: 685b ldr r3, [r3, #4] - 801bade: 2b00 cmp r3, #0 - 801bae0: d106 bne.n 801baf0 - 801bae2: 4b15 ldr r3, [pc, #84] ; (801bb38 ) - 801bae4: f240 12df movw r2, #479 ; 0x1df - 801bae8: 4917 ldr r1, [pc, #92] ; (801bb48 ) - 801baea: 4815 ldr r0, [pc, #84] ; (801bb40 ) - 801baec: f000 fdac bl 801c648 + 801baea: 68fb ldr r3, [r7, #12] + 801baec: 685b ldr r3, [r3, #4] + 801baee: 2b00 cmp r3, #0 + 801baf0: d106 bne.n 801bb00 + 801baf2: 4b15 ldr r3, [pc, #84] ; (801bb48 ) + 801baf4: f240 12df movw r2, #479 ; 0x1df + 801baf8: 4917 ldr r1, [pc, #92] ; (801bb58 ) + 801bafa: 4815 ldr r0, [pc, #84] ; (801bb50 ) + 801bafc: f000 fdac bl 801c658 LWIP_ASSERT("sanity check", - 801baf0: 68fb ldr r3, [r7, #12] - 801baf2: 685b ldr r3, [r3, #4] - 801baf4: 685b ldr r3, [r3, #4] - 801baf6: 6afa ldr r2, [r7, #44] ; 0x2c - 801baf8: 429a cmp r2, r3 - 801bafa: d106 bne.n 801bb0a - 801bafc: 4b0e ldr r3, [pc, #56] ; (801bb38 ) - 801bafe: f240 12e1 movw r2, #481 ; 0x1e1 - 801bb02: 4911 ldr r1, [pc, #68] ; (801bb48 ) - 801bb04: 480e ldr r0, [pc, #56] ; (801bb40 ) - 801bb06: f000 fd9f bl 801c648 + 801bb00: 68fb ldr r3, [r7, #12] + 801bb02: 685b ldr r3, [r3, #4] + 801bb04: 685b ldr r3, [r3, #4] + 801bb06: 6afa ldr r2, [r7, #44] ; 0x2c + 801bb08: 429a cmp r2, r3 + 801bb0a: d106 bne.n 801bb1a + 801bb0c: 4b0e ldr r3, [pc, #56] ; (801bb48 ) + 801bb0e: f240 12e1 movw r2, #481 ; 0x1e1 + 801bb12: 4911 ldr r1, [pc, #68] ; (801bb58 ) + 801bb14: 480e ldr r0, [pc, #56] ; (801bb50 ) + 801bb16: f000 fd9f bl 801c658 ((struct ip_reass_helper *)ipr->p->payload) != iprh); LWIP_ASSERT("validate_datagram:next_pbuf!=NULL", - 801bb0a: 6afb ldr r3, [r7, #44] ; 0x2c - 801bb0c: 681b ldr r3, [r3, #0] - 801bb0e: 2b00 cmp r3, #0 - 801bb10: d006 beq.n 801bb20 - 801bb12: 4b09 ldr r3, [pc, #36] ; (801bb38 ) - 801bb14: f240 12e3 movw r2, #483 ; 0x1e3 - 801bb18: 490c ldr r1, [pc, #48] ; (801bb4c ) - 801bb1a: 4809 ldr r0, [pc, #36] ; (801bb40 ) - 801bb1c: f000 fd94 bl 801c648 + 801bb1a: 6afb ldr r3, [r7, #44] ; 0x2c + 801bb1c: 681b ldr r3, [r3, #0] + 801bb1e: 2b00 cmp r3, #0 + 801bb20: d006 beq.n 801bb30 + 801bb22: 4b09 ldr r3, [pc, #36] ; (801bb48 ) + 801bb24: f240 12e3 movw r2, #483 ; 0x1e3 + 801bb28: 490c ldr r1, [pc, #48] ; (801bb5c ) + 801bb2a: 4809 ldr r0, [pc, #36] ; (801bb50 ) + 801bb2c: f000 fd94 bl 801c658 } } /* If valid is 0 here, there are some fragments missing in the middle * (since MF == 0 has already arrived). Such datagrams simply time out if * no more fragments are received... */ return valid ? IP_REASS_VALIDATE_TELEGRAM_FINISHED : IP_REASS_VALIDATE_PBUF_QUEUED; - 801bb20: 6a3b ldr r3, [r7, #32] - 801bb22: 2b00 cmp r3, #0 - 801bb24: bf14 ite ne - 801bb26: 2301 movne r3, #1 - 801bb28: 2300 moveq r3, #0 - 801bb2a: b2db uxtb r3, r3 - 801bb2c: e000 b.n 801bb30 + 801bb30: 6a3b ldr r3, [r7, #32] + 801bb32: 2b00 cmp r3, #0 + 801bb34: bf14 ite ne + 801bb36: 2301 movne r3, #1 + 801bb38: 2300 moveq r3, #0 + 801bb3a: b2db uxtb r3, r3 + 801bb3c: e000 b.n 801bb40 } /* If we come here, not all fragments were received, yet! */ return IP_REASS_VALIDATE_PBUF_QUEUED; /* not yet valid! */ - 801bb2e: 2300 movs r3, #0 -} - 801bb30: 4618 mov r0, r3 - 801bb32: 3730 adds r7, #48 ; 0x30 - 801bb34: 46bd mov sp, r7 - 801bb36: bd80 pop {r7, pc} - 801bb38: 080204d0 .word 0x080204d0 - 801bb3c: 080205b4 .word 0x080205b4 - 801bb40: 08020518 .word 0x08020518 - 801bb44: 080205d4 .word 0x080205d4 - 801bb48: 0802060c .word 0x0802060c - 801bb4c: 0802061c .word 0x0802061c - -0801bb50 : + 801bb3e: 2300 movs r3, #0 +} + 801bb40: 4618 mov r0, r3 + 801bb42: 3730 adds r7, #48 ; 0x30 + 801bb44: 46bd mov sp, r7 + 801bb46: bd80 pop {r7, pc} + 801bb48: 080204e0 .word 0x080204e0 + 801bb4c: 080205c4 .word 0x080205c4 + 801bb50: 08020528 .word 0x08020528 + 801bb54: 080205e4 .word 0x080205e4 + 801bb58: 0802061c .word 0x0802061c + 801bb5c: 0802062c .word 0x0802062c + +0801bb60 : * @param p points to a pbuf chain of the fragment * @return NULL if reassembly is incomplete, ? otherwise */ struct pbuf * ip4_reass(struct pbuf *p) { - 801bb50: b580 push {r7, lr} - 801bb52: b08e sub sp, #56 ; 0x38 - 801bb54: af00 add r7, sp, #0 - 801bb56: 6078 str r0, [r7, #4] + 801bb60: b580 push {r7, lr} + 801bb62: b08e sub sp, #56 ; 0x38 + 801bb64: af00 add r7, sp, #0 + 801bb66: 6078 str r0, [r7, #4] int is_last; IPFRAG_STATS_INC(ip_frag.recv); MIB2_STATS_INC(mib2.ipreasmreqds); fraghdr = (struct ip_hdr *)p->payload; - 801bb58: 687b ldr r3, [r7, #4] - 801bb5a: 685b ldr r3, [r3, #4] - 801bb5c: 62bb str r3, [r7, #40] ; 0x28 + 801bb68: 687b ldr r3, [r7, #4] + 801bb6a: 685b ldr r3, [r3, #4] + 801bb6c: 62bb str r3, [r7, #40] ; 0x28 if (IPH_HL_BYTES(fraghdr) != IP_HLEN) { - 801bb5e: 6abb ldr r3, [r7, #40] ; 0x28 - 801bb60: 781b ldrb r3, [r3, #0] - 801bb62: f003 030f and.w r3, r3, #15 - 801bb66: b2db uxtb r3, r3 - 801bb68: 009b lsls r3, r3, #2 - 801bb6a: b2db uxtb r3, r3 - 801bb6c: 2b14 cmp r3, #20 - 801bb6e: f040 8167 bne.w 801be40 + 801bb6e: 6abb ldr r3, [r7, #40] ; 0x28 + 801bb70: 781b ldrb r3, [r3, #0] + 801bb72: f003 030f and.w r3, r3, #15 + 801bb76: b2db uxtb r3, r3 + 801bb78: 009b lsls r3, r3, #2 + 801bb7a: b2db uxtb r3, r3 + 801bb7c: 2b14 cmp r3, #20 + 801bb7e: f040 8167 bne.w 801be50 LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: IP options currently not supported!\n")); IPFRAG_STATS_INC(ip_frag.err); goto nullreturn; } offset = IPH_OFFSET_BYTES(fraghdr); - 801bb72: 6abb ldr r3, [r7, #40] ; 0x28 - 801bb74: 88db ldrh r3, [r3, #6] - 801bb76: b29b uxth r3, r3 - 801bb78: 4618 mov r0, r3 - 801bb7a: f7f4 fc81 bl 8010480 - 801bb7e: 4603 mov r3, r0 - 801bb80: f3c3 030c ubfx r3, r3, #0, #13 - 801bb84: b29b uxth r3, r3 - 801bb86: 00db lsls r3, r3, #3 - 801bb88: 84fb strh r3, [r7, #38] ; 0x26 + 801bb82: 6abb ldr r3, [r7, #40] ; 0x28 + 801bb84: 88db ldrh r3, [r3, #6] + 801bb86: b29b uxth r3, r3 + 801bb88: 4618 mov r0, r3 + 801bb8a: f7f4 fc81 bl 8010490 + 801bb8e: 4603 mov r3, r0 + 801bb90: f3c3 030c ubfx r3, r3, #0, #13 + 801bb94: b29b uxth r3, r3 + 801bb96: 00db lsls r3, r3, #3 + 801bb98: 84fb strh r3, [r7, #38] ; 0x26 len = lwip_ntohs(IPH_LEN(fraghdr)); - 801bb8a: 6abb ldr r3, [r7, #40] ; 0x28 - 801bb8c: 885b ldrh r3, [r3, #2] - 801bb8e: b29b uxth r3, r3 - 801bb90: 4618 mov r0, r3 - 801bb92: f7f4 fc75 bl 8010480 - 801bb96: 4603 mov r3, r0 - 801bb98: 84bb strh r3, [r7, #36] ; 0x24 - hlen = IPH_HL_BYTES(fraghdr); 801bb9a: 6abb ldr r3, [r7, #40] ; 0x28 - 801bb9c: 781b ldrb r3, [r3, #0] - 801bb9e: f003 030f and.w r3, r3, #15 - 801bba2: b2db uxtb r3, r3 - 801bba4: 009b lsls r3, r3, #2 - 801bba6: f887 3023 strb.w r3, [r7, #35] ; 0x23 + 801bb9c: 885b ldrh r3, [r3, #2] + 801bb9e: b29b uxth r3, r3 + 801bba0: 4618 mov r0, r3 + 801bba2: f7f4 fc75 bl 8010490 + 801bba6: 4603 mov r3, r0 + 801bba8: 84bb strh r3, [r7, #36] ; 0x24 + hlen = IPH_HL_BYTES(fraghdr); + 801bbaa: 6abb ldr r3, [r7, #40] ; 0x28 + 801bbac: 781b ldrb r3, [r3, #0] + 801bbae: f003 030f and.w r3, r3, #15 + 801bbb2: b2db uxtb r3, r3 + 801bbb4: 009b lsls r3, r3, #2 + 801bbb6: f887 3023 strb.w r3, [r7, #35] ; 0x23 if (hlen > len) { - 801bbaa: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 801bbae: b29b uxth r3, r3 - 801bbb0: 8cba ldrh r2, [r7, #36] ; 0x24 - 801bbb2: 429a cmp r2, r3 - 801bbb4: f0c0 8146 bcc.w 801be44 + 801bbba: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 801bbbe: b29b uxth r3, r3 + 801bbc0: 8cba ldrh r2, [r7, #36] ; 0x24 + 801bbc2: 429a cmp r2, r3 + 801bbc4: f0c0 8146 bcc.w 801be54 /* invalid datagram */ goto nullreturn; } len = (u16_t)(len - hlen); - 801bbb8: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 - 801bbbc: b29b uxth r3, r3 - 801bbbe: 8cba ldrh r2, [r7, #36] ; 0x24 - 801bbc0: 1ad3 subs r3, r2, r3 - 801bbc2: 84bb strh r3, [r7, #36] ; 0x24 + 801bbc8: f897 3023 ldrb.w r3, [r7, #35] ; 0x23 + 801bbcc: b29b uxth r3, r3 + 801bbce: 8cba ldrh r2, [r7, #36] ; 0x24 + 801bbd0: 1ad3 subs r3, r2, r3 + 801bbd2: 84bb strh r3, [r7, #36] ; 0x24 /* Check if we are allowed to enqueue more datagrams. */ clen = pbuf_clen(p); - 801bbc4: 6878 ldr r0, [r7, #4] - 801bbc6: f7f6 f89d bl 8011d04 - 801bbca: 4603 mov r3, r0 - 801bbcc: 843b strh r3, [r7, #32] + 801bbd4: 6878 ldr r0, [r7, #4] + 801bbd6: f7f6 f89d bl 8011d14 + 801bbda: 4603 mov r3, r0 + 801bbdc: 843b strh r3, [r7, #32] if ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS) { - 801bbce: 4ba3 ldr r3, [pc, #652] ; (801be5c ) - 801bbd0: 881b ldrh r3, [r3, #0] - 801bbd2: 461a mov r2, r3 - 801bbd4: 8c3b ldrh r3, [r7, #32] - 801bbd6: 4413 add r3, r2 - 801bbd8: 2b0a cmp r3, #10 - 801bbda: dd10 ble.n 801bbfe + 801bbde: 4ba3 ldr r3, [pc, #652] ; (801be6c ) + 801bbe0: 881b ldrh r3, [r3, #0] + 801bbe2: 461a mov r2, r3 + 801bbe4: 8c3b ldrh r3, [r7, #32] + 801bbe6: 4413 add r3, r2 + 801bbe8: 2b0a cmp r3, #10 + 801bbea: dd10 ble.n 801bc0e #if IP_REASS_FREE_OLDEST if (!ip_reass_remove_oldest_datagram(fraghdr, clen) || - 801bbdc: 8c3b ldrh r3, [r7, #32] - 801bbde: 4619 mov r1, r3 - 801bbe0: 6ab8 ldr r0, [r7, #40] ; 0x28 - 801bbe2: f7ff fd81 bl 801b6e8 - 801bbe6: 4603 mov r3, r0 - 801bbe8: 2b00 cmp r3, #0 - 801bbea: f000 812d beq.w 801be48 + 801bbec: 8c3b ldrh r3, [r7, #32] + 801bbee: 4619 mov r1, r3 + 801bbf0: 6ab8 ldr r0, [r7, #40] ; 0x28 + 801bbf2: f7ff fd81 bl 801b6f8 + 801bbf6: 4603 mov r3, r0 + 801bbf8: 2b00 cmp r3, #0 + 801bbfa: f000 812d beq.w 801be58 ((ip_reass_pbufcount + clen) > IP_REASS_MAX_PBUFS)) - 801bbee: 4b9b ldr r3, [pc, #620] ; (801be5c ) - 801bbf0: 881b ldrh r3, [r3, #0] - 801bbf2: 461a mov r2, r3 - 801bbf4: 8c3b ldrh r3, [r7, #32] - 801bbf6: 4413 add r3, r2 + 801bbfe: 4b9b ldr r3, [pc, #620] ; (801be6c ) + 801bc00: 881b ldrh r3, [r3, #0] + 801bc02: 461a mov r2, r3 + 801bc04: 8c3b ldrh r3, [r7, #32] + 801bc06: 4413 add r3, r2 if (!ip_reass_remove_oldest_datagram(fraghdr, clen) || - 801bbf8: 2b0a cmp r3, #10 - 801bbfa: f300 8125 bgt.w 801be48 + 801bc08: 2b0a cmp r3, #10 + 801bc0a: f300 8125 bgt.w 801be58 } } /* Look for the datagram the fragment belongs to in the current datagram queue, * remembering the previous in the queue for later dequeueing. */ for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) { - 801bbfe: 4b98 ldr r3, [pc, #608] ; (801be60 ) - 801bc00: 681b ldr r3, [r3, #0] - 801bc02: 633b str r3, [r7, #48] ; 0x30 - 801bc04: e015 b.n 801bc32 + 801bc0e: 4b98 ldr r3, [pc, #608] ; (801be70 ) + 801bc10: 681b ldr r3, [r3, #0] + 801bc12: 633b str r3, [r7, #48] ; 0x30 + 801bc14: e015 b.n 801bc42 /* Check if the incoming fragment matches the one currently present in the reassembly buffer. If so, we proceed with copying the fragment into the buffer. */ if (IP_ADDRESSES_AND_ID_MATCH(&ipr->iphdr, fraghdr)) { - 801bc06: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc08: 695a ldr r2, [r3, #20] - 801bc0a: 6abb ldr r3, [r7, #40] ; 0x28 - 801bc0c: 68db ldr r3, [r3, #12] - 801bc0e: 429a cmp r2, r3 - 801bc10: d10c bne.n 801bc2c - 801bc12: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc14: 699a ldr r2, [r3, #24] - 801bc16: 6abb ldr r3, [r7, #40] ; 0x28 - 801bc18: 691b ldr r3, [r3, #16] - 801bc1a: 429a cmp r2, r3 - 801bc1c: d106 bne.n 801bc2c - 801bc1e: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc20: 899a ldrh r2, [r3, #12] - 801bc22: 6abb ldr r3, [r7, #40] ; 0x28 - 801bc24: 889b ldrh r3, [r3, #4] - 801bc26: b29b uxth r3, r3 - 801bc28: 429a cmp r2, r3 - 801bc2a: d006 beq.n 801bc3a + 801bc16: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc18: 695a ldr r2, [r3, #20] + 801bc1a: 6abb ldr r3, [r7, #40] ; 0x28 + 801bc1c: 68db ldr r3, [r3, #12] + 801bc1e: 429a cmp r2, r3 + 801bc20: d10c bne.n 801bc3c + 801bc22: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc24: 699a ldr r2, [r3, #24] + 801bc26: 6abb ldr r3, [r7, #40] ; 0x28 + 801bc28: 691b ldr r3, [r3, #16] + 801bc2a: 429a cmp r2, r3 + 801bc2c: d106 bne.n 801bc3c + 801bc2e: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc30: 899a ldrh r2, [r3, #12] + 801bc32: 6abb ldr r3, [r7, #40] ; 0x28 + 801bc34: 889b ldrh r3, [r3, #4] + 801bc36: b29b uxth r3, r3 + 801bc38: 429a cmp r2, r3 + 801bc3a: d006 beq.n 801bc4a for (ipr = reassdatagrams; ipr != NULL; ipr = ipr->next) { - 801bc2c: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc2e: 681b ldr r3, [r3, #0] - 801bc30: 633b str r3, [r7, #48] ; 0x30 - 801bc32: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc34: 2b00 cmp r3, #0 - 801bc36: d1e6 bne.n 801bc06 - 801bc38: e000 b.n 801bc3c + 801bc3c: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc3e: 681b ldr r3, [r3, #0] + 801bc40: 633b str r3, [r7, #48] ; 0x30 + 801bc42: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc44: 2b00 cmp r3, #0 + 801bc46: d1e6 bne.n 801bc16 + 801bc48: e000 b.n 801bc4c LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: matching previous fragment ID=%"X16_F"\n", lwip_ntohs(IPH_ID(fraghdr)))); IPFRAG_STATS_INC(ip_frag.cachehit); break; - 801bc3a: bf00 nop + 801bc4a: bf00 nop } } if (ipr == NULL) { - 801bc3c: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc3e: 2b00 cmp r3, #0 - 801bc40: d109 bne.n 801bc56 + 801bc4c: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc4e: 2b00 cmp r3, #0 + 801bc50: d109 bne.n 801bc66 /* Enqueue a new datagram into the datagram queue */ ipr = ip_reass_enqueue_new_datagram(fraghdr, clen); - 801bc42: 8c3b ldrh r3, [r7, #32] - 801bc44: 4619 mov r1, r3 - 801bc46: 6ab8 ldr r0, [r7, #40] ; 0x28 - 801bc48: f7ff fdb0 bl 801b7ac - 801bc4c: 6338 str r0, [r7, #48] ; 0x30 + 801bc52: 8c3b ldrh r3, [r7, #32] + 801bc54: 4619 mov r1, r3 + 801bc56: 6ab8 ldr r0, [r7, #40] ; 0x28 + 801bc58: f7ff fdb0 bl 801b7bc + 801bc5c: 6338 str r0, [r7, #48] ; 0x30 /* Bail if unable to enqueue */ if (ipr == NULL) { - 801bc4e: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc50: 2b00 cmp r3, #0 - 801bc52: d11c bne.n 801bc8e + 801bc5e: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc60: 2b00 cmp r3, #0 + 801bc62: d11c bne.n 801bc9e goto nullreturn; - 801bc54: e0f9 b.n 801be4a + 801bc64: e0f9 b.n 801be5a } } else { if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && - 801bc56: 6abb ldr r3, [r7, #40] ; 0x28 - 801bc58: 88db ldrh r3, [r3, #6] - 801bc5a: b29b uxth r3, r3 - 801bc5c: 4618 mov r0, r3 - 801bc5e: f7f4 fc0f bl 8010480 - 801bc62: 4603 mov r3, r0 - 801bc64: f3c3 030c ubfx r3, r3, #0, #13 - 801bc68: 2b00 cmp r3, #0 - 801bc6a: d110 bne.n 801bc8e + 801bc66: 6abb ldr r3, [r7, #40] ; 0x28 + 801bc68: 88db ldrh r3, [r3, #6] + 801bc6a: b29b uxth r3, r3 + 801bc6c: 4618 mov r0, r3 + 801bc6e: f7f4 fc0f bl 8010490 + 801bc72: 4603 mov r3, r0 + 801bc74: f3c3 030c ubfx r3, r3, #0, #13 + 801bc78: 2b00 cmp r3, #0 + 801bc7a: d110 bne.n 801bc9e ((lwip_ntohs(IPH_OFFSET(&ipr->iphdr)) & IP_OFFMASK) != 0)) { - 801bc6c: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc6e: 89db ldrh r3, [r3, #14] - 801bc70: 4618 mov r0, r3 - 801bc72: f7f4 fc05 bl 8010480 - 801bc76: 4603 mov r3, r0 - 801bc78: f3c3 030c ubfx r3, r3, #0, #13 + 801bc7c: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc7e: 89db ldrh r3, [r3, #14] + 801bc80: 4618 mov r0, r3 + 801bc82: f7f4 fc05 bl 8010490 + 801bc86: 4603 mov r3, r0 + 801bc88: f3c3 030c ubfx r3, r3, #0, #13 if (((lwip_ntohs(IPH_OFFSET(fraghdr)) & IP_OFFMASK) == 0) && - 801bc7c: 2b00 cmp r3, #0 - 801bc7e: d006 beq.n 801bc8e + 801bc8c: 2b00 cmp r3, #0 + 801bc8e: d006 beq.n 801bc9e /* ipr->iphdr is not the header from the first fragment, but fraghdr is * -> copy fraghdr into ipr->iphdr since we want to have the header * of the first fragment (for ICMP time exceeded and later, for copying * all options, if supported)*/ SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN); - 801bc80: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bc82: 3308 adds r3, #8 - 801bc84: 2214 movs r2, #20 - 801bc86: 6ab9 ldr r1, [r7, #40] ; 0x28 - 801bc88: 4618 mov r0, r3 - 801bc8a: f000 fcb0 bl 801c5ee + 801bc90: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bc92: 3308 adds r3, #8 + 801bc94: 2214 movs r2, #20 + 801bc96: 6ab9 ldr r1, [r7, #40] ; 0x28 + 801bc98: 4618 mov r0, r3 + 801bc9a: f000 fcb0 bl 801c5fe /* At this point, we have either created a new entry or pointing * to an existing one */ /* check for 'no more fragments', and update queue entry*/ is_last = (IPH_OFFSET(fraghdr) & PP_NTOHS(IP_MF)) == 0; - 801bc8e: 6abb ldr r3, [r7, #40] ; 0x28 - 801bc90: 88db ldrh r3, [r3, #6] - 801bc92: b29b uxth r3, r3 - 801bc94: f003 0320 and.w r3, r3, #32 - 801bc98: 2b00 cmp r3, #0 - 801bc9a: bf0c ite eq - 801bc9c: 2301 moveq r3, #1 - 801bc9e: 2300 movne r3, #0 - 801bca0: b2db uxtb r3, r3 - 801bca2: 61fb str r3, [r7, #28] + 801bc9e: 6abb ldr r3, [r7, #40] ; 0x28 + 801bca0: 88db ldrh r3, [r3, #6] + 801bca2: b29b uxth r3, r3 + 801bca4: f003 0320 and.w r3, r3, #32 + 801bca8: 2b00 cmp r3, #0 + 801bcaa: bf0c ite eq + 801bcac: 2301 moveq r3, #1 + 801bcae: 2300 movne r3, #0 + 801bcb0: b2db uxtb r3, r3 + 801bcb2: 61fb str r3, [r7, #28] if (is_last) { - 801bca4: 69fb ldr r3, [r7, #28] - 801bca6: 2b00 cmp r3, #0 - 801bca8: d00e beq.n 801bcc8 + 801bcb4: 69fb ldr r3, [r7, #28] + 801bcb6: 2b00 cmp r3, #0 + 801bcb8: d00e beq.n 801bcd8 u16_t datagram_len = (u16_t)(offset + len); - 801bcaa: 8cfa ldrh r2, [r7, #38] ; 0x26 - 801bcac: 8cbb ldrh r3, [r7, #36] ; 0x24 - 801bcae: 4413 add r3, r2 - 801bcb0: 837b strh r3, [r7, #26] + 801bcba: 8cfa ldrh r2, [r7, #38] ; 0x26 + 801bcbc: 8cbb ldrh r3, [r7, #36] ; 0x24 + 801bcbe: 4413 add r3, r2 + 801bcc0: 837b strh r3, [r7, #26] if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) { - 801bcb2: 8b7a ldrh r2, [r7, #26] - 801bcb4: 8cfb ldrh r3, [r7, #38] ; 0x26 - 801bcb6: 429a cmp r2, r3 - 801bcb8: f0c0 80a0 bcc.w 801bdfc - 801bcbc: 8b7b ldrh r3, [r7, #26] - 801bcbe: f64f 72eb movw r2, #65515 ; 0xffeb - 801bcc2: 4293 cmp r3, r2 - 801bcc4: f200 809a bhi.w 801bdfc + 801bcc2: 8b7a ldrh r2, [r7, #26] + 801bcc4: 8cfb ldrh r3, [r7, #38] ; 0x26 + 801bcc6: 429a cmp r2, r3 + 801bcc8: f0c0 80a0 bcc.w 801be0c + 801bccc: 8b7b ldrh r3, [r7, #26] + 801bcce: f64f 72eb movw r2, #65515 ; 0xffeb + 801bcd2: 4293 cmp r3, r2 + 801bcd4: f200 809a bhi.w 801be0c goto nullreturn_ipr; } } /* find the right place to insert this pbuf */ /* @todo: trim pbufs if fragments are overlapping */ valid = ip_reass_chain_frag_into_datagram_and_validate(ipr, p, is_last); - 801bcc8: 69fa ldr r2, [r7, #28] - 801bcca: 6879 ldr r1, [r7, #4] - 801bccc: 6b38 ldr r0, [r7, #48] ; 0x30 - 801bcce: f7ff fdd5 bl 801b87c - 801bcd2: 6178 str r0, [r7, #20] + 801bcd8: 69fa ldr r2, [r7, #28] + 801bcda: 6879 ldr r1, [r7, #4] + 801bcdc: 6b38 ldr r0, [r7, #48] ; 0x30 + 801bcde: f7ff fdd5 bl 801b88c + 801bce2: 6178 str r0, [r7, #20] if (valid == IP_REASS_VALIDATE_PBUF_DROPPED) { - 801bcd4: 697b ldr r3, [r7, #20] - 801bcd6: f1b3 3fff cmp.w r3, #4294967295 - 801bcda: f000 8091 beq.w 801be00 + 801bce4: 697b ldr r3, [r7, #20] + 801bce6: f1b3 3fff cmp.w r3, #4294967295 + 801bcea: f000 8091 beq.w 801be10 /* if we come here, the pbuf has been enqueued */ /* Track the current number of pbufs current 'in-flight', in order to limit the number of fragments that may be enqueued at any one time (overflow checked by testing against IP_REASS_MAX_PBUFS) */ ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount + clen); - 801bcde: 4b5f ldr r3, [pc, #380] ; (801be5c ) - 801bce0: 881a ldrh r2, [r3, #0] - 801bce2: 8c3b ldrh r3, [r7, #32] - 801bce4: 4413 add r3, r2 - 801bce6: b29a uxth r2, r3 - 801bce8: 4b5c ldr r3, [pc, #368] ; (801be5c ) - 801bcea: 801a strh r2, [r3, #0] + 801bcee: 4b5f ldr r3, [pc, #380] ; (801be6c ) + 801bcf0: 881a ldrh r2, [r3, #0] + 801bcf2: 8c3b ldrh r3, [r7, #32] + 801bcf4: 4413 add r3, r2 + 801bcf6: b29a uxth r2, r3 + 801bcf8: 4b5c ldr r3, [pc, #368] ; (801be6c ) + 801bcfa: 801a strh r2, [r3, #0] if (is_last) { - 801bcec: 69fb ldr r3, [r7, #28] - 801bcee: 2b00 cmp r3, #0 - 801bcf0: d00d beq.n 801bd0e + 801bcfc: 69fb ldr r3, [r7, #28] + 801bcfe: 2b00 cmp r3, #0 + 801bd00: d00d beq.n 801bd1e u16_t datagram_len = (u16_t)(offset + len); - 801bcf2: 8cfa ldrh r2, [r7, #38] ; 0x26 - 801bcf4: 8cbb ldrh r3, [r7, #36] ; 0x24 - 801bcf6: 4413 add r3, r2 - 801bcf8: 827b strh r3, [r7, #18] + 801bd02: 8cfa ldrh r2, [r7, #38] ; 0x26 + 801bd04: 8cbb ldrh r3, [r7, #36] ; 0x24 + 801bd06: 4413 add r3, r2 + 801bd08: 827b strh r3, [r7, #18] ipr->datagram_len = datagram_len; - 801bcfa: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bcfc: 8a7a ldrh r2, [r7, #18] - 801bcfe: 839a strh r2, [r3, #28] - ipr->flags |= IP_REASS_FLAG_LASTFRAG; - 801bd00: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bd02: 7f9b ldrb r3, [r3, #30] - 801bd04: f043 0301 orr.w r3, r3, #1 - 801bd08: b2da uxtb r2, r3 801bd0a: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bd0c: 779a strb r2, [r3, #30] + 801bd0c: 8a7a ldrh r2, [r7, #18] + 801bd0e: 839a strh r2, [r3, #28] + ipr->flags |= IP_REASS_FLAG_LASTFRAG; + 801bd10: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bd12: 7f9b ldrb r3, [r3, #30] + 801bd14: f043 0301 orr.w r3, r3, #1 + 801bd18: b2da uxtb r2, r3 + 801bd1a: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bd1c: 779a strb r2, [r3, #30] LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: last fragment seen, total len %"S16_F"\n", ipr->datagram_len)); } if (valid == IP_REASS_VALIDATE_TELEGRAM_FINISHED) { - 801bd0e: 697b ldr r3, [r7, #20] - 801bd10: 2b01 cmp r3, #1 - 801bd12: d171 bne.n 801bdf8 + 801bd1e: 697b ldr r3, [r7, #20] + 801bd20: 2b01 cmp r3, #1 + 801bd22: d171 bne.n 801be08 struct ip_reassdata *ipr_prev; /* the totally last fragment (flag more fragments = 0) was received at least * once AND all fragments are received */ u16_t datagram_len = (u16_t)(ipr->datagram_len + IP_HLEN); - 801bd14: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bd16: 8b9b ldrh r3, [r3, #28] - 801bd18: 3314 adds r3, #20 - 801bd1a: 823b strh r3, [r7, #16] + 801bd24: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bd26: 8b9b ldrh r3, [r3, #28] + 801bd28: 3314 adds r3, #20 + 801bd2a: 823b strh r3, [r7, #16] /* save the second pbuf before copying the header over the pointer */ r = ((struct ip_reass_helper *)ipr->p->payload)->next_pbuf; - 801bd1c: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bd1e: 685b ldr r3, [r3, #4] - 801bd20: 685b ldr r3, [r3, #4] - 801bd22: 681b ldr r3, [r3, #0] - 801bd24: 637b str r3, [r7, #52] ; 0x34 + 801bd2c: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bd2e: 685b ldr r3, [r3, #4] + 801bd30: 685b ldr r3, [r3, #4] + 801bd32: 681b ldr r3, [r3, #0] + 801bd34: 637b str r3, [r7, #52] ; 0x34 /* copy the original ip header back to the first pbuf */ fraghdr = (struct ip_hdr *)(ipr->p->payload); - 801bd26: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bd28: 685b ldr r3, [r3, #4] - 801bd2a: 685b ldr r3, [r3, #4] - 801bd2c: 62bb str r3, [r7, #40] ; 0x28 + 801bd36: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bd38: 685b ldr r3, [r3, #4] + 801bd3a: 685b ldr r3, [r3, #4] + 801bd3c: 62bb str r3, [r7, #40] ; 0x28 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); - 801bd2e: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bd30: 3308 adds r3, #8 - 801bd32: 2214 movs r2, #20 - 801bd34: 4619 mov r1, r3 - 801bd36: 6ab8 ldr r0, [r7, #40] ; 0x28 - 801bd38: f000 fc59 bl 801c5ee + 801bd3e: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bd40: 3308 adds r3, #8 + 801bd42: 2214 movs r2, #20 + 801bd44: 4619 mov r1, r3 + 801bd46: 6ab8 ldr r0, [r7, #40] ; 0x28 + 801bd48: f000 fc59 bl 801c5fe IPH_LEN_SET(fraghdr, lwip_htons(datagram_len)); - 801bd3c: 8a3b ldrh r3, [r7, #16] - 801bd3e: 4618 mov r0, r3 - 801bd40: f7f4 fb9e bl 8010480 - 801bd44: 4603 mov r3, r0 - 801bd46: 461a mov r2, r3 - 801bd48: 6abb ldr r3, [r7, #40] ; 0x28 - 801bd4a: 805a strh r2, [r3, #2] + 801bd4c: 8a3b ldrh r3, [r7, #16] + 801bd4e: 4618 mov r0, r3 + 801bd50: f7f4 fb9e bl 8010490 + 801bd54: 4603 mov r3, r0 + 801bd56: 461a mov r2, r3 + 801bd58: 6abb ldr r3, [r7, #40] ; 0x28 + 801bd5a: 805a strh r2, [r3, #2] IPH_OFFSET_SET(fraghdr, 0); - 801bd4c: 6abb ldr r3, [r7, #40] ; 0x28 - 801bd4e: 2200 movs r2, #0 - 801bd50: 719a strb r2, [r3, #6] - 801bd52: 2200 movs r2, #0 - 801bd54: 71da strb r2, [r3, #7] + 801bd5c: 6abb ldr r3, [r7, #40] ; 0x28 + 801bd5e: 2200 movs r2, #0 + 801bd60: 719a strb r2, [r3, #6] + 801bd62: 2200 movs r2, #0 + 801bd64: 71da strb r2, [r3, #7] IPH_CHKSUM_SET(fraghdr, 0); - 801bd56: 6abb ldr r3, [r7, #40] ; 0x28 - 801bd58: 2200 movs r2, #0 - 801bd5a: 729a strb r2, [r3, #10] - 801bd5c: 2200 movs r2, #0 - 801bd5e: 72da strb r2, [r3, #11] + 801bd66: 6abb ldr r3, [r7, #40] ; 0x28 + 801bd68: 2200 movs r2, #0 + 801bd6a: 729a strb r2, [r3, #10] + 801bd6c: 2200 movs r2, #0 + 801bd6e: 72da strb r2, [r3, #11] IF__NETIF_CHECKSUM_ENABLED(ip_current_input_netif(), NETIF_CHECKSUM_GEN_IP) { IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN)); } #endif /* CHECKSUM_GEN_IP */ p = ipr->p; - 801bd60: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bd62: 685b ldr r3, [r3, #4] - 801bd64: 607b str r3, [r7, #4] + 801bd70: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bd72: 685b ldr r3, [r3, #4] + 801bd74: 607b str r3, [r7, #4] /* chain together the pbufs contained within the reass_data list. */ while (r != NULL) { - 801bd66: e00d b.n 801bd84 + 801bd76: e00d b.n 801bd94 iprh = (struct ip_reass_helper *)r->payload; - 801bd68: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bd6a: 685b ldr r3, [r3, #4] - 801bd6c: 60fb str r3, [r7, #12] + 801bd78: 6b7b ldr r3, [r7, #52] ; 0x34 + 801bd7a: 685b ldr r3, [r3, #4] + 801bd7c: 60fb str r3, [r7, #12] /* hide the ip header for every succeeding fragment */ pbuf_remove_header(r, IP_HLEN); - 801bd6e: 2114 movs r1, #20 - 801bd70: 6b78 ldr r0, [r7, #52] ; 0x34 - 801bd72: f7f5 feb3 bl 8011adc + 801bd7e: 2114 movs r1, #20 + 801bd80: 6b78 ldr r0, [r7, #52] ; 0x34 + 801bd82: f7f5 feb3 bl 8011aec pbuf_cat(p, r); - 801bd76: 6b79 ldr r1, [r7, #52] ; 0x34 - 801bd78: 6878 ldr r0, [r7, #4] - 801bd7a: f7f6 f803 bl 8011d84 + 801bd86: 6b79 ldr r1, [r7, #52] ; 0x34 + 801bd88: 6878 ldr r0, [r7, #4] + 801bd8a: f7f6 f803 bl 8011d94 r = iprh->next_pbuf; - 801bd7e: 68fb ldr r3, [r7, #12] - 801bd80: 681b ldr r3, [r3, #0] - 801bd82: 637b str r3, [r7, #52] ; 0x34 + 801bd8e: 68fb ldr r3, [r7, #12] + 801bd90: 681b ldr r3, [r3, #0] + 801bd92: 637b str r3, [r7, #52] ; 0x34 while (r != NULL) { - 801bd84: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bd86: 2b00 cmp r3, #0 - 801bd88: d1ee bne.n 801bd68 + 801bd94: 6b7b ldr r3, [r7, #52] ; 0x34 + 801bd96: 2b00 cmp r3, #0 + 801bd98: d1ee bne.n 801bd78 } /* find the previous entry in the linked list */ if (ipr == reassdatagrams) { - 801bd8a: 4b35 ldr r3, [pc, #212] ; (801be60 ) - 801bd8c: 681b ldr r3, [r3, #0] - 801bd8e: 6b3a ldr r2, [r7, #48] ; 0x30 - 801bd90: 429a cmp r2, r3 - 801bd92: d102 bne.n 801bd9a + 801bd9a: 4b35 ldr r3, [pc, #212] ; (801be70 ) + 801bd9c: 681b ldr r3, [r3, #0] + 801bd9e: 6b3a ldr r2, [r7, #48] ; 0x30 + 801bda0: 429a cmp r2, r3 + 801bda2: d102 bne.n 801bdaa ipr_prev = NULL; - 801bd94: 2300 movs r3, #0 - 801bd96: 62fb str r3, [r7, #44] ; 0x2c - 801bd98: e010 b.n 801bdbc + 801bda4: 2300 movs r3, #0 + 801bda6: 62fb str r3, [r7, #44] ; 0x2c + 801bda8: e010 b.n 801bdcc } else { for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - 801bd9a: 4b31 ldr r3, [pc, #196] ; (801be60 ) - 801bd9c: 681b ldr r3, [r3, #0] - 801bd9e: 62fb str r3, [r7, #44] ; 0x2c - 801bda0: e007 b.n 801bdb2 + 801bdaa: 4b31 ldr r3, [pc, #196] ; (801be70 ) + 801bdac: 681b ldr r3, [r3, #0] + 801bdae: 62fb str r3, [r7, #44] ; 0x2c + 801bdb0: e007 b.n 801bdc2 if (ipr_prev->next == ipr) { - 801bda2: 6afb ldr r3, [r7, #44] ; 0x2c - 801bda4: 681b ldr r3, [r3, #0] - 801bda6: 6b3a ldr r2, [r7, #48] ; 0x30 - 801bda8: 429a cmp r2, r3 - 801bdaa: d006 beq.n 801bdba - for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { - 801bdac: 6afb ldr r3, [r7, #44] ; 0x2c - 801bdae: 681b ldr r3, [r3, #0] - 801bdb0: 62fb str r3, [r7, #44] ; 0x2c 801bdb2: 6afb ldr r3, [r7, #44] ; 0x2c - 801bdb4: 2b00 cmp r3, #0 - 801bdb6: d1f4 bne.n 801bda2 - 801bdb8: e000 b.n 801bdbc + 801bdb4: 681b ldr r3, [r3, #0] + 801bdb6: 6b3a ldr r2, [r7, #48] ; 0x30 + 801bdb8: 429a cmp r2, r3 + 801bdba: d006 beq.n 801bdca + for (ipr_prev = reassdatagrams; ipr_prev != NULL; ipr_prev = ipr_prev->next) { + 801bdbc: 6afb ldr r3, [r7, #44] ; 0x2c + 801bdbe: 681b ldr r3, [r3, #0] + 801bdc0: 62fb str r3, [r7, #44] ; 0x2c + 801bdc2: 6afb ldr r3, [r7, #44] ; 0x2c + 801bdc4: 2b00 cmp r3, #0 + 801bdc6: d1f4 bne.n 801bdb2 + 801bdc8: e000 b.n 801bdcc break; - 801bdba: bf00 nop + 801bdca: bf00 nop } } } /* release the sources allocate for the fragment queue entry */ ip_reass_dequeue_datagram(ipr, ipr_prev); - 801bdbc: 6af9 ldr r1, [r7, #44] ; 0x2c - 801bdbe: 6b38 ldr r0, [r7, #48] ; 0x30 - 801bdc0: f7ff fd2e bl 801b820 + 801bdcc: 6af9 ldr r1, [r7, #44] ; 0x2c + 801bdce: 6b38 ldr r0, [r7, #48] ; 0x30 + 801bdd0: f7ff fd2e bl 801b830 /* and adjust the number of pbufs currently queued for reassembly. */ clen = pbuf_clen(p); - 801bdc4: 6878 ldr r0, [r7, #4] - 801bdc6: f7f5 ff9d bl 8011d04 - 801bdca: 4603 mov r3, r0 - 801bdcc: 843b strh r3, [r7, #32] + 801bdd4: 6878 ldr r0, [r7, #4] + 801bdd6: f7f5 ff9d bl 8011d14 + 801bdda: 4603 mov r3, r0 + 801bddc: 843b strh r3, [r7, #32] LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen); - 801bdce: 4b23 ldr r3, [pc, #140] ; (801be5c ) - 801bdd0: 881b ldrh r3, [r3, #0] - 801bdd2: 8c3a ldrh r2, [r7, #32] - 801bdd4: 429a cmp r2, r3 - 801bdd6: d906 bls.n 801bde6 - 801bdd8: 4b22 ldr r3, [pc, #136] ; (801be64 ) - 801bdda: f240 229b movw r2, #667 ; 0x29b - 801bdde: 4922 ldr r1, [pc, #136] ; (801be68 ) - 801bde0: 4822 ldr r0, [pc, #136] ; (801be6c ) - 801bde2: f000 fc31 bl 801c648 + 801bdde: 4b23 ldr r3, [pc, #140] ; (801be6c ) + 801bde0: 881b ldrh r3, [r3, #0] + 801bde2: 8c3a ldrh r2, [r7, #32] + 801bde4: 429a cmp r2, r3 + 801bde6: d906 bls.n 801bdf6 + 801bde8: 4b22 ldr r3, [pc, #136] ; (801be74 ) + 801bdea: f240 229b movw r2, #667 ; 0x29b + 801bdee: 4922 ldr r1, [pc, #136] ; (801be78 ) + 801bdf0: 4822 ldr r0, [pc, #136] ; (801be7c ) + 801bdf2: f000 fc31 bl 801c658 ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - clen); - 801bde6: 4b1d ldr r3, [pc, #116] ; (801be5c ) - 801bde8: 881a ldrh r2, [r3, #0] - 801bdea: 8c3b ldrh r3, [r7, #32] - 801bdec: 1ad3 subs r3, r2, r3 - 801bdee: b29a uxth r2, r3 - 801bdf0: 4b1a ldr r3, [pc, #104] ; (801be5c ) - 801bdf2: 801a strh r2, [r3, #0] + 801bdf6: 4b1d ldr r3, [pc, #116] ; (801be6c ) + 801bdf8: 881a ldrh r2, [r3, #0] + 801bdfa: 8c3b ldrh r3, [r7, #32] + 801bdfc: 1ad3 subs r3, r2, r3 + 801bdfe: b29a uxth r2, r3 + 801be00: 4b1a ldr r3, [pc, #104] ; (801be6c ) + 801be02: 801a strh r2, [r3, #0] MIB2_STATS_INC(mib2.ipreasmoks); /* Return the pbuf chain */ return p; - 801bdf4: 687b ldr r3, [r7, #4] - 801bdf6: e02c b.n 801be52 + 801be04: 687b ldr r3, [r7, #4] + 801be06: e02c b.n 801be62 } /* the datagram is not (yet?) reassembled completely */ LWIP_DEBUGF(IP_REASS_DEBUG, ("ip_reass_pbufcount: %d out\n", ip_reass_pbufcount)); return NULL; - 801bdf8: 2300 movs r3, #0 - 801bdfa: e02a b.n 801be52 + 801be08: 2300 movs r3, #0 + 801be0a: e02a b.n 801be62 nullreturn_ipr: - 801bdfc: bf00 nop - 801bdfe: e000 b.n 801be02 + 801be0c: bf00 nop + 801be0e: e000 b.n 801be12 goto nullreturn_ipr; - 801be00: bf00 nop + 801be10: bf00 nop LWIP_ASSERT("ipr != NULL", ipr != NULL); - 801be02: 6b3b ldr r3, [r7, #48] ; 0x30 - 801be04: 2b00 cmp r3, #0 - 801be06: d106 bne.n 801be16 - 801be08: 4b16 ldr r3, [pc, #88] ; (801be64 ) - 801be0a: f44f 722a mov.w r2, #680 ; 0x2a8 - 801be0e: 4918 ldr r1, [pc, #96] ; (801be70 ) - 801be10: 4816 ldr r0, [pc, #88] ; (801be6c ) - 801be12: f000 fc19 bl 801c648 + 801be12: 6b3b ldr r3, [r7, #48] ; 0x30 + 801be14: 2b00 cmp r3, #0 + 801be16: d106 bne.n 801be26 + 801be18: 4b16 ldr r3, [pc, #88] ; (801be74 ) + 801be1a: f44f 722a mov.w r2, #680 ; 0x2a8 + 801be1e: 4918 ldr r1, [pc, #96] ; (801be80 ) + 801be20: 4816 ldr r0, [pc, #88] ; (801be7c ) + 801be22: f000 fc19 bl 801c658 if (ipr->p == NULL) { - 801be16: 6b3b ldr r3, [r7, #48] ; 0x30 - 801be18: 685b ldr r3, [r3, #4] - 801be1a: 2b00 cmp r3, #0 - 801be1c: d114 bne.n 801be48 + 801be26: 6b3b ldr r3, [r7, #48] ; 0x30 + 801be28: 685b ldr r3, [r3, #4] + 801be2a: 2b00 cmp r3, #0 + 801be2c: d114 bne.n 801be58 /* dropped pbuf after creating a new datagram entry: remove the entry, too */ LWIP_ASSERT("not firstalthough just enqueued", ipr == reassdatagrams); - 801be1e: 4b10 ldr r3, [pc, #64] ; (801be60 ) - 801be20: 681b ldr r3, [r3, #0] - 801be22: 6b3a ldr r2, [r7, #48] ; 0x30 - 801be24: 429a cmp r2, r3 - 801be26: d006 beq.n 801be36 - 801be28: 4b0e ldr r3, [pc, #56] ; (801be64 ) - 801be2a: f240 22ab movw r2, #683 ; 0x2ab - 801be2e: 4911 ldr r1, [pc, #68] ; (801be74 ) - 801be30: 480e ldr r0, [pc, #56] ; (801be6c ) - 801be32: f000 fc09 bl 801c648 + 801be2e: 4b10 ldr r3, [pc, #64] ; (801be70 ) + 801be30: 681b ldr r3, [r3, #0] + 801be32: 6b3a ldr r2, [r7, #48] ; 0x30 + 801be34: 429a cmp r2, r3 + 801be36: d006 beq.n 801be46 + 801be38: 4b0e ldr r3, [pc, #56] ; (801be74 ) + 801be3a: f240 22ab movw r2, #683 ; 0x2ab + 801be3e: 4911 ldr r1, [pc, #68] ; (801be84 ) + 801be40: 480e ldr r0, [pc, #56] ; (801be7c ) + 801be42: f000 fc09 bl 801c658 ip_reass_dequeue_datagram(ipr, NULL); - 801be36: 2100 movs r1, #0 - 801be38: 6b38 ldr r0, [r7, #48] ; 0x30 - 801be3a: f7ff fcf1 bl 801b820 - 801be3e: e004 b.n 801be4a + 801be46: 2100 movs r1, #0 + 801be48: 6b38 ldr r0, [r7, #48] ; 0x30 + 801be4a: f7ff fcf1 bl 801b830 + 801be4e: e004 b.n 801be5a goto nullreturn; - 801be40: bf00 nop - 801be42: e002 b.n 801be4a + 801be50: bf00 nop + 801be52: e002 b.n 801be5a goto nullreturn; - 801be44: bf00 nop - 801be46: e000 b.n 801be4a + 801be54: bf00 nop + 801be56: e000 b.n 801be5a } nullreturn: - 801be48: bf00 nop + 801be58: bf00 nop LWIP_DEBUGF(IP_REASS_DEBUG, ("ip4_reass: nullreturn\n")); IPFRAG_STATS_INC(ip_frag.drop); pbuf_free(p); - 801be4a: 6878 ldr r0, [r7, #4] - 801be4c: f7f5 fecc bl 8011be8 + 801be5a: 6878 ldr r0, [r7, #4] + 801be5c: f7f5 fecc bl 8011bf8 return NULL; - 801be50: 2300 movs r3, #0 -} - 801be52: 4618 mov r0, r3 - 801be54: 3738 adds r7, #56 ; 0x38 - 801be56: 46bd mov sp, r7 - 801be58: bd80 pop {r7, pc} - 801be5a: bf00 nop - 801be5c: 20008864 .word 0x20008864 - 801be60: 20008860 .word 0x20008860 - 801be64: 080204d0 .word 0x080204d0 - 801be68: 08020640 .word 0x08020640 - 801be6c: 08020518 .word 0x08020518 - 801be70: 0802065c .word 0x0802065c - 801be74: 08020668 .word 0x08020668 - -0801be78 : + 801be60: 2300 movs r3, #0 +} + 801be62: 4618 mov r0, r3 + 801be64: 3738 adds r7, #56 ; 0x38 + 801be66: 46bd mov sp, r7 + 801be68: bd80 pop {r7, pc} + 801be6a: bf00 nop + 801be6c: 20008864 .word 0x20008864 + 801be70: 20008860 .word 0x20008860 + 801be74: 080204e0 .word 0x080204e0 + 801be78: 08020650 .word 0x08020650 + 801be7c: 08020528 .word 0x08020528 + 801be80: 0802066c .word 0x0802066c + 801be84: 08020678 .word 0x08020678 + +0801be88 : #if IP_FRAG #if !LWIP_NETIF_TX_SINGLE_PBUF /** Allocate a new struct pbuf_custom_ref */ static struct pbuf_custom_ref * ip_frag_alloc_pbuf_custom_ref(void) { - 801be78: b580 push {r7, lr} - 801be7a: af00 add r7, sp, #0 + 801be88: b580 push {r7, lr} + 801be8a: af00 add r7, sp, #0 return (struct pbuf_custom_ref *)memp_malloc(MEMP_FRAG_PBUF); - 801be7c: 2005 movs r0, #5 - 801be7e: f7f4 ffb5 bl 8010dec - 801be82: 4603 mov r3, r0 + 801be8c: 2005 movs r0, #5 + 801be8e: f7f4 ffb5 bl 8010dfc + 801be92: 4603 mov r3, r0 } - 801be84: 4618 mov r0, r3 - 801be86: bd80 pop {r7, pc} + 801be94: 4618 mov r0, r3 + 801be96: bd80 pop {r7, pc} -0801be88 : +0801be98 : /** Free a struct pbuf_custom_ref */ static void ip_frag_free_pbuf_custom_ref(struct pbuf_custom_ref *p) { - 801be88: b580 push {r7, lr} - 801be8a: b082 sub sp, #8 - 801be8c: af00 add r7, sp, #0 - 801be8e: 6078 str r0, [r7, #4] + 801be98: b580 push {r7, lr} + 801be9a: b082 sub sp, #8 + 801be9c: af00 add r7, sp, #0 + 801be9e: 6078 str r0, [r7, #4] LWIP_ASSERT("p != NULL", p != NULL); - 801be90: 687b ldr r3, [r7, #4] - 801be92: 2b00 cmp r3, #0 - 801be94: d106 bne.n 801bea4 - 801be96: 4b07 ldr r3, [pc, #28] ; (801beb4 ) - 801be98: f44f 7231 mov.w r2, #708 ; 0x2c4 - 801be9c: 4906 ldr r1, [pc, #24] ; (801beb8 ) - 801be9e: 4807 ldr r0, [pc, #28] ; (801bebc ) - 801bea0: f000 fbd2 bl 801c648 + 801bea0: 687b ldr r3, [r7, #4] + 801bea2: 2b00 cmp r3, #0 + 801bea4: d106 bne.n 801beb4 + 801bea6: 4b07 ldr r3, [pc, #28] ; (801bec4 ) + 801bea8: f44f 7231 mov.w r2, #708 ; 0x2c4 + 801beac: 4906 ldr r1, [pc, #24] ; (801bec8 ) + 801beae: 4807 ldr r0, [pc, #28] ; (801becc ) + 801beb0: f000 fbd2 bl 801c658 memp_free(MEMP_FRAG_PBUF, p); - 801bea4: 6879 ldr r1, [r7, #4] - 801bea6: 2005 movs r0, #5 - 801bea8: f7f4 fff2 bl 8010e90 + 801beb4: 6879 ldr r1, [r7, #4] + 801beb6: 2005 movs r0, #5 + 801beb8: f7f4 fff2 bl 8010ea0 } - 801beac: bf00 nop - 801beae: 3708 adds r7, #8 - 801beb0: 46bd mov sp, r7 - 801beb2: bd80 pop {r7, pc} - 801beb4: 080204d0 .word 0x080204d0 - 801beb8: 08020688 .word 0x08020688 - 801bebc: 08020518 .word 0x08020518 + 801bebc: bf00 nop + 801bebe: 3708 adds r7, #8 + 801bec0: 46bd mov sp, r7 + 801bec2: bd80 pop {r7, pc} + 801bec4: 080204e0 .word 0x080204e0 + 801bec8: 08020698 .word 0x08020698 + 801becc: 08020528 .word 0x08020528 -0801bec0 : +0801bed0 : /** Free-callback function to free a 'struct pbuf_custom_ref', called by * pbuf_free. */ static void ipfrag_free_pbuf_custom(struct pbuf *p) { - 801bec0: b580 push {r7, lr} - 801bec2: b084 sub sp, #16 - 801bec4: af00 add r7, sp, #0 - 801bec6: 6078 str r0, [r7, #4] + 801bed0: b580 push {r7, lr} + 801bed2: b084 sub sp, #16 + 801bed4: af00 add r7, sp, #0 + 801bed6: 6078 str r0, [r7, #4] struct pbuf_custom_ref *pcr = (struct pbuf_custom_ref *)p; - 801bec8: 687b ldr r3, [r7, #4] - 801beca: 60fb str r3, [r7, #12] + 801bed8: 687b ldr r3, [r7, #4] + 801beda: 60fb str r3, [r7, #12] LWIP_ASSERT("pcr != NULL", pcr != NULL); - 801becc: 68fb ldr r3, [r7, #12] - 801bece: 2b00 cmp r3, #0 - 801bed0: d106 bne.n 801bee0 - 801bed2: 4b11 ldr r3, [pc, #68] ; (801bf18 ) - 801bed4: f240 22ce movw r2, #718 ; 0x2ce - 801bed8: 4910 ldr r1, [pc, #64] ; (801bf1c ) - 801beda: 4811 ldr r0, [pc, #68] ; (801bf20 ) - 801bedc: f000 fbb4 bl 801c648 + 801bedc: 68fb ldr r3, [r7, #12] + 801bede: 2b00 cmp r3, #0 + 801bee0: d106 bne.n 801bef0 + 801bee2: 4b11 ldr r3, [pc, #68] ; (801bf28 ) + 801bee4: f240 22ce movw r2, #718 ; 0x2ce + 801bee8: 4910 ldr r1, [pc, #64] ; (801bf2c ) + 801beea: 4811 ldr r0, [pc, #68] ; (801bf30 ) + 801beec: f000 fbb4 bl 801c658 LWIP_ASSERT("pcr == p", (void *)pcr == (void *)p); - 801bee0: 68fa ldr r2, [r7, #12] - 801bee2: 687b ldr r3, [r7, #4] - 801bee4: 429a cmp r2, r3 - 801bee6: d006 beq.n 801bef6 - 801bee8: 4b0b ldr r3, [pc, #44] ; (801bf18 ) - 801beea: f240 22cf movw r2, #719 ; 0x2cf - 801beee: 490d ldr r1, [pc, #52] ; (801bf24 ) - 801bef0: 480b ldr r0, [pc, #44] ; (801bf20 ) - 801bef2: f000 fba9 bl 801c648 + 801bef0: 68fa ldr r2, [r7, #12] + 801bef2: 687b ldr r3, [r7, #4] + 801bef4: 429a cmp r2, r3 + 801bef6: d006 beq.n 801bf06 + 801bef8: 4b0b ldr r3, [pc, #44] ; (801bf28 ) + 801befa: f240 22cf movw r2, #719 ; 0x2cf + 801befe: 490d ldr r1, [pc, #52] ; (801bf34 ) + 801bf00: 480b ldr r0, [pc, #44] ; (801bf30 ) + 801bf02: f000 fba9 bl 801c658 if (pcr->original != NULL) { - 801bef6: 68fb ldr r3, [r7, #12] - 801bef8: 695b ldr r3, [r3, #20] - 801befa: 2b00 cmp r3, #0 - 801befc: d004 beq.n 801bf08 + 801bf06: 68fb ldr r3, [r7, #12] + 801bf08: 695b ldr r3, [r3, #20] + 801bf0a: 2b00 cmp r3, #0 + 801bf0c: d004 beq.n 801bf18 pbuf_free(pcr->original); - 801befe: 68fb ldr r3, [r7, #12] - 801bf00: 695b ldr r3, [r3, #20] - 801bf02: 4618 mov r0, r3 - 801bf04: f7f5 fe70 bl 8011be8 + 801bf0e: 68fb ldr r3, [r7, #12] + 801bf10: 695b ldr r3, [r3, #20] + 801bf12: 4618 mov r0, r3 + 801bf14: f7f5 fe70 bl 8011bf8 } ip_frag_free_pbuf_custom_ref(pcr); - 801bf08: 68f8 ldr r0, [r7, #12] - 801bf0a: f7ff ffbd bl 801be88 -} - 801bf0e: bf00 nop - 801bf10: 3710 adds r7, #16 - 801bf12: 46bd mov sp, r7 - 801bf14: bd80 pop {r7, pc} - 801bf16: bf00 nop - 801bf18: 080204d0 .word 0x080204d0 - 801bf1c: 08020694 .word 0x08020694 - 801bf20: 08020518 .word 0x08020518 - 801bf24: 080206a0 .word 0x080206a0 - -0801bf28 : + 801bf18: 68f8 ldr r0, [r7, #12] + 801bf1a: f7ff ffbd bl 801be98 +} + 801bf1e: bf00 nop + 801bf20: 3710 adds r7, #16 + 801bf22: 46bd mov sp, r7 + 801bf24: bd80 pop {r7, pc} + 801bf26: bf00 nop + 801bf28: 080204e0 .word 0x080204e0 + 801bf2c: 080206a4 .word 0x080206a4 + 801bf30: 08020528 .word 0x08020528 + 801bf34: 080206b0 .word 0x080206b0 + +0801bf38 : * * @return ERR_OK if sent successfully, err_t otherwise */ err_t ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest) { - 801bf28: b580 push {r7, lr} - 801bf2a: b094 sub sp, #80 ; 0x50 - 801bf2c: af02 add r7, sp, #8 - 801bf2e: 60f8 str r0, [r7, #12] - 801bf30: 60b9 str r1, [r7, #8] - 801bf32: 607a str r2, [r7, #4] + 801bf38: b580 push {r7, lr} + 801bf3a: b094 sub sp, #80 ; 0x50 + 801bf3c: af02 add r7, sp, #8 + 801bf3e: 60f8 str r0, [r7, #12] + 801bf40: 60b9 str r1, [r7, #8] + 801bf42: 607a str r2, [r7, #4] struct pbuf *rambuf; #if !LWIP_NETIF_TX_SINGLE_PBUF struct pbuf *newpbuf; u16_t newpbuflen = 0; - 801bf34: 2300 movs r3, #0 - 801bf36: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 + 801bf44: 2300 movs r3, #0 + 801bf46: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 u16_t left_to_copy; #endif struct ip_hdr *original_iphdr; struct ip_hdr *iphdr; const u16_t nfb = (u16_t)((netif->mtu - IP_HLEN) / 8); - 801bf3a: 68bb ldr r3, [r7, #8] - 801bf3c: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801bf3e: 3b14 subs r3, #20 - 801bf40: 2b00 cmp r3, #0 - 801bf42: da00 bge.n 801bf46 - 801bf44: 3307 adds r3, #7 - 801bf46: 10db asrs r3, r3, #3 - 801bf48: 877b strh r3, [r7, #58] ; 0x3a + 801bf4a: 68bb ldr r3, [r7, #8] + 801bf4c: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801bf4e: 3b14 subs r3, #20 + 801bf50: 2b00 cmp r3, #0 + 801bf52: da00 bge.n 801bf56 + 801bf54: 3307 adds r3, #7 + 801bf56: 10db asrs r3, r3, #3 + 801bf58: 877b strh r3, [r7, #58] ; 0x3a u16_t left, fragsize; u16_t ofo; int last; u16_t poff = IP_HLEN; - 801bf4a: 2314 movs r3, #20 - 801bf4c: 87fb strh r3, [r7, #62] ; 0x3e + 801bf5a: 2314 movs r3, #20 + 801bf5c: 87fb strh r3, [r7, #62] ; 0x3e u16_t tmp; int mf_set; original_iphdr = (struct ip_hdr *)p->payload; - 801bf4e: 68fb ldr r3, [r7, #12] - 801bf50: 685b ldr r3, [r3, #4] - 801bf52: 637b str r3, [r7, #52] ; 0x34 + 801bf5e: 68fb ldr r3, [r7, #12] + 801bf60: 685b ldr r3, [r3, #4] + 801bf62: 637b str r3, [r7, #52] ; 0x34 iphdr = original_iphdr; - 801bf54: 6b7b ldr r3, [r7, #52] ; 0x34 - 801bf56: 633b str r3, [r7, #48] ; 0x30 + 801bf64: 6b7b ldr r3, [r7, #52] ; 0x34 + 801bf66: 633b str r3, [r7, #48] ; 0x30 if (IPH_HL_BYTES(iphdr) != IP_HLEN) { - 801bf58: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bf5a: 781b ldrb r3, [r3, #0] - 801bf5c: f003 030f and.w r3, r3, #15 - 801bf60: b2db uxtb r3, r3 - 801bf62: 009b lsls r3, r3, #2 - 801bf64: b2db uxtb r3, r3 - 801bf66: 2b14 cmp r3, #20 - 801bf68: d002 beq.n 801bf70 + 801bf68: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bf6a: 781b ldrb r3, [r3, #0] + 801bf6c: f003 030f and.w r3, r3, #15 + 801bf70: b2db uxtb r3, r3 + 801bf72: 009b lsls r3, r3, #2 + 801bf74: b2db uxtb r3, r3 + 801bf76: 2b14 cmp r3, #20 + 801bf78: d002 beq.n 801bf80 /* ip4_frag() does not support IP options */ return ERR_VAL; - 801bf6a: f06f 0305 mvn.w r3, #5 - 801bf6e: e10f b.n 801c190 + 801bf7a: f06f 0305 mvn.w r3, #5 + 801bf7e: e10f b.n 801c1a0 } LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL); - 801bf70: 68fb ldr r3, [r7, #12] - 801bf72: 895b ldrh r3, [r3, #10] - 801bf74: 2b13 cmp r3, #19 - 801bf76: d809 bhi.n 801bf8c - 801bf78: 4b87 ldr r3, [pc, #540] ; (801c198 ) - 801bf7a: f44f 723f mov.w r2, #764 ; 0x2fc - 801bf7e: 4987 ldr r1, [pc, #540] ; (801c19c ) - 801bf80: 4887 ldr r0, [pc, #540] ; (801c1a0 ) - 801bf82: f000 fb61 bl 801c648 - 801bf86: f06f 0305 mvn.w r3, #5 - 801bf8a: e101 b.n 801c190 + 801bf80: 68fb ldr r3, [r7, #12] + 801bf82: 895b ldrh r3, [r3, #10] + 801bf84: 2b13 cmp r3, #19 + 801bf86: d809 bhi.n 801bf9c + 801bf88: 4b87 ldr r3, [pc, #540] ; (801c1a8 ) + 801bf8a: f44f 723f mov.w r2, #764 ; 0x2fc + 801bf8e: 4987 ldr r1, [pc, #540] ; (801c1ac ) + 801bf90: 4887 ldr r0, [pc, #540] ; (801c1b0 ) + 801bf92: f000 fb61 bl 801c658 + 801bf96: f06f 0305 mvn.w r3, #5 + 801bf9a: e101 b.n 801c1a0 /* Save original offset */ tmp = lwip_ntohs(IPH_OFFSET(iphdr)); - 801bf8c: 6b3b ldr r3, [r7, #48] ; 0x30 - 801bf8e: 88db ldrh r3, [r3, #6] - 801bf90: b29b uxth r3, r3 - 801bf92: 4618 mov r0, r3 - 801bf94: f7f4 fa74 bl 8010480 - 801bf98: 4603 mov r3, r0 - 801bf9a: 87bb strh r3, [r7, #60] ; 0x3c + 801bf9c: 6b3b ldr r3, [r7, #48] ; 0x30 + 801bf9e: 88db ldrh r3, [r3, #6] + 801bfa0: b29b uxth r3, r3 + 801bfa2: 4618 mov r0, r3 + 801bfa4: f7f4 fa74 bl 8010490 + 801bfa8: 4603 mov r3, r0 + 801bfaa: 87bb strh r3, [r7, #60] ; 0x3c ofo = tmp & IP_OFFMASK; - 801bf9c: 8fbb ldrh r3, [r7, #60] ; 0x3c - 801bf9e: f3c3 030c ubfx r3, r3, #0, #13 - 801bfa2: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 + 801bfac: 8fbb ldrh r3, [r7, #60] ; 0x3c + 801bfae: f3c3 030c ubfx r3, r3, #0, #13 + 801bfb2: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 /* already fragmented? if so, the last fragment we create must have MF, too */ mf_set = tmp & IP_MF; - 801bfa6: 8fbb ldrh r3, [r7, #60] ; 0x3c - 801bfa8: f403 5300 and.w r3, r3, #8192 ; 0x2000 - 801bfac: 62fb str r3, [r7, #44] ; 0x2c + 801bfb6: 8fbb ldrh r3, [r7, #60] ; 0x3c + 801bfb8: f403 5300 and.w r3, r3, #8192 ; 0x2000 + 801bfbc: 62fb str r3, [r7, #44] ; 0x2c left = (u16_t)(p->tot_len - IP_HLEN); - 801bfae: 68fb ldr r3, [r7, #12] - 801bfb0: 891b ldrh r3, [r3, #8] - 801bfb2: 3b14 subs r3, #20 - 801bfb4: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 + 801bfbe: 68fb ldr r3, [r7, #12] + 801bfc0: 891b ldrh r3, [r3, #8] + 801bfc2: 3b14 subs r3, #20 + 801bfc4: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 while (left) { - 801bfb8: e0e0 b.n 801c17c + 801bfc8: e0e0 b.n 801c18c /* Fill this fragment */ fragsize = LWIP_MIN(left, (u16_t)(nfb * 8)); - 801bfba: 8f7b ldrh r3, [r7, #58] ; 0x3a - 801bfbc: 00db lsls r3, r3, #3 - 801bfbe: b29b uxth r3, r3 - 801bfc0: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 801bfc4: 4293 cmp r3, r2 - 801bfc6: bf28 it cs - 801bfc8: 4613 movcs r3, r2 - 801bfca: 857b strh r3, [r7, #42] ; 0x2a + 801bfca: 8f7b ldrh r3, [r7, #58] ; 0x3a + 801bfcc: 00db lsls r3, r3, #3 + 801bfce: b29b uxth r3, r3 + 801bfd0: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 801bfd4: 4293 cmp r3, r2 + 801bfd6: bf28 it cs + 801bfd8: 4613 movcs r3, r2 + 801bfda: 857b strh r3, [r7, #42] ; 0x2a /* When not using a static buffer, create a chain of pbufs. * The first will be a PBUF_RAM holding the link and IP header. * The rest will be PBUF_REFs mirroring the pbuf chain to be fragged, * but limited to the size of an mtu. */ rambuf = pbuf_alloc(PBUF_LINK, IP_HLEN, PBUF_RAM); - 801bfcc: f44f 7220 mov.w r2, #640 ; 0x280 - 801bfd0: 2114 movs r1, #20 - 801bfd2: 200e movs r0, #14 - 801bfd4: f7f5 fb28 bl 8011628 - 801bfd8: 6278 str r0, [r7, #36] ; 0x24 + 801bfdc: f44f 7220 mov.w r2, #640 ; 0x280 + 801bfe0: 2114 movs r1, #20 + 801bfe2: 200e movs r0, #14 + 801bfe4: f7f5 fb28 bl 8011638 + 801bfe8: 6278 str r0, [r7, #36] ; 0x24 if (rambuf == NULL) { - 801bfda: 6a7b ldr r3, [r7, #36] ; 0x24 - 801bfdc: 2b00 cmp r3, #0 - 801bfde: f000 80d4 beq.w 801c18a + 801bfea: 6a7b ldr r3, [r7, #36] ; 0x24 + 801bfec: 2b00 cmp r3, #0 + 801bfee: f000 80d4 beq.w 801c19a goto memerr; } LWIP_ASSERT("this needs a pbuf in one piece!", - 801bfe2: 6a7b ldr r3, [r7, #36] ; 0x24 - 801bfe4: 895b ldrh r3, [r3, #10] - 801bfe6: 2b13 cmp r3, #19 - 801bfe8: d806 bhi.n 801bff8 - 801bfea: 4b6b ldr r3, [pc, #428] ; (801c198 ) - 801bfec: f240 3225 movw r2, #805 ; 0x325 - 801bff0: 496c ldr r1, [pc, #432] ; (801c1a4 ) - 801bff2: 486b ldr r0, [pc, #428] ; (801c1a0 ) - 801bff4: f000 fb28 bl 801c648 + 801bff2: 6a7b ldr r3, [r7, #36] ; 0x24 + 801bff4: 895b ldrh r3, [r3, #10] + 801bff6: 2b13 cmp r3, #19 + 801bff8: d806 bhi.n 801c008 + 801bffa: 4b6b ldr r3, [pc, #428] ; (801c1a8 ) + 801bffc: f240 3225 movw r2, #805 ; 0x325 + 801c000: 496c ldr r1, [pc, #432] ; (801c1b4 ) + 801c002: 486b ldr r0, [pc, #428] ; (801c1b0 ) + 801c004: f000 fb28 bl 801c658 (rambuf->len >= (IP_HLEN))); SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN); - 801bff8: 6a7b ldr r3, [r7, #36] ; 0x24 - 801bffa: 685b ldr r3, [r3, #4] - 801bffc: 2214 movs r2, #20 - 801bffe: 6b79 ldr r1, [r7, #52] ; 0x34 - 801c000: 4618 mov r0, r3 - 801c002: f000 faf4 bl 801c5ee + 801c008: 6a7b ldr r3, [r7, #36] ; 0x24 + 801c00a: 685b ldr r3, [r3, #4] + 801c00c: 2214 movs r2, #20 + 801c00e: 6b79 ldr r1, [r7, #52] ; 0x34 + 801c010: 4618 mov r0, r3 + 801c012: f000 faf4 bl 801c5fe iphdr = (struct ip_hdr *)rambuf->payload; - 801c006: 6a7b ldr r3, [r7, #36] ; 0x24 - 801c008: 685b ldr r3, [r3, #4] - 801c00a: 633b str r3, [r7, #48] ; 0x30 + 801c016: 6a7b ldr r3, [r7, #36] ; 0x24 + 801c018: 685b ldr r3, [r3, #4] + 801c01a: 633b str r3, [r7, #48] ; 0x30 left_to_copy = fragsize; - 801c00c: 8d7b ldrh r3, [r7, #42] ; 0x2a - 801c00e: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 + 801c01c: 8d7b ldrh r3, [r7, #42] ; 0x2a + 801c01e: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 while (left_to_copy) { - 801c012: e064 b.n 801c0de + 801c022: e064 b.n 801c0ee struct pbuf_custom_ref *pcr; u16_t plen = (u16_t)(p->len - poff); - 801c014: 68fb ldr r3, [r7, #12] - 801c016: 895a ldrh r2, [r3, #10] - 801c018: 8ffb ldrh r3, [r7, #62] ; 0x3e - 801c01a: 1ad3 subs r3, r2, r3 - 801c01c: 83fb strh r3, [r7, #30] + 801c024: 68fb ldr r3, [r7, #12] + 801c026: 895a ldrh r2, [r3, #10] + 801c028: 8ffb ldrh r3, [r7, #62] ; 0x3e + 801c02a: 1ad3 subs r3, r2, r3 + 801c02c: 83fb strh r3, [r7, #30] LWIP_ASSERT("p->len >= poff", p->len >= poff); - 801c01e: 68fb ldr r3, [r7, #12] - 801c020: 895b ldrh r3, [r3, #10] - 801c022: 8ffa ldrh r2, [r7, #62] ; 0x3e - 801c024: 429a cmp r2, r3 - 801c026: d906 bls.n 801c036 - 801c028: 4b5b ldr r3, [pc, #364] ; (801c198 ) - 801c02a: f240 322d movw r2, #813 ; 0x32d - 801c02e: 495e ldr r1, [pc, #376] ; (801c1a8 ) - 801c030: 485b ldr r0, [pc, #364] ; (801c1a0 ) - 801c032: f000 fb09 bl 801c648 + 801c02e: 68fb ldr r3, [r7, #12] + 801c030: 895b ldrh r3, [r3, #10] + 801c032: 8ffa ldrh r2, [r7, #62] ; 0x3e + 801c034: 429a cmp r2, r3 + 801c036: d906 bls.n 801c046 + 801c038: 4b5b ldr r3, [pc, #364] ; (801c1a8 ) + 801c03a: f240 322d movw r2, #813 ; 0x32d + 801c03e: 495e ldr r1, [pc, #376] ; (801c1b8 ) + 801c040: 485b ldr r0, [pc, #364] ; (801c1b0 ) + 801c042: f000 fb09 bl 801c658 newpbuflen = LWIP_MIN(left_to_copy, plen); - 801c036: 8bfa ldrh r2, [r7, #30] - 801c038: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 801c03c: 4293 cmp r3, r2 - 801c03e: bf28 it cs - 801c040: 4613 movcs r3, r2 - 801c042: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 + 801c046: 8bfa ldrh r2, [r7, #30] + 801c048: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 + 801c04c: 4293 cmp r3, r2 + 801c04e: bf28 it cs + 801c050: 4613 movcs r3, r2 + 801c052: f8a7 3046 strh.w r3, [r7, #70] ; 0x46 /* Is this pbuf already empty? */ if (!newpbuflen) { - 801c046: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801c04a: 2b00 cmp r3, #0 - 801c04c: d105 bne.n 801c05a + 801c056: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 + 801c05a: 2b00 cmp r3, #0 + 801c05c: d105 bne.n 801c06a poff = 0; - 801c04e: 2300 movs r3, #0 - 801c050: 87fb strh r3, [r7, #62] ; 0x3e + 801c05e: 2300 movs r3, #0 + 801c060: 87fb strh r3, [r7, #62] ; 0x3e p = p->next; - 801c052: 68fb ldr r3, [r7, #12] - 801c054: 681b ldr r3, [r3, #0] - 801c056: 60fb str r3, [r7, #12] + 801c062: 68fb ldr r3, [r7, #12] + 801c064: 681b ldr r3, [r3, #0] + 801c066: 60fb str r3, [r7, #12] continue; - 801c058: e041 b.n 801c0de + 801c068: e041 b.n 801c0ee } pcr = ip_frag_alloc_pbuf_custom_ref(); - 801c05a: f7ff ff0d bl 801be78 - 801c05e: 61b8 str r0, [r7, #24] + 801c06a: f7ff ff0d bl 801be88 + 801c06e: 61b8 str r0, [r7, #24] if (pcr == NULL) { - 801c060: 69bb ldr r3, [r7, #24] - 801c062: 2b00 cmp r3, #0 - 801c064: d103 bne.n 801c06e + 801c070: 69bb ldr r3, [r7, #24] + 801c072: 2b00 cmp r3, #0 + 801c074: d103 bne.n 801c07e pbuf_free(rambuf); - 801c066: 6a78 ldr r0, [r7, #36] ; 0x24 - 801c068: f7f5 fdbe bl 8011be8 + 801c076: 6a78 ldr r0, [r7, #36] ; 0x24 + 801c078: f7f5 fdbe bl 8011bf8 goto memerr; - 801c06c: e08e b.n 801c18c + 801c07c: e08e b.n 801c19c } /* Mirror this pbuf, although we might not need all of it. */ newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc, - 801c06e: 69b8 ldr r0, [r7, #24] + 801c07e: 69b8 ldr r0, [r7, #24] (u8_t *)p->payload + poff, newpbuflen); - 801c070: 68fb ldr r3, [r7, #12] - 801c072: 685a ldr r2, [r3, #4] + 801c080: 68fb ldr r3, [r7, #12] + 801c082: 685a ldr r2, [r3, #4] newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc, - 801c074: 8ffb ldrh r3, [r7, #62] ; 0x3e - 801c076: 4413 add r3, r2 - 801c078: f8b7 1046 ldrh.w r1, [r7, #70] ; 0x46 - 801c07c: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 - 801c080: 9201 str r2, [sp, #4] - 801c082: 9300 str r3, [sp, #0] - 801c084: 4603 mov r3, r0 - 801c086: 2241 movs r2, #65 ; 0x41 - 801c088: 2000 movs r0, #0 - 801c08a: f7f5 fbf3 bl 8011874 - 801c08e: 6178 str r0, [r7, #20] + 801c084: 8ffb ldrh r3, [r7, #62] ; 0x3e + 801c086: 4413 add r3, r2 + 801c088: f8b7 1046 ldrh.w r1, [r7, #70] ; 0x46 + 801c08c: f8b7 2046 ldrh.w r2, [r7, #70] ; 0x46 + 801c090: 9201 str r2, [sp, #4] + 801c092: 9300 str r3, [sp, #0] + 801c094: 4603 mov r3, r0 + 801c096: 2241 movs r2, #65 ; 0x41 + 801c098: 2000 movs r0, #0 + 801c09a: f7f5 fbf3 bl 8011884 + 801c09e: 6178 str r0, [r7, #20] if (newpbuf == NULL) { - 801c090: 697b ldr r3, [r7, #20] - 801c092: 2b00 cmp r3, #0 - 801c094: d106 bne.n 801c0a4 + 801c0a0: 697b ldr r3, [r7, #20] + 801c0a2: 2b00 cmp r3, #0 + 801c0a4: d106 bne.n 801c0b4 ip_frag_free_pbuf_custom_ref(pcr); - 801c096: 69b8 ldr r0, [r7, #24] - 801c098: f7ff fef6 bl 801be88 + 801c0a6: 69b8 ldr r0, [r7, #24] + 801c0a8: f7ff fef6 bl 801be98 pbuf_free(rambuf); - 801c09c: 6a78 ldr r0, [r7, #36] ; 0x24 - 801c09e: f7f5 fda3 bl 8011be8 + 801c0ac: 6a78 ldr r0, [r7, #36] ; 0x24 + 801c0ae: f7f5 fda3 bl 8011bf8 goto memerr; - 801c0a2: e073 b.n 801c18c + 801c0b2: e073 b.n 801c19c } pbuf_ref(p); - 801c0a4: 68f8 ldr r0, [r7, #12] - 801c0a6: f7f5 fe45 bl 8011d34 + 801c0b4: 68f8 ldr r0, [r7, #12] + 801c0b6: f7f5 fe45 bl 8011d44 pcr->original = p; - 801c0aa: 69bb ldr r3, [r7, #24] - 801c0ac: 68fa ldr r2, [r7, #12] - 801c0ae: 615a str r2, [r3, #20] + 801c0ba: 69bb ldr r3, [r7, #24] + 801c0bc: 68fa ldr r2, [r7, #12] + 801c0be: 615a str r2, [r3, #20] pcr->pc.custom_free_function = ipfrag_free_pbuf_custom; - 801c0b0: 69bb ldr r3, [r7, #24] - 801c0b2: 4a3e ldr r2, [pc, #248] ; (801c1ac ) - 801c0b4: 611a str r2, [r3, #16] + 801c0c0: 69bb ldr r3, [r7, #24] + 801c0c2: 4a3e ldr r2, [pc, #248] ; (801c1bc ) + 801c0c4: 611a str r2, [r3, #16] /* Add it to end of rambuf's chain, but using pbuf_cat, not pbuf_chain * so that it is removed when pbuf_dechain is later called on rambuf. */ pbuf_cat(rambuf, newpbuf); - 801c0b6: 6979 ldr r1, [r7, #20] - 801c0b8: 6a78 ldr r0, [r7, #36] ; 0x24 - 801c0ba: f7f5 fe63 bl 8011d84 + 801c0c6: 6979 ldr r1, [r7, #20] + 801c0c8: 6a78 ldr r0, [r7, #36] ; 0x24 + 801c0ca: f7f5 fe63 bl 8011d94 left_to_copy = (u16_t)(left_to_copy - newpbuflen); - 801c0be: f8b7 2044 ldrh.w r2, [r7, #68] ; 0x44 - 801c0c2: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801c0c6: 1ad3 subs r3, r2, r3 - 801c0c8: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 + 801c0ce: f8b7 2044 ldrh.w r2, [r7, #68] ; 0x44 + 801c0d2: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 + 801c0d6: 1ad3 subs r3, r2, r3 + 801c0d8: f8a7 3044 strh.w r3, [r7, #68] ; 0x44 if (left_to_copy) { - 801c0cc: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 801c0d0: 2b00 cmp r3, #0 - 801c0d2: d004 beq.n 801c0de + 801c0dc: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 + 801c0e0: 2b00 cmp r3, #0 + 801c0e2: d004 beq.n 801c0ee poff = 0; - 801c0d4: 2300 movs r3, #0 - 801c0d6: 87fb strh r3, [r7, #62] ; 0x3e + 801c0e4: 2300 movs r3, #0 + 801c0e6: 87fb strh r3, [r7, #62] ; 0x3e p = p->next; - 801c0d8: 68fb ldr r3, [r7, #12] - 801c0da: 681b ldr r3, [r3, #0] - 801c0dc: 60fb str r3, [r7, #12] + 801c0e8: 68fb ldr r3, [r7, #12] + 801c0ea: 681b ldr r3, [r3, #0] + 801c0ec: 60fb str r3, [r7, #12] while (left_to_copy) { - 801c0de: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 - 801c0e2: 2b00 cmp r3, #0 - 801c0e4: d196 bne.n 801c014 + 801c0ee: f8b7 3044 ldrh.w r3, [r7, #68] ; 0x44 + 801c0f2: 2b00 cmp r3, #0 + 801c0f4: d196 bne.n 801c024 } } poff = (u16_t)(poff + newpbuflen); - 801c0e6: 8ffa ldrh r2, [r7, #62] ; 0x3e - 801c0e8: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 - 801c0ec: 4413 add r3, r2 - 801c0ee: 87fb strh r3, [r7, #62] ; 0x3e + 801c0f6: 8ffa ldrh r2, [r7, #62] ; 0x3e + 801c0f8: f8b7 3046 ldrh.w r3, [r7, #70] ; 0x46 + 801c0fc: 4413 add r3, r2 + 801c0fe: 87fb strh r3, [r7, #62] ; 0x3e #endif /* LWIP_NETIF_TX_SINGLE_PBUF */ /* Correct header */ last = (left <= netif->mtu - IP_HLEN); - 801c0f0: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 801c0f4: 68bb ldr r3, [r7, #8] - 801c0f6: 8d1b ldrh r3, [r3, #40] ; 0x28 - 801c0f8: 3b14 subs r3, #20 - 801c0fa: 429a cmp r2, r3 - 801c0fc: bfd4 ite le - 801c0fe: 2301 movle r3, #1 - 801c100: 2300 movgt r3, #0 - 801c102: b2db uxtb r3, r3 - 801c104: 623b str r3, [r7, #32] + 801c100: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 801c104: 68bb ldr r3, [r7, #8] + 801c106: 8d1b ldrh r3, [r3, #40] ; 0x28 + 801c108: 3b14 subs r3, #20 + 801c10a: 429a cmp r2, r3 + 801c10c: bfd4 ite le + 801c10e: 2301 movle r3, #1 + 801c110: 2300 movgt r3, #0 + 801c112: b2db uxtb r3, r3 + 801c114: 623b str r3, [r7, #32] /* Set new offset and MF flag */ tmp = (IP_OFFMASK & (ofo)); - 801c106: f8b7 3040 ldrh.w r3, [r7, #64] ; 0x40 - 801c10a: f3c3 030c ubfx r3, r3, #0, #13 - 801c10e: 87bb strh r3, [r7, #60] ; 0x3c + 801c116: f8b7 3040 ldrh.w r3, [r7, #64] ; 0x40 + 801c11a: f3c3 030c ubfx r3, r3, #0, #13 + 801c11e: 87bb strh r3, [r7, #60] ; 0x3c if (!last || mf_set) { - 801c110: 6a3b ldr r3, [r7, #32] - 801c112: 2b00 cmp r3, #0 - 801c114: d002 beq.n 801c11c - 801c116: 6afb ldr r3, [r7, #44] ; 0x2c - 801c118: 2b00 cmp r3, #0 - 801c11a: d003 beq.n 801c124 + 801c120: 6a3b ldr r3, [r7, #32] + 801c122: 2b00 cmp r3, #0 + 801c124: d002 beq.n 801c12c + 801c126: 6afb ldr r3, [r7, #44] ; 0x2c + 801c128: 2b00 cmp r3, #0 + 801c12a: d003 beq.n 801c134 /* the last fragment has MF set if the input frame had it */ tmp = tmp | IP_MF; - 801c11c: 8fbb ldrh r3, [r7, #60] ; 0x3c - 801c11e: f443 5300 orr.w r3, r3, #8192 ; 0x2000 - 801c122: 87bb strh r3, [r7, #60] ; 0x3c + 801c12c: 8fbb ldrh r3, [r7, #60] ; 0x3c + 801c12e: f443 5300 orr.w r3, r3, #8192 ; 0x2000 + 801c132: 87bb strh r3, [r7, #60] ; 0x3c } IPH_OFFSET_SET(iphdr, lwip_htons(tmp)); - 801c124: 8fbb ldrh r3, [r7, #60] ; 0x3c - 801c126: 4618 mov r0, r3 - 801c128: f7f4 f9aa bl 8010480 - 801c12c: 4603 mov r3, r0 - 801c12e: 461a mov r2, r3 - 801c130: 6b3b ldr r3, [r7, #48] ; 0x30 - 801c132: 80da strh r2, [r3, #6] + 801c134: 8fbb ldrh r3, [r7, #60] ; 0x3c + 801c136: 4618 mov r0, r3 + 801c138: f7f4 f9aa bl 8010490 + 801c13c: 4603 mov r3, r0 + 801c13e: 461a mov r2, r3 + 801c140: 6b3b ldr r3, [r7, #48] ; 0x30 + 801c142: 80da strh r2, [r3, #6] IPH_LEN_SET(iphdr, lwip_htons((u16_t)(fragsize + IP_HLEN))); - 801c134: 8d7b ldrh r3, [r7, #42] ; 0x2a - 801c136: 3314 adds r3, #20 - 801c138: b29b uxth r3, r3 - 801c13a: 4618 mov r0, r3 - 801c13c: f7f4 f9a0 bl 8010480 - 801c140: 4603 mov r3, r0 - 801c142: 461a mov r2, r3 - 801c144: 6b3b ldr r3, [r7, #48] ; 0x30 - 801c146: 805a strh r2, [r3, #2] + 801c144: 8d7b ldrh r3, [r7, #42] ; 0x2a + 801c146: 3314 adds r3, #20 + 801c148: b29b uxth r3, r3 + 801c14a: 4618 mov r0, r3 + 801c14c: f7f4 f9a0 bl 8010490 + 801c150: 4603 mov r3, r0 + 801c152: 461a mov r2, r3 + 801c154: 6b3b ldr r3, [r7, #48] ; 0x30 + 801c156: 805a strh r2, [r3, #2] IPH_CHKSUM_SET(iphdr, 0); - 801c148: 6b3b ldr r3, [r7, #48] ; 0x30 - 801c14a: 2200 movs r2, #0 - 801c14c: 729a strb r2, [r3, #10] - 801c14e: 2200 movs r2, #0 - 801c150: 72da strb r2, [r3, #11] + 801c158: 6b3b ldr r3, [r7, #48] ; 0x30 + 801c15a: 2200 movs r2, #0 + 801c15c: 729a strb r2, [r3, #10] + 801c15e: 2200 movs r2, #0 + 801c160: 72da strb r2, [r3, #11] #endif /* CHECKSUM_GEN_IP */ /* No need for separate header pbuf - we allowed room for it in rambuf * when allocated. */ netif->output(netif, rambuf, dest); - 801c152: 68bb ldr r3, [r7, #8] - 801c154: 695b ldr r3, [r3, #20] - 801c156: 687a ldr r2, [r7, #4] - 801c158: 6a79 ldr r1, [r7, #36] ; 0x24 - 801c15a: 68b8 ldr r0, [r7, #8] - 801c15c: 4798 blx r3 + 801c162: 68bb ldr r3, [r7, #8] + 801c164: 695b ldr r3, [r3, #20] + 801c166: 687a ldr r2, [r7, #4] + 801c168: 6a79 ldr r1, [r7, #36] ; 0x24 + 801c16a: 68b8 ldr r0, [r7, #8] + 801c16c: 4798 blx r3 * recreate it next time round the loop. If we're lucky the hardware * will have already sent the packet, the free will really free, and * there will be zero memory penalty. */ pbuf_free(rambuf); - 801c15e: 6a78 ldr r0, [r7, #36] ; 0x24 - 801c160: f7f5 fd42 bl 8011be8 + 801c16e: 6a78 ldr r0, [r7, #36] ; 0x24 + 801c170: f7f5 fd42 bl 8011bf8 left = (u16_t)(left - fragsize); - 801c164: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 - 801c168: 8d7b ldrh r3, [r7, #42] ; 0x2a - 801c16a: 1ad3 subs r3, r2, r3 - 801c16c: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 + 801c174: f8b7 2042 ldrh.w r2, [r7, #66] ; 0x42 + 801c178: 8d7b ldrh r3, [r7, #42] ; 0x2a + 801c17a: 1ad3 subs r3, r2, r3 + 801c17c: f8a7 3042 strh.w r3, [r7, #66] ; 0x42 ofo = (u16_t)(ofo + nfb); - 801c170: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 - 801c174: 8f7b ldrh r3, [r7, #58] ; 0x3a - 801c176: 4413 add r3, r2 - 801c178: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 + 801c180: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 + 801c184: 8f7b ldrh r3, [r7, #58] ; 0x3a + 801c186: 4413 add r3, r2 + 801c188: f8a7 3040 strh.w r3, [r7, #64] ; 0x40 while (left) { - 801c17c: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 - 801c180: 2b00 cmp r3, #0 - 801c182: f47f af1a bne.w 801bfba + 801c18c: f8b7 3042 ldrh.w r3, [r7, #66] ; 0x42 + 801c190: 2b00 cmp r3, #0 + 801c192: f47f af1a bne.w 801bfca } MIB2_STATS_INC(mib2.ipfragoks); return ERR_OK; - 801c186: 2300 movs r3, #0 - 801c188: e002 b.n 801c190 + 801c196: 2300 movs r3, #0 + 801c198: e002 b.n 801c1a0 goto memerr; - 801c18a: bf00 nop + 801c19a: bf00 nop memerr: MIB2_STATS_INC(mib2.ipfragfails); return ERR_MEM; - 801c18c: f04f 33ff mov.w r3, #4294967295 -} - 801c190: 4618 mov r0, r3 - 801c192: 3748 adds r7, #72 ; 0x48 - 801c194: 46bd mov sp, r7 - 801c196: bd80 pop {r7, pc} - 801c198: 080204d0 .word 0x080204d0 - 801c19c: 080206ac .word 0x080206ac - 801c1a0: 08020518 .word 0x08020518 - 801c1a4: 080206c8 .word 0x080206c8 - 801c1a8: 080206e8 .word 0x080206e8 - 801c1ac: 0801bec1 .word 0x0801bec1 - -0801c1b0 : + 801c19c: f04f 33ff mov.w r3, #4294967295 +} + 801c1a0: 4618 mov r0, r3 + 801c1a2: 3748 adds r7, #72 ; 0x48 + 801c1a4: 46bd mov sp, r7 + 801c1a6: bd80 pop {r7, pc} + 801c1a8: 080204e0 .word 0x080204e0 + 801c1ac: 080206bc .word 0x080206bc + 801c1b0: 08020528 .word 0x08020528 + 801c1b4: 080206d8 .word 0x080206d8 + 801c1b8: 080206f8 .word 0x080206f8 + 801c1bc: 0801bed1 .word 0x0801bed1 + +0801c1c0 : * @see ETHARP_SUPPORT_VLAN * @see LWIP_HOOK_VLAN_CHECK */ err_t ethernet_input(struct pbuf *p, struct netif *netif) { - 801c1b0: b580 push {r7, lr} - 801c1b2: b086 sub sp, #24 - 801c1b4: af00 add r7, sp, #0 - 801c1b6: 6078 str r0, [r7, #4] - 801c1b8: 6039 str r1, [r7, #0] + 801c1c0: b580 push {r7, lr} + 801c1c2: b086 sub sp, #24 + 801c1c4: af00 add r7, sp, #0 + 801c1c6: 6078 str r0, [r7, #4] + 801c1c8: 6039 str r1, [r7, #0] struct eth_hdr *ethhdr; u16_t type; #if LWIP_ARP || ETHARP_SUPPORT_VLAN || LWIP_IPV6 u16_t next_hdr_offset = SIZEOF_ETH_HDR; - 801c1ba: 230e movs r3, #14 - 801c1bc: 82fb strh r3, [r7, #22] + 801c1ca: 230e movs r3, #14 + 801c1cc: 82fb strh r3, [r7, #22] #endif /* LWIP_ARP || ETHARP_SUPPORT_VLAN */ LWIP_ASSERT_CORE_LOCKED(); if (p->len <= SIZEOF_ETH_HDR) { - 801c1be: 687b ldr r3, [r7, #4] - 801c1c0: 895b ldrh r3, [r3, #10] - 801c1c2: 2b0e cmp r3, #14 - 801c1c4: d96e bls.n 801c2a4 + 801c1ce: 687b ldr r3, [r7, #4] + 801c1d0: 895b ldrh r3, [r3, #10] + 801c1d2: 2b0e cmp r3, #14 + 801c1d4: d96e bls.n 801c2b4 ETHARP_STATS_INC(etharp.drop); MIB2_STATS_NETIF_INC(netif, ifinerrors); goto free_and_return; } if (p->if_idx == NETIF_NO_INDEX) { - 801c1c6: 687b ldr r3, [r7, #4] - 801c1c8: 7bdb ldrb r3, [r3, #15] - 801c1ca: 2b00 cmp r3, #0 - 801c1cc: d106 bne.n 801c1dc + 801c1d6: 687b ldr r3, [r7, #4] + 801c1d8: 7bdb ldrb r3, [r3, #15] + 801c1da: 2b00 cmp r3, #0 + 801c1dc: d106 bne.n 801c1ec p->if_idx = netif_get_index(netif); - 801c1ce: 683b ldr r3, [r7, #0] - 801c1d0: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 - 801c1d4: 3301 adds r3, #1 - 801c1d6: b2da uxtb r2, r3 - 801c1d8: 687b ldr r3, [r7, #4] - 801c1da: 73da strb r2, [r3, #15] + 801c1de: 683b ldr r3, [r7, #0] + 801c1e0: f893 3034 ldrb.w r3, [r3, #52] ; 0x34 + 801c1e4: 3301 adds r3, #1 + 801c1e6: b2da uxtb r2, r3 + 801c1e8: 687b ldr r3, [r7, #4] + 801c1ea: 73da strb r2, [r3, #15] } /* points to packet payload, which starts with an Ethernet header */ ethhdr = (struct eth_hdr *)p->payload; - 801c1dc: 687b ldr r3, [r7, #4] - 801c1de: 685b ldr r3, [r3, #4] - 801c1e0: 613b str r3, [r7, #16] + 801c1ec: 687b ldr r3, [r7, #4] + 801c1ee: 685b ldr r3, [r3, #4] + 801c1f0: 613b str r3, [r7, #16] (unsigned char)ethhdr->dest.addr[3], (unsigned char)ethhdr->dest.addr[4], (unsigned char)ethhdr->dest.addr[5], (unsigned char)ethhdr->src.addr[0], (unsigned char)ethhdr->src.addr[1], (unsigned char)ethhdr->src.addr[2], (unsigned char)ethhdr->src.addr[3], (unsigned char)ethhdr->src.addr[4], (unsigned char)ethhdr->src.addr[5], lwip_htons(ethhdr->type))); type = ethhdr->type; - 801c1e2: 693b ldr r3, [r7, #16] - 801c1e4: 7b1a ldrb r2, [r3, #12] - 801c1e6: 7b5b ldrb r3, [r3, #13] - 801c1e8: 021b lsls r3, r3, #8 - 801c1ea: 4313 orrs r3, r2 - 801c1ec: 81fb strh r3, [r7, #14] + 801c1f2: 693b ldr r3, [r7, #16] + 801c1f4: 7b1a ldrb r2, [r3, #12] + 801c1f6: 7b5b ldrb r3, [r3, #13] + 801c1f8: 021b lsls r3, r3, #8 + 801c1fa: 4313 orrs r3, r2 + 801c1fc: 81fb strh r3, [r7, #14] #if LWIP_ARP_FILTER_NETIF netif = LWIP_ARP_FILTER_NETIF_FN(p, netif, lwip_htons(type)); #endif /* LWIP_ARP_FILTER_NETIF*/ if (ethhdr->dest.addr[0] & 1) { - 801c1ee: 693b ldr r3, [r7, #16] - 801c1f0: 781b ldrb r3, [r3, #0] - 801c1f2: f003 0301 and.w r3, r3, #1 - 801c1f6: 2b00 cmp r3, #0 - 801c1f8: d023 beq.n 801c242 + 801c1fe: 693b ldr r3, [r7, #16] + 801c200: 781b ldrb r3, [r3, #0] + 801c202: f003 0301 and.w r3, r3, #1 + 801c206: 2b00 cmp r3, #0 + 801c208: d023 beq.n 801c252 /* this might be a multicast or broadcast packet */ if (ethhdr->dest.addr[0] == LL_IP4_MULTICAST_ADDR_0) { - 801c1fa: 693b ldr r3, [r7, #16] - 801c1fc: 781b ldrb r3, [r3, #0] - 801c1fe: 2b01 cmp r3, #1 - 801c200: d10f bne.n 801c222 + 801c20a: 693b ldr r3, [r7, #16] + 801c20c: 781b ldrb r3, [r3, #0] + 801c20e: 2b01 cmp r3, #1 + 801c210: d10f bne.n 801c232 #if LWIP_IPV4 if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) && - 801c202: 693b ldr r3, [r7, #16] - 801c204: 785b ldrb r3, [r3, #1] - 801c206: 2b00 cmp r3, #0 - 801c208: d11b bne.n 801c242 + 801c212: 693b ldr r3, [r7, #16] + 801c214: 785b ldrb r3, [r3, #1] + 801c216: 2b00 cmp r3, #0 + 801c218: d11b bne.n 801c252 (ethhdr->dest.addr[2] == LL_IP4_MULTICAST_ADDR_2)) { - 801c20a: 693b ldr r3, [r7, #16] - 801c20c: 789b ldrb r3, [r3, #2] + 801c21a: 693b ldr r3, [r7, #16] + 801c21c: 789b ldrb r3, [r3, #2] if ((ethhdr->dest.addr[1] == LL_IP4_MULTICAST_ADDR_1) && - 801c20e: 2b5e cmp r3, #94 ; 0x5e - 801c210: d117 bne.n 801c242 + 801c21e: 2b5e cmp r3, #94 ; 0x5e + 801c220: d117 bne.n 801c252 /* mark the pbuf as link-layer multicast */ p->flags |= PBUF_FLAG_LLMCAST; - 801c212: 687b ldr r3, [r7, #4] - 801c214: 7b5b ldrb r3, [r3, #13] - 801c216: f043 0310 orr.w r3, r3, #16 - 801c21a: b2da uxtb r2, r3 - 801c21c: 687b ldr r3, [r7, #4] - 801c21e: 735a strb r2, [r3, #13] - 801c220: e00f b.n 801c242 + 801c222: 687b ldr r3, [r7, #4] + 801c224: 7b5b ldrb r3, [r3, #13] + 801c226: f043 0310 orr.w r3, r3, #16 + 801c22a: b2da uxtb r2, r3 + 801c22c: 687b ldr r3, [r7, #4] + 801c22e: 735a strb r2, [r3, #13] + 801c230: e00f b.n 801c252 (ethhdr->dest.addr[1] == LL_IP6_MULTICAST_ADDR_1)) { /* mark the pbuf as link-layer multicast */ p->flags |= PBUF_FLAG_LLMCAST; } #endif /* LWIP_IPV6 */ else if (eth_addr_cmp(ðhdr->dest, ðbroadcast)) { - 801c222: 693b ldr r3, [r7, #16] - 801c224: 2206 movs r2, #6 - 801c226: 4928 ldr r1, [pc, #160] ; (801c2c8 ) - 801c228: 4618 mov r0, r3 - 801c22a: f000 f9d1 bl 801c5d0 - 801c22e: 4603 mov r3, r0 - 801c230: 2b00 cmp r3, #0 - 801c232: d106 bne.n 801c242 + 801c232: 693b ldr r3, [r7, #16] + 801c234: 2206 movs r2, #6 + 801c236: 4928 ldr r1, [pc, #160] ; (801c2d8 ) + 801c238: 4618 mov r0, r3 + 801c23a: f000 f9d1 bl 801c5e0 + 801c23e: 4603 mov r3, r0 + 801c240: 2b00 cmp r3, #0 + 801c242: d106 bne.n 801c252 /* mark the pbuf as link-layer broadcast */ p->flags |= PBUF_FLAG_LLBCAST; - 801c234: 687b ldr r3, [r7, #4] - 801c236: 7b5b ldrb r3, [r3, #13] - 801c238: f043 0308 orr.w r3, r3, #8 - 801c23c: b2da uxtb r2, r3 - 801c23e: 687b ldr r3, [r7, #4] - 801c240: 735a strb r2, [r3, #13] + 801c244: 687b ldr r3, [r7, #4] + 801c246: 7b5b ldrb r3, [r3, #13] + 801c248: f043 0308 orr.w r3, r3, #8 + 801c24c: b2da uxtb r2, r3 + 801c24e: 687b ldr r3, [r7, #4] + 801c250: 735a strb r2, [r3, #13] } } switch (type) { - 801c242: 89fb ldrh r3, [r7, #14] - 801c244: 2b08 cmp r3, #8 - 801c246: d003 beq.n 801c250 - 801c248: f5b3 6fc1 cmp.w r3, #1544 ; 0x608 - 801c24c: d014 beq.n 801c278 + 801c252: 89fb ldrh r3, [r7, #14] + 801c254: 2b08 cmp r3, #8 + 801c256: d003 beq.n 801c260 + 801c258: f5b3 6fc1 cmp.w r3, #1544 ; 0x608 + 801c25c: d014 beq.n 801c288 } #endif ETHARP_STATS_INC(etharp.proterr); ETHARP_STATS_INC(etharp.drop); MIB2_STATS_NETIF_INC(netif, ifinunknownprotos); goto free_and_return; - 801c24e: e032 b.n 801c2b6 + 801c25e: e032 b.n 801c2c6 if (!(netif->flags & NETIF_FLAG_ETHARP)) { - 801c250: 683b ldr r3, [r7, #0] - 801c252: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801c256: f003 0308 and.w r3, r3, #8 - 801c25a: 2b00 cmp r3, #0 - 801c25c: d024 beq.n 801c2a8 - if (pbuf_remove_header(p, next_hdr_offset)) { - 801c25e: 8afb ldrh r3, [r7, #22] - 801c260: 4619 mov r1, r3 - 801c262: 6878 ldr r0, [r7, #4] - 801c264: f7f5 fc3a bl 8011adc - 801c268: 4603 mov r3, r0 + 801c260: 683b ldr r3, [r7, #0] + 801c262: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801c266: f003 0308 and.w r3, r3, #8 801c26a: 2b00 cmp r3, #0 - 801c26c: d11e bne.n 801c2ac + 801c26c: d024 beq.n 801c2b8 + if (pbuf_remove_header(p, next_hdr_offset)) { + 801c26e: 8afb ldrh r3, [r7, #22] + 801c270: 4619 mov r1, r3 + 801c272: 6878 ldr r0, [r7, #4] + 801c274: f7f5 fc3a bl 8011aec + 801c278: 4603 mov r3, r0 + 801c27a: 2b00 cmp r3, #0 + 801c27c: d11e bne.n 801c2bc ip4_input(p, netif); - 801c26e: 6839 ldr r1, [r7, #0] - 801c270: 6878 ldr r0, [r7, #4] - 801c272: f7fe ff0f bl 801b094 + 801c27e: 6839 ldr r1, [r7, #0] + 801c280: 6878 ldr r0, [r7, #4] + 801c282: f7fe ff0f bl 801b0a4 break; - 801c276: e013 b.n 801c2a0 + 801c286: e013 b.n 801c2b0 if (!(netif->flags & NETIF_FLAG_ETHARP)) { - 801c278: 683b ldr r3, [r7, #0] - 801c27a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 - 801c27e: f003 0308 and.w r3, r3, #8 - 801c282: 2b00 cmp r3, #0 - 801c284: d014 beq.n 801c2b0 - if (pbuf_remove_header(p, next_hdr_offset)) { - 801c286: 8afb ldrh r3, [r7, #22] - 801c288: 4619 mov r1, r3 - 801c28a: 6878 ldr r0, [r7, #4] - 801c28c: f7f5 fc26 bl 8011adc - 801c290: 4603 mov r3, r0 + 801c288: 683b ldr r3, [r7, #0] + 801c28a: f893 3031 ldrb.w r3, [r3, #49] ; 0x31 + 801c28e: f003 0308 and.w r3, r3, #8 801c292: 2b00 cmp r3, #0 - 801c294: d10e bne.n 801c2b4 + 801c294: d014 beq.n 801c2c0 + if (pbuf_remove_header(p, next_hdr_offset)) { + 801c296: 8afb ldrh r3, [r7, #22] + 801c298: 4619 mov r1, r3 + 801c29a: 6878 ldr r0, [r7, #4] + 801c29c: f7f5 fc26 bl 8011aec + 801c2a0: 4603 mov r3, r0 + 801c2a2: 2b00 cmp r3, #0 + 801c2a4: d10e bne.n 801c2c4 etharp_input(p, netif); - 801c296: 6839 ldr r1, [r7, #0] - 801c298: 6878 ldr r0, [r7, #4] - 801c29a: f7fe f8ab bl 801a3f4 + 801c2a6: 6839 ldr r1, [r7, #0] + 801c2a8: 6878 ldr r0, [r7, #4] + 801c2aa: f7fe f8ab bl 801a404 break; - 801c29e: bf00 nop + 801c2ae: bf00 nop } /* This means the pbuf is freed or consumed, so the caller doesn't have to free it again */ return ERR_OK; - 801c2a0: 2300 movs r3, #0 - 801c2a2: e00c b.n 801c2be + 801c2b0: 2300 movs r3, #0 + 801c2b2: e00c b.n 801c2ce goto free_and_return; - 801c2a4: bf00 nop - 801c2a6: e006 b.n 801c2b6 + 801c2b4: bf00 nop + 801c2b6: e006 b.n 801c2c6 goto free_and_return; - 801c2a8: bf00 nop - 801c2aa: e004 b.n 801c2b6 + 801c2b8: bf00 nop + 801c2ba: e004 b.n 801c2c6 goto free_and_return; - 801c2ac: bf00 nop - 801c2ae: e002 b.n 801c2b6 + 801c2bc: bf00 nop + 801c2be: e002 b.n 801c2c6 goto free_and_return; - 801c2b0: bf00 nop - 801c2b2: e000 b.n 801c2b6 + 801c2c0: bf00 nop + 801c2c2: e000 b.n 801c2c6 goto free_and_return; - 801c2b4: bf00 nop + 801c2c4: bf00 nop free_and_return: pbuf_free(p); - 801c2b6: 6878 ldr r0, [r7, #4] - 801c2b8: f7f5 fc96 bl 8011be8 + 801c2c6: 6878 ldr r0, [r7, #4] + 801c2c8: f7f5 fc96 bl 8011bf8 return ERR_OK; - 801c2bc: 2300 movs r3, #0 + 801c2cc: 2300 movs r3, #0 } - 801c2be: 4618 mov r0, r3 - 801c2c0: 3718 adds r7, #24 - 801c2c2: 46bd mov sp, r7 - 801c2c4: bd80 pop {r7, pc} - 801c2c6: bf00 nop - 801c2c8: 08022800 .word 0x08022800 + 801c2ce: 4618 mov r0, r3 + 801c2d0: 3718 adds r7, #24 + 801c2d2: 46bd mov sp, r7 + 801c2d4: bd80 pop {r7, pc} + 801c2d6: bf00 nop + 801c2d8: 08022810 .word 0x08022810 -0801c2cc : +0801c2dc : * @return ERR_OK if the packet was sent, any other err_t on failure */ err_t ethernet_output(struct netif * netif, struct pbuf * p, const struct eth_addr * src, const struct eth_addr * dst, u16_t eth_type) { - 801c2cc: b580 push {r7, lr} - 801c2ce: b086 sub sp, #24 - 801c2d0: af00 add r7, sp, #0 - 801c2d2: 60f8 str r0, [r7, #12] - 801c2d4: 60b9 str r1, [r7, #8] - 801c2d6: 607a str r2, [r7, #4] - 801c2d8: 603b str r3, [r7, #0] + 801c2dc: b580 push {r7, lr} + 801c2de: b086 sub sp, #24 + 801c2e0: af00 add r7, sp, #0 + 801c2e2: 60f8 str r0, [r7, #12] + 801c2e4: 60b9 str r1, [r7, #8] + 801c2e6: 607a str r2, [r7, #4] + 801c2e8: 603b str r3, [r7, #0] struct eth_hdr *ethhdr; u16_t eth_type_be = lwip_htons(eth_type); - 801c2da: 8c3b ldrh r3, [r7, #32] - 801c2dc: 4618 mov r0, r3 - 801c2de: f7f4 f8cf bl 8010480 - 801c2e2: 4603 mov r3, r0 - 801c2e4: 82fb strh r3, [r7, #22] + 801c2ea: 8c3b ldrh r3, [r7, #32] + 801c2ec: 4618 mov r0, r3 + 801c2ee: f7f4 f8cf bl 8010490 + 801c2f2: 4603 mov r3, r0 + 801c2f4: 82fb strh r3, [r7, #22] eth_type_be = PP_HTONS(ETHTYPE_VLAN); } else #endif /* ETHARP_SUPPORT_VLAN && defined(LWIP_HOOK_VLAN_SET) */ { if (pbuf_add_header(p, SIZEOF_ETH_HDR) != 0) { - 801c2e6: 210e movs r1, #14 - 801c2e8: 68b8 ldr r0, [r7, #8] - 801c2ea: f7f5 fbe7 bl 8011abc - 801c2ee: 4603 mov r3, r0 - 801c2f0: 2b00 cmp r3, #0 - 801c2f2: d125 bne.n 801c340 + 801c2f6: 210e movs r1, #14 + 801c2f8: 68b8 ldr r0, [r7, #8] + 801c2fa: f7f5 fbe7 bl 8011acc + 801c2fe: 4603 mov r3, r0 + 801c300: 2b00 cmp r3, #0 + 801c302: d125 bne.n 801c350 } } LWIP_ASSERT_CORE_LOCKED(); ethhdr = (struct eth_hdr *)p->payload; - 801c2f4: 68bb ldr r3, [r7, #8] - 801c2f6: 685b ldr r3, [r3, #4] - 801c2f8: 613b str r3, [r7, #16] + 801c304: 68bb ldr r3, [r7, #8] + 801c306: 685b ldr r3, [r3, #4] + 801c308: 613b str r3, [r7, #16] ethhdr->type = eth_type_be; - 801c2fa: 693b ldr r3, [r7, #16] - 801c2fc: 8afa ldrh r2, [r7, #22] - 801c2fe: 819a strh r2, [r3, #12] + 801c30a: 693b ldr r3, [r7, #16] + 801c30c: 8afa ldrh r2, [r7, #22] + 801c30e: 819a strh r2, [r3, #12] SMEMCPY(ðhdr->dest, dst, ETH_HWADDR_LEN); - 801c300: 693b ldr r3, [r7, #16] - 801c302: 2206 movs r2, #6 - 801c304: 6839 ldr r1, [r7, #0] - 801c306: 4618 mov r0, r3 - 801c308: f000 f971 bl 801c5ee + 801c310: 693b ldr r3, [r7, #16] + 801c312: 2206 movs r2, #6 + 801c314: 6839 ldr r1, [r7, #0] + 801c316: 4618 mov r0, r3 + 801c318: f000 f971 bl 801c5fe SMEMCPY(ðhdr->src, src, ETH_HWADDR_LEN); - 801c30c: 693b ldr r3, [r7, #16] - 801c30e: 3306 adds r3, #6 - 801c310: 2206 movs r2, #6 - 801c312: 6879 ldr r1, [r7, #4] - 801c314: 4618 mov r0, r3 - 801c316: f000 f96a bl 801c5ee + 801c31c: 693b ldr r3, [r7, #16] + 801c31e: 3306 adds r3, #6 + 801c320: 2206 movs r2, #6 + 801c322: 6879 ldr r1, [r7, #4] + 801c324: 4618 mov r0, r3 + 801c326: f000 f96a bl 801c5fe LWIP_ASSERT("netif->hwaddr_len must be 6 for ethernet_output!", - 801c31a: 68fb ldr r3, [r7, #12] - 801c31c: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 - 801c320: 2b06 cmp r3, #6 - 801c322: d006 beq.n 801c332 - 801c324: 4b0a ldr r3, [pc, #40] ; (801c350 ) - 801c326: f240 1233 movw r2, #307 ; 0x133 - 801c32a: 490a ldr r1, [pc, #40] ; (801c354 ) - 801c32c: 480a ldr r0, [pc, #40] ; (801c358 ) - 801c32e: f000 f98b bl 801c648 + 801c32a: 68fb ldr r3, [r7, #12] + 801c32c: f893 3030 ldrb.w r3, [r3, #48] ; 0x30 + 801c330: 2b06 cmp r3, #6 + 801c332: d006 beq.n 801c342 + 801c334: 4b0a ldr r3, [pc, #40] ; (801c360 ) + 801c336: f240 1233 movw r2, #307 ; 0x133 + 801c33a: 490a ldr r1, [pc, #40] ; (801c364 ) + 801c33c: 480a ldr r0, [pc, #40] ; (801c368 ) + 801c33e: f000 f98b bl 801c658 (netif->hwaddr_len == ETH_HWADDR_LEN)); LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE, ("ethernet_output: sending packet %p\n", (void *)p)); /* send the packet */ return netif->linkoutput(netif, p); - 801c332: 68fb ldr r3, [r7, #12] - 801c334: 699b ldr r3, [r3, #24] - 801c336: 68b9 ldr r1, [r7, #8] - 801c338: 68f8 ldr r0, [r7, #12] - 801c33a: 4798 blx r3 - 801c33c: 4603 mov r3, r0 - 801c33e: e002 b.n 801c346 + 801c342: 68fb ldr r3, [r7, #12] + 801c344: 699b ldr r3, [r3, #24] + 801c346: 68b9 ldr r1, [r7, #8] + 801c348: 68f8 ldr r0, [r7, #12] + 801c34a: 4798 blx r3 + 801c34c: 4603 mov r3, r0 + 801c34e: e002 b.n 801c356 goto pbuf_header_failed; - 801c340: bf00 nop + 801c350: bf00 nop pbuf_header_failed: LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_LEVEL_SERIOUS, ("ethernet_output: could not allocate room for header.\n")); LINK_STATS_INC(link.lenerr); return ERR_BUF; - 801c342: f06f 0301 mvn.w r3, #1 -} - 801c346: 4618 mov r0, r3 - 801c348: 3718 adds r7, #24 - 801c34a: 46bd mov sp, r7 - 801c34c: bd80 pop {r7, pc} - 801c34e: bf00 nop - 801c350: 080206f8 .word 0x080206f8 - 801c354: 08020730 .word 0x08020730 - 801c358: 08020764 .word 0x08020764 - -0801c35c : + 801c352: f06f 0301 mvn.w r3, #1 +} + 801c356: 4618 mov r0, r3 + 801c358: 3718 adds r7, #24 + 801c35a: 46bd mov sp, r7 + 801c35c: bd80 pop {r7, pc} + 801c35e: bf00 nop + 801c360: 08020708 .word 0x08020708 + 801c364: 08020740 .word 0x08020740 + 801c368: 08020774 .word 0x08020774 + +0801c36c : #endif /*-----------------------------------------------------------------------------------*/ // Creates an empty mailbox. err_t sys_mbox_new(sys_mbox_t *mbox, int size) { - 801c35c: b580 push {r7, lr} - 801c35e: b086 sub sp, #24 - 801c360: af00 add r7, sp, #0 - 801c362: 6078 str r0, [r7, #4] - 801c364: 6039 str r1, [r7, #0] + 801c36c: b580 push {r7, lr} + 801c36e: b086 sub sp, #24 + 801c370: af00 add r7, sp, #0 + 801c372: 6078 str r0, [r7, #4] + 801c374: 6039 str r1, [r7, #0] #if (osCMSIS < 0x20000U) osMessageQDef(QUEUE, size, void *); - 801c366: 683b ldr r3, [r7, #0] - 801c368: 60bb str r3, [r7, #8] - 801c36a: 2304 movs r3, #4 - 801c36c: 60fb str r3, [r7, #12] - 801c36e: 2300 movs r3, #0 - 801c370: 613b str r3, [r7, #16] - 801c372: 2300 movs r3, #0 - 801c374: 617b str r3, [r7, #20] + 801c376: 683b ldr r3, [r7, #0] + 801c378: 60bb str r3, [r7, #8] + 801c37a: 2304 movs r3, #4 + 801c37c: 60fb str r3, [r7, #12] + 801c37e: 2300 movs r3, #0 + 801c380: 613b str r3, [r7, #16] + 801c382: 2300 movs r3, #0 + 801c384: 617b str r3, [r7, #20] *mbox = osMessageCreate(osMessageQ(QUEUE), NULL); - 801c376: f107 0308 add.w r3, r7, #8 - 801c37a: 2100 movs r1, #0 - 801c37c: 4618 mov r0, r3 - 801c37e: f7f1 f88d bl 800d49c - 801c382: 4602 mov r2, r0 - 801c384: 687b ldr r3, [r7, #4] - 801c386: 601a str r2, [r3, #0] + 801c386: f107 0308 add.w r3, r7, #8 + 801c38a: 2100 movs r1, #0 + 801c38c: 4618 mov r0, r3 + 801c38e: f7f1 f887 bl 800d4a0 + 801c392: 4602 mov r2, r0 + 801c394: 687b ldr r3, [r7, #4] + 801c396: 601a str r2, [r3, #0] if(lwip_stats.sys.mbox.max < lwip_stats.sys.mbox.used) { lwip_stats.sys.mbox.max = lwip_stats.sys.mbox.used; } #endif /* SYS_STATS */ if(*mbox == NULL) - 801c388: 687b ldr r3, [r7, #4] - 801c38a: 681b ldr r3, [r3, #0] - 801c38c: 2b00 cmp r3, #0 - 801c38e: d102 bne.n 801c396 + 801c398: 687b ldr r3, [r7, #4] + 801c39a: 681b ldr r3, [r3, #0] + 801c39c: 2b00 cmp r3, #0 + 801c39e: d102 bne.n 801c3a6 return ERR_MEM; - 801c390: f04f 33ff mov.w r3, #4294967295 - 801c394: e000 b.n 801c398 + 801c3a0: f04f 33ff mov.w r3, #4294967295 + 801c3a4: e000 b.n 801c3a8 return ERR_OK; - 801c396: 2300 movs r3, #0 + 801c3a6: 2300 movs r3, #0 } - 801c398: 4618 mov r0, r3 - 801c39a: 3718 adds r7, #24 - 801c39c: 46bd mov sp, r7 - 801c39e: bd80 pop {r7, pc} + 801c3a8: 4618 mov r0, r3 + 801c3aa: 3718 adds r7, #24 + 801c3ac: 46bd mov sp, r7 + 801c3ae: bd80 pop {r7, pc} -0801c3a0 : +0801c3b0 : /*-----------------------------------------------------------------------------------*/ // Try to post the "msg" to the mailbox. err_t sys_mbox_trypost(sys_mbox_t *mbox, void *msg) { - 801c3a0: b580 push {r7, lr} - 801c3a2: b084 sub sp, #16 - 801c3a4: af00 add r7, sp, #0 - 801c3a6: 6078 str r0, [r7, #4] - 801c3a8: 6039 str r1, [r7, #0] + 801c3b0: b580 push {r7, lr} + 801c3b2: b084 sub sp, #16 + 801c3b4: af00 add r7, sp, #0 + 801c3b6: 6078 str r0, [r7, #4] + 801c3b8: 6039 str r1, [r7, #0] err_t result; #if (osCMSIS < 0x20000U) if(osMessagePut(*mbox, (uint32_t)msg, 0) == osOK) - 801c3aa: 687b ldr r3, [r7, #4] - 801c3ac: 681b ldr r3, [r3, #0] - 801c3ae: 6839 ldr r1, [r7, #0] - 801c3b0: 2200 movs r2, #0 - 801c3b2: 4618 mov r0, r3 - 801c3b4: f7f1 f89c bl 800d4f0 - 801c3b8: 4603 mov r3, r0 - 801c3ba: 2b00 cmp r3, #0 - 801c3bc: d102 bne.n 801c3c4 + 801c3ba: 687b ldr r3, [r7, #4] + 801c3bc: 681b ldr r3, [r3, #0] + 801c3be: 6839 ldr r1, [r7, #0] + 801c3c0: 2200 movs r2, #0 + 801c3c2: 4618 mov r0, r3 + 801c3c4: f7f1 f896 bl 800d4f4 + 801c3c8: 4603 mov r3, r0 + 801c3ca: 2b00 cmp r3, #0 + 801c3cc: d102 bne.n 801c3d4 #else if(osMessageQueuePut(*mbox, &msg, 0, 0) == osOK) #endif { result = ERR_OK; - 801c3be: 2300 movs r3, #0 - 801c3c0: 73fb strb r3, [r7, #15] - 801c3c2: e001 b.n 801c3c8 + 801c3ce: 2300 movs r3, #0 + 801c3d0: 73fb strb r3, [r7, #15] + 801c3d2: e001 b.n 801c3d8 } else { // could not post, queue must be full result = ERR_MEM; - 801c3c4: 23ff movs r3, #255 ; 0xff - 801c3c6: 73fb strb r3, [r7, #15] + 801c3d4: 23ff movs r3, #255 ; 0xff + 801c3d6: 73fb strb r3, [r7, #15] #if SYS_STATS lwip_stats.sys.mbox.err++; #endif /* SYS_STATS */ } return result; - 801c3c8: f997 300f ldrsb.w r3, [r7, #15] + 801c3d8: f997 300f ldrsb.w r3, [r7, #15] } - 801c3cc: 4618 mov r0, r3 - 801c3ce: 3710 adds r7, #16 - 801c3d0: 46bd mov sp, r7 - 801c3d2: bd80 pop {r7, pc} + 801c3dc: 4618 mov r0, r3 + 801c3de: 3710 adds r7, #16 + 801c3e0: 46bd mov sp, r7 + 801c3e2: bd80 pop {r7, pc} -0801c3d4 : +0801c3e4 : Note that a function with a similar name, sys_mbox_fetch(), is implemented by lwIP. */ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout) { - 801c3d4: b580 push {r7, lr} - 801c3d6: b08c sub sp, #48 ; 0x30 - 801c3d8: af00 add r7, sp, #0 - 801c3da: 61f8 str r0, [r7, #28] - 801c3dc: 61b9 str r1, [r7, #24] - 801c3de: 617a str r2, [r7, #20] + 801c3e4: b580 push {r7, lr} + 801c3e6: b08c sub sp, #48 ; 0x30 + 801c3e8: af00 add r7, sp, #0 + 801c3ea: 61f8 str r0, [r7, #28] + 801c3ec: 61b9 str r1, [r7, #24] + 801c3ee: 617a str r2, [r7, #20] #if (osCMSIS < 0x20000U) osEvent event; uint32_t starttime = osKernelSysTick(); - 801c3e0: f7f0 fe8b bl 800d0fa - 801c3e4: 62f8 str r0, [r7, #44] ; 0x2c + 801c3f0: f7f0 fe85 bl 800d0fe + 801c3f4: 62f8 str r0, [r7, #44] ; 0x2c #else osStatus_t status; uint32_t starttime = osKernelGetTickCount(); #endif if(timeout != 0) - 801c3e6: 697b ldr r3, [r7, #20] - 801c3e8: 2b00 cmp r3, #0 - 801c3ea: d017 beq.n 801c41c + 801c3f6: 697b ldr r3, [r7, #20] + 801c3f8: 2b00 cmp r3, #0 + 801c3fa: d017 beq.n 801c42c { #if (osCMSIS < 0x20000U) event = osMessageGet (*mbox, timeout); - 801c3ec: 69fb ldr r3, [r7, #28] - 801c3ee: 6819 ldr r1, [r3, #0] - 801c3f0: f107 0320 add.w r3, r7, #32 - 801c3f4: 697a ldr r2, [r7, #20] - 801c3f6: 4618 mov r0, r3 - 801c3f8: f7f1 f8ba bl 800d570 + 801c3fc: 69fb ldr r3, [r7, #28] + 801c3fe: 6819 ldr r1, [r3, #0] + 801c400: f107 0320 add.w r3, r7, #32 + 801c404: 697a ldr r2, [r7, #20] + 801c406: 4618 mov r0, r3 + 801c408: f7f1 f8b4 bl 800d574 if(event.status == osEventMessage) - 801c3fc: 6a3b ldr r3, [r7, #32] - 801c3fe: 2b10 cmp r3, #16 - 801c400: d109 bne.n 801c416 + 801c40c: 6a3b ldr r3, [r7, #32] + 801c40e: 2b10 cmp r3, #16 + 801c410: d109 bne.n 801c426 { *msg = (void *)event.value.v; - 801c402: 6a7b ldr r3, [r7, #36] ; 0x24 - 801c404: 461a mov r2, r3 - 801c406: 69bb ldr r3, [r7, #24] - 801c408: 601a str r2, [r3, #0] + 801c412: 6a7b ldr r3, [r7, #36] ; 0x24 + 801c414: 461a mov r2, r3 + 801c416: 69bb ldr r3, [r7, #24] + 801c418: 601a str r2, [r3, #0] return (osKernelSysTick() - starttime); - 801c40a: f7f0 fe76 bl 800d0fa - 801c40e: 4602 mov r2, r0 - 801c410: 6afb ldr r3, [r7, #44] ; 0x2c - 801c412: 1ad3 subs r3, r2, r3 - 801c414: e019 b.n 801c44a + 801c41a: f7f0 fe70 bl 800d0fe + 801c41e: 4602 mov r2, r0 + 801c420: 6afb ldr r3, [r7, #44] ; 0x2c + 801c422: 1ad3 subs r3, r2, r3 + 801c424: e019 b.n 801c45a return (osKernelGetTickCount() - starttime); } #endif else { return SYS_ARCH_TIMEOUT; - 801c416: f04f 33ff mov.w r3, #4294967295 - 801c41a: e016 b.n 801c44a + 801c426: f04f 33ff mov.w r3, #4294967295 + 801c42a: e016 b.n 801c45a } } else { #if (osCMSIS < 0x20000U) event = osMessageGet (*mbox, osWaitForever); - 801c41c: 69fb ldr r3, [r7, #28] - 801c41e: 6819 ldr r1, [r3, #0] - 801c420: 463b mov r3, r7 - 801c422: f04f 32ff mov.w r2, #4294967295 - 801c426: 4618 mov r0, r3 - 801c428: f7f1 f8a2 bl 800d570 - 801c42c: f107 0320 add.w r3, r7, #32 - 801c430: 463a mov r2, r7 - 801c432: ca07 ldmia r2, {r0, r1, r2} - 801c434: e883 0007 stmia.w r3, {r0, r1, r2} + 801c42c: 69fb ldr r3, [r7, #28] + 801c42e: 6819 ldr r1, [r3, #0] + 801c430: 463b mov r3, r7 + 801c432: f04f 32ff mov.w r2, #4294967295 + 801c436: 4618 mov r0, r3 + 801c438: f7f1 f89c bl 800d574 + 801c43c: f107 0320 add.w r3, r7, #32 + 801c440: 463a mov r2, r7 + 801c442: ca07 ldmia r2, {r0, r1, r2} + 801c444: e883 0007 stmia.w r3, {r0, r1, r2} *msg = (void *)event.value.v; - 801c438: 6a7b ldr r3, [r7, #36] ; 0x24 - 801c43a: 461a mov r2, r3 - 801c43c: 69bb ldr r3, [r7, #24] - 801c43e: 601a str r2, [r3, #0] + 801c448: 6a7b ldr r3, [r7, #36] ; 0x24 + 801c44a: 461a mov r2, r3 + 801c44c: 69bb ldr r3, [r7, #24] + 801c44e: 601a str r2, [r3, #0] return (osKernelSysTick() - starttime); - 801c440: f7f0 fe5b bl 800d0fa - 801c444: 4602 mov r2, r0 - 801c446: 6afb ldr r3, [r7, #44] ; 0x2c - 801c448: 1ad3 subs r3, r2, r3 + 801c450: f7f0 fe55 bl 800d0fe + 801c454: 4602 mov r2, r0 + 801c456: 6afb ldr r3, [r7, #44] ; 0x2c + 801c458: 1ad3 subs r3, r2, r3 #else osMessageQueueGet(*mbox, msg, 0, osWaitForever ); return (osKernelGetTickCount() - starttime); #endif } } - 801c44a: 4618 mov r0, r3 - 801c44c: 3730 adds r7, #48 ; 0x30 - 801c44e: 46bd mov sp, r7 - 801c450: bd80 pop {r7, pc} + 801c45a: 4618 mov r0, r3 + 801c45c: 3730 adds r7, #48 ; 0x30 + 801c45e: 46bd mov sp, r7 + 801c460: bd80 pop {r7, pc} -0801c452 : +0801c462 : return SYS_MBOX_EMPTY; } } /*----------------------------------------------------------------------------------*/ int sys_mbox_valid(sys_mbox_t *mbox) { - 801c452: b480 push {r7} - 801c454: b083 sub sp, #12 - 801c456: af00 add r7, sp, #0 - 801c458: 6078 str r0, [r7, #4] + 801c462: b480 push {r7} + 801c464: b083 sub sp, #12 + 801c466: af00 add r7, sp, #0 + 801c468: 6078 str r0, [r7, #4] if (*mbox == SYS_MBOX_NULL) - 801c45a: 687b ldr r3, [r7, #4] - 801c45c: 681b ldr r3, [r3, #0] - 801c45e: 2b00 cmp r3, #0 - 801c460: d101 bne.n 801c466 + 801c46a: 687b ldr r3, [r7, #4] + 801c46c: 681b ldr r3, [r3, #0] + 801c46e: 2b00 cmp r3, #0 + 801c470: d101 bne.n 801c476 return 0; - 801c462: 2300 movs r3, #0 - 801c464: e000 b.n 801c468 + 801c472: 2300 movs r3, #0 + 801c474: e000 b.n 801c478 else return 1; - 801c466: 2301 movs r3, #1 + 801c476: 2301 movs r3, #1 } - 801c468: 4618 mov r0, r3 - 801c46a: 370c adds r7, #12 - 801c46c: 46bd mov sp, r7 - 801c46e: f85d 7b04 ldr.w r7, [sp], #4 - 801c472: 4770 bx lr + 801c478: 4618 mov r0, r3 + 801c47a: 370c adds r7, #12 + 801c47c: 46bd mov sp, r7 + 801c47e: f85d 7b04 ldr.w r7, [sp], #4 + 801c482: 4770 bx lr -0801c474 : +0801c484 : #else osMutexId_t lwip_sys_mutex; #endif // Initialize sys arch void sys_init(void) { - 801c474: b580 push {r7, lr} - 801c476: af00 add r7, sp, #0 + 801c484: b580 push {r7, lr} + 801c486: af00 add r7, sp, #0 #if (osCMSIS < 0x20000U) lwip_sys_mutex = osMutexCreate(osMutex(lwip_sys_mutex)); - 801c478: 4803 ldr r0, [pc, #12] ; (801c488 ) - 801c47a: f7f0 feae bl 800d1da - 801c47e: 4602 mov r2, r0 - 801c480: 4b02 ldr r3, [pc, #8] ; (801c48c ) - 801c482: 601a str r2, [r3, #0] + 801c488: 4803 ldr r0, [pc, #12] ; (801c498 ) + 801c48a: f7f0 fea8 bl 800d1de + 801c48e: 4602 mov r2, r0 + 801c490: 4b02 ldr r3, [pc, #8] ; (801c49c ) + 801c492: 601a str r2, [r3, #0] #else lwip_sys_mutex = osMutexNew(NULL); #endif } - 801c484: bf00 nop - 801c486: bd80 pop {r7, pc} - 801c488: 08022810 .word 0x08022810 - 801c48c: 2000f838 .word 0x2000f838 + 801c494: bf00 nop + 801c496: bd80 pop {r7, pc} + 801c498: 08022820 .word 0x08022820 + 801c49c: 2000f838 .word 0x2000f838 -0801c490 : +0801c4a0 : /* Mutexes*/ /*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/ #if LWIP_COMPAT_MUTEX == 0 /* Create a new mutex*/ err_t sys_mutex_new(sys_mutex_t *mutex) { - 801c490: b580 push {r7, lr} - 801c492: b084 sub sp, #16 - 801c494: af00 add r7, sp, #0 - 801c496: 6078 str r0, [r7, #4] + 801c4a0: b580 push {r7, lr} + 801c4a2: b084 sub sp, #16 + 801c4a4: af00 add r7, sp, #0 + 801c4a6: 6078 str r0, [r7, #4] #if (osCMSIS < 0x20000U) osMutexDef(MUTEX); - 801c498: 2300 movs r3, #0 - 801c49a: 60bb str r3, [r7, #8] - 801c49c: 2300 movs r3, #0 - 801c49e: 60fb str r3, [r7, #12] + 801c4a8: 2300 movs r3, #0 + 801c4aa: 60bb str r3, [r7, #8] + 801c4ac: 2300 movs r3, #0 + 801c4ae: 60fb str r3, [r7, #12] *mutex = osMutexCreate(osMutex(MUTEX)); - 801c4a0: f107 0308 add.w r3, r7, #8 - 801c4a4: 4618 mov r0, r3 - 801c4a6: f7f0 fe98 bl 800d1da - 801c4aa: 4602 mov r2, r0 - 801c4ac: 687b ldr r3, [r7, #4] - 801c4ae: 601a str r2, [r3, #0] + 801c4b0: f107 0308 add.w r3, r7, #8 + 801c4b4: 4618 mov r0, r3 + 801c4b6: f7f0 fe92 bl 800d1de + 801c4ba: 4602 mov r2, r0 + 801c4bc: 687b ldr r3, [r7, #4] + 801c4be: 601a str r2, [r3, #0] #else *mutex = osMutexNew(NULL); #endif if(*mutex == NULL) - 801c4b0: 687b ldr r3, [r7, #4] - 801c4b2: 681b ldr r3, [r3, #0] - 801c4b4: 2b00 cmp r3, #0 - 801c4b6: d102 bne.n 801c4be + 801c4c0: 687b ldr r3, [r7, #4] + 801c4c2: 681b ldr r3, [r3, #0] + 801c4c4: 2b00 cmp r3, #0 + 801c4c6: d102 bne.n 801c4ce { #if SYS_STATS ++lwip_stats.sys.mutex.err; #endif /* SYS_STATS */ return ERR_MEM; - 801c4b8: f04f 33ff mov.w r3, #4294967295 - 801c4bc: e000 b.n 801c4c0 + 801c4c8: f04f 33ff mov.w r3, #4294967295 + 801c4cc: e000 b.n 801c4d0 ++lwip_stats.sys.mutex.used; if (lwip_stats.sys.mutex.max < lwip_stats.sys.mutex.used) { lwip_stats.sys.mutex.max = lwip_stats.sys.mutex.used; } #endif /* SYS_STATS */ return ERR_OK; - 801c4be: 2300 movs r3, #0 + 801c4ce: 2300 movs r3, #0 } - 801c4c0: 4618 mov r0, r3 - 801c4c2: 3710 adds r7, #16 - 801c4c4: 46bd mov sp, r7 - 801c4c6: bd80 pop {r7, pc} + 801c4d0: 4618 mov r0, r3 + 801c4d2: 3710 adds r7, #16 + 801c4d4: 46bd mov sp, r7 + 801c4d6: bd80 pop {r7, pc} -0801c4c8 : +0801c4d8 : osMutexDelete(*mutex); } /*-----------------------------------------------------------------------------------*/ /* Lock a mutex*/ void sys_mutex_lock(sys_mutex_t *mutex) { - 801c4c8: b580 push {r7, lr} - 801c4ca: b082 sub sp, #8 - 801c4cc: af00 add r7, sp, #0 - 801c4ce: 6078 str r0, [r7, #4] + 801c4d8: b580 push {r7, lr} + 801c4da: b082 sub sp, #8 + 801c4dc: af00 add r7, sp, #0 + 801c4de: 6078 str r0, [r7, #4] #if (osCMSIS < 0x20000U) osMutexWait(*mutex, osWaitForever); - 801c4d0: 687b ldr r3, [r7, #4] - 801c4d2: 681b ldr r3, [r3, #0] - 801c4d4: f04f 31ff mov.w r1, #4294967295 - 801c4d8: 4618 mov r0, r3 - 801c4da: f7f0 fe97 bl 800d20c + 801c4e0: 687b ldr r3, [r7, #4] + 801c4e2: 681b ldr r3, [r3, #0] + 801c4e4: f04f 31ff mov.w r1, #4294967295 + 801c4e8: 4618 mov r0, r3 + 801c4ea: f7f0 fe91 bl 800d210 #else osMutexAcquire(*mutex, osWaitForever); #endif } - 801c4de: bf00 nop - 801c4e0: 3708 adds r7, #8 - 801c4e2: 46bd mov sp, r7 - 801c4e4: bd80 pop {r7, pc} + 801c4ee: bf00 nop + 801c4f0: 3708 adds r7, #8 + 801c4f2: 46bd mov sp, r7 + 801c4f4: bd80 pop {r7, pc} -0801c4e6 : +0801c4f6 : /*-----------------------------------------------------------------------------------*/ /* Unlock a mutex*/ void sys_mutex_unlock(sys_mutex_t *mutex) { - 801c4e6: b580 push {r7, lr} - 801c4e8: b082 sub sp, #8 - 801c4ea: af00 add r7, sp, #0 - 801c4ec: 6078 str r0, [r7, #4] + 801c4f6: b580 push {r7, lr} + 801c4f8: b082 sub sp, #8 + 801c4fa: af00 add r7, sp, #0 + 801c4fc: 6078 str r0, [r7, #4] osMutexRelease(*mutex); - 801c4ee: 687b ldr r3, [r7, #4] - 801c4f0: 681b ldr r3, [r3, #0] - 801c4f2: 4618 mov r0, r3 - 801c4f4: f7f0 fed8 bl 800d2a8 + 801c4fe: 687b ldr r3, [r7, #4] + 801c500: 681b ldr r3, [r3, #0] + 801c502: 4618 mov r0, r3 + 801c504: f7f0 fed2 bl 800d2ac } - 801c4f8: bf00 nop - 801c4fa: 3708 adds r7, #8 - 801c4fc: 46bd mov sp, r7 - 801c4fe: bd80 pop {r7, pc} + 801c508: bf00 nop + 801c50a: 3708 adds r7, #8 + 801c50c: 46bd mov sp, r7 + 801c50e: bd80 pop {r7, pc} -0801c500 : +0801c510 : function "thread()". The "arg" argument will be passed as an argument to the thread() function. The id of the new thread is returned. Both the id and the priority are system dependent. */ sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread , void *arg, int stacksize, int prio) { - 801c500: b580 push {r7, lr} - 801c502: b08c sub sp, #48 ; 0x30 - 801c504: af00 add r7, sp, #0 - 801c506: 60f8 str r0, [r7, #12] - 801c508: 60b9 str r1, [r7, #8] - 801c50a: 607a str r2, [r7, #4] - 801c50c: 603b str r3, [r7, #0] + 801c510: b580 push {r7, lr} + 801c512: b08c sub sp, #48 ; 0x30 + 801c514: af00 add r7, sp, #0 + 801c516: 60f8 str r0, [r7, #12] + 801c518: 60b9 str r1, [r7, #8] + 801c51a: 607a str r2, [r7, #4] + 801c51c: 603b str r3, [r7, #0] #if (osCMSIS < 0x20000U) const osThreadDef_t os_thread_def = { (char *)name, (os_pthread)thread, (osPriority)prio, 0, stacksize}; - 801c50e: f107 0314 add.w r3, r7, #20 - 801c512: 2200 movs r2, #0 - 801c514: 601a str r2, [r3, #0] - 801c516: 605a str r2, [r3, #4] - 801c518: 609a str r2, [r3, #8] - 801c51a: 60da str r2, [r3, #12] - 801c51c: 611a str r2, [r3, #16] - 801c51e: 615a str r2, [r3, #20] - 801c520: 619a str r2, [r3, #24] - 801c522: 68fb ldr r3, [r7, #12] - 801c524: 617b str r3, [r7, #20] - 801c526: 68bb ldr r3, [r7, #8] - 801c528: 61bb str r3, [r7, #24] - 801c52a: 6bbb ldr r3, [r7, #56] ; 0x38 - 801c52c: b21b sxth r3, r3 - 801c52e: 83bb strh r3, [r7, #28] - 801c530: 683b ldr r3, [r7, #0] - 801c532: 627b str r3, [r7, #36] ; 0x24 + 801c51e: f107 0314 add.w r3, r7, #20 + 801c522: 2200 movs r2, #0 + 801c524: 601a str r2, [r3, #0] + 801c526: 605a str r2, [r3, #4] + 801c528: 609a str r2, [r3, #8] + 801c52a: 60da str r2, [r3, #12] + 801c52c: 611a str r2, [r3, #16] + 801c52e: 615a str r2, [r3, #20] + 801c530: 619a str r2, [r3, #24] + 801c532: 68fb ldr r3, [r7, #12] + 801c534: 617b str r3, [r7, #20] + 801c536: 68bb ldr r3, [r7, #8] + 801c538: 61bb str r3, [r7, #24] + 801c53a: 6bbb ldr r3, [r7, #56] ; 0x38 + 801c53c: b21b sxth r3, r3 + 801c53e: 83bb strh r3, [r7, #28] + 801c540: 683b ldr r3, [r7, #0] + 801c542: 627b str r3, [r7, #36] ; 0x24 return osThreadCreate(&os_thread_def, arg); - 801c534: f107 0314 add.w r3, r7, #20 - 801c538: 6879 ldr r1, [r7, #4] - 801c53a: 4618 mov r0, r3 - 801c53c: f7f0 fded bl 800d11a - 801c540: 4603 mov r3, r0 + 801c544: f107 0314 add.w r3, r7, #20 + 801c548: 6879 ldr r1, [r7, #4] + 801c54a: 4618 mov r0, r3 + 801c54c: f7f0 fde7 bl 800d11e + 801c550: 4603 mov r3, r0 .stack_size = stacksize, .priority = (osPriority_t)prio, }; return osThreadNew(thread, arg, &attributes); #endif } - 801c542: 4618 mov r0, r3 - 801c544: 3730 adds r7, #48 ; 0x30 - 801c546: 46bd mov sp, r7 - 801c548: bd80 pop {r7, pc} + 801c552: 4618 mov r0, r3 + 801c554: 3730 adds r7, #48 ; 0x30 + 801c556: 46bd mov sp, r7 + 801c558: bd80 pop {r7, pc} ... -0801c54c : +0801c55c : Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS API is available */ sys_prot_t sys_arch_protect(void) { - 801c54c: b580 push {r7, lr} - 801c54e: af00 add r7, sp, #0 + 801c55c: b580 push {r7, lr} + 801c55e: af00 add r7, sp, #0 #if (osCMSIS < 0x20000U) osMutexWait(lwip_sys_mutex, osWaitForever); - 801c550: 4b04 ldr r3, [pc, #16] ; (801c564 ) - 801c552: 681b ldr r3, [r3, #0] - 801c554: f04f 31ff mov.w r1, #4294967295 - 801c558: 4618 mov r0, r3 - 801c55a: f7f0 fe57 bl 800d20c + 801c560: 4b04 ldr r3, [pc, #16] ; (801c574 ) + 801c562: 681b ldr r3, [r3, #0] + 801c564: f04f 31ff mov.w r1, #4294967295 + 801c568: 4618 mov r0, r3 + 801c56a: f7f0 fe51 bl 800d210 #else osMutexAcquire(lwip_sys_mutex, osWaitForever); #endif return (sys_prot_t)1; - 801c55e: 2301 movs r3, #1 + 801c56e: 2301 movs r3, #1 } - 801c560: 4618 mov r0, r3 - 801c562: bd80 pop {r7, pc} - 801c564: 2000f838 .word 0x2000f838 + 801c570: 4618 mov r0, r3 + 801c572: bd80 pop {r7, pc} + 801c574: 2000f838 .word 0x2000f838 -0801c568 : +0801c578 : Note: This function is based on FreeRTOS API, because no equivalent CMSIS-RTOS API is available */ void sys_arch_unprotect(sys_prot_t pval) { - 801c568: b580 push {r7, lr} - 801c56a: b082 sub sp, #8 - 801c56c: af00 add r7, sp, #0 - 801c56e: 6078 str r0, [r7, #4] + 801c578: b580 push {r7, lr} + 801c57a: b082 sub sp, #8 + 801c57c: af00 add r7, sp, #0 + 801c57e: 6078 str r0, [r7, #4] ( void ) pval; osMutexRelease(lwip_sys_mutex); - 801c570: 4b04 ldr r3, [pc, #16] ; (801c584 ) - 801c572: 681b ldr r3, [r3, #0] - 801c574: 4618 mov r0, r3 - 801c576: f7f0 fe97 bl 800d2a8 -} - 801c57a: bf00 nop - 801c57c: 3708 adds r7, #8 - 801c57e: 46bd mov sp, r7 - 801c580: bd80 pop {r7, pc} - 801c582: bf00 nop - 801c584: 2000f838 .word 0x2000f838 - -0801c588 <__libc_init_array>: - 801c588: b570 push {r4, r5, r6, lr} - 801c58a: 4e0d ldr r6, [pc, #52] ; (801c5c0 <__libc_init_array+0x38>) - 801c58c: 4c0d ldr r4, [pc, #52] ; (801c5c4 <__libc_init_array+0x3c>) - 801c58e: 1ba4 subs r4, r4, r6 - 801c590: 10a4 asrs r4, r4, #2 - 801c592: 2500 movs r5, #0 - 801c594: 42a5 cmp r5, r4 - 801c596: d109 bne.n 801c5ac <__libc_init_array+0x24> - 801c598: 4e0b ldr r6, [pc, #44] ; (801c5c8 <__libc_init_array+0x40>) - 801c59a: 4c0c ldr r4, [pc, #48] ; (801c5cc <__libc_init_array+0x44>) - 801c59c: f001 f914 bl 801d7c8 <_init> - 801c5a0: 1ba4 subs r4, r4, r6 - 801c5a2: 10a4 asrs r4, r4, #2 - 801c5a4: 2500 movs r5, #0 - 801c5a6: 42a5 cmp r5, r4 - 801c5a8: d105 bne.n 801c5b6 <__libc_init_array+0x2e> - 801c5aa: bd70 pop {r4, r5, r6, pc} - 801c5ac: f856 3025 ldr.w r3, [r6, r5, lsl #2] - 801c5b0: 4798 blx r3 - 801c5b2: 3501 adds r5, #1 - 801c5b4: e7ee b.n 801c594 <__libc_init_array+0xc> - 801c5b6: f856 3025 ldr.w r3, [r6, r5, lsl #2] - 801c5ba: 4798 blx r3 - 801c5bc: 3501 adds r5, #1 - 801c5be: e7f2 b.n 801c5a6 <__libc_init_array+0x1e> - 801c5c0: 080228b8 .word 0x080228b8 - 801c5c4: 080228b8 .word 0x080228b8 - 801c5c8: 080228b8 .word 0x080228b8 - 801c5cc: 080228bc .word 0x080228bc - -0801c5d0 : - 801c5d0: b530 push {r4, r5, lr} - 801c5d2: 2400 movs r4, #0 - 801c5d4: 42a2 cmp r2, r4 - 801c5d6: d101 bne.n 801c5dc - 801c5d8: 2000 movs r0, #0 - 801c5da: e007 b.n 801c5ec - 801c5dc: 5d03 ldrb r3, [r0, r4] - 801c5de: 3401 adds r4, #1 - 801c5e0: 190d adds r5, r1, r4 - 801c5e2: f815 5c01 ldrb.w r5, [r5, #-1] - 801c5e6: 42ab cmp r3, r5 - 801c5e8: d0f4 beq.n 801c5d4 - 801c5ea: 1b58 subs r0, r3, r5 - 801c5ec: bd30 pop {r4, r5, pc} - -0801c5ee : - 801c5ee: b510 push {r4, lr} - 801c5f0: 1e43 subs r3, r0, #1 - 801c5f2: 440a add r2, r1 - 801c5f4: 4291 cmp r1, r2 - 801c5f6: d100 bne.n 801c5fa - 801c5f8: bd10 pop {r4, pc} - 801c5fa: f811 4b01 ldrb.w r4, [r1], #1 - 801c5fe: f803 4f01 strb.w r4, [r3, #1]! - 801c602: e7f7 b.n 801c5f4 - -0801c604 : - 801c604: 4288 cmp r0, r1 - 801c606: b510 push {r4, lr} - 801c608: eb01 0302 add.w r3, r1, r2 - 801c60c: d807 bhi.n 801c61e - 801c60e: 1e42 subs r2, r0, #1 - 801c610: 4299 cmp r1, r3 - 801c612: d00a beq.n 801c62a - 801c614: f811 4b01 ldrb.w r4, [r1], #1 - 801c618: f802 4f01 strb.w r4, [r2, #1]! - 801c61c: e7f8 b.n 801c610 - 801c61e: 4283 cmp r3, r0 - 801c620: d9f5 bls.n 801c60e - 801c622: 1881 adds r1, r0, r2 - 801c624: 1ad2 subs r2, r2, r3 - 801c626: 42d3 cmn r3, r2 - 801c628: d100 bne.n 801c62c - 801c62a: bd10 pop {r4, pc} - 801c62c: f813 4d01 ldrb.w r4, [r3, #-1]! - 801c630: f801 4d01 strb.w r4, [r1, #-1]! - 801c634: e7f7 b.n 801c626 - -0801c636 : - 801c636: 4402 add r2, r0 - 801c638: 4603 mov r3, r0 - 801c63a: 4293 cmp r3, r2 - 801c63c: d100 bne.n 801c640 - 801c63e: 4770 bx lr - 801c640: f803 1b01 strb.w r1, [r3], #1 - 801c644: e7f9 b.n 801c63a + 801c580: 4b04 ldr r3, [pc, #16] ; (801c594 ) + 801c582: 681b ldr r3, [r3, #0] + 801c584: 4618 mov r0, r3 + 801c586: f7f0 fe91 bl 800d2ac +} + 801c58a: bf00 nop + 801c58c: 3708 adds r7, #8 + 801c58e: 46bd mov sp, r7 + 801c590: bd80 pop {r7, pc} + 801c592: bf00 nop + 801c594: 2000f838 .word 0x2000f838 + +0801c598 <__libc_init_array>: + 801c598: b570 push {r4, r5, r6, lr} + 801c59a: 4e0d ldr r6, [pc, #52] ; (801c5d0 <__libc_init_array+0x38>) + 801c59c: 4c0d ldr r4, [pc, #52] ; (801c5d4 <__libc_init_array+0x3c>) + 801c59e: 1ba4 subs r4, r4, r6 + 801c5a0: 10a4 asrs r4, r4, #2 + 801c5a2: 2500 movs r5, #0 + 801c5a4: 42a5 cmp r5, r4 + 801c5a6: d109 bne.n 801c5bc <__libc_init_array+0x24> + 801c5a8: 4e0b ldr r6, [pc, #44] ; (801c5d8 <__libc_init_array+0x40>) + 801c5aa: 4c0c ldr r4, [pc, #48] ; (801c5dc <__libc_init_array+0x44>) + 801c5ac: f001 f914 bl 801d7d8 <_init> + 801c5b0: 1ba4 subs r4, r4, r6 + 801c5b2: 10a4 asrs r4, r4, #2 + 801c5b4: 2500 movs r5, #0 + 801c5b6: 42a5 cmp r5, r4 + 801c5b8: d105 bne.n 801c5c6 <__libc_init_array+0x2e> + 801c5ba: bd70 pop {r4, r5, r6, pc} + 801c5bc: f856 3025 ldr.w r3, [r6, r5, lsl #2] + 801c5c0: 4798 blx r3 + 801c5c2: 3501 adds r5, #1 + 801c5c4: e7ee b.n 801c5a4 <__libc_init_array+0xc> + 801c5c6: f856 3025 ldr.w r3, [r6, r5, lsl #2] + 801c5ca: 4798 blx r3 + 801c5cc: 3501 adds r5, #1 + 801c5ce: e7f2 b.n 801c5b6 <__libc_init_array+0x1e> + 801c5d0: 080228c8 .word 0x080228c8 + 801c5d4: 080228c8 .word 0x080228c8 + 801c5d8: 080228c8 .word 0x080228c8 + 801c5dc: 080228cc .word 0x080228cc + +0801c5e0 : + 801c5e0: b530 push {r4, r5, lr} + 801c5e2: 2400 movs r4, #0 + 801c5e4: 42a2 cmp r2, r4 + 801c5e6: d101 bne.n 801c5ec + 801c5e8: 2000 movs r0, #0 + 801c5ea: e007 b.n 801c5fc + 801c5ec: 5d03 ldrb r3, [r0, r4] + 801c5ee: 3401 adds r4, #1 + 801c5f0: 190d adds r5, r1, r4 + 801c5f2: f815 5c01 ldrb.w r5, [r5, #-1] + 801c5f6: 42ab cmp r3, r5 + 801c5f8: d0f4 beq.n 801c5e4 + 801c5fa: 1b58 subs r0, r3, r5 + 801c5fc: bd30 pop {r4, r5, pc} + +0801c5fe : + 801c5fe: b510 push {r4, lr} + 801c600: 1e43 subs r3, r0, #1 + 801c602: 440a add r2, r1 + 801c604: 4291 cmp r1, r2 + 801c606: d100 bne.n 801c60a + 801c608: bd10 pop {r4, pc} + 801c60a: f811 4b01 ldrb.w r4, [r1], #1 + 801c60e: f803 4f01 strb.w r4, [r3, #1]! + 801c612: e7f7 b.n 801c604 + +0801c614 : + 801c614: 4288 cmp r0, r1 + 801c616: b510 push {r4, lr} + 801c618: eb01 0302 add.w r3, r1, r2 + 801c61c: d807 bhi.n 801c62e + 801c61e: 1e42 subs r2, r0, #1 + 801c620: 4299 cmp r1, r3 + 801c622: d00a beq.n 801c63a + 801c624: f811 4b01 ldrb.w r4, [r1], #1 + 801c628: f802 4f01 strb.w r4, [r2, #1]! + 801c62c: e7f8 b.n 801c620 + 801c62e: 4283 cmp r3, r0 + 801c630: d9f5 bls.n 801c61e + 801c632: 1881 adds r1, r0, r2 + 801c634: 1ad2 subs r2, r2, r3 + 801c636: 42d3 cmn r3, r2 + 801c638: d100 bne.n 801c63c + 801c63a: bd10 pop {r4, pc} + 801c63c: f813 4d01 ldrb.w r4, [r3, #-1]! + 801c640: f801 4d01 strb.w r4, [r1, #-1]! + 801c644: e7f7 b.n 801c636 + +0801c646 : + 801c646: 4402 add r2, r0 + 801c648: 4603 mov r3, r0 + 801c64a: 4293 cmp r3, r2 + 801c64c: d100 bne.n 801c650 + 801c64e: 4770 bx lr + 801c650: f803 1b01 strb.w r1, [r3], #1 + 801c654: e7f9 b.n 801c64a ... -0801c648 : - 801c648: b40f push {r0, r1, r2, r3} - 801c64a: 4b0a ldr r3, [pc, #40] ; (801c674 ) - 801c64c: b513 push {r0, r1, r4, lr} - 801c64e: 681c ldr r4, [r3, #0] - 801c650: b124 cbz r4, 801c65c - 801c652: 69a3 ldr r3, [r4, #24] - 801c654: b913 cbnz r3, 801c65c - 801c656: 4620 mov r0, r4 - 801c658: f000 f8a2 bl 801c7a0 <__sinit> - 801c65c: ab05 add r3, sp, #20 - 801c65e: 9a04 ldr r2, [sp, #16] - 801c660: 68a1 ldr r1, [r4, #8] - 801c662: 9301 str r3, [sp, #4] - 801c664: 4620 mov r0, r4 - 801c666: f000 fb51 bl 801cd0c <_vfiprintf_r> - 801c66a: b002 add sp, #8 - 801c66c: e8bd 4010 ldmia.w sp!, {r4, lr} - 801c670: b004 add sp, #16 - 801c672: 4770 bx lr - 801c674: 20000078 .word 0x20000078 - -0801c678 : - 801c678: b538 push {r3, r4, r5, lr} - 801c67a: 4b13 ldr r3, [pc, #76] ; (801c6c8 ) - 801c67c: 681c ldr r4, [r3, #0] - 801c67e: 6ba3 ldr r3, [r4, #56] ; 0x38 - 801c680: b97b cbnz r3, 801c6a2 - 801c682: 2018 movs r0, #24 - 801c684: f000 f916 bl 801c8b4 - 801c688: 4a10 ldr r2, [pc, #64] ; (801c6cc ) - 801c68a: 4b11 ldr r3, [pc, #68] ; (801c6d0 ) - 801c68c: 63a0 str r0, [r4, #56] ; 0x38 - 801c68e: e9c0 2300 strd r2, r3, [r0] - 801c692: 4b10 ldr r3, [pc, #64] ; (801c6d4 ) - 801c694: 6083 str r3, [r0, #8] - 801c696: 230b movs r3, #11 - 801c698: 8183 strh r3, [r0, #12] - 801c69a: 2201 movs r2, #1 - 801c69c: 2300 movs r3, #0 - 801c69e: e9c0 2304 strd r2, r3, [r0, #16] - 801c6a2: 6ba1 ldr r1, [r4, #56] ; 0x38 - 801c6a4: 480c ldr r0, [pc, #48] ; (801c6d8 ) - 801c6a6: 690a ldr r2, [r1, #16] - 801c6a8: 694b ldr r3, [r1, #20] - 801c6aa: 4c0c ldr r4, [pc, #48] ; (801c6dc ) - 801c6ac: 4350 muls r0, r2 - 801c6ae: fb04 0003 mla r0, r4, r3, r0 - 801c6b2: fba2 2304 umull r2, r3, r2, r4 - 801c6b6: 4403 add r3, r0 - 801c6b8: 1c54 adds r4, r2, #1 - 801c6ba: f143 0500 adc.w r5, r3, #0 - 801c6be: e9c1 4504 strd r4, r5, [r1, #16] - 801c6c2: f025 4000 bic.w r0, r5, #2147483648 ; 0x80000000 - 801c6c6: bd38 pop {r3, r4, r5, pc} - 801c6c8: 20000078 .word 0x20000078 - 801c6cc: abcd330e .word 0xabcd330e - 801c6d0: e66d1234 .word 0xe66d1234 - 801c6d4: 0005deec .word 0x0005deec - 801c6d8: 5851f42d .word 0x5851f42d - 801c6dc: 4c957f2d .word 0x4c957f2d - -0801c6e0 : - 801c6e0: b40e push {r1, r2, r3} - 801c6e2: b500 push {lr} - 801c6e4: b09c sub sp, #112 ; 0x70 - 801c6e6: ab1d add r3, sp, #116 ; 0x74 - 801c6e8: 9002 str r0, [sp, #8] - 801c6ea: 9006 str r0, [sp, #24] - 801c6ec: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000 - 801c6f0: 4809 ldr r0, [pc, #36] ; (801c718 ) - 801c6f2: 9107 str r1, [sp, #28] - 801c6f4: 9104 str r1, [sp, #16] - 801c6f6: 4909 ldr r1, [pc, #36] ; (801c71c ) - 801c6f8: f853 2b04 ldr.w r2, [r3], #4 - 801c6fc: 9105 str r1, [sp, #20] - 801c6fe: 6800 ldr r0, [r0, #0] - 801c700: 9301 str r3, [sp, #4] - 801c702: a902 add r1, sp, #8 - 801c704: f000 f9e0 bl 801cac8 <_svfiprintf_r> - 801c708: 9b02 ldr r3, [sp, #8] - 801c70a: 2200 movs r2, #0 - 801c70c: 701a strb r2, [r3, #0] - 801c70e: b01c add sp, #112 ; 0x70 - 801c710: f85d eb04 ldr.w lr, [sp], #4 - 801c714: b003 add sp, #12 - 801c716: 4770 bx lr - 801c718: 20000078 .word 0x20000078 - 801c71c: ffff0208 .word 0xffff0208 - -0801c720 : - 801c720: 2300 movs r3, #0 - 801c722: b510 push {r4, lr} - 801c724: 4604 mov r4, r0 - 801c726: e9c0 3300 strd r3, r3, [r0] - 801c72a: 6083 str r3, [r0, #8] - 801c72c: 8181 strh r1, [r0, #12] - 801c72e: 6643 str r3, [r0, #100] ; 0x64 - 801c730: 81c2 strh r2, [r0, #14] - 801c732: e9c0 3304 strd r3, r3, [r0, #16] - 801c736: 6183 str r3, [r0, #24] - 801c738: 4619 mov r1, r3 - 801c73a: 2208 movs r2, #8 - 801c73c: 305c adds r0, #92 ; 0x5c - 801c73e: f7ff ff7a bl 801c636 - 801c742: 4b05 ldr r3, [pc, #20] ; (801c758 ) - 801c744: 6263 str r3, [r4, #36] ; 0x24 - 801c746: 4b05 ldr r3, [pc, #20] ; (801c75c ) - 801c748: 62a3 str r3, [r4, #40] ; 0x28 - 801c74a: 4b05 ldr r3, [pc, #20] ; (801c760 ) - 801c74c: 62e3 str r3, [r4, #44] ; 0x2c - 801c74e: 4b05 ldr r3, [pc, #20] ; (801c764 ) - 801c750: 6224 str r4, [r4, #32] - 801c752: 6323 str r3, [r4, #48] ; 0x30 - 801c754: bd10 pop {r4, pc} - 801c756: bf00 nop - 801c758: 0801d269 .word 0x0801d269 - 801c75c: 0801d28b .word 0x0801d28b - 801c760: 0801d2c3 .word 0x0801d2c3 - 801c764: 0801d2e7 .word 0x0801d2e7 - -0801c768 <_cleanup_r>: - 801c768: 4901 ldr r1, [pc, #4] ; (801c770 <_cleanup_r+0x8>) - 801c76a: f000 b885 b.w 801c878 <_fwalk_reent> - 801c76e: bf00 nop - 801c770: 0801d5c1 .word 0x0801d5c1 - -0801c774 <__sfmoreglue>: - 801c774: b570 push {r4, r5, r6, lr} - 801c776: 1e4a subs r2, r1, #1 - 801c778: 2568 movs r5, #104 ; 0x68 - 801c77a: 4355 muls r5, r2 - 801c77c: 460e mov r6, r1 - 801c77e: f105 0174 add.w r1, r5, #116 ; 0x74 - 801c782: f000 f8ed bl 801c960 <_malloc_r> - 801c786: 4604 mov r4, r0 - 801c788: b140 cbz r0, 801c79c <__sfmoreglue+0x28> - 801c78a: 2100 movs r1, #0 - 801c78c: e9c0 1600 strd r1, r6, [r0] - 801c790: 300c adds r0, #12 - 801c792: 60a0 str r0, [r4, #8] - 801c794: f105 0268 add.w r2, r5, #104 ; 0x68 - 801c798: f7ff ff4d bl 801c636 - 801c79c: 4620 mov r0, r4 - 801c79e: bd70 pop {r4, r5, r6, pc} - -0801c7a0 <__sinit>: - 801c7a0: 6983 ldr r3, [r0, #24] - 801c7a2: b510 push {r4, lr} - 801c7a4: 4604 mov r4, r0 - 801c7a6: bb33 cbnz r3, 801c7f6 <__sinit+0x56> - 801c7a8: e9c0 3312 strd r3, r3, [r0, #72] ; 0x48 - 801c7ac: 6503 str r3, [r0, #80] ; 0x50 - 801c7ae: 4b12 ldr r3, [pc, #72] ; (801c7f8 <__sinit+0x58>) - 801c7b0: 4a12 ldr r2, [pc, #72] ; (801c7fc <__sinit+0x5c>) - 801c7b2: 681b ldr r3, [r3, #0] - 801c7b4: 6282 str r2, [r0, #40] ; 0x28 - 801c7b6: 4298 cmp r0, r3 - 801c7b8: bf04 itt eq - 801c7ba: 2301 moveq r3, #1 - 801c7bc: 6183 streq r3, [r0, #24] - 801c7be: f000 f81f bl 801c800 <__sfp> - 801c7c2: 6060 str r0, [r4, #4] - 801c7c4: 4620 mov r0, r4 - 801c7c6: f000 f81b bl 801c800 <__sfp> - 801c7ca: 60a0 str r0, [r4, #8] - 801c7cc: 4620 mov r0, r4 - 801c7ce: f000 f817 bl 801c800 <__sfp> - 801c7d2: 2200 movs r2, #0 - 801c7d4: 60e0 str r0, [r4, #12] - 801c7d6: 2104 movs r1, #4 - 801c7d8: 6860 ldr r0, [r4, #4] - 801c7da: f7ff ffa1 bl 801c720 - 801c7de: 2201 movs r2, #1 - 801c7e0: 2109 movs r1, #9 - 801c7e2: 68a0 ldr r0, [r4, #8] - 801c7e4: f7ff ff9c bl 801c720 - 801c7e8: 2202 movs r2, #2 - 801c7ea: 2112 movs r1, #18 - 801c7ec: 68e0 ldr r0, [r4, #12] - 801c7ee: f7ff ff97 bl 801c720 - 801c7f2: 2301 movs r3, #1 - 801c7f4: 61a3 str r3, [r4, #24] - 801c7f6: bd10 pop {r4, pc} - 801c7f8: 08022818 .word 0x08022818 - 801c7fc: 0801c769 .word 0x0801c769 - -0801c800 <__sfp>: - 801c800: b5f8 push {r3, r4, r5, r6, r7, lr} - 801c802: 4b1b ldr r3, [pc, #108] ; (801c870 <__sfp+0x70>) - 801c804: 681e ldr r6, [r3, #0] - 801c806: 69b3 ldr r3, [r6, #24] - 801c808: 4607 mov r7, r0 - 801c80a: b913 cbnz r3, 801c812 <__sfp+0x12> - 801c80c: 4630 mov r0, r6 - 801c80e: f7ff ffc7 bl 801c7a0 <__sinit> - 801c812: 3648 adds r6, #72 ; 0x48 - 801c814: e9d6 3401 ldrd r3, r4, [r6, #4] - 801c818: 3b01 subs r3, #1 - 801c81a: d503 bpl.n 801c824 <__sfp+0x24> - 801c81c: 6833 ldr r3, [r6, #0] - 801c81e: b133 cbz r3, 801c82e <__sfp+0x2e> - 801c820: 6836 ldr r6, [r6, #0] - 801c822: e7f7 b.n 801c814 <__sfp+0x14> - 801c824: f9b4 500c ldrsh.w r5, [r4, #12] - 801c828: b16d cbz r5, 801c846 <__sfp+0x46> - 801c82a: 3468 adds r4, #104 ; 0x68 - 801c82c: e7f4 b.n 801c818 <__sfp+0x18> - 801c82e: 2104 movs r1, #4 - 801c830: 4638 mov r0, r7 - 801c832: f7ff ff9f bl 801c774 <__sfmoreglue> - 801c836: 6030 str r0, [r6, #0] - 801c838: 2800 cmp r0, #0 - 801c83a: d1f1 bne.n 801c820 <__sfp+0x20> - 801c83c: 230c movs r3, #12 - 801c83e: 603b str r3, [r7, #0] - 801c840: 4604 mov r4, r0 - 801c842: 4620 mov r0, r4 - 801c844: bdf8 pop {r3, r4, r5, r6, r7, pc} - 801c846: 4b0b ldr r3, [pc, #44] ; (801c874 <__sfp+0x74>) - 801c848: 6665 str r5, [r4, #100] ; 0x64 - 801c84a: e9c4 5500 strd r5, r5, [r4] - 801c84e: 60a5 str r5, [r4, #8] - 801c850: e9c4 3503 strd r3, r5, [r4, #12] - 801c854: e9c4 5505 strd r5, r5, [r4, #20] - 801c858: 2208 movs r2, #8 - 801c85a: 4629 mov r1, r5 - 801c85c: f104 005c add.w r0, r4, #92 ; 0x5c - 801c860: f7ff fee9 bl 801c636 - 801c864: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 - 801c868: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 - 801c86c: e7e9 b.n 801c842 <__sfp+0x42> - 801c86e: bf00 nop - 801c870: 08022818 .word 0x08022818 - 801c874: ffff0001 .word 0xffff0001 - -0801c878 <_fwalk_reent>: - 801c878: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} - 801c87c: 4680 mov r8, r0 - 801c87e: 4689 mov r9, r1 - 801c880: f100 0448 add.w r4, r0, #72 ; 0x48 - 801c884: 2600 movs r6, #0 - 801c886: b914 cbnz r4, 801c88e <_fwalk_reent+0x16> - 801c888: 4630 mov r0, r6 - 801c88a: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} - 801c88e: e9d4 7501 ldrd r7, r5, [r4, #4] - 801c892: 3f01 subs r7, #1 - 801c894: d501 bpl.n 801c89a <_fwalk_reent+0x22> - 801c896: 6824 ldr r4, [r4, #0] - 801c898: e7f5 b.n 801c886 <_fwalk_reent+0xe> - 801c89a: 89ab ldrh r3, [r5, #12] - 801c89c: 2b01 cmp r3, #1 - 801c89e: d907 bls.n 801c8b0 <_fwalk_reent+0x38> - 801c8a0: f9b5 300e ldrsh.w r3, [r5, #14] - 801c8a4: 3301 adds r3, #1 - 801c8a6: d003 beq.n 801c8b0 <_fwalk_reent+0x38> - 801c8a8: 4629 mov r1, r5 - 801c8aa: 4640 mov r0, r8 - 801c8ac: 47c8 blx r9 - 801c8ae: 4306 orrs r6, r0 - 801c8b0: 3568 adds r5, #104 ; 0x68 - 801c8b2: e7ee b.n 801c892 <_fwalk_reent+0x1a> - -0801c8b4 : - 801c8b4: 4b02 ldr r3, [pc, #8] ; (801c8c0 ) - 801c8b6: 4601 mov r1, r0 - 801c8b8: 6818 ldr r0, [r3, #0] - 801c8ba: f000 b851 b.w 801c960 <_malloc_r> - 801c8be: bf00 nop - 801c8c0: 20000078 .word 0x20000078 - -0801c8c4 <_free_r>: - 801c8c4: b538 push {r3, r4, r5, lr} - 801c8c6: 4605 mov r5, r0 - 801c8c8: 2900 cmp r1, #0 - 801c8ca: d045 beq.n 801c958 <_free_r+0x94> - 801c8cc: f851 3c04 ldr.w r3, [r1, #-4] - 801c8d0: 1f0c subs r4, r1, #4 - 801c8d2: 2b00 cmp r3, #0 - 801c8d4: bfb8 it lt - 801c8d6: 18e4 addlt r4, r4, r3 - 801c8d8: f000 ff12 bl 801d700 <__malloc_lock> - 801c8dc: 4a1f ldr r2, [pc, #124] ; (801c95c <_free_r+0x98>) - 801c8de: 6813 ldr r3, [r2, #0] - 801c8e0: 4610 mov r0, r2 - 801c8e2: b933 cbnz r3, 801c8f2 <_free_r+0x2e> - 801c8e4: 6063 str r3, [r4, #4] - 801c8e6: 6014 str r4, [r2, #0] - 801c8e8: 4628 mov r0, r5 - 801c8ea: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 801c8ee: f000 bf08 b.w 801d702 <__malloc_unlock> - 801c8f2: 42a3 cmp r3, r4 - 801c8f4: d90c bls.n 801c910 <_free_r+0x4c> - 801c8f6: 6821 ldr r1, [r4, #0] - 801c8f8: 1862 adds r2, r4, r1 - 801c8fa: 4293 cmp r3, r2 - 801c8fc: bf04 itt eq - 801c8fe: 681a ldreq r2, [r3, #0] - 801c900: 685b ldreq r3, [r3, #4] - 801c902: 6063 str r3, [r4, #4] - 801c904: bf04 itt eq - 801c906: 1852 addeq r2, r2, r1 - 801c908: 6022 streq r2, [r4, #0] - 801c90a: 6004 str r4, [r0, #0] - 801c90c: e7ec b.n 801c8e8 <_free_r+0x24> - 801c90e: 4613 mov r3, r2 - 801c910: 685a ldr r2, [r3, #4] - 801c912: b10a cbz r2, 801c918 <_free_r+0x54> - 801c914: 42a2 cmp r2, r4 - 801c916: d9fa bls.n 801c90e <_free_r+0x4a> - 801c918: 6819 ldr r1, [r3, #0] - 801c91a: 1858 adds r0, r3, r1 - 801c91c: 42a0 cmp r0, r4 - 801c91e: d10b bne.n 801c938 <_free_r+0x74> - 801c920: 6820 ldr r0, [r4, #0] - 801c922: 4401 add r1, r0 - 801c924: 1858 adds r0, r3, r1 - 801c926: 4282 cmp r2, r0 - 801c928: 6019 str r1, [r3, #0] - 801c92a: d1dd bne.n 801c8e8 <_free_r+0x24> - 801c92c: 6810 ldr r0, [r2, #0] - 801c92e: 6852 ldr r2, [r2, #4] - 801c930: 605a str r2, [r3, #4] +0801c658 : + 801c658: b40f push {r0, r1, r2, r3} + 801c65a: 4b0a ldr r3, [pc, #40] ; (801c684 ) + 801c65c: b513 push {r0, r1, r4, lr} + 801c65e: 681c ldr r4, [r3, #0] + 801c660: b124 cbz r4, 801c66c + 801c662: 69a3 ldr r3, [r4, #24] + 801c664: b913 cbnz r3, 801c66c + 801c666: 4620 mov r0, r4 + 801c668: f000 f8a2 bl 801c7b0 <__sinit> + 801c66c: ab05 add r3, sp, #20 + 801c66e: 9a04 ldr r2, [sp, #16] + 801c670: 68a1 ldr r1, [r4, #8] + 801c672: 9301 str r3, [sp, #4] + 801c674: 4620 mov r0, r4 + 801c676: f000 fb51 bl 801cd1c <_vfiprintf_r> + 801c67a: b002 add sp, #8 + 801c67c: e8bd 4010 ldmia.w sp!, {r4, lr} + 801c680: b004 add sp, #16 + 801c682: 4770 bx lr + 801c684: 20000078 .word 0x20000078 + +0801c688 : + 801c688: b538 push {r3, r4, r5, lr} + 801c68a: 4b13 ldr r3, [pc, #76] ; (801c6d8 ) + 801c68c: 681c ldr r4, [r3, #0] + 801c68e: 6ba3 ldr r3, [r4, #56] ; 0x38 + 801c690: b97b cbnz r3, 801c6b2 + 801c692: 2018 movs r0, #24 + 801c694: f000 f916 bl 801c8c4 + 801c698: 4a10 ldr r2, [pc, #64] ; (801c6dc ) + 801c69a: 4b11 ldr r3, [pc, #68] ; (801c6e0 ) + 801c69c: 63a0 str r0, [r4, #56] ; 0x38 + 801c69e: e9c0 2300 strd r2, r3, [r0] + 801c6a2: 4b10 ldr r3, [pc, #64] ; (801c6e4 ) + 801c6a4: 6083 str r3, [r0, #8] + 801c6a6: 230b movs r3, #11 + 801c6a8: 8183 strh r3, [r0, #12] + 801c6aa: 2201 movs r2, #1 + 801c6ac: 2300 movs r3, #0 + 801c6ae: e9c0 2304 strd r2, r3, [r0, #16] + 801c6b2: 6ba1 ldr r1, [r4, #56] ; 0x38 + 801c6b4: 480c ldr r0, [pc, #48] ; (801c6e8 ) + 801c6b6: 690a ldr r2, [r1, #16] + 801c6b8: 694b ldr r3, [r1, #20] + 801c6ba: 4c0c ldr r4, [pc, #48] ; (801c6ec ) + 801c6bc: 4350 muls r0, r2 + 801c6be: fb04 0003 mla r0, r4, r3, r0 + 801c6c2: fba2 2304 umull r2, r3, r2, r4 + 801c6c6: 4403 add r3, r0 + 801c6c8: 1c54 adds r4, r2, #1 + 801c6ca: f143 0500 adc.w r5, r3, #0 + 801c6ce: e9c1 4504 strd r4, r5, [r1, #16] + 801c6d2: f025 4000 bic.w r0, r5, #2147483648 ; 0x80000000 + 801c6d6: bd38 pop {r3, r4, r5, pc} + 801c6d8: 20000078 .word 0x20000078 + 801c6dc: abcd330e .word 0xabcd330e + 801c6e0: e66d1234 .word 0xe66d1234 + 801c6e4: 0005deec .word 0x0005deec + 801c6e8: 5851f42d .word 0x5851f42d + 801c6ec: 4c957f2d .word 0x4c957f2d + +0801c6f0 : + 801c6f0: b40e push {r1, r2, r3} + 801c6f2: b500 push {lr} + 801c6f4: b09c sub sp, #112 ; 0x70 + 801c6f6: ab1d add r3, sp, #116 ; 0x74 + 801c6f8: 9002 str r0, [sp, #8] + 801c6fa: 9006 str r0, [sp, #24] + 801c6fc: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000 + 801c700: 4809 ldr r0, [pc, #36] ; (801c728 ) + 801c702: 9107 str r1, [sp, #28] + 801c704: 9104 str r1, [sp, #16] + 801c706: 4909 ldr r1, [pc, #36] ; (801c72c ) + 801c708: f853 2b04 ldr.w r2, [r3], #4 + 801c70c: 9105 str r1, [sp, #20] + 801c70e: 6800 ldr r0, [r0, #0] + 801c710: 9301 str r3, [sp, #4] + 801c712: a902 add r1, sp, #8 + 801c714: f000 f9e0 bl 801cad8 <_svfiprintf_r> + 801c718: 9b02 ldr r3, [sp, #8] + 801c71a: 2200 movs r2, #0 + 801c71c: 701a strb r2, [r3, #0] + 801c71e: b01c add sp, #112 ; 0x70 + 801c720: f85d eb04 ldr.w lr, [sp], #4 + 801c724: b003 add sp, #12 + 801c726: 4770 bx lr + 801c728: 20000078 .word 0x20000078 + 801c72c: ffff0208 .word 0xffff0208 + +0801c730 : + 801c730: 2300 movs r3, #0 + 801c732: b510 push {r4, lr} + 801c734: 4604 mov r4, r0 + 801c736: e9c0 3300 strd r3, r3, [r0] + 801c73a: 6083 str r3, [r0, #8] + 801c73c: 8181 strh r1, [r0, #12] + 801c73e: 6643 str r3, [r0, #100] ; 0x64 + 801c740: 81c2 strh r2, [r0, #14] + 801c742: e9c0 3304 strd r3, r3, [r0, #16] + 801c746: 6183 str r3, [r0, #24] + 801c748: 4619 mov r1, r3 + 801c74a: 2208 movs r2, #8 + 801c74c: 305c adds r0, #92 ; 0x5c + 801c74e: f7ff ff7a bl 801c646 + 801c752: 4b05 ldr r3, [pc, #20] ; (801c768 ) + 801c754: 6263 str r3, [r4, #36] ; 0x24 + 801c756: 4b05 ldr r3, [pc, #20] ; (801c76c ) + 801c758: 62a3 str r3, [r4, #40] ; 0x28 + 801c75a: 4b05 ldr r3, [pc, #20] ; (801c770 ) + 801c75c: 62e3 str r3, [r4, #44] ; 0x2c + 801c75e: 4b05 ldr r3, [pc, #20] ; (801c774 ) + 801c760: 6224 str r4, [r4, #32] + 801c762: 6323 str r3, [r4, #48] ; 0x30 + 801c764: bd10 pop {r4, pc} + 801c766: bf00 nop + 801c768: 0801d279 .word 0x0801d279 + 801c76c: 0801d29b .word 0x0801d29b + 801c770: 0801d2d3 .word 0x0801d2d3 + 801c774: 0801d2f7 .word 0x0801d2f7 + +0801c778 <_cleanup_r>: + 801c778: 4901 ldr r1, [pc, #4] ; (801c780 <_cleanup_r+0x8>) + 801c77a: f000 b885 b.w 801c888 <_fwalk_reent> + 801c77e: bf00 nop + 801c780: 0801d5d1 .word 0x0801d5d1 + +0801c784 <__sfmoreglue>: + 801c784: b570 push {r4, r5, r6, lr} + 801c786: 1e4a subs r2, r1, #1 + 801c788: 2568 movs r5, #104 ; 0x68 + 801c78a: 4355 muls r5, r2 + 801c78c: 460e mov r6, r1 + 801c78e: f105 0174 add.w r1, r5, #116 ; 0x74 + 801c792: f000 f8ed bl 801c970 <_malloc_r> + 801c796: 4604 mov r4, r0 + 801c798: b140 cbz r0, 801c7ac <__sfmoreglue+0x28> + 801c79a: 2100 movs r1, #0 + 801c79c: e9c0 1600 strd r1, r6, [r0] + 801c7a0: 300c adds r0, #12 + 801c7a2: 60a0 str r0, [r4, #8] + 801c7a4: f105 0268 add.w r2, r5, #104 ; 0x68 + 801c7a8: f7ff ff4d bl 801c646 + 801c7ac: 4620 mov r0, r4 + 801c7ae: bd70 pop {r4, r5, r6, pc} + +0801c7b0 <__sinit>: + 801c7b0: 6983 ldr r3, [r0, #24] + 801c7b2: b510 push {r4, lr} + 801c7b4: 4604 mov r4, r0 + 801c7b6: bb33 cbnz r3, 801c806 <__sinit+0x56> + 801c7b8: e9c0 3312 strd r3, r3, [r0, #72] ; 0x48 + 801c7bc: 6503 str r3, [r0, #80] ; 0x50 + 801c7be: 4b12 ldr r3, [pc, #72] ; (801c808 <__sinit+0x58>) + 801c7c0: 4a12 ldr r2, [pc, #72] ; (801c80c <__sinit+0x5c>) + 801c7c2: 681b ldr r3, [r3, #0] + 801c7c4: 6282 str r2, [r0, #40] ; 0x28 + 801c7c6: 4298 cmp r0, r3 + 801c7c8: bf04 itt eq + 801c7ca: 2301 moveq r3, #1 + 801c7cc: 6183 streq r3, [r0, #24] + 801c7ce: f000 f81f bl 801c810 <__sfp> + 801c7d2: 6060 str r0, [r4, #4] + 801c7d4: 4620 mov r0, r4 + 801c7d6: f000 f81b bl 801c810 <__sfp> + 801c7da: 60a0 str r0, [r4, #8] + 801c7dc: 4620 mov r0, r4 + 801c7de: f000 f817 bl 801c810 <__sfp> + 801c7e2: 2200 movs r2, #0 + 801c7e4: 60e0 str r0, [r4, #12] + 801c7e6: 2104 movs r1, #4 + 801c7e8: 6860 ldr r0, [r4, #4] + 801c7ea: f7ff ffa1 bl 801c730 + 801c7ee: 2201 movs r2, #1 + 801c7f0: 2109 movs r1, #9 + 801c7f2: 68a0 ldr r0, [r4, #8] + 801c7f4: f7ff ff9c bl 801c730 + 801c7f8: 2202 movs r2, #2 + 801c7fa: 2112 movs r1, #18 + 801c7fc: 68e0 ldr r0, [r4, #12] + 801c7fe: f7ff ff97 bl 801c730 + 801c802: 2301 movs r3, #1 + 801c804: 61a3 str r3, [r4, #24] + 801c806: bd10 pop {r4, pc} + 801c808: 08022828 .word 0x08022828 + 801c80c: 0801c779 .word 0x0801c779 + +0801c810 <__sfp>: + 801c810: b5f8 push {r3, r4, r5, r6, r7, lr} + 801c812: 4b1b ldr r3, [pc, #108] ; (801c880 <__sfp+0x70>) + 801c814: 681e ldr r6, [r3, #0] + 801c816: 69b3 ldr r3, [r6, #24] + 801c818: 4607 mov r7, r0 + 801c81a: b913 cbnz r3, 801c822 <__sfp+0x12> + 801c81c: 4630 mov r0, r6 + 801c81e: f7ff ffc7 bl 801c7b0 <__sinit> + 801c822: 3648 adds r6, #72 ; 0x48 + 801c824: e9d6 3401 ldrd r3, r4, [r6, #4] + 801c828: 3b01 subs r3, #1 + 801c82a: d503 bpl.n 801c834 <__sfp+0x24> + 801c82c: 6833 ldr r3, [r6, #0] + 801c82e: b133 cbz r3, 801c83e <__sfp+0x2e> + 801c830: 6836 ldr r6, [r6, #0] + 801c832: e7f7 b.n 801c824 <__sfp+0x14> + 801c834: f9b4 500c ldrsh.w r5, [r4, #12] + 801c838: b16d cbz r5, 801c856 <__sfp+0x46> + 801c83a: 3468 adds r4, #104 ; 0x68 + 801c83c: e7f4 b.n 801c828 <__sfp+0x18> + 801c83e: 2104 movs r1, #4 + 801c840: 4638 mov r0, r7 + 801c842: f7ff ff9f bl 801c784 <__sfmoreglue> + 801c846: 6030 str r0, [r6, #0] + 801c848: 2800 cmp r0, #0 + 801c84a: d1f1 bne.n 801c830 <__sfp+0x20> + 801c84c: 230c movs r3, #12 + 801c84e: 603b str r3, [r7, #0] + 801c850: 4604 mov r4, r0 + 801c852: 4620 mov r0, r4 + 801c854: bdf8 pop {r3, r4, r5, r6, r7, pc} + 801c856: 4b0b ldr r3, [pc, #44] ; (801c884 <__sfp+0x74>) + 801c858: 6665 str r5, [r4, #100] ; 0x64 + 801c85a: e9c4 5500 strd r5, r5, [r4] + 801c85e: 60a5 str r5, [r4, #8] + 801c860: e9c4 3503 strd r3, r5, [r4, #12] + 801c864: e9c4 5505 strd r5, r5, [r4, #20] + 801c868: 2208 movs r2, #8 + 801c86a: 4629 mov r1, r5 + 801c86c: f104 005c add.w r0, r4, #92 ; 0x5c + 801c870: f7ff fee9 bl 801c646 + 801c874: e9c4 550d strd r5, r5, [r4, #52] ; 0x34 + 801c878: e9c4 5512 strd r5, r5, [r4, #72] ; 0x48 + 801c87c: e7e9 b.n 801c852 <__sfp+0x42> + 801c87e: bf00 nop + 801c880: 08022828 .word 0x08022828 + 801c884: ffff0001 .word 0xffff0001 + +0801c888 <_fwalk_reent>: + 801c888: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} + 801c88c: 4680 mov r8, r0 + 801c88e: 4689 mov r9, r1 + 801c890: f100 0448 add.w r4, r0, #72 ; 0x48 + 801c894: 2600 movs r6, #0 + 801c896: b914 cbnz r4, 801c89e <_fwalk_reent+0x16> + 801c898: 4630 mov r0, r6 + 801c89a: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} + 801c89e: e9d4 7501 ldrd r7, r5, [r4, #4] + 801c8a2: 3f01 subs r7, #1 + 801c8a4: d501 bpl.n 801c8aa <_fwalk_reent+0x22> + 801c8a6: 6824 ldr r4, [r4, #0] + 801c8a8: e7f5 b.n 801c896 <_fwalk_reent+0xe> + 801c8aa: 89ab ldrh r3, [r5, #12] + 801c8ac: 2b01 cmp r3, #1 + 801c8ae: d907 bls.n 801c8c0 <_fwalk_reent+0x38> + 801c8b0: f9b5 300e ldrsh.w r3, [r5, #14] + 801c8b4: 3301 adds r3, #1 + 801c8b6: d003 beq.n 801c8c0 <_fwalk_reent+0x38> + 801c8b8: 4629 mov r1, r5 + 801c8ba: 4640 mov r0, r8 + 801c8bc: 47c8 blx r9 + 801c8be: 4306 orrs r6, r0 + 801c8c0: 3568 adds r5, #104 ; 0x68 + 801c8c2: e7ee b.n 801c8a2 <_fwalk_reent+0x1a> + +0801c8c4 : + 801c8c4: 4b02 ldr r3, [pc, #8] ; (801c8d0 ) + 801c8c6: 4601 mov r1, r0 + 801c8c8: 6818 ldr r0, [r3, #0] + 801c8ca: f000 b851 b.w 801c970 <_malloc_r> + 801c8ce: bf00 nop + 801c8d0: 20000078 .word 0x20000078 + +0801c8d4 <_free_r>: + 801c8d4: b538 push {r3, r4, r5, lr} + 801c8d6: 4605 mov r5, r0 + 801c8d8: 2900 cmp r1, #0 + 801c8da: d045 beq.n 801c968 <_free_r+0x94> + 801c8dc: f851 3c04 ldr.w r3, [r1, #-4] + 801c8e0: 1f0c subs r4, r1, #4 + 801c8e2: 2b00 cmp r3, #0 + 801c8e4: bfb8 it lt + 801c8e6: 18e4 addlt r4, r4, r3 + 801c8e8: f000 ff12 bl 801d710 <__malloc_lock> + 801c8ec: 4a1f ldr r2, [pc, #124] ; (801c96c <_free_r+0x98>) + 801c8ee: 6813 ldr r3, [r2, #0] + 801c8f0: 4610 mov r0, r2 + 801c8f2: b933 cbnz r3, 801c902 <_free_r+0x2e> + 801c8f4: 6063 str r3, [r4, #4] + 801c8f6: 6014 str r4, [r2, #0] + 801c8f8: 4628 mov r0, r5 + 801c8fa: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 801c8fe: f000 bf08 b.w 801d712 <__malloc_unlock> + 801c902: 42a3 cmp r3, r4 + 801c904: d90c bls.n 801c920 <_free_r+0x4c> + 801c906: 6821 ldr r1, [r4, #0] + 801c908: 1862 adds r2, r4, r1 + 801c90a: 4293 cmp r3, r2 + 801c90c: bf04 itt eq + 801c90e: 681a ldreq r2, [r3, #0] + 801c910: 685b ldreq r3, [r3, #4] + 801c912: 6063 str r3, [r4, #4] + 801c914: bf04 itt eq + 801c916: 1852 addeq r2, r2, r1 + 801c918: 6022 streq r2, [r4, #0] + 801c91a: 6004 str r4, [r0, #0] + 801c91c: e7ec b.n 801c8f8 <_free_r+0x24> + 801c91e: 4613 mov r3, r2 + 801c920: 685a ldr r2, [r3, #4] + 801c922: b10a cbz r2, 801c928 <_free_r+0x54> + 801c924: 42a2 cmp r2, r4 + 801c926: d9fa bls.n 801c91e <_free_r+0x4a> + 801c928: 6819 ldr r1, [r3, #0] + 801c92a: 1858 adds r0, r3, r1 + 801c92c: 42a0 cmp r0, r4 + 801c92e: d10b bne.n 801c948 <_free_r+0x74> + 801c930: 6820 ldr r0, [r4, #0] 801c932: 4401 add r1, r0 - 801c934: 6019 str r1, [r3, #0] - 801c936: e7d7 b.n 801c8e8 <_free_r+0x24> - 801c938: d902 bls.n 801c940 <_free_r+0x7c> - 801c93a: 230c movs r3, #12 - 801c93c: 602b str r3, [r5, #0] - 801c93e: e7d3 b.n 801c8e8 <_free_r+0x24> - 801c940: 6820 ldr r0, [r4, #0] - 801c942: 1821 adds r1, r4, r0 - 801c944: 428a cmp r2, r1 - 801c946: bf04 itt eq - 801c948: 6811 ldreq r1, [r2, #0] - 801c94a: 6852 ldreq r2, [r2, #4] - 801c94c: 6062 str r2, [r4, #4] - 801c94e: bf04 itt eq - 801c950: 1809 addeq r1, r1, r0 - 801c952: 6021 streq r1, [r4, #0] - 801c954: 605c str r4, [r3, #4] - 801c956: e7c7 b.n 801c8e8 <_free_r+0x24> - 801c958: bd38 pop {r3, r4, r5, pc} - 801c95a: bf00 nop - 801c95c: 20008868 .word 0x20008868 - -0801c960 <_malloc_r>: - 801c960: b570 push {r4, r5, r6, lr} - 801c962: 1ccd adds r5, r1, #3 - 801c964: f025 0503 bic.w r5, r5, #3 - 801c968: 3508 adds r5, #8 - 801c96a: 2d0c cmp r5, #12 - 801c96c: bf38 it cc - 801c96e: 250c movcc r5, #12 - 801c970: 2d00 cmp r5, #0 - 801c972: 4606 mov r6, r0 - 801c974: db01 blt.n 801c97a <_malloc_r+0x1a> - 801c976: 42a9 cmp r1, r5 - 801c978: d903 bls.n 801c982 <_malloc_r+0x22> - 801c97a: 230c movs r3, #12 - 801c97c: 6033 str r3, [r6, #0] - 801c97e: 2000 movs r0, #0 - 801c980: bd70 pop {r4, r5, r6, pc} - 801c982: f000 febd bl 801d700 <__malloc_lock> - 801c986: 4a21 ldr r2, [pc, #132] ; (801ca0c <_malloc_r+0xac>) - 801c988: 6814 ldr r4, [r2, #0] - 801c98a: 4621 mov r1, r4 - 801c98c: b991 cbnz r1, 801c9b4 <_malloc_r+0x54> - 801c98e: 4c20 ldr r4, [pc, #128] ; (801ca10 <_malloc_r+0xb0>) - 801c990: 6823 ldr r3, [r4, #0] - 801c992: b91b cbnz r3, 801c99c <_malloc_r+0x3c> - 801c994: 4630 mov r0, r6 - 801c996: f000 fc57 bl 801d248 <_sbrk_r> - 801c99a: 6020 str r0, [r4, #0] - 801c99c: 4629 mov r1, r5 - 801c99e: 4630 mov r0, r6 - 801c9a0: f000 fc52 bl 801d248 <_sbrk_r> - 801c9a4: 1c43 adds r3, r0, #1 - 801c9a6: d124 bne.n 801c9f2 <_malloc_r+0x92> - 801c9a8: 230c movs r3, #12 - 801c9aa: 6033 str r3, [r6, #0] - 801c9ac: 4630 mov r0, r6 - 801c9ae: f000 fea8 bl 801d702 <__malloc_unlock> - 801c9b2: e7e4 b.n 801c97e <_malloc_r+0x1e> - 801c9b4: 680b ldr r3, [r1, #0] - 801c9b6: 1b5b subs r3, r3, r5 - 801c9b8: d418 bmi.n 801c9ec <_malloc_r+0x8c> - 801c9ba: 2b0b cmp r3, #11 - 801c9bc: d90f bls.n 801c9de <_malloc_r+0x7e> - 801c9be: 600b str r3, [r1, #0] - 801c9c0: 50cd str r5, [r1, r3] - 801c9c2: 18cc adds r4, r1, r3 - 801c9c4: 4630 mov r0, r6 - 801c9c6: f000 fe9c bl 801d702 <__malloc_unlock> - 801c9ca: f104 000b add.w r0, r4, #11 - 801c9ce: 1d23 adds r3, r4, #4 - 801c9d0: f020 0007 bic.w r0, r0, #7 - 801c9d4: 1ac3 subs r3, r0, r3 - 801c9d6: d0d3 beq.n 801c980 <_malloc_r+0x20> - 801c9d8: 425a negs r2, r3 - 801c9da: 50e2 str r2, [r4, r3] - 801c9dc: e7d0 b.n 801c980 <_malloc_r+0x20> - 801c9de: 428c cmp r4, r1 - 801c9e0: 684b ldr r3, [r1, #4] - 801c9e2: bf16 itet ne - 801c9e4: 6063 strne r3, [r4, #4] - 801c9e6: 6013 streq r3, [r2, #0] - 801c9e8: 460c movne r4, r1 - 801c9ea: e7eb b.n 801c9c4 <_malloc_r+0x64> - 801c9ec: 460c mov r4, r1 - 801c9ee: 6849 ldr r1, [r1, #4] - 801c9f0: e7cc b.n 801c98c <_malloc_r+0x2c> - 801c9f2: 1cc4 adds r4, r0, #3 - 801c9f4: f024 0403 bic.w r4, r4, #3 - 801c9f8: 42a0 cmp r0, r4 - 801c9fa: d005 beq.n 801ca08 <_malloc_r+0xa8> - 801c9fc: 1a21 subs r1, r4, r0 - 801c9fe: 4630 mov r0, r6 - 801ca00: f000 fc22 bl 801d248 <_sbrk_r> - 801ca04: 3001 adds r0, #1 - 801ca06: d0cf beq.n 801c9a8 <_malloc_r+0x48> - 801ca08: 6025 str r5, [r4, #0] - 801ca0a: e7db b.n 801c9c4 <_malloc_r+0x64> - 801ca0c: 20008868 .word 0x20008868 - 801ca10: 2000886c .word 0x2000886c - -0801ca14 <__ssputs_r>: - 801ca14: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 801ca18: 688e ldr r6, [r1, #8] - 801ca1a: 429e cmp r6, r3 - 801ca1c: 4682 mov sl, r0 - 801ca1e: 460c mov r4, r1 - 801ca20: 4690 mov r8, r2 - 801ca22: 4699 mov r9, r3 - 801ca24: d837 bhi.n 801ca96 <__ssputs_r+0x82> - 801ca26: 898a ldrh r2, [r1, #12] - 801ca28: f412 6f90 tst.w r2, #1152 ; 0x480 - 801ca2c: d031 beq.n 801ca92 <__ssputs_r+0x7e> - 801ca2e: 6825 ldr r5, [r4, #0] - 801ca30: 6909 ldr r1, [r1, #16] - 801ca32: 1a6f subs r7, r5, r1 - 801ca34: 6965 ldr r5, [r4, #20] - 801ca36: 2302 movs r3, #2 - 801ca38: eb05 0545 add.w r5, r5, r5, lsl #1 - 801ca3c: fb95 f5f3 sdiv r5, r5, r3 - 801ca40: f109 0301 add.w r3, r9, #1 - 801ca44: 443b add r3, r7 - 801ca46: 429d cmp r5, r3 - 801ca48: bf38 it cc - 801ca4a: 461d movcc r5, r3 - 801ca4c: 0553 lsls r3, r2, #21 - 801ca4e: d530 bpl.n 801cab2 <__ssputs_r+0x9e> - 801ca50: 4629 mov r1, r5 - 801ca52: f7ff ff85 bl 801c960 <_malloc_r> - 801ca56: 4606 mov r6, r0 - 801ca58: b950 cbnz r0, 801ca70 <__ssputs_r+0x5c> - 801ca5a: 230c movs r3, #12 - 801ca5c: f8ca 3000 str.w r3, [sl] - 801ca60: 89a3 ldrh r3, [r4, #12] - 801ca62: f043 0340 orr.w r3, r3, #64 ; 0x40 - 801ca66: 81a3 strh r3, [r4, #12] - 801ca68: f04f 30ff mov.w r0, #4294967295 - 801ca6c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 801ca70: 463a mov r2, r7 - 801ca72: 6921 ldr r1, [r4, #16] - 801ca74: f7ff fdbb bl 801c5ee - 801ca78: 89a3 ldrh r3, [r4, #12] - 801ca7a: f423 6390 bic.w r3, r3, #1152 ; 0x480 - 801ca7e: f043 0380 orr.w r3, r3, #128 ; 0x80 - 801ca82: 81a3 strh r3, [r4, #12] - 801ca84: 6126 str r6, [r4, #16] - 801ca86: 6165 str r5, [r4, #20] - 801ca88: 443e add r6, r7 - 801ca8a: 1bed subs r5, r5, r7 - 801ca8c: 6026 str r6, [r4, #0] - 801ca8e: 60a5 str r5, [r4, #8] - 801ca90: 464e mov r6, r9 - 801ca92: 454e cmp r6, r9 - 801ca94: d900 bls.n 801ca98 <__ssputs_r+0x84> - 801ca96: 464e mov r6, r9 - 801ca98: 4632 mov r2, r6 - 801ca9a: 4641 mov r1, r8 - 801ca9c: 6820 ldr r0, [r4, #0] - 801ca9e: f7ff fdb1 bl 801c604 - 801caa2: 68a3 ldr r3, [r4, #8] - 801caa4: 1b9b subs r3, r3, r6 - 801caa6: 60a3 str r3, [r4, #8] - 801caa8: 6823 ldr r3, [r4, #0] - 801caaa: 441e add r6, r3 - 801caac: 6026 str r6, [r4, #0] - 801caae: 2000 movs r0, #0 - 801cab0: e7dc b.n 801ca6c <__ssputs_r+0x58> - 801cab2: 462a mov r2, r5 - 801cab4: f000 fe26 bl 801d704 <_realloc_r> - 801cab8: 4606 mov r6, r0 - 801caba: 2800 cmp r0, #0 - 801cabc: d1e2 bne.n 801ca84 <__ssputs_r+0x70> - 801cabe: 6921 ldr r1, [r4, #16] - 801cac0: 4650 mov r0, sl - 801cac2: f7ff feff bl 801c8c4 <_free_r> - 801cac6: e7c8 b.n 801ca5a <__ssputs_r+0x46> - -0801cac8 <_svfiprintf_r>: - 801cac8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 801cacc: 461d mov r5, r3 - 801cace: 898b ldrh r3, [r1, #12] - 801cad0: 061f lsls r7, r3, #24 - 801cad2: b09d sub sp, #116 ; 0x74 - 801cad4: 4680 mov r8, r0 - 801cad6: 460c mov r4, r1 - 801cad8: 4616 mov r6, r2 - 801cada: d50f bpl.n 801cafc <_svfiprintf_r+0x34> - 801cadc: 690b ldr r3, [r1, #16] - 801cade: b96b cbnz r3, 801cafc <_svfiprintf_r+0x34> - 801cae0: 2140 movs r1, #64 ; 0x40 - 801cae2: f7ff ff3d bl 801c960 <_malloc_r> - 801cae6: 6020 str r0, [r4, #0] - 801cae8: 6120 str r0, [r4, #16] - 801caea: b928 cbnz r0, 801caf8 <_svfiprintf_r+0x30> - 801caec: 230c movs r3, #12 - 801caee: f8c8 3000 str.w r3, [r8] - 801caf2: f04f 30ff mov.w r0, #4294967295 - 801caf6: e0c8 b.n 801cc8a <_svfiprintf_r+0x1c2> - 801caf8: 2340 movs r3, #64 ; 0x40 - 801cafa: 6163 str r3, [r4, #20] - 801cafc: 2300 movs r3, #0 - 801cafe: 9309 str r3, [sp, #36] ; 0x24 - 801cb00: 2320 movs r3, #32 - 801cb02: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 801cb06: 2330 movs r3, #48 ; 0x30 - 801cb08: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 801cb0c: 9503 str r5, [sp, #12] - 801cb0e: f04f 0b01 mov.w fp, #1 - 801cb12: 4637 mov r7, r6 - 801cb14: 463d mov r5, r7 - 801cb16: f815 3b01 ldrb.w r3, [r5], #1 - 801cb1a: b10b cbz r3, 801cb20 <_svfiprintf_r+0x58> - 801cb1c: 2b25 cmp r3, #37 ; 0x25 - 801cb1e: d13e bne.n 801cb9e <_svfiprintf_r+0xd6> - 801cb20: ebb7 0a06 subs.w sl, r7, r6 - 801cb24: d00b beq.n 801cb3e <_svfiprintf_r+0x76> - 801cb26: 4653 mov r3, sl - 801cb28: 4632 mov r2, r6 - 801cb2a: 4621 mov r1, r4 - 801cb2c: 4640 mov r0, r8 - 801cb2e: f7ff ff71 bl 801ca14 <__ssputs_r> - 801cb32: 3001 adds r0, #1 - 801cb34: f000 80a4 beq.w 801cc80 <_svfiprintf_r+0x1b8> - 801cb38: 9b09 ldr r3, [sp, #36] ; 0x24 - 801cb3a: 4453 add r3, sl - 801cb3c: 9309 str r3, [sp, #36] ; 0x24 - 801cb3e: 783b ldrb r3, [r7, #0] - 801cb40: 2b00 cmp r3, #0 - 801cb42: f000 809d beq.w 801cc80 <_svfiprintf_r+0x1b8> - 801cb46: 2300 movs r3, #0 - 801cb48: f04f 32ff mov.w r2, #4294967295 - 801cb4c: e9cd 2305 strd r2, r3, [sp, #20] - 801cb50: 9304 str r3, [sp, #16] - 801cb52: 9307 str r3, [sp, #28] - 801cb54: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 801cb58: 931a str r3, [sp, #104] ; 0x68 - 801cb5a: 462f mov r7, r5 - 801cb5c: 2205 movs r2, #5 - 801cb5e: f817 1b01 ldrb.w r1, [r7], #1 - 801cb62: 4850 ldr r0, [pc, #320] ; (801cca4 <_svfiprintf_r+0x1dc>) - 801cb64: f7e3 fb54 bl 8000210 - 801cb68: 9b04 ldr r3, [sp, #16] - 801cb6a: b9d0 cbnz r0, 801cba2 <_svfiprintf_r+0xda> - 801cb6c: 06d9 lsls r1, r3, #27 - 801cb6e: bf44 itt mi - 801cb70: 2220 movmi r2, #32 - 801cb72: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53 - 801cb76: 071a lsls r2, r3, #28 - 801cb78: bf44 itt mi - 801cb7a: 222b movmi r2, #43 ; 0x2b - 801cb7c: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53 - 801cb80: 782a ldrb r2, [r5, #0] - 801cb82: 2a2a cmp r2, #42 ; 0x2a - 801cb84: d015 beq.n 801cbb2 <_svfiprintf_r+0xea> - 801cb86: 9a07 ldr r2, [sp, #28] - 801cb88: 462f mov r7, r5 - 801cb8a: 2000 movs r0, #0 - 801cb8c: 250a movs r5, #10 - 801cb8e: 4639 mov r1, r7 - 801cb90: f811 3b01 ldrb.w r3, [r1], #1 - 801cb94: 3b30 subs r3, #48 ; 0x30 - 801cb96: 2b09 cmp r3, #9 - 801cb98: d94d bls.n 801cc36 <_svfiprintf_r+0x16e> - 801cb9a: b1b8 cbz r0, 801cbcc <_svfiprintf_r+0x104> - 801cb9c: e00f b.n 801cbbe <_svfiprintf_r+0xf6> - 801cb9e: 462f mov r7, r5 - 801cba0: e7b8 b.n 801cb14 <_svfiprintf_r+0x4c> - 801cba2: 4a40 ldr r2, [pc, #256] ; (801cca4 <_svfiprintf_r+0x1dc>) - 801cba4: 1a80 subs r0, r0, r2 - 801cba6: fa0b f000 lsl.w r0, fp, r0 - 801cbaa: 4318 orrs r0, r3 - 801cbac: 9004 str r0, [sp, #16] - 801cbae: 463d mov r5, r7 - 801cbb0: e7d3 b.n 801cb5a <_svfiprintf_r+0x92> - 801cbb2: 9a03 ldr r2, [sp, #12] - 801cbb4: 1d11 adds r1, r2, #4 - 801cbb6: 6812 ldr r2, [r2, #0] - 801cbb8: 9103 str r1, [sp, #12] - 801cbba: 2a00 cmp r2, #0 - 801cbbc: db01 blt.n 801cbc2 <_svfiprintf_r+0xfa> - 801cbbe: 9207 str r2, [sp, #28] - 801cbc0: e004 b.n 801cbcc <_svfiprintf_r+0x104> - 801cbc2: 4252 negs r2, r2 - 801cbc4: f043 0302 orr.w r3, r3, #2 - 801cbc8: 9207 str r2, [sp, #28] - 801cbca: 9304 str r3, [sp, #16] - 801cbcc: 783b ldrb r3, [r7, #0] - 801cbce: 2b2e cmp r3, #46 ; 0x2e - 801cbd0: d10c bne.n 801cbec <_svfiprintf_r+0x124> - 801cbd2: 787b ldrb r3, [r7, #1] - 801cbd4: 2b2a cmp r3, #42 ; 0x2a - 801cbd6: d133 bne.n 801cc40 <_svfiprintf_r+0x178> - 801cbd8: 9b03 ldr r3, [sp, #12] - 801cbda: 1d1a adds r2, r3, #4 - 801cbdc: 681b ldr r3, [r3, #0] - 801cbde: 9203 str r2, [sp, #12] - 801cbe0: 2b00 cmp r3, #0 - 801cbe2: bfb8 it lt - 801cbe4: f04f 33ff movlt.w r3, #4294967295 - 801cbe8: 3702 adds r7, #2 - 801cbea: 9305 str r3, [sp, #20] - 801cbec: 4d2e ldr r5, [pc, #184] ; (801cca8 <_svfiprintf_r+0x1e0>) - 801cbee: 7839 ldrb r1, [r7, #0] - 801cbf0: 2203 movs r2, #3 - 801cbf2: 4628 mov r0, r5 - 801cbf4: f7e3 fb0c bl 8000210 - 801cbf8: b138 cbz r0, 801cc0a <_svfiprintf_r+0x142> - 801cbfa: 2340 movs r3, #64 ; 0x40 - 801cbfc: 1b40 subs r0, r0, r5 - 801cbfe: fa03 f000 lsl.w r0, r3, r0 - 801cc02: 9b04 ldr r3, [sp, #16] - 801cc04: 4303 orrs r3, r0 - 801cc06: 3701 adds r7, #1 - 801cc08: 9304 str r3, [sp, #16] - 801cc0a: 7839 ldrb r1, [r7, #0] - 801cc0c: 4827 ldr r0, [pc, #156] ; (801ccac <_svfiprintf_r+0x1e4>) - 801cc0e: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 801cc12: 2206 movs r2, #6 - 801cc14: 1c7e adds r6, r7, #1 - 801cc16: f7e3 fafb bl 8000210 - 801cc1a: 2800 cmp r0, #0 - 801cc1c: d038 beq.n 801cc90 <_svfiprintf_r+0x1c8> - 801cc1e: 4b24 ldr r3, [pc, #144] ; (801ccb0 <_svfiprintf_r+0x1e8>) - 801cc20: bb13 cbnz r3, 801cc68 <_svfiprintf_r+0x1a0> - 801cc22: 9b03 ldr r3, [sp, #12] - 801cc24: 3307 adds r3, #7 - 801cc26: f023 0307 bic.w r3, r3, #7 - 801cc2a: 3308 adds r3, #8 - 801cc2c: 9303 str r3, [sp, #12] - 801cc2e: 9b09 ldr r3, [sp, #36] ; 0x24 - 801cc30: 444b add r3, r9 - 801cc32: 9309 str r3, [sp, #36] ; 0x24 - 801cc34: e76d b.n 801cb12 <_svfiprintf_r+0x4a> - 801cc36: fb05 3202 mla r2, r5, r2, r3 - 801cc3a: 2001 movs r0, #1 - 801cc3c: 460f mov r7, r1 - 801cc3e: e7a6 b.n 801cb8e <_svfiprintf_r+0xc6> - 801cc40: 2300 movs r3, #0 - 801cc42: 3701 adds r7, #1 - 801cc44: 9305 str r3, [sp, #20] - 801cc46: 4619 mov r1, r3 - 801cc48: 250a movs r5, #10 - 801cc4a: 4638 mov r0, r7 - 801cc4c: f810 2b01 ldrb.w r2, [r0], #1 - 801cc50: 3a30 subs r2, #48 ; 0x30 - 801cc52: 2a09 cmp r2, #9 - 801cc54: d903 bls.n 801cc5e <_svfiprintf_r+0x196> - 801cc56: 2b00 cmp r3, #0 - 801cc58: d0c8 beq.n 801cbec <_svfiprintf_r+0x124> - 801cc5a: 9105 str r1, [sp, #20] - 801cc5c: e7c6 b.n 801cbec <_svfiprintf_r+0x124> - 801cc5e: fb05 2101 mla r1, r5, r1, r2 - 801cc62: 2301 movs r3, #1 - 801cc64: 4607 mov r7, r0 - 801cc66: e7f0 b.n 801cc4a <_svfiprintf_r+0x182> - 801cc68: ab03 add r3, sp, #12 - 801cc6a: 9300 str r3, [sp, #0] - 801cc6c: 4622 mov r2, r4 - 801cc6e: 4b11 ldr r3, [pc, #68] ; (801ccb4 <_svfiprintf_r+0x1ec>) - 801cc70: a904 add r1, sp, #16 - 801cc72: 4640 mov r0, r8 - 801cc74: f3af 8000 nop.w - 801cc78: f1b0 3fff cmp.w r0, #4294967295 - 801cc7c: 4681 mov r9, r0 - 801cc7e: d1d6 bne.n 801cc2e <_svfiprintf_r+0x166> - 801cc80: 89a3 ldrh r3, [r4, #12] - 801cc82: 065b lsls r3, r3, #25 - 801cc84: f53f af35 bmi.w 801caf2 <_svfiprintf_r+0x2a> - 801cc88: 9809 ldr r0, [sp, #36] ; 0x24 - 801cc8a: b01d add sp, #116 ; 0x74 - 801cc8c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 801cc90: ab03 add r3, sp, #12 - 801cc92: 9300 str r3, [sp, #0] - 801cc94: 4622 mov r2, r4 - 801cc96: 4b07 ldr r3, [pc, #28] ; (801ccb4 <_svfiprintf_r+0x1ec>) - 801cc98: a904 add r1, sp, #16 - 801cc9a: 4640 mov r0, r8 - 801cc9c: f000 f9c2 bl 801d024 <_printf_i> - 801cca0: e7ea b.n 801cc78 <_svfiprintf_r+0x1b0> - 801cca2: bf00 nop - 801cca4: 0802287c .word 0x0802287c - 801cca8: 08022882 .word 0x08022882 - 801ccac: 08022886 .word 0x08022886 - 801ccb0: 00000000 .word 0x00000000 - 801ccb4: 0801ca15 .word 0x0801ca15 - -0801ccb8 <__sfputc_r>: - 801ccb8: 6893 ldr r3, [r2, #8] - 801ccba: 3b01 subs r3, #1 - 801ccbc: 2b00 cmp r3, #0 - 801ccbe: b410 push {r4} - 801ccc0: 6093 str r3, [r2, #8] - 801ccc2: da08 bge.n 801ccd6 <__sfputc_r+0x1e> - 801ccc4: 6994 ldr r4, [r2, #24] - 801ccc6: 42a3 cmp r3, r4 - 801ccc8: db01 blt.n 801ccce <__sfputc_r+0x16> - 801ccca: 290a cmp r1, #10 - 801cccc: d103 bne.n 801ccd6 <__sfputc_r+0x1e> - 801ccce: f85d 4b04 ldr.w r4, [sp], #4 - 801ccd2: f000 bb0d b.w 801d2f0 <__swbuf_r> - 801ccd6: 6813 ldr r3, [r2, #0] - 801ccd8: 1c58 adds r0, r3, #1 - 801ccda: 6010 str r0, [r2, #0] - 801ccdc: 7019 strb r1, [r3, #0] - 801ccde: 4608 mov r0, r1 - 801cce0: f85d 4b04 ldr.w r4, [sp], #4 - 801cce4: 4770 bx lr - -0801cce6 <__sfputs_r>: - 801cce6: b5f8 push {r3, r4, r5, r6, r7, lr} - 801cce8: 4606 mov r6, r0 - 801ccea: 460f mov r7, r1 - 801ccec: 4614 mov r4, r2 - 801ccee: 18d5 adds r5, r2, r3 - 801ccf0: 42ac cmp r4, r5 - 801ccf2: d101 bne.n 801ccf8 <__sfputs_r+0x12> - 801ccf4: 2000 movs r0, #0 - 801ccf6: e007 b.n 801cd08 <__sfputs_r+0x22> - 801ccf8: 463a mov r2, r7 - 801ccfa: f814 1b01 ldrb.w r1, [r4], #1 - 801ccfe: 4630 mov r0, r6 - 801cd00: f7ff ffda bl 801ccb8 <__sfputc_r> - 801cd04: 1c43 adds r3, r0, #1 - 801cd06: d1f3 bne.n 801ccf0 <__sfputs_r+0xa> - 801cd08: bdf8 pop {r3, r4, r5, r6, r7, pc} + 801c934: 1858 adds r0, r3, r1 + 801c936: 4282 cmp r2, r0 + 801c938: 6019 str r1, [r3, #0] + 801c93a: d1dd bne.n 801c8f8 <_free_r+0x24> + 801c93c: 6810 ldr r0, [r2, #0] + 801c93e: 6852 ldr r2, [r2, #4] + 801c940: 605a str r2, [r3, #4] + 801c942: 4401 add r1, r0 + 801c944: 6019 str r1, [r3, #0] + 801c946: e7d7 b.n 801c8f8 <_free_r+0x24> + 801c948: d902 bls.n 801c950 <_free_r+0x7c> + 801c94a: 230c movs r3, #12 + 801c94c: 602b str r3, [r5, #0] + 801c94e: e7d3 b.n 801c8f8 <_free_r+0x24> + 801c950: 6820 ldr r0, [r4, #0] + 801c952: 1821 adds r1, r4, r0 + 801c954: 428a cmp r2, r1 + 801c956: bf04 itt eq + 801c958: 6811 ldreq r1, [r2, #0] + 801c95a: 6852 ldreq r2, [r2, #4] + 801c95c: 6062 str r2, [r4, #4] + 801c95e: bf04 itt eq + 801c960: 1809 addeq r1, r1, r0 + 801c962: 6021 streq r1, [r4, #0] + 801c964: 605c str r4, [r3, #4] + 801c966: e7c7 b.n 801c8f8 <_free_r+0x24> + 801c968: bd38 pop {r3, r4, r5, pc} + 801c96a: bf00 nop + 801c96c: 20008868 .word 0x20008868 + +0801c970 <_malloc_r>: + 801c970: b570 push {r4, r5, r6, lr} + 801c972: 1ccd adds r5, r1, #3 + 801c974: f025 0503 bic.w r5, r5, #3 + 801c978: 3508 adds r5, #8 + 801c97a: 2d0c cmp r5, #12 + 801c97c: bf38 it cc + 801c97e: 250c movcc r5, #12 + 801c980: 2d00 cmp r5, #0 + 801c982: 4606 mov r6, r0 + 801c984: db01 blt.n 801c98a <_malloc_r+0x1a> + 801c986: 42a9 cmp r1, r5 + 801c988: d903 bls.n 801c992 <_malloc_r+0x22> + 801c98a: 230c movs r3, #12 + 801c98c: 6033 str r3, [r6, #0] + 801c98e: 2000 movs r0, #0 + 801c990: bd70 pop {r4, r5, r6, pc} + 801c992: f000 febd bl 801d710 <__malloc_lock> + 801c996: 4a21 ldr r2, [pc, #132] ; (801ca1c <_malloc_r+0xac>) + 801c998: 6814 ldr r4, [r2, #0] + 801c99a: 4621 mov r1, r4 + 801c99c: b991 cbnz r1, 801c9c4 <_malloc_r+0x54> + 801c99e: 4c20 ldr r4, [pc, #128] ; (801ca20 <_malloc_r+0xb0>) + 801c9a0: 6823 ldr r3, [r4, #0] + 801c9a2: b91b cbnz r3, 801c9ac <_malloc_r+0x3c> + 801c9a4: 4630 mov r0, r6 + 801c9a6: f000 fc57 bl 801d258 <_sbrk_r> + 801c9aa: 6020 str r0, [r4, #0] + 801c9ac: 4629 mov r1, r5 + 801c9ae: 4630 mov r0, r6 + 801c9b0: f000 fc52 bl 801d258 <_sbrk_r> + 801c9b4: 1c43 adds r3, r0, #1 + 801c9b6: d124 bne.n 801ca02 <_malloc_r+0x92> + 801c9b8: 230c movs r3, #12 + 801c9ba: 6033 str r3, [r6, #0] + 801c9bc: 4630 mov r0, r6 + 801c9be: f000 fea8 bl 801d712 <__malloc_unlock> + 801c9c2: e7e4 b.n 801c98e <_malloc_r+0x1e> + 801c9c4: 680b ldr r3, [r1, #0] + 801c9c6: 1b5b subs r3, r3, r5 + 801c9c8: d418 bmi.n 801c9fc <_malloc_r+0x8c> + 801c9ca: 2b0b cmp r3, #11 + 801c9cc: d90f bls.n 801c9ee <_malloc_r+0x7e> + 801c9ce: 600b str r3, [r1, #0] + 801c9d0: 50cd str r5, [r1, r3] + 801c9d2: 18cc adds r4, r1, r3 + 801c9d4: 4630 mov r0, r6 + 801c9d6: f000 fe9c bl 801d712 <__malloc_unlock> + 801c9da: f104 000b add.w r0, r4, #11 + 801c9de: 1d23 adds r3, r4, #4 + 801c9e0: f020 0007 bic.w r0, r0, #7 + 801c9e4: 1ac3 subs r3, r0, r3 + 801c9e6: d0d3 beq.n 801c990 <_malloc_r+0x20> + 801c9e8: 425a negs r2, r3 + 801c9ea: 50e2 str r2, [r4, r3] + 801c9ec: e7d0 b.n 801c990 <_malloc_r+0x20> + 801c9ee: 428c cmp r4, r1 + 801c9f0: 684b ldr r3, [r1, #4] + 801c9f2: bf16 itet ne + 801c9f4: 6063 strne r3, [r4, #4] + 801c9f6: 6013 streq r3, [r2, #0] + 801c9f8: 460c movne r4, r1 + 801c9fa: e7eb b.n 801c9d4 <_malloc_r+0x64> + 801c9fc: 460c mov r4, r1 + 801c9fe: 6849 ldr r1, [r1, #4] + 801ca00: e7cc b.n 801c99c <_malloc_r+0x2c> + 801ca02: 1cc4 adds r4, r0, #3 + 801ca04: f024 0403 bic.w r4, r4, #3 + 801ca08: 42a0 cmp r0, r4 + 801ca0a: d005 beq.n 801ca18 <_malloc_r+0xa8> + 801ca0c: 1a21 subs r1, r4, r0 + 801ca0e: 4630 mov r0, r6 + 801ca10: f000 fc22 bl 801d258 <_sbrk_r> + 801ca14: 3001 adds r0, #1 + 801ca16: d0cf beq.n 801c9b8 <_malloc_r+0x48> + 801ca18: 6025 str r5, [r4, #0] + 801ca1a: e7db b.n 801c9d4 <_malloc_r+0x64> + 801ca1c: 20008868 .word 0x20008868 + 801ca20: 2000886c .word 0x2000886c + +0801ca24 <__ssputs_r>: + 801ca24: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 801ca28: 688e ldr r6, [r1, #8] + 801ca2a: 429e cmp r6, r3 + 801ca2c: 4682 mov sl, r0 + 801ca2e: 460c mov r4, r1 + 801ca30: 4690 mov r8, r2 + 801ca32: 4699 mov r9, r3 + 801ca34: d837 bhi.n 801caa6 <__ssputs_r+0x82> + 801ca36: 898a ldrh r2, [r1, #12] + 801ca38: f412 6f90 tst.w r2, #1152 ; 0x480 + 801ca3c: d031 beq.n 801caa2 <__ssputs_r+0x7e> + 801ca3e: 6825 ldr r5, [r4, #0] + 801ca40: 6909 ldr r1, [r1, #16] + 801ca42: 1a6f subs r7, r5, r1 + 801ca44: 6965 ldr r5, [r4, #20] + 801ca46: 2302 movs r3, #2 + 801ca48: eb05 0545 add.w r5, r5, r5, lsl #1 + 801ca4c: fb95 f5f3 sdiv r5, r5, r3 + 801ca50: f109 0301 add.w r3, r9, #1 + 801ca54: 443b add r3, r7 + 801ca56: 429d cmp r5, r3 + 801ca58: bf38 it cc + 801ca5a: 461d movcc r5, r3 + 801ca5c: 0553 lsls r3, r2, #21 + 801ca5e: d530 bpl.n 801cac2 <__ssputs_r+0x9e> + 801ca60: 4629 mov r1, r5 + 801ca62: f7ff ff85 bl 801c970 <_malloc_r> + 801ca66: 4606 mov r6, r0 + 801ca68: b950 cbnz r0, 801ca80 <__ssputs_r+0x5c> + 801ca6a: 230c movs r3, #12 + 801ca6c: f8ca 3000 str.w r3, [sl] + 801ca70: 89a3 ldrh r3, [r4, #12] + 801ca72: f043 0340 orr.w r3, r3, #64 ; 0x40 + 801ca76: 81a3 strh r3, [r4, #12] + 801ca78: f04f 30ff mov.w r0, #4294967295 + 801ca7c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 801ca80: 463a mov r2, r7 + 801ca82: 6921 ldr r1, [r4, #16] + 801ca84: f7ff fdbb bl 801c5fe + 801ca88: 89a3 ldrh r3, [r4, #12] + 801ca8a: f423 6390 bic.w r3, r3, #1152 ; 0x480 + 801ca8e: f043 0380 orr.w r3, r3, #128 ; 0x80 + 801ca92: 81a3 strh r3, [r4, #12] + 801ca94: 6126 str r6, [r4, #16] + 801ca96: 6165 str r5, [r4, #20] + 801ca98: 443e add r6, r7 + 801ca9a: 1bed subs r5, r5, r7 + 801ca9c: 6026 str r6, [r4, #0] + 801ca9e: 60a5 str r5, [r4, #8] + 801caa0: 464e mov r6, r9 + 801caa2: 454e cmp r6, r9 + 801caa4: d900 bls.n 801caa8 <__ssputs_r+0x84> + 801caa6: 464e mov r6, r9 + 801caa8: 4632 mov r2, r6 + 801caaa: 4641 mov r1, r8 + 801caac: 6820 ldr r0, [r4, #0] + 801caae: f7ff fdb1 bl 801c614 + 801cab2: 68a3 ldr r3, [r4, #8] + 801cab4: 1b9b subs r3, r3, r6 + 801cab6: 60a3 str r3, [r4, #8] + 801cab8: 6823 ldr r3, [r4, #0] + 801caba: 441e add r6, r3 + 801cabc: 6026 str r6, [r4, #0] + 801cabe: 2000 movs r0, #0 + 801cac0: e7dc b.n 801ca7c <__ssputs_r+0x58> + 801cac2: 462a mov r2, r5 + 801cac4: f000 fe26 bl 801d714 <_realloc_r> + 801cac8: 4606 mov r6, r0 + 801caca: 2800 cmp r0, #0 + 801cacc: d1e2 bne.n 801ca94 <__ssputs_r+0x70> + 801cace: 6921 ldr r1, [r4, #16] + 801cad0: 4650 mov r0, sl + 801cad2: f7ff feff bl 801c8d4 <_free_r> + 801cad6: e7c8 b.n 801ca6a <__ssputs_r+0x46> + +0801cad8 <_svfiprintf_r>: + 801cad8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 801cadc: 461d mov r5, r3 + 801cade: 898b ldrh r3, [r1, #12] + 801cae0: 061f lsls r7, r3, #24 + 801cae2: b09d sub sp, #116 ; 0x74 + 801cae4: 4680 mov r8, r0 + 801cae6: 460c mov r4, r1 + 801cae8: 4616 mov r6, r2 + 801caea: d50f bpl.n 801cb0c <_svfiprintf_r+0x34> + 801caec: 690b ldr r3, [r1, #16] + 801caee: b96b cbnz r3, 801cb0c <_svfiprintf_r+0x34> + 801caf0: 2140 movs r1, #64 ; 0x40 + 801caf2: f7ff ff3d bl 801c970 <_malloc_r> + 801caf6: 6020 str r0, [r4, #0] + 801caf8: 6120 str r0, [r4, #16] + 801cafa: b928 cbnz r0, 801cb08 <_svfiprintf_r+0x30> + 801cafc: 230c movs r3, #12 + 801cafe: f8c8 3000 str.w r3, [r8] + 801cb02: f04f 30ff mov.w r0, #4294967295 + 801cb06: e0c8 b.n 801cc9a <_svfiprintf_r+0x1c2> + 801cb08: 2340 movs r3, #64 ; 0x40 + 801cb0a: 6163 str r3, [r4, #20] + 801cb0c: 2300 movs r3, #0 + 801cb0e: 9309 str r3, [sp, #36] ; 0x24 + 801cb10: 2320 movs r3, #32 + 801cb12: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 801cb16: 2330 movs r3, #48 ; 0x30 + 801cb18: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 801cb1c: 9503 str r5, [sp, #12] + 801cb1e: f04f 0b01 mov.w fp, #1 + 801cb22: 4637 mov r7, r6 + 801cb24: 463d mov r5, r7 + 801cb26: f815 3b01 ldrb.w r3, [r5], #1 + 801cb2a: b10b cbz r3, 801cb30 <_svfiprintf_r+0x58> + 801cb2c: 2b25 cmp r3, #37 ; 0x25 + 801cb2e: d13e bne.n 801cbae <_svfiprintf_r+0xd6> + 801cb30: ebb7 0a06 subs.w sl, r7, r6 + 801cb34: d00b beq.n 801cb4e <_svfiprintf_r+0x76> + 801cb36: 4653 mov r3, sl + 801cb38: 4632 mov r2, r6 + 801cb3a: 4621 mov r1, r4 + 801cb3c: 4640 mov r0, r8 + 801cb3e: f7ff ff71 bl 801ca24 <__ssputs_r> + 801cb42: 3001 adds r0, #1 + 801cb44: f000 80a4 beq.w 801cc90 <_svfiprintf_r+0x1b8> + 801cb48: 9b09 ldr r3, [sp, #36] ; 0x24 + 801cb4a: 4453 add r3, sl + 801cb4c: 9309 str r3, [sp, #36] ; 0x24 + 801cb4e: 783b ldrb r3, [r7, #0] + 801cb50: 2b00 cmp r3, #0 + 801cb52: f000 809d beq.w 801cc90 <_svfiprintf_r+0x1b8> + 801cb56: 2300 movs r3, #0 + 801cb58: f04f 32ff mov.w r2, #4294967295 + 801cb5c: e9cd 2305 strd r2, r3, [sp, #20] + 801cb60: 9304 str r3, [sp, #16] + 801cb62: 9307 str r3, [sp, #28] + 801cb64: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 801cb68: 931a str r3, [sp, #104] ; 0x68 + 801cb6a: 462f mov r7, r5 + 801cb6c: 2205 movs r2, #5 + 801cb6e: f817 1b01 ldrb.w r1, [r7], #1 + 801cb72: 4850 ldr r0, [pc, #320] ; (801ccb4 <_svfiprintf_r+0x1dc>) + 801cb74: f7e3 fb4c bl 8000210 + 801cb78: 9b04 ldr r3, [sp, #16] + 801cb7a: b9d0 cbnz r0, 801cbb2 <_svfiprintf_r+0xda> + 801cb7c: 06d9 lsls r1, r3, #27 + 801cb7e: bf44 itt mi + 801cb80: 2220 movmi r2, #32 + 801cb82: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53 + 801cb86: 071a lsls r2, r3, #28 + 801cb88: bf44 itt mi + 801cb8a: 222b movmi r2, #43 ; 0x2b + 801cb8c: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53 + 801cb90: 782a ldrb r2, [r5, #0] + 801cb92: 2a2a cmp r2, #42 ; 0x2a + 801cb94: d015 beq.n 801cbc2 <_svfiprintf_r+0xea> + 801cb96: 9a07 ldr r2, [sp, #28] + 801cb98: 462f mov r7, r5 + 801cb9a: 2000 movs r0, #0 + 801cb9c: 250a movs r5, #10 + 801cb9e: 4639 mov r1, r7 + 801cba0: f811 3b01 ldrb.w r3, [r1], #1 + 801cba4: 3b30 subs r3, #48 ; 0x30 + 801cba6: 2b09 cmp r3, #9 + 801cba8: d94d bls.n 801cc46 <_svfiprintf_r+0x16e> + 801cbaa: b1b8 cbz r0, 801cbdc <_svfiprintf_r+0x104> + 801cbac: e00f b.n 801cbce <_svfiprintf_r+0xf6> + 801cbae: 462f mov r7, r5 + 801cbb0: e7b8 b.n 801cb24 <_svfiprintf_r+0x4c> + 801cbb2: 4a40 ldr r2, [pc, #256] ; (801ccb4 <_svfiprintf_r+0x1dc>) + 801cbb4: 1a80 subs r0, r0, r2 + 801cbb6: fa0b f000 lsl.w r0, fp, r0 + 801cbba: 4318 orrs r0, r3 + 801cbbc: 9004 str r0, [sp, #16] + 801cbbe: 463d mov r5, r7 + 801cbc0: e7d3 b.n 801cb6a <_svfiprintf_r+0x92> + 801cbc2: 9a03 ldr r2, [sp, #12] + 801cbc4: 1d11 adds r1, r2, #4 + 801cbc6: 6812 ldr r2, [r2, #0] + 801cbc8: 9103 str r1, [sp, #12] + 801cbca: 2a00 cmp r2, #0 + 801cbcc: db01 blt.n 801cbd2 <_svfiprintf_r+0xfa> + 801cbce: 9207 str r2, [sp, #28] + 801cbd0: e004 b.n 801cbdc <_svfiprintf_r+0x104> + 801cbd2: 4252 negs r2, r2 + 801cbd4: f043 0302 orr.w r3, r3, #2 + 801cbd8: 9207 str r2, [sp, #28] + 801cbda: 9304 str r3, [sp, #16] + 801cbdc: 783b ldrb r3, [r7, #0] + 801cbde: 2b2e cmp r3, #46 ; 0x2e + 801cbe0: d10c bne.n 801cbfc <_svfiprintf_r+0x124> + 801cbe2: 787b ldrb r3, [r7, #1] + 801cbe4: 2b2a cmp r3, #42 ; 0x2a + 801cbe6: d133 bne.n 801cc50 <_svfiprintf_r+0x178> + 801cbe8: 9b03 ldr r3, [sp, #12] + 801cbea: 1d1a adds r2, r3, #4 + 801cbec: 681b ldr r3, [r3, #0] + 801cbee: 9203 str r2, [sp, #12] + 801cbf0: 2b00 cmp r3, #0 + 801cbf2: bfb8 it lt + 801cbf4: f04f 33ff movlt.w r3, #4294967295 + 801cbf8: 3702 adds r7, #2 + 801cbfa: 9305 str r3, [sp, #20] + 801cbfc: 4d2e ldr r5, [pc, #184] ; (801ccb8 <_svfiprintf_r+0x1e0>) + 801cbfe: 7839 ldrb r1, [r7, #0] + 801cc00: 2203 movs r2, #3 + 801cc02: 4628 mov r0, r5 + 801cc04: f7e3 fb04 bl 8000210 + 801cc08: b138 cbz r0, 801cc1a <_svfiprintf_r+0x142> + 801cc0a: 2340 movs r3, #64 ; 0x40 + 801cc0c: 1b40 subs r0, r0, r5 + 801cc0e: fa03 f000 lsl.w r0, r3, r0 + 801cc12: 9b04 ldr r3, [sp, #16] + 801cc14: 4303 orrs r3, r0 + 801cc16: 3701 adds r7, #1 + 801cc18: 9304 str r3, [sp, #16] + 801cc1a: 7839 ldrb r1, [r7, #0] + 801cc1c: 4827 ldr r0, [pc, #156] ; (801ccbc <_svfiprintf_r+0x1e4>) + 801cc1e: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 801cc22: 2206 movs r2, #6 + 801cc24: 1c7e adds r6, r7, #1 + 801cc26: f7e3 faf3 bl 8000210 + 801cc2a: 2800 cmp r0, #0 + 801cc2c: d038 beq.n 801cca0 <_svfiprintf_r+0x1c8> + 801cc2e: 4b24 ldr r3, [pc, #144] ; (801ccc0 <_svfiprintf_r+0x1e8>) + 801cc30: bb13 cbnz r3, 801cc78 <_svfiprintf_r+0x1a0> + 801cc32: 9b03 ldr r3, [sp, #12] + 801cc34: 3307 adds r3, #7 + 801cc36: f023 0307 bic.w r3, r3, #7 + 801cc3a: 3308 adds r3, #8 + 801cc3c: 9303 str r3, [sp, #12] + 801cc3e: 9b09 ldr r3, [sp, #36] ; 0x24 + 801cc40: 444b add r3, r9 + 801cc42: 9309 str r3, [sp, #36] ; 0x24 + 801cc44: e76d b.n 801cb22 <_svfiprintf_r+0x4a> + 801cc46: fb05 3202 mla r2, r5, r2, r3 + 801cc4a: 2001 movs r0, #1 + 801cc4c: 460f mov r7, r1 + 801cc4e: e7a6 b.n 801cb9e <_svfiprintf_r+0xc6> + 801cc50: 2300 movs r3, #0 + 801cc52: 3701 adds r7, #1 + 801cc54: 9305 str r3, [sp, #20] + 801cc56: 4619 mov r1, r3 + 801cc58: 250a movs r5, #10 + 801cc5a: 4638 mov r0, r7 + 801cc5c: f810 2b01 ldrb.w r2, [r0], #1 + 801cc60: 3a30 subs r2, #48 ; 0x30 + 801cc62: 2a09 cmp r2, #9 + 801cc64: d903 bls.n 801cc6e <_svfiprintf_r+0x196> + 801cc66: 2b00 cmp r3, #0 + 801cc68: d0c8 beq.n 801cbfc <_svfiprintf_r+0x124> + 801cc6a: 9105 str r1, [sp, #20] + 801cc6c: e7c6 b.n 801cbfc <_svfiprintf_r+0x124> + 801cc6e: fb05 2101 mla r1, r5, r1, r2 + 801cc72: 2301 movs r3, #1 + 801cc74: 4607 mov r7, r0 + 801cc76: e7f0 b.n 801cc5a <_svfiprintf_r+0x182> + 801cc78: ab03 add r3, sp, #12 + 801cc7a: 9300 str r3, [sp, #0] + 801cc7c: 4622 mov r2, r4 + 801cc7e: 4b11 ldr r3, [pc, #68] ; (801ccc4 <_svfiprintf_r+0x1ec>) + 801cc80: a904 add r1, sp, #16 + 801cc82: 4640 mov r0, r8 + 801cc84: f3af 8000 nop.w + 801cc88: f1b0 3fff cmp.w r0, #4294967295 + 801cc8c: 4681 mov r9, r0 + 801cc8e: d1d6 bne.n 801cc3e <_svfiprintf_r+0x166> + 801cc90: 89a3 ldrh r3, [r4, #12] + 801cc92: 065b lsls r3, r3, #25 + 801cc94: f53f af35 bmi.w 801cb02 <_svfiprintf_r+0x2a> + 801cc98: 9809 ldr r0, [sp, #36] ; 0x24 + 801cc9a: b01d add sp, #116 ; 0x74 + 801cc9c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 801cca0: ab03 add r3, sp, #12 + 801cca2: 9300 str r3, [sp, #0] + 801cca4: 4622 mov r2, r4 + 801cca6: 4b07 ldr r3, [pc, #28] ; (801ccc4 <_svfiprintf_r+0x1ec>) + 801cca8: a904 add r1, sp, #16 + 801ccaa: 4640 mov r0, r8 + 801ccac: f000 f9c2 bl 801d034 <_printf_i> + 801ccb0: e7ea b.n 801cc88 <_svfiprintf_r+0x1b0> + 801ccb2: bf00 nop + 801ccb4: 0802288c .word 0x0802288c + 801ccb8: 08022892 .word 0x08022892 + 801ccbc: 08022896 .word 0x08022896 + 801ccc0: 00000000 .word 0x00000000 + 801ccc4: 0801ca25 .word 0x0801ca25 + +0801ccc8 <__sfputc_r>: + 801ccc8: 6893 ldr r3, [r2, #8] + 801ccca: 3b01 subs r3, #1 + 801cccc: 2b00 cmp r3, #0 + 801ccce: b410 push {r4} + 801ccd0: 6093 str r3, [r2, #8] + 801ccd2: da08 bge.n 801cce6 <__sfputc_r+0x1e> + 801ccd4: 6994 ldr r4, [r2, #24] + 801ccd6: 42a3 cmp r3, r4 + 801ccd8: db01 blt.n 801ccde <__sfputc_r+0x16> + 801ccda: 290a cmp r1, #10 + 801ccdc: d103 bne.n 801cce6 <__sfputc_r+0x1e> + 801ccde: f85d 4b04 ldr.w r4, [sp], #4 + 801cce2: f000 bb0d b.w 801d300 <__swbuf_r> + 801cce6: 6813 ldr r3, [r2, #0] + 801cce8: 1c58 adds r0, r3, #1 + 801ccea: 6010 str r0, [r2, #0] + 801ccec: 7019 strb r1, [r3, #0] + 801ccee: 4608 mov r0, r1 + 801ccf0: f85d 4b04 ldr.w r4, [sp], #4 + 801ccf4: 4770 bx lr + +0801ccf6 <__sfputs_r>: + 801ccf6: b5f8 push {r3, r4, r5, r6, r7, lr} + 801ccf8: 4606 mov r6, r0 + 801ccfa: 460f mov r7, r1 + 801ccfc: 4614 mov r4, r2 + 801ccfe: 18d5 adds r5, r2, r3 + 801cd00: 42ac cmp r4, r5 + 801cd02: d101 bne.n 801cd08 <__sfputs_r+0x12> + 801cd04: 2000 movs r0, #0 + 801cd06: e007 b.n 801cd18 <__sfputs_r+0x22> + 801cd08: 463a mov r2, r7 + 801cd0a: f814 1b01 ldrb.w r1, [r4], #1 + 801cd0e: 4630 mov r0, r6 + 801cd10: f7ff ffda bl 801ccc8 <__sfputc_r> + 801cd14: 1c43 adds r3, r0, #1 + 801cd16: d1f3 bne.n 801cd00 <__sfputs_r+0xa> + 801cd18: bdf8 pop {r3, r4, r5, r6, r7, pc} ... -0801cd0c <_vfiprintf_r>: - 801cd0c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} - 801cd10: 460c mov r4, r1 - 801cd12: b09d sub sp, #116 ; 0x74 - 801cd14: 4617 mov r7, r2 - 801cd16: 461d mov r5, r3 - 801cd18: 4606 mov r6, r0 - 801cd1a: b118 cbz r0, 801cd24 <_vfiprintf_r+0x18> - 801cd1c: 6983 ldr r3, [r0, #24] - 801cd1e: b90b cbnz r3, 801cd24 <_vfiprintf_r+0x18> - 801cd20: f7ff fd3e bl 801c7a0 <__sinit> - 801cd24: 4b7c ldr r3, [pc, #496] ; (801cf18 <_vfiprintf_r+0x20c>) - 801cd26: 429c cmp r4, r3 - 801cd28: d158 bne.n 801cddc <_vfiprintf_r+0xd0> - 801cd2a: 6874 ldr r4, [r6, #4] - 801cd2c: 89a3 ldrh r3, [r4, #12] - 801cd2e: 0718 lsls r0, r3, #28 - 801cd30: d55e bpl.n 801cdf0 <_vfiprintf_r+0xe4> - 801cd32: 6923 ldr r3, [r4, #16] - 801cd34: 2b00 cmp r3, #0 - 801cd36: d05b beq.n 801cdf0 <_vfiprintf_r+0xe4> - 801cd38: 2300 movs r3, #0 - 801cd3a: 9309 str r3, [sp, #36] ; 0x24 - 801cd3c: 2320 movs r3, #32 - 801cd3e: f88d 3029 strb.w r3, [sp, #41] ; 0x29 - 801cd42: 2330 movs r3, #48 ; 0x30 - 801cd44: f88d 302a strb.w r3, [sp, #42] ; 0x2a - 801cd48: 9503 str r5, [sp, #12] - 801cd4a: f04f 0b01 mov.w fp, #1 - 801cd4e: 46b8 mov r8, r7 - 801cd50: 4645 mov r5, r8 - 801cd52: f815 3b01 ldrb.w r3, [r5], #1 - 801cd56: b10b cbz r3, 801cd5c <_vfiprintf_r+0x50> - 801cd58: 2b25 cmp r3, #37 ; 0x25 - 801cd5a: d154 bne.n 801ce06 <_vfiprintf_r+0xfa> - 801cd5c: ebb8 0a07 subs.w sl, r8, r7 - 801cd60: d00b beq.n 801cd7a <_vfiprintf_r+0x6e> - 801cd62: 4653 mov r3, sl - 801cd64: 463a mov r2, r7 - 801cd66: 4621 mov r1, r4 - 801cd68: 4630 mov r0, r6 - 801cd6a: f7ff ffbc bl 801cce6 <__sfputs_r> - 801cd6e: 3001 adds r0, #1 - 801cd70: f000 80c2 beq.w 801cef8 <_vfiprintf_r+0x1ec> - 801cd74: 9b09 ldr r3, [sp, #36] ; 0x24 - 801cd76: 4453 add r3, sl - 801cd78: 9309 str r3, [sp, #36] ; 0x24 - 801cd7a: f898 3000 ldrb.w r3, [r8] - 801cd7e: 2b00 cmp r3, #0 - 801cd80: f000 80ba beq.w 801cef8 <_vfiprintf_r+0x1ec> - 801cd84: 2300 movs r3, #0 - 801cd86: f04f 32ff mov.w r2, #4294967295 - 801cd8a: e9cd 2305 strd r2, r3, [sp, #20] - 801cd8e: 9304 str r3, [sp, #16] - 801cd90: 9307 str r3, [sp, #28] - 801cd92: f88d 3053 strb.w r3, [sp, #83] ; 0x53 - 801cd96: 931a str r3, [sp, #104] ; 0x68 - 801cd98: 46a8 mov r8, r5 - 801cd9a: 2205 movs r2, #5 - 801cd9c: f818 1b01 ldrb.w r1, [r8], #1 - 801cda0: 485e ldr r0, [pc, #376] ; (801cf1c <_vfiprintf_r+0x210>) - 801cda2: f7e3 fa35 bl 8000210 - 801cda6: 9b04 ldr r3, [sp, #16] - 801cda8: bb78 cbnz r0, 801ce0a <_vfiprintf_r+0xfe> - 801cdaa: 06d9 lsls r1, r3, #27 - 801cdac: bf44 itt mi - 801cdae: 2220 movmi r2, #32 - 801cdb0: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53 - 801cdb4: 071a lsls r2, r3, #28 - 801cdb6: bf44 itt mi - 801cdb8: 222b movmi r2, #43 ; 0x2b - 801cdba: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53 - 801cdbe: 782a ldrb r2, [r5, #0] - 801cdc0: 2a2a cmp r2, #42 ; 0x2a - 801cdc2: d02a beq.n 801ce1a <_vfiprintf_r+0x10e> - 801cdc4: 9a07 ldr r2, [sp, #28] - 801cdc6: 46a8 mov r8, r5 - 801cdc8: 2000 movs r0, #0 - 801cdca: 250a movs r5, #10 - 801cdcc: 4641 mov r1, r8 - 801cdce: f811 3b01 ldrb.w r3, [r1], #1 - 801cdd2: 3b30 subs r3, #48 ; 0x30 - 801cdd4: 2b09 cmp r3, #9 - 801cdd6: d969 bls.n 801ceac <_vfiprintf_r+0x1a0> - 801cdd8: b360 cbz r0, 801ce34 <_vfiprintf_r+0x128> - 801cdda: e024 b.n 801ce26 <_vfiprintf_r+0x11a> - 801cddc: 4b50 ldr r3, [pc, #320] ; (801cf20 <_vfiprintf_r+0x214>) - 801cdde: 429c cmp r4, r3 - 801cde0: d101 bne.n 801cde6 <_vfiprintf_r+0xda> - 801cde2: 68b4 ldr r4, [r6, #8] - 801cde4: e7a2 b.n 801cd2c <_vfiprintf_r+0x20> - 801cde6: 4b4f ldr r3, [pc, #316] ; (801cf24 <_vfiprintf_r+0x218>) - 801cde8: 429c cmp r4, r3 - 801cdea: bf08 it eq - 801cdec: 68f4 ldreq r4, [r6, #12] - 801cdee: e79d b.n 801cd2c <_vfiprintf_r+0x20> - 801cdf0: 4621 mov r1, r4 - 801cdf2: 4630 mov r0, r6 - 801cdf4: f000 fae0 bl 801d3b8 <__swsetup_r> - 801cdf8: 2800 cmp r0, #0 - 801cdfa: d09d beq.n 801cd38 <_vfiprintf_r+0x2c> - 801cdfc: f04f 30ff mov.w r0, #4294967295 - 801ce00: b01d add sp, #116 ; 0x74 - 801ce02: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} - 801ce06: 46a8 mov r8, r5 - 801ce08: e7a2 b.n 801cd50 <_vfiprintf_r+0x44> - 801ce0a: 4a44 ldr r2, [pc, #272] ; (801cf1c <_vfiprintf_r+0x210>) - 801ce0c: 1a80 subs r0, r0, r2 - 801ce0e: fa0b f000 lsl.w r0, fp, r0 - 801ce12: 4318 orrs r0, r3 - 801ce14: 9004 str r0, [sp, #16] - 801ce16: 4645 mov r5, r8 - 801ce18: e7be b.n 801cd98 <_vfiprintf_r+0x8c> - 801ce1a: 9a03 ldr r2, [sp, #12] - 801ce1c: 1d11 adds r1, r2, #4 - 801ce1e: 6812 ldr r2, [r2, #0] - 801ce20: 9103 str r1, [sp, #12] - 801ce22: 2a00 cmp r2, #0 - 801ce24: db01 blt.n 801ce2a <_vfiprintf_r+0x11e> - 801ce26: 9207 str r2, [sp, #28] - 801ce28: e004 b.n 801ce34 <_vfiprintf_r+0x128> - 801ce2a: 4252 negs r2, r2 - 801ce2c: f043 0302 orr.w r3, r3, #2 - 801ce30: 9207 str r2, [sp, #28] - 801ce32: 9304 str r3, [sp, #16] - 801ce34: f898 3000 ldrb.w r3, [r8] - 801ce38: 2b2e cmp r3, #46 ; 0x2e - 801ce3a: d10e bne.n 801ce5a <_vfiprintf_r+0x14e> - 801ce3c: f898 3001 ldrb.w r3, [r8, #1] - 801ce40: 2b2a cmp r3, #42 ; 0x2a - 801ce42: d138 bne.n 801ceb6 <_vfiprintf_r+0x1aa> - 801ce44: 9b03 ldr r3, [sp, #12] - 801ce46: 1d1a adds r2, r3, #4 - 801ce48: 681b ldr r3, [r3, #0] - 801ce4a: 9203 str r2, [sp, #12] - 801ce4c: 2b00 cmp r3, #0 - 801ce4e: bfb8 it lt - 801ce50: f04f 33ff movlt.w r3, #4294967295 - 801ce54: f108 0802 add.w r8, r8, #2 - 801ce58: 9305 str r3, [sp, #20] - 801ce5a: 4d33 ldr r5, [pc, #204] ; (801cf28 <_vfiprintf_r+0x21c>) - 801ce5c: f898 1000 ldrb.w r1, [r8] - 801ce60: 2203 movs r2, #3 - 801ce62: 4628 mov r0, r5 - 801ce64: f7e3 f9d4 bl 8000210 - 801ce68: b140 cbz r0, 801ce7c <_vfiprintf_r+0x170> - 801ce6a: 2340 movs r3, #64 ; 0x40 - 801ce6c: 1b40 subs r0, r0, r5 - 801ce6e: fa03 f000 lsl.w r0, r3, r0 - 801ce72: 9b04 ldr r3, [sp, #16] - 801ce74: 4303 orrs r3, r0 - 801ce76: f108 0801 add.w r8, r8, #1 - 801ce7a: 9304 str r3, [sp, #16] - 801ce7c: f898 1000 ldrb.w r1, [r8] - 801ce80: 482a ldr r0, [pc, #168] ; (801cf2c <_vfiprintf_r+0x220>) - 801ce82: f88d 1028 strb.w r1, [sp, #40] ; 0x28 - 801ce86: 2206 movs r2, #6 - 801ce88: f108 0701 add.w r7, r8, #1 - 801ce8c: f7e3 f9c0 bl 8000210 - 801ce90: 2800 cmp r0, #0 - 801ce92: d037 beq.n 801cf04 <_vfiprintf_r+0x1f8> - 801ce94: 4b26 ldr r3, [pc, #152] ; (801cf30 <_vfiprintf_r+0x224>) - 801ce96: bb1b cbnz r3, 801cee0 <_vfiprintf_r+0x1d4> - 801ce98: 9b03 ldr r3, [sp, #12] - 801ce9a: 3307 adds r3, #7 - 801ce9c: f023 0307 bic.w r3, r3, #7 - 801cea0: 3308 adds r3, #8 - 801cea2: 9303 str r3, [sp, #12] - 801cea4: 9b09 ldr r3, [sp, #36] ; 0x24 - 801cea6: 444b add r3, r9 - 801cea8: 9309 str r3, [sp, #36] ; 0x24 - 801ceaa: e750 b.n 801cd4e <_vfiprintf_r+0x42> - 801ceac: fb05 3202 mla r2, r5, r2, r3 - 801ceb0: 2001 movs r0, #1 - 801ceb2: 4688 mov r8, r1 - 801ceb4: e78a b.n 801cdcc <_vfiprintf_r+0xc0> - 801ceb6: 2300 movs r3, #0 - 801ceb8: f108 0801 add.w r8, r8, #1 - 801cebc: 9305 str r3, [sp, #20] - 801cebe: 4619 mov r1, r3 - 801cec0: 250a movs r5, #10 - 801cec2: 4640 mov r0, r8 - 801cec4: f810 2b01 ldrb.w r2, [r0], #1 - 801cec8: 3a30 subs r2, #48 ; 0x30 - 801ceca: 2a09 cmp r2, #9 - 801cecc: d903 bls.n 801ced6 <_vfiprintf_r+0x1ca> - 801cece: 2b00 cmp r3, #0 - 801ced0: d0c3 beq.n 801ce5a <_vfiprintf_r+0x14e> - 801ced2: 9105 str r1, [sp, #20] - 801ced4: e7c1 b.n 801ce5a <_vfiprintf_r+0x14e> - 801ced6: fb05 2101 mla r1, r5, r1, r2 - 801ceda: 2301 movs r3, #1 - 801cedc: 4680 mov r8, r0 - 801cede: e7f0 b.n 801cec2 <_vfiprintf_r+0x1b6> - 801cee0: ab03 add r3, sp, #12 - 801cee2: 9300 str r3, [sp, #0] - 801cee4: 4622 mov r2, r4 - 801cee6: 4b13 ldr r3, [pc, #76] ; (801cf34 <_vfiprintf_r+0x228>) - 801cee8: a904 add r1, sp, #16 - 801ceea: 4630 mov r0, r6 - 801ceec: f3af 8000 nop.w - 801cef0: f1b0 3fff cmp.w r0, #4294967295 - 801cef4: 4681 mov r9, r0 - 801cef6: d1d5 bne.n 801cea4 <_vfiprintf_r+0x198> - 801cef8: 89a3 ldrh r3, [r4, #12] - 801cefa: 065b lsls r3, r3, #25 - 801cefc: f53f af7e bmi.w 801cdfc <_vfiprintf_r+0xf0> - 801cf00: 9809 ldr r0, [sp, #36] ; 0x24 - 801cf02: e77d b.n 801ce00 <_vfiprintf_r+0xf4> - 801cf04: ab03 add r3, sp, #12 - 801cf06: 9300 str r3, [sp, #0] - 801cf08: 4622 mov r2, r4 - 801cf0a: 4b0a ldr r3, [pc, #40] ; (801cf34 <_vfiprintf_r+0x228>) - 801cf0c: a904 add r1, sp, #16 - 801cf0e: 4630 mov r0, r6 - 801cf10: f000 f888 bl 801d024 <_printf_i> - 801cf14: e7ec b.n 801cef0 <_vfiprintf_r+0x1e4> - 801cf16: bf00 nop - 801cf18: 0802283c .word 0x0802283c - 801cf1c: 0802287c .word 0x0802287c - 801cf20: 0802285c .word 0x0802285c - 801cf24: 0802281c .word 0x0802281c - 801cf28: 08022882 .word 0x08022882 - 801cf2c: 08022886 .word 0x08022886 - 801cf30: 00000000 .word 0x00000000 - 801cf34: 0801cce7 .word 0x0801cce7 - -0801cf38 <_printf_common>: - 801cf38: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} - 801cf3c: 4691 mov r9, r2 - 801cf3e: 461f mov r7, r3 - 801cf40: 688a ldr r2, [r1, #8] - 801cf42: 690b ldr r3, [r1, #16] - 801cf44: f8dd 8020 ldr.w r8, [sp, #32] - 801cf48: 4293 cmp r3, r2 - 801cf4a: bfb8 it lt - 801cf4c: 4613 movlt r3, r2 - 801cf4e: f8c9 3000 str.w r3, [r9] - 801cf52: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 - 801cf56: 4606 mov r6, r0 - 801cf58: 460c mov r4, r1 - 801cf5a: b112 cbz r2, 801cf62 <_printf_common+0x2a> - 801cf5c: 3301 adds r3, #1 +0801cd1c <_vfiprintf_r>: + 801cd1c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} + 801cd20: 460c mov r4, r1 + 801cd22: b09d sub sp, #116 ; 0x74 + 801cd24: 4617 mov r7, r2 + 801cd26: 461d mov r5, r3 + 801cd28: 4606 mov r6, r0 + 801cd2a: b118 cbz r0, 801cd34 <_vfiprintf_r+0x18> + 801cd2c: 6983 ldr r3, [r0, #24] + 801cd2e: b90b cbnz r3, 801cd34 <_vfiprintf_r+0x18> + 801cd30: f7ff fd3e bl 801c7b0 <__sinit> + 801cd34: 4b7c ldr r3, [pc, #496] ; (801cf28 <_vfiprintf_r+0x20c>) + 801cd36: 429c cmp r4, r3 + 801cd38: d158 bne.n 801cdec <_vfiprintf_r+0xd0> + 801cd3a: 6874 ldr r4, [r6, #4] + 801cd3c: 89a3 ldrh r3, [r4, #12] + 801cd3e: 0718 lsls r0, r3, #28 + 801cd40: d55e bpl.n 801ce00 <_vfiprintf_r+0xe4> + 801cd42: 6923 ldr r3, [r4, #16] + 801cd44: 2b00 cmp r3, #0 + 801cd46: d05b beq.n 801ce00 <_vfiprintf_r+0xe4> + 801cd48: 2300 movs r3, #0 + 801cd4a: 9309 str r3, [sp, #36] ; 0x24 + 801cd4c: 2320 movs r3, #32 + 801cd4e: f88d 3029 strb.w r3, [sp, #41] ; 0x29 + 801cd52: 2330 movs r3, #48 ; 0x30 + 801cd54: f88d 302a strb.w r3, [sp, #42] ; 0x2a + 801cd58: 9503 str r5, [sp, #12] + 801cd5a: f04f 0b01 mov.w fp, #1 + 801cd5e: 46b8 mov r8, r7 + 801cd60: 4645 mov r5, r8 + 801cd62: f815 3b01 ldrb.w r3, [r5], #1 + 801cd66: b10b cbz r3, 801cd6c <_vfiprintf_r+0x50> + 801cd68: 2b25 cmp r3, #37 ; 0x25 + 801cd6a: d154 bne.n 801ce16 <_vfiprintf_r+0xfa> + 801cd6c: ebb8 0a07 subs.w sl, r8, r7 + 801cd70: d00b beq.n 801cd8a <_vfiprintf_r+0x6e> + 801cd72: 4653 mov r3, sl + 801cd74: 463a mov r2, r7 + 801cd76: 4621 mov r1, r4 + 801cd78: 4630 mov r0, r6 + 801cd7a: f7ff ffbc bl 801ccf6 <__sfputs_r> + 801cd7e: 3001 adds r0, #1 + 801cd80: f000 80c2 beq.w 801cf08 <_vfiprintf_r+0x1ec> + 801cd84: 9b09 ldr r3, [sp, #36] ; 0x24 + 801cd86: 4453 add r3, sl + 801cd88: 9309 str r3, [sp, #36] ; 0x24 + 801cd8a: f898 3000 ldrb.w r3, [r8] + 801cd8e: 2b00 cmp r3, #0 + 801cd90: f000 80ba beq.w 801cf08 <_vfiprintf_r+0x1ec> + 801cd94: 2300 movs r3, #0 + 801cd96: f04f 32ff mov.w r2, #4294967295 + 801cd9a: e9cd 2305 strd r2, r3, [sp, #20] + 801cd9e: 9304 str r3, [sp, #16] + 801cda0: 9307 str r3, [sp, #28] + 801cda2: f88d 3053 strb.w r3, [sp, #83] ; 0x53 + 801cda6: 931a str r3, [sp, #104] ; 0x68 + 801cda8: 46a8 mov r8, r5 + 801cdaa: 2205 movs r2, #5 + 801cdac: f818 1b01 ldrb.w r1, [r8], #1 + 801cdb0: 485e ldr r0, [pc, #376] ; (801cf2c <_vfiprintf_r+0x210>) + 801cdb2: f7e3 fa2d bl 8000210 + 801cdb6: 9b04 ldr r3, [sp, #16] + 801cdb8: bb78 cbnz r0, 801ce1a <_vfiprintf_r+0xfe> + 801cdba: 06d9 lsls r1, r3, #27 + 801cdbc: bf44 itt mi + 801cdbe: 2220 movmi r2, #32 + 801cdc0: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53 + 801cdc4: 071a lsls r2, r3, #28 + 801cdc6: bf44 itt mi + 801cdc8: 222b movmi r2, #43 ; 0x2b + 801cdca: f88d 2053 strbmi.w r2, [sp, #83] ; 0x53 + 801cdce: 782a ldrb r2, [r5, #0] + 801cdd0: 2a2a cmp r2, #42 ; 0x2a + 801cdd2: d02a beq.n 801ce2a <_vfiprintf_r+0x10e> + 801cdd4: 9a07 ldr r2, [sp, #28] + 801cdd6: 46a8 mov r8, r5 + 801cdd8: 2000 movs r0, #0 + 801cdda: 250a movs r5, #10 + 801cddc: 4641 mov r1, r8 + 801cdde: f811 3b01 ldrb.w r3, [r1], #1 + 801cde2: 3b30 subs r3, #48 ; 0x30 + 801cde4: 2b09 cmp r3, #9 + 801cde6: d969 bls.n 801cebc <_vfiprintf_r+0x1a0> + 801cde8: b360 cbz r0, 801ce44 <_vfiprintf_r+0x128> + 801cdea: e024 b.n 801ce36 <_vfiprintf_r+0x11a> + 801cdec: 4b50 ldr r3, [pc, #320] ; (801cf30 <_vfiprintf_r+0x214>) + 801cdee: 429c cmp r4, r3 + 801cdf0: d101 bne.n 801cdf6 <_vfiprintf_r+0xda> + 801cdf2: 68b4 ldr r4, [r6, #8] + 801cdf4: e7a2 b.n 801cd3c <_vfiprintf_r+0x20> + 801cdf6: 4b4f ldr r3, [pc, #316] ; (801cf34 <_vfiprintf_r+0x218>) + 801cdf8: 429c cmp r4, r3 + 801cdfa: bf08 it eq + 801cdfc: 68f4 ldreq r4, [r6, #12] + 801cdfe: e79d b.n 801cd3c <_vfiprintf_r+0x20> + 801ce00: 4621 mov r1, r4 + 801ce02: 4630 mov r0, r6 + 801ce04: f000 fae0 bl 801d3c8 <__swsetup_r> + 801ce08: 2800 cmp r0, #0 + 801ce0a: d09d beq.n 801cd48 <_vfiprintf_r+0x2c> + 801ce0c: f04f 30ff mov.w r0, #4294967295 + 801ce10: b01d add sp, #116 ; 0x74 + 801ce12: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} + 801ce16: 46a8 mov r8, r5 + 801ce18: e7a2 b.n 801cd60 <_vfiprintf_r+0x44> + 801ce1a: 4a44 ldr r2, [pc, #272] ; (801cf2c <_vfiprintf_r+0x210>) + 801ce1c: 1a80 subs r0, r0, r2 + 801ce1e: fa0b f000 lsl.w r0, fp, r0 + 801ce22: 4318 orrs r0, r3 + 801ce24: 9004 str r0, [sp, #16] + 801ce26: 4645 mov r5, r8 + 801ce28: e7be b.n 801cda8 <_vfiprintf_r+0x8c> + 801ce2a: 9a03 ldr r2, [sp, #12] + 801ce2c: 1d11 adds r1, r2, #4 + 801ce2e: 6812 ldr r2, [r2, #0] + 801ce30: 9103 str r1, [sp, #12] + 801ce32: 2a00 cmp r2, #0 + 801ce34: db01 blt.n 801ce3a <_vfiprintf_r+0x11e> + 801ce36: 9207 str r2, [sp, #28] + 801ce38: e004 b.n 801ce44 <_vfiprintf_r+0x128> + 801ce3a: 4252 negs r2, r2 + 801ce3c: f043 0302 orr.w r3, r3, #2 + 801ce40: 9207 str r2, [sp, #28] + 801ce42: 9304 str r3, [sp, #16] + 801ce44: f898 3000 ldrb.w r3, [r8] + 801ce48: 2b2e cmp r3, #46 ; 0x2e + 801ce4a: d10e bne.n 801ce6a <_vfiprintf_r+0x14e> + 801ce4c: f898 3001 ldrb.w r3, [r8, #1] + 801ce50: 2b2a cmp r3, #42 ; 0x2a + 801ce52: d138 bne.n 801cec6 <_vfiprintf_r+0x1aa> + 801ce54: 9b03 ldr r3, [sp, #12] + 801ce56: 1d1a adds r2, r3, #4 + 801ce58: 681b ldr r3, [r3, #0] + 801ce5a: 9203 str r2, [sp, #12] + 801ce5c: 2b00 cmp r3, #0 + 801ce5e: bfb8 it lt + 801ce60: f04f 33ff movlt.w r3, #4294967295 + 801ce64: f108 0802 add.w r8, r8, #2 + 801ce68: 9305 str r3, [sp, #20] + 801ce6a: 4d33 ldr r5, [pc, #204] ; (801cf38 <_vfiprintf_r+0x21c>) + 801ce6c: f898 1000 ldrb.w r1, [r8] + 801ce70: 2203 movs r2, #3 + 801ce72: 4628 mov r0, r5 + 801ce74: f7e3 f9cc bl 8000210 + 801ce78: b140 cbz r0, 801ce8c <_vfiprintf_r+0x170> + 801ce7a: 2340 movs r3, #64 ; 0x40 + 801ce7c: 1b40 subs r0, r0, r5 + 801ce7e: fa03 f000 lsl.w r0, r3, r0 + 801ce82: 9b04 ldr r3, [sp, #16] + 801ce84: 4303 orrs r3, r0 + 801ce86: f108 0801 add.w r8, r8, #1 + 801ce8a: 9304 str r3, [sp, #16] + 801ce8c: f898 1000 ldrb.w r1, [r8] + 801ce90: 482a ldr r0, [pc, #168] ; (801cf3c <_vfiprintf_r+0x220>) + 801ce92: f88d 1028 strb.w r1, [sp, #40] ; 0x28 + 801ce96: 2206 movs r2, #6 + 801ce98: f108 0701 add.w r7, r8, #1 + 801ce9c: f7e3 f9b8 bl 8000210 + 801cea0: 2800 cmp r0, #0 + 801cea2: d037 beq.n 801cf14 <_vfiprintf_r+0x1f8> + 801cea4: 4b26 ldr r3, [pc, #152] ; (801cf40 <_vfiprintf_r+0x224>) + 801cea6: bb1b cbnz r3, 801cef0 <_vfiprintf_r+0x1d4> + 801cea8: 9b03 ldr r3, [sp, #12] + 801ceaa: 3307 adds r3, #7 + 801ceac: f023 0307 bic.w r3, r3, #7 + 801ceb0: 3308 adds r3, #8 + 801ceb2: 9303 str r3, [sp, #12] + 801ceb4: 9b09 ldr r3, [sp, #36] ; 0x24 + 801ceb6: 444b add r3, r9 + 801ceb8: 9309 str r3, [sp, #36] ; 0x24 + 801ceba: e750 b.n 801cd5e <_vfiprintf_r+0x42> + 801cebc: fb05 3202 mla r2, r5, r2, r3 + 801cec0: 2001 movs r0, #1 + 801cec2: 4688 mov r8, r1 + 801cec4: e78a b.n 801cddc <_vfiprintf_r+0xc0> + 801cec6: 2300 movs r3, #0 + 801cec8: f108 0801 add.w r8, r8, #1 + 801cecc: 9305 str r3, [sp, #20] + 801cece: 4619 mov r1, r3 + 801ced0: 250a movs r5, #10 + 801ced2: 4640 mov r0, r8 + 801ced4: f810 2b01 ldrb.w r2, [r0], #1 + 801ced8: 3a30 subs r2, #48 ; 0x30 + 801ceda: 2a09 cmp r2, #9 + 801cedc: d903 bls.n 801cee6 <_vfiprintf_r+0x1ca> + 801cede: 2b00 cmp r3, #0 + 801cee0: d0c3 beq.n 801ce6a <_vfiprintf_r+0x14e> + 801cee2: 9105 str r1, [sp, #20] + 801cee4: e7c1 b.n 801ce6a <_vfiprintf_r+0x14e> + 801cee6: fb05 2101 mla r1, r5, r1, r2 + 801ceea: 2301 movs r3, #1 + 801ceec: 4680 mov r8, r0 + 801ceee: e7f0 b.n 801ced2 <_vfiprintf_r+0x1b6> + 801cef0: ab03 add r3, sp, #12 + 801cef2: 9300 str r3, [sp, #0] + 801cef4: 4622 mov r2, r4 + 801cef6: 4b13 ldr r3, [pc, #76] ; (801cf44 <_vfiprintf_r+0x228>) + 801cef8: a904 add r1, sp, #16 + 801cefa: 4630 mov r0, r6 + 801cefc: f3af 8000 nop.w + 801cf00: f1b0 3fff cmp.w r0, #4294967295 + 801cf04: 4681 mov r9, r0 + 801cf06: d1d5 bne.n 801ceb4 <_vfiprintf_r+0x198> + 801cf08: 89a3 ldrh r3, [r4, #12] + 801cf0a: 065b lsls r3, r3, #25 + 801cf0c: f53f af7e bmi.w 801ce0c <_vfiprintf_r+0xf0> + 801cf10: 9809 ldr r0, [sp, #36] ; 0x24 + 801cf12: e77d b.n 801ce10 <_vfiprintf_r+0xf4> + 801cf14: ab03 add r3, sp, #12 + 801cf16: 9300 str r3, [sp, #0] + 801cf18: 4622 mov r2, r4 + 801cf1a: 4b0a ldr r3, [pc, #40] ; (801cf44 <_vfiprintf_r+0x228>) + 801cf1c: a904 add r1, sp, #16 + 801cf1e: 4630 mov r0, r6 + 801cf20: f000 f888 bl 801d034 <_printf_i> + 801cf24: e7ec b.n 801cf00 <_vfiprintf_r+0x1e4> + 801cf26: bf00 nop + 801cf28: 0802284c .word 0x0802284c + 801cf2c: 0802288c .word 0x0802288c + 801cf30: 0802286c .word 0x0802286c + 801cf34: 0802282c .word 0x0802282c + 801cf38: 08022892 .word 0x08022892 + 801cf3c: 08022896 .word 0x08022896 + 801cf40: 00000000 .word 0x00000000 + 801cf44: 0801ccf7 .word 0x0801ccf7 + +0801cf48 <_printf_common>: + 801cf48: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} + 801cf4c: 4691 mov r9, r2 + 801cf4e: 461f mov r7, r3 + 801cf50: 688a ldr r2, [r1, #8] + 801cf52: 690b ldr r3, [r1, #16] + 801cf54: f8dd 8020 ldr.w r8, [sp, #32] + 801cf58: 4293 cmp r3, r2 + 801cf5a: bfb8 it lt + 801cf5c: 4613 movlt r3, r2 801cf5e: f8c9 3000 str.w r3, [r9] - 801cf62: 6823 ldr r3, [r4, #0] - 801cf64: 0699 lsls r1, r3, #26 - 801cf66: bf42 ittt mi - 801cf68: f8d9 3000 ldrmi.w r3, [r9] - 801cf6c: 3302 addmi r3, #2 - 801cf6e: f8c9 3000 strmi.w r3, [r9] - 801cf72: 6825 ldr r5, [r4, #0] - 801cf74: f015 0506 ands.w r5, r5, #6 - 801cf78: d107 bne.n 801cf8a <_printf_common+0x52> - 801cf7a: f104 0a19 add.w sl, r4, #25 - 801cf7e: 68e3 ldr r3, [r4, #12] - 801cf80: f8d9 2000 ldr.w r2, [r9] - 801cf84: 1a9b subs r3, r3, r2 - 801cf86: 42ab cmp r3, r5 - 801cf88: dc28 bgt.n 801cfdc <_printf_common+0xa4> - 801cf8a: f894 3043 ldrb.w r3, [r4, #67] ; 0x43 - 801cf8e: 6822 ldr r2, [r4, #0] - 801cf90: 3300 adds r3, #0 - 801cf92: bf18 it ne - 801cf94: 2301 movne r3, #1 - 801cf96: 0692 lsls r2, r2, #26 - 801cf98: d42d bmi.n 801cff6 <_printf_common+0xbe> - 801cf9a: f104 0243 add.w r2, r4, #67 ; 0x43 - 801cf9e: 4639 mov r1, r7 - 801cfa0: 4630 mov r0, r6 - 801cfa2: 47c0 blx r8 - 801cfa4: 3001 adds r0, #1 - 801cfa6: d020 beq.n 801cfea <_printf_common+0xb2> - 801cfa8: 6823 ldr r3, [r4, #0] - 801cfaa: 68e5 ldr r5, [r4, #12] - 801cfac: f8d9 2000 ldr.w r2, [r9] - 801cfb0: f003 0306 and.w r3, r3, #6 - 801cfb4: 2b04 cmp r3, #4 - 801cfb6: bf08 it eq - 801cfb8: 1aad subeq r5, r5, r2 - 801cfba: 68a3 ldr r3, [r4, #8] - 801cfbc: 6922 ldr r2, [r4, #16] - 801cfbe: bf0c ite eq - 801cfc0: ea25 75e5 biceq.w r5, r5, r5, asr #31 - 801cfc4: 2500 movne r5, #0 - 801cfc6: 4293 cmp r3, r2 - 801cfc8: bfc4 itt gt - 801cfca: 1a9b subgt r3, r3, r2 - 801cfcc: 18ed addgt r5, r5, r3 - 801cfce: f04f 0900 mov.w r9, #0 - 801cfd2: 341a adds r4, #26 - 801cfd4: 454d cmp r5, r9 - 801cfd6: d11a bne.n 801d00e <_printf_common+0xd6> - 801cfd8: 2000 movs r0, #0 - 801cfda: e008 b.n 801cfee <_printf_common+0xb6> - 801cfdc: 2301 movs r3, #1 - 801cfde: 4652 mov r2, sl - 801cfe0: 4639 mov r1, r7 - 801cfe2: 4630 mov r0, r6 - 801cfe4: 47c0 blx r8 - 801cfe6: 3001 adds r0, #1 - 801cfe8: d103 bne.n 801cff2 <_printf_common+0xba> - 801cfea: f04f 30ff mov.w r0, #4294967295 - 801cfee: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} - 801cff2: 3501 adds r5, #1 - 801cff4: e7c3 b.n 801cf7e <_printf_common+0x46> - 801cff6: 18e1 adds r1, r4, r3 - 801cff8: 1c5a adds r2, r3, #1 - 801cffa: 2030 movs r0, #48 ; 0x30 - 801cffc: f881 0043 strb.w r0, [r1, #67] ; 0x43 - 801d000: 4422 add r2, r4 - 801d002: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 - 801d006: f882 1043 strb.w r1, [r2, #67] ; 0x43 - 801d00a: 3302 adds r3, #2 - 801d00c: e7c5 b.n 801cf9a <_printf_common+0x62> - 801d00e: 2301 movs r3, #1 - 801d010: 4622 mov r2, r4 - 801d012: 4639 mov r1, r7 - 801d014: 4630 mov r0, r6 - 801d016: 47c0 blx r8 - 801d018: 3001 adds r0, #1 - 801d01a: d0e6 beq.n 801cfea <_printf_common+0xb2> - 801d01c: f109 0901 add.w r9, r9, #1 - 801d020: e7d8 b.n 801cfd4 <_printf_common+0x9c> + 801cf62: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 + 801cf66: 4606 mov r6, r0 + 801cf68: 460c mov r4, r1 + 801cf6a: b112 cbz r2, 801cf72 <_printf_common+0x2a> + 801cf6c: 3301 adds r3, #1 + 801cf6e: f8c9 3000 str.w r3, [r9] + 801cf72: 6823 ldr r3, [r4, #0] + 801cf74: 0699 lsls r1, r3, #26 + 801cf76: bf42 ittt mi + 801cf78: f8d9 3000 ldrmi.w r3, [r9] + 801cf7c: 3302 addmi r3, #2 + 801cf7e: f8c9 3000 strmi.w r3, [r9] + 801cf82: 6825 ldr r5, [r4, #0] + 801cf84: f015 0506 ands.w r5, r5, #6 + 801cf88: d107 bne.n 801cf9a <_printf_common+0x52> + 801cf8a: f104 0a19 add.w sl, r4, #25 + 801cf8e: 68e3 ldr r3, [r4, #12] + 801cf90: f8d9 2000 ldr.w r2, [r9] + 801cf94: 1a9b subs r3, r3, r2 + 801cf96: 42ab cmp r3, r5 + 801cf98: dc28 bgt.n 801cfec <_printf_common+0xa4> + 801cf9a: f894 3043 ldrb.w r3, [r4, #67] ; 0x43 + 801cf9e: 6822 ldr r2, [r4, #0] + 801cfa0: 3300 adds r3, #0 + 801cfa2: bf18 it ne + 801cfa4: 2301 movne r3, #1 + 801cfa6: 0692 lsls r2, r2, #26 + 801cfa8: d42d bmi.n 801d006 <_printf_common+0xbe> + 801cfaa: f104 0243 add.w r2, r4, #67 ; 0x43 + 801cfae: 4639 mov r1, r7 + 801cfb0: 4630 mov r0, r6 + 801cfb2: 47c0 blx r8 + 801cfb4: 3001 adds r0, #1 + 801cfb6: d020 beq.n 801cffa <_printf_common+0xb2> + 801cfb8: 6823 ldr r3, [r4, #0] + 801cfba: 68e5 ldr r5, [r4, #12] + 801cfbc: f8d9 2000 ldr.w r2, [r9] + 801cfc0: f003 0306 and.w r3, r3, #6 + 801cfc4: 2b04 cmp r3, #4 + 801cfc6: bf08 it eq + 801cfc8: 1aad subeq r5, r5, r2 + 801cfca: 68a3 ldr r3, [r4, #8] + 801cfcc: 6922 ldr r2, [r4, #16] + 801cfce: bf0c ite eq + 801cfd0: ea25 75e5 biceq.w r5, r5, r5, asr #31 + 801cfd4: 2500 movne r5, #0 + 801cfd6: 4293 cmp r3, r2 + 801cfd8: bfc4 itt gt + 801cfda: 1a9b subgt r3, r3, r2 + 801cfdc: 18ed addgt r5, r5, r3 + 801cfde: f04f 0900 mov.w r9, #0 + 801cfe2: 341a adds r4, #26 + 801cfe4: 454d cmp r5, r9 + 801cfe6: d11a bne.n 801d01e <_printf_common+0xd6> + 801cfe8: 2000 movs r0, #0 + 801cfea: e008 b.n 801cffe <_printf_common+0xb6> + 801cfec: 2301 movs r3, #1 + 801cfee: 4652 mov r2, sl + 801cff0: 4639 mov r1, r7 + 801cff2: 4630 mov r0, r6 + 801cff4: 47c0 blx r8 + 801cff6: 3001 adds r0, #1 + 801cff8: d103 bne.n 801d002 <_printf_common+0xba> + 801cffa: f04f 30ff mov.w r0, #4294967295 + 801cffe: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} + 801d002: 3501 adds r5, #1 + 801d004: e7c3 b.n 801cf8e <_printf_common+0x46> + 801d006: 18e1 adds r1, r4, r3 + 801d008: 1c5a adds r2, r3, #1 + 801d00a: 2030 movs r0, #48 ; 0x30 + 801d00c: f881 0043 strb.w r0, [r1, #67] ; 0x43 + 801d010: 4422 add r2, r4 + 801d012: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 + 801d016: f882 1043 strb.w r1, [r2, #67] ; 0x43 + 801d01a: 3302 adds r3, #2 + 801d01c: e7c5 b.n 801cfaa <_printf_common+0x62> + 801d01e: 2301 movs r3, #1 + 801d020: 4622 mov r2, r4 + 801d022: 4639 mov r1, r7 + 801d024: 4630 mov r0, r6 + 801d026: 47c0 blx r8 + 801d028: 3001 adds r0, #1 + 801d02a: d0e6 beq.n 801cffa <_printf_common+0xb2> + 801d02c: f109 0901 add.w r9, r9, #1 + 801d030: e7d8 b.n 801cfe4 <_printf_common+0x9c> ... -0801d024 <_printf_i>: - 801d024: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} - 801d028: f101 0c43 add.w ip, r1, #67 ; 0x43 - 801d02c: 460c mov r4, r1 - 801d02e: 7e09 ldrb r1, [r1, #24] - 801d030: b085 sub sp, #20 - 801d032: 296e cmp r1, #110 ; 0x6e - 801d034: 4617 mov r7, r2 - 801d036: 4606 mov r6, r0 - 801d038: 4698 mov r8, r3 - 801d03a: 9a0c ldr r2, [sp, #48] ; 0x30 - 801d03c: f000 80b3 beq.w 801d1a6 <_printf_i+0x182> - 801d040: d822 bhi.n 801d088 <_printf_i+0x64> - 801d042: 2963 cmp r1, #99 ; 0x63 - 801d044: d036 beq.n 801d0b4 <_printf_i+0x90> - 801d046: d80a bhi.n 801d05e <_printf_i+0x3a> - 801d048: 2900 cmp r1, #0 - 801d04a: f000 80b9 beq.w 801d1c0 <_printf_i+0x19c> - 801d04e: 2958 cmp r1, #88 ; 0x58 - 801d050: f000 8083 beq.w 801d15a <_printf_i+0x136> - 801d054: f104 0542 add.w r5, r4, #66 ; 0x42 - 801d058: f884 1042 strb.w r1, [r4, #66] ; 0x42 - 801d05c: e032 b.n 801d0c4 <_printf_i+0xa0> - 801d05e: 2964 cmp r1, #100 ; 0x64 - 801d060: d001 beq.n 801d066 <_printf_i+0x42> - 801d062: 2969 cmp r1, #105 ; 0x69 - 801d064: d1f6 bne.n 801d054 <_printf_i+0x30> - 801d066: 6820 ldr r0, [r4, #0] - 801d068: 6813 ldr r3, [r2, #0] - 801d06a: 0605 lsls r5, r0, #24 - 801d06c: f103 0104 add.w r1, r3, #4 - 801d070: d52a bpl.n 801d0c8 <_printf_i+0xa4> - 801d072: 681b ldr r3, [r3, #0] - 801d074: 6011 str r1, [r2, #0] - 801d076: 2b00 cmp r3, #0 - 801d078: da03 bge.n 801d082 <_printf_i+0x5e> - 801d07a: 222d movs r2, #45 ; 0x2d - 801d07c: 425b negs r3, r3 - 801d07e: f884 2043 strb.w r2, [r4, #67] ; 0x43 - 801d082: 486f ldr r0, [pc, #444] ; (801d240 <_printf_i+0x21c>) - 801d084: 220a movs r2, #10 - 801d086: e039 b.n 801d0fc <_printf_i+0xd8> - 801d088: 2973 cmp r1, #115 ; 0x73 - 801d08a: f000 809d beq.w 801d1c8 <_printf_i+0x1a4> - 801d08e: d808 bhi.n 801d0a2 <_printf_i+0x7e> - 801d090: 296f cmp r1, #111 ; 0x6f - 801d092: d020 beq.n 801d0d6 <_printf_i+0xb2> - 801d094: 2970 cmp r1, #112 ; 0x70 - 801d096: d1dd bne.n 801d054 <_printf_i+0x30> - 801d098: 6823 ldr r3, [r4, #0] - 801d09a: f043 0320 orr.w r3, r3, #32 - 801d09e: 6023 str r3, [r4, #0] - 801d0a0: e003 b.n 801d0aa <_printf_i+0x86> - 801d0a2: 2975 cmp r1, #117 ; 0x75 - 801d0a4: d017 beq.n 801d0d6 <_printf_i+0xb2> - 801d0a6: 2978 cmp r1, #120 ; 0x78 - 801d0a8: d1d4 bne.n 801d054 <_printf_i+0x30> - 801d0aa: 2378 movs r3, #120 ; 0x78 - 801d0ac: f884 3045 strb.w r3, [r4, #69] ; 0x45 - 801d0b0: 4864 ldr r0, [pc, #400] ; (801d244 <_printf_i+0x220>) - 801d0b2: e055 b.n 801d160 <_printf_i+0x13c> - 801d0b4: 6813 ldr r3, [r2, #0] - 801d0b6: 1d19 adds r1, r3, #4 - 801d0b8: 681b ldr r3, [r3, #0] - 801d0ba: 6011 str r1, [r2, #0] - 801d0bc: f104 0542 add.w r5, r4, #66 ; 0x42 - 801d0c0: f884 3042 strb.w r3, [r4, #66] ; 0x42 - 801d0c4: 2301 movs r3, #1 - 801d0c6: e08c b.n 801d1e2 <_printf_i+0x1be> +0801d034 <_printf_i>: + 801d034: e92d 43f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, lr} + 801d038: f101 0c43 add.w ip, r1, #67 ; 0x43 + 801d03c: 460c mov r4, r1 + 801d03e: 7e09 ldrb r1, [r1, #24] + 801d040: b085 sub sp, #20 + 801d042: 296e cmp r1, #110 ; 0x6e + 801d044: 4617 mov r7, r2 + 801d046: 4606 mov r6, r0 + 801d048: 4698 mov r8, r3 + 801d04a: 9a0c ldr r2, [sp, #48] ; 0x30 + 801d04c: f000 80b3 beq.w 801d1b6 <_printf_i+0x182> + 801d050: d822 bhi.n 801d098 <_printf_i+0x64> + 801d052: 2963 cmp r1, #99 ; 0x63 + 801d054: d036 beq.n 801d0c4 <_printf_i+0x90> + 801d056: d80a bhi.n 801d06e <_printf_i+0x3a> + 801d058: 2900 cmp r1, #0 + 801d05a: f000 80b9 beq.w 801d1d0 <_printf_i+0x19c> + 801d05e: 2958 cmp r1, #88 ; 0x58 + 801d060: f000 8083 beq.w 801d16a <_printf_i+0x136> + 801d064: f104 0542 add.w r5, r4, #66 ; 0x42 + 801d068: f884 1042 strb.w r1, [r4, #66] ; 0x42 + 801d06c: e032 b.n 801d0d4 <_printf_i+0xa0> + 801d06e: 2964 cmp r1, #100 ; 0x64 + 801d070: d001 beq.n 801d076 <_printf_i+0x42> + 801d072: 2969 cmp r1, #105 ; 0x69 + 801d074: d1f6 bne.n 801d064 <_printf_i+0x30> + 801d076: 6820 ldr r0, [r4, #0] + 801d078: 6813 ldr r3, [r2, #0] + 801d07a: 0605 lsls r5, r0, #24 + 801d07c: f103 0104 add.w r1, r3, #4 + 801d080: d52a bpl.n 801d0d8 <_printf_i+0xa4> + 801d082: 681b ldr r3, [r3, #0] + 801d084: 6011 str r1, [r2, #0] + 801d086: 2b00 cmp r3, #0 + 801d088: da03 bge.n 801d092 <_printf_i+0x5e> + 801d08a: 222d movs r2, #45 ; 0x2d + 801d08c: 425b negs r3, r3 + 801d08e: f884 2043 strb.w r2, [r4, #67] ; 0x43 + 801d092: 486f ldr r0, [pc, #444] ; (801d250 <_printf_i+0x21c>) + 801d094: 220a movs r2, #10 + 801d096: e039 b.n 801d10c <_printf_i+0xd8> + 801d098: 2973 cmp r1, #115 ; 0x73 + 801d09a: f000 809d beq.w 801d1d8 <_printf_i+0x1a4> + 801d09e: d808 bhi.n 801d0b2 <_printf_i+0x7e> + 801d0a0: 296f cmp r1, #111 ; 0x6f + 801d0a2: d020 beq.n 801d0e6 <_printf_i+0xb2> + 801d0a4: 2970 cmp r1, #112 ; 0x70 + 801d0a6: d1dd bne.n 801d064 <_printf_i+0x30> + 801d0a8: 6823 ldr r3, [r4, #0] + 801d0aa: f043 0320 orr.w r3, r3, #32 + 801d0ae: 6023 str r3, [r4, #0] + 801d0b0: e003 b.n 801d0ba <_printf_i+0x86> + 801d0b2: 2975 cmp r1, #117 ; 0x75 + 801d0b4: d017 beq.n 801d0e6 <_printf_i+0xb2> + 801d0b6: 2978 cmp r1, #120 ; 0x78 + 801d0b8: d1d4 bne.n 801d064 <_printf_i+0x30> + 801d0ba: 2378 movs r3, #120 ; 0x78 + 801d0bc: f884 3045 strb.w r3, [r4, #69] ; 0x45 + 801d0c0: 4864 ldr r0, [pc, #400] ; (801d254 <_printf_i+0x220>) + 801d0c2: e055 b.n 801d170 <_printf_i+0x13c> + 801d0c4: 6813 ldr r3, [r2, #0] + 801d0c6: 1d19 adds r1, r3, #4 801d0c8: 681b ldr r3, [r3, #0] 801d0ca: 6011 str r1, [r2, #0] - 801d0cc: f010 0f40 tst.w r0, #64 ; 0x40 - 801d0d0: bf18 it ne - 801d0d2: b21b sxthne r3, r3 - 801d0d4: e7cf b.n 801d076 <_printf_i+0x52> - 801d0d6: 6813 ldr r3, [r2, #0] - 801d0d8: 6825 ldr r5, [r4, #0] - 801d0da: 1d18 adds r0, r3, #4 - 801d0dc: 6010 str r0, [r2, #0] - 801d0de: 0628 lsls r0, r5, #24 - 801d0e0: d501 bpl.n 801d0e6 <_printf_i+0xc2> - 801d0e2: 681b ldr r3, [r3, #0] - 801d0e4: e002 b.n 801d0ec <_printf_i+0xc8> - 801d0e6: 0668 lsls r0, r5, #25 - 801d0e8: d5fb bpl.n 801d0e2 <_printf_i+0xbe> - 801d0ea: 881b ldrh r3, [r3, #0] - 801d0ec: 4854 ldr r0, [pc, #336] ; (801d240 <_printf_i+0x21c>) - 801d0ee: 296f cmp r1, #111 ; 0x6f - 801d0f0: bf14 ite ne - 801d0f2: 220a movne r2, #10 - 801d0f4: 2208 moveq r2, #8 - 801d0f6: 2100 movs r1, #0 - 801d0f8: f884 1043 strb.w r1, [r4, #67] ; 0x43 - 801d0fc: 6865 ldr r5, [r4, #4] - 801d0fe: 60a5 str r5, [r4, #8] - 801d100: 2d00 cmp r5, #0 - 801d102: f2c0 8095 blt.w 801d230 <_printf_i+0x20c> - 801d106: 6821 ldr r1, [r4, #0] - 801d108: f021 0104 bic.w r1, r1, #4 - 801d10c: 6021 str r1, [r4, #0] - 801d10e: 2b00 cmp r3, #0 - 801d110: d13d bne.n 801d18e <_printf_i+0x16a> - 801d112: 2d00 cmp r5, #0 - 801d114: f040 808e bne.w 801d234 <_printf_i+0x210> - 801d118: 4665 mov r5, ip - 801d11a: 2a08 cmp r2, #8 - 801d11c: d10b bne.n 801d136 <_printf_i+0x112> - 801d11e: 6823 ldr r3, [r4, #0] - 801d120: 07db lsls r3, r3, #31 - 801d122: d508 bpl.n 801d136 <_printf_i+0x112> - 801d124: 6923 ldr r3, [r4, #16] - 801d126: 6862 ldr r2, [r4, #4] - 801d128: 429a cmp r2, r3 - 801d12a: bfde ittt le - 801d12c: 2330 movle r3, #48 ; 0x30 - 801d12e: f805 3c01 strble.w r3, [r5, #-1] - 801d132: f105 35ff addle.w r5, r5, #4294967295 - 801d136: ebac 0305 sub.w r3, ip, r5 - 801d13a: 6123 str r3, [r4, #16] - 801d13c: f8cd 8000 str.w r8, [sp] - 801d140: 463b mov r3, r7 - 801d142: aa03 add r2, sp, #12 - 801d144: 4621 mov r1, r4 - 801d146: 4630 mov r0, r6 - 801d148: f7ff fef6 bl 801cf38 <_printf_common> - 801d14c: 3001 adds r0, #1 - 801d14e: d14d bne.n 801d1ec <_printf_i+0x1c8> - 801d150: f04f 30ff mov.w r0, #4294967295 - 801d154: b005 add sp, #20 - 801d156: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} - 801d15a: 4839 ldr r0, [pc, #228] ; (801d240 <_printf_i+0x21c>) - 801d15c: f884 1045 strb.w r1, [r4, #69] ; 0x45 - 801d160: 6813 ldr r3, [r2, #0] - 801d162: 6821 ldr r1, [r4, #0] - 801d164: 1d1d adds r5, r3, #4 - 801d166: 681b ldr r3, [r3, #0] - 801d168: 6015 str r5, [r2, #0] - 801d16a: 060a lsls r2, r1, #24 - 801d16c: d50b bpl.n 801d186 <_printf_i+0x162> - 801d16e: 07ca lsls r2, r1, #31 - 801d170: bf44 itt mi - 801d172: f041 0120 orrmi.w r1, r1, #32 - 801d176: 6021 strmi r1, [r4, #0] - 801d178: b91b cbnz r3, 801d182 <_printf_i+0x15e> - 801d17a: 6822 ldr r2, [r4, #0] - 801d17c: f022 0220 bic.w r2, r2, #32 - 801d180: 6022 str r2, [r4, #0] - 801d182: 2210 movs r2, #16 - 801d184: e7b7 b.n 801d0f6 <_printf_i+0xd2> - 801d186: 064d lsls r5, r1, #25 - 801d188: bf48 it mi - 801d18a: b29b uxthmi r3, r3 - 801d18c: e7ef b.n 801d16e <_printf_i+0x14a> - 801d18e: 4665 mov r5, ip - 801d190: fbb3 f1f2 udiv r1, r3, r2 - 801d194: fb02 3311 mls r3, r2, r1, r3 - 801d198: 5cc3 ldrb r3, [r0, r3] - 801d19a: f805 3d01 strb.w r3, [r5, #-1]! - 801d19e: 460b mov r3, r1 - 801d1a0: 2900 cmp r1, #0 - 801d1a2: d1f5 bne.n 801d190 <_printf_i+0x16c> - 801d1a4: e7b9 b.n 801d11a <_printf_i+0xf6> - 801d1a6: 6813 ldr r3, [r2, #0] - 801d1a8: 6825 ldr r5, [r4, #0] - 801d1aa: 6961 ldr r1, [r4, #20] - 801d1ac: 1d18 adds r0, r3, #4 - 801d1ae: 6010 str r0, [r2, #0] - 801d1b0: 0628 lsls r0, r5, #24 - 801d1b2: 681b ldr r3, [r3, #0] - 801d1b4: d501 bpl.n 801d1ba <_printf_i+0x196> - 801d1b6: 6019 str r1, [r3, #0] - 801d1b8: e002 b.n 801d1c0 <_printf_i+0x19c> - 801d1ba: 066a lsls r2, r5, #25 - 801d1bc: d5fb bpl.n 801d1b6 <_printf_i+0x192> - 801d1be: 8019 strh r1, [r3, #0] - 801d1c0: 2300 movs r3, #0 - 801d1c2: 6123 str r3, [r4, #16] - 801d1c4: 4665 mov r5, ip - 801d1c6: e7b9 b.n 801d13c <_printf_i+0x118> - 801d1c8: 6813 ldr r3, [r2, #0] - 801d1ca: 1d19 adds r1, r3, #4 - 801d1cc: 6011 str r1, [r2, #0] - 801d1ce: 681d ldr r5, [r3, #0] - 801d1d0: 6862 ldr r2, [r4, #4] - 801d1d2: 2100 movs r1, #0 - 801d1d4: 4628 mov r0, r5 - 801d1d6: f7e3 f81b bl 8000210 - 801d1da: b108 cbz r0, 801d1e0 <_printf_i+0x1bc> - 801d1dc: 1b40 subs r0, r0, r5 - 801d1de: 6060 str r0, [r4, #4] - 801d1e0: 6863 ldr r3, [r4, #4] - 801d1e2: 6123 str r3, [r4, #16] - 801d1e4: 2300 movs r3, #0 - 801d1e6: f884 3043 strb.w r3, [r4, #67] ; 0x43 - 801d1ea: e7a7 b.n 801d13c <_printf_i+0x118> - 801d1ec: 6923 ldr r3, [r4, #16] - 801d1ee: 462a mov r2, r5 - 801d1f0: 4639 mov r1, r7 - 801d1f2: 4630 mov r0, r6 - 801d1f4: 47c0 blx r8 - 801d1f6: 3001 adds r0, #1 - 801d1f8: d0aa beq.n 801d150 <_printf_i+0x12c> - 801d1fa: 6823 ldr r3, [r4, #0] - 801d1fc: 079b lsls r3, r3, #30 - 801d1fe: d413 bmi.n 801d228 <_printf_i+0x204> - 801d200: 68e0 ldr r0, [r4, #12] - 801d202: 9b03 ldr r3, [sp, #12] - 801d204: 4298 cmp r0, r3 - 801d206: bfb8 it lt - 801d208: 4618 movlt r0, r3 - 801d20a: e7a3 b.n 801d154 <_printf_i+0x130> - 801d20c: 2301 movs r3, #1 - 801d20e: 464a mov r2, r9 - 801d210: 4639 mov r1, r7 - 801d212: 4630 mov r0, r6 - 801d214: 47c0 blx r8 - 801d216: 3001 adds r0, #1 - 801d218: d09a beq.n 801d150 <_printf_i+0x12c> - 801d21a: 3501 adds r5, #1 - 801d21c: 68e3 ldr r3, [r4, #12] - 801d21e: 9a03 ldr r2, [sp, #12] - 801d220: 1a9b subs r3, r3, r2 - 801d222: 42ab cmp r3, r5 - 801d224: dcf2 bgt.n 801d20c <_printf_i+0x1e8> - 801d226: e7eb b.n 801d200 <_printf_i+0x1dc> - 801d228: 2500 movs r5, #0 - 801d22a: f104 0919 add.w r9, r4, #25 - 801d22e: e7f5 b.n 801d21c <_printf_i+0x1f8> - 801d230: 2b00 cmp r3, #0 - 801d232: d1ac bne.n 801d18e <_printf_i+0x16a> - 801d234: 7803 ldrb r3, [r0, #0] - 801d236: f884 3042 strb.w r3, [r4, #66] ; 0x42 - 801d23a: f104 0542 add.w r5, r4, #66 ; 0x42 - 801d23e: e76c b.n 801d11a <_printf_i+0xf6> - 801d240: 0802288d .word 0x0802288d - 801d244: 0802289e .word 0x0802289e - -0801d248 <_sbrk_r>: - 801d248: b538 push {r3, r4, r5, lr} - 801d24a: 4c06 ldr r4, [pc, #24] ; (801d264 <_sbrk_r+0x1c>) - 801d24c: 2300 movs r3, #0 - 801d24e: 4605 mov r5, r0 - 801d250: 4608 mov r0, r1 - 801d252: 6023 str r3, [r4, #0] - 801d254: f7e7 fd9c bl 8004d90 <_sbrk> - 801d258: 1c43 adds r3, r0, #1 - 801d25a: d102 bne.n 801d262 <_sbrk_r+0x1a> - 801d25c: 6823 ldr r3, [r4, #0] - 801d25e: b103 cbz r3, 801d262 <_sbrk_r+0x1a> - 801d260: 602b str r3, [r5, #0] - 801d262: bd38 pop {r3, r4, r5, pc} - 801d264: 2000f834 .word 0x2000f834 - -0801d268 <__sread>: - 801d268: b510 push {r4, lr} - 801d26a: 460c mov r4, r1 - 801d26c: f9b1 100e ldrsh.w r1, [r1, #14] - 801d270: f000 fa6e bl 801d750 <_read_r> - 801d274: 2800 cmp r0, #0 - 801d276: bfab itete ge - 801d278: 6d63 ldrge r3, [r4, #84] ; 0x54 - 801d27a: 89a3 ldrhlt r3, [r4, #12] - 801d27c: 181b addge r3, r3, r0 - 801d27e: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 - 801d282: bfac ite ge - 801d284: 6563 strge r3, [r4, #84] ; 0x54 - 801d286: 81a3 strhlt r3, [r4, #12] - 801d288: bd10 pop {r4, pc} - -0801d28a <__swrite>: - 801d28a: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 801d28e: 461f mov r7, r3 - 801d290: 898b ldrh r3, [r1, #12] - 801d292: 05db lsls r3, r3, #23 - 801d294: 4605 mov r5, r0 - 801d296: 460c mov r4, r1 - 801d298: 4616 mov r6, r2 - 801d29a: d505 bpl.n 801d2a8 <__swrite+0x1e> - 801d29c: 2302 movs r3, #2 - 801d29e: 2200 movs r2, #0 - 801d2a0: f9b1 100e ldrsh.w r1, [r1, #14] - 801d2a4: f000 f9b6 bl 801d614 <_lseek_r> - 801d2a8: 89a3 ldrh r3, [r4, #12] - 801d2aa: f9b4 100e ldrsh.w r1, [r4, #14] - 801d2ae: f423 5380 bic.w r3, r3, #4096 ; 0x1000 - 801d2b2: 81a3 strh r3, [r4, #12] - 801d2b4: 4632 mov r2, r6 - 801d2b6: 463b mov r3, r7 - 801d2b8: 4628 mov r0, r5 - 801d2ba: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} - 801d2be: f000 b869 b.w 801d394 <_write_r> - -0801d2c2 <__sseek>: - 801d2c2: b510 push {r4, lr} - 801d2c4: 460c mov r4, r1 - 801d2c6: f9b1 100e ldrsh.w r1, [r1, #14] - 801d2ca: f000 f9a3 bl 801d614 <_lseek_r> - 801d2ce: 1c43 adds r3, r0, #1 - 801d2d0: 89a3 ldrh r3, [r4, #12] - 801d2d2: bf15 itete ne - 801d2d4: 6560 strne r0, [r4, #84] ; 0x54 - 801d2d6: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 - 801d2da: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 - 801d2de: 81a3 strheq r3, [r4, #12] - 801d2e0: bf18 it ne - 801d2e2: 81a3 strhne r3, [r4, #12] - 801d2e4: bd10 pop {r4, pc} - -0801d2e6 <__sclose>: - 801d2e6: f9b1 100e ldrsh.w r1, [r1, #14] - 801d2ea: f000 b8d3 b.w 801d494 <_close_r> + 801d0cc: f104 0542 add.w r5, r4, #66 ; 0x42 + 801d0d0: f884 3042 strb.w r3, [r4, #66] ; 0x42 + 801d0d4: 2301 movs r3, #1 + 801d0d6: e08c b.n 801d1f2 <_printf_i+0x1be> + 801d0d8: 681b ldr r3, [r3, #0] + 801d0da: 6011 str r1, [r2, #0] + 801d0dc: f010 0f40 tst.w r0, #64 ; 0x40 + 801d0e0: bf18 it ne + 801d0e2: b21b sxthne r3, r3 + 801d0e4: e7cf b.n 801d086 <_printf_i+0x52> + 801d0e6: 6813 ldr r3, [r2, #0] + 801d0e8: 6825 ldr r5, [r4, #0] + 801d0ea: 1d18 adds r0, r3, #4 + 801d0ec: 6010 str r0, [r2, #0] + 801d0ee: 0628 lsls r0, r5, #24 + 801d0f0: d501 bpl.n 801d0f6 <_printf_i+0xc2> + 801d0f2: 681b ldr r3, [r3, #0] + 801d0f4: e002 b.n 801d0fc <_printf_i+0xc8> + 801d0f6: 0668 lsls r0, r5, #25 + 801d0f8: d5fb bpl.n 801d0f2 <_printf_i+0xbe> + 801d0fa: 881b ldrh r3, [r3, #0] + 801d0fc: 4854 ldr r0, [pc, #336] ; (801d250 <_printf_i+0x21c>) + 801d0fe: 296f cmp r1, #111 ; 0x6f + 801d100: bf14 ite ne + 801d102: 220a movne r2, #10 + 801d104: 2208 moveq r2, #8 + 801d106: 2100 movs r1, #0 + 801d108: f884 1043 strb.w r1, [r4, #67] ; 0x43 + 801d10c: 6865 ldr r5, [r4, #4] + 801d10e: 60a5 str r5, [r4, #8] + 801d110: 2d00 cmp r5, #0 + 801d112: f2c0 8095 blt.w 801d240 <_printf_i+0x20c> + 801d116: 6821 ldr r1, [r4, #0] + 801d118: f021 0104 bic.w r1, r1, #4 + 801d11c: 6021 str r1, [r4, #0] + 801d11e: 2b00 cmp r3, #0 + 801d120: d13d bne.n 801d19e <_printf_i+0x16a> + 801d122: 2d00 cmp r5, #0 + 801d124: f040 808e bne.w 801d244 <_printf_i+0x210> + 801d128: 4665 mov r5, ip + 801d12a: 2a08 cmp r2, #8 + 801d12c: d10b bne.n 801d146 <_printf_i+0x112> + 801d12e: 6823 ldr r3, [r4, #0] + 801d130: 07db lsls r3, r3, #31 + 801d132: d508 bpl.n 801d146 <_printf_i+0x112> + 801d134: 6923 ldr r3, [r4, #16] + 801d136: 6862 ldr r2, [r4, #4] + 801d138: 429a cmp r2, r3 + 801d13a: bfde ittt le + 801d13c: 2330 movle r3, #48 ; 0x30 + 801d13e: f805 3c01 strble.w r3, [r5, #-1] + 801d142: f105 35ff addle.w r5, r5, #4294967295 + 801d146: ebac 0305 sub.w r3, ip, r5 + 801d14a: 6123 str r3, [r4, #16] + 801d14c: f8cd 8000 str.w r8, [sp] + 801d150: 463b mov r3, r7 + 801d152: aa03 add r2, sp, #12 + 801d154: 4621 mov r1, r4 + 801d156: 4630 mov r0, r6 + 801d158: f7ff fef6 bl 801cf48 <_printf_common> + 801d15c: 3001 adds r0, #1 + 801d15e: d14d bne.n 801d1fc <_printf_i+0x1c8> + 801d160: f04f 30ff mov.w r0, #4294967295 + 801d164: b005 add sp, #20 + 801d166: e8bd 83f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, pc} + 801d16a: 4839 ldr r0, [pc, #228] ; (801d250 <_printf_i+0x21c>) + 801d16c: f884 1045 strb.w r1, [r4, #69] ; 0x45 + 801d170: 6813 ldr r3, [r2, #0] + 801d172: 6821 ldr r1, [r4, #0] + 801d174: 1d1d adds r5, r3, #4 + 801d176: 681b ldr r3, [r3, #0] + 801d178: 6015 str r5, [r2, #0] + 801d17a: 060a lsls r2, r1, #24 + 801d17c: d50b bpl.n 801d196 <_printf_i+0x162> + 801d17e: 07ca lsls r2, r1, #31 + 801d180: bf44 itt mi + 801d182: f041 0120 orrmi.w r1, r1, #32 + 801d186: 6021 strmi r1, [r4, #0] + 801d188: b91b cbnz r3, 801d192 <_printf_i+0x15e> + 801d18a: 6822 ldr r2, [r4, #0] + 801d18c: f022 0220 bic.w r2, r2, #32 + 801d190: 6022 str r2, [r4, #0] + 801d192: 2210 movs r2, #16 + 801d194: e7b7 b.n 801d106 <_printf_i+0xd2> + 801d196: 064d lsls r5, r1, #25 + 801d198: bf48 it mi + 801d19a: b29b uxthmi r3, r3 + 801d19c: e7ef b.n 801d17e <_printf_i+0x14a> + 801d19e: 4665 mov r5, ip + 801d1a0: fbb3 f1f2 udiv r1, r3, r2 + 801d1a4: fb02 3311 mls r3, r2, r1, r3 + 801d1a8: 5cc3 ldrb r3, [r0, r3] + 801d1aa: f805 3d01 strb.w r3, [r5, #-1]! + 801d1ae: 460b mov r3, r1 + 801d1b0: 2900 cmp r1, #0 + 801d1b2: d1f5 bne.n 801d1a0 <_printf_i+0x16c> + 801d1b4: e7b9 b.n 801d12a <_printf_i+0xf6> + 801d1b6: 6813 ldr r3, [r2, #0] + 801d1b8: 6825 ldr r5, [r4, #0] + 801d1ba: 6961 ldr r1, [r4, #20] + 801d1bc: 1d18 adds r0, r3, #4 + 801d1be: 6010 str r0, [r2, #0] + 801d1c0: 0628 lsls r0, r5, #24 + 801d1c2: 681b ldr r3, [r3, #0] + 801d1c4: d501 bpl.n 801d1ca <_printf_i+0x196> + 801d1c6: 6019 str r1, [r3, #0] + 801d1c8: e002 b.n 801d1d0 <_printf_i+0x19c> + 801d1ca: 066a lsls r2, r5, #25 + 801d1cc: d5fb bpl.n 801d1c6 <_printf_i+0x192> + 801d1ce: 8019 strh r1, [r3, #0] + 801d1d0: 2300 movs r3, #0 + 801d1d2: 6123 str r3, [r4, #16] + 801d1d4: 4665 mov r5, ip + 801d1d6: e7b9 b.n 801d14c <_printf_i+0x118> + 801d1d8: 6813 ldr r3, [r2, #0] + 801d1da: 1d19 adds r1, r3, #4 + 801d1dc: 6011 str r1, [r2, #0] + 801d1de: 681d ldr r5, [r3, #0] + 801d1e0: 6862 ldr r2, [r4, #4] + 801d1e2: 2100 movs r1, #0 + 801d1e4: 4628 mov r0, r5 + 801d1e6: f7e3 f813 bl 8000210 + 801d1ea: b108 cbz r0, 801d1f0 <_printf_i+0x1bc> + 801d1ec: 1b40 subs r0, r0, r5 + 801d1ee: 6060 str r0, [r4, #4] + 801d1f0: 6863 ldr r3, [r4, #4] + 801d1f2: 6123 str r3, [r4, #16] + 801d1f4: 2300 movs r3, #0 + 801d1f6: f884 3043 strb.w r3, [r4, #67] ; 0x43 + 801d1fa: e7a7 b.n 801d14c <_printf_i+0x118> + 801d1fc: 6923 ldr r3, [r4, #16] + 801d1fe: 462a mov r2, r5 + 801d200: 4639 mov r1, r7 + 801d202: 4630 mov r0, r6 + 801d204: 47c0 blx r8 + 801d206: 3001 adds r0, #1 + 801d208: d0aa beq.n 801d160 <_printf_i+0x12c> + 801d20a: 6823 ldr r3, [r4, #0] + 801d20c: 079b lsls r3, r3, #30 + 801d20e: d413 bmi.n 801d238 <_printf_i+0x204> + 801d210: 68e0 ldr r0, [r4, #12] + 801d212: 9b03 ldr r3, [sp, #12] + 801d214: 4298 cmp r0, r3 + 801d216: bfb8 it lt + 801d218: 4618 movlt r0, r3 + 801d21a: e7a3 b.n 801d164 <_printf_i+0x130> + 801d21c: 2301 movs r3, #1 + 801d21e: 464a mov r2, r9 + 801d220: 4639 mov r1, r7 + 801d222: 4630 mov r0, r6 + 801d224: 47c0 blx r8 + 801d226: 3001 adds r0, #1 + 801d228: d09a beq.n 801d160 <_printf_i+0x12c> + 801d22a: 3501 adds r5, #1 + 801d22c: 68e3 ldr r3, [r4, #12] + 801d22e: 9a03 ldr r2, [sp, #12] + 801d230: 1a9b subs r3, r3, r2 + 801d232: 42ab cmp r3, r5 + 801d234: dcf2 bgt.n 801d21c <_printf_i+0x1e8> + 801d236: e7eb b.n 801d210 <_printf_i+0x1dc> + 801d238: 2500 movs r5, #0 + 801d23a: f104 0919 add.w r9, r4, #25 + 801d23e: e7f5 b.n 801d22c <_printf_i+0x1f8> + 801d240: 2b00 cmp r3, #0 + 801d242: d1ac bne.n 801d19e <_printf_i+0x16a> + 801d244: 7803 ldrb r3, [r0, #0] + 801d246: f884 3042 strb.w r3, [r4, #66] ; 0x42 + 801d24a: f104 0542 add.w r5, r4, #66 ; 0x42 + 801d24e: e76c b.n 801d12a <_printf_i+0xf6> + 801d250: 0802289d .word 0x0802289d + 801d254: 080228ae .word 0x080228ae + +0801d258 <_sbrk_r>: + 801d258: b538 push {r3, r4, r5, lr} + 801d25a: 4c06 ldr r4, [pc, #24] ; (801d274 <_sbrk_r+0x1c>) + 801d25c: 2300 movs r3, #0 + 801d25e: 4605 mov r5, r0 + 801d260: 4608 mov r0, r1 + 801d262: 6023 str r3, [r4, #0] + 801d264: f7e7 fd96 bl 8004d94 <_sbrk> + 801d268: 1c43 adds r3, r0, #1 + 801d26a: d102 bne.n 801d272 <_sbrk_r+0x1a> + 801d26c: 6823 ldr r3, [r4, #0] + 801d26e: b103 cbz r3, 801d272 <_sbrk_r+0x1a> + 801d270: 602b str r3, [r5, #0] + 801d272: bd38 pop {r3, r4, r5, pc} + 801d274: 2000f834 .word 0x2000f834 + +0801d278 <__sread>: + 801d278: b510 push {r4, lr} + 801d27a: 460c mov r4, r1 + 801d27c: f9b1 100e ldrsh.w r1, [r1, #14] + 801d280: f000 fa6e bl 801d760 <_read_r> + 801d284: 2800 cmp r0, #0 + 801d286: bfab itete ge + 801d288: 6d63 ldrge r3, [r4, #84] ; 0x54 + 801d28a: 89a3 ldrhlt r3, [r4, #12] + 801d28c: 181b addge r3, r3, r0 + 801d28e: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 + 801d292: bfac ite ge + 801d294: 6563 strge r3, [r4, #84] ; 0x54 + 801d296: 81a3 strhlt r3, [r4, #12] + 801d298: bd10 pop {r4, pc} + +0801d29a <__swrite>: + 801d29a: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 801d29e: 461f mov r7, r3 + 801d2a0: 898b ldrh r3, [r1, #12] + 801d2a2: 05db lsls r3, r3, #23 + 801d2a4: 4605 mov r5, r0 + 801d2a6: 460c mov r4, r1 + 801d2a8: 4616 mov r6, r2 + 801d2aa: d505 bpl.n 801d2b8 <__swrite+0x1e> + 801d2ac: 2302 movs r3, #2 + 801d2ae: 2200 movs r2, #0 + 801d2b0: f9b1 100e ldrsh.w r1, [r1, #14] + 801d2b4: f000 f9b6 bl 801d624 <_lseek_r> + 801d2b8: 89a3 ldrh r3, [r4, #12] + 801d2ba: f9b4 100e ldrsh.w r1, [r4, #14] + 801d2be: f423 5380 bic.w r3, r3, #4096 ; 0x1000 + 801d2c2: 81a3 strh r3, [r4, #12] + 801d2c4: 4632 mov r2, r6 + 801d2c6: 463b mov r3, r7 + 801d2c8: 4628 mov r0, r5 + 801d2ca: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} + 801d2ce: f000 b869 b.w 801d3a4 <_write_r> + +0801d2d2 <__sseek>: + 801d2d2: b510 push {r4, lr} + 801d2d4: 460c mov r4, r1 + 801d2d6: f9b1 100e ldrsh.w r1, [r1, #14] + 801d2da: f000 f9a3 bl 801d624 <_lseek_r> + 801d2de: 1c43 adds r3, r0, #1 + 801d2e0: 89a3 ldrh r3, [r4, #12] + 801d2e2: bf15 itete ne + 801d2e4: 6560 strne r0, [r4, #84] ; 0x54 + 801d2e6: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 + 801d2ea: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 + 801d2ee: 81a3 strheq r3, [r4, #12] + 801d2f0: bf18 it ne + 801d2f2: 81a3 strhne r3, [r4, #12] + 801d2f4: bd10 pop {r4, pc} + +0801d2f6 <__sclose>: + 801d2f6: f9b1 100e ldrsh.w r1, [r1, #14] + 801d2fa: f000 b8d3 b.w 801d4a4 <_close_r> ... -0801d2f0 <__swbuf_r>: - 801d2f0: b5f8 push {r3, r4, r5, r6, r7, lr} - 801d2f2: 460e mov r6, r1 - 801d2f4: 4614 mov r4, r2 - 801d2f6: 4605 mov r5, r0 - 801d2f8: b118 cbz r0, 801d302 <__swbuf_r+0x12> - 801d2fa: 6983 ldr r3, [r0, #24] - 801d2fc: b90b cbnz r3, 801d302 <__swbuf_r+0x12> - 801d2fe: f7ff fa4f bl 801c7a0 <__sinit> - 801d302: 4b21 ldr r3, [pc, #132] ; (801d388 <__swbuf_r+0x98>) - 801d304: 429c cmp r4, r3 - 801d306: d12a bne.n 801d35e <__swbuf_r+0x6e> - 801d308: 686c ldr r4, [r5, #4] - 801d30a: 69a3 ldr r3, [r4, #24] - 801d30c: 60a3 str r3, [r4, #8] - 801d30e: 89a3 ldrh r3, [r4, #12] - 801d310: 071a lsls r2, r3, #28 - 801d312: d52e bpl.n 801d372 <__swbuf_r+0x82> - 801d314: 6923 ldr r3, [r4, #16] - 801d316: b363 cbz r3, 801d372 <__swbuf_r+0x82> - 801d318: 6923 ldr r3, [r4, #16] - 801d31a: 6820 ldr r0, [r4, #0] - 801d31c: 1ac0 subs r0, r0, r3 - 801d31e: 6963 ldr r3, [r4, #20] - 801d320: b2f6 uxtb r6, r6 - 801d322: 4283 cmp r3, r0 - 801d324: 4637 mov r7, r6 - 801d326: dc04 bgt.n 801d332 <__swbuf_r+0x42> - 801d328: 4621 mov r1, r4 - 801d32a: 4628 mov r0, r5 - 801d32c: f000 f948 bl 801d5c0 <_fflush_r> - 801d330: bb28 cbnz r0, 801d37e <__swbuf_r+0x8e> - 801d332: 68a3 ldr r3, [r4, #8] - 801d334: 3b01 subs r3, #1 - 801d336: 60a3 str r3, [r4, #8] - 801d338: 6823 ldr r3, [r4, #0] - 801d33a: 1c5a adds r2, r3, #1 - 801d33c: 6022 str r2, [r4, #0] - 801d33e: 701e strb r6, [r3, #0] - 801d340: 6963 ldr r3, [r4, #20] - 801d342: 3001 adds r0, #1 - 801d344: 4283 cmp r3, r0 - 801d346: d004 beq.n 801d352 <__swbuf_r+0x62> - 801d348: 89a3 ldrh r3, [r4, #12] - 801d34a: 07db lsls r3, r3, #31 - 801d34c: d519 bpl.n 801d382 <__swbuf_r+0x92> - 801d34e: 2e0a cmp r6, #10 - 801d350: d117 bne.n 801d382 <__swbuf_r+0x92> - 801d352: 4621 mov r1, r4 - 801d354: 4628 mov r0, r5 - 801d356: f000 f933 bl 801d5c0 <_fflush_r> - 801d35a: b190 cbz r0, 801d382 <__swbuf_r+0x92> - 801d35c: e00f b.n 801d37e <__swbuf_r+0x8e> - 801d35e: 4b0b ldr r3, [pc, #44] ; (801d38c <__swbuf_r+0x9c>) - 801d360: 429c cmp r4, r3 - 801d362: d101 bne.n 801d368 <__swbuf_r+0x78> - 801d364: 68ac ldr r4, [r5, #8] - 801d366: e7d0 b.n 801d30a <__swbuf_r+0x1a> - 801d368: 4b09 ldr r3, [pc, #36] ; (801d390 <__swbuf_r+0xa0>) - 801d36a: 429c cmp r4, r3 - 801d36c: bf08 it eq - 801d36e: 68ec ldreq r4, [r5, #12] - 801d370: e7cb b.n 801d30a <__swbuf_r+0x1a> - 801d372: 4621 mov r1, r4 - 801d374: 4628 mov r0, r5 - 801d376: f000 f81f bl 801d3b8 <__swsetup_r> - 801d37a: 2800 cmp r0, #0 - 801d37c: d0cc beq.n 801d318 <__swbuf_r+0x28> - 801d37e: f04f 37ff mov.w r7, #4294967295 - 801d382: 4638 mov r0, r7 - 801d384: bdf8 pop {r3, r4, r5, r6, r7, pc} - 801d386: bf00 nop - 801d388: 0802283c .word 0x0802283c - 801d38c: 0802285c .word 0x0802285c - 801d390: 0802281c .word 0x0802281c - -0801d394 <_write_r>: - 801d394: b538 push {r3, r4, r5, lr} - 801d396: 4c07 ldr r4, [pc, #28] ; (801d3b4 <_write_r+0x20>) - 801d398: 4605 mov r5, r0 - 801d39a: 4608 mov r0, r1 - 801d39c: 4611 mov r1, r2 - 801d39e: 2200 movs r2, #0 - 801d3a0: 6022 str r2, [r4, #0] - 801d3a2: 461a mov r2, r3 - 801d3a4: f7e7 fca3 bl 8004cee <_write> - 801d3a8: 1c43 adds r3, r0, #1 - 801d3aa: d102 bne.n 801d3b2 <_write_r+0x1e> - 801d3ac: 6823 ldr r3, [r4, #0] - 801d3ae: b103 cbz r3, 801d3b2 <_write_r+0x1e> - 801d3b0: 602b str r3, [r5, #0] - 801d3b2: bd38 pop {r3, r4, r5, pc} - 801d3b4: 2000f834 .word 0x2000f834 - -0801d3b8 <__swsetup_r>: - 801d3b8: 4b32 ldr r3, [pc, #200] ; (801d484 <__swsetup_r+0xcc>) - 801d3ba: b570 push {r4, r5, r6, lr} - 801d3bc: 681d ldr r5, [r3, #0] - 801d3be: 4606 mov r6, r0 - 801d3c0: 460c mov r4, r1 - 801d3c2: b125 cbz r5, 801d3ce <__swsetup_r+0x16> - 801d3c4: 69ab ldr r3, [r5, #24] - 801d3c6: b913 cbnz r3, 801d3ce <__swsetup_r+0x16> - 801d3c8: 4628 mov r0, r5 - 801d3ca: f7ff f9e9 bl 801c7a0 <__sinit> - 801d3ce: 4b2e ldr r3, [pc, #184] ; (801d488 <__swsetup_r+0xd0>) - 801d3d0: 429c cmp r4, r3 - 801d3d2: d10f bne.n 801d3f4 <__swsetup_r+0x3c> - 801d3d4: 686c ldr r4, [r5, #4] - 801d3d6: f9b4 300c ldrsh.w r3, [r4, #12] - 801d3da: b29a uxth r2, r3 - 801d3dc: 0715 lsls r5, r2, #28 - 801d3de: d42c bmi.n 801d43a <__swsetup_r+0x82> - 801d3e0: 06d0 lsls r0, r2, #27 - 801d3e2: d411 bmi.n 801d408 <__swsetup_r+0x50> - 801d3e4: 2209 movs r2, #9 - 801d3e6: 6032 str r2, [r6, #0] - 801d3e8: f043 0340 orr.w r3, r3, #64 ; 0x40 - 801d3ec: 81a3 strh r3, [r4, #12] - 801d3ee: f04f 30ff mov.w r0, #4294967295 - 801d3f2: e03e b.n 801d472 <__swsetup_r+0xba> - 801d3f4: 4b25 ldr r3, [pc, #148] ; (801d48c <__swsetup_r+0xd4>) - 801d3f6: 429c cmp r4, r3 - 801d3f8: d101 bne.n 801d3fe <__swsetup_r+0x46> - 801d3fa: 68ac ldr r4, [r5, #8] - 801d3fc: e7eb b.n 801d3d6 <__swsetup_r+0x1e> - 801d3fe: 4b24 ldr r3, [pc, #144] ; (801d490 <__swsetup_r+0xd8>) - 801d400: 429c cmp r4, r3 - 801d402: bf08 it eq - 801d404: 68ec ldreq r4, [r5, #12] - 801d406: e7e6 b.n 801d3d6 <__swsetup_r+0x1e> - 801d408: 0751 lsls r1, r2, #29 - 801d40a: d512 bpl.n 801d432 <__swsetup_r+0x7a> - 801d40c: 6b61 ldr r1, [r4, #52] ; 0x34 - 801d40e: b141 cbz r1, 801d422 <__swsetup_r+0x6a> - 801d410: f104 0344 add.w r3, r4, #68 ; 0x44 - 801d414: 4299 cmp r1, r3 - 801d416: d002 beq.n 801d41e <__swsetup_r+0x66> - 801d418: 4630 mov r0, r6 - 801d41a: f7ff fa53 bl 801c8c4 <_free_r> - 801d41e: 2300 movs r3, #0 - 801d420: 6363 str r3, [r4, #52] ; 0x34 - 801d422: 89a3 ldrh r3, [r4, #12] - 801d424: f023 0324 bic.w r3, r3, #36 ; 0x24 - 801d428: 81a3 strh r3, [r4, #12] - 801d42a: 2300 movs r3, #0 - 801d42c: 6063 str r3, [r4, #4] - 801d42e: 6923 ldr r3, [r4, #16] - 801d430: 6023 str r3, [r4, #0] +0801d300 <__swbuf_r>: + 801d300: b5f8 push {r3, r4, r5, r6, r7, lr} + 801d302: 460e mov r6, r1 + 801d304: 4614 mov r4, r2 + 801d306: 4605 mov r5, r0 + 801d308: b118 cbz r0, 801d312 <__swbuf_r+0x12> + 801d30a: 6983 ldr r3, [r0, #24] + 801d30c: b90b cbnz r3, 801d312 <__swbuf_r+0x12> + 801d30e: f7ff fa4f bl 801c7b0 <__sinit> + 801d312: 4b21 ldr r3, [pc, #132] ; (801d398 <__swbuf_r+0x98>) + 801d314: 429c cmp r4, r3 + 801d316: d12a bne.n 801d36e <__swbuf_r+0x6e> + 801d318: 686c ldr r4, [r5, #4] + 801d31a: 69a3 ldr r3, [r4, #24] + 801d31c: 60a3 str r3, [r4, #8] + 801d31e: 89a3 ldrh r3, [r4, #12] + 801d320: 071a lsls r2, r3, #28 + 801d322: d52e bpl.n 801d382 <__swbuf_r+0x82> + 801d324: 6923 ldr r3, [r4, #16] + 801d326: b363 cbz r3, 801d382 <__swbuf_r+0x82> + 801d328: 6923 ldr r3, [r4, #16] + 801d32a: 6820 ldr r0, [r4, #0] + 801d32c: 1ac0 subs r0, r0, r3 + 801d32e: 6963 ldr r3, [r4, #20] + 801d330: b2f6 uxtb r6, r6 + 801d332: 4283 cmp r3, r0 + 801d334: 4637 mov r7, r6 + 801d336: dc04 bgt.n 801d342 <__swbuf_r+0x42> + 801d338: 4621 mov r1, r4 + 801d33a: 4628 mov r0, r5 + 801d33c: f000 f948 bl 801d5d0 <_fflush_r> + 801d340: bb28 cbnz r0, 801d38e <__swbuf_r+0x8e> + 801d342: 68a3 ldr r3, [r4, #8] + 801d344: 3b01 subs r3, #1 + 801d346: 60a3 str r3, [r4, #8] + 801d348: 6823 ldr r3, [r4, #0] + 801d34a: 1c5a adds r2, r3, #1 + 801d34c: 6022 str r2, [r4, #0] + 801d34e: 701e strb r6, [r3, #0] + 801d350: 6963 ldr r3, [r4, #20] + 801d352: 3001 adds r0, #1 + 801d354: 4283 cmp r3, r0 + 801d356: d004 beq.n 801d362 <__swbuf_r+0x62> + 801d358: 89a3 ldrh r3, [r4, #12] + 801d35a: 07db lsls r3, r3, #31 + 801d35c: d519 bpl.n 801d392 <__swbuf_r+0x92> + 801d35e: 2e0a cmp r6, #10 + 801d360: d117 bne.n 801d392 <__swbuf_r+0x92> + 801d362: 4621 mov r1, r4 + 801d364: 4628 mov r0, r5 + 801d366: f000 f933 bl 801d5d0 <_fflush_r> + 801d36a: b190 cbz r0, 801d392 <__swbuf_r+0x92> + 801d36c: e00f b.n 801d38e <__swbuf_r+0x8e> + 801d36e: 4b0b ldr r3, [pc, #44] ; (801d39c <__swbuf_r+0x9c>) + 801d370: 429c cmp r4, r3 + 801d372: d101 bne.n 801d378 <__swbuf_r+0x78> + 801d374: 68ac ldr r4, [r5, #8] + 801d376: e7d0 b.n 801d31a <__swbuf_r+0x1a> + 801d378: 4b09 ldr r3, [pc, #36] ; (801d3a0 <__swbuf_r+0xa0>) + 801d37a: 429c cmp r4, r3 + 801d37c: bf08 it eq + 801d37e: 68ec ldreq r4, [r5, #12] + 801d380: e7cb b.n 801d31a <__swbuf_r+0x1a> + 801d382: 4621 mov r1, r4 + 801d384: 4628 mov r0, r5 + 801d386: f000 f81f bl 801d3c8 <__swsetup_r> + 801d38a: 2800 cmp r0, #0 + 801d38c: d0cc beq.n 801d328 <__swbuf_r+0x28> + 801d38e: f04f 37ff mov.w r7, #4294967295 + 801d392: 4638 mov r0, r7 + 801d394: bdf8 pop {r3, r4, r5, r6, r7, pc} + 801d396: bf00 nop + 801d398: 0802284c .word 0x0802284c + 801d39c: 0802286c .word 0x0802286c + 801d3a0: 0802282c .word 0x0802282c + +0801d3a4 <_write_r>: + 801d3a4: b538 push {r3, r4, r5, lr} + 801d3a6: 4c07 ldr r4, [pc, #28] ; (801d3c4 <_write_r+0x20>) + 801d3a8: 4605 mov r5, r0 + 801d3aa: 4608 mov r0, r1 + 801d3ac: 4611 mov r1, r2 + 801d3ae: 2200 movs r2, #0 + 801d3b0: 6022 str r2, [r4, #0] + 801d3b2: 461a mov r2, r3 + 801d3b4: f7e7 fc9d bl 8004cf2 <_write> + 801d3b8: 1c43 adds r3, r0, #1 + 801d3ba: d102 bne.n 801d3c2 <_write_r+0x1e> + 801d3bc: 6823 ldr r3, [r4, #0] + 801d3be: b103 cbz r3, 801d3c2 <_write_r+0x1e> + 801d3c0: 602b str r3, [r5, #0] + 801d3c2: bd38 pop {r3, r4, r5, pc} + 801d3c4: 2000f834 .word 0x2000f834 + +0801d3c8 <__swsetup_r>: + 801d3c8: 4b32 ldr r3, [pc, #200] ; (801d494 <__swsetup_r+0xcc>) + 801d3ca: b570 push {r4, r5, r6, lr} + 801d3cc: 681d ldr r5, [r3, #0] + 801d3ce: 4606 mov r6, r0 + 801d3d0: 460c mov r4, r1 + 801d3d2: b125 cbz r5, 801d3de <__swsetup_r+0x16> + 801d3d4: 69ab ldr r3, [r5, #24] + 801d3d6: b913 cbnz r3, 801d3de <__swsetup_r+0x16> + 801d3d8: 4628 mov r0, r5 + 801d3da: f7ff f9e9 bl 801c7b0 <__sinit> + 801d3de: 4b2e ldr r3, [pc, #184] ; (801d498 <__swsetup_r+0xd0>) + 801d3e0: 429c cmp r4, r3 + 801d3e2: d10f bne.n 801d404 <__swsetup_r+0x3c> + 801d3e4: 686c ldr r4, [r5, #4] + 801d3e6: f9b4 300c ldrsh.w r3, [r4, #12] + 801d3ea: b29a uxth r2, r3 + 801d3ec: 0715 lsls r5, r2, #28 + 801d3ee: d42c bmi.n 801d44a <__swsetup_r+0x82> + 801d3f0: 06d0 lsls r0, r2, #27 + 801d3f2: d411 bmi.n 801d418 <__swsetup_r+0x50> + 801d3f4: 2209 movs r2, #9 + 801d3f6: 6032 str r2, [r6, #0] + 801d3f8: f043 0340 orr.w r3, r3, #64 ; 0x40 + 801d3fc: 81a3 strh r3, [r4, #12] + 801d3fe: f04f 30ff mov.w r0, #4294967295 + 801d402: e03e b.n 801d482 <__swsetup_r+0xba> + 801d404: 4b25 ldr r3, [pc, #148] ; (801d49c <__swsetup_r+0xd4>) + 801d406: 429c cmp r4, r3 + 801d408: d101 bne.n 801d40e <__swsetup_r+0x46> + 801d40a: 68ac ldr r4, [r5, #8] + 801d40c: e7eb b.n 801d3e6 <__swsetup_r+0x1e> + 801d40e: 4b24 ldr r3, [pc, #144] ; (801d4a0 <__swsetup_r+0xd8>) + 801d410: 429c cmp r4, r3 + 801d412: bf08 it eq + 801d414: 68ec ldreq r4, [r5, #12] + 801d416: e7e6 b.n 801d3e6 <__swsetup_r+0x1e> + 801d418: 0751 lsls r1, r2, #29 + 801d41a: d512 bpl.n 801d442 <__swsetup_r+0x7a> + 801d41c: 6b61 ldr r1, [r4, #52] ; 0x34 + 801d41e: b141 cbz r1, 801d432 <__swsetup_r+0x6a> + 801d420: f104 0344 add.w r3, r4, #68 ; 0x44 + 801d424: 4299 cmp r1, r3 + 801d426: d002 beq.n 801d42e <__swsetup_r+0x66> + 801d428: 4630 mov r0, r6 + 801d42a: f7ff fa53 bl 801c8d4 <_free_r> + 801d42e: 2300 movs r3, #0 + 801d430: 6363 str r3, [r4, #52] ; 0x34 801d432: 89a3 ldrh r3, [r4, #12] - 801d434: f043 0308 orr.w r3, r3, #8 + 801d434: f023 0324 bic.w r3, r3, #36 ; 0x24 801d438: 81a3 strh r3, [r4, #12] - 801d43a: 6923 ldr r3, [r4, #16] - 801d43c: b94b cbnz r3, 801d452 <__swsetup_r+0x9a> - 801d43e: 89a3 ldrh r3, [r4, #12] - 801d440: f403 7320 and.w r3, r3, #640 ; 0x280 - 801d444: f5b3 7f00 cmp.w r3, #512 ; 0x200 - 801d448: d003 beq.n 801d452 <__swsetup_r+0x9a> - 801d44a: 4621 mov r1, r4 - 801d44c: 4630 mov r0, r6 - 801d44e: f000 f917 bl 801d680 <__smakebuf_r> - 801d452: 89a2 ldrh r2, [r4, #12] - 801d454: f012 0301 ands.w r3, r2, #1 - 801d458: d00c beq.n 801d474 <__swsetup_r+0xbc> - 801d45a: 2300 movs r3, #0 - 801d45c: 60a3 str r3, [r4, #8] - 801d45e: 6963 ldr r3, [r4, #20] - 801d460: 425b negs r3, r3 - 801d462: 61a3 str r3, [r4, #24] - 801d464: 6923 ldr r3, [r4, #16] - 801d466: b953 cbnz r3, 801d47e <__swsetup_r+0xc6> - 801d468: f9b4 300c ldrsh.w r3, [r4, #12] - 801d46c: f013 0080 ands.w r0, r3, #128 ; 0x80 - 801d470: d1ba bne.n 801d3e8 <__swsetup_r+0x30> - 801d472: bd70 pop {r4, r5, r6, pc} - 801d474: 0792 lsls r2, r2, #30 - 801d476: bf58 it pl - 801d478: 6963 ldrpl r3, [r4, #20] - 801d47a: 60a3 str r3, [r4, #8] - 801d47c: e7f2 b.n 801d464 <__swsetup_r+0xac> - 801d47e: 2000 movs r0, #0 - 801d480: e7f7 b.n 801d472 <__swsetup_r+0xba> - 801d482: bf00 nop - 801d484: 20000078 .word 0x20000078 - 801d488: 0802283c .word 0x0802283c - 801d48c: 0802285c .word 0x0802285c - 801d490: 0802281c .word 0x0802281c - -0801d494 <_close_r>: - 801d494: b538 push {r3, r4, r5, lr} - 801d496: 4c06 ldr r4, [pc, #24] ; (801d4b0 <_close_r+0x1c>) - 801d498: 2300 movs r3, #0 - 801d49a: 4605 mov r5, r0 - 801d49c: 4608 mov r0, r1 - 801d49e: 6023 str r3, [r4, #0] - 801d4a0: f7e7 fc41 bl 8004d26 <_close> - 801d4a4: 1c43 adds r3, r0, #1 - 801d4a6: d102 bne.n 801d4ae <_close_r+0x1a> - 801d4a8: 6823 ldr r3, [r4, #0] - 801d4aa: b103 cbz r3, 801d4ae <_close_r+0x1a> - 801d4ac: 602b str r3, [r5, #0] - 801d4ae: bd38 pop {r3, r4, r5, pc} - 801d4b0: 2000f834 .word 0x2000f834 - -0801d4b4 <__sflush_r>: - 801d4b4: 898a ldrh r2, [r1, #12] - 801d4b6: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} - 801d4ba: 4605 mov r5, r0 - 801d4bc: 0710 lsls r0, r2, #28 - 801d4be: 460c mov r4, r1 - 801d4c0: d458 bmi.n 801d574 <__sflush_r+0xc0> - 801d4c2: 684b ldr r3, [r1, #4] - 801d4c4: 2b00 cmp r3, #0 - 801d4c6: dc05 bgt.n 801d4d4 <__sflush_r+0x20> - 801d4c8: 6c0b ldr r3, [r1, #64] ; 0x40 - 801d4ca: 2b00 cmp r3, #0 - 801d4cc: dc02 bgt.n 801d4d4 <__sflush_r+0x20> - 801d4ce: 2000 movs r0, #0 - 801d4d0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} - 801d4d4: 6ae6 ldr r6, [r4, #44] ; 0x2c - 801d4d6: 2e00 cmp r6, #0 - 801d4d8: d0f9 beq.n 801d4ce <__sflush_r+0x1a> - 801d4da: 2300 movs r3, #0 - 801d4dc: f412 5280 ands.w r2, r2, #4096 ; 0x1000 - 801d4e0: 682f ldr r7, [r5, #0] - 801d4e2: 6a21 ldr r1, [r4, #32] - 801d4e4: 602b str r3, [r5, #0] - 801d4e6: d032 beq.n 801d54e <__sflush_r+0x9a> - 801d4e8: 6d60 ldr r0, [r4, #84] ; 0x54 - 801d4ea: 89a3 ldrh r3, [r4, #12] - 801d4ec: 075a lsls r2, r3, #29 - 801d4ee: d505 bpl.n 801d4fc <__sflush_r+0x48> - 801d4f0: 6863 ldr r3, [r4, #4] - 801d4f2: 1ac0 subs r0, r0, r3 - 801d4f4: 6b63 ldr r3, [r4, #52] ; 0x34 - 801d4f6: b10b cbz r3, 801d4fc <__sflush_r+0x48> - 801d4f8: 6c23 ldr r3, [r4, #64] ; 0x40 - 801d4fa: 1ac0 subs r0, r0, r3 - 801d4fc: 2300 movs r3, #0 - 801d4fe: 4602 mov r2, r0 - 801d500: 6ae6 ldr r6, [r4, #44] ; 0x2c - 801d502: 6a21 ldr r1, [r4, #32] - 801d504: 4628 mov r0, r5 - 801d506: 47b0 blx r6 - 801d508: 1c43 adds r3, r0, #1 - 801d50a: 89a3 ldrh r3, [r4, #12] - 801d50c: d106 bne.n 801d51c <__sflush_r+0x68> - 801d50e: 6829 ldr r1, [r5, #0] - 801d510: 291d cmp r1, #29 - 801d512: d848 bhi.n 801d5a6 <__sflush_r+0xf2> - 801d514: 4a29 ldr r2, [pc, #164] ; (801d5bc <__sflush_r+0x108>) - 801d516: 40ca lsrs r2, r1 - 801d518: 07d6 lsls r6, r2, #31 - 801d51a: d544 bpl.n 801d5a6 <__sflush_r+0xf2> - 801d51c: 2200 movs r2, #0 - 801d51e: 6062 str r2, [r4, #4] - 801d520: 04d9 lsls r1, r3, #19 - 801d522: 6922 ldr r2, [r4, #16] - 801d524: 6022 str r2, [r4, #0] - 801d526: d504 bpl.n 801d532 <__sflush_r+0x7e> - 801d528: 1c42 adds r2, r0, #1 - 801d52a: d101 bne.n 801d530 <__sflush_r+0x7c> - 801d52c: 682b ldr r3, [r5, #0] - 801d52e: b903 cbnz r3, 801d532 <__sflush_r+0x7e> - 801d530: 6560 str r0, [r4, #84] ; 0x54 - 801d532: 6b61 ldr r1, [r4, #52] ; 0x34 - 801d534: 602f str r7, [r5, #0] - 801d536: 2900 cmp r1, #0 - 801d538: d0c9 beq.n 801d4ce <__sflush_r+0x1a> - 801d53a: f104 0344 add.w r3, r4, #68 ; 0x44 - 801d53e: 4299 cmp r1, r3 - 801d540: d002 beq.n 801d548 <__sflush_r+0x94> - 801d542: 4628 mov r0, r5 - 801d544: f7ff f9be bl 801c8c4 <_free_r> - 801d548: 2000 movs r0, #0 - 801d54a: 6360 str r0, [r4, #52] ; 0x34 - 801d54c: e7c0 b.n 801d4d0 <__sflush_r+0x1c> - 801d54e: 2301 movs r3, #1 - 801d550: 4628 mov r0, r5 - 801d552: 47b0 blx r6 - 801d554: 1c41 adds r1, r0, #1 - 801d556: d1c8 bne.n 801d4ea <__sflush_r+0x36> - 801d558: 682b ldr r3, [r5, #0] - 801d55a: 2b00 cmp r3, #0 - 801d55c: d0c5 beq.n 801d4ea <__sflush_r+0x36> - 801d55e: 2b1d cmp r3, #29 - 801d560: d001 beq.n 801d566 <__sflush_r+0xb2> - 801d562: 2b16 cmp r3, #22 - 801d564: d101 bne.n 801d56a <__sflush_r+0xb6> - 801d566: 602f str r7, [r5, #0] - 801d568: e7b1 b.n 801d4ce <__sflush_r+0x1a> - 801d56a: 89a3 ldrh r3, [r4, #12] - 801d56c: f043 0340 orr.w r3, r3, #64 ; 0x40 - 801d570: 81a3 strh r3, [r4, #12] - 801d572: e7ad b.n 801d4d0 <__sflush_r+0x1c> - 801d574: 690f ldr r7, [r1, #16] - 801d576: 2f00 cmp r7, #0 - 801d578: d0a9 beq.n 801d4ce <__sflush_r+0x1a> - 801d57a: 0793 lsls r3, r2, #30 - 801d57c: 680e ldr r6, [r1, #0] - 801d57e: bf08 it eq - 801d580: 694b ldreq r3, [r1, #20] - 801d582: 600f str r7, [r1, #0] - 801d584: bf18 it ne - 801d586: 2300 movne r3, #0 - 801d588: eba6 0807 sub.w r8, r6, r7 - 801d58c: 608b str r3, [r1, #8] - 801d58e: f1b8 0f00 cmp.w r8, #0 - 801d592: dd9c ble.n 801d4ce <__sflush_r+0x1a> - 801d594: 4643 mov r3, r8 - 801d596: 463a mov r2, r7 - 801d598: 6a21 ldr r1, [r4, #32] - 801d59a: 6aa6 ldr r6, [r4, #40] ; 0x28 - 801d59c: 4628 mov r0, r5 - 801d59e: 47b0 blx r6 - 801d5a0: 2800 cmp r0, #0 - 801d5a2: dc06 bgt.n 801d5b2 <__sflush_r+0xfe> - 801d5a4: 89a3 ldrh r3, [r4, #12] - 801d5a6: f043 0340 orr.w r3, r3, #64 ; 0x40 - 801d5aa: 81a3 strh r3, [r4, #12] - 801d5ac: f04f 30ff mov.w r0, #4294967295 - 801d5b0: e78e b.n 801d4d0 <__sflush_r+0x1c> - 801d5b2: 4407 add r7, r0 - 801d5b4: eba8 0800 sub.w r8, r8, r0 - 801d5b8: e7e9 b.n 801d58e <__sflush_r+0xda> - 801d5ba: bf00 nop - 801d5bc: 20400001 .word 0x20400001 - -0801d5c0 <_fflush_r>: - 801d5c0: b538 push {r3, r4, r5, lr} - 801d5c2: 690b ldr r3, [r1, #16] - 801d5c4: 4605 mov r5, r0 - 801d5c6: 460c mov r4, r1 - 801d5c8: b1db cbz r3, 801d602 <_fflush_r+0x42> - 801d5ca: b118 cbz r0, 801d5d4 <_fflush_r+0x14> - 801d5cc: 6983 ldr r3, [r0, #24] - 801d5ce: b90b cbnz r3, 801d5d4 <_fflush_r+0x14> - 801d5d0: f7ff f8e6 bl 801c7a0 <__sinit> - 801d5d4: 4b0c ldr r3, [pc, #48] ; (801d608 <_fflush_r+0x48>) - 801d5d6: 429c cmp r4, r3 - 801d5d8: d109 bne.n 801d5ee <_fflush_r+0x2e> - 801d5da: 686c ldr r4, [r5, #4] - 801d5dc: f9b4 300c ldrsh.w r3, [r4, #12] - 801d5e0: b17b cbz r3, 801d602 <_fflush_r+0x42> - 801d5e2: 4621 mov r1, r4 - 801d5e4: 4628 mov r0, r5 - 801d5e6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} - 801d5ea: f7ff bf63 b.w 801d4b4 <__sflush_r> - 801d5ee: 4b07 ldr r3, [pc, #28] ; (801d60c <_fflush_r+0x4c>) - 801d5f0: 429c cmp r4, r3 - 801d5f2: d101 bne.n 801d5f8 <_fflush_r+0x38> - 801d5f4: 68ac ldr r4, [r5, #8] - 801d5f6: e7f1 b.n 801d5dc <_fflush_r+0x1c> - 801d5f8: 4b05 ldr r3, [pc, #20] ; (801d610 <_fflush_r+0x50>) - 801d5fa: 429c cmp r4, r3 - 801d5fc: bf08 it eq - 801d5fe: 68ec ldreq r4, [r5, #12] - 801d600: e7ec b.n 801d5dc <_fflush_r+0x1c> - 801d602: 2000 movs r0, #0 - 801d604: bd38 pop {r3, r4, r5, pc} - 801d606: bf00 nop - 801d608: 0802283c .word 0x0802283c - 801d60c: 0802285c .word 0x0802285c - 801d610: 0802281c .word 0x0802281c - -0801d614 <_lseek_r>: - 801d614: b538 push {r3, r4, r5, lr} - 801d616: 4c07 ldr r4, [pc, #28] ; (801d634 <_lseek_r+0x20>) - 801d618: 4605 mov r5, r0 - 801d61a: 4608 mov r0, r1 - 801d61c: 4611 mov r1, r2 - 801d61e: 2200 movs r2, #0 - 801d620: 6022 str r2, [r4, #0] - 801d622: 461a mov r2, r3 - 801d624: f7e7 fba6 bl 8004d74 <_lseek> - 801d628: 1c43 adds r3, r0, #1 - 801d62a: d102 bne.n 801d632 <_lseek_r+0x1e> - 801d62c: 6823 ldr r3, [r4, #0] - 801d62e: b103 cbz r3, 801d632 <_lseek_r+0x1e> - 801d630: 602b str r3, [r5, #0] - 801d632: bd38 pop {r3, r4, r5, pc} - 801d634: 2000f834 .word 0x2000f834 - -0801d638 <__swhatbuf_r>: - 801d638: b570 push {r4, r5, r6, lr} - 801d63a: 460e mov r6, r1 - 801d63c: f9b1 100e ldrsh.w r1, [r1, #14] - 801d640: 2900 cmp r1, #0 - 801d642: b096 sub sp, #88 ; 0x58 - 801d644: 4614 mov r4, r2 - 801d646: 461d mov r5, r3 - 801d648: da07 bge.n 801d65a <__swhatbuf_r+0x22> - 801d64a: 2300 movs r3, #0 - 801d64c: 602b str r3, [r5, #0] - 801d64e: 89b3 ldrh r3, [r6, #12] - 801d650: 061a lsls r2, r3, #24 - 801d652: d410 bmi.n 801d676 <__swhatbuf_r+0x3e> - 801d654: f44f 6380 mov.w r3, #1024 ; 0x400 - 801d658: e00e b.n 801d678 <__swhatbuf_r+0x40> - 801d65a: 466a mov r2, sp - 801d65c: f000 f88a bl 801d774 <_fstat_r> - 801d660: 2800 cmp r0, #0 - 801d662: dbf2 blt.n 801d64a <__swhatbuf_r+0x12> - 801d664: 9a01 ldr r2, [sp, #4] - 801d666: f402 4270 and.w r2, r2, #61440 ; 0xf000 - 801d66a: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 - 801d66e: 425a negs r2, r3 - 801d670: 415a adcs r2, r3 - 801d672: 602a str r2, [r5, #0] - 801d674: e7ee b.n 801d654 <__swhatbuf_r+0x1c> - 801d676: 2340 movs r3, #64 ; 0x40 - 801d678: 2000 movs r0, #0 - 801d67a: 6023 str r3, [r4, #0] - 801d67c: b016 add sp, #88 ; 0x58 - 801d67e: bd70 pop {r4, r5, r6, pc} - -0801d680 <__smakebuf_r>: - 801d680: 898b ldrh r3, [r1, #12] - 801d682: b573 push {r0, r1, r4, r5, r6, lr} - 801d684: 079d lsls r5, r3, #30 - 801d686: 4606 mov r6, r0 - 801d688: 460c mov r4, r1 - 801d68a: d507 bpl.n 801d69c <__smakebuf_r+0x1c> - 801d68c: f104 0347 add.w r3, r4, #71 ; 0x47 - 801d690: 6023 str r3, [r4, #0] - 801d692: 6123 str r3, [r4, #16] - 801d694: 2301 movs r3, #1 - 801d696: 6163 str r3, [r4, #20] - 801d698: b002 add sp, #8 - 801d69a: bd70 pop {r4, r5, r6, pc} - 801d69c: ab01 add r3, sp, #4 - 801d69e: 466a mov r2, sp - 801d6a0: f7ff ffca bl 801d638 <__swhatbuf_r> - 801d6a4: 9900 ldr r1, [sp, #0] - 801d6a6: 4605 mov r5, r0 - 801d6a8: 4630 mov r0, r6 - 801d6aa: f7ff f959 bl 801c960 <_malloc_r> - 801d6ae: b948 cbnz r0, 801d6c4 <__smakebuf_r+0x44> - 801d6b0: f9b4 300c ldrsh.w r3, [r4, #12] - 801d6b4: 059a lsls r2, r3, #22 - 801d6b6: d4ef bmi.n 801d698 <__smakebuf_r+0x18> - 801d6b8: f023 0303 bic.w r3, r3, #3 - 801d6bc: f043 0302 orr.w r3, r3, #2 - 801d6c0: 81a3 strh r3, [r4, #12] - 801d6c2: e7e3 b.n 801d68c <__smakebuf_r+0xc> - 801d6c4: 4b0d ldr r3, [pc, #52] ; (801d6fc <__smakebuf_r+0x7c>) - 801d6c6: 62b3 str r3, [r6, #40] ; 0x28 - 801d6c8: 89a3 ldrh r3, [r4, #12] - 801d6ca: 6020 str r0, [r4, #0] - 801d6cc: f043 0380 orr.w r3, r3, #128 ; 0x80 + 801d43a: 2300 movs r3, #0 + 801d43c: 6063 str r3, [r4, #4] + 801d43e: 6923 ldr r3, [r4, #16] + 801d440: 6023 str r3, [r4, #0] + 801d442: 89a3 ldrh r3, [r4, #12] + 801d444: f043 0308 orr.w r3, r3, #8 + 801d448: 81a3 strh r3, [r4, #12] + 801d44a: 6923 ldr r3, [r4, #16] + 801d44c: b94b cbnz r3, 801d462 <__swsetup_r+0x9a> + 801d44e: 89a3 ldrh r3, [r4, #12] + 801d450: f403 7320 and.w r3, r3, #640 ; 0x280 + 801d454: f5b3 7f00 cmp.w r3, #512 ; 0x200 + 801d458: d003 beq.n 801d462 <__swsetup_r+0x9a> + 801d45a: 4621 mov r1, r4 + 801d45c: 4630 mov r0, r6 + 801d45e: f000 f917 bl 801d690 <__smakebuf_r> + 801d462: 89a2 ldrh r2, [r4, #12] + 801d464: f012 0301 ands.w r3, r2, #1 + 801d468: d00c beq.n 801d484 <__swsetup_r+0xbc> + 801d46a: 2300 movs r3, #0 + 801d46c: 60a3 str r3, [r4, #8] + 801d46e: 6963 ldr r3, [r4, #20] + 801d470: 425b negs r3, r3 + 801d472: 61a3 str r3, [r4, #24] + 801d474: 6923 ldr r3, [r4, #16] + 801d476: b953 cbnz r3, 801d48e <__swsetup_r+0xc6> + 801d478: f9b4 300c ldrsh.w r3, [r4, #12] + 801d47c: f013 0080 ands.w r0, r3, #128 ; 0x80 + 801d480: d1ba bne.n 801d3f8 <__swsetup_r+0x30> + 801d482: bd70 pop {r4, r5, r6, pc} + 801d484: 0792 lsls r2, r2, #30 + 801d486: bf58 it pl + 801d488: 6963 ldrpl r3, [r4, #20] + 801d48a: 60a3 str r3, [r4, #8] + 801d48c: e7f2 b.n 801d474 <__swsetup_r+0xac> + 801d48e: 2000 movs r0, #0 + 801d490: e7f7 b.n 801d482 <__swsetup_r+0xba> + 801d492: bf00 nop + 801d494: 20000078 .word 0x20000078 + 801d498: 0802284c .word 0x0802284c + 801d49c: 0802286c .word 0x0802286c + 801d4a0: 0802282c .word 0x0802282c + +0801d4a4 <_close_r>: + 801d4a4: b538 push {r3, r4, r5, lr} + 801d4a6: 4c06 ldr r4, [pc, #24] ; (801d4c0 <_close_r+0x1c>) + 801d4a8: 2300 movs r3, #0 + 801d4aa: 4605 mov r5, r0 + 801d4ac: 4608 mov r0, r1 + 801d4ae: 6023 str r3, [r4, #0] + 801d4b0: f7e7 fc3b bl 8004d2a <_close> + 801d4b4: 1c43 adds r3, r0, #1 + 801d4b6: d102 bne.n 801d4be <_close_r+0x1a> + 801d4b8: 6823 ldr r3, [r4, #0] + 801d4ba: b103 cbz r3, 801d4be <_close_r+0x1a> + 801d4bc: 602b str r3, [r5, #0] + 801d4be: bd38 pop {r3, r4, r5, pc} + 801d4c0: 2000f834 .word 0x2000f834 + +0801d4c4 <__sflush_r>: + 801d4c4: 898a ldrh r2, [r1, #12] + 801d4c6: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} + 801d4ca: 4605 mov r5, r0 + 801d4cc: 0710 lsls r0, r2, #28 + 801d4ce: 460c mov r4, r1 + 801d4d0: d458 bmi.n 801d584 <__sflush_r+0xc0> + 801d4d2: 684b ldr r3, [r1, #4] + 801d4d4: 2b00 cmp r3, #0 + 801d4d6: dc05 bgt.n 801d4e4 <__sflush_r+0x20> + 801d4d8: 6c0b ldr r3, [r1, #64] ; 0x40 + 801d4da: 2b00 cmp r3, #0 + 801d4dc: dc02 bgt.n 801d4e4 <__sflush_r+0x20> + 801d4de: 2000 movs r0, #0 + 801d4e0: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} + 801d4e4: 6ae6 ldr r6, [r4, #44] ; 0x2c + 801d4e6: 2e00 cmp r6, #0 + 801d4e8: d0f9 beq.n 801d4de <__sflush_r+0x1a> + 801d4ea: 2300 movs r3, #0 + 801d4ec: f412 5280 ands.w r2, r2, #4096 ; 0x1000 + 801d4f0: 682f ldr r7, [r5, #0] + 801d4f2: 6a21 ldr r1, [r4, #32] + 801d4f4: 602b str r3, [r5, #0] + 801d4f6: d032 beq.n 801d55e <__sflush_r+0x9a> + 801d4f8: 6d60 ldr r0, [r4, #84] ; 0x54 + 801d4fa: 89a3 ldrh r3, [r4, #12] + 801d4fc: 075a lsls r2, r3, #29 + 801d4fe: d505 bpl.n 801d50c <__sflush_r+0x48> + 801d500: 6863 ldr r3, [r4, #4] + 801d502: 1ac0 subs r0, r0, r3 + 801d504: 6b63 ldr r3, [r4, #52] ; 0x34 + 801d506: b10b cbz r3, 801d50c <__sflush_r+0x48> + 801d508: 6c23 ldr r3, [r4, #64] ; 0x40 + 801d50a: 1ac0 subs r0, r0, r3 + 801d50c: 2300 movs r3, #0 + 801d50e: 4602 mov r2, r0 + 801d510: 6ae6 ldr r6, [r4, #44] ; 0x2c + 801d512: 6a21 ldr r1, [r4, #32] + 801d514: 4628 mov r0, r5 + 801d516: 47b0 blx r6 + 801d518: 1c43 adds r3, r0, #1 + 801d51a: 89a3 ldrh r3, [r4, #12] + 801d51c: d106 bne.n 801d52c <__sflush_r+0x68> + 801d51e: 6829 ldr r1, [r5, #0] + 801d520: 291d cmp r1, #29 + 801d522: d848 bhi.n 801d5b6 <__sflush_r+0xf2> + 801d524: 4a29 ldr r2, [pc, #164] ; (801d5cc <__sflush_r+0x108>) + 801d526: 40ca lsrs r2, r1 + 801d528: 07d6 lsls r6, r2, #31 + 801d52a: d544 bpl.n 801d5b6 <__sflush_r+0xf2> + 801d52c: 2200 movs r2, #0 + 801d52e: 6062 str r2, [r4, #4] + 801d530: 04d9 lsls r1, r3, #19 + 801d532: 6922 ldr r2, [r4, #16] + 801d534: 6022 str r2, [r4, #0] + 801d536: d504 bpl.n 801d542 <__sflush_r+0x7e> + 801d538: 1c42 adds r2, r0, #1 + 801d53a: d101 bne.n 801d540 <__sflush_r+0x7c> + 801d53c: 682b ldr r3, [r5, #0] + 801d53e: b903 cbnz r3, 801d542 <__sflush_r+0x7e> + 801d540: 6560 str r0, [r4, #84] ; 0x54 + 801d542: 6b61 ldr r1, [r4, #52] ; 0x34 + 801d544: 602f str r7, [r5, #0] + 801d546: 2900 cmp r1, #0 + 801d548: d0c9 beq.n 801d4de <__sflush_r+0x1a> + 801d54a: f104 0344 add.w r3, r4, #68 ; 0x44 + 801d54e: 4299 cmp r1, r3 + 801d550: d002 beq.n 801d558 <__sflush_r+0x94> + 801d552: 4628 mov r0, r5 + 801d554: f7ff f9be bl 801c8d4 <_free_r> + 801d558: 2000 movs r0, #0 + 801d55a: 6360 str r0, [r4, #52] ; 0x34 + 801d55c: e7c0 b.n 801d4e0 <__sflush_r+0x1c> + 801d55e: 2301 movs r3, #1 + 801d560: 4628 mov r0, r5 + 801d562: 47b0 blx r6 + 801d564: 1c41 adds r1, r0, #1 + 801d566: d1c8 bne.n 801d4fa <__sflush_r+0x36> + 801d568: 682b ldr r3, [r5, #0] + 801d56a: 2b00 cmp r3, #0 + 801d56c: d0c5 beq.n 801d4fa <__sflush_r+0x36> + 801d56e: 2b1d cmp r3, #29 + 801d570: d001 beq.n 801d576 <__sflush_r+0xb2> + 801d572: 2b16 cmp r3, #22 + 801d574: d101 bne.n 801d57a <__sflush_r+0xb6> + 801d576: 602f str r7, [r5, #0] + 801d578: e7b1 b.n 801d4de <__sflush_r+0x1a> + 801d57a: 89a3 ldrh r3, [r4, #12] + 801d57c: f043 0340 orr.w r3, r3, #64 ; 0x40 + 801d580: 81a3 strh r3, [r4, #12] + 801d582: e7ad b.n 801d4e0 <__sflush_r+0x1c> + 801d584: 690f ldr r7, [r1, #16] + 801d586: 2f00 cmp r7, #0 + 801d588: d0a9 beq.n 801d4de <__sflush_r+0x1a> + 801d58a: 0793 lsls r3, r2, #30 + 801d58c: 680e ldr r6, [r1, #0] + 801d58e: bf08 it eq + 801d590: 694b ldreq r3, [r1, #20] + 801d592: 600f str r7, [r1, #0] + 801d594: bf18 it ne + 801d596: 2300 movne r3, #0 + 801d598: eba6 0807 sub.w r8, r6, r7 + 801d59c: 608b str r3, [r1, #8] + 801d59e: f1b8 0f00 cmp.w r8, #0 + 801d5a2: dd9c ble.n 801d4de <__sflush_r+0x1a> + 801d5a4: 4643 mov r3, r8 + 801d5a6: 463a mov r2, r7 + 801d5a8: 6a21 ldr r1, [r4, #32] + 801d5aa: 6aa6 ldr r6, [r4, #40] ; 0x28 + 801d5ac: 4628 mov r0, r5 + 801d5ae: 47b0 blx r6 + 801d5b0: 2800 cmp r0, #0 + 801d5b2: dc06 bgt.n 801d5c2 <__sflush_r+0xfe> + 801d5b4: 89a3 ldrh r3, [r4, #12] + 801d5b6: f043 0340 orr.w r3, r3, #64 ; 0x40 + 801d5ba: 81a3 strh r3, [r4, #12] + 801d5bc: f04f 30ff mov.w r0, #4294967295 + 801d5c0: e78e b.n 801d4e0 <__sflush_r+0x1c> + 801d5c2: 4407 add r7, r0 + 801d5c4: eba8 0800 sub.w r8, r8, r0 + 801d5c8: e7e9 b.n 801d59e <__sflush_r+0xda> + 801d5ca: bf00 nop + 801d5cc: 20400001 .word 0x20400001 + +0801d5d0 <_fflush_r>: + 801d5d0: b538 push {r3, r4, r5, lr} + 801d5d2: 690b ldr r3, [r1, #16] + 801d5d4: 4605 mov r5, r0 + 801d5d6: 460c mov r4, r1 + 801d5d8: b1db cbz r3, 801d612 <_fflush_r+0x42> + 801d5da: b118 cbz r0, 801d5e4 <_fflush_r+0x14> + 801d5dc: 6983 ldr r3, [r0, #24] + 801d5de: b90b cbnz r3, 801d5e4 <_fflush_r+0x14> + 801d5e0: f7ff f8e6 bl 801c7b0 <__sinit> + 801d5e4: 4b0c ldr r3, [pc, #48] ; (801d618 <_fflush_r+0x48>) + 801d5e6: 429c cmp r4, r3 + 801d5e8: d109 bne.n 801d5fe <_fflush_r+0x2e> + 801d5ea: 686c ldr r4, [r5, #4] + 801d5ec: f9b4 300c ldrsh.w r3, [r4, #12] + 801d5f0: b17b cbz r3, 801d612 <_fflush_r+0x42> + 801d5f2: 4621 mov r1, r4 + 801d5f4: 4628 mov r0, r5 + 801d5f6: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} + 801d5fa: f7ff bf63 b.w 801d4c4 <__sflush_r> + 801d5fe: 4b07 ldr r3, [pc, #28] ; (801d61c <_fflush_r+0x4c>) + 801d600: 429c cmp r4, r3 + 801d602: d101 bne.n 801d608 <_fflush_r+0x38> + 801d604: 68ac ldr r4, [r5, #8] + 801d606: e7f1 b.n 801d5ec <_fflush_r+0x1c> + 801d608: 4b05 ldr r3, [pc, #20] ; (801d620 <_fflush_r+0x50>) + 801d60a: 429c cmp r4, r3 + 801d60c: bf08 it eq + 801d60e: 68ec ldreq r4, [r5, #12] + 801d610: e7ec b.n 801d5ec <_fflush_r+0x1c> + 801d612: 2000 movs r0, #0 + 801d614: bd38 pop {r3, r4, r5, pc} + 801d616: bf00 nop + 801d618: 0802284c .word 0x0802284c + 801d61c: 0802286c .word 0x0802286c + 801d620: 0802282c .word 0x0802282c + +0801d624 <_lseek_r>: + 801d624: b538 push {r3, r4, r5, lr} + 801d626: 4c07 ldr r4, [pc, #28] ; (801d644 <_lseek_r+0x20>) + 801d628: 4605 mov r5, r0 + 801d62a: 4608 mov r0, r1 + 801d62c: 4611 mov r1, r2 + 801d62e: 2200 movs r2, #0 + 801d630: 6022 str r2, [r4, #0] + 801d632: 461a mov r2, r3 + 801d634: f7e7 fba0 bl 8004d78 <_lseek> + 801d638: 1c43 adds r3, r0, #1 + 801d63a: d102 bne.n 801d642 <_lseek_r+0x1e> + 801d63c: 6823 ldr r3, [r4, #0] + 801d63e: b103 cbz r3, 801d642 <_lseek_r+0x1e> + 801d640: 602b str r3, [r5, #0] + 801d642: bd38 pop {r3, r4, r5, pc} + 801d644: 2000f834 .word 0x2000f834 + +0801d648 <__swhatbuf_r>: + 801d648: b570 push {r4, r5, r6, lr} + 801d64a: 460e mov r6, r1 + 801d64c: f9b1 100e ldrsh.w r1, [r1, #14] + 801d650: 2900 cmp r1, #0 + 801d652: b096 sub sp, #88 ; 0x58 + 801d654: 4614 mov r4, r2 + 801d656: 461d mov r5, r3 + 801d658: da07 bge.n 801d66a <__swhatbuf_r+0x22> + 801d65a: 2300 movs r3, #0 + 801d65c: 602b str r3, [r5, #0] + 801d65e: 89b3 ldrh r3, [r6, #12] + 801d660: 061a lsls r2, r3, #24 + 801d662: d410 bmi.n 801d686 <__swhatbuf_r+0x3e> + 801d664: f44f 6380 mov.w r3, #1024 ; 0x400 + 801d668: e00e b.n 801d688 <__swhatbuf_r+0x40> + 801d66a: 466a mov r2, sp + 801d66c: f000 f88a bl 801d784 <_fstat_r> + 801d670: 2800 cmp r0, #0 + 801d672: dbf2 blt.n 801d65a <__swhatbuf_r+0x12> + 801d674: 9a01 ldr r2, [sp, #4] + 801d676: f402 4270 and.w r2, r2, #61440 ; 0xf000 + 801d67a: f5a2 5300 sub.w r3, r2, #8192 ; 0x2000 + 801d67e: 425a negs r2, r3 + 801d680: 415a adcs r2, r3 + 801d682: 602a str r2, [r5, #0] + 801d684: e7ee b.n 801d664 <__swhatbuf_r+0x1c> + 801d686: 2340 movs r3, #64 ; 0x40 + 801d688: 2000 movs r0, #0 + 801d68a: 6023 str r3, [r4, #0] + 801d68c: b016 add sp, #88 ; 0x58 + 801d68e: bd70 pop {r4, r5, r6, pc} + +0801d690 <__smakebuf_r>: + 801d690: 898b ldrh r3, [r1, #12] + 801d692: b573 push {r0, r1, r4, r5, r6, lr} + 801d694: 079d lsls r5, r3, #30 + 801d696: 4606 mov r6, r0 + 801d698: 460c mov r4, r1 + 801d69a: d507 bpl.n 801d6ac <__smakebuf_r+0x1c> + 801d69c: f104 0347 add.w r3, r4, #71 ; 0x47 + 801d6a0: 6023 str r3, [r4, #0] + 801d6a2: 6123 str r3, [r4, #16] + 801d6a4: 2301 movs r3, #1 + 801d6a6: 6163 str r3, [r4, #20] + 801d6a8: b002 add sp, #8 + 801d6aa: bd70 pop {r4, r5, r6, pc} + 801d6ac: ab01 add r3, sp, #4 + 801d6ae: 466a mov r2, sp + 801d6b0: f7ff ffca bl 801d648 <__swhatbuf_r> + 801d6b4: 9900 ldr r1, [sp, #0] + 801d6b6: 4605 mov r5, r0 + 801d6b8: 4630 mov r0, r6 + 801d6ba: f7ff f959 bl 801c970 <_malloc_r> + 801d6be: b948 cbnz r0, 801d6d4 <__smakebuf_r+0x44> + 801d6c0: f9b4 300c ldrsh.w r3, [r4, #12] + 801d6c4: 059a lsls r2, r3, #22 + 801d6c6: d4ef bmi.n 801d6a8 <__smakebuf_r+0x18> + 801d6c8: f023 0303 bic.w r3, r3, #3 + 801d6cc: f043 0302 orr.w r3, r3, #2 801d6d0: 81a3 strh r3, [r4, #12] - 801d6d2: 9b00 ldr r3, [sp, #0] - 801d6d4: 6163 str r3, [r4, #20] - 801d6d6: 9b01 ldr r3, [sp, #4] - 801d6d8: 6120 str r0, [r4, #16] - 801d6da: b15b cbz r3, 801d6f4 <__smakebuf_r+0x74> - 801d6dc: f9b4 100e ldrsh.w r1, [r4, #14] - 801d6e0: 4630 mov r0, r6 - 801d6e2: f000 f859 bl 801d798 <_isatty_r> - 801d6e6: b128 cbz r0, 801d6f4 <__smakebuf_r+0x74> - 801d6e8: 89a3 ldrh r3, [r4, #12] - 801d6ea: f023 0303 bic.w r3, r3, #3 - 801d6ee: f043 0301 orr.w r3, r3, #1 - 801d6f2: 81a3 strh r3, [r4, #12] - 801d6f4: 89a3 ldrh r3, [r4, #12] - 801d6f6: 431d orrs r5, r3 - 801d6f8: 81a5 strh r5, [r4, #12] - 801d6fa: e7cd b.n 801d698 <__smakebuf_r+0x18> - 801d6fc: 0801c769 .word 0x0801c769 - -0801d700 <__malloc_lock>: - 801d700: 4770 bx lr - -0801d702 <__malloc_unlock>: - 801d702: 4770 bx lr - -0801d704 <_realloc_r>: - 801d704: b5f8 push {r3, r4, r5, r6, r7, lr} - 801d706: 4607 mov r7, r0 - 801d708: 4614 mov r4, r2 - 801d70a: 460e mov r6, r1 - 801d70c: b921 cbnz r1, 801d718 <_realloc_r+0x14> - 801d70e: 4611 mov r1, r2 - 801d710: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} - 801d714: f7ff b924 b.w 801c960 <_malloc_r> - 801d718: b922 cbnz r2, 801d724 <_realloc_r+0x20> - 801d71a: f7ff f8d3 bl 801c8c4 <_free_r> - 801d71e: 4625 mov r5, r4 - 801d720: 4628 mov r0, r5 - 801d722: bdf8 pop {r3, r4, r5, r6, r7, pc} - 801d724: f000 f848 bl 801d7b8 <_malloc_usable_size_r> - 801d728: 42a0 cmp r0, r4 - 801d72a: d20f bcs.n 801d74c <_realloc_r+0x48> - 801d72c: 4621 mov r1, r4 - 801d72e: 4638 mov r0, r7 - 801d730: f7ff f916 bl 801c960 <_malloc_r> - 801d734: 4605 mov r5, r0 - 801d736: 2800 cmp r0, #0 - 801d738: d0f2 beq.n 801d720 <_realloc_r+0x1c> - 801d73a: 4631 mov r1, r6 - 801d73c: 4622 mov r2, r4 - 801d73e: f7fe ff56 bl 801c5ee - 801d742: 4631 mov r1, r6 - 801d744: 4638 mov r0, r7 - 801d746: f7ff f8bd bl 801c8c4 <_free_r> - 801d74a: e7e9 b.n 801d720 <_realloc_r+0x1c> - 801d74c: 4635 mov r5, r6 - 801d74e: e7e7 b.n 801d720 <_realloc_r+0x1c> - -0801d750 <_read_r>: - 801d750: b538 push {r3, r4, r5, lr} - 801d752: 4c07 ldr r4, [pc, #28] ; (801d770 <_read_r+0x20>) - 801d754: 4605 mov r5, r0 - 801d756: 4608 mov r0, r1 - 801d758: 4611 mov r1, r2 - 801d75a: 2200 movs r2, #0 - 801d75c: 6022 str r2, [r4, #0] - 801d75e: 461a mov r2, r3 - 801d760: f7e7 faa8 bl 8004cb4 <_read> - 801d764: 1c43 adds r3, r0, #1 - 801d766: d102 bne.n 801d76e <_read_r+0x1e> - 801d768: 6823 ldr r3, [r4, #0] - 801d76a: b103 cbz r3, 801d76e <_read_r+0x1e> - 801d76c: 602b str r3, [r5, #0] - 801d76e: bd38 pop {r3, r4, r5, pc} - 801d770: 2000f834 .word 0x2000f834 - -0801d774 <_fstat_r>: - 801d774: b538 push {r3, r4, r5, lr} - 801d776: 4c07 ldr r4, [pc, #28] ; (801d794 <_fstat_r+0x20>) - 801d778: 2300 movs r3, #0 - 801d77a: 4605 mov r5, r0 - 801d77c: 4608 mov r0, r1 - 801d77e: 4611 mov r1, r2 - 801d780: 6023 str r3, [r4, #0] - 801d782: f7e7 fadc bl 8004d3e <_fstat> - 801d786: 1c43 adds r3, r0, #1 - 801d788: d102 bne.n 801d790 <_fstat_r+0x1c> - 801d78a: 6823 ldr r3, [r4, #0] - 801d78c: b103 cbz r3, 801d790 <_fstat_r+0x1c> - 801d78e: 602b str r3, [r5, #0] - 801d790: bd38 pop {r3, r4, r5, pc} - 801d792: bf00 nop - 801d794: 2000f834 .word 0x2000f834 - -0801d798 <_isatty_r>: - 801d798: b538 push {r3, r4, r5, lr} - 801d79a: 4c06 ldr r4, [pc, #24] ; (801d7b4 <_isatty_r+0x1c>) - 801d79c: 2300 movs r3, #0 - 801d79e: 4605 mov r5, r0 - 801d7a0: 4608 mov r0, r1 - 801d7a2: 6023 str r3, [r4, #0] - 801d7a4: f7e7 fadb bl 8004d5e <_isatty> - 801d7a8: 1c43 adds r3, r0, #1 - 801d7aa: d102 bne.n 801d7b2 <_isatty_r+0x1a> - 801d7ac: 6823 ldr r3, [r4, #0] - 801d7ae: b103 cbz r3, 801d7b2 <_isatty_r+0x1a> - 801d7b0: 602b str r3, [r5, #0] - 801d7b2: bd38 pop {r3, r4, r5, pc} - 801d7b4: 2000f834 .word 0x2000f834 - -0801d7b8 <_malloc_usable_size_r>: - 801d7b8: f851 3c04 ldr.w r3, [r1, #-4] - 801d7bc: 1f18 subs r0, r3, #4 - 801d7be: 2b00 cmp r3, #0 - 801d7c0: bfbc itt lt - 801d7c2: 580b ldrlt r3, [r1, r0] - 801d7c4: 18c0 addlt r0, r0, r3 - 801d7c6: 4770 bx lr - -0801d7c8 <_init>: - 801d7c8: b5f8 push {r3, r4, r5, r6, r7, lr} - 801d7ca: bf00 nop - 801d7cc: bcf8 pop {r3, r4, r5, r6, r7} - 801d7ce: bc08 pop {r3} - 801d7d0: 469e mov lr, r3 - 801d7d2: 4770 bx lr - -0801d7d4 <_fini>: - 801d7d4: b5f8 push {r3, r4, r5, r6, r7, lr} - 801d7d6: bf00 nop - 801d7d8: bcf8 pop {r3, r4, r5, r6, r7} - 801d7da: bc08 pop {r3} - 801d7dc: 469e mov lr, r3 - 801d7de: 4770 bx lr + 801d6d2: e7e3 b.n 801d69c <__smakebuf_r+0xc> + 801d6d4: 4b0d ldr r3, [pc, #52] ; (801d70c <__smakebuf_r+0x7c>) + 801d6d6: 62b3 str r3, [r6, #40] ; 0x28 + 801d6d8: 89a3 ldrh r3, [r4, #12] + 801d6da: 6020 str r0, [r4, #0] + 801d6dc: f043 0380 orr.w r3, r3, #128 ; 0x80 + 801d6e0: 81a3 strh r3, [r4, #12] + 801d6e2: 9b00 ldr r3, [sp, #0] + 801d6e4: 6163 str r3, [r4, #20] + 801d6e6: 9b01 ldr r3, [sp, #4] + 801d6e8: 6120 str r0, [r4, #16] + 801d6ea: b15b cbz r3, 801d704 <__smakebuf_r+0x74> + 801d6ec: f9b4 100e ldrsh.w r1, [r4, #14] + 801d6f0: 4630 mov r0, r6 + 801d6f2: f000 f859 bl 801d7a8 <_isatty_r> + 801d6f6: b128 cbz r0, 801d704 <__smakebuf_r+0x74> + 801d6f8: 89a3 ldrh r3, [r4, #12] + 801d6fa: f023 0303 bic.w r3, r3, #3 + 801d6fe: f043 0301 orr.w r3, r3, #1 + 801d702: 81a3 strh r3, [r4, #12] + 801d704: 89a3 ldrh r3, [r4, #12] + 801d706: 431d orrs r5, r3 + 801d708: 81a5 strh r5, [r4, #12] + 801d70a: e7cd b.n 801d6a8 <__smakebuf_r+0x18> + 801d70c: 0801c779 .word 0x0801c779 + +0801d710 <__malloc_lock>: + 801d710: 4770 bx lr + +0801d712 <__malloc_unlock>: + 801d712: 4770 bx lr + +0801d714 <_realloc_r>: + 801d714: b5f8 push {r3, r4, r5, r6, r7, lr} + 801d716: 4607 mov r7, r0 + 801d718: 4614 mov r4, r2 + 801d71a: 460e mov r6, r1 + 801d71c: b921 cbnz r1, 801d728 <_realloc_r+0x14> + 801d71e: 4611 mov r1, r2 + 801d720: e8bd 40f8 ldmia.w sp!, {r3, r4, r5, r6, r7, lr} + 801d724: f7ff b924 b.w 801c970 <_malloc_r> + 801d728: b922 cbnz r2, 801d734 <_realloc_r+0x20> + 801d72a: f7ff f8d3 bl 801c8d4 <_free_r> + 801d72e: 4625 mov r5, r4 + 801d730: 4628 mov r0, r5 + 801d732: bdf8 pop {r3, r4, r5, r6, r7, pc} + 801d734: f000 f848 bl 801d7c8 <_malloc_usable_size_r> + 801d738: 42a0 cmp r0, r4 + 801d73a: d20f bcs.n 801d75c <_realloc_r+0x48> + 801d73c: 4621 mov r1, r4 + 801d73e: 4638 mov r0, r7 + 801d740: f7ff f916 bl 801c970 <_malloc_r> + 801d744: 4605 mov r5, r0 + 801d746: 2800 cmp r0, #0 + 801d748: d0f2 beq.n 801d730 <_realloc_r+0x1c> + 801d74a: 4631 mov r1, r6 + 801d74c: 4622 mov r2, r4 + 801d74e: f7fe ff56 bl 801c5fe + 801d752: 4631 mov r1, r6 + 801d754: 4638 mov r0, r7 + 801d756: f7ff f8bd bl 801c8d4 <_free_r> + 801d75a: e7e9 b.n 801d730 <_realloc_r+0x1c> + 801d75c: 4635 mov r5, r6 + 801d75e: e7e7 b.n 801d730 <_realloc_r+0x1c> + +0801d760 <_read_r>: + 801d760: b538 push {r3, r4, r5, lr} + 801d762: 4c07 ldr r4, [pc, #28] ; (801d780 <_read_r+0x20>) + 801d764: 4605 mov r5, r0 + 801d766: 4608 mov r0, r1 + 801d768: 4611 mov r1, r2 + 801d76a: 2200 movs r2, #0 + 801d76c: 6022 str r2, [r4, #0] + 801d76e: 461a mov r2, r3 + 801d770: f7e7 faa2 bl 8004cb8 <_read> + 801d774: 1c43 adds r3, r0, #1 + 801d776: d102 bne.n 801d77e <_read_r+0x1e> + 801d778: 6823 ldr r3, [r4, #0] + 801d77a: b103 cbz r3, 801d77e <_read_r+0x1e> + 801d77c: 602b str r3, [r5, #0] + 801d77e: bd38 pop {r3, r4, r5, pc} + 801d780: 2000f834 .word 0x2000f834 + +0801d784 <_fstat_r>: + 801d784: b538 push {r3, r4, r5, lr} + 801d786: 4c07 ldr r4, [pc, #28] ; (801d7a4 <_fstat_r+0x20>) + 801d788: 2300 movs r3, #0 + 801d78a: 4605 mov r5, r0 + 801d78c: 4608 mov r0, r1 + 801d78e: 4611 mov r1, r2 + 801d790: 6023 str r3, [r4, #0] + 801d792: f7e7 fad6 bl 8004d42 <_fstat> + 801d796: 1c43 adds r3, r0, #1 + 801d798: d102 bne.n 801d7a0 <_fstat_r+0x1c> + 801d79a: 6823 ldr r3, [r4, #0] + 801d79c: b103 cbz r3, 801d7a0 <_fstat_r+0x1c> + 801d79e: 602b str r3, [r5, #0] + 801d7a0: bd38 pop {r3, r4, r5, pc} + 801d7a2: bf00 nop + 801d7a4: 2000f834 .word 0x2000f834 + +0801d7a8 <_isatty_r>: + 801d7a8: b538 push {r3, r4, r5, lr} + 801d7aa: 4c06 ldr r4, [pc, #24] ; (801d7c4 <_isatty_r+0x1c>) + 801d7ac: 2300 movs r3, #0 + 801d7ae: 4605 mov r5, r0 + 801d7b0: 4608 mov r0, r1 + 801d7b2: 6023 str r3, [r4, #0] + 801d7b4: f7e7 fad5 bl 8004d62 <_isatty> + 801d7b8: 1c43 adds r3, r0, #1 + 801d7ba: d102 bne.n 801d7c2 <_isatty_r+0x1a> + 801d7bc: 6823 ldr r3, [r4, #0] + 801d7be: b103 cbz r3, 801d7c2 <_isatty_r+0x1a> + 801d7c0: 602b str r3, [r5, #0] + 801d7c2: bd38 pop {r3, r4, r5, pc} + 801d7c4: 2000f834 .word 0x2000f834 + +0801d7c8 <_malloc_usable_size_r>: + 801d7c8: f851 3c04 ldr.w r3, [r1, #-4] + 801d7cc: 1f18 subs r0, r3, #4 + 801d7ce: 2b00 cmp r3, #0 + 801d7d0: bfbc itt lt + 801d7d2: 580b ldrlt r3, [r1, r0] + 801d7d4: 18c0 addlt r0, r0, r3 + 801d7d6: 4770 bx lr + +0801d7d8 <_init>: + 801d7d8: b5f8 push {r3, r4, r5, r6, r7, lr} + 801d7da: bf00 nop + 801d7dc: bcf8 pop {r3, r4, r5, r6, r7} + 801d7de: bc08 pop {r3} + 801d7e0: 469e mov lr, r3 + 801d7e2: 4770 bx lr + +0801d7e4 <_fini>: + 801d7e4: b5f8 push {r3, r4, r5, r6, r7, lr} + 801d7e6: bf00 nop + 801d7e8: bcf8 pop {r3, r4, r5, r6, r7} + 801d7ea: bc08 pop {r3} + 801d7ec: 469e mov lr, r3 + 801d7ee: 4770 bx lr diff --git a/Debug/Space_Invaders.map b/Debug/Space_Invaders.map index ad1d123..bd0f380 100644 --- a/Debug/Space_Invaders.map +++ b/Debug/Space_Invaders.map @@ -32222,7 +32222,7 @@ LOAD c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte 0x0000000008000000 g_pfnVectors 0x00000000080001c8 . = ALIGN (0x4) -.text 0x00000000080001d0 0x1d610 +.text 0x00000000080001d0 0x1d620 0x00000000080001d0 . = ALIGN (0x4) *(.text) .text 0x00000000080001d0 0x40 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o @@ -32350,1910 +32350,1911 @@ LOAD c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte 0x000000000800220c f_block_enemie *fill* 0x0000000008002226 0x2 .text.f_projectile - 0x0000000008002228 0x3f4 Core/Src/main.o + 0x0000000008002228 0x3f8 Core/Src/main.o 0x0000000008002228 f_projectile .text.HAL_TIM_PeriodElapsedCallback - 0x000000000800261c 0x24 Core/Src/main.o - 0x000000000800261c HAL_TIM_PeriodElapsedCallback + 0x0000000008002620 0x24 Core/Src/main.o + 0x0000000008002620 HAL_TIM_PeriodElapsedCallback .text.Error_Handler - 0x0000000008002640 0x8 Core/Src/main.o - 0x0000000008002640 Error_Handler + 0x0000000008002644 0x8 Core/Src/main.o + 0x0000000008002644 Error_Handler .text.I2Cx_MspInit - 0x0000000008002648 0x160 Core/Src/stm32746g_discovery.o + 0x000000000800264c 0x160 Core/Src/stm32746g_discovery.o .text.I2Cx_Init - 0x00000000080027a8 0x78 Core/Src/stm32746g_discovery.o + 0x00000000080027ac 0x78 Core/Src/stm32746g_discovery.o .text.I2Cx_ReadMultiple - 0x0000000008002820 0x5a Core/Src/stm32746g_discovery.o + 0x0000000008002824 0x5a Core/Src/stm32746g_discovery.o .text.I2Cx_WriteMultiple - 0x000000000800287a 0x5a Core/Src/stm32746g_discovery.o + 0x000000000800287e 0x5a Core/Src/stm32746g_discovery.o .text.I2Cx_Error - 0x00000000080028d4 0x20 Core/Src/stm32746g_discovery.o + 0x00000000080028d8 0x20 Core/Src/stm32746g_discovery.o .text.TS_IO_Init - 0x00000000080028f4 0x14 Core/Src/stm32746g_discovery.o - 0x00000000080028f4 TS_IO_Init + 0x00000000080028f8 0x14 Core/Src/stm32746g_discovery.o + 0x00000000080028f8 TS_IO_Init .text.TS_IO_Write - 0x0000000008002908 0x34 Core/Src/stm32746g_discovery.o - 0x0000000008002908 TS_IO_Write + 0x000000000800290c 0x34 Core/Src/stm32746g_discovery.o + 0x000000000800290c TS_IO_Write .text.TS_IO_Read - 0x000000000800293c 0x3c Core/Src/stm32746g_discovery.o - 0x000000000800293c TS_IO_Read + 0x0000000008002940 0x3c Core/Src/stm32746g_discovery.o + 0x0000000008002940 TS_IO_Read .text.TS_IO_Delay - 0x0000000008002978 0x16 Core/Src/stm32746g_discovery.o - 0x0000000008002978 TS_IO_Delay - *fill* 0x000000000800298e 0x2 + 0x000000000800297c 0x16 Core/Src/stm32746g_discovery.o + 0x000000000800297c TS_IO_Delay + *fill* 0x0000000008002992 0x2 .text.BSP_LCD_Init - 0x0000000008002990 0xe0 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002990 BSP_LCD_Init + 0x0000000008002994 0xe0 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002994 BSP_LCD_Init .text.BSP_LCD_GetXSize - 0x0000000008002a70 0x28 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002a70 BSP_LCD_GetXSize + 0x0000000008002a74 0x28 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002a74 BSP_LCD_GetXSize .text.BSP_LCD_GetYSize - 0x0000000008002a98 0x28 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002a98 BSP_LCD_GetYSize + 0x0000000008002a9c 0x28 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002a9c BSP_LCD_GetYSize .text.BSP_LCD_LayerDefaultInit - 0x0000000008002ac0 0xc0 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002ac0 BSP_LCD_LayerDefaultInit + 0x0000000008002ac4 0xc0 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002ac4 BSP_LCD_LayerDefaultInit .text.BSP_LCD_SelectLayer - 0x0000000008002b80 0x20 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002b80 BSP_LCD_SelectLayer + 0x0000000008002b84 0x20 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002b84 BSP_LCD_SelectLayer .text.BSP_LCD_SetTextColor - 0x0000000008002ba0 0x30 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002ba0 BSP_LCD_SetTextColor + 0x0000000008002ba4 0x30 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002ba4 BSP_LCD_SetTextColor .text.BSP_LCD_SetBackColor - 0x0000000008002bd0 0x34 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002bd0 BSP_LCD_SetBackColor + 0x0000000008002bd4 0x34 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002bd4 BSP_LCD_SetBackColor .text.BSP_LCD_SetFont - 0x0000000008002c04 0x34 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002c04 BSP_LCD_SetFont + 0x0000000008002c08 0x34 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002c08 BSP_LCD_SetFont .text.BSP_LCD_GetFont - 0x0000000008002c38 0x2c Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002c38 BSP_LCD_GetFont + 0x0000000008002c3c 0x2c Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002c3c BSP_LCD_GetFont .text.BSP_LCD_Clear - 0x0000000008002c64 0x50 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002c64 BSP_LCD_Clear + 0x0000000008002c68 0x50 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002c68 BSP_LCD_Clear .text.BSP_LCD_DisplayChar - 0x0000000008002cb4 0x88 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002cb4 BSP_LCD_DisplayChar + 0x0000000008002cb8 0x88 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002cb8 BSP_LCD_DisplayChar .text.BSP_LCD_DisplayStringAt - 0x0000000008002d3c 0x188 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002d3c BSP_LCD_DisplayStringAt + 0x0000000008002d40 0x188 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002d40 BSP_LCD_DisplayStringAt .text.BSP_LCD_DisplayStringAtLine - 0x0000000008002ec4 0x2e Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002ec4 BSP_LCD_DisplayStringAtLine - *fill* 0x0000000008002ef2 0x2 + 0x0000000008002ec8 0x2e Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002ec8 BSP_LCD_DisplayStringAtLine + *fill* 0x0000000008002ef6 0x2 .text.BSP_LCD_DrawHLine - 0x0000000008002ef4 0xbc Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002ef4 BSP_LCD_DrawHLine + 0x0000000008002ef8 0xbc Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002ef8 BSP_LCD_DrawHLine .text.BSP_LCD_DrawCircle - 0x0000000008002fb0 0x1e0 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008002fb0 BSP_LCD_DrawCircle + 0x0000000008002fb4 0x1e0 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008002fb4 BSP_LCD_DrawCircle .text.BSP_LCD_DrawPixel - 0x0000000008003190 0x90 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008003190 BSP_LCD_DrawPixel + 0x0000000008003194 0x90 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008003194 BSP_LCD_DrawPixel .text.BSP_LCD_FillRect - 0x0000000008003220 0xf4 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008003220 BSP_LCD_FillRect + 0x0000000008003224 0xf4 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008003224 BSP_LCD_FillRect .text.BSP_LCD_FillCircle - 0x0000000008003314 0x140 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008003314 BSP_LCD_FillCircle + 0x0000000008003318 0x140 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008003318 BSP_LCD_FillCircle .text.BSP_LCD_DisplayOn - 0x0000000008003454 0x3c Core/Src/stm32746g_discovery_lcd.o - 0x0000000008003454 BSP_LCD_DisplayOn + 0x0000000008003458 0x3c Core/Src/stm32746g_discovery_lcd.o + 0x0000000008003458 BSP_LCD_DisplayOn .text.BSP_LCD_MspInit - 0x0000000008003490 0x1b4 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008003490 BSP_LCD_MspInit + 0x0000000008003494 0x1b4 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008003494 BSP_LCD_MspInit .text.BSP_LCD_ClockConfig - 0x0000000008003644 0x38 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008003644 BSP_LCD_ClockConfig + 0x0000000008003648 0x38 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008003648 BSP_LCD_ClockConfig .text.DrawChar - 0x000000000800367c 0x170 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008003680 0x170 Core/Src/stm32746g_discovery_lcd.o .text.LL_FillBuffer - 0x00000000080037ec 0x98 Core/Src/stm32746g_discovery_lcd.o + 0x00000000080037f0 0x98 Core/Src/stm32746g_discovery_lcd.o .text.BSP_SDRAM_Init - 0x0000000008003884 0xbc Core/Src/stm32746g_discovery_sdram.o - 0x0000000008003884 BSP_SDRAM_Init + 0x0000000008003888 0xbc Core/Src/stm32746g_discovery_sdram.o + 0x0000000008003888 BSP_SDRAM_Init .text.BSP_SDRAM_Initialization_sequence - 0x0000000008003940 0xc0 Core/Src/stm32746g_discovery_sdram.o - 0x0000000008003940 BSP_SDRAM_Initialization_sequence + 0x0000000008003944 0xc0 Core/Src/stm32746g_discovery_sdram.o + 0x0000000008003944 BSP_SDRAM_Initialization_sequence .text.BSP_SDRAM_MspInit - 0x0000000008003a00 0x1f0 Core/Src/stm32746g_discovery_sdram.o - 0x0000000008003a00 BSP_SDRAM_MspInit + 0x0000000008003a04 0x1f0 Core/Src/stm32746g_discovery_sdram.o + 0x0000000008003a04 BSP_SDRAM_MspInit .text.BSP_TS_Init - 0x0000000008003bf0 0x80 Core/Src/stm32746g_discovery_ts.o - 0x0000000008003bf0 BSP_TS_Init + 0x0000000008003bf4 0x80 Core/Src/stm32746g_discovery_ts.o + 0x0000000008003bf4 BSP_TS_Init .text.BSP_TS_GetState - 0x0000000008003c70 0x3ac Core/Src/stm32746g_discovery_ts.o - 0x0000000008003c70 BSP_TS_GetState + 0x0000000008003c74 0x3ac Core/Src/stm32746g_discovery_ts.o + 0x0000000008003c74 BSP_TS_GetState .text.BSP_TS_Get_GestureId - 0x000000000800401c 0x94 Core/Src/stm32746g_discovery_ts.o - 0x000000000800401c BSP_TS_Get_GestureId + 0x0000000008004020 0x94 Core/Src/stm32746g_discovery_ts.o + 0x0000000008004020 BSP_TS_Get_GestureId .text.HAL_MspInit - 0x00000000080040b0 0x50 Core/Src/stm32f7xx_hal_msp.o - 0x00000000080040b0 HAL_MspInit + 0x00000000080040b4 0x50 Core/Src/stm32f7xx_hal_msp.o + 0x00000000080040b4 HAL_MspInit .text.HAL_ADC_MspInit - 0x0000000008004100 0xdc Core/Src/stm32f7xx_hal_msp.o - 0x0000000008004100 HAL_ADC_MspInit + 0x0000000008004104 0xdc Core/Src/stm32f7xx_hal_msp.o + 0x0000000008004104 HAL_ADC_MspInit .text.HAL_CRC_MspInit - 0x00000000080041dc 0x40 Core/Src/stm32f7xx_hal_msp.o - 0x00000000080041dc HAL_CRC_MspInit + 0x00000000080041e0 0x40 Core/Src/stm32f7xx_hal_msp.o + 0x00000000080041e0 HAL_CRC_MspInit .text.HAL_DAC_MspInit - 0x000000000800421c 0x90 Core/Src/stm32f7xx_hal_msp.o - 0x000000000800421c HAL_DAC_MspInit + 0x0000000008004220 0x90 Core/Src/stm32f7xx_hal_msp.o + 0x0000000008004220 HAL_DAC_MspInit .text.HAL_DMA2D_MspInit - 0x00000000080042ac 0x40 Core/Src/stm32f7xx_hal_msp.o - 0x00000000080042ac HAL_DMA2D_MspInit + 0x00000000080042b0 0x40 Core/Src/stm32f7xx_hal_msp.o + 0x00000000080042b0 HAL_DMA2D_MspInit .text.HAL_I2C_MspInit - 0x00000000080042ec 0xf0 Core/Src/stm32f7xx_hal_msp.o - 0x00000000080042ec HAL_I2C_MspInit + 0x00000000080042f0 0xf0 Core/Src/stm32f7xx_hal_msp.o + 0x00000000080042f0 HAL_I2C_MspInit .text.HAL_I2C_MspDeInit - 0x00000000080043dc 0x78 Core/Src/stm32f7xx_hal_msp.o - 0x00000000080043dc HAL_I2C_MspDeInit + 0x00000000080043e0 0x78 Core/Src/stm32f7xx_hal_msp.o + 0x00000000080043e0 HAL_I2C_MspDeInit .text.HAL_LTDC_MspInit - 0x0000000008004454 0x190 Core/Src/stm32f7xx_hal_msp.o - 0x0000000008004454 HAL_LTDC_MspInit + 0x0000000008004458 0x190 Core/Src/stm32f7xx_hal_msp.o + 0x0000000008004458 HAL_LTDC_MspInit .text.HAL_RNG_MspInit - 0x00000000080045e4 0x40 Core/Src/stm32f7xx_hal_msp.o - 0x00000000080045e4 HAL_RNG_MspInit + 0x00000000080045e8 0x40 Core/Src/stm32f7xx_hal_msp.o + 0x00000000080045e8 HAL_RNG_MspInit .text.HAL_RTC_MspInit - 0x0000000008004624 0x34 Core/Src/stm32f7xx_hal_msp.o - 0x0000000008004624 HAL_RTC_MspInit + 0x0000000008004628 0x34 Core/Src/stm32f7xx_hal_msp.o + 0x0000000008004628 HAL_RTC_MspInit .text.HAL_SPI_MspInit - 0x0000000008004658 0xe4 Core/Src/stm32f7xx_hal_msp.o - 0x0000000008004658 HAL_SPI_MspInit + 0x000000000800465c 0xe4 Core/Src/stm32f7xx_hal_msp.o + 0x000000000800465c HAL_SPI_MspInit .text.HAL_TIM_Base_MspInit - 0x000000000800473c 0xdc Core/Src/stm32f7xx_hal_msp.o - 0x000000000800473c HAL_TIM_Base_MspInit + 0x0000000008004740 0xdc Core/Src/stm32f7xx_hal_msp.o + 0x0000000008004740 HAL_TIM_Base_MspInit .text.HAL_TIM_MspPostInit - 0x0000000008004818 0xbc Core/Src/stm32f7xx_hal_msp.o - 0x0000000008004818 HAL_TIM_MspPostInit + 0x000000000800481c 0xbc Core/Src/stm32f7xx_hal_msp.o + 0x000000000800481c HAL_TIM_MspPostInit .text.HAL_UART_MspInit - 0x00000000080048d4 0x18c Core/Src/stm32f7xx_hal_msp.o - 0x00000000080048d4 HAL_UART_MspInit + 0x00000000080048d8 0x18c Core/Src/stm32f7xx_hal_msp.o + 0x00000000080048d8 HAL_UART_MspInit .text.HAL_FMC_MspInit - 0x0000000008004a60 0x120 Core/Src/stm32f7xx_hal_msp.o + 0x0000000008004a64 0x120 Core/Src/stm32f7xx_hal_msp.o .text.HAL_SDRAM_MspInit - 0x0000000008004b80 0x14 Core/Src/stm32f7xx_hal_msp.o - 0x0000000008004b80 HAL_SDRAM_MspInit + 0x0000000008004b84 0x14 Core/Src/stm32f7xx_hal_msp.o + 0x0000000008004b84 HAL_SDRAM_MspInit .text.HAL_InitTick - 0x0000000008004b94 0xb0 Core/Src/stm32f7xx_hal_timebase_tim.o - 0x0000000008004b94 HAL_InitTick + 0x0000000008004b98 0xb0 Core/Src/stm32f7xx_hal_timebase_tim.o + 0x0000000008004b98 HAL_InitTick .text.NMI_Handler - 0x0000000008004c44 0x6 Core/Src/stm32f7xx_it.o - 0x0000000008004c44 NMI_Handler + 0x0000000008004c48 0x6 Core/Src/stm32f7xx_it.o + 0x0000000008004c48 NMI_Handler .text.HardFault_Handler - 0x0000000008004c4a 0x6 Core/Src/stm32f7xx_it.o - 0x0000000008004c4a HardFault_Handler + 0x0000000008004c4e 0x6 Core/Src/stm32f7xx_it.o + 0x0000000008004c4e HardFault_Handler .text.MemManage_Handler - 0x0000000008004c50 0x6 Core/Src/stm32f7xx_it.o - 0x0000000008004c50 MemManage_Handler + 0x0000000008004c54 0x6 Core/Src/stm32f7xx_it.o + 0x0000000008004c54 MemManage_Handler .text.BusFault_Handler - 0x0000000008004c56 0x6 Core/Src/stm32f7xx_it.o - 0x0000000008004c56 BusFault_Handler + 0x0000000008004c5a 0x6 Core/Src/stm32f7xx_it.o + 0x0000000008004c5a BusFault_Handler .text.UsageFault_Handler - 0x0000000008004c5c 0x6 Core/Src/stm32f7xx_it.o - 0x0000000008004c5c UsageFault_Handler + 0x0000000008004c60 0x6 Core/Src/stm32f7xx_it.o + 0x0000000008004c60 UsageFault_Handler .text.DebugMon_Handler - 0x0000000008004c62 0xe Core/Src/stm32f7xx_it.o - 0x0000000008004c62 DebugMon_Handler + 0x0000000008004c66 0xe Core/Src/stm32f7xx_it.o + 0x0000000008004c66 DebugMon_Handler .text.TIM6_DAC_IRQHandler - 0x0000000008004c70 0x1c Core/Src/stm32f7xx_it.o - 0x0000000008004c70 TIM6_DAC_IRQHandler + 0x0000000008004c74 0x1c Core/Src/stm32f7xx_it.o + 0x0000000008004c74 TIM6_DAC_IRQHandler .text.ETH_IRQHandler - 0x0000000008004c8c 0x14 Core/Src/stm32f7xx_it.o - 0x0000000008004c8c ETH_IRQHandler + 0x0000000008004c90 0x14 Core/Src/stm32f7xx_it.o + 0x0000000008004c90 ETH_IRQHandler .text.LTDC_IRQHandler - 0x0000000008004ca0 0x14 Core/Src/stm32f7xx_it.o - 0x0000000008004ca0 LTDC_IRQHandler - .text._read 0x0000000008004cb4 0x3a Core/Src/syscalls.o - 0x0000000008004cb4 _read - .text._write 0x0000000008004cee 0x38 Core/Src/syscalls.o - 0x0000000008004cee _write - .text._close 0x0000000008004d26 0x18 Core/Src/syscalls.o - 0x0000000008004d26 _close - .text._fstat 0x0000000008004d3e 0x20 Core/Src/syscalls.o - 0x0000000008004d3e _fstat - .text._isatty 0x0000000008004d5e 0x16 Core/Src/syscalls.o - 0x0000000008004d5e _isatty - .text._lseek 0x0000000008004d74 0x1a Core/Src/syscalls.o - 0x0000000008004d74 _lseek - *fill* 0x0000000008004d8e 0x2 - .text._sbrk 0x0000000008004d90 0x70 Core/Src/sysmem.o - 0x0000000008004d90 _sbrk + 0x0000000008004ca4 0x14 Core/Src/stm32f7xx_it.o + 0x0000000008004ca4 LTDC_IRQHandler + .text._read 0x0000000008004cb8 0x3a Core/Src/syscalls.o + 0x0000000008004cb8 _read + .text._write 0x0000000008004cf2 0x38 Core/Src/syscalls.o + 0x0000000008004cf2 _write + .text._close 0x0000000008004d2a 0x18 Core/Src/syscalls.o + 0x0000000008004d2a _close + .text._fstat 0x0000000008004d42 0x20 Core/Src/syscalls.o + 0x0000000008004d42 _fstat + .text._isatty 0x0000000008004d62 0x16 Core/Src/syscalls.o + 0x0000000008004d62 _isatty + .text._lseek 0x0000000008004d78 0x1a Core/Src/syscalls.o + 0x0000000008004d78 _lseek + *fill* 0x0000000008004d92 0x2 + .text._sbrk 0x0000000008004d94 0x70 Core/Src/sysmem.o + 0x0000000008004d94 _sbrk .text.SystemInit - 0x0000000008004e00 0x2c Core/Src/system_stm32f7xx.o - 0x0000000008004e00 SystemInit + 0x0000000008004e04 0x2c Core/Src/system_stm32f7xx.o + 0x0000000008004e04 SystemInit .text.Reset_Handler - 0x0000000008004e2c 0x50 Core/Startup/startup_stm32f746nghx.o - 0x0000000008004e2c Reset_Handler + 0x0000000008004e30 0x50 Core/Startup/startup_stm32f746nghx.o + 0x0000000008004e30 Reset_Handler .text.Default_Handler - 0x0000000008004e7c 0x2 Core/Startup/startup_stm32f746nghx.o - 0x0000000008004e7c RTC_Alarm_IRQHandler - 0x0000000008004e7c EXTI2_IRQHandler - 0x0000000008004e7c TIM8_CC_IRQHandler - 0x0000000008004e7c UART8_IRQHandler - 0x0000000008004e7c SPI4_IRQHandler - 0x0000000008004e7c TIM1_CC_IRQHandler - 0x0000000008004e7c DMA2_Stream5_IRQHandler - 0x0000000008004e7c DMA1_Stream5_IRQHandler - 0x0000000008004e7c PVD_IRQHandler - 0x0000000008004e7c TAMP_STAMP_IRQHandler - 0x0000000008004e7c CAN2_RX1_IRQHandler - 0x0000000008004e7c EXTI3_IRQHandler - 0x0000000008004e7c TIM8_TRG_COM_TIM14_IRQHandler - 0x0000000008004e7c TIM1_UP_TIM10_IRQHandler - 0x0000000008004e7c TIM8_UP_TIM13_IRQHandler - 0x0000000008004e7c I2C3_ER_IRQHandler - 0x0000000008004e7c EXTI0_IRQHandler - 0x0000000008004e7c I2C2_EV_IRQHandler - 0x0000000008004e7c DMA1_Stream2_IRQHandler - 0x0000000008004e7c CAN1_RX0_IRQHandler - 0x0000000008004e7c FPU_IRQHandler - 0x0000000008004e7c OTG_HS_WKUP_IRQHandler - 0x0000000008004e7c LTDC_ER_IRQHandler - 0x0000000008004e7c CAN2_SCE_IRQHandler - 0x0000000008004e7c DMA2_Stream2_IRQHandler - 0x0000000008004e7c SPI1_IRQHandler - 0x0000000008004e7c TIM1_BRK_TIM9_IRQHandler - 0x0000000008004e7c DCMI_IRQHandler - 0x0000000008004e7c CAN2_RX0_IRQHandler - 0x0000000008004e7c DMA2_Stream3_IRQHandler - 0x0000000008004e7c SAI2_IRQHandler - 0x0000000008004e7c USART6_IRQHandler - 0x0000000008004e7c USART3_IRQHandler - 0x0000000008004e7c CAN1_RX1_IRQHandler - 0x0000000008004e7c UART5_IRQHandler - 0x0000000008004e7c DMA2_Stream0_IRQHandler - 0x0000000008004e7c TIM4_IRQHandler - 0x0000000008004e7c QUADSPI_IRQHandler - 0x0000000008004e7c I2C1_EV_IRQHandler - 0x0000000008004e7c DMA1_Stream6_IRQHandler - 0x0000000008004e7c DMA1_Stream1_IRQHandler - 0x0000000008004e7c UART4_IRQHandler - 0x0000000008004e7c TIM3_IRQHandler - 0x0000000008004e7c RCC_IRQHandler - 0x0000000008004e7c TIM8_BRK_TIM12_IRQHandler - 0x0000000008004e7c Default_Handler - 0x0000000008004e7c CEC_IRQHandler - 0x0000000008004e7c EXTI15_10_IRQHandler - 0x0000000008004e7c ADC_IRQHandler - 0x0000000008004e7c DMA1_Stream7_IRQHandler - 0x0000000008004e7c SPI5_IRQHandler - 0x0000000008004e7c TIM7_IRQHandler - 0x0000000008004e7c SDMMC1_IRQHandler - 0x0000000008004e7c CAN2_TX_IRQHandler - 0x0000000008004e7c TIM5_IRQHandler - 0x0000000008004e7c DMA2_Stream7_IRQHandler - 0x0000000008004e7c I2C3_EV_IRQHandler - 0x0000000008004e7c EXTI9_5_IRQHandler - 0x0000000008004e7c RTC_WKUP_IRQHandler - 0x0000000008004e7c ETH_WKUP_IRQHandler - 0x0000000008004e7c SPDIF_RX_IRQHandler - 0x0000000008004e7c SPI2_IRQHandler - 0x0000000008004e7c OTG_HS_EP1_IN_IRQHandler - 0x0000000008004e7c DMA1_Stream0_IRQHandler - 0x0000000008004e7c CAN1_TX_IRQHandler - 0x0000000008004e7c EXTI4_IRQHandler - 0x0000000008004e7c RNG_IRQHandler - 0x0000000008004e7c OTG_HS_EP1_OUT_IRQHandler - 0x0000000008004e7c WWDG_IRQHandler - 0x0000000008004e7c SPI6_IRQHandler - 0x0000000008004e7c I2C4_EV_IRQHandler - 0x0000000008004e7c TIM2_IRQHandler - 0x0000000008004e7c OTG_FS_WKUP_IRQHandler - 0x0000000008004e7c TIM1_TRG_COM_TIM11_IRQHandler - 0x0000000008004e7c OTG_HS_IRQHandler - 0x0000000008004e7c DMA2D_IRQHandler - 0x0000000008004e7c EXTI1_IRQHandler - 0x0000000008004e7c UART7_IRQHandler - 0x0000000008004e7c USART2_IRQHandler - 0x0000000008004e7c I2C2_ER_IRQHandler - 0x0000000008004e7c DMA2_Stream1_IRQHandler - 0x0000000008004e7c CAN1_SCE_IRQHandler - 0x0000000008004e7c FLASH_IRQHandler - 0x0000000008004e7c DMA2_Stream4_IRQHandler - 0x0000000008004e7c USART1_IRQHandler - 0x0000000008004e7c OTG_FS_IRQHandler - 0x0000000008004e7c SPI3_IRQHandler - 0x0000000008004e7c DMA1_Stream4_IRQHandler - 0x0000000008004e7c I2C1_ER_IRQHandler - 0x0000000008004e7c FMC_IRQHandler - 0x0000000008004e7c LPTIM1_IRQHandler - 0x0000000008004e7c I2C4_ER_IRQHandler - 0x0000000008004e7c DMA2_Stream6_IRQHandler - 0x0000000008004e7c SAI1_IRQHandler - 0x0000000008004e7c DMA1_Stream3_IRQHandler + 0x0000000008004e80 0x2 Core/Startup/startup_stm32f746nghx.o + 0x0000000008004e80 RTC_Alarm_IRQHandler + 0x0000000008004e80 EXTI2_IRQHandler + 0x0000000008004e80 TIM8_CC_IRQHandler + 0x0000000008004e80 UART8_IRQHandler + 0x0000000008004e80 SPI4_IRQHandler + 0x0000000008004e80 TIM1_CC_IRQHandler + 0x0000000008004e80 DMA2_Stream5_IRQHandler + 0x0000000008004e80 DMA1_Stream5_IRQHandler + 0x0000000008004e80 PVD_IRQHandler + 0x0000000008004e80 TAMP_STAMP_IRQHandler + 0x0000000008004e80 CAN2_RX1_IRQHandler + 0x0000000008004e80 EXTI3_IRQHandler + 0x0000000008004e80 TIM8_TRG_COM_TIM14_IRQHandler + 0x0000000008004e80 TIM1_UP_TIM10_IRQHandler + 0x0000000008004e80 TIM8_UP_TIM13_IRQHandler + 0x0000000008004e80 I2C3_ER_IRQHandler + 0x0000000008004e80 EXTI0_IRQHandler + 0x0000000008004e80 I2C2_EV_IRQHandler + 0x0000000008004e80 DMA1_Stream2_IRQHandler + 0x0000000008004e80 CAN1_RX0_IRQHandler + 0x0000000008004e80 FPU_IRQHandler + 0x0000000008004e80 OTG_HS_WKUP_IRQHandler + 0x0000000008004e80 LTDC_ER_IRQHandler + 0x0000000008004e80 CAN2_SCE_IRQHandler + 0x0000000008004e80 DMA2_Stream2_IRQHandler + 0x0000000008004e80 SPI1_IRQHandler + 0x0000000008004e80 TIM1_BRK_TIM9_IRQHandler + 0x0000000008004e80 DCMI_IRQHandler + 0x0000000008004e80 CAN2_RX0_IRQHandler + 0x0000000008004e80 DMA2_Stream3_IRQHandler + 0x0000000008004e80 SAI2_IRQHandler + 0x0000000008004e80 USART6_IRQHandler + 0x0000000008004e80 USART3_IRQHandler + 0x0000000008004e80 CAN1_RX1_IRQHandler + 0x0000000008004e80 UART5_IRQHandler + 0x0000000008004e80 DMA2_Stream0_IRQHandler + 0x0000000008004e80 TIM4_IRQHandler + 0x0000000008004e80 QUADSPI_IRQHandler + 0x0000000008004e80 I2C1_EV_IRQHandler + 0x0000000008004e80 DMA1_Stream6_IRQHandler + 0x0000000008004e80 DMA1_Stream1_IRQHandler + 0x0000000008004e80 UART4_IRQHandler + 0x0000000008004e80 TIM3_IRQHandler + 0x0000000008004e80 RCC_IRQHandler + 0x0000000008004e80 TIM8_BRK_TIM12_IRQHandler + 0x0000000008004e80 Default_Handler + 0x0000000008004e80 CEC_IRQHandler + 0x0000000008004e80 EXTI15_10_IRQHandler + 0x0000000008004e80 ADC_IRQHandler + 0x0000000008004e80 DMA1_Stream7_IRQHandler + 0x0000000008004e80 SPI5_IRQHandler + 0x0000000008004e80 TIM7_IRQHandler + 0x0000000008004e80 SDMMC1_IRQHandler + 0x0000000008004e80 CAN2_TX_IRQHandler + 0x0000000008004e80 TIM5_IRQHandler + 0x0000000008004e80 DMA2_Stream7_IRQHandler + 0x0000000008004e80 I2C3_EV_IRQHandler + 0x0000000008004e80 EXTI9_5_IRQHandler + 0x0000000008004e80 RTC_WKUP_IRQHandler + 0x0000000008004e80 ETH_WKUP_IRQHandler + 0x0000000008004e80 SPDIF_RX_IRQHandler + 0x0000000008004e80 SPI2_IRQHandler + 0x0000000008004e80 OTG_HS_EP1_IN_IRQHandler + 0x0000000008004e80 DMA1_Stream0_IRQHandler + 0x0000000008004e80 CAN1_TX_IRQHandler + 0x0000000008004e80 EXTI4_IRQHandler + 0x0000000008004e80 RNG_IRQHandler + 0x0000000008004e80 OTG_HS_EP1_OUT_IRQHandler + 0x0000000008004e80 WWDG_IRQHandler + 0x0000000008004e80 SPI6_IRQHandler + 0x0000000008004e80 I2C4_EV_IRQHandler + 0x0000000008004e80 TIM2_IRQHandler + 0x0000000008004e80 OTG_FS_WKUP_IRQHandler + 0x0000000008004e80 TIM1_TRG_COM_TIM11_IRQHandler + 0x0000000008004e80 OTG_HS_IRQHandler + 0x0000000008004e80 DMA2D_IRQHandler + 0x0000000008004e80 EXTI1_IRQHandler + 0x0000000008004e80 UART7_IRQHandler + 0x0000000008004e80 USART2_IRQHandler + 0x0000000008004e80 I2C2_ER_IRQHandler + 0x0000000008004e80 DMA2_Stream1_IRQHandler + 0x0000000008004e80 CAN1_SCE_IRQHandler + 0x0000000008004e80 FLASH_IRQHandler + 0x0000000008004e80 DMA2_Stream4_IRQHandler + 0x0000000008004e80 USART1_IRQHandler + 0x0000000008004e80 OTG_FS_IRQHandler + 0x0000000008004e80 SPI3_IRQHandler + 0x0000000008004e80 DMA1_Stream4_IRQHandler + 0x0000000008004e80 I2C1_ER_IRQHandler + 0x0000000008004e80 FMC_IRQHandler + 0x0000000008004e80 LPTIM1_IRQHandler + 0x0000000008004e80 I2C4_ER_IRQHandler + 0x0000000008004e80 DMA2_Stream6_IRQHandler + 0x0000000008004e80 SAI1_IRQHandler + 0x0000000008004e80 DMA1_Stream3_IRQHandler .text.HAL_Init - 0x0000000008004e7e 0x1a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.o - 0x0000000008004e7e HAL_Init + 0x0000000008004e82 0x1a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.o + 0x0000000008004e82 HAL_Init .text.HAL_IncTick - 0x0000000008004e98 0x28 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.o - 0x0000000008004e98 HAL_IncTick + 0x0000000008004e9c 0x28 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.o + 0x0000000008004e9c HAL_IncTick .text.HAL_GetTick - 0x0000000008004ec0 0x18 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.o - 0x0000000008004ec0 HAL_GetTick + 0x0000000008004ec4 0x18 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.o + 0x0000000008004ec4 HAL_GetTick .text.HAL_Delay - 0x0000000008004ed8 0x44 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.o - 0x0000000008004ed8 HAL_Delay + 0x0000000008004edc 0x44 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.o + 0x0000000008004edc HAL_Delay .text.HAL_ADC_Init - 0x0000000008004f1c 0x88 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.o - 0x0000000008004f1c HAL_ADC_Init + 0x0000000008004f20 0x88 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.o + 0x0000000008004f20 HAL_ADC_Init .text.HAL_ADC_Start - 0x0000000008004fa4 0x180 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.o - 0x0000000008004fa4 HAL_ADC_Start + 0x0000000008004fa8 0x180 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.o + 0x0000000008004fa8 HAL_ADC_Start .text.HAL_ADC_ConfigChannel - 0x0000000008005124 0x294 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.o - 0x0000000008005124 HAL_ADC_ConfigChannel + 0x0000000008005128 0x294 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.o + 0x0000000008005128 HAL_ADC_ConfigChannel .text.ADC_Init - 0x00000000080053b8 0x1f4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.o + 0x00000000080053bc 0x1f4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc.o .text.__NVIC_SetPriorityGrouping - 0x00000000080055ac 0x48 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o + 0x00000000080055b0 0x48 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x00000000080055f4 0x1c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o + 0x00000000080055f8 0x1c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o .text.__NVIC_EnableIRQ - 0x0000000008005610 0x3c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o + 0x0000000008005614 0x3c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o .text.__NVIC_SetPriority - 0x000000000800564c 0x54 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o + 0x0000000008005650 0x54 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o .text.NVIC_EncodePriority - 0x00000000080056a0 0x66 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o + 0x00000000080056a4 0x66 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x0000000008005706 0x16 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o - 0x0000000008005706 HAL_NVIC_SetPriorityGrouping + 0x000000000800570a 0x16 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o + 0x000000000800570a HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x000000000800571c 0x38 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o - 0x000000000800571c HAL_NVIC_SetPriority + 0x0000000008005720 0x38 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o + 0x0000000008005720 HAL_NVIC_SetPriority .text.HAL_NVIC_EnableIRQ - 0x0000000008005754 0x1c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o - 0x0000000008005754 HAL_NVIC_EnableIRQ + 0x0000000008005758 0x1c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.o + 0x0000000008005758 HAL_NVIC_EnableIRQ .text.HAL_CRC_Init - 0x0000000008005770 0xc8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc.o - 0x0000000008005770 HAL_CRC_Init + 0x0000000008005774 0xc8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc.o + 0x0000000008005774 HAL_CRC_Init .text.HAL_CRCEx_Polynomial_Set - 0x0000000008005838 0x10c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc_ex.o - 0x0000000008005838 HAL_CRCEx_Polynomial_Set + 0x000000000800583c 0x10c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc_ex.o + 0x000000000800583c HAL_CRCEx_Polynomial_Set .text.HAL_DAC_Init - 0x0000000008005944 0x44 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac.o - 0x0000000008005944 HAL_DAC_Init + 0x0000000008005948 0x44 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac.o + 0x0000000008005948 HAL_DAC_Init .text.HAL_DAC_IRQHandler - 0x0000000008005988 0x94 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac.o - 0x0000000008005988 HAL_DAC_IRQHandler + 0x000000000800598c 0x94 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac.o + 0x000000000800598c HAL_DAC_IRQHandler .text.HAL_DAC_DMAUnderrunCallbackCh1 - 0x0000000008005a1c 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac.o - 0x0000000008005a1c HAL_DAC_DMAUnderrunCallbackCh1 + 0x0000000008005a20 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac.o + 0x0000000008005a20 HAL_DAC_DMAUnderrunCallbackCh1 .text.HAL_DAC_ConfigChannel - 0x0000000008005a30 0x9a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac.o - 0x0000000008005a30 HAL_DAC_ConfigChannel + 0x0000000008005a34 0x9a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac.o + 0x0000000008005a34 HAL_DAC_ConfigChannel .text.HAL_DACEx_DMAUnderrunCallbackCh2 - 0x0000000008005aca 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac_ex.o - 0x0000000008005aca HAL_DACEx_DMAUnderrunCallbackCh2 - *fill* 0x0000000008005ade 0x2 + 0x0000000008005ace 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dac_ex.o + 0x0000000008005ace HAL_DACEx_DMAUnderrunCallbackCh2 + *fill* 0x0000000008005ae2 0x2 .text.HAL_DMA_Init - 0x0000000008005ae0 0x15c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o - 0x0000000008005ae0 HAL_DMA_Init + 0x0000000008005ae4 0x15c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o + 0x0000000008005ae4 HAL_DMA_Init .text.HAL_DMA_DeInit - 0x0000000008005c3c 0xbc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o - 0x0000000008005c3c HAL_DMA_DeInit + 0x0000000008005c40 0xbc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o + 0x0000000008005c40 HAL_DMA_DeInit .text.DMA_CalcBaseAndBitshift - 0x0000000008005cf8 0x6c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o + 0x0000000008005cfc 0x6c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o .text.DMA_CheckFifoParam - 0x0000000008005d64 0xf4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o + 0x0000000008005d68 0xf4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o .text.HAL_DMA2D_Init - 0x0000000008005e58 0x94 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o - 0x0000000008005e58 HAL_DMA2D_Init + 0x0000000008005e5c 0x94 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o + 0x0000000008005e5c HAL_DMA2D_Init .text.HAL_DMA2D_Start - 0x0000000008005eec 0x56 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o - 0x0000000008005eec HAL_DMA2D_Start + 0x0000000008005ef0 0x56 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o + 0x0000000008005ef0 HAL_DMA2D_Start .text.HAL_DMA2D_PollForTransfer - 0x0000000008005f42 0x1d2 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o - 0x0000000008005f42 HAL_DMA2D_PollForTransfer + 0x0000000008005f46 0x1d2 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o + 0x0000000008005f46 HAL_DMA2D_PollForTransfer .text.HAL_DMA2D_ConfigLayer - 0x0000000008006114 0x124 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o - 0x0000000008006114 HAL_DMA2D_ConfigLayer + 0x0000000008006118 0x124 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o + 0x0000000008006118 HAL_DMA2D_ConfigLayer .text.DMA2D_SetConfig - 0x0000000008006238 0x138 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o + 0x000000000800623c 0x138 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.o .text.HAL_ETH_Init - 0x0000000008006370 0x338 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006370 HAL_ETH_Init + 0x0000000008006374 0x338 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006374 HAL_ETH_Init .text.HAL_ETH_DMATxDescListInit - 0x00000000080066a8 0xd2 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x00000000080066a8 HAL_ETH_DMATxDescListInit + 0x00000000080066ac 0xd2 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x00000000080066ac HAL_ETH_DMATxDescListInit .text.HAL_ETH_DMARxDescListInit - 0x000000000800677a 0xda Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x000000000800677a HAL_ETH_DMARxDescListInit + 0x000000000800677e 0xda Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x000000000800677e HAL_ETH_DMARxDescListInit .text.HAL_ETH_TransmitFrame - 0x0000000008006854 0x1d4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006854 HAL_ETH_TransmitFrame + 0x0000000008006858 0x1d4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006858 HAL_ETH_TransmitFrame .text.HAL_ETH_GetReceivedFrame_IT - 0x0000000008006a28 0x110 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006a28 HAL_ETH_GetReceivedFrame_IT + 0x0000000008006a2c 0x110 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006a2c HAL_ETH_GetReceivedFrame_IT .text.HAL_ETH_IRQHandler - 0x0000000008006b38 0xce Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006b38 HAL_ETH_IRQHandler + 0x0000000008006b3c 0xce Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006b3c HAL_ETH_IRQHandler .text.HAL_ETH_TxCpltCallback - 0x0000000008006c06 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006c06 HAL_ETH_TxCpltCallback + 0x0000000008006c0a 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006c0a HAL_ETH_TxCpltCallback .text.HAL_ETH_ErrorCallback - 0x0000000008006c1a 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006c1a HAL_ETH_ErrorCallback + 0x0000000008006c1e 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006c1e HAL_ETH_ErrorCallback .text.HAL_ETH_ReadPHYRegister - 0x0000000008006c2e 0xd0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006c2e HAL_ETH_ReadPHYRegister + 0x0000000008006c32 0xd0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006c32 HAL_ETH_ReadPHYRegister .text.HAL_ETH_WritePHYRegister - 0x0000000008006cfe 0xcc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006cfe HAL_ETH_WritePHYRegister + 0x0000000008006d02 0xcc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006d02 HAL_ETH_WritePHYRegister .text.HAL_ETH_Start - 0x0000000008006dca 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006dca HAL_ETH_Start + 0x0000000008006dce 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006dce HAL_ETH_Start .text.HAL_ETH_Stop - 0x0000000008006e28 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006e28 HAL_ETH_Stop - *fill* 0x0000000008006e86 0x2 + 0x0000000008006e2c 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006e2c HAL_ETH_Stop + *fill* 0x0000000008006e8a 0x2 .text.HAL_ETH_ConfigMAC - 0x0000000008006e88 0x1f4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - 0x0000000008006e88 HAL_ETH_ConfigMAC + 0x0000000008006e8c 0x1f4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008006e8c HAL_ETH_ConfigMAC .text.ETH_MACDMAConfig - 0x000000000800707c 0x394 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008007080 0x394 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_MACAddressConfig - 0x0000000008007410 0x70 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008007414 0x70 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_MACTransmissionEnable - 0x0000000008007480 0x3a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008007484 0x3a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_MACTransmissionDisable - 0x00000000080074ba 0x3a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x00000000080074be 0x3a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_MACReceptionEnable - 0x00000000080074f4 0x3a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x00000000080074f8 0x3a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_MACReceptionDisable - 0x000000000800752e 0x3a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x0000000008007532 0x3a Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_DMATransmissionEnable - 0x0000000008007568 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x000000000800756c 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_DMATransmissionDisable - 0x0000000008007598 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x000000000800759c 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_DMAReceptionEnable - 0x00000000080075c8 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x00000000080075cc 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_DMAReceptionDisable - 0x00000000080075f8 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + 0x00000000080075fc 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o .text.ETH_FlushTransmitFIFO - 0x0000000008007628 0x52 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o - *fill* 0x000000000800767a 0x2 + 0x000000000800762c 0x52 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_eth.o + *fill* 0x000000000800767e 0x2 .text.HAL_GPIO_Init - 0x000000000800767c 0x354 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.o - 0x000000000800767c HAL_GPIO_Init + 0x0000000008007680 0x354 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.o + 0x0000000008007680 HAL_GPIO_Init .text.HAL_GPIO_DeInit - 0x00000000080079d0 0x214 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.o - 0x00000000080079d0 HAL_GPIO_DeInit + 0x00000000080079d4 0x214 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.o + 0x00000000080079d4 HAL_GPIO_DeInit .text.HAL_GPIO_ReadPin - 0x0000000008007be4 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.o - 0x0000000008007be4 HAL_GPIO_ReadPin + 0x0000000008007be8 0x30 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.o + 0x0000000008007be8 HAL_GPIO_ReadPin .text.HAL_GPIO_WritePin - 0x0000000008007c14 0x32 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.o - 0x0000000008007c14 HAL_GPIO_WritePin - *fill* 0x0000000008007c46 0x2 + 0x0000000008007c18 0x32 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.o + 0x0000000008007c18 HAL_GPIO_WritePin + *fill* 0x0000000008007c4a 0x2 .text.HAL_I2C_Init - 0x0000000008007c48 0x120 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o - 0x0000000008007c48 HAL_I2C_Init + 0x0000000008007c4c 0x120 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008007c4c HAL_I2C_Init .text.HAL_I2C_DeInit - 0x0000000008007d68 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o - 0x0000000008007d68 HAL_I2C_DeInit - *fill* 0x0000000008007dc6 0x2 + 0x0000000008007d6c 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008007d6c HAL_I2C_DeInit + *fill* 0x0000000008007dca 0x2 .text.HAL_I2C_Mem_Write - 0x0000000008007dc8 0x228 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o - 0x0000000008007dc8 HAL_I2C_Mem_Write + 0x0000000008007dcc 0x228 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008007dcc HAL_I2C_Mem_Write .text.HAL_I2C_Mem_Read - 0x0000000008007ff0 0x234 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o - 0x0000000008007ff0 HAL_I2C_Mem_Read + 0x0000000008007ff4 0x234 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008007ff4 HAL_I2C_Mem_Read .text.HAL_I2C_GetState - 0x0000000008008224 0x1c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o - 0x0000000008008224 HAL_I2C_GetState + 0x0000000008008228 0x1c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008008228 HAL_I2C_GetState .text.I2C_RequestMemoryWrite - 0x0000000008008240 0xa8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008008244 0xa8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o .text.I2C_RequestMemoryRead - 0x00000000080082e8 0xa8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x00000000080082ec 0xa8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o .text.I2C_Flush_TXDR - 0x0000000008008390 0x48 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008008394 0x48 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o .text.I2C_WaitOnFlagUntilTimeout - 0x00000000080083d8 0x80 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x00000000080083dc 0x80 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o .text.I2C_WaitOnTXISFlagUntilTimeout - 0x0000000008008458 0x80 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x000000000800845c 0x80 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o .text.I2C_WaitOnSTOPFlagUntilTimeout - 0x00000000080084d8 0x78 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x00000000080084dc 0x78 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o .text.I2C_IsAcknowledgeFailed - 0x0000000008008550 0xcc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008008554 0xcc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o .text.I2C_TransferConfig - 0x000000000800861c 0x5c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o + 0x0000000008008620 0x5c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.o .text.HAL_I2CEx_ConfigAnalogFilter - 0x0000000008008678 0x96 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.o - 0x0000000008008678 HAL_I2CEx_ConfigAnalogFilter + 0x000000000800867c 0x96 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.o + 0x000000000800867c HAL_I2CEx_ConfigAnalogFilter .text.HAL_I2CEx_ConfigDigitalFilter - 0x000000000800870e 0x98 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.o - 0x000000000800870e HAL_I2CEx_ConfigDigitalFilter - *fill* 0x00000000080087a6 0x2 + 0x0000000008008712 0x98 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.o + 0x0000000008008712 HAL_I2CEx_ConfigDigitalFilter + *fill* 0x00000000080087aa 0x2 .text.HAL_LTDC_Init - 0x00000000080087a8 0x1a0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o - 0x00000000080087a8 HAL_LTDC_Init + 0x00000000080087ac 0x1a0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o + 0x00000000080087ac HAL_LTDC_Init .text.HAL_LTDC_IRQHandler - 0x0000000008008948 0x148 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o - 0x0000000008008948 HAL_LTDC_IRQHandler + 0x000000000800894c 0x148 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o + 0x000000000800894c HAL_LTDC_IRQHandler .text.HAL_LTDC_ErrorCallback - 0x0000000008008a90 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o - 0x0000000008008a90 HAL_LTDC_ErrorCallback + 0x0000000008008a94 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o + 0x0000000008008a94 HAL_LTDC_ErrorCallback .text.HAL_LTDC_LineEventCallback - 0x0000000008008aa4 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o - 0x0000000008008aa4 HAL_LTDC_LineEventCallback + 0x0000000008008aa8 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o + 0x0000000008008aa8 HAL_LTDC_LineEventCallback .text.HAL_LTDC_ReloadEventCallback - 0x0000000008008ab8 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o - 0x0000000008008ab8 HAL_LTDC_ReloadEventCallback + 0x0000000008008abc 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o + 0x0000000008008abc HAL_LTDC_ReloadEventCallback .text.HAL_LTDC_ConfigLayer - 0x0000000008008acc 0x7c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o - 0x0000000008008acc HAL_LTDC_ConfigLayer + 0x0000000008008ad0 0x7c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o + 0x0000000008008ad0 HAL_LTDC_ConfigLayer .text.HAL_LTDC_GetState - 0x0000000008008b48 0x1c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o - 0x0000000008008b48 HAL_LTDC_GetState + 0x0000000008008b4c 0x1c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o + 0x0000000008008b4c HAL_LTDC_GetState .text.LTDC_SetConfig - 0x0000000008008b64 0x334 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o + 0x0000000008008b68 0x334 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.o .text.HAL_PWR_EnableBkUpAccess - 0x0000000008008e98 0x20 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.o - 0x0000000008008e98 HAL_PWR_EnableBkUpAccess + 0x0000000008008e9c 0x20 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.o + 0x0000000008008e9c HAL_PWR_EnableBkUpAccess .text.HAL_PWREx_EnableOverDrive - 0x0000000008008eb8 0xa0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.o - 0x0000000008008eb8 HAL_PWREx_EnableOverDrive + 0x0000000008008ebc 0xa0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.o + 0x0000000008008ebc HAL_PWREx_EnableOverDrive .text.HAL_RCC_OscConfig - 0x0000000008008f58 0x548 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o - 0x0000000008008f58 HAL_RCC_OscConfig + 0x0000000008008f5c 0x548 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o + 0x0000000008008f5c HAL_RCC_OscConfig .text.HAL_RCC_ClockConfig - 0x00000000080094a0 0x1d8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o - 0x00000000080094a0 HAL_RCC_ClockConfig + 0x00000000080094a4 0x1d8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o + 0x00000000080094a4 HAL_RCC_ClockConfig .text.HAL_RCC_GetSysClockFreq - 0x0000000008009678 0x164 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o - 0x0000000008009678 HAL_RCC_GetSysClockFreq + 0x000000000800967c 0x164 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o + 0x000000000800967c HAL_RCC_GetSysClockFreq .text.HAL_RCC_GetHCLKFreq - 0x00000000080097dc 0x18 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o - 0x00000000080097dc HAL_RCC_GetHCLKFreq + 0x00000000080097e0 0x18 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o + 0x00000000080097e0 HAL_RCC_GetHCLKFreq .text.HAL_RCC_GetPCLK1Freq - 0x00000000080097f4 0x28 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o - 0x00000000080097f4 HAL_RCC_GetPCLK1Freq + 0x00000000080097f8 0x28 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o + 0x00000000080097f8 HAL_RCC_GetPCLK1Freq .text.HAL_RCC_GetPCLK2Freq - 0x000000000800981c 0x28 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o - 0x000000000800981c HAL_RCC_GetPCLK2Freq + 0x0000000008009820 0x28 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o + 0x0000000008009820 HAL_RCC_GetPCLK2Freq .text.HAL_RCC_GetClockConfig - 0x0000000008009844 0x64 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o - 0x0000000008009844 HAL_RCC_GetClockConfig + 0x0000000008009848 0x64 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.o + 0x0000000008009848 HAL_RCC_GetClockConfig .text.HAL_RCCEx_PeriphCLKConfig - 0x00000000080098a8 0x7dc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.o - 0x00000000080098a8 HAL_RCCEx_PeriphCLKConfig + 0x00000000080098ac 0x7dc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.o + 0x00000000080098ac HAL_RCCEx_PeriphCLKConfig .text.HAL_RNG_Init - 0x000000000800a084 0x54 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rng.o - 0x000000000800a084 HAL_RNG_Init + 0x000000000800a088 0x54 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rng.o + 0x000000000800a088 HAL_RNG_Init .text.HAL_RTC_Init - 0x000000000800a0d8 0xf8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o - 0x000000000800a0d8 HAL_RTC_Init + 0x000000000800a0dc 0xf8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o + 0x000000000800a0dc HAL_RTC_Init .text.HAL_RTC_SetTime - 0x000000000800a1d0 0x17c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o - 0x000000000800a1d0 HAL_RTC_SetTime + 0x000000000800a1d4 0x17c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o + 0x000000000800a1d4 HAL_RTC_SetTime .text.HAL_RTC_SetDate - 0x000000000800a34c 0x150 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o - 0x000000000800a34c HAL_RTC_SetDate + 0x000000000800a350 0x150 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o + 0x000000000800a350 HAL_RTC_SetDate .text.HAL_RTC_SetAlarm - 0x000000000800a49c 0x230 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o - 0x000000000800a49c HAL_RTC_SetAlarm + 0x000000000800a4a0 0x230 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o + 0x000000000800a4a0 HAL_RTC_SetAlarm .text.HAL_RTC_WaitForSynchro - 0x000000000800a6cc 0x50 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o - 0x000000000800a6cc HAL_RTC_WaitForSynchro + 0x000000000800a6d0 0x50 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o + 0x000000000800a6d0 HAL_RTC_WaitForSynchro .text.RTC_EnterInitMode - 0x000000000800a71c 0x58 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o - 0x000000000800a71c RTC_EnterInitMode + 0x000000000800a720 0x58 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o + 0x000000000800a720 RTC_EnterInitMode .text.RTC_ByteToBcd2 - 0x000000000800a774 0x3c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o - 0x000000000800a774 RTC_ByteToBcd2 + 0x000000000800a778 0x3c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.o + 0x000000000800a778 RTC_ByteToBcd2 .text.HAL_RTCEx_SetTimeStamp - 0x000000000800a7b0 0xac Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc_ex.o - 0x000000000800a7b0 HAL_RTCEx_SetTimeStamp + 0x000000000800a7b4 0xac Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc_ex.o + 0x000000000800a7b4 HAL_RTCEx_SetTimeStamp .text.HAL_SDRAM_Init - 0x000000000800a85c 0x68 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sdram.o - 0x000000000800a85c HAL_SDRAM_Init + 0x000000000800a860 0x68 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sdram.o + 0x000000000800a860 HAL_SDRAM_Init .text.HAL_SDRAM_SendCommand - 0x000000000800a8c4 0x56 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sdram.o - 0x000000000800a8c4 HAL_SDRAM_SendCommand + 0x000000000800a8c8 0x56 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sdram.o + 0x000000000800a8c8 HAL_SDRAM_SendCommand .text.HAL_SDRAM_ProgramRefreshRate - 0x000000000800a91a 0x40 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sdram.o - 0x000000000800a91a HAL_SDRAM_ProgramRefreshRate + 0x000000000800a91e 0x40 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sdram.o + 0x000000000800a91e HAL_SDRAM_ProgramRefreshRate .text.HAL_SPI_Init - 0x000000000800a95a 0x124 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_spi.o - 0x000000000800a95a HAL_SPI_Init + 0x000000000800a95e 0x124 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_spi.o + 0x000000000800a95e HAL_SPI_Init .text.HAL_TIM_Base_Init - 0x000000000800aa7e 0x56 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800aa7e HAL_TIM_Base_Init + 0x000000000800aa82 0x56 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800aa82 HAL_TIM_Base_Init .text.HAL_TIM_Base_Start_IT - 0x000000000800aad4 0x54 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800aad4 HAL_TIM_Base_Start_IT + 0x000000000800aad8 0x54 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800aad8 HAL_TIM_Base_Start_IT .text.HAL_TIM_PWM_Init - 0x000000000800ab28 0x56 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800ab28 HAL_TIM_PWM_Init + 0x000000000800ab2c 0x56 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800ab2c HAL_TIM_PWM_Init .text.HAL_TIM_PWM_MspInit - 0x000000000800ab7e 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800ab7e HAL_TIM_PWM_MspInit + 0x000000000800ab82 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800ab82 HAL_TIM_PWM_MspInit .text.HAL_TIM_IRQHandler - 0x000000000800ab92 0x23e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800ab92 HAL_TIM_IRQHandler + 0x000000000800ab96 0x23e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800ab96 HAL_TIM_IRQHandler .text.HAL_TIM_PWM_ConfigChannel - 0x000000000800add0 0x230 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800add0 HAL_TIM_PWM_ConfigChannel + 0x000000000800add4 0x230 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800add4 HAL_TIM_PWM_ConfigChannel .text.HAL_TIM_ConfigClockSource - 0x000000000800b000 0x174 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800b000 HAL_TIM_ConfigClockSource + 0x000000000800b004 0x174 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b004 HAL_TIM_ConfigClockSource .text.HAL_TIM_SlaveConfigSynchro - 0x000000000800b174 0x84 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800b174 HAL_TIM_SlaveConfigSynchro + 0x000000000800b178 0x84 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b178 HAL_TIM_SlaveConfigSynchro .text.HAL_TIM_OC_DelayElapsedCallback - 0x000000000800b1f8 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800b1f8 HAL_TIM_OC_DelayElapsedCallback + 0x000000000800b1fc 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b1fc HAL_TIM_OC_DelayElapsedCallback .text.HAL_TIM_IC_CaptureCallback - 0x000000000800b20c 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800b20c HAL_TIM_IC_CaptureCallback + 0x000000000800b210 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b210 HAL_TIM_IC_CaptureCallback .text.HAL_TIM_PWM_PulseFinishedCallback - 0x000000000800b220 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800b220 HAL_TIM_PWM_PulseFinishedCallback + 0x000000000800b224 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b224 HAL_TIM_PWM_PulseFinishedCallback .text.HAL_TIM_TriggerCallback - 0x000000000800b234 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800b234 HAL_TIM_TriggerCallback + 0x000000000800b238 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b238 HAL_TIM_TriggerCallback .text.TIM_Base_SetConfig - 0x000000000800b248 0x140 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800b248 TIM_Base_SetConfig + 0x000000000800b24c 0x140 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b24c TIM_Base_SetConfig .text.TIM_OC1_SetConfig - 0x000000000800b388 0xe4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b38c 0xe4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_OC2_SetConfig - 0x000000000800b46c 0xf0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800b46c TIM_OC2_SetConfig + 0x000000000800b470 0xf0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b470 TIM_OC2_SetConfig .text.TIM_OC3_SetConfig - 0x000000000800b55c 0xec Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b560 0xec Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_OC4_SetConfig - 0x000000000800b648 0xb0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b64c 0xb0 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_OC5_SetConfig - 0x000000000800b6f8 0xa4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b6fc 0xa4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_OC6_SetConfig - 0x000000000800b79c 0xa8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b7a0 0xa8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_SlaveTimer_SetConfig - 0x000000000800b844 0x110 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b848 0x110 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_TI1_ConfigInputStage - 0x000000000800b954 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b958 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_TI2_ConfigInputStage - 0x000000000800b9b2 0x60 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800b9b6 0x60 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_ITRx_SetConfig - 0x000000000800ba12 0x36 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800ba16 0x36 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o .text.TIM_ETR_SetConfig - 0x000000000800ba48 0x40 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o - 0x000000000800ba48 TIM_ETR_SetConfig + 0x000000000800ba4c 0x40 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.o + 0x000000000800ba4c TIM_ETR_SetConfig .text.HAL_TIMEx_MasterConfigSynchronization - 0x000000000800ba88 0x11c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o - 0x000000000800ba88 HAL_TIMEx_MasterConfigSynchronization + 0x000000000800ba8c 0x11c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o + 0x000000000800ba8c HAL_TIMEx_MasterConfigSynchronization .text.HAL_TIMEx_ConfigBreakDeadTime - 0x000000000800bba4 0xfc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o - 0x000000000800bba4 HAL_TIMEx_ConfigBreakDeadTime + 0x000000000800bba8 0xfc Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o + 0x000000000800bba8 HAL_TIMEx_ConfigBreakDeadTime .text.HAL_TIMEx_CommutCallback - 0x000000000800bca0 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o - 0x000000000800bca0 HAL_TIMEx_CommutCallback + 0x000000000800bca4 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o + 0x000000000800bca4 HAL_TIMEx_CommutCallback .text.HAL_TIMEx_BreakCallback - 0x000000000800bcb4 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o - 0x000000000800bcb4 HAL_TIMEx_BreakCallback + 0x000000000800bcb8 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o + 0x000000000800bcb8 HAL_TIMEx_BreakCallback .text.HAL_TIMEx_Break2Callback - 0x000000000800bcc8 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o - 0x000000000800bcc8 HAL_TIMEx_Break2Callback + 0x000000000800bccc 0x14 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.o + 0x000000000800bccc HAL_TIMEx_Break2Callback .text.HAL_UART_Init - 0x000000000800bcdc 0x9c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o - 0x000000000800bcdc HAL_UART_Init + 0x000000000800bce0 0x9c Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o + 0x000000000800bce0 HAL_UART_Init .text.UART_SetConfig - 0x000000000800bd78 0x554 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o - 0x000000000800bd78 UART_SetConfig + 0x000000000800bd7c 0x554 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o + 0x000000000800bd7c UART_SetConfig .text.UART_AdvFeatureConfig - 0x000000000800c2cc 0x144 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o - 0x000000000800c2cc UART_AdvFeatureConfig + 0x000000000800c2d0 0x144 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o + 0x000000000800c2d0 UART_AdvFeatureConfig .text.UART_CheckIdleState - 0x000000000800c410 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o - 0x000000000800c410 UART_CheckIdleState + 0x000000000800c414 0x5e Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o + 0x000000000800c414 UART_CheckIdleState .text.UART_WaitOnFlagUntilTimeout - 0x000000000800c46e 0xf6 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o - 0x000000000800c46e UART_WaitOnFlagUntilTimeout + 0x000000000800c472 0xf6 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.o + 0x000000000800c472 UART_WaitOnFlagUntilTimeout .text.FMC_SDRAM_Init - 0x000000000800c564 0xe4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.o - 0x000000000800c564 FMC_SDRAM_Init + 0x000000000800c568 0xe4 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.o + 0x000000000800c568 FMC_SDRAM_Init .text.FMC_SDRAM_Timing_Init - 0x000000000800c648 0x100 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.o - 0x000000000800c648 FMC_SDRAM_Timing_Init + 0x000000000800c64c 0x100 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.o + 0x000000000800c64c FMC_SDRAM_Timing_Init .text.FMC_SDRAM_SendCommand - 0x000000000800c748 0x42 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.o - 0x000000000800c748 FMC_SDRAM_SendCommand + 0x000000000800c74c 0x42 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.o + 0x000000000800c74c FMC_SDRAM_SendCommand .text.FMC_SDRAM_ProgramRefreshRate - 0x000000000800c78a 0x26 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.o - 0x000000000800c78a FMC_SDRAM_ProgramRefreshRate + 0x000000000800c78e 0x26 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.o + 0x000000000800c78e FMC_SDRAM_ProgramRefreshRate .text.MX_LWIP_Init - 0x000000000800c7b0 0xe0 LWIP/App/lwip.o - 0x000000000800c7b0 MX_LWIP_Init + 0x000000000800c7b4 0xe0 LWIP/App/lwip.o + 0x000000000800c7b4 MX_LWIP_Init .text.HAL_ETH_MspInit - 0x000000000800c890 0x144 LWIP/Target/ethernetif.o - 0x000000000800c890 HAL_ETH_MspInit + 0x000000000800c894 0x144 LWIP/Target/ethernetif.o + 0x000000000800c894 HAL_ETH_MspInit .text.HAL_ETH_RxCpltCallback - 0x000000000800c9d4 0x20 LWIP/Target/ethernetif.o - 0x000000000800c9d4 HAL_ETH_RxCpltCallback + 0x000000000800c9d8 0x20 LWIP/Target/ethernetif.o + 0x000000000800c9d8 HAL_ETH_RxCpltCallback .text.low_level_init - 0x000000000800c9f4 0x1b0 LWIP/Target/ethernetif.o + 0x000000000800c9f8 0x1b0 LWIP/Target/ethernetif.o .text.low_level_output - 0x000000000800cba4 0x13c LWIP/Target/ethernetif.o + 0x000000000800cba8 0x13c LWIP/Target/ethernetif.o .text.low_level_input - 0x000000000800cce0 0x168 LWIP/Target/ethernetif.o + 0x000000000800cce4 0x168 LWIP/Target/ethernetif.o .text.ethernetif_input - 0x000000000800ce48 0x60 LWIP/Target/ethernetif.o - 0x000000000800ce48 ethernetif_input + 0x000000000800ce4c 0x60 LWIP/Target/ethernetif.o + 0x000000000800ce4c ethernetif_input .text.ethernetif_init - 0x000000000800cea8 0x5c LWIP/Target/ethernetif.o - 0x000000000800cea8 ethernetif_init - .text.sys_now 0x000000000800cf04 0xe LWIP/Target/ethernetif.o - 0x000000000800cf04 sys_now - *fill* 0x000000000800cf12 0x2 + 0x000000000800ceac 0x5c LWIP/Target/ethernetif.o + 0x000000000800ceac ethernetif_init + .text.sys_now 0x000000000800cf08 0xe LWIP/Target/ethernetif.o + 0x000000000800cf08 sys_now + *fill* 0x000000000800cf16 0x2 .text.ethernetif_set_link - 0x000000000800cf14 0x78 LWIP/Target/ethernetif.o - 0x000000000800cf14 ethernetif_set_link + 0x000000000800cf18 0x78 LWIP/Target/ethernetif.o + 0x000000000800cf18 ethernetif_set_link .text.ethernetif_update_config - 0x000000000800cf8c 0xf8 LWIP/Target/ethernetif.o - 0x000000000800cf8c ethernetif_update_config + 0x000000000800cf90 0xf8 LWIP/Target/ethernetif.o + 0x000000000800cf90 ethernetif_update_config .text.ethernetif_notify_conn_changed - 0x000000000800d084 0x14 LWIP/Target/ethernetif.o - 0x000000000800d084 ethernetif_notify_conn_changed + 0x000000000800d088 0x14 LWIP/Target/ethernetif.o + 0x000000000800d088 ethernetif_notify_conn_changed .text.makeFreeRtosPriority - 0x000000000800d098 0x30 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d09c 0x30 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o .text.inHandlerMode - 0x000000000800d0c8 0x24 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d0cc 0x24 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o .text.osKernelStart - 0x000000000800d0ec 0xe Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d0ec osKernelStart + 0x000000000800d0f0 0xe Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d0f0 osKernelStart .text.osKernelSysTick - 0x000000000800d0fa 0x20 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d0fa osKernelSysTick + 0x000000000800d0fe 0x20 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d0fe osKernelSysTick .text.osThreadCreate - 0x000000000800d11a 0x98 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d11a osThreadCreate - .text.osDelay 0x000000000800d1b2 0x28 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d1b2 osDelay + 0x000000000800d11e 0x98 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d11e osThreadCreate + .text.osDelay 0x000000000800d1b6 0x28 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d1b6 osDelay .text.osMutexCreate - 0x000000000800d1da 0x30 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d1da osMutexCreate - *fill* 0x000000000800d20a 0x2 + 0x000000000800d1de 0x30 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d1de osMutexCreate + *fill* 0x000000000800d20e 0x2 .text.osMutexWait - 0x000000000800d20c 0x9c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d20c osMutexWait + 0x000000000800d210 0x9c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d210 osMutexWait .text.osMutexRelease - 0x000000000800d2a8 0x6c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d2a8 osMutexRelease + 0x000000000800d2ac 0x6c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d2ac osMutexRelease .text.osSemaphoreCreate - 0x000000000800d314 0x80 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d314 osSemaphoreCreate + 0x000000000800d318 0x80 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d318 osSemaphoreCreate .text.osSemaphoreWait - 0x000000000800d394 0x9c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d394 osSemaphoreWait + 0x000000000800d398 0x9c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d398 osSemaphoreWait .text.osSemaphoreRelease - 0x000000000800d430 0x6c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d430 osSemaphoreRelease + 0x000000000800d434 0x6c Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d434 osSemaphoreRelease .text.osMessageCreate - 0x000000000800d49c 0x52 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d49c osMessageCreate - *fill* 0x000000000800d4ee 0x2 + 0x000000000800d4a0 0x52 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d4a0 osMessageCreate + *fill* 0x000000000800d4f2 0x2 .text.osMessagePut - 0x000000000800d4f0 0x80 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d4f0 osMessagePut + 0x000000000800d4f4 0x80 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d4f4 osMessagePut .text.osMessageGet - 0x000000000800d570 0xe8 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o - 0x000000000800d570 osMessageGet + 0x000000000800d574 0xe8 Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.o + 0x000000000800d574 osMessageGet .text.vListInitialise - 0x000000000800d658 0x40 Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x000000000800d658 vListInitialise + 0x000000000800d65c 0x40 Middlewares/Third_Party/FreeRTOS/Source/list.o + 0x000000000800d65c vListInitialise .text.vListInitialiseItem - 0x000000000800d698 0x1a Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x000000000800d698 vListInitialiseItem + 0x000000000800d69c 0x1a Middlewares/Third_Party/FreeRTOS/Source/list.o + 0x000000000800d69c vListInitialiseItem .text.vListInsertEnd - 0x000000000800d6b2 0x48 Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x000000000800d6b2 vListInsertEnd + 0x000000000800d6b6 0x48 Middlewares/Third_Party/FreeRTOS/Source/list.o + 0x000000000800d6b6 vListInsertEnd .text.vListInsert - 0x000000000800d6fa 0x72 Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x000000000800d6fa vListInsert + 0x000000000800d6fe 0x72 Middlewares/Third_Party/FreeRTOS/Source/list.o + 0x000000000800d6fe vListInsert .text.uxListRemove - 0x000000000800d76c 0x54 Middlewares/Third_Party/FreeRTOS/Source/list.o - 0x000000000800d76c uxListRemove + 0x000000000800d770 0x54 Middlewares/Third_Party/FreeRTOS/Source/list.o + 0x000000000800d770 uxListRemove .text.xQueueGenericReset - 0x000000000800d7c0 0xd4 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800d7c0 xQueueGenericReset + 0x000000000800d7c4 0xd4 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800d7c4 xQueueGenericReset .text.xQueueGenericCreateStatic - 0x000000000800d894 0xfa Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800d894 xQueueGenericCreateStatic + 0x000000000800d898 0xfa Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800d898 xQueueGenericCreateStatic .text.xQueueGenericCreate - 0x000000000800d98e 0x82 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800d98e xQueueGenericCreate + 0x000000000800d992 0x82 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800d992 xQueueGenericCreate .text.prvInitialiseNewQueue - 0x000000000800da10 0x3e Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800da14 0x3e Middlewares/Third_Party/FreeRTOS/Source/queue.o .text.prvInitialiseMutex - 0x000000000800da4e 0x34 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800da52 0x34 Middlewares/Third_Party/FreeRTOS/Source/queue.o .text.xQueueCreateMutex - 0x000000000800da82 0x30 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800da82 xQueueCreateMutex + 0x000000000800da86 0x30 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800da86 xQueueCreateMutex .text.xQueueCreateMutexStatic - 0x000000000800dab2 0x36 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800dab2 xQueueCreateMutexStatic + 0x000000000800dab6 0x36 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800dab6 xQueueCreateMutexStatic .text.xQueueCreateCountingSemaphoreStatic - 0x000000000800dae8 0x72 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800dae8 xQueueCreateCountingSemaphoreStatic + 0x000000000800daec 0x72 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800daec xQueueCreateCountingSemaphoreStatic .text.xQueueCreateCountingSemaphore - 0x000000000800db5a 0x6a Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800db5a xQueueCreateCountingSemaphore + 0x000000000800db5e 0x6a Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800db5e xQueueCreateCountingSemaphore .text.xQueueGenericSend - 0x000000000800dbc4 0x204 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800dbc4 xQueueGenericSend + 0x000000000800dbc8 0x204 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800dbc8 xQueueGenericSend .text.xQueueGenericSendFromISR - 0x000000000800ddc8 0x138 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800ddc8 xQueueGenericSendFromISR + 0x000000000800ddcc 0x138 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800ddcc xQueueGenericSendFromISR .text.xQueueGiveFromISR - 0x000000000800df00 0x122 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800df00 xQueueGiveFromISR - *fill* 0x000000000800e022 0x2 + 0x000000000800df04 0x122 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800df04 xQueueGiveFromISR + *fill* 0x000000000800e026 0x2 .text.xQueueReceive - 0x000000000800e024 0x1c4 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800e024 xQueueReceive + 0x000000000800e028 0x1c4 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e028 xQueueReceive .text.xQueueSemaphoreTake - 0x000000000800e1e8 0x220 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800e1e8 xQueueSemaphoreTake + 0x000000000800e1ec 0x220 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e1ec xQueueSemaphoreTake .text.xQueueReceiveFromISR - 0x000000000800e408 0x106 Middlewares/Third_Party/FreeRTOS/Source/queue.o - 0x000000000800e408 xQueueReceiveFromISR + 0x000000000800e40c 0x106 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e40c xQueueReceiveFromISR .text.prvGetDisinheritPriorityAfterTimeout - 0x000000000800e50e 0x30 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e512 0x30 Middlewares/Third_Party/FreeRTOS/Source/queue.o .text.prvCopyDataToQueue - 0x000000000800e53e 0xd4 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e542 0xd4 Middlewares/Third_Party/FreeRTOS/Source/queue.o .text.prvCopyDataFromQueue - 0x000000000800e612 0x4c Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e616 0x4c Middlewares/Third_Party/FreeRTOS/Source/queue.o .text.prvUnlockQueue - 0x000000000800e65e 0xa4 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e662 0xa4 Middlewares/Third_Party/FreeRTOS/Source/queue.o .text.prvIsQueueEmpty - 0x000000000800e702 0x2c Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e706 0x2c Middlewares/Third_Party/FreeRTOS/Source/queue.o .text.prvIsQueueFull - 0x000000000800e72e 0x30 Middlewares/Third_Party/FreeRTOS/Source/queue.o + 0x000000000800e732 0x30 Middlewares/Third_Party/FreeRTOS/Source/queue.o .text.xTaskCreateStatic - 0x000000000800e75e 0xc0 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800e75e xTaskCreateStatic + 0x000000000800e762 0xc0 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800e762 xTaskCreateStatic .text.xTaskCreate - 0x000000000800e81e 0x8a Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800e81e xTaskCreate + 0x000000000800e822 0x8a Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800e822 xTaskCreate .text.prvInitialiseNewTask - 0x000000000800e8a8 0x126 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - *fill* 0x000000000800e9ce 0x2 + 0x000000000800e8ac 0x126 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + *fill* 0x000000000800e9d2 0x2 .text.prvAddNewTaskToReadyList - 0x000000000800e9d0 0xd4 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800e9d4 0xd4 Middlewares/Third_Party/FreeRTOS/Source/tasks.o .text.vTaskDelayUntil - 0x000000000800eaa4 0x100 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800eaa4 vTaskDelayUntil + 0x000000000800eaa8 0x100 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800eaa8 vTaskDelayUntil .text.vTaskDelay - 0x000000000800eba4 0x6c Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800eba4 vTaskDelay + 0x000000000800eba8 0x6c Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800eba8 vTaskDelay .text.vTaskStartScheduler - 0x000000000800ec10 0xc4 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800ec10 vTaskStartScheduler + 0x000000000800ec14 0xc4 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800ec14 vTaskStartScheduler .text.vTaskSuspendAll - 0x000000000800ecd4 0x1c Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800ecd4 vTaskSuspendAll + 0x000000000800ecd8 0x1c Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800ecd8 vTaskSuspendAll .text.xTaskResumeAll - 0x000000000800ecf0 0x13c Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800ecf0 xTaskResumeAll + 0x000000000800ecf4 0x13c Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800ecf4 xTaskResumeAll .text.xTaskGetTickCount - 0x000000000800ee2c 0x20 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800ee2c xTaskGetTickCount + 0x000000000800ee30 0x20 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800ee30 xTaskGetTickCount .text.xTaskGetTickCountFromISR - 0x000000000800ee4c 0x24 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800ee4c xTaskGetTickCountFromISR + 0x000000000800ee50 0x24 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800ee50 xTaskGetTickCountFromISR .text.xTaskIncrementTick - 0x000000000800ee70 0x174 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800ee70 xTaskIncrementTick + 0x000000000800ee74 0x174 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800ee74 xTaskIncrementTick .text.vTaskSwitchContext - 0x000000000800efe4 0x104 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800efe4 vTaskSwitchContext + 0x000000000800efe8 0x104 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800efe8 vTaskSwitchContext .text.vTaskPlaceOnEventList - 0x000000000800f0e8 0x4c Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f0e8 vTaskPlaceOnEventList + 0x000000000800f0ec 0x4c Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f0ec vTaskPlaceOnEventList .text.xTaskRemoveFromEventList - 0x000000000800f134 0xc8 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f134 xTaskRemoveFromEventList + 0x000000000800f138 0xc8 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f138 xTaskRemoveFromEventList .text.vTaskInternalSetTimeOutState - 0x000000000800f1fc 0x2c Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f1fc vTaskInternalSetTimeOutState + 0x000000000800f200 0x2c Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f200 vTaskInternalSetTimeOutState .text.xTaskCheckForTimeOut - 0x000000000800f228 0xc8 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f228 xTaskCheckForTimeOut + 0x000000000800f22c 0xc8 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f22c xTaskCheckForTimeOut .text.vTaskMissedYield - 0x000000000800f2f0 0x18 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f2f0 vTaskMissedYield + 0x000000000800f2f4 0x18 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f2f4 vTaskMissedYield .text.prvIdleTask - 0x000000000800f308 0x34 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f30c 0x34 Middlewares/Third_Party/FreeRTOS/Source/tasks.o .text.prvInitialiseTaskLists - 0x000000000800f33c 0x80 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f340 0x80 Middlewares/Third_Party/FreeRTOS/Source/tasks.o .text.prvCheckTasksWaitingTermination - 0x000000000800f3bc 0x58 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f3c0 0x58 Middlewares/Third_Party/FreeRTOS/Source/tasks.o .text.prvDeleteTCB - 0x000000000800f414 0x60 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f418 0x60 Middlewares/Third_Party/FreeRTOS/Source/tasks.o .text.prvResetNextTaskUnblockTime - 0x000000000800f474 0x40 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f478 0x40 Middlewares/Third_Party/FreeRTOS/Source/tasks.o .text.xTaskGetSchedulerState - 0x000000000800f4b4 0x3c Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f4b4 xTaskGetSchedulerState + 0x000000000800f4b8 0x3c Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f4b8 xTaskGetSchedulerState .text.xTaskPriorityInherit - 0x000000000800f4f0 0x100 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f4f0 xTaskPriorityInherit + 0x000000000800f4f4 0x100 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f4f4 xTaskPriorityInherit .text.xTaskPriorityDisinherit - 0x000000000800f5f0 0x110 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f5f0 xTaskPriorityDisinherit + 0x000000000800f5f4 0x110 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f5f4 xTaskPriorityDisinherit .text.vTaskPriorityDisinheritAfterTimeout - 0x000000000800f700 0x138 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f700 vTaskPriorityDisinheritAfterTimeout + 0x000000000800f704 0x138 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f704 vTaskPriorityDisinheritAfterTimeout .text.pvTaskIncrementMutexHeldCount - 0x000000000800f838 0x28 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - 0x000000000800f838 pvTaskIncrementMutexHeldCount + 0x000000000800f83c 0x28 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f83c pvTaskIncrementMutexHeldCount .text.prvAddCurrentTaskToDelayedList - 0x000000000800f860 0xcc Middlewares/Third_Party/FreeRTOS/Source/tasks.o + 0x000000000800f864 0xcc Middlewares/Third_Party/FreeRTOS/Source/tasks.o .text.pxPortInitialiseStack - 0x000000000800f92c 0x68 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800f92c pxPortInitialiseStack + 0x000000000800f930 0x68 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800f930 pxPortInitialiseStack .text.prvTaskExitError - 0x000000000800f994 0x5c Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800f998 0x5c Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + *fill* 0x000000000800f9f4 0xc .text.SVC_Handler - 0x000000000800f9f0 0x28 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800f9f0 SVC_Handler + 0x000000000800fa00 0x28 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fa00 SVC_Handler .text.prvPortStartFirstTask - 0x000000000800fa18 0x28 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fa28 0x28 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o .text.xPortStartScheduler - 0x000000000800fa40 0xf8 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800fa40 xPortStartScheduler + 0x000000000800fa50 0xf8 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fa50 xPortStartScheduler .text.vPortEnterCritical - 0x000000000800fb38 0x64 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800fb38 vPortEnterCritical + 0x000000000800fb48 0x64 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fb48 vPortEnterCritical .text.vPortExitCritical - 0x000000000800fb9c 0x54 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800fb9c vPortExitCritical + 0x000000000800fbac 0x54 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fbac vPortExitCritical .text.PendSV_Handler - 0x000000000800fbf0 0x68 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800fbf0 PendSV_Handler + 0x000000000800fc00 0x68 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fc00 PendSV_Handler .text.SysTick_Handler - 0x000000000800fc58 0x44 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800fc58 SysTick_Handler + 0x000000000800fc68 0x44 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fc68 SysTick_Handler .text.vPortSetupTimerInterrupt - 0x000000000800fc9c 0x48 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800fc9c vPortSetupTimerInterrupt + 0x000000000800fcac 0x48 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fcac vPortSetupTimerInterrupt .text.vPortEnableVFP - 0x000000000800fce4 0x14 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fcf4 0x14 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o .text.vPortValidateInterruptPriority - 0x000000000800fcf8 0x84 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o - 0x000000000800fcf8 vPortValidateInterruptPriority + 0x000000000800fd08 0x84 Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.o + 0x000000000800fd08 vPortValidateInterruptPriority .text.pvPortMalloc - 0x000000000800fd7c 0x198 Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - 0x000000000800fd7c pvPortMalloc + 0x000000000800fd8c 0x198 Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o + 0x000000000800fd8c pvPortMalloc .text.vPortFree - 0x000000000800ff14 0xb8 Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o - 0x000000000800ff14 vPortFree + 0x000000000800ff24 0xb8 Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o + 0x000000000800ff24 vPortFree .text.prvHeapInit - 0x000000000800ffcc 0xc4 Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o + 0x000000000800ffdc 0xc4 Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o .text.prvInsertBlockIntoFreeList - 0x0000000008010090 0xb4 Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o + 0x00000000080100a0 0xb4 Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o .text.tcpip_timeouts_mbox_fetch - 0x0000000008010144 0x6c Middlewares/Third_Party/LwIP/src/api/tcpip.o + 0x0000000008010154 0x6c Middlewares/Third_Party/LwIP/src/api/tcpip.o .text.tcpip_thread - 0x00000000080101b0 0x68 Middlewares/Third_Party/LwIP/src/api/tcpip.o + 0x00000000080101c0 0x68 Middlewares/Third_Party/LwIP/src/api/tcpip.o .text.tcpip_thread_handle_msg - 0x0000000008010218 0x88 Middlewares/Third_Party/LwIP/src/api/tcpip.o + 0x0000000008010228 0x88 Middlewares/Third_Party/LwIP/src/api/tcpip.o .text.tcpip_inpkt - 0x00000000080102a0 0x88 Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x00000000080102a0 tcpip_inpkt + 0x00000000080102b0 0x88 Middlewares/Third_Party/LwIP/src/api/tcpip.o + 0x00000000080102b0 tcpip_inpkt .text.tcpip_input - 0x0000000008010328 0x44 Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x0000000008010328 tcpip_input + 0x0000000008010338 0x44 Middlewares/Third_Party/LwIP/src/api/tcpip.o + 0x0000000008010338 tcpip_input .text.tcpip_try_callback - 0x000000000801036c 0x80 Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x000000000801036c tcpip_try_callback + 0x000000000801037c 0x80 Middlewares/Third_Party/LwIP/src/api/tcpip.o + 0x000000000801037c tcpip_try_callback .text.tcpip_init - 0x00000000080103ec 0x94 Middlewares/Third_Party/LwIP/src/api/tcpip.o - 0x00000000080103ec tcpip_init + 0x00000000080103fc 0x94 Middlewares/Third_Party/LwIP/src/api/tcpip.o + 0x00000000080103fc tcpip_init .text.lwip_htons - 0x0000000008010480 0x2a Middlewares/Third_Party/LwIP/src/core/def.o - 0x0000000008010480 lwip_htons + 0x0000000008010490 0x2a Middlewares/Third_Party/LwIP/src/core/def.o + 0x0000000008010490 lwip_htons .text.lwip_htonl - 0x00000000080104aa 0x32 Middlewares/Third_Party/LwIP/src/core/def.o - 0x00000000080104aa lwip_htonl + 0x00000000080104ba 0x32 Middlewares/Third_Party/LwIP/src/core/def.o + 0x00000000080104ba lwip_htonl .text.lwip_init - 0x00000000080104dc 0x2e Middlewares/Third_Party/LwIP/src/core/init.o - 0x00000000080104dc lwip_init - *fill* 0x000000000801050a 0x2 + 0x00000000080104ec 0x2e Middlewares/Third_Party/LwIP/src/core/init.o + 0x00000000080104ec lwip_init + *fill* 0x000000000801051a 0x2 .text.ptr_to_mem - 0x000000000801050c 0x24 Middlewares/Third_Party/LwIP/src/core/mem.o + 0x000000000801051c 0x24 Middlewares/Third_Party/LwIP/src/core/mem.o .text.mem_to_ptr - 0x0000000008010530 0x24 Middlewares/Third_Party/LwIP/src/core/mem.o + 0x0000000008010540 0x24 Middlewares/Third_Party/LwIP/src/core/mem.o .text.plug_holes - 0x0000000008010554 0x144 Middlewares/Third_Party/LwIP/src/core/mem.o + 0x0000000008010564 0x144 Middlewares/Third_Party/LwIP/src/core/mem.o .text.mem_init - 0x0000000008010698 0xa4 Middlewares/Third_Party/LwIP/src/core/mem.o - 0x0000000008010698 mem_init + 0x00000000080106a8 0xa4 Middlewares/Third_Party/LwIP/src/core/mem.o + 0x00000000080106a8 mem_init .text.mem_link_valid - 0x000000000801073c 0x78 Middlewares/Third_Party/LwIP/src/core/mem.o + 0x000000000801074c 0x78 Middlewares/Third_Party/LwIP/src/core/mem.o .text.mem_free - 0x00000000080107b4 0x120 Middlewares/Third_Party/LwIP/src/core/mem.o - 0x00000000080107b4 mem_free + 0x00000000080107c4 0x120 Middlewares/Third_Party/LwIP/src/core/mem.o + 0x00000000080107c4 mem_free .text.mem_trim - 0x00000000080108d4 0x214 Middlewares/Third_Party/LwIP/src/core/mem.o - 0x00000000080108d4 mem_trim + 0x00000000080108e4 0x214 Middlewares/Third_Party/LwIP/src/core/mem.o + 0x00000000080108e4 mem_trim .text.mem_malloc - 0x0000000008010ae8 0x20c Middlewares/Third_Party/LwIP/src/core/mem.o - 0x0000000008010ae8 mem_malloc + 0x0000000008010af8 0x20c Middlewares/Third_Party/LwIP/src/core/mem.o + 0x0000000008010af8 mem_malloc .text.memp_init_pool - 0x0000000008010cf4 0x5e Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008010cf4 memp_init_pool - *fill* 0x0000000008010d52 0x2 + 0x0000000008010d04 0x5e Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008010d04 memp_init_pool + *fill* 0x0000000008010d62 0x2 .text.memp_init - 0x0000000008010d54 0x34 Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008010d54 memp_init + 0x0000000008010d64 0x34 Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008010d64 memp_init .text.do_memp_malloc_pool - 0x0000000008010d88 0x64 Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008010d98 0x64 Middlewares/Third_Party/LwIP/src/core/memp.o .text.memp_malloc - 0x0000000008010dec 0x4c Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008010dec memp_malloc + 0x0000000008010dfc 0x4c Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008010dfc memp_malloc .text.do_memp_free_pool - 0x0000000008010e38 0x58 Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008010e48 0x58 Middlewares/Third_Party/LwIP/src/core/memp.o .text.memp_free - 0x0000000008010e90 0x54 Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008010e90 memp_free + 0x0000000008010ea0 0x54 Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008010ea0 memp_free .text.netif_init - 0x0000000008010ee4 0xe Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008010ee4 netif_init - *fill* 0x0000000008010ef2 0x2 + 0x0000000008010ef4 0xe Middlewares/Third_Party/LwIP/src/core/netif.o + 0x0000000008010ef4 netif_init + *fill* 0x0000000008010f02 0x2 .text.netif_add - 0x0000000008010ef4 0x1ac Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008010ef4 netif_add + 0x0000000008010f04 0x1ac Middlewares/Third_Party/LwIP/src/core/netif.o + 0x0000000008010f04 netif_add .text.netif_do_ip_addr_changed - 0x00000000080110a0 0x22 Middlewares/Third_Party/LwIP/src/core/netif.o - *fill* 0x00000000080110c2 0x2 + 0x00000000080110b0 0x22 Middlewares/Third_Party/LwIP/src/core/netif.o + *fill* 0x00000000080110d2 0x2 .text.netif_do_set_ipaddr - 0x00000000080110c4 0x94 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x00000000080110d4 0x94 Middlewares/Third_Party/LwIP/src/core/netif.o .text.netif_do_set_netmask - 0x0000000008011158 0x3e Middlewares/Third_Party/LwIP/src/core/netif.o + 0x0000000008011168 0x3e Middlewares/Third_Party/LwIP/src/core/netif.o .text.netif_do_set_gw - 0x0000000008011196 0x3e Middlewares/Third_Party/LwIP/src/core/netif.o + 0x00000000080111a6 0x3e Middlewares/Third_Party/LwIP/src/core/netif.o .text.netif_set_addr - 0x00000000080111d4 0x94 Middlewares/Third_Party/LwIP/src/core/netif.o - 0x00000000080111d4 netif_set_addr + 0x00000000080111e4 0x94 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x00000000080111e4 netif_set_addr .text.netif_set_default - 0x0000000008011268 0x20 Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008011268 netif_set_default + 0x0000000008011278 0x20 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x0000000008011278 netif_set_default .text.netif_set_up - 0x0000000008011288 0x58 Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008011288 netif_set_up + 0x0000000008011298 0x58 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x0000000008011298 netif_set_up .text.netif_issue_reports - 0x00000000080112e0 0x80 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x00000000080112f0 0x80 Middlewares/Third_Party/LwIP/src/core/netif.o .text.netif_set_down - 0x0000000008011360 0x64 Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008011360 netif_set_down + 0x0000000008011370 0x64 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x0000000008011370 netif_set_down .text.netif_set_link_up - 0x00000000080113c4 0x70 Middlewares/Third_Party/LwIP/src/core/netif.o - 0x00000000080113c4 netif_set_link_up + 0x00000000080113d4 0x70 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x00000000080113d4 netif_set_link_up .text.netif_set_link_down - 0x0000000008011434 0x60 Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008011434 netif_set_link_down + 0x0000000008011444 0x60 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x0000000008011444 netif_set_link_down .text.netif_set_link_callback - 0x0000000008011494 0x22 Middlewares/Third_Party/LwIP/src/core/netif.o - 0x0000000008011494 netif_set_link_callback + 0x00000000080114a4 0x22 Middlewares/Third_Party/LwIP/src/core/netif.o + 0x00000000080114a4 netif_set_link_callback .text.netif_null_output_ip4 - 0x00000000080114b6 0x1c Middlewares/Third_Party/LwIP/src/core/netif.o - *fill* 0x00000000080114d2 0x2 + 0x00000000080114c6 0x1c Middlewares/Third_Party/LwIP/src/core/netif.o + *fill* 0x00000000080114e2 0x2 .text.netif_get_by_index - 0x00000000080114d4 0x4c Middlewares/Third_Party/LwIP/src/core/netif.o - 0x00000000080114d4 netif_get_by_index + 0x00000000080114e4 0x4c Middlewares/Third_Party/LwIP/src/core/netif.o + 0x00000000080114e4 netif_get_by_index .text.pbuf_free_ooseq - 0x0000000008011520 0x4c Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011530 0x4c Middlewares/Third_Party/LwIP/src/core/pbuf.o .text.pbuf_free_ooseq_callback - 0x000000000801156c 0x14 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x000000000801157c 0x14 Middlewares/Third_Party/LwIP/src/core/pbuf.o .text.pbuf_pool_is_empty - 0x0000000008011580 0x54 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011590 0x54 Middlewares/Third_Party/LwIP/src/core/pbuf.o .text.pbuf_init_alloced_pbuf - 0x00000000080115d4 0x54 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x00000000080115e4 0x54 Middlewares/Third_Party/LwIP/src/core/pbuf.o .text.pbuf_alloc - 0x0000000008011628 0x1e4 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011628 pbuf_alloc + 0x0000000008011638 0x1e4 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011638 pbuf_alloc .text.pbuf_alloc_reference - 0x000000000801180c 0x68 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x000000000801180c pbuf_alloc_reference + 0x000000000801181c 0x68 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x000000000801181c pbuf_alloc_reference .text.pbuf_alloced_custom - 0x0000000008011874 0x68 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011874 pbuf_alloced_custom + 0x0000000008011884 0x68 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011884 pbuf_alloced_custom .text.pbuf_realloc - 0x00000000080118dc 0x110 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x00000000080118dc pbuf_realloc + 0x00000000080118ec 0x110 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x00000000080118ec pbuf_realloc .text.pbuf_add_header_impl - 0x00000000080119ec 0xd0 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x00000000080119fc 0xd0 Middlewares/Third_Party/LwIP/src/core/pbuf.o .text.pbuf_add_header - 0x0000000008011abc 0x1e Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011abc pbuf_add_header - *fill* 0x0000000008011ada 0x2 + 0x0000000008011acc 0x1e Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011acc pbuf_add_header + *fill* 0x0000000008011aea 0x2 .text.pbuf_remove_header - 0x0000000008011adc 0xa4 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011adc pbuf_remove_header + 0x0000000008011aec 0xa4 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011aec pbuf_remove_header .text.pbuf_header_impl - 0x0000000008011b80 0x42 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011b90 0x42 Middlewares/Third_Party/LwIP/src/core/pbuf.o .text.pbuf_header_force - 0x0000000008011bc2 0x24 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011bc2 pbuf_header_force - *fill* 0x0000000008011be6 0x2 + 0x0000000008011bd2 0x24 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011bd2 pbuf_header_force + *fill* 0x0000000008011bf6 0x2 .text.pbuf_free - 0x0000000008011be8 0x11c Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011be8 pbuf_free + 0x0000000008011bf8 0x11c Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011bf8 pbuf_free .text.pbuf_clen - 0x0000000008011d04 0x2e Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011d04 pbuf_clen - *fill* 0x0000000008011d32 0x2 + 0x0000000008011d14 0x2e Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011d14 pbuf_clen + *fill* 0x0000000008011d42 0x2 .text.pbuf_ref - 0x0000000008011d34 0x50 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011d34 pbuf_ref + 0x0000000008011d44 0x50 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011d44 pbuf_ref .text.pbuf_cat - 0x0000000008011d84 0xac Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011d84 pbuf_cat + 0x0000000008011d94 0xac Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011d94 pbuf_cat .text.pbuf_chain - 0x0000000008011e30 0x20 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011e30 pbuf_chain + 0x0000000008011e40 0x20 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011e40 pbuf_chain .text.pbuf_copy - 0x0000000008011e50 0x1a4 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011e50 pbuf_copy + 0x0000000008011e60 0x1a4 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008011e60 pbuf_copy .text.pbuf_copy_partial - 0x0000000008011ff4 0xe4 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x0000000008011ff4 pbuf_copy_partial + 0x0000000008012004 0xe4 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x0000000008012004 pbuf_copy_partial .text.pbuf_clone - 0x00000000080120d8 0x64 Middlewares/Third_Party/LwIP/src/core/pbuf.o - 0x00000000080120d8 pbuf_clone + 0x00000000080120e8 0x64 Middlewares/Third_Party/LwIP/src/core/pbuf.o + 0x00000000080120e8 pbuf_clone .text.tcp_init - 0x000000000801213c 0x24 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801213c tcp_init + 0x000000000801214c 0x24 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x000000000801214c tcp_init .text.tcp_free - 0x0000000008012160 0x38 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008012160 tcp_free + 0x0000000008012170 0x38 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008012170 tcp_free .text.tcp_free_listen - 0x0000000008012198 0x38 Middlewares/Third_Party/LwIP/src/core/tcp.o - .text.tcp_tmr 0x00000000080121d0 0x2c Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080121d0 tcp_tmr + 0x00000000080121a8 0x38 Middlewares/Third_Party/LwIP/src/core/tcp.o + .text.tcp_tmr 0x00000000080121e0 0x2c Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080121e0 tcp_tmr .text.tcp_remove_listener - 0x00000000080121fc 0x54 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x000000000801220c 0x54 Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_listen_closed - 0x0000000008012250 0x74 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008012260 0x74 Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_close_shutdown - 0x00000000080122c4 0x1bc Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080122d4 0x1bc Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_close_shutdown_fin - 0x0000000008012480 0xcc Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008012490 0xcc Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_close - 0x000000000801254c 0x58 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801254c tcp_close + 0x000000000801255c 0x58 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x000000000801255c tcp_close .text.tcp_abandon - 0x00000000080125a4 0x17c Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080125a4 tcp_abandon + 0x00000000080125b4 0x17c Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080125b4 tcp_abandon .text.tcp_abort - 0x0000000008012720 0x18 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008012720 tcp_abort + 0x0000000008012730 0x18 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008012730 tcp_abort .text.tcp_update_rcv_ann_wnd - 0x0000000008012738 0xb4 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008012738 tcp_update_rcv_ann_wnd + 0x0000000008012748 0xb4 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008012748 tcp_update_rcv_ann_wnd .text.tcp_recved - 0x00000000080127ec 0xa0 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080127ec tcp_recved + 0x00000000080127fc 0xa0 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080127fc tcp_recved .text.tcp_slowtmr - 0x000000000801288c 0x67c Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x000000000801288c tcp_slowtmr + 0x000000000801289c 0x67c Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x000000000801289c tcp_slowtmr .text.tcp_fasttmr - 0x0000000008012f08 0xc8 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008012f08 tcp_fasttmr + 0x0000000008012f18 0xc8 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008012f18 tcp_fasttmr .text.tcp_process_refused_data - 0x0000000008012fd0 0xf8 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008012fd0 tcp_process_refused_data + 0x0000000008012fe0 0xf8 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008012fe0 tcp_process_refused_data .text.tcp_segs_free - 0x00000000080130c8 0x28 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080130c8 tcp_segs_free + 0x00000000080130d8 0x28 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080130d8 tcp_segs_free .text.tcp_seg_free - 0x00000000080130f0 0x30 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080130f0 tcp_seg_free + 0x0000000008013100 0x30 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013100 tcp_seg_free .text.tcp_seg_copy - 0x0000000008013120 0x58 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008013120 tcp_seg_copy + 0x0000000008013130 0x58 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013130 tcp_seg_copy .text.tcp_recv_null - 0x0000000008013178 0x6c Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008013178 tcp_recv_null + 0x0000000008013188 0x6c Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013188 tcp_recv_null .text.tcp_kill_prio - 0x00000000080131e4 0x9c Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080131f4 0x9c Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_kill_state - 0x0000000008013280 0x94 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013290 0x94 Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_kill_timewait - 0x0000000008013314 0x60 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013324 0x60 Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_handle_closepend - 0x0000000008013374 0x4c Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013384 0x4c Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_alloc - 0x00000000080133c0 0x108 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080133c0 tcp_alloc + 0x00000000080133d0 0x108 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080133d0 tcp_alloc .text.tcp_pcb_purge - 0x00000000080134c8 0xa0 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080134c8 tcp_pcb_purge + 0x00000000080134d8 0xa0 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080134d8 tcp_pcb_purge .text.tcp_pcb_remove - 0x0000000008013568 0x128 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008013568 tcp_pcb_remove + 0x0000000008013578 0x128 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013578 tcp_pcb_remove .text.tcp_next_iss - 0x0000000008013690 0x4c Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008013690 tcp_next_iss + 0x00000000080136a0 0x4c Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080136a0 tcp_next_iss .text.tcp_eff_send_mss_netif - 0x00000000080136dc 0x74 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080136dc tcp_eff_send_mss_netif + 0x00000000080136ec 0x74 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080136ec tcp_eff_send_mss_netif .text.tcp_netif_ip_addr_changed_pcblist - 0x0000000008013750 0x64 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013760 0x64 Middlewares/Third_Party/LwIP/src/core/tcp.o .text.tcp_netif_ip_addr_changed - 0x00000000080137b4 0x7c Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080137b4 tcp_netif_ip_addr_changed + 0x00000000080137c4 0x7c Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080137c4 tcp_netif_ip_addr_changed .text.tcp_free_ooseq - 0x0000000008013830 0x28 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x0000000008013830 tcp_free_ooseq + 0x0000000008013840 0x28 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x0000000008013840 tcp_free_ooseq .text.tcp_input - 0x0000000008013858 0x810 Middlewares/Third_Party/LwIP/src/core/tcp_in.o - 0x0000000008013858 tcp_input + 0x0000000008013868 0x810 Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x0000000008013868 tcp_input .text.tcp_input_delayed_close - 0x0000000008014068 0x80 Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x0000000008014078 0x80 Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_listen_input - 0x00000000080140e8 0x1fc Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x00000000080140f8 0x1fc Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_timewait_input - 0x00000000080142e4 0xf8 Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x00000000080142f4 0xf8 Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_process - 0x00000000080143dc 0x7e0 Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x00000000080143ec 0x7e0 Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_oos_insert_segment - 0x0000000008014bbc 0x110 Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x0000000008014bcc 0x110 Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_free_acked_segments - 0x0000000008014ccc 0xf8 Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x0000000008014cdc 0xf8 Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_receive - 0x0000000008014dc4 0xf2c Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x0000000008014dd4 0xf2c Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_get_next_optbyte - 0x0000000008015cf0 0x6c Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x0000000008015d00 0x6c Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_parseopt - 0x0000000008015d5c 0xe8 Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x0000000008015d6c 0xe8 Middlewares/Third_Party/LwIP/src/core/tcp_in.o .text.tcp_trigger_input_pcb_close - 0x0000000008015e44 0x20 Middlewares/Third_Party/LwIP/src/core/tcp_in.o - 0x0000000008015e44 tcp_trigger_input_pcb_close + 0x0000000008015e54 0x20 Middlewares/Third_Party/LwIP/src/core/tcp_in.o + 0x0000000008015e54 tcp_trigger_input_pcb_close .text.tcp_route - 0x0000000008015e64 0x38 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008015e74 0x38 Middlewares/Third_Party/LwIP/src/core/tcp_out.o .text.tcp_create_segment - 0x0000000008015e9c 0x13c Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008015eac 0x13c Middlewares/Third_Party/LwIP/src/core/tcp_out.o .text.tcp_split_unsent_seg - 0x0000000008015fd8 0x290 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008015fd8 tcp_split_unsent_seg + 0x0000000008015fe8 0x290 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008015fe8 tcp_split_unsent_seg .text.tcp_send_fin - 0x0000000008016268 0xa0 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008016268 tcp_send_fin + 0x0000000008016278 0xa0 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016278 tcp_send_fin .text.tcp_enqueue_flags - 0x0000000008016308 0x1dc Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008016308 tcp_enqueue_flags + 0x0000000008016318 0x1dc Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016318 tcp_enqueue_flags .text.tcp_output - 0x00000000080164e4 0x3f0 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x00000000080164e4 tcp_output + 0x00000000080164f4 0x3f0 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x00000000080164f4 tcp_output .text.tcp_output_segment_busy - 0x00000000080168d4 0x40 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x00000000080168e4 0x40 Middlewares/Third_Party/LwIP/src/core/tcp_out.o .text.tcp_output_segment - 0x0000000008016914 0x1c0 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016924 0x1c0 Middlewares/Third_Party/LwIP/src/core/tcp_out.o .text.tcp_rexmit_rto_prepare - 0x0000000008016ad4 0xe0 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008016ad4 tcp_rexmit_rto_prepare + 0x0000000008016ae4 0xe0 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016ae4 tcp_rexmit_rto_prepare .text.tcp_rexmit_rto_commit - 0x0000000008016bb4 0x50 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008016bb4 tcp_rexmit_rto_commit + 0x0000000008016bc4 0x50 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016bc4 tcp_rexmit_rto_commit .text.tcp_rexmit_rto - 0x0000000008016c04 0x44 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008016c04 tcp_rexmit_rto + 0x0000000008016c14 0x44 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016c14 tcp_rexmit_rto .text.tcp_rexmit - 0x0000000008016c48 0xd8 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008016c48 tcp_rexmit + 0x0000000008016c58 0xd8 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016c58 tcp_rexmit .text.tcp_rexmit_fast - 0x0000000008016d20 0xd8 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008016d20 tcp_rexmit_fast + 0x0000000008016d30 0xd8 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016d30 tcp_rexmit_fast .text.tcp_output_alloc_header_common - 0x0000000008016df8 0xe8 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016e08 0xe8 Middlewares/Third_Party/LwIP/src/core/tcp_out.o .text.tcp_output_alloc_header - 0x0000000008016ee0 0x7c Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016ef0 0x7c Middlewares/Third_Party/LwIP/src/core/tcp_out.o .text.tcp_output_fill_options - 0x0000000008016f5c 0x80 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008016f6c 0x80 Middlewares/Third_Party/LwIP/src/core/tcp_out.o .text.tcp_output_control_segment - 0x0000000008016fdc 0x94 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - .text.tcp_rst 0x0000000008017070 0xa4 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008017070 tcp_rst + 0x0000000008016fec 0x94 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + .text.tcp_rst 0x0000000008017080 0xa4 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008017080 tcp_rst .text.tcp_send_empty_ack - 0x0000000008017114 0xc4 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008017114 tcp_send_empty_ack + 0x0000000008017124 0xc4 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008017124 tcp_send_empty_ack .text.tcp_keepalive - 0x00000000080171d8 0x80 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x00000000080171d8 tcp_keepalive + 0x00000000080171e8 0x80 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x00000000080171e8 tcp_keepalive .text.tcp_zero_window_probe - 0x0000000008017258 0x154 Middlewares/Third_Party/LwIP/src/core/tcp_out.o - 0x0000000008017258 tcp_zero_window_probe + 0x0000000008017268 0x154 Middlewares/Third_Party/LwIP/src/core/tcp_out.o + 0x0000000008017268 tcp_zero_window_probe .text.tcpip_tcp_timer - 0x00000000080173ac 0x48 Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x00000000080173bc 0x48 Middlewares/Third_Party/LwIP/src/core/timeouts.o .text.tcp_timer_needed - 0x00000000080173f4 0x40 Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x00000000080173f4 tcp_timer_needed + 0x0000000008017404 0x40 Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x0000000008017404 tcp_timer_needed .text.sys_timeout_abs - 0x0000000008017434 0xdc Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x0000000008017444 0xdc Middlewares/Third_Party/LwIP/src/core/timeouts.o .text.lwip_cyclic_timer - 0x0000000008017510 0x64 Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x0000000008017520 0x64 Middlewares/Third_Party/LwIP/src/core/timeouts.o .text.sys_timeouts_init - 0x0000000008017574 0x40 Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x0000000008017574 sys_timeouts_init + 0x0000000008017584 0x40 Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x0000000008017584 sys_timeouts_init .text.sys_timeout - 0x00000000080175b4 0x4c Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x00000000080175b4 sys_timeout + 0x00000000080175c4 0x4c Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x00000000080175c4 sys_timeout .text.sys_check_timeouts - 0x0000000008017600 0x74 Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x0000000008017600 sys_check_timeouts + 0x0000000008017610 0x74 Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x0000000008017610 sys_check_timeouts .text.sys_timeouts_sleeptime - 0x0000000008017674 0x70 Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x0000000008017674 sys_timeouts_sleeptime + 0x0000000008017684 0x70 Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x0000000008017684 sys_timeouts_sleeptime .text.udp_init - 0x00000000080176e4 0x24 Middlewares/Third_Party/LwIP/src/core/udp.o - 0x00000000080176e4 udp_init + 0x00000000080176f4 0x24 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x00000000080176f4 udp_init .text.udp_new_port - 0x0000000008017708 0x70 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017718 0x70 Middlewares/Third_Party/LwIP/src/core/udp.o .text.udp_input_local_match - 0x0000000008017778 0xc8 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017788 0xc8 Middlewares/Third_Party/LwIP/src/core/udp.o .text.udp_input - 0x0000000008017840 0x228 Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017840 udp_input + 0x0000000008017850 0x228 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017850 udp_input .text.udp_sendto_if - 0x0000000008017a68 0xe8 Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017a68 udp_sendto_if + 0x0000000008017a78 0xe8 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017a78 udp_sendto_if .text.udp_sendto_if_src - 0x0000000008017b50 0x1cc Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017b50 udp_sendto_if_src + 0x0000000008017b60 0x1cc Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017b60 udp_sendto_if_src .text.udp_bind - 0x0000000008017d1c 0x110 Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017d1c udp_bind + 0x0000000008017d2c 0x110 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017d2c udp_bind .text.udp_connect - 0x0000000008017e2c 0xdc Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017e2c udp_connect + 0x0000000008017e3c 0xdc Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017e3c udp_connect .text.udp_recv - 0x0000000008017f08 0x40 Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017f08 udp_recv + 0x0000000008017f18 0x40 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017f18 udp_recv .text.udp_remove - 0x0000000008017f48 0x84 Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017f48 udp_remove - .text.udp_new 0x0000000008017fcc 0x2e Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017fcc udp_new - *fill* 0x0000000008017ffa 0x2 + 0x0000000008017f58 0x84 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017f58 udp_remove + .text.udp_new 0x0000000008017fdc 0x2e Middlewares/Third_Party/LwIP/src/core/udp.o + 0x0000000008017fdc udp_new + *fill* 0x000000000801800a 0x2 .text.udp_netif_ip_addr_changed - 0x0000000008017ffc 0x60 Middlewares/Third_Party/LwIP/src/core/udp.o - 0x0000000008017ffc udp_netif_ip_addr_changed + 0x000000000801800c 0x60 Middlewares/Third_Party/LwIP/src/core/udp.o + 0x000000000801800c udp_netif_ip_addr_changed .text.dhcp_inc_pcb_refcount - 0x000000000801805c 0xa4 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x000000000801806c 0xa4 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_dec_pcb_refcount - 0x0000000008018100 0x54 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018110 0x54 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_handle_nak - 0x0000000008018154 0x34 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018164 0x34 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_check - 0x0000000008018188 0x68 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018198 0x68 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_handle_offer - 0x00000000080181f0 0x4c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018200 0x4c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_select - 0x000000000801823c 0x1f8 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x000000000801824c 0x1f8 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_coarse_tmr - 0x0000000008018434 0xa8 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - 0x0000000008018434 dhcp_coarse_tmr + 0x0000000008018444 0xa8 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018444 dhcp_coarse_tmr .text.dhcp_fine_tmr - 0x00000000080184dc 0x64 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - 0x00000000080184dc dhcp_fine_tmr + 0x00000000080184ec 0x64 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x00000000080184ec dhcp_fine_tmr .text.dhcp_timeout - 0x0000000008018540 0x92 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018550 0x92 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_t1_timeout - 0x00000000080185d2 0x5e Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x00000000080185e2 0x5e Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_t2_timeout - 0x0000000008018630 0x66 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - *fill* 0x0000000008018696 0x2 + 0x0000000008018640 0x66 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + *fill* 0x00000000080186a6 0x2 .text.dhcp_handle_ack - 0x0000000008018698 0xc0 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x00000000080186a8 0xc0 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_start - 0x0000000008018758 0xfc Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - 0x0000000008018758 dhcp_start + 0x0000000008018768 0xfc Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018768 dhcp_start .text.dhcp_network_changed - 0x0000000008018854 0x9c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - 0x0000000008018854 dhcp_network_changed + 0x0000000008018864 0x9c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018864 dhcp_network_changed .text.dhcp_arp_reply - 0x00000000080188f0 0x58 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - 0x00000000080188f0 dhcp_arp_reply + 0x0000000008018900 0x58 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018900 dhcp_arp_reply .text.dhcp_decline - 0x0000000008018948 0xec Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018958 0xec Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_discover - 0x0000000008018a34 0x144 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018a44 0x144 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_bind - 0x0000000008018b78 0x1b4 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018b88 0x1b4 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_renew - 0x0000000008018d2c 0x138 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - 0x0000000008018d2c dhcp_renew + 0x0000000008018d3c 0x138 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018d3c dhcp_renew .text.dhcp_rebind - 0x0000000008018e64 0x138 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018e74 0x138 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_reboot - 0x0000000008018f9c 0x16c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008018fac 0x16c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_release_and_stop - 0x0000000008019108 0x134 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - 0x0000000008019108 dhcp_release_and_stop + 0x0000000008019118 0x134 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008019118 dhcp_release_and_stop .text.dhcp_set_state - 0x000000000801923c 0x34 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x000000000801924c 0x34 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_option - 0x0000000008019270 0x68 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008019280 0x68 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_option_byte - 0x00000000080192d8 0x4c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x00000000080192e8 0x4c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_option_short - 0x0000000008019324 0x64 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008019334 0x64 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_option_long - 0x0000000008019388 0x88 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008019398 0x88 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_parse_reply - 0x0000000008019410 0x5a8 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008019420 0x5a8 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_recv - 0x00000000080199b8 0x198 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x00000000080199c8 0x198 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_create_msg - 0x0000000008019b50 0x1ac Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008019b60 0x1ac Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_option_trailer - 0x0000000008019cfc 0x5c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008019d0c 0x5c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o .text.dhcp_supplied_address - 0x0000000008019d58 0x4c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - 0x0000000008019d58 dhcp_supplied_address + 0x0000000008019d68 0x4c Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + 0x0000000008019d68 dhcp_supplied_address .text.etharp_free_entry - 0x0000000008019da4 0x64 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x0000000008019db4 0x64 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o .text.etharp_tmr - 0x0000000008019e08 0x150 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x0000000008019e08 etharp_tmr + 0x0000000008019e18 0x150 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x0000000008019e18 etharp_tmr .text.etharp_find_entry - 0x0000000008019f58 0x2f0 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x0000000008019f68 0x2f0 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o .text.etharp_update_arp_entry - 0x000000000801a248 0x14c Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801a258 0x14c Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o .text.etharp_cleanup_netif - 0x000000000801a394 0x60 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801a394 etharp_cleanup_netif + 0x000000000801a3a4 0x60 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801a3a4 etharp_cleanup_netif .text.etharp_input - 0x000000000801a3f4 0x11c Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801a3f4 etharp_input + 0x000000000801a404 0x11c Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801a404 etharp_input .text.etharp_output_to_arp_index - 0x000000000801a510 0x134 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801a520 0x134 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o .text.etharp_output - 0x000000000801a644 0x204 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801a644 etharp_output + 0x000000000801a654 0x204 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801a654 etharp_output .text.etharp_query - 0x000000000801a848 0x27c Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801a848 etharp_query + 0x000000000801a858 0x27c Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801a858 etharp_query .text.etharp_raw - 0x000000000801aac4 0x118 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801aad4 0x118 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o .text.etharp_request_dst - 0x000000000801abdc 0x44 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801abec 0x44 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o .text.etharp_request - 0x000000000801ac20 0x24 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - 0x000000000801ac20 etharp_request + 0x000000000801ac30 0x24 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + 0x000000000801ac30 etharp_request .text.icmp_input - 0x000000000801ac44 0x208 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - 0x000000000801ac44 icmp_input + 0x000000000801ac54 0x208 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o + 0x000000000801ac54 icmp_input .text.icmp_dest_unreach - 0x000000000801ae4c 0x20 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - 0x000000000801ae4c icmp_dest_unreach + 0x000000000801ae5c 0x20 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o + 0x000000000801ae5c icmp_dest_unreach .text.icmp_time_exceeded - 0x000000000801ae6c 0x20 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - 0x000000000801ae6c icmp_time_exceeded + 0x000000000801ae7c 0x20 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o + 0x000000000801ae7c icmp_time_exceeded .text.icmp_send_response - 0x000000000801ae8c 0xd4 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o + 0x000000000801ae9c 0xd4 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o .text.ip4_route - 0x000000000801af60 0xe0 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x000000000801af60 ip4_route + 0x000000000801af70 0xe0 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o + 0x000000000801af70 ip4_route .text.ip4_input_accept - 0x000000000801b040 0x54 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o + 0x000000000801b050 0x54 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o .text.ip4_input - 0x000000000801b094 0x280 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x000000000801b094 ip4_input + 0x000000000801b0a4 0x280 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o + 0x000000000801b0a4 ip4_input .text.ip4_output_if - 0x000000000801b314 0x54 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x000000000801b314 ip4_output_if + 0x000000000801b324 0x54 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o + 0x000000000801b324 ip4_output_if .text.ip4_output_if_src - 0x000000000801b368 0x15c Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - 0x000000000801b368 ip4_output_if_src + 0x000000000801b378 0x15c Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o + 0x000000000801b378 ip4_output_if_src .text.ip4_addr_isbroadcast_u32 - 0x000000000801b4c4 0x82 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - 0x000000000801b4c4 ip4_addr_isbroadcast_u32 - *fill* 0x000000000801b546 0x2 + 0x000000000801b4d4 0x82 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o + 0x000000000801b4d4 ip4_addr_isbroadcast_u32 + *fill* 0x000000000801b556 0x2 .text.ip_reass_tmr - 0x000000000801b548 0x58 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - 0x000000000801b548 ip_reass_tmr + 0x000000000801b558 0x58 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801b558 ip_reass_tmr .text.ip_reass_free_complete_datagram - 0x000000000801b5a0 0x148 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801b5b0 0x148 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o .text.ip_reass_remove_oldest_datagram - 0x000000000801b6e8 0xc4 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801b6f8 0xc4 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o .text.ip_reass_enqueue_new_datagram - 0x000000000801b7ac 0x74 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801b7bc 0x74 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o .text.ip_reass_dequeue_datagram - 0x000000000801b820 0x5c Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801b830 0x5c Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o .text.ip_reass_chain_frag_into_datagram_and_validate - 0x000000000801b87c 0x2d4 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801b88c 0x2d4 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o .text.ip4_reass - 0x000000000801bb50 0x328 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - 0x000000000801bb50 ip4_reass + 0x000000000801bb60 0x328 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801bb60 ip4_reass .text.ip_frag_alloc_pbuf_custom_ref - 0x000000000801be78 0x10 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801be88 0x10 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o .text.ip_frag_free_pbuf_custom_ref - 0x000000000801be88 0x38 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801be98 0x38 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o .text.ipfrag_free_pbuf_custom - 0x000000000801bec0 0x68 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801bed0 0x68 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o .text.ip4_frag - 0x000000000801bf28 0x288 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - 0x000000000801bf28 ip4_frag + 0x000000000801bf38 0x288 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + 0x000000000801bf38 ip4_frag .text.ethernet_input - 0x000000000801c1b0 0x11c Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x000000000801c1b0 ethernet_input + 0x000000000801c1c0 0x11c Middlewares/Third_Party/LwIP/src/netif/ethernet.o + 0x000000000801c1c0 ethernet_input .text.ethernet_output - 0x000000000801c2cc 0x90 Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x000000000801c2cc ethernet_output + 0x000000000801c2dc 0x90 Middlewares/Third_Party/LwIP/src/netif/ethernet.o + 0x000000000801c2dc ethernet_output .text.sys_mbox_new - 0x000000000801c35c 0x44 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c35c sys_mbox_new + 0x000000000801c36c 0x44 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c36c sys_mbox_new .text.sys_mbox_trypost - 0x000000000801c3a0 0x34 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c3a0 sys_mbox_trypost + 0x000000000801c3b0 0x34 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c3b0 sys_mbox_trypost .text.sys_arch_mbox_fetch - 0x000000000801c3d4 0x7e Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c3d4 sys_arch_mbox_fetch + 0x000000000801c3e4 0x7e Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c3e4 sys_arch_mbox_fetch .text.sys_mbox_valid - 0x000000000801c452 0x22 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c452 sys_mbox_valid + 0x000000000801c462 0x22 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c462 sys_mbox_valid .text.sys_init - 0x000000000801c474 0x1c Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c474 sys_init + 0x000000000801c484 0x1c Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c484 sys_init .text.sys_mutex_new - 0x000000000801c490 0x38 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c490 sys_mutex_new + 0x000000000801c4a0 0x38 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c4a0 sys_mutex_new .text.sys_mutex_lock - 0x000000000801c4c8 0x1e Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c4c8 sys_mutex_lock + 0x000000000801c4d8 0x1e Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c4d8 sys_mutex_lock .text.sys_mutex_unlock - 0x000000000801c4e6 0x1a Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c4e6 sys_mutex_unlock + 0x000000000801c4f6 0x1a Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c4f6 sys_mutex_unlock .text.sys_thread_new - 0x000000000801c500 0x4a Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c500 sys_thread_new - *fill* 0x000000000801c54a 0x2 + 0x000000000801c510 0x4a Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c510 sys_thread_new + *fill* 0x000000000801c55a 0x2 .text.sys_arch_protect - 0x000000000801c54c 0x1c Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c54c sys_arch_protect + 0x000000000801c55c 0x1c Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c55c sys_arch_protect .text.sys_arch_unprotect - 0x000000000801c568 0x20 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x000000000801c568 sys_arch_unprotect + 0x000000000801c578 0x20 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x000000000801c578 sys_arch_unprotect .text.__libc_init_array - 0x000000000801c588 0x48 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-init.o) - 0x000000000801c588 __libc_init_array - .text.memcmp 0x000000000801c5d0 0x1e c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memcmp.o) - 0x000000000801c5d0 memcmp - .text.memcpy 0x000000000801c5ee 0x16 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memcpy-stub.o) - 0x000000000801c5ee memcpy - .text.memmove 0x000000000801c604 0x32 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memmove.o) - 0x000000000801c604 memmove - .text.memset 0x000000000801c636 0x10 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memset.o) - 0x000000000801c636 memset - *fill* 0x000000000801c646 0x2 - .text.printf 0x000000000801c648 0x30 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-printf.o) - 0x000000000801c648 iprintf - 0x000000000801c648 printf - .text.rand 0x000000000801c678 0x68 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-rand.o) - 0x000000000801c678 rand - .text.sprintf 0x000000000801c6e0 0x40 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-sprintf.o) - 0x000000000801c6e0 siprintf - 0x000000000801c6e0 sprintf - .text.std 0x000000000801c720 0x48 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) + 0x000000000801c598 0x48 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-init.o) + 0x000000000801c598 __libc_init_array + .text.memcmp 0x000000000801c5e0 0x1e c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memcmp.o) + 0x000000000801c5e0 memcmp + .text.memcpy 0x000000000801c5fe 0x16 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memcpy-stub.o) + 0x000000000801c5fe memcpy + .text.memmove 0x000000000801c614 0x32 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memmove.o) + 0x000000000801c614 memmove + .text.memset 0x000000000801c646 0x10 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-memset.o) + 0x000000000801c646 memset + *fill* 0x000000000801c656 0x2 + .text.printf 0x000000000801c658 0x30 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-printf.o) + 0x000000000801c658 iprintf + 0x000000000801c658 printf + .text.rand 0x000000000801c688 0x68 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-rand.o) + 0x000000000801c688 rand + .text.sprintf 0x000000000801c6f0 0x40 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-sprintf.o) + 0x000000000801c6f0 siprintf + 0x000000000801c6f0 sprintf + .text.std 0x000000000801c730 0x48 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) .text._cleanup_r - 0x000000000801c768 0xc c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) - 0x000000000801c768 _cleanup_r + 0x000000000801c778 0xc c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) + 0x000000000801c778 _cleanup_r .text.__sfmoreglue - 0x000000000801c774 0x2c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) - 0x000000000801c774 __sfmoreglue - .text.__sinit 0x000000000801c7a0 0x60 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) - 0x000000000801c7a0 __sinit - .text.__sfp 0x000000000801c800 0x78 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) - 0x000000000801c800 __sfp + 0x000000000801c784 0x2c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) + 0x000000000801c784 __sfmoreglue + .text.__sinit 0x000000000801c7b0 0x60 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) + 0x000000000801c7b0 __sinit + .text.__sfp 0x000000000801c810 0x78 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) + 0x000000000801c810 __sfp .text._fwalk_reent - 0x000000000801c878 0x3c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-fwalk.o) - 0x000000000801c878 _fwalk_reent - .text.malloc 0x000000000801c8b4 0x10 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-malloc.o) - 0x000000000801c8b4 malloc - .text._free_r 0x000000000801c8c4 0x9c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-freer.o) - 0x000000000801c8c4 _free_r + 0x000000000801c888 0x3c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-fwalk.o) + 0x000000000801c888 _fwalk_reent + .text.malloc 0x000000000801c8c4 0x10 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-malloc.o) + 0x000000000801c8c4 malloc + .text._free_r 0x000000000801c8d4 0x9c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-freer.o) + 0x000000000801c8d4 _free_r .text._malloc_r - 0x000000000801c960 0xb4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-mallocr.o) - 0x000000000801c960 _malloc_r + 0x000000000801c970 0xb4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-mallocr.o) + 0x000000000801c970 _malloc_r .text.__ssputs_r - 0x000000000801ca14 0xb4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-svfprintf.o) - 0x000000000801ca14 __ssputs_r + 0x000000000801ca24 0xb4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-svfprintf.o) + 0x000000000801ca24 __ssputs_r .text._svfprintf_r - 0x000000000801cac8 0x1f0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-svfprintf.o) - 0x000000000801cac8 _svfiprintf_r - 0x000000000801cac8 _svfprintf_r + 0x000000000801cad8 0x1f0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-svfprintf.o) + 0x000000000801cad8 _svfiprintf_r + 0x000000000801cad8 _svfprintf_r .text.__sfputc_r - 0x000000000801ccb8 0x2e c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf.o) + 0x000000000801ccc8 0x2e c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf.o) .text.__sfputs_r - 0x000000000801cce6 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf.o) - 0x000000000801cce6 __sfputs_r - *fill* 0x000000000801cd0a 0x2 + 0x000000000801ccf6 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf.o) + 0x000000000801ccf6 __sfputs_r + *fill* 0x000000000801cd1a 0x2 .text._vfprintf_r - 0x000000000801cd0c 0x22c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf.o) - 0x000000000801cd0c _vfprintf_r - 0x000000000801cd0c _vfiprintf_r + 0x000000000801cd1c 0x22c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf.o) + 0x000000000801cd1c _vfprintf_r + 0x000000000801cd1c _vfiprintf_r .text._printf_common - 0x000000000801cf38 0xea c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf_i.o) - 0x000000000801cf38 _printf_common - *fill* 0x000000000801d022 0x2 + 0x000000000801cf48 0xea c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x000000000801cf48 _printf_common + *fill* 0x000000000801d032 0x2 .text._printf_i - 0x000000000801d024 0x224 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf_i.o) - 0x000000000801d024 _printf_i - .text._sbrk_r 0x000000000801d248 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-sbrkr.o) - 0x000000000801d248 _sbrk_r - .text.__sread 0x000000000801d268 0x22 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-stdio.o) - 0x000000000801d268 __sread + 0x000000000801d034 0x224 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x000000000801d034 _printf_i + .text._sbrk_r 0x000000000801d258 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-sbrkr.o) + 0x000000000801d258 _sbrk_r + .text.__sread 0x000000000801d278 0x22 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-stdio.o) + 0x000000000801d278 __sread .text.__swrite - 0x000000000801d28a 0x38 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-stdio.o) - 0x000000000801d28a __swrite - .text.__sseek 0x000000000801d2c2 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-stdio.o) - 0x000000000801d2c2 __sseek + 0x000000000801d29a 0x38 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-stdio.o) + 0x000000000801d29a __swrite + .text.__sseek 0x000000000801d2d2 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-stdio.o) + 0x000000000801d2d2 __sseek .text.__sclose - 0x000000000801d2e6 0x8 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-stdio.o) - 0x000000000801d2e6 __sclose - *fill* 0x000000000801d2ee 0x2 + 0x000000000801d2f6 0x8 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-stdio.o) + 0x000000000801d2f6 __sclose + *fill* 0x000000000801d2fe 0x2 .text.__swbuf_r - 0x000000000801d2f0 0xa4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-wbuf.o) - 0x000000000801d2f0 __swbuf_r + 0x000000000801d300 0xa4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-wbuf.o) + 0x000000000801d300 __swbuf_r .text._write_r - 0x000000000801d394 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-writer.o) - 0x000000000801d394 _write_r + 0x000000000801d3a4 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-writer.o) + 0x000000000801d3a4 _write_r .text.__swsetup_r - 0x000000000801d3b8 0xdc c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-wsetup.o) - 0x000000000801d3b8 __swsetup_r + 0x000000000801d3c8 0xdc c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-wsetup.o) + 0x000000000801d3c8 __swsetup_r .text._close_r - 0x000000000801d494 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-closer.o) - 0x000000000801d494 _close_r + 0x000000000801d4a4 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-closer.o) + 0x000000000801d4a4 _close_r .text.__sflush_r - 0x000000000801d4b4 0x10c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-fflush.o) - 0x000000000801d4b4 __sflush_r + 0x000000000801d4c4 0x10c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-fflush.o) + 0x000000000801d4c4 __sflush_r .text._fflush_r - 0x000000000801d5c0 0x54 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-fflush.o) - 0x000000000801d5c0 _fflush_r + 0x000000000801d5d0 0x54 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-fflush.o) + 0x000000000801d5d0 _fflush_r .text._lseek_r - 0x000000000801d614 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-lseekr.o) - 0x000000000801d614 _lseek_r + 0x000000000801d624 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-lseekr.o) + 0x000000000801d624 _lseek_r .text.__swhatbuf_r - 0x000000000801d638 0x48 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-makebuf.o) - 0x000000000801d638 __swhatbuf_r + 0x000000000801d648 0x48 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-makebuf.o) + 0x000000000801d648 __swhatbuf_r .text.__smakebuf_r - 0x000000000801d680 0x80 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-makebuf.o) - 0x000000000801d680 __smakebuf_r + 0x000000000801d690 0x80 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-makebuf.o) + 0x000000000801d690 __smakebuf_r .text.__malloc_lock - 0x000000000801d700 0x2 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-mlock.o) - 0x000000000801d700 __malloc_lock + 0x000000000801d710 0x2 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-mlock.o) + 0x000000000801d710 __malloc_lock .text.__malloc_unlock - 0x000000000801d702 0x2 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-mlock.o) - 0x000000000801d702 __malloc_unlock + 0x000000000801d712 0x2 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-mlock.o) + 0x000000000801d712 __malloc_unlock .text._realloc_r - 0x000000000801d704 0x4c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-reallocr.o) - 0x000000000801d704 _realloc_r - .text._read_r 0x000000000801d750 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-readr.o) - 0x000000000801d750 _read_r + 0x000000000801d714 0x4c c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-reallocr.o) + 0x000000000801d714 _realloc_r + .text._read_r 0x000000000801d760 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-readr.o) + 0x000000000801d760 _read_r .text._fstat_r - 0x000000000801d774 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-fstatr.o) - 0x000000000801d774 _fstat_r + 0x000000000801d784 0x24 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-fstatr.o) + 0x000000000801d784 _fstat_r .text._isatty_r - 0x000000000801d798 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-isattyr.o) - 0x000000000801d798 _isatty_r + 0x000000000801d7a8 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-isattyr.o) + 0x000000000801d7a8 _isatty_r .text._malloc_usable_size_r - 0x000000000801d7b8 0x10 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-msizer.o) - 0x000000000801d7b8 _malloc_usable_size_r + 0x000000000801d7c8 0x10 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-msizer.o) + 0x000000000801d7c8 _malloc_usable_size_r *(.glue_7) - .glue_7 0x000000000801d7c8 0x0 linker stubs + .glue_7 0x000000000801d7d8 0x0 linker stubs *(.glue_7t) - .glue_7t 0x000000000801d7c8 0x0 linker stubs + .glue_7t 0x000000000801d7d8 0x0 linker stubs *(.eh_frame) - .eh_frame 0x000000000801d7c8 0x0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o + .eh_frame 0x000000000801d7d8 0x0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o *(.init) - .init 0x000000000801d7c8 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crti.o - 0x000000000801d7c8 _init - .init 0x000000000801d7cc 0x8 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtn.o + .init 0x000000000801d7d8 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crti.o + 0x000000000801d7d8 _init + .init 0x000000000801d7dc 0x8 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtn.o *(.fini) - .fini 0x000000000801d7d4 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crti.o - 0x000000000801d7d4 _fini - .fini 0x000000000801d7d8 0x8 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtn.o - 0x000000000801d7e0 . = ALIGN (0x4) - 0x000000000801d7e0 _etext = . + .fini 0x000000000801d7e4 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crti.o + 0x000000000801d7e4 _fini + .fini 0x000000000801d7e8 0x8 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtn.o + 0x000000000801d7f0 . = ALIGN (0x4) + 0x000000000801d7f0 _etext = . -.vfp11_veneer 0x000000000801d7e0 0x0 - .vfp11_veneer 0x000000000801d7e0 0x0 linker stubs +.vfp11_veneer 0x000000000801d7f0 0x0 + .vfp11_veneer 0x000000000801d7f0 0x0 linker stubs -.v4_bx 0x000000000801d7e0 0x0 - .v4_bx 0x000000000801d7e0 0x0 linker stubs +.v4_bx 0x000000000801d7f0 0x0 + .v4_bx 0x000000000801d7f0 0x0 linker stubs -.iplt 0x000000000801d7e0 0x0 - .iplt 0x000000000801d7e0 0x0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o +.iplt 0x000000000801d7f0 0x0 + .iplt 0x000000000801d7f0 0x0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o -.rodata 0x000000000801d7e0 0x50d0 - 0x000000000801d7e0 . = ALIGN (0x4) +.rodata 0x000000000801d7f0 0x50d0 + 0x000000000801d7f0 . = ALIGN (0x4) *(.rodata) - .rodata 0x000000000801d7e0 0xe0 Core/Src/main.o - .rodata 0x000000000801d8c0 0x24 LWIP/App/lwip.o - .rodata 0x000000000801d8e4 0x78 LWIP/Target/ethernetif.o - .rodata 0x000000000801d95c 0x5 Middlewares/Third_Party/FreeRTOS/Source/tasks.o - *fill* 0x000000000801d961 0x3 - .rodata 0x000000000801d964 0xdd Middlewares/Third_Party/LwIP/src/api/tcpip.o - *fill* 0x000000000801da41 0x3 - .rodata 0x000000000801da44 0x277 Middlewares/Third_Party/LwIP/src/core/mem.o - *fill* 0x000000000801dcbb 0x1 - .rodata 0x000000000801dcbc 0xeb Middlewares/Third_Party/LwIP/src/core/memp.o - *fill* 0x000000000801dda7 0x1 - .rodata 0x000000000801dda8 0x22f Middlewares/Third_Party/LwIP/src/core/netif.o - *fill* 0x000000000801dfd7 0x1 - .rodata 0x000000000801dfd8 0x485 Middlewares/Third_Party/LwIP/src/core/pbuf.o - *fill* 0x000000000801e45d 0x3 - .rodata 0x000000000801e460 0x7e0 Middlewares/Third_Party/LwIP/src/core/tcp.o - .rodata 0x000000000801ec40 0x47e Middlewares/Third_Party/LwIP/src/core/tcp_in.o - *fill* 0x000000000801f0be 0x2 - .rodata 0x000000000801f0c0 0x81b Middlewares/Third_Party/LwIP/src/core/tcp_out.o - *fill* 0x000000000801f8db 0x1 - .rodata 0x000000000801f8dc 0xe6 Middlewares/Third_Party/LwIP/src/core/timeouts.o - *fill* 0x000000000801f9c2 0x2 - .rodata 0x000000000801f9c4 0x364 Middlewares/Third_Party/LwIP/src/core/udp.o - .rodata 0x000000000801fd28 0x3a0 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o - .rodata 0x00000000080200c8 0x275 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o - *fill* 0x000000000802033d 0x3 - .rodata 0x0000000008020340 0xf8 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o - .rodata 0x0000000008020438 0x95 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o - *fill* 0x00000000080204cd 0x3 - .rodata 0x00000000080204d0 0x227 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o - *fill* 0x00000000080206f7 0x1 - .rodata 0x00000000080206f8 0x94 Middlewares/Third_Party/LwIP/src/netif/ethernet.o + .rodata 0x000000000801d7f0 0xe0 Core/Src/main.o + .rodata 0x000000000801d8d0 0x24 LWIP/App/lwip.o + .rodata 0x000000000801d8f4 0x78 LWIP/Target/ethernetif.o + .rodata 0x000000000801d96c 0x5 Middlewares/Third_Party/FreeRTOS/Source/tasks.o + *fill* 0x000000000801d971 0x3 + .rodata 0x000000000801d974 0xdd Middlewares/Third_Party/LwIP/src/api/tcpip.o + *fill* 0x000000000801da51 0x3 + .rodata 0x000000000801da54 0x277 Middlewares/Third_Party/LwIP/src/core/mem.o + *fill* 0x000000000801dccb 0x1 + .rodata 0x000000000801dccc 0xeb Middlewares/Third_Party/LwIP/src/core/memp.o + *fill* 0x000000000801ddb7 0x1 + .rodata 0x000000000801ddb8 0x22f Middlewares/Third_Party/LwIP/src/core/netif.o + *fill* 0x000000000801dfe7 0x1 + .rodata 0x000000000801dfe8 0x485 Middlewares/Third_Party/LwIP/src/core/pbuf.o + *fill* 0x000000000801e46d 0x3 + .rodata 0x000000000801e470 0x7e0 Middlewares/Third_Party/LwIP/src/core/tcp.o + .rodata 0x000000000801ec50 0x47e Middlewares/Third_Party/LwIP/src/core/tcp_in.o + *fill* 0x000000000801f0ce 0x2 + .rodata 0x000000000801f0d0 0x81b Middlewares/Third_Party/LwIP/src/core/tcp_out.o + *fill* 0x000000000801f8eb 0x1 + .rodata 0x000000000801f8ec 0xe6 Middlewares/Third_Party/LwIP/src/core/timeouts.o + *fill* 0x000000000801f9d2 0x2 + .rodata 0x000000000801f9d4 0x364 Middlewares/Third_Party/LwIP/src/core/udp.o + .rodata 0x000000000801fd38 0x3a0 Middlewares/Third_Party/LwIP/src/core/ipv4/dhcp.o + .rodata 0x00000000080200d8 0x275 Middlewares/Third_Party/LwIP/src/core/ipv4/etharp.o + *fill* 0x000000000802034d 0x3 + .rodata 0x0000000008020350 0xf8 Middlewares/Third_Party/LwIP/src/core/ipv4/icmp.o + .rodata 0x0000000008020448 0x95 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4.o + *fill* 0x00000000080204dd 0x3 + .rodata 0x00000000080204e0 0x227 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_frag.o + *fill* 0x0000000008020707 0x1 + .rodata 0x0000000008020708 0x94 Middlewares/Third_Party/LwIP/src/netif/ethernet.o *(.rodata*) .rodata.Font24_Table - 0x000000000802078c 0x1ab8 Core/Src/stm32746g_discovery_lcd.o - 0x000000000802078c Font24_Table + 0x000000000802079c 0x1ab8 Core/Src/stm32746g_discovery_lcd.o + 0x000000000802079c Font24_Table .rodata.Font12_Table - 0x0000000008022244 0x474 Core/Src/stm32746g_discovery_lcd.o - 0x0000000008022244 Font12_Table + 0x0000000008022254 0x474 Core/Src/stm32746g_discovery_lcd.o + 0x0000000008022254 Font12_Table .rodata.AHBPrescTable - 0x00000000080226b8 0x10 Core/Src/system_stm32f7xx.o - 0x00000000080226b8 AHBPrescTable + 0x00000000080226c8 0x10 Core/Src/system_stm32f7xx.o + 0x00000000080226c8 AHBPrescTable .rodata.APBPrescTable - 0x00000000080226c8 0x8 Core/Src/system_stm32f7xx.o - 0x00000000080226c8 APBPrescTable + 0x00000000080226d8 0x8 Core/Src/system_stm32f7xx.o + 0x00000000080226d8 APBPrescTable .rodata.flagBitshiftOffset.10122 - 0x00000000080226d0 0x8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o + 0x00000000080226e0 0x8 Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.o .rodata.memp_UDP_PCB - 0x00000000080226d8 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000080226d8 memp_UDP_PCB + 0x00000000080226e8 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x00000000080226e8 memp_UDP_PCB .rodata.memp_TCP_PCB - 0x00000000080226e4 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000080226e4 memp_TCP_PCB + 0x00000000080226f4 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x00000000080226f4 memp_TCP_PCB .rodata.memp_TCP_PCB_LISTEN - 0x00000000080226f0 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000080226f0 memp_TCP_PCB_LISTEN + 0x0000000008022700 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022700 memp_TCP_PCB_LISTEN .rodata.memp_TCP_SEG - 0x00000000080226fc 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x00000000080226fc memp_TCP_SEG + 0x000000000802270c 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x000000000802270c memp_TCP_SEG .rodata.memp_REASSDATA - 0x0000000008022708 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008022708 memp_REASSDATA + 0x0000000008022718 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022718 memp_REASSDATA .rodata.memp_FRAG_PBUF - 0x0000000008022714 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008022714 memp_FRAG_PBUF + 0x0000000008022724 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022724 memp_FRAG_PBUF .rodata.memp_NETBUF - 0x0000000008022720 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008022720 memp_NETBUF + 0x0000000008022730 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022730 memp_NETBUF .rodata.memp_NETCONN - 0x000000000802272c 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x000000000802272c memp_NETCONN + 0x000000000802273c 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x000000000802273c memp_NETCONN .rodata.memp_TCPIP_MSG_API - 0x0000000008022738 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008022738 memp_TCPIP_MSG_API + 0x0000000008022748 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022748 memp_TCPIP_MSG_API .rodata.memp_TCPIP_MSG_INPKT - 0x0000000008022744 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008022744 memp_TCPIP_MSG_INPKT + 0x0000000008022754 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022754 memp_TCPIP_MSG_INPKT .rodata.memp_SYS_TIMEOUT - 0x0000000008022750 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008022750 memp_SYS_TIMEOUT + 0x0000000008022760 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022760 memp_SYS_TIMEOUT .rodata.memp_PBUF - 0x000000000802275c 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x000000000802275c memp_PBUF + 0x000000000802276c 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x000000000802276c memp_PBUF .rodata.memp_PBUF_POOL - 0x0000000008022768 0xc Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008022768 memp_PBUF_POOL + 0x0000000008022778 0xc Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022778 memp_PBUF_POOL .rodata.memp_pools - 0x0000000008022774 0x34 Middlewares/Third_Party/LwIP/src/core/memp.o - 0x0000000008022774 memp_pools + 0x0000000008022784 0x34 Middlewares/Third_Party/LwIP/src/core/memp.o + 0x0000000008022784 memp_pools .rodata.tcp_backoff - 0x00000000080227a8 0xd Middlewares/Third_Party/LwIP/src/core/tcp.o - *fill* 0x00000000080227b5 0x3 + 0x00000000080227b8 0xd Middlewares/Third_Party/LwIP/src/core/tcp.o + *fill* 0x00000000080227c5 0x3 .rodata.tcp_persist_backoff - 0x00000000080227b8 0x7 Middlewares/Third_Party/LwIP/src/core/tcp.o - *fill* 0x00000000080227bf 0x1 + 0x00000000080227c8 0x7 Middlewares/Third_Party/LwIP/src/core/tcp.o + *fill* 0x00000000080227cf 0x1 .rodata.tcp_pcb_lists - 0x00000000080227c0 0x10 Middlewares/Third_Party/LwIP/src/core/tcp.o - 0x00000000080227c0 tcp_pcb_lists + 0x00000000080227d0 0x10 Middlewares/Third_Party/LwIP/src/core/tcp.o + 0x00000000080227d0 tcp_pcb_lists .rodata.lwip_cyclic_timers - 0x00000000080227d0 0x28 Middlewares/Third_Party/LwIP/src/core/timeouts.o - 0x00000000080227d0 lwip_cyclic_timers + 0x00000000080227e0 0x28 Middlewares/Third_Party/LwIP/src/core/timeouts.o + 0x00000000080227e0 lwip_cyclic_timers .rodata.ip_addr_any - 0x00000000080227f8 0x4 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - 0x00000000080227f8 ip_addr_any + 0x0000000008022808 0x4 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o + 0x0000000008022808 ip_addr_any .rodata.ip_addr_broadcast - 0x00000000080227fc 0x4 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o - 0x00000000080227fc ip_addr_broadcast + 0x000000000802280c 0x4 Middlewares/Third_Party/LwIP/src/core/ipv4/ip4_addr.o + 0x000000000802280c ip_addr_broadcast .rodata.ethbroadcast - 0x0000000008022800 0x6 Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x0000000008022800 ethbroadcast - *fill* 0x0000000008022806 0x2 + 0x0000000008022810 0x6 Middlewares/Third_Party/LwIP/src/netif/ethernet.o + 0x0000000008022810 ethbroadcast + *fill* 0x0000000008022816 0x2 .rodata.ethzero - 0x0000000008022808 0x6 Middlewares/Third_Party/LwIP/src/netif/ethernet.o - 0x0000000008022808 ethzero - *fill* 0x000000000802280e 0x2 + 0x0000000008022818 0x6 Middlewares/Third_Party/LwIP/src/netif/ethernet.o + 0x0000000008022818 ethzero + *fill* 0x000000000802281e 0x2 .rodata.os_mutex_def_lwip_sys_mutex - 0x0000000008022810 0x8 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o - 0x0000000008022810 os_mutex_def_lwip_sys_mutex + 0x0000000008022820 0x8 Middlewares/Third_Party/LwIP/system/OS/sys_arch.o + 0x0000000008022820 os_mutex_def_lwip_sys_mutex .rodata._global_impure_ptr - 0x0000000008022818 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-impure.o) - 0x0000000008022818 _global_impure_ptr + 0x0000000008022828 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-impure.o) + 0x0000000008022828 _global_impure_ptr .rodata.__sf_fake_stderr - 0x000000000802281c 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) - 0x000000000802281c __sf_fake_stderr + 0x000000000802282c 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) + 0x000000000802282c __sf_fake_stderr .rodata.__sf_fake_stdin - 0x000000000802283c 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) - 0x000000000802283c __sf_fake_stdin + 0x000000000802284c 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) + 0x000000000802284c __sf_fake_stdin .rodata.__sf_fake_stdout - 0x000000000802285c 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) - 0x000000000802285c __sf_fake_stdout + 0x000000000802286c 0x20 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-findfp.o) + 0x000000000802286c __sf_fake_stdout .rodata._svfprintf_r.str1.1 - 0x000000000802287c 0x11 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-svfprintf.o) + 0x000000000802288c 0x11 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-svfprintf.o) .rodata._vfprintf_r.str1.1 - 0x000000000802288d 0x11 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf.o) + 0x000000000802289d 0x11 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf.o) .rodata._printf_i.str1.1 - 0x000000000802288d 0x22 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf_i.o) - 0x00000000080228b0 . = ALIGN (0x4) - *fill* 0x00000000080228af 0x1 + 0x000000000802289d 0x22 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libc_nano.a(lib_a-nano-vfprintf_i.o) + 0x00000000080228c0 . = ALIGN (0x4) + *fill* 0x00000000080228bf 0x1 -.ARM.extab 0x00000000080228b0 0x0 - 0x00000000080228b0 . = ALIGN (0x4) +.ARM.extab 0x00000000080228c0 0x0 + 0x00000000080228c0 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x00000000080228b0 . = ALIGN (0x4) + 0x00000000080228c0 . = ALIGN (0x4) -.ARM 0x00000000080228b0 0x8 - 0x00000000080228b0 . = ALIGN (0x4) - 0x00000000080228b0 __exidx_start = . +.ARM 0x00000000080228c0 0x8 + 0x00000000080228c0 . = ALIGN (0x4) + 0x00000000080228c0 __exidx_start = . *(.ARM.exidx*) - .ARM.exidx 0x00000000080228b0 0x8 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard\libgcc.a(_udivmoddi4.o) - 0x00000000080228b8 __exidx_end = . - 0x00000000080228b8 . = ALIGN (0x4) + .ARM.exidx 0x00000000080228c0 0x8 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard\libgcc.a(_udivmoddi4.o) + 0x00000000080228c8 __exidx_end = . + 0x00000000080228c8 . = ALIGN (0x4) -.rel.dyn 0x00000000080228b8 0x0 - .rel.iplt 0x00000000080228b8 0x0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o +.rel.dyn 0x00000000080228c8 0x0 + .rel.iplt 0x00000000080228c8 0x0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o -.preinit_array 0x00000000080228b8 0x0 - 0x00000000080228b8 . = ALIGN (0x4) - 0x00000000080228b8 PROVIDE (__preinit_array_start = .) +.preinit_array 0x00000000080228c8 0x0 + 0x00000000080228c8 . = ALIGN (0x4) + 0x00000000080228c8 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x00000000080228b8 PROVIDE (__preinit_array_end = .) - 0x00000000080228b8 . = ALIGN (0x4) + 0x00000000080228c8 PROVIDE (__preinit_array_end = .) + 0x00000000080228c8 . = ALIGN (0x4) -.init_array 0x00000000080228b8 0x4 - 0x00000000080228b8 . = ALIGN (0x4) - 0x00000000080228b8 PROVIDE (__init_array_start = .) +.init_array 0x00000000080228c8 0x4 + 0x00000000080228c8 . = ALIGN (0x4) + 0x00000000080228c8 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x00000000080228b8 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o - 0x00000000080228bc PROVIDE (__init_array_end = .) - 0x00000000080228bc . = ALIGN (0x4) + .init_array 0x00000000080228c8 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o + 0x00000000080228cc PROVIDE (__init_array_end = .) + 0x00000000080228cc . = ALIGN (0x4) -.fini_array 0x00000000080228bc 0x4 - 0x00000000080228bc . = ALIGN (0x4) +.fini_array 0x00000000080228cc 0x4 + 0x00000000080228cc . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x00000000080228bc 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o + .fini_array 0x00000000080228cc 0x4 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x00000000080228c0 . = ALIGN (0x4) - 0x00000000080228c0 _sidata = LOADADDR (.data) + 0x00000000080228d0 . = ALIGN (0x4) + 0x00000000080228d0 _sidata = LOADADDR (.data) -.data 0x0000000020000000 0xdc load address 0x00000000080228c0 +.data 0x0000000020000000 0xdc load address 0x00000000080228d0 0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 _sdata = . *(.data) @@ -34306,11 +34307,11 @@ LOAD c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte 0x00000000200000dc . = ALIGN (0x4) 0x00000000200000dc _edata = . -.igot.plt 0x00000000200000dc 0x0 load address 0x000000000802299c +.igot.plt 0x00000000200000dc 0x0 load address 0x00000000080229ac .igot.plt 0x00000000200000dc 0x0 c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/thumb/v7e-m/fpv4-sp/hard/crtbegin.o 0x00000000200000dc . = ALIGN (0x4) -.bss 0x00000000200000dc 0xf760 load address 0x000000000802299c +.bss 0x00000000200000dc 0xf760 load address 0x00000000080229ac 0x00000000200000dc _sbss = . 0x00000000200000dc __bss_start__ = _sbss *(.bss) @@ -34616,7 +34617,7 @@ LOAD c:/st/stm32cubeide_1.5.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.exte 0x000000002000f83c __bss_end__ = _ebss ._user_heap_stack - 0x000000002000f83c 0x604 load address 0x000000000802299c + 0x000000002000f83c 0x604 load address 0x00000000080229ac 0x000000002000f840 . = ALIGN (0x8) *fill* 0x000000002000f83c 0x4 [!provide] PROVIDE (end = .) diff --git a/README.md b/README.md index 84a2532..1e060dc 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,10 @@ ### Jsp pourquoi le read me est cassé -Pour indiquer le joueur, on utilise 1 et pour les méchants on utilise 0. \ No newline at end of file +Pour indiquer le joueur, on utilise 1 et pour les méchants on utilise 0. + +### Game_master + +Si le game master reçoit un message via FHandle, une des deux entités est morte. Si la variable vaut 0, les méchants sont mort. Si elle vaut 1, le joueur est mort. + + \ No newline at end of file